smbls 3.14.813 → 3.14.815
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/smbls.cjs +50 -50
- package/dist/smbls.embed.iife.js +10 -10
- package/dist/smbls.esm.js +51 -51
- package/dist/smbls.iife-string.js +2 -2
- package/dist/smbls.iife.js +20 -20
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Auto-generated by scripts/build-iife-string.mjs — do not edit.
|
|
2
|
-
export const version = "3.14.
|
|
3
|
-
export default "\"use strict\";var Smbls=(()=>{var TA=Object.create;var Qc=Object.defineProperty;var OA=Object.getOwnPropertyDescriptor;var RA=Object.getOwnPropertyNames;var PA=Object.getPrototypeOf,DA=Object.prototype.hasOwnProperty;var U=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var rp=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},L=(t,e)=>{for(var r in e)Qc(t,r,{get:e[r],enumerable:!0})},_x=(t,e,r,n)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of RA(e))!DA.call(t,o)&&o!==r&&Qc(t,o,{get:()=>e[o],enumerable:!(n=OA(e,o))||n.enumerable});return t};var IA=(t,e,r)=>(r=t!=null?TA(PA(t)):{},_x(e||!t||!t.__esModule?Qc(r,\"default\",{value:t,enumerable:!0}):r,t)),LA=t=>_x(Qc({},\"__esModule\",{value:!0}),t);var wp,Sp,C,et,ni=U(()=>{\"use strict\";wp=globalThis,Sp=globalThis,C=globalThis,et=C.document});var dr,oi,Xt,si=U(()=>{\"use strict\";ni();dr=t=>(typeof Node==\"object\"?t instanceof C.Node:t&&typeof t==\"object\"&&typeof t.nodeType==\"number\"&&typeof t.nodeName==\"string\")||!1,oi=t=>(typeof HTMLElement==\"object\"?t instanceof C.HTMLElement:t&&typeof t==\"object\"&&t!==null&&t.nodeType===1&&typeof t.nodeName==\"string\")||!1,Xt=t=>typeof C<\"u\"&&(C.Node&&t instanceof C.Node||C.Window&&t instanceof C.Window||t===C||et!==void 0&&t===et)});var k,w,Ke,O,ul,dl,R,pl,j,Ot,Pt,ii,Zt,kp,Dt=U(()=>{\"use strict\";si();k=t=>t===null?!1:typeof t==\"object\"&&t.constructor===Object,w=t=>typeof t==\"string\",Ke=t=>typeof t==\"number\",O=t=>typeof t==\"function\",ul=t=>t===!0||t===!1,dl=t=>t===null,R=t=>Array.isArray(t),pl=t=>t instanceof Date,j=t=>t===null?!1:typeof t==\"object\",Ot=t=>t!==void 0,Pt=t=>t===void 0,ii={boolean:ul,array:R,object:k,string:w,date:pl,number:Ke,null:dl,function:O,objectLike:j,node:dr,htmlElement:oi,defined:Ot},Zt=t=>(...e)=>e.some(r=>ii[r](t)),kp=t=>(...e)=>!e.some(r=>ii[r](t))});var vp,Cp,Ep,Ap,wo,ai,Tp,Op,ci,Rp,Pp,Dp,Ip,Lp,$p,Mp,So,li,ko=U(()=>{\"use strict\";pr();Dt();vp=(t,e)=>e.every(r=>t.includes(r)),Cp=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},Ep=(t,e)=>{if(w(e)&&(e=parseInt(e)),Ke(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},Ap=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},wo=(...t)=>[].concat(...t),ai=(t,e=[])=>t.reduce((r,n)=>nt(r,st(n,{exclude:e}),e),{}),Tp=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Op=(t,e)=>{if(!R(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},ci=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Rp=(t,e)=>t.filter(r=>r!==e),Pp=(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},Dp=(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},Ip=(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},Lp=(t,e)=>t.filter(r=>!e.includes(r)),$p=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Mp=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},So=t=>R(t)?[...new Set(t)]:t,li=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function $t(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!t.includes(o)||!JA(this,t))return t;let s=ZA[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let d=f.trim();if(u){let h=a?.context,p=h?.functions?.[u]||h?.utils?.[u]||h?.methods?.[u]||h?.snippets?.[u]||a?.[u];if(p&&typeof p==\"function\")try{return String(p.call(a,d)??\"\")}catch{return\"\"}return\"\"}if(l){let h=(l.match(/\\.\\.\\//g)||[]).length,p=i;for(let m=0;m<h;m++){if(!p||!p.parent)return\"\";p=p.parent}if(d===\"parent\")return String(p.value??\"\");let g=fi(p,d);return g!=null&&typeof g==\"object\"?\"\":String(g??\"\")}else{let h=fi(i,d);if(h!=null&&typeof h!=\"object\")return String(h);let p=a?.context?.polyglot;if(p?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||p.defaultLang||\"en\",m=p.translations[g];if(m){let _=fi(m,d);if(_!=null&&typeof _!=\"object\")return String(_);for(let y in m){let x=m[y];if(x&&typeof x==\"object\"&&!Array.isArray(x)){let S=fi(x,d);if(S!=null&&typeof S!=\"object\")return String(S)}}}let b=fi(p.translations,d);if(b!=null&&typeof b!=\"object\")return String(b)}return\"\"}})}var ui,Fp,ZA,fi,JA,xn,Np,QA,jp,Bp,Up,tT,Vp,zp,di=U(()=>{\"use strict\";ui=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Fp=(t,e)=>{let r=new RegExp(`[${e.join(\"\\\\\")}]`,\"g\");return t.replace(r,\"\")},ZA={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},fi=(t,e)=>e.split(\".\").reduce((r,n)=>r?.[n],t),JA=(t,e)=>{if(!t||!t.__ref)return!0;let r=t;for(;r;){if(r.allowRuntimeTemplates===!0)return!0;let n=r.__ref&&r.__ref.__authoredTemplates;if(n&&n.has(e))return!0;r=r.parent}return!1};xn=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Np=(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}},QA=/\\\\([0-7]{1,3})/g,jp=t=>t.replace(QA,(e,r)=>String.fromCharCode(parseInt(r,8))),Bp=t=>t.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),Up=t=>t.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),tT=/[^a-zA-Z0-9\\s]/g,Vp=t=>t.replace(tT,e=>\"%\"+e.charCodeAt(0).toString(16).toUpperCase()),zp=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Lr,pi,Hp,wn,$r,Mr,Wp,vo,Sn,hi,qp,kn=U(()=>{\"use strict\";Lr=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\"]),pi=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),Hp=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],wn=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\"]),$r=new Set([\"update\",\"__element\"]),Mr=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\"]),Wp=t=>Mr.has(t),vo=new Set([\"log\",\"warn\",\"error\",\"verbose\"]),Sn=t=>Mr.has(t)&&!vo.has(t),hi=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...Mr,...wn,...$r]),qp=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])});function gT(){let t=vn.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var Dx,Cn,lt,Gp,yt,nt,Bx,Yp,st,mi,eT,rT,Ix,yi,nT,oT,sT,Ge,Ux,iT,hl,Vx,Kp,vn,aT,cT,lT,fT,uT,Lx,dT,$x,pT,Mx,gl,hT,mT,yT,bT,Fx,Xp,Ie,En,_T,xT,_e,zx,Hx,Wx,qx,Kx,Nx,gi,jx,bi,Zp,Jp,ml,Qp,th,_i,An,Wt,yl,wT,eh,rh,bl,nh,oh,sh,ih,ah,ch,lh,pr=U(()=>{\"use strict\";ni();Dt();ko();di();si();kn();Dx=\"production\",Cn=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,lt=(t,e,r,n)=>{if(O(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&&(R(t)||k(t)&&!Xt(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 lt(i,e,r,n)}}return t},Gp=(t,e,r)=>{for(let n in e)t[n]=lt(e[n],r)},yt=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Cn(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},nt=(t,e,r=hi)=>Bx(t,e,r,null),Bx=(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)||Cn(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(j(i)&&j(a)){let c=n||[];c.push(t,e),Bx(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Yp=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Cn(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},st=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!j(t)||Xt(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=R(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let h in u){if(!Object.prototype.hasOwnProperty.call(u,h)||Cn(h)||h===\"__proto__\"||c(h))continue;let p=u[h];if(!(n&&p===void 0)&&!(o&&p===null)){if(Xt(p)){d[h]=p;continue}if(i&&h===\"extends\"&&R(p)){d[h]=ai(p,r);continue}if(O(p)){d[h]=p;continue}if(j(p))if(s.has(p))d[h]=s.get(p);else{let g=R(p)?[]:{};s.set(p,g),d[h]=g,f.push([p,g])}else d[h]=p}}}return l},mi=(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(O(n))e[r]=n.toString();else if(k(n))e[r]={},mi(n,e[r]);else if(R(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];k(i)?(o[s]={},mi(i,o[s])):O(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},eT=/^[A-Za-z_$][A-Za-z0-9_$]*$/,rT=t=>`'${String(t).replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/\\r/g,\"\\\\r\").replace(/\\n/g,\"\\\\n\")}'`,Ix=t=>{let e=String(t);return ui(e,[`\n`,\"'\"])?\"`\"+e.replace(/\\\\/g,\"\\\\\\\\\").replace(/`/g,\"\\\\`\").replace(/\\$\\{/g,\"\\\\${\")+\"`\":\"'\"+e.replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/\\r/g,\"\\\\r\")+\"'\"},yi=(t={},e=0)=>{if(t===null||typeof t!=\"object\"||t instanceof RegExp)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=eT.test(s)?s:rT(s);if(o+=`${n} ${a}: `,i instanceof RegExp)o+=String(i);else if(R(i)){o+=`[\n`;for(let c of i)c instanceof RegExp?o+=`${n} ${String(c)},\n`:j(c)&&c!==null?o+=`${n} ${yi(c,e+2)},\n`:w(c)?o+=`${n} ${Ix(c)},\n`:o+=`${n} ${c},\n`;o+=`${n} ]`}else j(i)?o+=yi(i,e+1):w(i)?o+=Ix(i):o+=i;o+=`,\n`}return o+=`${n}}`,o},nT=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/,/^(?:\\*\\s*)?[a-zA-Z_$][\\w$]*\\s*\\((?:[^()]|\\([^()]*\\))*\\)\\s*\\{[\\s\\S]*\\}$/],oT=/^[\"[{]/,sT=/^(export|import)\\s/,Ge=t=>{if(!t)return!1;let e=t.trim();if(e===\"\"||e===\"{}\"||e===\"[]\")return!1;let r=e.includes(\"=>\");if(!r&&e.charCodeAt(0)!==40&&!e.startsWith(\"function\")&&!e.startsWith(\"async\")&&!(e.charCodeAt(e.length-1)===125&&e.includes(\"(\"))||sT.test(e)||!nT.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!r||o===91||oT.test(e)&&!r)},Ux=t=>(0,eval)(t),iT=(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 d=t.indexOf(`\n`,s);s=d===-1?c:d;continue}if(u===\"/\"&&t[s+1]===\"*\"){let d=t.indexOf(\"*/\",s+2);s=d===-1?c:d+2;continue}if(u==='\"'||u===\"'\"||u===\"`\"){let d=u;for(s++;s<c;){if(t[s]===\"\\\\\"){s+=2;continue}if(t[s]===d){s++;break}if(d===\"`\"&&t[s]===\"$\"&&t[s+1]===\"{\"){s+=2;let h=1;for(;s<c&&h>0;)t[s]===\"{\"?h++:t[s]===\"}\"&&h--,s++;continue}s++}continue}if(u===\"{\"){i++,s++;continue}if(u===\"}\"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let d=s,h=0,p=s;for(;p<c;){let g=t[p];if(g==='\"'||g===\"'\"||g===\"`\"){let m=g;for(p++;p<c;){if(t[p]===\"\\\\\"){p+=2;continue}if(t[p]===m){p++;break}p++}continue}if(g===\"(\"||g===\"[\"||g===\"{\"){h++,p++;continue}if(g===\")\"||g===\"]\"||g===\"}\"){if(h===0)break;h--,p++;continue}if(h===0&&(g===\";\"||g===`\n`)){p++;break}p++}o.push([d,p]),s=p;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},hl=(t,e,r,n)=>{let o=String(t).trimStart();if(/^(export|import)\\s/.test(o))return t;try{return r.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\\s(]/.test(f))try{l=r.window.eval(\"(async \"+f+\")\")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let h=iT(f,u);if(!h||h===f)break;f=h;try{l=r.window.eval(\"(\"+f+\")\");break}catch(p){let g=/Identifier '([^']+)' has already been declared/.exec(p&&p.message||String(p));if(!g||g[1]!==u)break}}}if(!l&&/Unexpected (token '\\{'|identifier)/.test(i))try{let f=r.window.eval(\"({\"+t+\"})\");if(f&&typeof f==\"object\"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]==\"function\"&&(l=f[u[0]])}}catch{}return l||(typeof console<\"u\"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \\u2014 `+(n?\"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: \":\"value will be left as a string. Reason: \")+i+`.\nFirst 200 chars of source: `+String(t).slice(0,200)),t)}},Vx=1,Kp=2,vn=new WeakMap,aT=/^(async\\s+)?function(?![\\w$])\\s*(\\*)?\\s*([A-Za-z_$][\\w$]*)?\\s*\\((?:[^()'\"`/]|\\([^()'\"`/]*\\))*\\)\\s*\\{/,cT=/^(async\\s+)?[A-Za-z_$][\\w$]*\\s*=>/,lT=/^(async\\s*)?\\((?:[^()'\"`/]|\\([^()'\"`/]*\\))*\\)\\s*=>/,fT=/^(async\\s+)?([A-Za-z_$][\\w$]*)\\s*\\((?:[^()'\"`/]|\\([^()'\"`/]*\\))*\\)\\s*\\{/,uT=new Set([\"if\",\"for\",\"while\",\"switch\",\"catch\",\"with\",\"do\",\"return\",\"typeof\",\"void\",\"delete\",\"new\",\"in\",\"of\",\"instanceof\",\"function\",\"class\",\"const\",\"let\",\"var\",\"await\",\"yield\",\"import\",\"export\",\"try\",\"else\",\"throw\",\"case\",\"default\",\"break\",\"continue\",\"debugger\",\"finally\",\"super\",\"this\",\"null\",\"true\",\"false\",\"async\",\"get\",\"set\",\"static\"]),Lx=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,dT=(t,e,r)=>{let n=t.indexOf(e,r);for(;n!==-1;){let o=n+e.length;if((n===0||!Lx(t.charCodeAt(n-1)))&&(o>=t.length||!Lx(t.charCodeAt(o))))return!0;n=t.indexOf(e,o)}return!1},$x=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},pT=t=>{let e=t,r=0;for(;r<e.length&&e.charCodeAt(r)<=32;)r++;r&&(e=e.slice(r));let n=aT.exec(e);if(n){if(n[2]||$x(e)!==125)return null;let o=n[3]||\"\";return o&&dT(e,o,n[0].indexOf(\"(\"))||e.indexOf(\"arguments.callee\")!==-1?null:{src:t,name:o,kind:n[1]?Kp:Vx,async:!!n[1],fn:void 0}}return n=cT.exec(e)||lT.exec(e),n?{src:t,name:\"\",kind:Kp,async:!!n[1],fn:void 0}:(n=fT.exec(e),n&&!uT.has(n[2])&&$x(e)===125?e.indexOf(\"arguments.callee\")!==-1?null:{src:t,name:n[2],kind:Kp,async:!!n[1],fn:void 0}:null)},Mx=t=>t.index===-1?`\"${t.key}\"`:`array index ${t.index} (prop \"${t.key}\")`,gl=t=>{let e=hl(t.src,Mx(t),t.opts,!0),r=null;return typeof e==\"function\"?r=e:(t.value=e,typeof e!=\"string\"&&typeof console<\"u\"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${Mx(t)} did not evaluate to a function \\u2014 the lazily revived function returns that value.\nFirst 200 chars of source: `+String(t.src).slice(0,200))),t.fn=r,t.opts=null,r},hT=(t,e,r)=>Reflect.construct(t,e,r);mT={length:{get(){let t=vn.get(this);if(!t)return 0;let e=t.fn===void 0?gl(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=vn.get(this);return t?t.name:\"\"},configurable:!0},toString:{value:gT,writable:!0,configurable:!0}},yT=Object.getPrototypeOf(async function(){}),bT=t=>{let e;return t.kind===Vx?e=function(){let r=t.fn===void 0?gl(t):t.fn;return r===null?t.value:new.target?hT(r,arguments,new.target):r.apply(this,arguments)}:e={lazy(){let r=t.fn===void 0?gl(t):t.fn;return r===null?t.value:r.apply(this,arguments)}}.lazy,vn.set(e,t),Object.defineProperties(e,mT),t.async&&Object.setPrototypeOf(e,yT),e},Fx=(t,e,r,n)=>{let o=pT(t);return o?(o.key=e,o.index=r,o.opts=n,bT(o)):hl(t,r===-1?`\"${e}\"`:`array index ${r} (prop \"${e}\")`,n)},Xp=t=>typeof t==\"function\"&&vn.has(t),Ie=t=>{let e=vn.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},En=t=>{let e=typeof t==\"function\"?vn.get(t):void 0;return e?(e.fn===void 0?gl(e):e.fn)===null:!1},_T=new Set([\"components\",\"pages\",\"functions\",\"methods\",\"snippets\",\"app\",\"globalScope\"]),xT={window:{eval:Ux}},_e=(t,e={},r=xT)=>{if(!t||typeof t!=\"object\")return e;(!r||!r.window||typeof r.window.eval!=\"function\")&&(r={...r,window:{eval:Ux}});let n=r.lazy===!0,o=r.lazy===\"context\",s=(a,c,l)=>n||o&&(a===t?_T.has(c):l),i=[[t,e,n]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let u=a[f];if(w(u))Ge(u)?c[f]=l?Fx(u,f,-1,r):hl(u,`\"${f}\"`,r):c[f]=u;else if(R(u)){let d=c[f]=[],h=s(a,f,l);for(let p=0;p<u.length;p++){let g=u[p];if(w(g))d.push(Ge(g)?h?Fx(g,f,p,r):hl(g,`array index ${p} (prop \"${f}\")`,r):g);else if(k(g)){let m=jx(g);if(m)d.push(m);else{let b={};d.push(b),i.push([g,b,h])}}else d.push(g)}}else if(k(u)){let d=jx(u);if(d){c[f]=d;continue}let h=c[f]&&typeof c[f]==\"object\"&&!R(c[f])?c[f]:c[f]={};i.push([u,h,s(a,f,l)])}else c[f]=u}}return e},zx=\"Set\",Hx=\"Map\",Wx=\"RegExp\",qx=\"WeakMap\",Kx=\"WeakSet\",Nx=t=>{let e=Object.keys(t);return e.length===1&&e[0]===\"__type\"},gi=(t,e)=>{if(!t||typeof t!=\"object\")return t;let r=s=>gi(s,e||(e=new WeakMap));if(t.__type===zx&&R(t.values))return new Set(t.values.map(r));if(t.__type===Hx&&R(t.entries))return new Map(t.entries.map(s=>R(s)?[r(s[0]),r(s[1])]:s));if(t.__type===qx&&Nx(t))return new WeakMap;if(t.__type===Kx&&Nx(t))return new WeakSet;if(t.__type===Wx&&w(t.source))try{return new RegExp(t.source,w(t.flags)?t.flags:\"\")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let n=!1;if(R(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=gi(t[i],e),s[i]!==t[i]&&(n=!0);return n||e.set(t,t),n?s:t}let o={};e.set(t,o);for(let s of Object.keys(t))o[s]=gi(t[s],e),o[s]!==t[s]&&(n=!0);return n||e.set(t,t),n?o:t},jx=t=>{if(!t||typeof t!=\"object\")return null;let e=t.__type;if(e!==Wx&&e!==zx&&e!==Hx&&e!==qx&&e!==Kx)return null;let r=gi(t);return r===t?null:r},bi=t=>{if(!t||typeof t!=\"object\")return t;let e={},r=[];for(let i of Object.keys(t)){let a=t[i];w(a)&&Ge(a)?r.push([i,a]):e[i]=gi(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=C.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]=C.eval(`(function(__gs__) { ${l}\n return (${c}); })`)(e)}catch{try{e[a]=C.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of r)if(!n(i))try{e[i]=C.eval(`(${a})`)}catch{e[i]=a}return e},Zp=(t,e={verbose:!0})=>{try{return t?C.eval(\"(\"+t+\")\"):{}}catch(r){e.verbose&&console.warn(r)}},Jp=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),ml=t=>{for(let e in t)return!1;return!0},Qp=t=>k(t)&&ml(t),th=()=>Object.create(null),_i=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Cn(s)||s===\"constructor\"||s===\"prototype\"||e[s]!==void 0&&(t[s]=e[s]);return t},An=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Cn(o)||o===\"constructor\"||o===\"prototype\"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},Wt=(t,e,r={},n=new WeakMap)=>{if(!j(t)||!j(e)||Xt(t)||Xt(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&&Cn(a)||a===\"constructor\"||a===\"prototype\")continue;let c=t[a],l=e[a];Xt(l)?t[a]=l:j(c)&&j(l)?t[a]=Wt(c,l,r,n):l!==void 0&&(t[a]=l)}return t},yl=(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)||!yl(t[i],e[i],r))return!1}return!0},wT=new Set([\"node\",\"__ref\"]),eh=(t,e,r=wT)=>{if(t===e)return!0;if(!j(t)||!j(e)||Xt(t)||Xt(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(Xt(l)||Xt(f)){if(l!==f)return!1}else if(j(l)&&j(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},rh=(t,e)=>{if(e==null)return t;if(Zt(e)(\"string\",\"number\"))delete t[e];else if(R(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},bl=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]=bl(t[r]));return e},nh=(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},oh=(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]},sh=(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},ih=(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},ah=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(Dx===\"test\"||Dx===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",r),!0},ch=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)},lh=(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 xi,wi,Si,_l=U(()=>{\"use strict\";pr();xi=(function(){let t=0;function e(){return t++,t}return e})(),wi=xi,Si=(t,e,r)=>(lt(r,t)||r||t.key||xi()).toString()});var Le,fh,Fr,xl,uh,dh,ph,Nr,hh,Tn,pt,wl=U(()=>{\"use strict\";Le=\"production\",fh=Le,Fr=(t=Le)=>t===\"production\",xl=(t=Le)=>t===\"testing\"||t===\"test\",uh=xl,dh=(t=Le)=>t===\"staging\",ph=(t=Le)=>t===\"local\",Nr=(t=Le)=>t===\"development\"||t===\"dev\"||t===\"local\",hh=(t,e=Le)=>e[t],Tn=(t=Le)=>!Fr(t),pt=t=>{let e=t&&\"env\"in t?t.env:typeof process<\"u\"&&process.env?\"production\":void 0;if(e&&e!==\"production\")return!0;let r=t&&\"hostname\"in t?t.hostname:typeof location<\"u\"?location.hostname:void 0;return typeof r==\"string\"&&r?r===\"localhost\"||r===\"127.0.0.1\"||r.endsWith(\".localhost\"):!1}});function ki(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 yh(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 gh,mh,ST,vi,Co,Eo,Rt,On=U(()=>{\"use strict\";gh=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},mh=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}}},ST=/^\\s*(?:async\\s+)?(?:function\\b|\\([^)]*\\)\\s*=>|[a-zA-Z_$][\\w$]*\\s*=>)/,vi=t=>ST.test(t),Co=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Eo=(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},Rt=(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 bh,Gx=U(()=>{\"use strict\";Dt();pr();bh=(t,e)=>{let{__ref:r}=t,n=t.if;if(O(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\"?lt(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var _h,xh,Yx=U(()=>{\"use strict\";_h=(t,...e)=>{t&&e.map(r=>console.log(r))},xh=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Ch(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 Eh(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 wh,Sh,kh,vh,Xx=U(()=>{\"use strict\";Dt();ni();wh=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),Sh=(t,e,r=365)=>{if(Pt(et)||Pt(et.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;et.cookie=`${t}=${e};${o};path=/`},kh=t=>{if(Pt(et)||Pt(et.cookie))return;let e=`${t}=`,n=decodeURIComponent(et.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\"\"},vh=t=>{Pt(et)||Pt(et.cookie)||(et.cookie=t+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}});var Ao,Zx,Ah,Th=U(()=>{\"use strict\";Ao={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\"])},Zx=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\"]),Ah=t=>Ao.body.has(t)});var Oh,Jx,To,xe,Oo,Ai,Ye,Rh,Sl,Ti,Ph,Oi,kl,vl,Ri,Cl,Ro,kT,Xe,Qx,Ci,Pi,Dh,Ei,Ih,Lh,El,Al,Tl,Ol,Rl,Pl,tw,Dl=U(()=>{\"use strict\";ko();$h();pr();Dt();Oh=\"production\",Jx=t=>t.sourcemap!==!1&&Oh!==\"production\",To=t=>{if(!t)return[];let e=[],r=t.extends;r&&(R(r)?e.push(...r):e.push(r));let n=t.extend;return n&&(R(n)?e.push(...n):e.push(n)),e},xe=t=>{if(!R(t))return t;let e=[];for(let r=t.length-1;r>=0;r--){let n=t[r];e.push(R(n)?xe(n):n)}return e},Oo=t=>{if(t.includes(\"+\"))return t.split(\"+\").filter(Ze);if(t.includes(\"_\")){let[e]=t.split(\"_\");return[e]}if(t.includes(\".\")&&!Ze(t.split(\".\")[1])){let[e]=t.split(\".\");return[e]}return[t]},Ai=(t,e,r)=>{let n=[],o=Oo(r);o&&(n=[...o]);let s=xe(To(t));return s.length&&(n=[...n,...s]),n},Ye=(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},Rh=(t,e)=>{if(!t)return e;let{extends:r}=e,n=R(r)?r:[r],o=R(t)?t:[t];return{...e,extends:wo(o,n)}},Sl=()=>Math.random().toString(36).substring(2),Ti={},Ph={},Oi=t=>Ti[t.__hash],kl=(t,e)=>{let r=Sl();return w(t)||(t.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(Ti[r]=e),e},vl=(t,e)=>t.__hash?e.concat(Oi(t)):kl(t,e),Ri=(t,e,r,n=new Set,o,s)=>{for(let i of t)R(i)?Ri(i,e,r,n,o,s):Ro(i,e,r,n,o,void 0,s);return e},Cl=(t,e,r,n=new Set,o,s,i)=>{let a=To(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a.length&&Ro(xe(a),e,r,n,o,s,i),e},Ro=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(R(t))return Ri(t,e,r,n,o,i);let a=s;return w(t)?(a=t,t=Pi(t,r)):i&&k(t)&&i.has(t)&&(a=i.get(t)),n.has(t)||(n.add(t),t?.extends||t?.extend?Cl(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a))),e},kT=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"extend\",\"childExtends\",\"childExtendsRecursive\"]),Xe=(t,e,r,n,o)=>{e=st(e);for(let s in e){if(kT.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?k(a)&&!R(a)?(r[s]=r[s]||{},Qx(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(k(i)&&k(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];Ze(s)?t[s]=Xe(i,a,c,n,l):Xe(i,a,c,n,l)}if(s===\"extends\"||s===\"childExtends\"||s===\"childExtendsRecursive\"){if(R(i)&&R(a))t[s]=i.concat(a);else if(R(i)&&k(a)){let c=Xe({},i);t[s]=Xe(c,a)}}}}return t},Qx=(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];k(s)&&!R(s)?(t[o]=t[o]||{},Qx(t[o],s,r,n)):t[o]=r}}},Ci=(t,e,r)=>t.reduce((n,o,s)=>{let i=st(o),a=r?r[s]:void 0;return Xe(n,i,e,a)},{}),Pi=(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&&(Oh===\"test\"||Oh===\"development\")&&console.warn(\"Extend is string but component was not found:\",t);return}return t},Dh=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Ei=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Oi(t)||[];let s=Ro(t,[],e,new Set,r,void 0,n);return r?s:vl(t,s)},Ih=(t,e)=>{if(!t)return e;let r=R(t)?t:[t];return wo(r,e)},Lh=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Ze(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},El=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=To(t);if(i.length){let a=xe(i),[c,...l]=a,f=typeof c==\"string\"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?Ye([f,...l],t):Ye(a,t)}return Al(t,e,r),Tl(t,e,r),Ol(t,e,r),t.component&&Ye(xe(lt(t.component,t)),t),o.defaultExtends&&Ye(xe(o.defaultExtends),t),So(n.__extends)},Al=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Ye(xe(e.childProps.extends),t),n.__extends},Tl=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Ye(xe(s),t),n.__extends},Ol=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key===\"__text\";return o&&!i&&!s&&Ye(xe(o),t),n.__extends},Rl=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Jx(r),a=i?[...n.__extends]:null,c=So(n.__extends.map((l,f)=>Pi(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let h=c[d],p=a[d];h&&k(h)&&w(p)&&l.set(h,p)}let f=[],u=Ei(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=Ei(c,o);n.__extendsStack=l}return n.__extendsStack},Pl=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Jx(r)){let s={},i=n.__extendsNames||[],a=Ci(o,s,i),c={};Xe(t,a,c,void 0,s),n.__sourcemap=c}else{let s=Ci(o);Xe(t,s)}return t},tw=(t,e,r={})=>(El(t,e,r),Rl(t,e,r),Pl(t,e,r),t)});function Mh(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Fh(t){return Object.keys(t).filter(e=>/^\\d+$/.test(e))}function Nh(t,e,r){let{context:n}=e||{},[o]=Oo(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Ze,$h=U(()=>{\"use strict\";Dl();Dt();Ze=t=>{if(!w(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function ew(t,e){let{props:r,on:n}=e,o=xn(t.split(\"on\")[1]),s=n[o],i=r[t];O(s)?n[o]=(...a)=>{if(s(...a)!==!1&&O(i))return i(...a)}:n[o]=i}var rw=U(()=>{\"use strict\";di();Dt()});function Il(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()&&(O(o)||o!=null&&Co(this.context))){let p=xn(n.slice(2));t.on&&(t.on[p]=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=k(a)||O(a),f=k(c)||O(c);if(l||f)continue;let u=n.charAt(0);if(ow.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let d=jh.test(n)||nw.test(n)||CT(o),h=Lr.has(n);!d&&!h&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Ll(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=O(o)||o!=null&&Co(this.context);if(s&&i){ew(n,t),delete t.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(ow.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=k(c)||O(c),u=k(l)||O(l),d=jh.test(n)||nw.test(n),h=Lr.has(n);(d||h||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function $l(t=this){let e=[];return Il.call(this,t,{cachedKeys:e}),Ll.call(this,t,{cachedKeys:e}),t}function Bh(t={}){return t.on||(t.on={}),t.props||(t.props={}),$l.call(this,t)}function Vh(t,e){this.__element.update({props:t},e)}function Mi(t){let e={update:Vh.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var jh,nw,ow,vT,CT,Li,Di,Uh,$i,Fi,Ni,Ml,Ii,zh,Hh,Wh=U(()=>{\"use strict\";kn();rw();pr();Dt();di();On();jh=/^[A-Z]/,nw=/^\\d+$/,ow=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),vT=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),CT=t=>{if(!t||typeof t!=\"object\"||Array.isArray(t))return!1;for(let e in t)if(vT.has(e)||jh.test(e))return!0;return!1},Li=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return j(n)?{...n}:(o.__propsStack.push(n),{})};Di=t=>Zt(t)(\"string\",\"number\")?{inheritedString:t}:t,Uh=(t,e)=>!t||!e.length?!1:e.includes(t),$i=(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=Di(i);n.unshift(c)}if(s){let c=Di(s);n.unshift(c)}return n};Fi=t=>{let e=new Set;return t.filter(r=>!r||$r.has(r)||e.has(r)?!1:(e.add(r),!0))},Ni=(t,e,r)=>(e.props=t.reduce((n,o)=>{if($r.has(o))return n;for(;O(o);)o=lt(o,e);return nt(n,st(o,{exclude:$r}))},{}),Mi(e),e.props),Ml=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...$i(t,e)]),k(r)?o.push(r):r===\"inherit\"&&e?.props?o.push(e.props):r&&o.push(r),R(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=Fi(o),n.__propsStack},Ii=(t,e)=>{let{__ref:r}=t,n=Ml(t,e);n.length?Ni(n,t):(r.__propsStack=[],t.props={})},zh=function(t,e,r){let{__ref:n}=t;if(n.__if)Ii(t,e);else try{Ii(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),t.props={},n.__propsStack=[]}return Mi(t),t},Hh=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=$i(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Fi(s),n.__propsStack.length&&Ni(n.__propsStack,e),e}});var sw,Fl,Nl,jl,Bl,qh,Ul,Vl,zl,Kh,iw=U(()=>{\"use strict\";Dl();_l();si();Wh();Th();Dt();sw=\"production\",Fl=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=Ao.body.has(r)&&r;return{text:t,tag:n||o||s||\"string\"}},Nl=(t,e,r)=>{if(t===void 0)return(sw===\"test\"||sw===\"development\")&&console.warn(r,\"element is undefined in\",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Zt(t)(\"string\",\"number\")?Fl(t,e,r):O(t)?{props:t}:t},jl=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Bl=(t,e,r,n,o)=>{if(!e)return o;if(dr(e)){let s={key:\":root\",node:e};return o[`${r}_parent`]=s,s}return e},qh=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===\":root\";r?.root||(r.root=o?t:n?.root)},Ul=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Vl=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),zl=(t,e,r)=>{let n=jl(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=Ai(t,e,r),n.path=Ul(t,e,r),n},Kh=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Nl(t,e,r);if(!i)return;let a=Bl(i,e,r,n,o),c=Si(i,a,r);zl(i,a,c);let l=Li(i,a,c),f=Vl(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Gh,Hl,Wl,ql,Kl,Yh,Gl,Xh,Zh,Jh,Qh,aw,ji,hr,Je,cw=U(()=>{\"use strict\";ko();kn();pr();Dt();Gh=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Zt(o)(\"string\",\"number\")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Hl=(t,e)=>{if(!t.includes(\"~/\"))return;if(t.split(\"~/\").length>1)return e.root},Wl=(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},ql=(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]},Kl=(t,e,r={})=>{let o=t.__ref.__state;if(!Gl(t))return;let s=Hl(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll(\"~/\",\"\");else{let a=Wl(o,e.state);a&&(i=a,o=o.replaceAll(\"../\",\"\"))}if(i)return ql(o,i,r)},Yh=(t,e)=>{let r=t.__ref,n=Kl(t,e);if(n===void 0)return t.state;if(Zt(n)(\"object\",\"array\"))return st(n);if(Zt(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},Gl=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Zt(r)(\"number\",\"string\",\"boolean\"))},Xh=function(t){return j(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Zh=(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},Jh=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=st(n,wn),s={[t.key]:o},i=k(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?li(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Qh=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){nt(t,e,wn);return}(o?An:Wt)(t,e,wn)},aw=\"__polyglotSeededKeys\",ji=t=>{if(!k(t))return new Set;let e=t[aw];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,aw,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},hr=(t,e,r)=>ji(t).has(e)?!0:!k(r)||r[e]===void 0,Je=(t,e)=>(ji(t).add(e),e)});var ET,tg,lw=U(()=>{\"use strict\";ET=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},tg=(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&&!ET(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var fw,Yl,gr,Xl,eg,rg=U(()=>{\"use strict\";Dt();On();fw=(t,e)=>{let r=\"on\"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Yl=(t,e,r,n,o)=>{if(t=Eo(t,e),!!O(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}},gr=(t,e,r)=>{if(!e)throw new Error(\"Element is required\");Rt(t,e,r);let n=fw(t,e);if(n){let{state:o,context:s}=e;return Yl(n,e,o,s,r)}},Xl=(t,e,r,n,o,s)=>{if(t=Eo(t,r),!!O(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}},eg=(t,e,r,n)=>{Rt(t,r,e,n);let o=fw(t,r);if(o){let{state:s,context:i}=r;return Xl(o,e,r,s,i,n)}}});var ng,Bi,og=U(()=>{\"use strict\";ng={},Bi={}});var gw={};L(gw,{restAdapter:()=>hw,setup:()=>MT});var AT,pw,uw,TT,OT,RT,dw,mr,PT,DT,IT,sg,LT,$T,MT,hw,mw=U(()=>{\"use strict\";AT=(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()},pw=t=>Object.prototype.toString.call(t).slice(8,-1),uw=[\"auto\",\"json\",\"text\",\"blob\",\"arrayBuffer\",\"stream\",\"response\"],TT={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},OT=t=>{let e=t.headers.get(\"content-type\");return e&&e.includes(\"json\")?t.json():t.text()},RT=async t=>{let e=await t.text(),r=t.headers.get(\"content-type\");if(e&&r&&r.includes(\"json\"))try{return JSON.parse(e)}catch{}return e},dw=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,mr=async(t,e,r)=>{let n=r??\"auto\";if(!uw.includes(n))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType \"${n}\" \\u2014 use one of: ${uw.join(\", \")}`);let o=await globalThis.fetch(t,e);if(n===\"auto\"){let s=await OT(o);return{data:s,error:o.ok?null:dw(s,o),status:o.status}}if(!o.ok){let s=await RT(n===\"response\"?o.clone():o);return{data:n===\"response\"?o:s,error:dw(s,o),status:o.status}}return{data:await TT[n](o),error:null,status:o.status}},PT=[\"FormData\",\"Blob\",\"File\",\"URLSearchParams\",\"ReadableStream\",\"ArrayBuffer\"],DT=t=>t!==null&&typeof t==\"object\"&&(ArrayBuffer.isView(t)||PT.includes(pw(t))),IT=t=>Array.isArray(t)?t:typeof t.entries==\"function\"?t.entries():Object.entries(t),sg=(...t)=>{let e={},r=new Map;for(let n of t)if(n)for(let[o,s]of IT(n)){let i=o.toLowerCase();if(r.has(i)&&delete e[r.get(i)],s==null){r.delete(i);continue}r.set(i,o),e[o]=s}return e},LT={\"Content-Type\":\"application/json\"},$T={\"Content-Type\":void 0},MT=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error(\"@symbo.ls/fetch rest: url is required\");return hw(t,e,r,n)},hw=(t,e={},r,n={})=>{let o=r?.token||null,s=()=>o?{Authorization:`Bearer ${o}`}:null,i=u=>sg(e,s(),u),a=u=>({...n,...u}),c=(u,d,h)=>{if(!DT(d))return a({method:u,headers:sg(e,s(),LT,h),body:JSON.stringify(d)});let p={method:u,headers:sg(e,s(),$T,h),body:d};return pw(d)===\"ReadableStream\"&&(p.duplex=\"half\"),a(p)},l=(u,d)=>{let h=d||t;if(u&&(u.startsWith(\"http://\")||u.startsWith(\"https://\")))return u;let p=u&&!u.startsWith(\"/\")?\"/\":\"\";return`${h}${p}${u||\"\"}`};return{name:\"rest\",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await mr(l(r.sessionUrl,r.baseUrl),a({headers:i()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error(\"rest: auth.signInUrl not configured\");let d=await mr(l(r.signInUrl,r.baseUrl),c(\"POST\",u));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await mr(l(r.signOutUrl,r.baseUrl),a({method:\"POST\",headers:i()})),o=null,{error:null}),select:({from:u,params:d,select:h,limit:p,offset:g,order:m,single:b,headers:_,baseUrl:y,responseType:x})=>{let S={...d};return h&&(S.select=h),p&&(S.limit=p),g&&(S.offset=g),b&&(S.single=!0),m&&(typeof m==\"string\"?S.order=m:Array.isArray(m)?S.order=m.map(v=>`${v.by}:${v.asc===!1?\"desc\":\"asc\"}`).join(\",\"):m.by&&(S.order=`${m.by}:${m.asc===!1?\"desc\":\"asc\"}`)),mr(AT(y||t,u||\"\",S),a({headers:i(_)}),x)},rpc:({from:u,params:d,headers:h,baseUrl:p,responseType:g})=>mr(l(`rpc/${u}`,p),c(\"POST\",d,h),g),insert:({from:u,data:d,headers:h,baseUrl:p,responseType:g})=>mr(l(u,p),c(\"POST\",d,h),g),update:({from:u,data:d,params:h,method:p,headers:g,baseUrl:m,responseType:b})=>{let _=h?.id||d?.id,y=_?`${u}/${_}`:u;return mr(l(y,m),c(p||\"PATCH\",d,g),b)},upsert:({from:u,data:d,params:h,method:p,headers:g,baseUrl:m,responseType:b})=>{let _=h?.id||d?.id,y=_?`${u}/${_}`:u;return mr(l(y,m),c(p||\"PUT\",d,g),b)},delete:({from:u,params:d,headers:h,baseUrl:p,responseType:g})=>{let m=d?.id,b=m?`${u}/${m}`:u;return mr(l(b,p),a({method:\"DELETE\",headers:i(h)}),g)}}}});var bw={};L(bw,{localAdapter:()=>yw,setup:()=>NT});var Zl,FT,NT,yw,_w=U(()=>{\"use strict\";Zl=(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},FT=(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}},NT=async({data:t,...e})=>yw(t,e),yw=(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,d,h)=>{let p=n[f];if(p)for(let g of p)g(d,h,{event:u,table:f})},l=Date.now();return{name:\"local\",store:r,select:async({from:f,params:u,...d})=>{let p=i(f).filter(g=>Zl(g,u));return FT(p,d)},insert:async({from:f,data:u})=>{let d=i(f),p=(Array.isArray(u)?u:[u]).map(g=>{let m={id:g.id||++l,...g};return d.push(m),m});a(f);for(let g of p)c(f,\"INSERT\",g,null);return{data:Array.isArray(u)?p:p[0],error:null}},update:async({from:f,data:u,params:d})=>{let h=i(f),p=[];for(let g=0;g<h.length;g++)if(Zl(h[g],d)){let m={...h[g]};Object.assign(h[g],u),p.push(h[g]),c(f,\"UPDATE\",h[g],m)}return a(f),{data:p,error:null}},upsert:async({from:f,data:u,params:d})=>{let h=i(f),p=Array.isArray(u)?u:[u],g=[];for(let m of p){let b=d||(m.id!==void 0?{id:m.id}:null),_=b?h.findIndex(y=>Zl(y,b)):-1;if(_>-1){let y={...h[_]};Object.assign(h[_],m),g.push(h[_]),c(f,\"UPDATE\",h[_],y)}else{let y={id:m.id||++l,...m};h.push(y),g.push(y),c(f,\"INSERT\",y,null)}}return a(f),{data:Array.isArray(u)?g:g[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),h=[];for(let p=d.length-1;p>=0;p--)Zl(d[p],u)&&(h.push(d[p]),d.splice(p,1),c(f,\"DELETE\",null,h[h.length-1]));return a(f),{data:h,error:null}},subscribe:({from:f,on:u},d)=>{n[f]||(n[f]=[]);let h=(p,g,m)=>{u&&u!==\"*\"&&u!==m.event||d(p,g,m)};return n[f].push(h),()=>{let p=n[f].indexOf(h);p>-1&&n[f].splice(p,1)}}}}});var of={};L(of,{createAdapter:()=>HT,default:()=>eO,executeFetch:()=>Gi,fetchPlugin:()=>pg,initAdapterAuth:()=>rf,parseDuration:()=>zi,queryClient:()=>tO,registerAdapter:()=>zT,resolveDb:()=>kw});var jT,BT,Jl,Ui,Ql,Vi,UT,VT,zT,HT,kw,zi,qt,vw,Po,WT,Ki,Hi,Wi,tf,fg,ef,qT,xw,ig,Cw,Ew,Do,ww,KT,Sw,GT,nf,cg,Aw,rf,ug,we,$e,qi,dg,YT,lg,Rn,Qe,jr,XT,ZT,JT,ag,QT,Gi,tO,pg,eO,Yi=U(()=>{\"use strict\";P();jT=[\"select\",\"rpc\",\"insert\",\"update\",\"upsert\",\"delete\",\"subscribe\"],BT={rest:()=>Promise.resolve().then(()=>(mw(),gw)),local:()=>Promise.resolve().then(()=>(_w(),bw))},Jl=Symbol.for(\"@symbo.ls/fetch:CUSTOM_ADAPTERS\"),Ui=(()=>{if(typeof globalThis<\"u\"&&globalThis[Jl])return globalThis[Jl];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Jl,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Jl]}catch{}return t})(),Ql=Symbol.for(\"@symbo.ls/fetch:PENDING_ADAPTERS\"),Vi=(()=>{if(typeof globalThis<\"u\"&&globalThis[Ql])return globalThis[Ql];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Ql,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ql]}catch{}return t})(),UT=5e3,VT=t=>new Promise(e=>{if(Ui[t])return e(Ui[t]);let r=Vi[t]||(Vi[t]=[]),n=!1,o=()=>{n||(n=!0,e(Ui[t]||null))};r.push(o),setTimeout(o,UT)}),zT=(t,e)=>{Ui[t]=e;let r=Vi[t];if(r&&r.length){Vi[t]=[];for(let n of r)n()}},HT=t=>{let e={};for(let r of jT)t[r]&&(e[r]=t[r]);return e.name=t.name||\"custom\",e},kw=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=Ui[n]||BT[n];if(!o&&(o=await VT(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)},zi=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},qt=new Map,vw=new Map,Po=new Map,WT=(t,e,r)=>{if(t.cache?.key)return t.cache.key;let n=GT(t.params),o=r?`${r}:`:\"\",s=`${t.from}:${t.method}:${o}${JSON.stringify(n||\"\")}`;return e?`${s}:${e}`:s},Ki=t=>qt.get(t)||null,Hi=(t,e,r)=>{let n=qt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};qt.set(t,o);let s=vw.get(t);if(s)for(let i of s)O(i)&&i(o);return o},Wi=t=>{if(t){let e=qt.get(t);e&&(e.stale=!0);return}for(let[,e]of qt)e.stale=!0},tf=t=>{if(t){qt.delete(t);return}qt.clear()},fg=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:zi(t),gcTime:3e5}:{staleTime:zi(t.stale||t.staleTime)||6e4,gcTime:zi(t.gc||t.gcTime||t.expire)||3e5,key:t.key},ef=null,qT=()=>{ef||(ef=setInterval(()=>{let t=Date.now();for(let[e,r]of qt){let n=vw.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&qt.delete(e)}},3e4),ef.unref&&ef.unref())};qT();xw=3,ig=t=>Math.min(1e3*2**t,3e4),Cw=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:xw,delay:ig}:typeof e==\"number\"?{count:e,delay:ig}:{count:e.count??xw,delay:O(e.delay)?e.delay:typeof e.delay==\"number\"?()=>e.delay:ig}},Ew=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=O(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=O(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Do={focus:new Set,online:new Set},ww=!1,KT=()=>{if(ww||typeof window>\"u\")return;ww=!0;let t=()=>{for(let r of Do.focus)r()},e=()=>{for(let r of Do.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&t()}),window.addEventListener(\"focus\",t),window.addEventListener(\"online\",e)},Sw=(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(k(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},GT=t=>(!t||O(t),t),nf=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},cg=(t,e)=>{let n=(t?.state?.root||e?.state?.root)?.__fetchScope;return n?String(n):void 0},Aw=(t,e,r)=>{let n;if(!t)n=void 0;else if(O(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=O(s)?s(e,e.state):s}}return n},rf=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)})},ug=async(t,e)=>{if(O(t.select))return t.auth!==!1&&await rf(t,e),t;if(t.__resolved)return t.auth!==!1&&await rf(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=kw(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 rf(r,e),r):null},we=(t,e,...r)=>{let n=O(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},$e=(t,e,r,...n)=>{let o=t&&O(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},qi=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},dg=t=>t.responseType===\"stream\"||t.responseType===\"response\",YT=[\"Blob\",\"File\",\"ArrayBuffer\",\"ReadableStream\",\"Response\"],lg=t=>t!==null&&typeof t==\"object\"&&(ArrayBuffer.isView(t)||YT.includes(Object.prototype.toString.call(t).slice(8,-1))),Rn=(t,e,r,n={})=>{if(!r&&lg(e))return;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)&&!lg(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})}},Qe=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},jr=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=cg(e,r);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&cg(e,r)===i;if(t.enabled===!1||O(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||O(t.skip)&&t.skip(e,e.state))return;let l=await ug(o,r);if(!l||!c())return;let{from:f,method:u,query:d,params:h,cache:p,transform:g,single:m,auth:b,fields:_,as:y,limit:x,offset:S,order:v,headers:E,baseUrl:D,responseType:F,page:A,cursor:N,getNextPageParam:At,getPreviousPageParam:Vt,infinite:kt,placeholderData:it,initialData:M,select:H,keepPreviousData:gt}=t,B=w(H)?H:void 0;if(d&&O(e.getQuery)){let ct=e.getQuery(l.name||\"paths\");ct&&(B=ct.select||ct.length&&ct.join(\",\")||B)}let ht=Aw(h,e,r),$=dg(t)?null:fg(p),q=Cw(t),mt=nf(e,r),X=mt?`:${mt}`:\"\",Y=i?`${i}:`:\"\",V=$?p?.key||`${f}:${u}:${Y}${JSON.stringify(ht||\"\")}${kt?\":infinite\":\"\"}${A?\":p\"+JSON.stringify(A):\"\"}${X}`:null;if(!s.__fetchInitialized&&V&&(s.__fetchInitialized=!0,M!==void 0)){let ct=O(M)?M():M;Hi(V,ct,null)}if((u===\"select\"||u===\"rpc\")&&V&&$){let ct=Ki(V);if(ct&&!ct.error){let Q=Date.now()-ct.time,vt=ct.stale||Q>($.staleTime||0),K=ct.data;if(O(H)&&(K=H(K,e,e.state)),g&&(K=g(K,e,e.state)),!c())return;if(Rn(e,K,y),!vt){Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(it!==void 0){let Q=O(it)?it(e,e.state):it;Q!==void 0&&Rn(e,Q,y)}}if(V&&Po.has(V)&&!n.force){let ct=Po.get(V);try{let Q=await Promise.race([ct,new Promise((vt,K)=>setTimeout(()=>K(\"DEDUP_TIMEOUT\"),15e3))]);if(!c())return;if(Q?.data!==void 0){let vt=Q.data;if(O(H)&&(vt=H(vt,e,e.state)),g&&(vt=g(vt,e,e.state)),!c())return;Rn(e,vt,y),we(e,\"onFetchComplete\",vt),$e(t,e,\"onFetchComplete\",vt)}}catch{if(!c())return}return}let Tt=!Ki(V)?.data;Qe(e,{isFetching:!0,isLoading:Tt,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),we(e,\"onFetchStart\"),$e(t,e,\"onFetchStart\");let Nt=r?.analyze?.emitNetwork,ho=Nt?typeof performance<\"u\"?performance.now():Date.now():0;Nt&&Nt({phase:\"start\",mode:\"query\",from:f,method:u,cacheKey:V,lang:mt});let Xs=Ew(async()=>{if(!c())return;if(b!==!1&&l.auth!==!1&&l.getSession){let K=await l.getSession();if(!c())return;if(b===!0&&!K){let zt={message:\"Not authenticated\"};return Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:zt,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",zt),$e(t,e,\"onFetchError\",zt),{data:null,error:zt}}}let ct=l[u];if(!O(ct))return{data:null,error:{message:`Method \"${u}\" not found on adapter`}};let Q={from:f,select:B,params:ht,single:m,limit:x,offset:S,order:v,headers:E,baseUrl:D};F!==void 0&&(Q.responseType=F);let vt=nf(e,r);if(vt&&(Q.headers={...Q.headers,\"Accept-Language\":vt}),A!==void 0){if(k(A))A.offset!==void 0&&(Q.offset=A.offset),A.limit!==void 0&&(Q.limit=A.limit),A.cursor!==void 0&&(Q.params={...Q.params,cursor:A.cursor});else if(typeof A==\"number\"){let K=t.pageSize||x||20;Q.offset=(A-1)*K,Q.limit=K}}if(N!==void 0&&(Q.params={...Q.params,cursor:N}),u===\"insert\"||u===\"update\"||u===\"upsert\"){let K;if(_===!0||t.on===\"submit\")K=qi(e);else if(R(_)){let zt=qi(e);K={};for(let ep of _)K[ep]=zt[ep]}else e.state?.parse?K=e.state.parse():k(e.state)&&(K={...e.state});g&&(K=g(K,e,e.state)),Q.data=K}if(u===\"rpc\"){let K=ht;if(t.on===\"submit\"){let zt=qi(e);K=t.transformParams?t.transformParams(zt,e,e.state):zt}Q.params=K}if(u===\"subscribe\"){let K=l.subscribe({from:f,params:ht,on:t.subscribeOn},(zt,ep,w$)=>{c()&&(Rn(e,zt,y),we(e,\"onFetchComplete\",zt),$e(t,e,\"onFetchComplete\",zt))});return c()?(s.__unsubscribe=K,{data:null,error:null,subscribed:!0}):(O(K)&&K(),{data:null,error:null,subscribed:!0})}return ct(Q)},q);V&&Po.set(V,Xs);try{let ct=await Xs;if(!c()||ct?.subscribed)return;let{data:Q,error:vt}=ct||{};if(vt){V&&Hi(V,null,vt),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:vt,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",vt),$e(t,e,\"onFetchError\",vt),Nt&&Nt({phase:\"error\",mode:\"query\",from:f,method:u,cacheKey:V,error:vt.message||vt,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-ho});return}if(Q!==void 0){if((u===\"select\"||u===\"rpc\")&&V){let zt=Hi(V,Q,null);zt.gcTime=$?.gcTime||3e5}let K=Q;if(kt&&R(Q)&&(s.__pages||(s.__pages=[]),n.direction===\"previous\"?s.__pages.unshift(Q):s.__pages.push(Q),K=s.__pages.flat(),At&&(s.__nextPageParam=At(Q,s.__pages),s.__hasNextPage=s.__nextPageParam!=null),Vt&&(s.__prevPageParam=Vt(Q,s.__pages),s.__hasPreviousPage=s.__prevPageParam!=null)),O(H)&&(K=H(K,e,e.state)),g&&(K=g(K,e,e.state)),!c())return;(!gt||K!==void 0)&&Rn(e,K,y),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),we(e,\"onFetchComplete\",K),$e(t,e,\"onFetchComplete\",K),Nt&&Nt({phase:\"success\",mode:\"query\",ok:!0,from:f,method:u,cacheKey:V,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-ho})}}catch(ct){if(!c())return;Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ct,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",ct),$e(t,e,\"onFetchError\",ct),Nt&&Nt({phase:\"error\",mode:\"query\",from:f,method:u,cacheKey:V,error:ct.message||String(ct),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-ho})}finally{V&&Po.get(V)===Xs&&Po.delete(V)}},XT=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||jr;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))},ZT=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),KT();let o=t.refetchInterval;if(o){let c=typeof o==\"number\"?o:zi(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&jr(t,e,r,{force:!0})},c);n.__fetchCleanups.push(()=>clearInterval(l))}}let s=dg(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=nf(e,r),f=cg(e,r),u=WT(t,l,f),d=Ki(u),h=fg(t.cache);(!d||d.stale||Date.now()-d.time>(h?.staleTime||0))&&jr(t,e,r,{force:!0})};Do.focus.add(c),n.__fetchCleanups.push(()=>Do.focus.delete(c))}if(a){let c=()=>jr(t,e,r,{force:!0});Do.online.add(c),n.__fetchCleanups.push(()=>Do.online.delete(c))}},JT=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():k(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=O(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Rn(t,i,o),s},ag=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Rn(t,n,e.as),delete r.__optimisticSnapshot)},QT=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ug(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:h,baseUrl:p,responseType:g,invalidates:m,optimistic:b,onMutate:_,onSuccess:y,onError:x,onSettled:S}=t,v;if(c===!0||u===\"submit\")v=qi(e);else if(R(c)){let A=qi(e);v={};for(let N of c)v[N]=A[N]}else e.state?.parse?v=e.state.parse():k(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),O(_)&&_(v,e,e.state);let E=b?JT(e,t,v):null;s.__fetching=!0,Qe(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),we(e,\"onFetchStart\"),$e(t,e,\"onFetchStart\");let D=r?.analyze?.emitNetwork,F=D?typeof performance<\"u\"?performance.now():Date.now():0;D&&D({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let H=await o.getSession();if(d===!0&&!H){E!==void 0&&ag(e,t);let gt={message:\"Not authenticated\"};we(e,\"onFetchError\",gt),$e(t,e,\"onFetchError\",gt);return}}let A=o[i];if(!O(A))return;let N={from:a,data:v,headers:h,baseUrl:p};g!==void 0&&(N.responseType=g),t.params&&(N.params=Aw(t.params,e,r));let At=nf(e,r);At&&(N.headers={...N.headers,\"Accept-Language\":At});let Vt=Cw(t),kt=await Ew(()=>A(N),Vt),{data:it,error:M}=kt||{};if(M){E!==void 0&&ag(e,t),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:M,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",M),O(x)&&x(M,v,e),O(S)&&S(null,M,v,e),D&&D({phase:\"error\",mode:\"mutation\",from:a,method:i,error:M.message||String(M),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,it!==void 0&&(f||!lg(it))){let H=f?{[f]:it}:it;e.state?.update&&e.state.update(H,{preventFetch:!0})}if(Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),we(e,\"onFetchComplete\",it),$e(t,e,\"onFetchComplete\",it),O(y)&&y(it,v,e),O(S)&&S(it,null,v,e),D&&D({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-F}),m){let H=R(m)?m:[m];for(let gt of H)if(gt===!0||gt===\"*\")for(let[B]of qt)B.startsWith(a+\":\")&&Wi(B);else Wi(gt)}}catch(A){E!==void 0&&ag(e,t),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:A,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",A),$e(t,e,\"onFetchError\",A),O(x)&&x(A,v,e),O(S)&&S(null,A,v,e),D&&D({phase:\"error\",mode:\"mutation\",from:a,method:i,error:A.message||String(A),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},Gi=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=lt(t,e);if(!s)return;let i=R(s)?s.map(c=>Sw(lt(c,e),e)).filter(Boolean):[Sw(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?QT:jr;c.on===\"create\"?f(c,e,n):Promise.resolve().then(()=>{XT({...c,__runner:f},e,n)}),!l&&c.on===\"create\"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&ZT(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)jr(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};jr(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};jr(f,e,n,{direction:\"previous\",force:!0})}},tO={invalidateQueries:t=>{if(!t){Wi();return}if(w(t))for(let[e]of qt)(e.startsWith(t)||e.includes(t))&&Wi(e);else if(R(t)){let e=t.join(\":\");for(let[r]of qt)r.includes(e)&&Wi(r)}},removeQueries:t=>{if(!t){tf();return}if(w(t))for(let[e]of qt)(e.startsWith(t)||e.includes(t))&&tf(e)},getQueryData:t=>Ki(t)?.data??void 0,setQueryData:(t,e)=>{let r=Ki(t),n=O(e)?e(r?.data):e;Hi(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ug(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(!O(s))return;let i={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};t.responseType!==void 0&&(i.responseType=t.responseType);let a=await s(i);if(a?.data!==void 0&&!a?.error&&!dg(t)){let c=Hi(o,a.data,null);c.gcTime=fg(t.cache)?.gcTime||3e5}return a},getCache:()=>qt,clear:()=>tf(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of qt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||tf(r))}},pg={name:\"fetch\",create(t){let e=t.fetch;e&&(t.parent||Po.clear(),Gi(e,t,t.state,t.context))}},eO=Gi});function Zi(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 gg(t){let e=this,{parent:r}=e;if(O(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 mg(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(O(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 yg(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(O(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 cf(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(k(n)&&o)cf.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 Ow(t){let e=this;if(gr(\"beforeRemove\",e,t)===!1)return e;O(e.node.remove)?e.node.remove():Fr()||(console.warn(\"This item cant be removed\"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=ci(e.parent.__ref.__children,e.key)),gr(\"remove\",e,t)}function bg(t){return this[t]}function _g(t,e){let r=this;if(t)return r.update(t,e),r}function xg(t){return t?this.__ref&&this.__ref[t]:this.__ref}function wg(){let t=this.getRef(\"__children\");return Array.isArray(t)?t.map(e=>this[e]):[]}function Ji(){return this.getRef().path}function ta(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Tw();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Tw()),t?e?.[t]:e}function ea(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for \"${this?.key||\"<unknown>\"}\" \\u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function ra(t){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&t?this.getRoot(\"data\")[t]:this.getRoot(\"data\")}function na(t){let e=this.getRoot()?.context;return t?e[t]:e}function oa(t){let e=this.context;return t?e[t]:e}function lf(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Lr.has(r)&&!pi.has(r)||e.push(r);return e}function ff(t=[]){let e=this,r={},n=lf.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=O(c&&c.parse)?c.parse():c;r[a]=O(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 Ot(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Xi(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=ff.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=>j(a)?Xi.call(a,t,e):a):j(i)&&(n[s]=Xi.call(i,t,e))}return n}function Lo(...t){if(Br!==\"test\"&&Br!==\"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 kg(...t){(Br===\"test\"||Br===\"development\")&&console.log(...t)}function sa(...t){(Br===\"test\"||Br===\"development\")&&console.warn(...t)}function Pn(...t){if(Br===\"test\"||Br===\"development\"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Lo.call(this),new Error(...t)}}function ia(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function aa(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 ca(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,st(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 vg(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n&&!En(n))try{let o=n.call(this,...e);return o&&typeof o.then==\"function\"&&o.catch(s=>{Pn.call(this,s)}),o}catch(o){if(Pn.call(this,o),r?.strictMode)throw o}}async function la(){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 sf();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await sf();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=sf().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 sf();await o(n,t.context)}return n}function fa(t){let e=this,r=t||Bi.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(hg(e,n),r===!0)return n;let o=lO[r];return o?o(n):n}function Cg(t,e){return!!(Mr.has(t)||e?.context?.methods?.[t])}var Br,af,Qi,Io,Tw,Sg,rO,sf,hg,nO,Rw,oO,sO,iO,aO,cO,lO,Pw=U(()=>{\"use strict\";rg();kn();Dt();pr();wl();ko();og();Br=\"production\";af=null,Qi=t=>{af=t||null},Io=(t,e)=>{t&&e&&af===t&&(af=e)},Tw=()=>af||null;Sg=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});rO=\"[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.\",sf=()=>Promise.resolve().then(()=>(Yi(),of)).catch(t=>{throw new Error(rO,{cause:t})});hg=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&nO(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&hg(c,e)}let s=r.contentElementKey||\"content\",i=t[s];i&&i.__ref&&hg(i,e)},nO=(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])}},Rw=(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${Rw(i,e+1)}\n${r}}`).join(`\n`):\"\"},oO=t=>`{\n${Rw(t,1)}\n}`,sO=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},iO=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(\"&\")},aO=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&n.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let h in f)f[h]===!0?r.push(`${u}.${h}`):s(f[h],h,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}`},cO=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},lO={graphql:oO,\"json-api\":sO,odata:iO,sql:aO,paths:cO}});var fO,Eg,Dw=U(()=>{\"use strict\";_l();fO={snapshotId:wi},Eg=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=fO.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var uf,Ag,Iw=U(()=>{uf=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),Ag=t=>typeof t==\"string\"&&uf.has(t)});async function Tg(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 Lw=U(()=>{\"use strict\"});var $o,Mo,ua,Se,Ur,Fo,da,Me,df,uO,Vr,dO,Dn,In,Og,$w=U(()=>{\"use strict\";$o=t=>t!==\"latest\"?`@${t}`:\"\",Mo=t=>t?`/${t}`:\"\",ua=t=>{let e=typeof t==\"string\"?t.replace(/\\/+$/,\"\"):\"\";if(!e)return{name:\"\",subpath:\"\"};let r=e.split(\"/\"),n=e.startsWith(\"@\")?2:1;return{name:r.slice(0,n).join(\"/\"),subpath:r.slice(n).join(\"/\")}},Se={skypack:{url:\"https://cdn.skypack.dev\",formatUrl:(t,e,r)=>`${Se.skypack.url}/${t}${$o(e)}${Mo(r)}`},esmsh:{url:\"https://esm.sh\",formatUrl:(t,e,r)=>`${Se.esmsh.url}/${t}${$o(e)}${Mo(r)}`},unpkg:{url:\"https://unpkg.com\",formatUrl:(t,e,r)=>`${Se.unpkg.url}/${t}${$o(e)}${Mo(r)}?module`},jsdelivr:{url:\"https://cdn.jsdelivr.net/npm\",formatUrl:(t,e,r)=>`${Se.jsdelivr.url}/${t}${$o(e)}${Mo(r)}/+esm`},symbols:{url:\"https://pkg.symbo.ls\",formatUrl:(t,e,r)=>`${Se.symbols.url}/${t}${$o(e)}${Mo(r)}/+esm`}},Ur={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},Fo=(t={})=>{let{packageManager:e}=t;return Ur[e]||null},da=t=>{if(typeof t!=\"string\")return t;let e=t.trim().match(/^[\\^~](\\d.*)$/);return e?e[1]:t},Me=(t,e=\"latest\",r=\"esmsh\")=>{let n=Se[r]||Se.esmsh,{name:o,subpath:s}=ua(t);return n.formatUrl(o||t,da(e),s)},df=(t,e=\"latest\",r=\"esmsh\")=>{let n=Se[r]||Se.esmsh,o=da(e),{name:s,subpath:i}=ua(t);return`${n.url}/${s||t}${$o(o)}${Mo(i)}/`},uO=/^node:|^@symbo-ls\\//,Vr=t=>typeof t==\"string\"&&uO.test(t),dO=/[<>…]/,Dn=t=>typeof t==\"string\"&&dO.test(t),In=t=>!!t&&typeof t==\"object\"&&!Array.isArray(t),Og=(t,e=\"skypack\",r={})=>{let n=t.dependencies;if(!In(n))return\"\";let o=Object.keys(n);if(!o.length)return\"\";let s=r.pin||{},i={};for(let f of o){if(Vr(f)||Dn(f))continue;let u=s[f]||n[f]||\"latest\";i[f]=Me(f,u,e),f.endsWith(\"/\")||(i[f+\"/\"]=df(f,u,e))}if(!Object.keys(i).length)return\"\";let a='<script type=\"importmap\">',c=\"<\\/script>\",l=`{\n \"imports\": ${JSON.stringify(i,null,2)}\n }`;return`${a}${l}${c}`}});var Rg,Mw=U(()=>{\"use strict\";Rg=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 Pg,Fw=U(()=>{\"use strict\";Pg=(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 Dg,Nw=U(()=>{\"use strict\";Dg=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 Ig,jw=U(()=>{\"use strict\";Ig=t=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(t)});function No(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 jg(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 Lg,$g,Mg,Fg,Ng,Bw=U(()=>{\"use strict\";Lg=(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)}}),$g=(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)}),Mg=(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}`)},Fg=(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)}}),Ng=(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 mO(t,e){if(!e||typeof e!=\"object\")return t;let r=o=>{if(!gO(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 pf(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 yO(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,(d,h,p)=>{let g=h.trim();if(p===\"polyglot\")return a[g]??pf(a,g)??d;if(p===\"getLocalStateLang\")return pf(c,g+s)??d;let m=pf(c,g);return m!==void 0?m:a[g]??pf(a,g)??d}));return l}function Uw(t){if(!k(t))return{};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}}vi(n)&&delete e[r]}return e}function Ug(t,e,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=t.pages?.[e],i=k(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Uw(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=Uw(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let g=t.name||t.key;g?n?d.title=g:o===\"development\"?d.title=`${g} / dev:symbo.ls`:o===\"staging\"?d.title=`${g} / staging:symbo.ls`:d.title=`${g} / symbo.ls`:d.title=\"Symbols demo\"}d=yO(d,t,r),d.title&&(l.has(\"title\")||!d[\"og:title\"])&&(l.has(\"og:title\")||(d[\"og:title\"]=d.title)),d.description&&(l.has(\"description\")||!d[\"og:description\"])&&(l.has(\"og:description\")||(d[\"og:description\"]=d.description)),d.title&&!d[\"twitter:title\"]&&(d[\"twitter:title\"]=d.title),d.description&&!d[\"twitter:description\"]&&(d[\"twitter:description\"]=d.description);let h=r?.actualPathname||e;if(d[\"og:url\"]||d.url){let g=(d[\"og:url\"]||d.url||\"\").replace(/\\/$/,\"\");if(g&&h&&h!==\"/\"){let m=h.startsWith(\"/\")?h:\"/\"+h;d[\"og:url\"]=g+m}}d=mO(d,t.files);let p=t.name||t.app?.metadata?.title||t.app?.name||\"\";for(let[g,m]of Object.entries(d))if(typeof m==\"string\"&&m.includes(\"{{\")){let b=m.replace(/\\{\\{[^}]*\\}\\}/g,\"\").trim();b?d[g]=b:g===\"title\"?d[g]=p:delete d[g]}return d}var It,pO,jo,hO,hf,Bg,gO,Vw=U(()=>{\"use strict\";Dt();On();It=t=>{if(t==null)return\"\";let e={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"};return t.toString().replace(/[&<>\"']/g,r=>e[r])},pO=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}=\"${It(r)}\"`).join(\" \"),jo=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)},hO=new Set([\"jsonLd\",\"styles\",\"scripts\"]),hf=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r==\"string\"?r:JSON.stringify(r),o=String(n).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script type=\"application/ld+json\" data-smbls-jsonld=\"${jo(n)}\">${o}<\\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\\/style/gi,\"<\\\\/style\");e.push(`<style data-smbls-style=\"${jo(n)}\">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r==\"string\",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src=\"${It(o)}\"`),n||(r.type&&s.push(`type=\"${It(r.type)}\"`),r.async&&s.push(\"async\"),r.defer&&s.push(\"defer\"),r.integrity&&s.push(`integrity=\"${It(r.integrity)}\"`),r.crossorigin&&s.push(`crossorigin=\"${It(r.crossorigin)}\"`),r.referrerpolicy&&s.push(`referrerpolicy=\"${It(r.referrerpolicy)}\"`),r.nomodule&&s.push(\"nomodule\"));let i=` data-smbls-script=\"${It(o||jo(r.body||\"\"))}\"`;if(!n&&r.body){let a=String(r.body).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script ${s.join(\" \")}${i}>${a}<\\/script>`)}else e.push(`<script ${s.join(\" \")}${i}><\\/script>`)}return e},Bg=(t,e)=>{e||(t={...t,robots:\"noindex\"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||hO.has(o))return n;if(o===\"title\")return n.push(`<title>${It(s)}</title>`),n;if(o===\"canonical\")return n.push(`<link rel=\"canonical\" href=\"${It(s)}\">`),n;if(o===\"manifest\")return n.push(`<link rel=\"manifest\" href=\"${It(s)}\">`),n;if(o===\"favicon\"||o===\"favicons\"||o===\"icon\"||o===\"icons\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"string\")n.push(`<link rel=\"icon\" href=\"${It(f)}\">`);else if(typeof f==\"object\"){let u=pO(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(([d,h])=>h!==void 0).map(([d,h])=>`${d}=\"${It(h)}\"`).join(\" \");n.push(`<link rel=\"alternate\" ${u}>`)}}),n;let i=(l,f,u=\"name\")=>{if(typeof f==\"string\"||typeof f==\"number\"||typeof f==\"boolean\")n.push(`<meta ${u}=\"${It(l)}\" content=\"${It(f)}\">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d==\"string\"||typeof d==\"number\"||typeof d==\"boolean\")n.push(`<meta ${u}=\"${It(l)}\" content=\"${It(d)}\">`);else if(typeof d==\"object\"){let h=Object.entries(d).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}=\"${It(g)}\"`).join(\" \");n.push(`<meta ${h}>`)}});else if(typeof f==\"object\"){let d=Object.entries(f).filter(([h,p])=>p!==void 0).map(([h,p])=>`${h}=\"${It(p)}\"`).join(\" \");n.push(`<meta ${d}>`)}};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\">']);return r.push(...hf(t)),r.join(`\n`)},gO=t=>typeof t==\"string\"&&t.length>0&&!t.startsWith(\"/\")&&!t.startsWith(\"http\")});var gf,Vg,zw=U(()=>{\"use strict\";Dt();gf=(t,e)=>(R(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Vg=(t,e)=>(t=parseFloat(t),k(e)&&(e=Object.values(e)),gf(t,e))});function Bo(t){let e=String(t||\"\").trim();if(!e)return{owner:Hw,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=Hw);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function mf(t,e={}){if((e.provider||\"kv\")===\"api\")return qw(t,e);let n=await OO(t,e);return n||qw(t,e)}async function OO(t,e={}){let r=e.kvBaseUrl||bO,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 qw(t,e={}){let r=e.apiBaseUrl||_O,{key:n}=Bo(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(h=>{let{key:p}=Bo(h?.key);return p.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 d=await u.json();return d?.data||d||null}catch{return null}}async function Kw(t,e={}){if(k(t))return t;if(w(t)){let{full:r}=Bo(t);if(!r)return null;try{let n=await mf(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 qg(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(tr(n)){let o=await Kw(Xw(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return Kw(n,e)}))).filter(Boolean)}var Hw,bO,_O,pa,Gw,xO,wO,Ww,Yw,SO,kO,vO,zr,Hg,tr,Xw,zg,Wg,CO,EO,AO,TO,ha,Zw=U(()=>{\"use strict\";Dt();kn();wl();Hw=\"system\",bO=\"https://smbls-kv.nika-980.workers.dev\",_O=\"https://api.symbols.app\";pa=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?k(t[o])&&k(e[o])&&pa(t[o],e[o],r,s):t[o]=e[o])}},Gw=(t,e,r)=>{if(!k(t)||!e.size)return t;let n=`${r}/`,o=!1;for(let i of e)if(i.startsWith(n)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${r}/${i}`;e.has(a)||(s[i]=Gw(t[i],e,a))}return s},xO=new Set,wO=new Set([\"components\",\"pages\",\"functions\",\"snippets\",\"methods\"]),Ww=(t,e)=>e===\"\"&&wO.has(t),Yw=[\"fontFamily\",\"fontfamily\",\"font_family\",\"FONT_FAMILY\"],SO=t=>{let e=new Map;if(!k(t))return e;for(let r of Yw){let n=t[r];if(k(n))for(let o in n)!k(n[o])||!n[o].isDefault||(e.has(r)||e.set(r,new Set),e.get(r).add(o))}return e},kO=(t,e)=>{for(let r of Yw){let n=t[r];if(!k(n))continue;let o=e.get(r),s=null;for(let i in n){let a=n[i];if(!k(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...n}),s[i]=c}s&&(t[r]=s)}},vO=t=>t.replace(/\\.js$/iu,\"\"),zr=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=>vO(o.trim())).filter(Boolean).join(\"/\");n&&e.add(n)}return e},Hg=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),tr=t=>k(t)&&Array.isArray(t.ignoreList)&&(\"library\"in t||\"key\"in t||\"name\"in t),Xw=t=>t.library!==void 0?t.library:t.key??t.name,zg=new Set,Wg=()=>{zg.clear()},CO=(t,e)=>{let r=e.filter(n=>!zg.has(n));if(r.length){for(let n of r)zg.add(n);pt()&&console.warn(`[smbls] shared library \"${t}\" ships ${r.map(n=>`methods.${n}`).join(\", \")} \\u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},EO=(t,e,r)=>{let n=null;for(let o in t)if(Sn(o)&&(e.has(`methods/${o}`)||r.push(o),!n)){n={};for(let s in t)Sn(s)||(n[s]=t[s])}return n||t},AO=(t,e,r,n=\"library\")=>{let o=zr(e.sharedLibIgnore);e.sharePages===!1&&o.add(\"pages\");let s=o.size?new Set([...r,...o]):r,i=[];for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&!(a===\"sharePages\"||a===\"sharedLibIgnore\")&&a!==\"app\"&&!s.has(a)){if(k(e[a])&&k(t[a])){if(a===\"designSystem\")pa(t[a],e[a],s,a);else for(let c in e[a])if(!s.has(`${a}/${c}`)){if(a===\"methods\"&&Sn(c)){c in t[a]||i.push(c);continue}c in t[a]?Ww(a,t[a][c])&&!Ww(a,e[a][c])&&(t[a][c]=e[a][c]):t[a][c]=e[a][c]}}else if(!(a in t)){let c=e[a],l=a===\"methods\"&&c&&typeof c==\"object\"?EO(c,s,i):c;t[a]=Gw(l,s,a)}}i.length&&CO(n,i)},TO=(t,e,r)=>{if(t!==e){let n=Xw(t);if(w(n)&&n)return n;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${r}]`},ha=(t,e)=>{if(!e||!e.length)return;let r=SO(t.designSystem);for(let n=0;n<e.length;n++){let o=e[n],s=o,i=xO;tr(s)&&(i=zr(s.ignoreList),s=s.library),k(s)&&AO(t,s,i,TO(o,s,n))}r.size&&kO(t.designSystem,r)}});var Kg,Gg,Yg,ga,Xg,ma,Zg,Ln,Jw=U(()=>{\"use strict\";Dt();Kg=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn(\"Failed to copy text: \",e)}},Gg=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)}},Yg=t=>t.replace(/[^a-zA-Z0-9_]/g,\"\"),ga=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,\"\")),Xg=t=>t&&t.replace(/\\w\\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),ma=t=>t.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),Zg=(t=\"\")=>{if(typeof t!=\"string\")return;let e=t.replace(/([A-Z])/g,\" $1\");return e.charAt(0).toUpperCase()+e.slice(1)},Ln=t=>{if(R(t))return t;if(w(t))return t.split(\" \");if(k(t))return Object.values(t);if(Ke(t))return[t]}});var Jg,Qw=U(()=>{\"use strict\";Jg=()=>{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 Jt,Uo,ya,ba,tS=U(()=>{\"use strict\";Jt=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];if(!n)return null;if(typeof n==\"string\")return{src:n,type:null,variants:null};if(typeof n==\"object\"){if(typeof n.src==\"string\")return n;let o=n.content,s=o&&o.src;if(typeof s==\"string\")return{...n,src:s,type:n.type??o.type??null,variants:n.variants??o.variants??null}}return null},Uo=(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(\", \")},ya=t=>{if(!t||!Array.isArray(t.variants))return\"\";let e=t.variants.filter(r=>r.format===t.type);return Uo(e,{keepOneX:!1})},ba=(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:Uo(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Uo(o,{keepOneX:!1}),i={src:t.src,alt:e||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}});var Vo={};L(Vo,{CDN_PROVIDERS:()=>Se,DOMQL_EVENTS:()=>qp,DOMQ_PROPERTIES:()=>Lr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vo,ENV:()=>fh,HTML_TAGS:()=>Ao,METHODS:()=>Mr,METHODS_EXL:()=>hi,NODE_ENV:()=>Le,OPTIONS:()=>Bi,PACKAGE_MANAGER_TO_CDN:()=>Ur,PARSED_DOMQ_PROPERTIES:()=>pi,PROPS_METHODS:()=>$r,STATE_METHODS:()=>wn,STATE_PROPERTIES:()=>Hp,SVG_TAGS:()=>Zx,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>uf,__resetBuiltinMethodWarnings:()=>Wg,addCaching:()=>zl,addContext:()=>Vl,addExtend:()=>Ih,addExtends:()=>Ye,addItemAfterEveryElement:()=>Pp,addProtoToArray:()=>li,addRef:()=>jl,applyDependentState:()=>Jh,applyEvent:()=>Yl,applyEventUpdate:()=>Xl,applyExtends:()=>tw,applyProps:()=>Ii,arrayContainsOtherArray:()=>vp,arraysEqual:()=>Ip,arrayzeValue:()=>Ln,buildImgSrcset:()=>ya,buildSourcesAndImg:()=>ba,cache:()=>ng,call:()=>vg,captureSnapshot:()=>Eg,checkForStateTypes:()=>Gh,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>Mp,clone:()=>Yp,cloneAndMergeArrayExtend:()=>Ci,cloneFunction:()=>yh,collectExtendsList:()=>To,concatAddExtends:()=>Rh,copyJavaScriptToClipboard:()=>Gg,copyStringToClipboard:()=>Kg,createBasedOnType:()=>Nl,createElement:()=>Kh,createElementExtends:()=>El,createExtends:()=>Ai,createExtendsFromKeys:()=>Oo,createExtendsStack:()=>Rl,createIfConditionFlag:()=>bh,createInheritedState:()=>Yh,createKey:()=>Si,createNestedObject:()=>nh,createNestedObjectByKeyPath:()=>Zh,createObjectWithoutPrototype:()=>bl,createParent:()=>Bl,createPath:()=>Ul,createProps:()=>Li,createPropsStack:()=>Ml,createRoot:()=>qh,createScope:()=>tg,createSnapshotId:()=>wi,customDecodeURIComponent:()=>zp,customEncodeURIComponent:()=>Vp,cutArrayAfterValue:()=>Op,cutArrayBeforeValue:()=>Tp,debounce:()=>ki,debounceOnContext:()=>gh,decodeNewlines:()=>Up,deepClone:()=>st,deepContains:()=>eh,deepDefaults:()=>pa,deepDestringifyFunctions:()=>_e,deepExtend:()=>Cl,deepMerge:()=>nt,deepMergeExtends:()=>Xe,deepStringifyFunctions:()=>mi,defineSetter:()=>Sg,destringifyGlobalScope:()=>bi,detectHeightOnInit:()=>Pg,detectInfiniteLoop:()=>ah,document:()=>et,encodeNewlines:()=>Bp,error:()=>Pn,excludeKeysFromObject:()=>lh,exec:()=>lt,extendCachedRegistry:()=>Ph,extendStackRegistry:()=>Ti,extractArrayExtend:()=>Ri,fetchLibraryData:()=>mf,fibonacciNumberByIndex:()=>Dg,filterArrays:()=>Lp,filterArraysFast:()=>$p,finalizeExtends:()=>Pl,findClosestNumber:()=>gf,findClosestNumberInFactory:()=>Vg,findInheritedState:()=>Kl,findKeyPosition:()=>Np,flattenExtend:()=>Ro,formatDate:()=>Rg,generateHash:()=>Sl,generateHeadArrayTags:()=>hf,generateKey:()=>xi,generateMetaTags:()=>Bg,get:()=>bg,getCDNDirUrl:()=>df,getCDNUrl:()=>Me,getCapitalCaseKeys:()=>Mh,getCdnProviderFromConfig:()=>Fo,getChildStateInKey:()=>ql,getChildren:()=>wg,getContext:()=>oa,getCookie:()=>kh,getDB:()=>la,getEmotionStylesheet:()=>Jg,getExtendsInElement:()=>Lh,getExtendsStack:()=>Ei,getExtendsStackRegistry:()=>vl,getFrequencyInArray:()=>Cp,getFunctionSource:()=>Ie,getHashedExtend:()=>Oi,getImportMapScript:()=>Og,getInObjectByPath:()=>ih,getLocalStorage:()=>Ch,getNev:()=>hh,getPageMetadata:()=>Ug,getParentStateInKey:()=>Wl,getPath:()=>Ji,getQuery:()=>fa,getRef:()=>xg,getRoot:()=>ea,getRootContext:()=>na,getRootData:()=>ra,getRootState:()=>ta,getRootStateInKey:()=>Hl,getSpreadChildren:()=>Fh,global:()=>wp,hasFunction:()=>Ge,hasHandlerPlugin:()=>Co,hasOwnProperty:()=>Jp,hashContent:()=>jo,inheritChildExtends:()=>Tl,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Ol,initProps:()=>zh,is:()=>Zt,isArray:()=>R,isBoolean:()=>ul,isBuiltinElementMethod:()=>Wp,isContextComponent:()=>Nh,isCyclic:()=>ch,isDOMNode:()=>Xt,isDate:()=>pl,isDefined:()=>Ot,isDevelopment:()=>Nr,isEmpty:()=>ml,isEmptyObject:()=>Qp,isEqualDeep:()=>yl,isFailedRevival:()=>En,isFunction:()=>O,isHtmlElement:()=>oi,isLazyFunction:()=>Xp,isLocal:()=>ph,isLoudDevRuntime:()=>pt,isMalformedDependency:()=>Dn,isMethod:()=>Cg,isMobile:()=>wh,isNode:()=>dr,isNot:()=>kp,isNotProduction:()=>Tn,isNull:()=>dl,isNumber:()=>Ke,isObject:()=>k,isObjectLike:()=>j,isPhoto:()=>Ig,isPolyglotWritableKey:()=>hr,isProduction:()=>Fr,isProtectedElementMethod:()=>Sn,isStaging:()=>dh,isState:()=>Xh,isString:()=>w,isStringFunction:()=>vi,isTest:()=>xl,isTesting:()=>uh,isUndefined:()=>Pt,isUniversallyReservedKey:()=>Ag,isUnresolvableDependency:()=>Vr,isValidDependencyMap:()=>In,isValidHtmlTag:()=>Ah,isWrappedLibrary:()=>tr,joinArrays:()=>wo,jointStacks:()=>Dh,keys:()=>lf,loadCssFile:()=>Fg,loadJavascript:()=>Ng,loadJavascriptFile:()=>Lg,loadJavascriptFileEmbedSync:()=>Mg,loadJavascriptFileSync:()=>$g,loadRemoteCSS:()=>jg,loadRemoteScript:()=>No,log:()=>kg,logGroupIf:()=>xh,logIf:()=>_h,lookdown:()=>mg,lookdownAll:()=>yg,lookup:()=>gg,lowercaseFirstLetter:()=>xn,makeObjectWithoutPrototype:()=>th,map:()=>Gp,mapStringsWithContextComponents:()=>Pi,markPolyglotSeeded:()=>Je,matchesComponentNaming:()=>Ze,memoize:()=>mh,merge:()=>yt,mergeSharedLibraries:()=>ha,nextElement:()=>ia,normalizeIgnoreList:()=>zr,normalizeLibraryKey:()=>Bo,objectToString:()=>yi,objectizeStringProperty:()=>Di,overwrite:()=>_i,overwriteDeep:()=>Wt,overwriteShallow:()=>An,overwriteState:()=>Qh,parse:()=>ff,parseDeep:()=>Xi,pickupElementFromProps:()=>Ll,pickupPropsFromElement:()=>Il,polyglotSeededKeys:()=>ji,previousElement:()=>aa,promoteActiveRootState:()=>Io,propExists:()=>Uh,propertizeElement:()=>$l,propertizeUpdate:()=>Bh,remove:()=>Ow,removeChars:()=>Yg,removeCookie:()=>vh,removeDuplicateProps:()=>Fi,removeDuplicatesInArray:()=>So,removeFromArray:()=>Ep,removeFromObject:()=>rh,removeNestedKeyByPath:()=>oh,removeValueFromArray:()=>ci,removeValueFromArrayAll:()=>Rp,reorderArrayByValues:()=>Dp,replaceLiteralsWithObjectFields:()=>$t,replaceOctalEscapeSequences:()=>jp,resolveAsset:()=>Jt,resolveHandler:()=>Eo,resolveSharedLibraries:()=>qg,returnValueAsText:()=>Fl,runPluginHook:()=>Rt,self:()=>Sp,setActiveRootState:()=>Qi,setCookie:()=>Sh,setHashedExtend:()=>kl,setInObjectByPath:()=>sh,setLocalStorage:()=>Eh,setNodeStyles:()=>cf,setProps:()=>_g,setPropsPrototype:()=>Mi,sharedLibrary:()=>Hg,splitPackageSpecifier:()=>ua,spotByPath:()=>Zi,srcsetFor:()=>Uo,stringIncludesAny:()=>ui,stringToObject:()=>Zp,stripVersionRangePrefix:()=>da,swapItemsInArray:()=>Ap,syncProps:()=>Ni,toCamelCase:()=>ga,toDashCase:()=>ma,toDescriptionCase:()=>Zg,toPriorityOrder:()=>xe,toTitleCase:()=>Xg,toggleFullscreen:()=>Tg,triggerEventOn:()=>gr,triggerEventOnUpdate:()=>eg,trimStringFromSymbols:()=>Fp,unstackArrayOfObjects:()=>ai,update:()=>Vh,updateProps:()=>Hh,variables:()=>ca,verbose:()=>Lo,warn:()=>sa,window:()=>C});var P=U(()=>{\"use strict\";_l();wl();Dt();pr();On();ko();si();Gx();Yx();di();ni();Xx();Th();$h();Wh();Dl();iw();cw();kn();lw();Pw();og();Dw();rg();Iw();Lw();$w();Mw();Fw();Nw();jw();Bw();Vw();zw();Zw();Jw();Qw();tS()});var PE=rp((XV,RE)=>{var Bs=1e3,Us=Bs*60,Vs=Us*60,fo=Vs*24,bL=fo*7,_L=fo*365.25;RE.exports=function(t,e){e=e||{};var r=typeof t;if(r===\"string\"&&t.length>0)return xL(t);if(r===\"number\"&&isFinite(t))return e.long?SL(t):wL(t);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(t))};function xL(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*_L;case\"weeks\":case\"week\":case\"w\":return r*bL;case\"days\":case\"day\":case\"d\":return r*fo;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Vs;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*Us;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*Bs;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function wL(t){var e=Math.abs(t);return e>=fo?Math.round(t/fo)+\"d\":e>=Vs?Math.round(t/Vs)+\"h\":e>=Us?Math.round(t/Us)+\"m\":e>=Bs?Math.round(t/Bs)+\"s\":t+\"ms\"}function SL(t){var e=Math.abs(t);return e>=fo?Cd(t,e,fo,\"day\"):e>=Vs?Cd(t,e,Vs,\"hour\"):e>=Us?Cd(t,e,Us,\"minute\"):e>=Bs?Cd(t,e,Bs,\"second\"):t+\" ms\"}function Cd(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+\" \"+n+(o?\"s\":\"\")}});var IE=rp((ZV,DE)=>{function kL(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=PE(),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 d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,d=null,h,p;function g(...m){if(!g.enabled)return;let b=g,_=Number(new Date),y=_-(u||_);b.diff=y,b.prev=u,b.curr=_,u=_,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,(v,E)=>{if(v===\"%%\")return\"%\";x++;let D=r.formatters[E];if(typeof D==\"function\"){let F=m[x];v=D.call(b,F),m.splice(x,1),x--}return v}),r.formatArgs.call(b,m),(b.log||r.log).apply(b,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:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,p=r.enabled(f)),p),set:m=>{d=m}}),typeof r.init==\"function\"&&r.init(g),g}function n(f,u){let d=r(this.namespace+(typeof u>\"u\"?\":\":u)+f);return d.log=this.log,d}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 d of u)d[0]===\"-\"?r.skips.push(d.slice(1)):r.names.push(d)}function s(f,u){let d=0,h=0,p=-1,g=0;for(;d<f.length;)if(h<u.length&&(u[h]===f[d]||u[h]===\"*\"))u[h]===\"*\"?(p=h,g=d,h++):(d++,h++);else if(p!==-1)h=p+1,g++,d=g;else return!1;for(;h<u.length&&u[h]===\"*\";)h++;return h===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}DE.exports=kL});var LE=rp((ie,Ed)=>{ie.formatArgs=CL;ie.save=EL;ie.load=AL;ie.useColors=vL;ie.storage=TL();ie.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`.\"))}})();ie.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 vL(){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 CL(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+Ed.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)}ie.log=console.debug||console.log||(()=>{});function EL(t){try{t?ie.storage.setItem(\"debug\",t):ie.storage.removeItem(\"debug\")}catch{}}function AL(){let t;try{t=ie.storage.getItem(\"debug\")||ie.storage.getItem(\"DEBUG\")}catch{}return!t&&typeof process<\"u\"&&\"env\"in process&&(t=process.env.DEBUG),t}function TL(){try{return localStorage}catch{}}Ed.exports=IE()(ie);var{formatters:OL}=Ed.exports;OL.j=function(t){try{return JSON.stringify(t)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}});var bx={};L(bx,{ANIMATION_PROPS:()=>by,ARIA_ROLES:()=>QR,ATTR_TRANSFORMS:()=>Zn,BLOCK_PROPS:()=>_y,CDN_PROVIDERS:()=>Se,COMPOUND_CSS_KEYWORDS:()=>Mn,CONFIG:()=>Bn,CONFIG_MERGE_EXL:()=>fe,CSS_NAMED_COLOR_HEX:()=>yf,CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_PROPS_REGISTRY:()=>_t,CSS_UNITS:()=>xo,DEFAULT_CONFIG:()=>mc,DEFAULT_CSS_PROPERTIES_LIST:()=>Et,DELEGATED_EVENTS:()=>ds,DESIGN_SYSTEM_OPTIONS:()=>r_,DOMQL_EVENTS:()=>qp,DOMQ_PROPERTIES:()=>Lr,DOM_EVENTS:()=>f0,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vo,ENV:()=>fh,FACTORY:()=>le,FLEX_PROPS:()=>vy,FONT_PROPS:()=>xy,GRID_PROPS:()=>Cy,HOST_REGISTERED_PACKAGES:()=>$1,HTML_ATTRIBUTES:()=>cu,HTML_TAGS:()=>Ao,LIFECYCLE_EVENTS:()=>en,METHODS:()=>Mr,METHODS_EXL:()=>hi,MISC_PROPS:()=>wy,MIXINS:()=>ou,NODE_ENV:()=>Le,OPTIONS:()=>Bi,PACKAGE_MANAGER_TO_CDN:()=>Ur,PARSED_DOMQ_PROPERTIES:()=>pi,POSITION_PROPS:()=>Sy,PROPS_METHODS:()=>$r,REGISTRY:()=>Bt,RESERVED_STORE_METHODS:()=>Ox,ROUTER_OPTIONS:()=>Ku,SIGNAL_ENGINE_KEY:()=>bo,SIGNAL_INSTANCES_KEY:()=>mo,STANDARD_SCHEME_QUERIES:()=>Bf,STATE_PROPERTIES:()=>Hp,STORE_METHOD_NAMES:()=>Tx,SVG_TAGS:()=>fs,THEME_PROPS:()=>ky,TIMING_PROPS:()=>ic,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>uf,VALUE_TRANSFORMERS:()=>Xf,VERSION:()=>Px,__resetBuiltinMethodWarnings:()=>Wg,__resetSignalEngine:()=>bp,__resetSignalInstances:()=>yp,__resetSkinWarnings:()=>Ym,__resetStateShadowWarnings:()=>Rx,activateConfig:()=>sS,addCaching:()=>zl,addContext:()=>Vl,addDelegatedEvent:()=>oc,addExtend:()=>Ih,addExtends:()=>Ye,addItemAfterEveryElement:()=>Pp,addMethods:()=>bs,addProtoToArray:()=>li,addRef:()=>jl,aliasCaseVariants:()=>Zo,animation:()=>km,appendSVGSprite:()=>Xa,appendSvgIconsSprite:()=>qn,applyAttrTransforms:()=>gy,applyCSS:()=>Yb,applyDependentState:()=>Jh,applyDocument:()=>Ya,applyEvent:()=>Yl,applyEventUpdate:()=>Xl,applyExtends:()=>hs,applyHeadings:()=>zf,applyInitialState:()=>xu,applyMediaSequenceVars:()=>Wr,applyProps:()=>Ii,applyReset:()=>Za,applySequenceGlobalVars:()=>La,applySequenceVars:()=>xr,applySkins:()=>Ja,applySpacingSequence:()=>Na,applyStateMethods:()=>me,applyTimingSequence:()=>Ga,applyTrueProps:()=>Ay,applyTypographySequence:()=>Wa,arrayContainsOtherArray:()=>vp,arraysEqual:()=>Ip,arrayzeValue:()=>Ln,assertEmitIntegrity:()=>oy,batch:()=>al,breakpoints:()=>wm,buildImgSrcset:()=>ya,buildSkinVarStyles:()=>Kn,buildSourcesAndImg:()=>ba,buildThemeVarStyles:()=>Wu,cache:()=>ng,cacheNode:()=>tn,call:()=>vg,callStateMethod:()=>cc,camelToAttr:()=>sr,camelToLowerAttr:()=>u0,captureSnapshot:()=>Eg,changeGlobalTheme:()=>Zf,changeLightness:()=>om,checkAttributeByTagName:()=>Oe,checkEventFunctions:()=>hy,checkForStateTypes:()=>Gh,checkIfBoxSize:()=>Fa,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>Mp,class:()=>Tm,clone:()=>Yp,cloneAndMergeArrayExtend:()=>Ci,cloneFunction:()=>yh,collectExtendsList:()=>To,color:()=>hm,colorStringToRgbaArray:()=>ke,components:()=>Cs,compositeOverBackdrop:()=>Fn,concatAddExtends:()=>Rh,contrastRatio:()=>Wo,convertSvgToSymbol:()=>Ma,copyJavaScriptToClipboard:()=>Gg,copyStringToClipboard:()=>Kg,create:()=>yx,createAsync:()=>b$,createBasedOnType:()=>Nl,createComputed:()=>Cx,createConfig:()=>Aa,createDefine:()=>UC,createEffect:()=>G,createElement:()=>Kh,createElementExtends:()=>El,createExtends:()=>Ai,createExtendsFromKeys:()=>Oo,createExtendsStack:()=>Rl,createHTMLNode:()=>ls,createIfConditionFlag:()=>bh,createInheritedState:()=>Yh,createKey:()=>Si,createNestedObject:()=>nh,createNestedObjectByKeyPath:()=>Zh,createObjectWithoutPrototype:()=>bl,createParent:()=>Bl,createPath:()=>Ul,createProps:()=>Li,createPropsStack:()=>Ml,createRoot:()=>qh,createScope:()=>tg,createScopeStore:()=>ll,createSignal:()=>ei,createSkeleton:()=>x$,createSnapshotId:()=>wi,createState:()=>Fy,createStore:()=>lr,createSync:()=>_$,css:()=>pe,cssMediaVars:()=>$f,cssVars:()=>Lf,customDecodeURIComponent:()=>zp,customEncodeURIComponent:()=>Vp,cutArrayAfterValue:()=>Op,cutArrayBeforeValue:()=>Tp,debounce:()=>ki,debounceOnContext:()=>gh,decodeNewlines:()=>Up,deepClone:()=>st,deepContains:()=>eh,deepDefaults:()=>pa,deepDestringifyFunctions:()=>_e,deepExtend:()=>Cl,deepMerge:()=>nt,deepMergeExtends:()=>Xe,deepStringifyFunctions:()=>mi,defaultDefine:()=>Rs,defineResolvedThemeSignal:()=>Xo,defineSetter:()=>Sg,defineThemeSignal:()=>Yo,destringifyGlobalScope:()=>bi,destroy:()=>Sc,detectHeightOnInit:()=>Pg,detectInfiniteLoop:()=>ah,detectTag:()=>Qr,devices:()=>Sm,dispose:()=>nn,encodeNewlines:()=>Bp,error:()=>Pn,excludeKeysFromObject:()=>lh,exec:()=>lt,executeAttr:()=>nP,exetuteClassPerComponent:()=>$P,extendCachedRegistry:()=>Ph,extendStackRegistry:()=>Ti,extractArrayExtend:()=>Ri,extractConditionalAttrs:()=>iP,fetchLibraryData:()=>mf,fibonacciNumberByIndex:()=>Dg,filterArrays:()=>Lp,filterArraysFast:()=>$p,filterAttributesByTagName:()=>rP,finalizeExtends:()=>Pl,findClosestNumber:()=>gf,findClosestNumberInFactory:()=>Vg,findHeadingLetter:()=>Nf,findHeadings:()=>Ia,findInheritedState:()=>Kl,findKeyPosition:()=>Np,flattenExtend:()=>Ro,font:()=>cm,fontFace:()=>um,fontFamily:()=>lm,fontFamilyTypes:()=>fm,formatDate:()=>Rg,generateHash:()=>Sl,generateHeadArrayTags:()=>hf,generateKey:()=>xi,generateMetaTags:()=>Bg,generateSequence:()=>Qt,generateSequencePosition:()=>$m,generateSprite:()=>$a,generateSubSequence:()=>Pa,get:()=>bg,getActiveConfig:()=>T,getActiveDocument:()=>Xn,getActiveLang:()=>fn,getCDNDirUrl:()=>df,getCDNUrl:()=>Me,getCacheSize:()=>iy,getCapitalCaseKeys:()=>Mh,getCdnProviderFromConfig:()=>Fo,getChildStateInKey:()=>ql,getChildren:()=>wg,getColor:()=>tt,getColorShade:()=>Sf,getContext:()=>oa,getCookie:()=>kh,getDB:()=>la,getDefaultOrFirstKey:()=>Nn,getEmitStats:()=>ru,getEmotionStylesheet:()=>Jg,getExtendsInElement:()=>Lh,getExtendsStack:()=>Ei,getExtendsStackRegistry:()=>vl,getFnPrefixAndValue:()=>_r,getFontFace:()=>im,getFontFaceEach:()=>jn,getFontFaceEachString:()=>Rf,getFontFaceString:()=>ka,getFontFamily:()=>Ha,getFontFormat:()=>Tf,getFontSizeByKey:()=>qa,getFrequencyInArray:()=>Cp,getFunctionSource:()=>Ie,getHashedExtend:()=>Oi,getImportMapScript:()=>Og,getInObjectByPath:()=>ih,getLanguages:()=>vc,getLocalStateLang:()=>Oc,getLocalStorage:()=>Ch,getMediaColor:()=>Lt,getMediaTheme:()=>Ae,getNev:()=>hh,getObserver:()=>cl,getPageMetadata:()=>Ug,getParentStateInKey:()=>Wl,getPath:()=>Ji,getQuery:()=>fa,getRef:()=>xg,getResolvedThemeSignal:()=>oS,getRgbTone:()=>er,getRoot:()=>ea,getRootContext:()=>na,getRootData:()=>ra,getRootState:()=>ta,getRootStateInKey:()=>Hl,getSafeInk:()=>Uf,getSafeInkInfo:()=>jm,getSequenceValue:()=>Un,getSequenceValueBySymbols:()=>Da,getSequenceValuePropertyPair:()=>nr,getShadow:()=>Ba,getShapeByKey:()=>Ka,getSignals:()=>Ax,getSpacingBasedOnRatio:()=>Ee,getSpacingByKey:()=>Ct,getSpreadChildren:()=>Fh,getSubratio:()=>Ra,getSubratioDifference:()=>Oa,getSystemGlobalTheme:()=>ge,getTheme:()=>zm,getThemeSignal:()=>nS,getTimingByKey:()=>de,getTimingFunction:()=>Te,global:()=>wp,gradient:()=>gm,grid:()=>Am,hasFunction:()=>Ge,hasHandlerPlugin:()=>Co,hasOwnProperty:()=>Jp,hashContent:()=>jo,hexToRgb:()=>tm,hexToRgbArray:()=>bf,hexToRgba:()=>rm,hslToRgb:()=>wf,icons:()=>bm,inheritChildExtends:()=>Tl,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Ol,init:()=>Er,initPolyglot:()=>Xu,initProps:()=>zh,injectGlobal:()=>St,is:()=>Zt,isArray:()=>R,isBoolean:()=>ul,isBuiltinElementMethod:()=>Wp,isCSSVar:()=>bt,isContextComponent:()=>Nh,isCyclic:()=>ch,isDOMNode:()=>Xt,isDate:()=>pl,isDefined:()=>Ot,isDevelopment:()=>Nr,isDomDocument:()=>fr,isEmpty:()=>ml,isEmptyObject:()=>Qp,isEnumeratedTrueFalseAttr:()=>ir,isEqualDeep:()=>yl,isFailedRevival:()=>En,isFunction:()=>O,isGoogleFontsUrl:()=>qo,isHostObject:()=>ur,isHtmlElement:()=>oi,isLazyFunction:()=>Xp,isLocal:()=>ph,isLoudDevRuntime:()=>pt,isMalformedDependency:()=>Dn,isMethod:()=>Cg,isMobile:()=>wh,isNode:()=>dr,isNot:()=>kp,isNotProduction:()=>Tn,isNull:()=>dl,isNumber:()=>Ke,isObject:()=>k,isObjectLike:()=>j,isPhoto:()=>Ig,isPlainColor:()=>Gr,isPolyglotWritableKey:()=>hr,isProduction:()=>Fr,isProtectedElementMethod:()=>Sn,isRawUnitValue:()=>ri,isResolvedColor:()=>Fe,isScalingUnit:()=>_n,isStaging:()=>dh,isState:()=>Xh,isStore:()=>xt,isString:()=>w,isStringFunction:()=>vi,isSvgTag:()=>us,isTest:()=>xl,isTesting:()=>uh,isTracking:()=>jy,isUndefined:()=>Pt,isUniversallyReservedKey:()=>Ag,isUnresolvableDependency:()=>Vr,isValidDependencyMap:()=>In,isValidHtmlTag:()=>Ah,isValidTag:()=>cs,isWasmLoaded:()=>EC,isWrappedLibrary:()=>tr,isWritableFamilyBucket:()=>xp,joinArrays:()=>wo,jointStacks:()=>Dh,keyframes:()=>as,keys:()=>lf,linearChannelToSrgb:()=>Cf,loadCssFile:()=>Fg,loadJavascript:()=>Ng,loadJavascriptFile:()=>Lg,loadJavascriptFileEmbedSync:()=>Mg,loadJavascriptFileSync:()=>$g,loadRemoteCSS:()=>jg,loadRemoteScript:()=>No,loadTranslations:()=>Ec,loadWasm:()=>CC,log:()=>kg,logGroupIf:()=>xh,logIf:()=>_h,lookdown:()=>mg,lookdownAll:()=>yg,lookup:()=>gg,lowercaseFirstLetter:()=>xn,makeObjectWithoutPrototype:()=>th,map:()=>Gp,mapStringsWithContextComponents:()=>Pi,markPolyglotSeeded:()=>Je,matchesComponentNaming:()=>Ze,media:()=>dm,memoize:()=>mh,merge:()=>yt,mergeSharedLibraries:()=>ha,mixTwoColors:()=>Qg,mixTwoRgb:()=>nm,mixTwoRgba:()=>kf,nextElement:()=>ia,normalizeIgnoreList:()=>zr,normalizeLibraryKey:()=>Bo,numToLetterMap:()=>rr,objectToString:()=>yi,objectizeStringProperty:()=>Di,oklabToLinearSrgb:()=>Ef,oklabToOklch:()=>xa,oklchToGamutSafeSrgb:()=>wa,oklchToOklab:()=>Af,opacify:()=>Ho,overwrite:()=>_i,overwriteDeep:()=>Wt,overwriteShallow:()=>An,overwriteState:()=>Qh,parkHostObject:()=>Ir,parse:()=>ff,parseColorToken:()=>jt,parseDeep:()=>Xi,pickupElementFromProps:()=>Ll,pickupPropsFromElement:()=>Il,polyglotFunctions:()=>Uc,polyglotPlugin:()=>Ds,polyglotSeededKeys:()=>ji,popConfig:()=>rt,popStaticCssPass:()=>du,previousElement:()=>aa,promoteActiveRootState:()=>Io,propExists:()=>Uh,propertizeElement:()=>$l,propertizeUpdate:()=>Bh,pushConfig:()=>ot,pushStaticCssPass:()=>uu,quietColorProbe:()=>Vn,refreshContextProto:()=>gu,registerEvent:()=>ps,registerHostPackages:()=>M1,registerSignalInstance:()=>yo,reinit:()=>Gb,relativeLuminance:()=>$n,remove:()=>ys,removeChars:()=>Yg,removeCookie:()=>vh,removeDelegatedEvent:()=>sc,removeDuplicateProps:()=>Fi,removeDuplicatesInArray:()=>So,removeFromArray:()=>Ep,removeFromObject:()=>rh,removeNestedKeyByPath:()=>oh,removeValueFromArray:()=>ci,removeValueFromArrayAll:()=>Rp,reorderArrayByValues:()=>Dp,replaceLiteralsWithObjectFields:()=>$t,replaceOctalEscapeSequences:()=>jp,resetEmitStats:()=>ny,resolveAsset:()=>Jt,resolveBorderValue:()=>ue,resolveColorRgb:()=>zn,resolveColorsInGradient:()=>tc,resolveConfigDocument:()=>_o,resolveDesignSystemClass:()=>k0,resolveFileSource:()=>py,resolveFileUrl:()=>ve,resolveGridTracks:()=>b0,resolveHandler:()=>Eo,resolvePropValue:()=>rn,resolveShadowValue:()=>Hn,resolveSharedLibraries:()=>qg,returnSubThemeOrDefault:()=>sm,returnValueAsText:()=>Fl,rgbArrayToHex:()=>_f,rgbToHSL:()=>xf,rgbToHex:()=>em,runPluginHook:()=>Rt,runThroughMedia:()=>Vf,schemeGuardSelector:()=>Xr,schemeMediaQuery:()=>Yr,scratchDefaultConfig:()=>Go,scratchSystem:()=>rs,scratchUtils:()=>qr,self:()=>Sp,semanticIcons:()=>_m,sequence:()=>br,serializeAttrValue:()=>ee,set:()=>Gn,setActiveConfig:()=>Mf,setActiveDocument:()=>ry,setActiveRootState:()=>Qi,setAdaptiveSchemeVar:()=>Zr,setClass:()=>rD,setClassname:()=>MP,setColor:()=>Kr,setCookie:()=>Sh,setCssEngineHook:()=>Hu,setCustomFont:()=>Sa,setCustomFontMedia:()=>Hr,setEach:()=>Jm,setFont:()=>za,setFontFamily:()=>ts,setFontImport:()=>Ko,setGradient:()=>Jo,setHashedExtend:()=>kl,setInCustomFontMedia:()=>Of,setInObjectByPath:()=>sh,setLang:()=>Ac,setLocalStorage:()=>Eh,setMediaTheme:()=>Qo,setNodeStyles:()=>cf,setObserver:()=>Ex,setProps:()=>_g,setPropsPrototype:()=>Mi,setSVG:()=>es,setScalingVar:()=>Ta,setShadow:()=>Jr,setSubScalingVar:()=>Ff,setSvgIcon:()=>Wn,setTheme:()=>Va,setValue:()=>Zm,setVariables:()=>Mm,setWasmEngine:()=>nc,shadow:()=>ym,shape:()=>Pm,sharedLibrary:()=>Hg,sizes:()=>Rm,skins:()=>Dm,spacing:()=>pm,splitPackageSpecifier:()=>ua,splitSpacedValue:()=>ja,splitTopLevelCommas:()=>yr,splitTopLevelSpaces:()=>ft,splitTransition:()=>Yf,spotByPath:()=>Zi,srcsetFor:()=>Uo,srgbChannelToLinear:()=>vf,srgbToOklab:()=>_a,stringIncludesAny:()=>ui,stringToObject:()=>Zp,stripVersionRangePrefix:()=>da,svg:()=>vm,svgData:()=>Cm,swapItemsInArray:()=>Ap,syncProps:()=>Ni,templates:()=>Em,theme:()=>mm,timing:()=>xm,toCamel:()=>Ea,toCamelCase:()=>ga,toDashCase:()=>ma,toDescriptionCase:()=>Zg,toLinearChannel:()=>zo,toPriorityOrder:()=>xe,toTitleCase:()=>Xg,toggleFullscreen:()=>Tg,transformBackgroundImage:()=>qf,transformBorder:()=>or,transformBorderRadius:()=>wr,transformBoxShadow:()=>Qa,transformClassname:()=>C0,transformDuration:()=>ec,transformGridTemplate:()=>Gf,transformShadow:()=>Wf,transformSize:()=>wt,transformSizeRatio:()=>I,transformTextStroke:()=>Hf,transformTransition:()=>Xm,transformersByPrefix:()=>Ty,transfromGap:()=>Kf,translate:()=>Cc,triggerEventOn:()=>gr,triggerEventOnUpdate:()=>eg,trimStringFromSymbols:()=>Fp,typography:()=>va,unit:()=>am,unstackArrayOfObjects:()=>ai,update:()=>gs,updateProps:()=>Hh,updateVars:()=>eD,upsertTranslation:()=>Tc,useCssInProps:()=>ne,useHostState:()=>Ny,usePropsAsCSS:()=>S0,useSelectorsAsCSS:()=>v0,variables:()=>ca,vars:()=>Om,verbose:()=>Lo,warn:()=>sa,warnStateKeyShadowsMethod:()=>fl,window:()=>C,wrapHoverRule:()=>Sr});var _p={};L(_p,{RESERVED_STORE_METHODS:()=>Ox,SIGNAL_ENGINE_KEY:()=>bo,SIGNAL_INSTANCES_KEY:()=>mo,STORE_METHOD_NAMES:()=>Tx,VERSION:()=>Px,__resetSignalEngine:()=>bp,__resetSignalInstances:()=>yp,__resetStateShadowWarnings:()=>Rx,batch:()=>al,createComputed:()=>Cx,createEffect:()=>G,createScopeStore:()=>ll,createSignal:()=>ei,createStore:()=>lr,getObserver:()=>cl,getSignals:()=>Ax,isStore:()=>xt,registerSignalInstance:()=>yo,setObserver:()=>Ex,warnStateKeyShadowsMethod:()=>fl});var lp={};L(lp,{WRITE_JOURNAL:()=>Zs,batch:()=>Qs,createComputed:()=>MA,createEffect:()=>FA,createSignal:()=>We,getObserver:()=>ap,journalWrite:()=>Js,setObserver:()=>$A});var Yt=null,tl=0,el=[],ap=()=>Yt,$A=t=>{Yt=t},rl=0,np=[];function We(t){let e=new Set;function r(){return Yt&&(e.add(Yt),Yt._sources.add(s)),t}function n(i){i!==t&&(t=i,zA(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:\"signal\"};return s}function MA(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:\"computed\",_subscribers:n,_execute(){ip(o);let s=Yt;Yt=o;try{e=t(),r=!1}finally{Yt=s}},_notify(){r=!0,n.size>0&&kx(n)},get(){return Yt&&(n.add(Yt),Yt._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var De=new Set,op=!1,Zs=[];function Js(t){Zs.push(t),Zs.length>32&&Zs.shift()}function FA(t,e){let r=e?.depth??0,n={_sources:new Set,_type:\"effect\",_depth:r,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;ip(n);let o=Yt;Yt=n;try{t()}catch(s){console.error(\"[smbls] effect error:\",s)}finally{Yt=o}},_notify(){n._disposed||(tl>0?el.push(n):rl>0?np.push(n):cp(n))},dispose(){n._disposed=!0,ip(n)}};return n._execute(),n}function Qs(t){tl++;try{t()}finally{tl--,tl===0&&VA()}}var sp=!1,xx=1e3,NA=8,jA=256,BA=4;function wx(){return typeof performance<\"u\"?performance.now():Date.now()}function cp(t){De.add(t),!sp&&(op||(op=!0,queueMicrotask(Sx)))}var go=[];function UA(){if(De.size===1){let[e]=De;return De.clear(),e._disposed?0:(e._execute(),1)}go.length=0;for(let e of De)go.push(e);De.clear(),go.sort((e,r)=>e._depth-r._depth);let t=0;for(let e=0;e<go.length;e++){let r=go[e];r._disposed||(r._execute(),t++)}return go.length=0,t}function Sx(t=0,e=0){if(op=!1,De.size===0)return;sp=!0;let r=wx(),n=!1;try{for(;De.size>0;){if(++t>xx){let o=new Map;for(let c of De){let l=c._label;if(typeof l==\"function\")try{l=l()}catch{l=\"<label error>\"}if(l=l||\"<unlabeled>\",o.set(l,(o.get(l)||0)+1),o.size>=12)break}let s=[...o.entries()].map(([c,l])=>l>1?`${c} \\xD7${l}`:c).join(\", \"),i=new Map;for(let c of Zs)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \\xD7${l}`:c).join(\", \");console.error(\"[smbls] reactive effect cascade exceeded\",xx,\"passes in a single flush \\u2014 breaking to avoid hanging the thread.\",\"This usually means an effect (or an onUpdate/subscribeTo handler\",\"it calls into) unconditionally writes back a signal it depends on.\",\"Still queued at break (the loop participants):\",s||\"<queue empty>\",\"\\u2014 last notifying store writes:\",a||\"<none recorded>\"),De.clear();break}if(e+=UA(),De.size>0&&(e>=jA||t>=BA)&&wx()-r>NA){n=!0,setTimeout(()=>Sx(t,e),0);break}}}finally{n||(sp=!1)}}function VA(){for(let t=0;t<el.length;t++)cp(el[t]);el.length=0}function kx(t){rl++;try{for(let e of t)e._notify()}finally{if(rl--,rl===0&&np.length>0){let e=np.splice(0);for(let r=0;r<e.length;r++)cp(e[r])}}}function zA(t){kx(t)}function ip(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var mp={};L(mp,{RESERVED_STORE_METHODS:()=>ti,STORE_METHOD_NAMES:()=>gp,__resetStateShadowWarnings:()=>HA,createScopeStore:()=>GA,createStore:()=>nl,getSignals:()=>KA,isStore:()=>qA,warnStateKeyShadowsMethod:()=>hp});var qe=Symbol(\"store\"),ol=Symbol(\"signals\"),gp=[\"update\",\"parse\",\"clean\",\"keys\",\"values\",\"replace\",\"add\",\"remove\",\"destroy\",\"quietUpdate\"],ti=new Set(gp),pp=new Set,fp=(t,e)=>t?t+\".\"+e:String(e);function hp(t,e){let r=(e||\"\")+\"::\"+t;if(pp.has(r))return;pp.add(r);let n=e?`state.${e}`:\"state\",o=`[smbls/state] \"${t}\" is a reserved store-method name and was written as DATA at ${n}.${t}. The value is preserved and readable \\u2014 data wins over the method \\u2014 but \"${n}.${t}(\\u2026)\" no longer reaches the store method on this node. Use \"${n}.$${t}(\\u2026)\" for the method, or rename the data key. Reserved: ${gp.join(\", \")}.`;typeof console<\"u\"&&console.warn&&console.warn(o)}function HA(){pp.clear()}var up=t=>!t||typeof t!=\"object\"||Array.isArray(t)||t[qe]||Object.isFrozen(t)||typeof Node<\"u\"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!sl(t),WA=12,sl=t=>{if(!t||typeof t!=\"object\")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function il(t,e,r){if(t===e)return!0;if(r>WA)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!il(t[n],e[n],r+1))return!1;return!0}if(sl(t)&&sl(e)){let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s of n)if(!Object.prototype.hasOwnProperty.call(e,s)||!il(t[s],e[s],r+1))return!1;return!0}return!1}function nl(t,e,r,n){r===void 0&&(r=0),n===void 0&&(n=\"\");let o={},s={},i=e&&e.maxDepth||8;if(t&&typeof t==\"object\")for(let _ in t){if(_===\"__proto__\"||!Object.prototype.hasOwnProperty.call(t,_))continue;if(_.startsWith(\"__\")){s[_]=t[_];continue}ti.has(_)&&hp(_,n);let y=t[_];r<i&&y&&typeof y==\"object\"&&!up(y)?(s[_]=y,o[_]=We(nl(y,e,r+1,fp(n,_)))):(s[_]=y,o[_]=We(y))}let a=new Proxy(s,{get(_,y){if(y===qe)return!0;if(y===ol)return o;if(y===\"__raw\")return _;if(y===\"$update\")return c;if(y===\"$parse\")return f;if(y===\"$clean\")return u;if(y===\"$keys\")return d;if(y===\"$values\")return h;if(y===\"$replace\")return p;if(y===\"$add\")return g;if(y===\"$remove\")return m;if(y===\"$destroy\")return b;if(y===\"$quietUpdate\")return l;if(ti.has(y)&&!Object.prototype.hasOwnProperty.call(o,y))switch(y){case\"update\":return c;case\"parse\":return f;case\"clean\":return u;case\"keys\":return d;case\"values\":return h;case\"replace\":return p;case\"add\":return g;case\"remove\":return m;case\"destroy\":return b;case\"quietUpdate\":return l}if(y===\"__element\")return _.__element;if(y===\"parent\")return _.parent;if(y===\"root\")return _.root;if(Object.prototype.hasOwnProperty.call(o,y)){let S=o[y].get();if(S!==void 0||!(y!==\"root\"&&_.root&&_.root!==a))return S}if(_[y]!==void 0)return _[y];let x=typeof y==\"string\"&&!y.startsWith(\"__\")&&y!==\"then\"&&y!==\"constructor\"&&ap()!=null;if(y!==\"root\"&&_.root&&_.root!==a){let S=_.root[y];return x&&!Object.prototype.hasOwnProperty.call(o,y)&&(o[y]=We(void 0),o[y].get()),S}if(x)return o[y]=We(void 0),o[y].get()},set(_,y,x){if(y===\"__proto__\")return!1;if(y===\"__element\"||y===\"parent\"||y===\"root\"||typeof y==\"string\"&&y.startsWith(\"__\")&&!Object.prototype.hasOwnProperty.call(o,y))return _[y]=x,!0;ti.has(y)&&hp(y,n);let S=fp(n,y);if(Object.prototype.hasOwnProperty.call(o,y))if(x&&typeof x==\"object\"&&!up(x)){if(x===_[y])return!0;let v=o[y].peek(),E=v&&v[qe]?v.$parse():v;if(il(x,E,0))return!0;_[y]=x,Js(S),o[y].set(nl(x,e,r+1,S))}else{if(Array.isArray(x)&&x!==_[y]&&Array.isArray(o[y].peek())&&il(x,o[y].peek(),0))return!0;o[y].peek()!==x&&Js(S),_[y]=x,o[y].set(x)}else _[y]=x,x&&typeof x==\"object\"&&!up(x)?o[y]=We(nl(x,e,r+1,S)):o[y]=We(x);return!0},has(_,y){return typeof y==\"string\"&&y.charCodeAt(0)===36&&ti.has(y.slice(1))?!0:y in o||y in _},ownKeys(_){return Object.keys(o)},getOwnPropertyDescriptor(_,y){return y in o?{enumerable:!0,configurable:!0,value:o[y].peek()}:Object.getOwnPropertyDescriptor(_,y)},deleteProperty(_,y){return o[y]&&(o[y].peek()!==void 0&&Js(fp(n,y)),o[y].set(void 0),delete o[y]),delete _[y],!0}});function c(_,y){Qs(()=>{for(let S in _)S!==\"__proto__\"&&(a[S]=_[S])});let x=s.__element;return x&&x.onUpdate&&!y?.quiet&&x.onUpdate(x,a,x.context),a}function l(_){return c(_,{quiet:!0})}function f(_){if(_||(_=new Set),_.has(a))return\"[Circular]\";_.add(a);let y={};for(let x in o){if(x===\"parent\"||x===\"root\"||x.startsWith(\"__\"))continue;let S=o[x].peek();S&&S[qe]?y[x]=S.$parse(_):y[x]=S}return y}function u(){return Qs(()=>{for(let _ in o)delete a[_]}),a}function d(){return Object.keys(o)}function h(){return Object.keys(o).map(_=>o[_].peek())}function p(_){return Qs(()=>{for(let y in o)y in _||delete a[y];for(let y in _)y!==\"__proto__\"&&(a[y]=_[y])}),a}function g(_,y){let x=Object.prototype.hasOwnProperty.call(o,_)?o[_].peek():s[_];if(Array.isArray(x))return a[_]=[...x,y],a;if(x&&typeof x==\"object\"&&!Array.isArray(x)){if(sl(y))x[qe]?x.$update(y):a[_]={...x,...y};else{let S=String(Object.keys(x).length);x[qe]?x.$update({[S]:y}):a[_]={...x,[S]:y}}return a}return a[_]=y,a}function m(_){return delete a[_],a}function b(){u(),s.__element=null,s.parent=null}return a}function qA(t){return t&&t[qe]===!0}function KA(t){return t[ol]}function GA(t,e){let r={},n={};if(t&&typeof t==\"object\")for(let i in t)n[i]=t[i],r[i]=We(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[ol];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[qe]?a[dp]:null}return null};return new Proxy(n,{get(i,a){return a===qe?!0:a===ol?r:a===dp?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]=We(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[qe]?c[dp]: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 dp=Symbol(\"scope.parent\");var bn=\"3.14.784\";var mo=\"__SMBLS_SIGNAL_INSTANCES__\",yo=(t,e,r)=>{let n=e||(typeof globalThis<\"u\"?globalThis:null);if(!n)return null;let o=n[mo]||(n[mo]={versions:[],engines:0,reported:!1});return typeof o.engines!=\"number\"&&(o.engines=o.versions.length),o.versions.push(t||bn),r||o.engines++,o.engines>1&&!o.reported&&(o.reported=!0,console.error(\"[smbls] duplicate @symbo.ls/signal instance \\u2014\",o.engines,\"copies of the reactive engine are loaded on this page:\",o.versions.join(\", \")+\".\",\"Each copy keeps its own observer and effect queue, so an effect created\",\"by one copy never re-fires from another copy's store writes, and one\",\"copy's cascade breaker cannot see the other's queue.\",\"Copies of the SAME version adopt a single engine automatically, so\",\"this means the versions above DIFFER: a fossil copy is resolving beside\",\"the current one. That is a dependency-graph fault, not an application\",\"bug \\u2014 align the version wherever @symbo.ls/signal is imported, then\",\"regenerate the lockfile so exactly one version resolves.\")),o},yp=t=>{let e=t||(typeof globalThis<\"u\"?globalThis:null);e&&delete e[mo]};var bo=\"__SMBLS_SIGNAL_ENGINE__\",vx=(t,e,r)=>{let n=e||bn,o=r||(typeof globalThis<\"u\"?globalThis:null);if(!o)return t;let s=o[bo];return s&&s.engine&&s.version===n?(yo(n,o,!0),s.engine):(s||(o[bo]={version:n,engine:t}),yo(n,o,!1),t)},bp=t=>{let e=t||(typeof globalThis<\"u\"?globalThis:null);e&&delete e[bo]};var Ht=vx({...lp,...mp,VERSION:bn},bn),ei=Ht.createSignal,Cx=Ht.createComputed,G=Ht.createEffect,al=Ht.batch,cl=Ht.getObserver,Ex=Ht.setObserver,lr=Ht.createStore,ll=Ht.createScopeStore,xt=Ht.isStore,Ax=Ht.getSignals,Tx=Ht.STORE_METHOD_NAMES,Ox=Ht.RESERVED_STORE_METHODS,fl=Ht.warnStateKeyShadowsMethod,Rx=Ht.__resetStateShadowWarnings,Px=Ht.VERSION;var ay={};L(ay,{assertEmitIntegrity:()=>oy,css:()=>pe,getActiveDocument:()=>Xn,getCacheSize:()=>iy,getEmitStats:()=>ru,injectGlobal:()=>St,keyframes:()=>as,reset:()=>QS,resetEmitStats:()=>ny,setActiveDocument:()=>ry,setWasmEngine:()=>nc,wrapHoverRule:()=>Sr});var Qm={};L(Qm,{COMPOUND_CSS_KEYWORDS:()=>Mn,CONFIG:()=>Bn,CONFIG_MERGE_EXL:()=>fe,CSS_NAMED_COLOR_HEX:()=>yf,CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_UNITS:()=>xo,FACTORY:()=>le,STANDARD_SCHEME_QUERIES:()=>Bf,VALUE_TRANSFORMERS:()=>Xf,__resetSkinWarnings:()=>Ym,activateConfig:()=>sS,aliasCaseVariants:()=>Zo,animation:()=>km,appendSVGSprite:()=>Xa,appendSvgIconsSprite:()=>qn,applyDocument:()=>Ya,applyHeadings:()=>zf,applyMediaSequenceVars:()=>Wr,applyReset:()=>Za,applySequenceGlobalVars:()=>La,applySequenceVars:()=>xr,applySkins:()=>Ja,applySpacingSequence:()=>Na,applyTimingSequence:()=>Ga,applyTypographySequence:()=>Wa,breakpoints:()=>wm,buildSkinVarStyles:()=>Kn,changeGlobalTheme:()=>Zf,changeLightness:()=>om,checkIfBoxSize:()=>Fa,class:()=>Tm,color:()=>hm,colorStringToRgbaArray:()=>ke,compositeOverBackdrop:()=>Fn,contrastRatio:()=>Wo,convertSvgToSymbol:()=>Ma,createConfig:()=>Aa,cssMediaVars:()=>$f,cssVars:()=>Lf,defineResolvedThemeSignal:()=>Xo,defineThemeSignal:()=>Yo,devices:()=>Sm,document:()=>eS,findHeadingLetter:()=>Nf,findHeadings:()=>Ia,font:()=>cm,fontFace:()=>um,fontFamily:()=>lm,fontFamilyTypes:()=>fm,generateSequence:()=>Qt,generateSequencePosition:()=>$m,generateSprite:()=>$a,generateSubSequence:()=>Pa,getActiveConfig:()=>T,getColor:()=>tt,getColorShade:()=>Sf,getDefaultOrFirstKey:()=>Nn,getFnPrefixAndValue:()=>_r,getFontFace:()=>im,getFontFaceEach:()=>jn,getFontFaceEachString:()=>Rf,getFontFaceString:()=>ka,getFontFamily:()=>Ha,getFontFormat:()=>Tf,getFontSizeByKey:()=>qa,getMediaColor:()=>Lt,getMediaTheme:()=>Ae,getResolvedThemeSignal:()=>oS,getRgbTone:()=>er,getSafeInk:()=>Uf,getSafeInkInfo:()=>jm,getSequenceValue:()=>Un,getSequenceValueBySymbols:()=>Da,getSequenceValuePropertyPair:()=>nr,getShadow:()=>Ba,getShapeByKey:()=>Ka,getSpacingBasedOnRatio:()=>Ee,getSpacingByKey:()=>Ct,getSubratio:()=>Ra,getSubratioDifference:()=>Oa,getTheme:()=>zm,getThemeSignal:()=>nS,getTimingByKey:()=>de,getTimingFunction:()=>Te,gradient:()=>gm,grid:()=>Am,hexToRgb:()=>tm,hexToRgbArray:()=>bf,hexToRgba:()=>rm,hslToRgb:()=>wf,icons:()=>bm,isCSSVar:()=>bt,isDomDocument:()=>fr,isGoogleFontsUrl:()=>qo,isHostObject:()=>ur,isPlainColor:()=>Gr,isRawUnitValue:()=>ri,isResolvedColor:()=>Fe,isScalingUnit:()=>_n,isWritableFamilyBucket:()=>xp,linearChannelToSrgb:()=>Cf,media:()=>dm,mixTwoColors:()=>Qg,mixTwoRgb:()=>nm,mixTwoRgba:()=>kf,numToLetterMap:()=>rr,oklabToLinearSrgb:()=>Ef,oklabToOklch:()=>xa,oklchToGamutSafeSrgb:()=>wa,oklchToOklab:()=>Af,opacify:()=>Ho,parkHostObject:()=>Ir,parseColorToken:()=>jt,popConfig:()=>rt,pushConfig:()=>ot,quietColorProbe:()=>Vn,relativeLuminance:()=>$n,reset:()=>rS,resolveBorderValue:()=>ue,resolveColorRgb:()=>zn,resolveColorsInGradient:()=>tc,resolveConfigDocument:()=>_o,resolveFileUrl:()=>ve,resolveShadowValue:()=>Hn,returnSubThemeOrDefault:()=>sm,rgbArrayToHex:()=>_f,rgbToHSL:()=>xf,rgbToHex:()=>em,runThroughMedia:()=>Vf,schemeGuardSelector:()=>Xr,schemeMediaQuery:()=>Yr,scratchDefaultConfig:()=>Go,scratchSystem:()=>rs,scratchUtils:()=>qr,semanticIcons:()=>_m,sequence:()=>br,set:()=>Gn,setActiveConfig:()=>Mf,setAdaptiveSchemeVar:()=>Zr,setColor:()=>Kr,setCustomFont:()=>Sa,setCustomFontMedia:()=>Hr,setEach:()=>Jm,setFont:()=>za,setFontFamily:()=>ts,setFontImport:()=>Ko,setGradient:()=>Jo,setInCustomFontMedia:()=>Of,setMediaTheme:()=>Qo,setSVG:()=>es,setScalingVar:()=>Ta,setShadow:()=>Jr,setSubScalingVar:()=>Ff,setSvgIcon:()=>Wn,setTheme:()=>Va,setValue:()=>Zm,setVariables:()=>Mm,shadow:()=>ym,shape:()=>Pm,sizes:()=>Rm,skins:()=>Dm,spacing:()=>pm,splitSpacedValue:()=>ja,splitTopLevelCommas:()=>yr,splitTopLevelSpaces:()=>ft,splitTransition:()=>Yf,srgbChannelToLinear:()=>vf,srgbToOklab:()=>_a,svg:()=>vm,svgData:()=>Cm,templates:()=>Em,theme:()=>mm,timing:()=>xm,toCamel:()=>Ea,toLinearChannel:()=>zo,transformBackgroundImage:()=>qf,transformBorder:()=>or,transformBorderRadius:()=>wr,transformBoxShadow:()=>Qa,transformDuration:()=>ec,transformGridTemplate:()=>Gf,transformShadow:()=>Wf,transformSize:()=>wt,transformSizeRatio:()=>I,transformTextStroke:()=>Hf,transformTransition:()=>Xm,transfromGap:()=>Kf,typography:()=>va,unit:()=>am,vars:()=>Om});var qr={};L(qr,{COMPOUND_CSS_KEYWORDS:()=>Mn,CSS_NAMED_COLOR_HEX:()=>yf,CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_UNITS:()=>xo,applyMediaSequenceVars:()=>Wr,applySequenceGlobalVars:()=>La,applySequenceVars:()=>xr,changeLightness:()=>om,colorStringToRgbaArray:()=>ke,compositeOverBackdrop:()=>Fn,contrastRatio:()=>Wo,convertSvgToSymbol:()=>Ma,findHeadingLetter:()=>Nf,findHeadings:()=>Ia,generateSequence:()=>Qt,generateSequencePosition:()=>$m,generateSprite:()=>$a,generateSubSequence:()=>Pa,getColorShade:()=>Sf,getDefaultOrFirstKey:()=>Nn,getFnPrefixAndValue:()=>_r,getFontFace:()=>im,getFontFaceEach:()=>jn,getFontFaceEachString:()=>Rf,getFontFaceString:()=>ka,getFontFormat:()=>Tf,getRgbTone:()=>er,getSequenceValue:()=>Un,getSequenceValueBySymbols:()=>Da,getSequenceValuePropertyPair:()=>nr,getSubratio:()=>Ra,getSubratioDifference:()=>Oa,hexToRgb:()=>tm,hexToRgbArray:()=>bf,hexToRgba:()=>rm,hslToRgb:()=>wf,isCSSVar:()=>bt,isDomDocument:()=>fr,isGoogleFontsUrl:()=>qo,isHostObject:()=>ur,isRawUnitValue:()=>ri,isResolvedColor:()=>Fe,isScalingUnit:()=>_n,isWritableFamilyBucket:()=>xp,linearChannelToSrgb:()=>Cf,mixTwoColors:()=>Qg,mixTwoRgb:()=>nm,mixTwoRgba:()=>kf,numToLetterMap:()=>rr,oklabToLinearSrgb:()=>Ef,oklabToOklch:()=>xa,oklchToGamutSafeSrgb:()=>wa,oklchToOklab:()=>Af,opacify:()=>Ho,parkHostObject:()=>Ir,parseColorToken:()=>jt,relativeLuminance:()=>$n,resolveConfigDocument:()=>_o,resolveFileUrl:()=>ve,returnSubThemeOrDefault:()=>sm,rgbArrayToHex:()=>_f,rgbToHSL:()=>xf,rgbToHex:()=>em,setCustomFont:()=>Sa,setCustomFontMedia:()=>Hr,setFontImport:()=>Ko,setInCustomFontMedia:()=>Of,setScalingVar:()=>Ta,setSubScalingVar:()=>Ff,setVariables:()=>Mm,splitTopLevelCommas:()=>yr,splitTopLevelSpaces:()=>ft,srgbChannelToLinear:()=>vf,srgbToOklab:()=>_a,toLinearChannel:()=>zo});var fr=t=>!!(t&&t.documentElement&&typeof t.createElement==\"function\"&&t.head!==void 0),ur=t=>{if(t===null||typeof t!=\"object\")return!1;let e=Object.prototype.toString.call(t);return!!(e!==\"[object Object]\"&&e!==\"[object Array]\"||typeof t.nodeType==\"number\"||t.defaultView||t.window===t||t.self===t)},xp=t=>t!==null&&typeof t==\"object\"&&!ur(t),Ir=(t,e,r)=>{if(!t)return;if(fr(r)){t.__domDocument||(t.__domDocument=r);return}let n=`__host_${e}`;t[n]||(t[n]=r)},_o=t=>t?fr(t.__domDocument)?t.__domDocument:fr(t.document)?t.document:null:null;var _n=t=>t===\"em\"||t===\"rem\"||t===\"vw\"||t===\"vh\"||t===\"vmax\"||t===\"vmin\",xo=[\"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\"],YA=t=>t.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),XA=new RegExp(`^-?(?:\\\\d+\\\\.?\\\\d*|\\\\.\\\\d+)(?:${xo.filter(t=>t!==\"auto\").map(YA).join(\"|\")})$`),ri=t=>XA.test(String(t).trim());P();var yf={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},ke=t=>{if(t===\"\")return[0,0,0,0];if(t.toLowerCase()===\"transparent\")return[0,0,0,0];let e=yf[t.toLowerCase()];if(e&&(t=e),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&&et&&C){let r=et.body.appendChild(et.createElement(\"fictum\")),n=\"rgb(1, 2, 3)\";if(r.style.color=n,r.style.color!==n){et.body.removeChild(r);return}if(r.style.color=t,r.style.color===n||r.style.color===\"\")return et.body.removeChild(r),[0,0,0,0];t=C.getComputedStyle(r).color,et.body.removeChild(r)}return t.indexOf(\"rgb\")===0?(t.indexOf(\"rgba\")===-1&&(t=`${t}, 1`),t.match(/[\\.\\d]+/g).map(r=>+r)):[0,0,0,0]},Qg=(t,e,r=.5)=>(t=ke(t),e=ke(e),kf(t,e,r)),tm=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},bf=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},em=(t,e,r)=>\"#\"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),_f=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),rm=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},nm=(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})`},om=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},xf=(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]},wf=(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)],Sf=(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)},kf=(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})`},Ho=(t,e)=>{let r=ke(t);if(!r){Tn()&&console.warn(t+\" color is not rgba\");return}return r[3]=e,`rgba(${r})`},bt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Mn=new Set([\"currentcolor\",\"transparent\",\"thin\",\"medium\",\"thick\"]),ce=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,RO=/^([a-zA-Z]\\w*(?:-[a-zA-Z]\\w*)*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,jt=t=>{if(!w(t))return null;if(ce.test(t))return{passthrough:t};if(bt(t))return{cssVar:t};let e=t.match(RO);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}},Fe=t=>w(t)&&(t.includes(\"rgb\")||t.includes(\"var(\")||t.includes(\"#\")),yr=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},ft=t=>{let e=[],r=\"\",n=0;for(let o of t){if(o===\"(\"?n+=1:o===\")\"&&n>0&&(n-=1),n===0&&/\\s/.test(o)){r.length&&e.push(r),r=\"\";continue}r+=o}return r.length&&e.push(r),e},zo=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),$n=t=>.2126*zo(t[0])+.7152*zo(t[1])+.0722*zo(t[2]),Wo=(t,e)=>{let r=$n(t)+.05,n=$n(e)+.05;return r>n?r/n:n/r},vf=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Cf=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,_a=([t,e,r])=>{let[n,o,s]=[t,e,r].map(vf),i=.4122214708*n+.5363325363*o+.0514459929*s,a=.2119034982*n+.6806995451*o+.1073969566*s,c=.0883024619*n+.2817188376*o+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},Ef=([t,e,r])=>{let n=t+.3963377774*e+.2158037573*r,o=t-.1055613458*e-.0638541728*r,s=t-.0894841775*e-1.291485548*r,i=n**3,a=o**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},xa=([t,e,r])=>{let n=Math.atan2(r,e)*180/Math.PI;return n<0&&(n+=360),[t,Math.sqrt(e*e+r*r),n]},Af=([t,e,r])=>{let n=r*Math.PI/180;return[t,e*Math.cos(n),e*Math.sin(n)]},wa=(t,e,r,n=24)=>{let o=a=>Ef(Af([t,a,r])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=o(e);if(!s(i)){let a=0,c=e;for(let l=0;l<n;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>Cf(Math.max(0,Math.min(1,a))))},Fn=(t,e=1,r=[255,255,255])=>e>=1?t:t.map((n,o)=>n*e+r[o]*(1-e)),er=(t,e)=>{w(t)&&t.includes(\"rgb\")&&(t=ke(t).join(\", \")),w(t)&&(t=t.split(\",\").map(o=>parseFloat(o.trim()))),Ke(e)&&(e+=\"\");let r=_f(t),n=e.slice(0,1);if(n===\"-\"||n===\"+\"){let o=Sf(r,parseFloat(e));return bf(o).join(\", \")}else{let[o,s,i]=t,[a,c]=xf(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return wf(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(\", \")}};var sm=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var ve=(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},Nn=(t,e)=>{if(t[e])return t[e].value;let r=()=>Object.keys(t).find(o=>o!==\"default\"&&t[o]&&t[o].value&&!t[o].isSystemFallback);if(t.default){let o=t[t.default];if(o&&o.isSystemFallback){let s=r();if(s)return t[s].value}if(o)return o.value}let n=r()||Object.keys(t).find(o=>o!==\"default\"&&t[o]&&t[o].value);return n&&t[n]&&t[n].value},Tf=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},qo=t=>t&&(t.includes(\"fonts.googleapis.com\")||t.includes(\"fonts.gstatic.com\")),Ko=t=>`@import url('${t}');`,Of=t=>`@font-face { ${t} }`,Sa=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a==\"string\"&&a).map(a=>{let c=Tf(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.unicodeRange?`\n unicode-range: ${n.unicodeRange};`:\"\"}\n src: ${i};`},Hr=(t,e,r,n)=>`@font-face {${Sa(t,e,r,n)}\n}`,jn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[o],u=Array.isArray(s)?s.map(d=>ve(d,r)||d):ve(s,r)||s;return Sa(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),im=t=>Object.keys(t).map(r=>jn(r,t[r].value)),Rf=(t,e,r)=>{if(e&&e.isVariable){let s=ve(e.url,r)||e.url;return qo(s)?Ko(s):Hr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\",unicodeRange:e.unicodeRange})}if(e[0])return jn(t,e,r).map(Of);let o=Array.isArray(e.url)?e.url.map(s=>ve(s,r)||s):ve(e.url,r)||e.url;return Hr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},ka=(t,e)=>Object.keys(t).map(n=>Rf(n,t[n].value,e));P();P();P();P();var Go={};L(Go,{animation:()=>km,breakpoints:()=>wm,class:()=>Tm,color:()=>hm,devices:()=>Sm,document:()=>eS,font:()=>cm,fontFace:()=>um,fontFamily:()=>lm,fontFamilyTypes:()=>fm,gradient:()=>gm,grid:()=>Am,icons:()=>bm,media:()=>dm,reset:()=>rS,semanticIcons:()=>_m,sequence:()=>br,shadow:()=>ym,shape:()=>Pm,sizes:()=>Rm,skins:()=>Dm,spacing:()=>pm,svg:()=>vm,svgData:()=>Cm,templates:()=>Em,theme:()=>mm,timing:()=>xm,typography:()=>va,unit:()=>am,vars:()=>Om});var br={\"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 am={default:\"em\"};var PO={browserDefault:16,base:16,type:\"font-size\",ratio:br[\"minor-third\"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:\"em\",templates:{},sequence:{},scales:{},vars:{}},va=PO;var cm={};var lm={},fm={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},um={};var dm={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var DO={base:va.base,type:\"spacing\",ratio:br.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},pm=DO;var hm={},gm={};var mm={};var ym={};var bm={},_m={};var IO={default:150,base:150,type:\"timing\",ratio:br[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},xm=IO;var eS={};var wm={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Sm={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 km={};var vm={},Cm={};var Em={};var LO={},Am=LO;var Tm={};var rS={},Om={},Rm={},Pm={},Dm={};var Lf={},$f={},fe=new Set,Pf=Go,Df={},Ea=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in Pf){let e=t.toLowerCase();Df[e]=Pf[t];let r=Ea(e);r!==e&&(Df[r]=Pf[t]),e!==t&&(Df[t]=Pf[t])}var Bn={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:Lf,cssMediaVars:$f,CSS_VARS:Lf,CSS_MEDIA_VARS:$f,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Df},Yo=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Ot(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let r=Ot(e)?e:t.globalTheme,n=ei(Ot(r)?r:\"auto\");return Object.defineProperty(t,\"globalTheme\",{get(){return n.get()},set(o){n.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,\"__globalThemeSignal\",{value:n,enumerable:!1,configurable:!0,writable:!0}),n},nS=t=>t?Yo(t):null,Xo=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Ot(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let r=Ot(e)?e:t.resolvedTheme,n=ei(Ot(r)?r:null);return Object.defineProperty(t,\"resolvedTheme\",{get(){return n.get()},set(o){n.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,\"__resolvedThemeSignal\",{value:n,enumerable:!1,configurable:!0,writable:!0}),n},oS=t=>t?Xo(t):null;Yo(Bn);Xo(Bn);var If=st(Bn),le={active:\"0\",0:Bn},sS=t=>(Ot(t)&&(le.active=t),le[t||le.active]),Ca=[],ot=t=>{t&&t._scratchConfig&&Ca.push(t)},rt=()=>{Ca.pop()},T=t=>Ca.length?Ca[Ca.length-1]:le[t||le.active]||Bn,Mf=t=>{if(k(t))return le.active=\"1\",le[1]=nt(t,st(If),fe),Zo(le[1]),Yo(le[1]),Xo(le[1]),t},$O=[\"useReset\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\"],MO=[\"useVariable\",\"globalTheme\",\"verbose\"],FO=[[\"fontfamily\",\"fontFamily\",\"font_family\"],[\"fontfamilytypes\",\"fontFamilyTypes\"],[\"semanticicons\",\"semanticIcons\"],[\"svgdata\",\"svgData\"]],Zo=t=>{for(let e of FO){let r;for(let n of e){let o=t[n];k(o)&&(r=r?nt(r,o,fe):o)}if(r)for(let n of e)k(t[n])&&(t[n]=r)}},Aa=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:T(),o=st(!r&&n&&n._scratchConfig?n:If);for(let i of $O)delete o[i];for(let i of MO)Object.prototype.hasOwnProperty.call(If,i)?o[i]=If[i]:delete o[i];let s=nt(e||{},o,fe);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s.cssSkinVars={},s.cssSkinFallback={},s._scratchConfig=!0,Zo(s),Yo(s),Xo(s),t&&(le[t]=s),s};var rr={\"-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\"},Lm=(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=iS.has(e.unit)?\"rem\":e.unit;e.vars[n]=s+c},_r=t=>{if(!t.includes(\"(\"))return t;let e=t.trim(),r=e.indexOf(\"(\"),n=e.slice(0,r),o=0,s=-1;for(let i=r;i<e.length;i++){let a=e[i];if(a===\"(\")o++;else if(a===\")\"&&(o--,o===0)){s=i;break}}return s===-1||/\\s/.test(n)||e.slice(s+1).trim()!==\"\"?[void 0,t]:[n,e.slice(r+1,s)]},Im=\"\\0\",NO=(t,e)=>{let r=\"\",n=0,o=\"\";for(let s of t){if(n===0&&s!==\"(\"){r+=s;continue}o+=s,s===\"(\"?n++:s===\")\"&&(n--,n===0&&(r+=Im+e.length+Im,e.push(o),o=\"\"))}return r+o},jO=(t,e)=>t.indexOf(Im)===-1?t:t.replace(/\\u0000(\\d+)\\u0000/g,(r,n)=>e[Number(n)]),BO=/^(calc|min|max|clamp)\\((.*)\\)$/,UO=(t,e)=>{let r=BO.exec(t);return r?`${r[1]}(${Da(r[2],e)})`:t.indexOf(\"(\")!==-1?t:Un(t,e)},iS=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),Ta=(t,e)=>{let{base:r,type:n,unit:o}=e,s=iS.has(o)?\"rem\":o,i=(_n(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=rr[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=rr[t+1],u=Math.abs(t),d=Math.pow(aS,2*u),h=rr[u];return h?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${h}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ff=(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}))`},Oa=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ra=(t,e)=>Oa(t,e).map(r=>r/t),Pa=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,h]=Oa(o,s);l>16?f=[u,d,h]:f=[u,h],f.forEach((p,g)=>{let m=~~(p/n*1e3)/1e3,b=i+(g+1),_=a+(g+1)/10,y=Ff(g+1,f,i,e),x={key:r+(g+1),variable:b,value:p,scaling:m,scalingVariable:y,index:_};Lm(x,e)})},aS=1.618,VO=(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(aS,2*n);return Math.max(o,s)},Qt=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=rr[f],d=VO(f,r,n),h=~~(d/r*100)/100,p=c+u,g=Ta(f,t),m={key:u,variable:p,value:d,base:r,scaling:h,scalingVariable:g,ratio:n,index:f};Lm(m,t),s&&Pa(m,t)}return t},$m=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=w(e)?e:rr[e],a=w(e)?Object.entries(rr).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,h=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(r&&r.replace(\".\",\"-\"))+\"-\"+i,p=Ta(a,t),g={key:i,variable:h,value:l,base:n,scaling:f,scalingVariable:p,ratio:o,index:a};return Lm(g,c),s&&Pa(g,c),c},Un=(t=\"A\",e)=>{let r=T(),{unit:n}=r;if(w(t)&&bt(t))return`var(${t})`;if(w(t)&&/^(?:env|var|calc|min|max|clamp)\\(/.test(t.trim()))return t;if(w(t)){let y=r.sizes;if(y){let x=y[t]||y[t.toLowerCase()];if(x!==void 0)return t.slice(0,1)===\"-\"?`calc(${x} * -1)`:x}}let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(ri(t)||!c||[\"none\",\"auto\",\"max-content\",\"min-content\",\"fit-content\",\"inherit\",\"initial\",\"unset\",\"revert\",\"revert-layer\"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+\"-\":\"\"}${ma(e.type.replace(\".\",\"-\"))}-`,h=t.toUpperCase(),p=h.slice(0,1)===\"-\"?\"-\":\"\",g=p?h.slice(1):h,m=\"\";g.includes(\"_\")&&(m=\"_\"+g.split(\"_\")[1].toLowerCase(),g=g.split(\"_\")[0]);let b=y=>a.test(y)?`var(${d}${y}${m})`:y;if(g.includes(\"+\")){let[y,x]=g.split(\"+\"),S=`${b(y)} + ${b(x)}`;return p?`calc((${S}) * -1)`:`calc(${S})`}else if(g.includes(\"*\")){let[y,x]=g.split(\"*\"),S=`${b(y)} * ${b(x)}`;return p?`calc((${S}) * -1)`:`calc(${S})`}else if(g.includes(\"-\")){let[y,x]=g.split(\"-\"),S=`${b(y)} - ${b(x)}`;return p?`calc((${S}) * -1)`:`calc(${S})`}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 y=`var(${d}${g}${m})`;return p?`calc(${y} * -1)`:y}let _=o?o[g]:null;if(!_){if(console.warn(\"can't find\",o,g),pt())throw new Error(`[smbls] Unresolvable design-system token \"${t}\"`+(e.type?` for sequence \"${e.type}\"`:\"\")+\" \\u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.\");return}return s===\"ms\"||s===\"s\"?p+_.val+s:p+_.scaling+s},Da=(t,e)=>{if(![\"+\",\"-\",\"*\",\"/\",\",\"].filter(i=>t.includes(i+\" \")).length)return t;let n=/(\\s+-\\s+|\\s*[+*/,]\\s*)/,o=[];return NO(t,o).split(n).map(i=>{let a=jO(i,o),c=a.trim();return!c||[\"+\",\"-\",\"*\",\"/\",\",\"].includes(c)?a:UO(c,e)}).join(\"\")},nr=(t,e,r,n)=>{if(typeof t!=\"string\")return T().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=_r(t);n=s[0],t=s[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length?t=Da(t,r):t=Un(t,r),{[e]:n?`${n}(${t})`:t}},Nf=(t,e)=>rr[t-e],Ia=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Nf(e,o);return r[s]})};P();var Mm=(t,e)=>{let r=T(),{cssVars:n}=r;j(t.value)||(n[t.var]=t.value)},La=(t,e,r)=>{let n=T(),{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[d,h,p]=Ra(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${h/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${p/a})`},cS=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),xr=(t,e={})=>{let r=T(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=cS.has(i)?\"rem\":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||La(s,t,e);for(let u in l){let d=l[u],h=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+\"_default\"]=h,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=h:(s[d.variable+\"_default\"]=h,s[d.variable]=`var(${d.variable+\"_default\"})`)}},Wr=(t,e,r={})=>{let n=T(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=cS.has(l)?\"rem\":l,{mediaRegenerate:u}=t,{sequence:d,scales:h}=c,p=s[a];if(!p&&n.verbose&&console.warn(\"Can't find media query \",p),!u){let g=i[`@media ${p}`];g||(g=i[`@media ${p}`]={}),La(g,c,r);let m=t.unit||o.default;if(f!==m&&d)for(let b in d){let _=d[b],y=h[b]+f;g[_.variable+\"_default\"]=y,g[_.variable]=y}return}for(let g in d){let m=d[g],b=(_n(f)?h[g]:d[g].val)+f;!p&&n.verbose&&console.warn(\"Can't find query \",p);let _=i[`@media ${p}`];_||(_=i[`@media ${p}`]={}),_[m.variable]=`var(${m.variable+\"_\"+a})`,i[m.variable+\"_\"+a]=b}};P();var fS=Tn(),$a=t=>{let e=T(),r=\"\";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},zO=t=>{let e=t&&(t.default||t);if(!w(e))return fS&&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},{}):{}},HO=(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},lS=new Set,Ma=(t,e)=>{let r=e&&e.default?e.default:e;if(!w(r))return fS&&!lS.has(t)&&(lS.add(t),console.warn(\"convertSvgToSymbol:\",t,\"is not a string\")),\"\";e=r;let n=e.match(/^<symbol\\b[^>]*\\bid=\"([^\"]*)\"/);if(n){let u=n[1];return u===t?e:e.replace(`id=\"${u}\"`,`id=\"${t}\"`)}let o=zO(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=HO(e,t).replace(\"<svg\",`<symbol id=\"${t}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${a}\"`);return f=f.replace(/^<symbol\\b[^>]*>/,u=>u.replace(/\\s(width|height)=\"[^\"]*\"/g,\"\")),f=f.replace(\"</svg\",\"</symbol\"),f=KO(f),f},WO=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",qO=new RegExp(`<(${WO})\\\\b([^>]*?)\\\\s*/>`,\"g\"),KO=t=>t.replace(qO,\"<$1$2></$1>\");var rs={};L(rs,{STANDARD_SCHEME_QUERIES:()=>Bf,__resetSkinWarnings:()=>Ym,appendSVGSprite:()=>Xa,appendSvgIconsSprite:()=>qn,applyDocument:()=>Ya,applyHeadings:()=>zf,applyReset:()=>Za,applySkins:()=>Ja,applySpacingSequence:()=>Na,applyTimingSequence:()=>Ga,applyTypographySequence:()=>Wa,buildSkinVarStyles:()=>Kn,checkIfBoxSize:()=>Fa,getColor:()=>tt,getFontFamily:()=>Ha,getFontSizeByKey:()=>qa,getMediaColor:()=>Lt,getMediaTheme:()=>Ae,getSafeInk:()=>Uf,getSafeInkInfo:()=>jm,getShadow:()=>Ba,getShapeByKey:()=>Ka,getSpacingBasedOnRatio:()=>Ee,getSpacingByKey:()=>Ct,getTheme:()=>zm,getTimingByKey:()=>de,getTimingFunction:()=>Te,isPlainColor:()=>Gr,quietColorProbe:()=>Vn,resolveBorderValue:()=>ue,resolveColorRgb:()=>zn,resolveShadowValue:()=>Hn,runThroughMedia:()=>Vf,schemeGuardSelector:()=>Xr,schemeMediaQuery:()=>Yr,setAdaptiveSchemeVar:()=>Zr,setColor:()=>Kr,setFont:()=>za,setFontFamily:()=>ts,setGradient:()=>Jo,setMediaTheme:()=>Qo,setSVG:()=>es,setShadow:()=>Jr,setSvgIcon:()=>Wn,setTheme:()=>Va,splitSpacedValue:()=>ja});P();var Bf={light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\"},Yr=(t,e)=>{let r=e.media&&e.media[t]||Bf[t];return r?\"@media \"+(r===\"print\"?`${r}`:`screen and ${r}`):null},Xr=t=>{let e=t.scopeSelector||\":root\";return`${e===\":root\"?\":root:not([data-theme])\":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},Ce=new Set,hS=new Set([\"aliceblue\",\"antiquewhite\",\"aqua\",\"aquamarine\",\"azure\",\"beige\",\"bisque\",\"black\",\"blanchedalmond\",\"blue\",\"blueviolet\",\"brown\",\"burlywood\",\"cadetblue\",\"chartreuse\",\"chocolate\",\"coral\",\"cornflowerblue\",\"cornsilk\",\"crimson\",\"cyan\",\"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\",\"fuchsia\",\"gainsboro\",\"ghostwhite\",\"gold\",\"goldenrod\",\"gray\",\"green\",\"greenyellow\",\"grey\",\"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\",\"lime\",\"limegreen\",\"linen\",\"magenta\",\"maroon\",\"mediumaquamarine\",\"mediumblue\",\"mediumorchid\",\"mediumpurple\",\"mediumseagreen\",\"mediumslateblue\",\"mediumspringgreen\",\"mediumturquoise\",\"mediumvioletred\",\"midnightblue\",\"mintcream\",\"mistyrose\",\"moccasin\",\"navajowhite\",\"navy\",\"oldlace\",\"olive\",\"olivedrab\",\"orange\",\"orangered\",\"orchid\",\"palegoldenrod\",\"palegreen\",\"paleturquoise\",\"palevioletred\",\"papayawhip\",\"peachpuff\",\"peru\",\"pink\",\"plum\",\"powderblue\",\"purple\",\"rebeccapurple\",\"red\",\"rosybrown\",\"royalblue\",\"saddlebrown\",\"salmon\",\"sandybrown\",\"seagreen\",\"seashell\",\"sienna\",\"silver\",\"skyblue\",\"slateblue\",\"slategray\",\"slategrey\",\"snow\",\"springgreen\",\"steelblue\",\"tan\",\"teal\",\"thistle\",\"tomato\",\"turquoise\",\"violet\",\"wheat\",\"white\",\"whitesmoke\",\"yellow\",\"yellowgreen\"]),GO=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\\()/i,YO=/gradient\\(|url\\(|image-set\\(|var\\(/i,XO=new Set([\"transparent\",\"currentColor\",\"currentcolor\"]),Gr=t=>{if(!w(t))return!1;let e=t.trim();return YO.test(e)?!1:GO.test(e)?!0:hS.has(e)||XO.has(e)},jf=new Set,uS=t=>{if(!t)return!1;let{color:e,gradient:r}=t;return!!(k(e)&&Object.keys(e).length||k(r)&&Object.keys(r).length)},dS=new Set,Fm=0,Vn=t=>{Fm++;try{return t()}finally{Fm--}},ZO=(t,e)=>{if(!w(t)||t.indexOf(\" \")===-1)return null;let r=t.replace(/\\s+/g,\"\"),n=jt(r);if(!n||n.passthrough||n.cssVar)return null;let{color:o,gradient:s}=e;return!o[n.name]&&!s[n.name]?null:r},Nm=(t,e,r)=>{let n=ZO(t,r);if(n){if(!dS.has(t)){dS.add(t);let i=r&&r.name?` (design system \\`${r.name}\\`)`:\"\";console.warn(`[scratch] color token \\`${t}\\` has a space before its alpha/tone modifier${i} \\u2014 did you mean \\`${n}\\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let o=jt(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&uS(r)&&!r.color[o.name]&&!r.gradient[o.name]){if(!Fm&&!jf.has(t)){jf.add(t);let i=r&&r.name?` (design system \\`${r.name}\\`)`:\"\";console.warn(`[scratch] color token \\`${t}\\` does not resolve${i} \\u2014 \\`${o.name}\\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=w(e)?e.toLowerCase():\"\";if(!hS.has(s)||!uS(r))return t;if(!jf.has(s)){jf.add(s);let i=r&&r.name?` (design system \\`${r.name}\\`)`:\"\";console.warn(`[scratch] color \\`${t}\\` is a CSS named colour that is not in the palette${i}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable (\"looks designed\", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},gS=(t,e,r)=>{let n=e!==void 0?e:1;if(!r)return`rgb(from ${t} r g b / ${n})`;if(r.charCodeAt(0)===43||r.charCodeAt(0)===45){let s=parseFloat(r),i=s<0?\"-\":\"+\",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${n})`}return`hsl(from ${t} h s ${r}% / ${n})`},tt=(t,e,r)=>{let n=r||T();if(!w(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(bt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(R(t))[o,s,i]=t;else{let u=jt(t);if(!u){let{color:d,gradient:h}=n,p=h[t]||d[t];return p?(e&&p[e]&&(p=p[e]),n.useVariable?`var(${p.var})`:p.value):Nm(t,t,n)}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 Nm(t,o,n);if(e)if(l[e]!==void 0)l=l[e];else if(R(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u===\"dark\"?l=l[1]!==void 0?l[1]:l[0]:(u!==\"light\"&&n.verbose&&console.warn(t,\" - array-form color tokens only support light/dark; falling back to the light slot for scheme\",e),l=l[0])}else n.verbose&&console.warn(t,\" - does not have \",e);if(w(l)){if(Ce.has(o))return l;Ce.add(o);try{return tt(l,null,r)}finally{Ce.delete(o)}}let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?gS(u,s,i):u}return i&&!l[i]&&(f=er(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:n.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},pS=t=>{let e=ke(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!==\"transparent\"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},JO=(t,e)=>{if(!e)return t;let r=t.rgb;if(e.tone){let o=er(r,e.tone);r=w(o)?o.split(\",\").map(s=>parseFloat(s.trim())):o}let n=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:r,alpha:n}},zn=(t,e,r)=>{let n=e||T();if(!w(t))return null;let o=jt(t);if(o){if(o.passthrough){let d=ke(o.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(o.cssVar)return null}let s=o?o.name:t,{color:i,gradient:a}=n,c=i[s]||a[s];if(!c)return pS(t);if(w(c)){let d;if(Ce.has(s))d=pS(c);else{Ce.add(s);try{d=zn(c,n,r)}finally{Ce.delete(s)}}return d?JO(d,o):null}if(c.rgb===void 0&&k(c)){let d=`@${r||\"light\"}`;c=c[d]!==void 0?c[d]:c[\"@light\"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;o&&o.tone&&(l=er(l,o.tone));let f=w(l)?l.split(\",\").map(d=>parseFloat(d.trim())):l,u=o&&o.alpha!==void 0?parseFloat(o.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},mS=t=>k(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),yS=t=>{if(!k(t)||t.value!==void 0)return null;let e=[];for(let r in t)if(r!==\"var\"){if(r.charCodeAt(0)!==64||!mS(t[r]))return null;e.push(r.slice(1))}return e.length?e:null},QO=t=>w(t&&t.var)&&yS(t)!==null,tR=(t,e,r,n,o)=>{let s=yS(e);if(!s)return;if(w(e.var)){let c=`var(${e.var})`;return r||n?gS(c,r,n):c}if(s.length!==2||!s.includes(\"light\")||!s.includes(\"dark\"))return;let i=tt(t,\"@light\",o),a=tt(t,\"@dark\",o);if(!(!Gr(i)||!Gr(a)))return i===a?i:`light-dark(${i}, ${a})`},Lt=(t,e,r)=>{let n=r||T();if(e||(e=n.globalTheme===\"auto\"?null:n.globalTheme),!w(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(bt(t))return`var(${t})`;let o,s,i;if(R(t))o=t[0];else{let u=jt(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=k(l);if(f&&l.value)return tt(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?tt(t,null,r):`var(${l.var})`;if(e){if(!n.useVariable&&a[o]===l){let u=tR(t,l,s,i,r);if(u!==void 0)return u}return tt(t,`@${e}`,r)}else{let u={},d=Xr(n);for(let h in l){if(h.charCodeAt(0)!==64)continue;let p=h.slice(1),g=tt(t,h,r);if(g!==void 0&&(u[`[data-theme=\"${p}\"] &`]=g,p===\"light\"||p===\"dark\")){let m=Yr(p,n);if(!m)continue;u[m]={[d]:g}}}return u}}else return Nm(t,o,n)},Zr=(t,e,r,n)=>{let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}${e}-${r}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!=\"string\"||(a[l]=u,(l===\"light\"||i===void 0)&&(i=u))}if(i!==void 0){n.cssVars[s]=i,n.cssMediaVars||(n.cssMediaVars={});for(let c in a){let l=`[data-theme=\"${c}\"]`;if(n.cssMediaVars[l]||(n.cssMediaVars[l]={}),n.cssMediaVars[l][s]=a[c],c===\"light\"||c===\"dark\"){let f=`@media (prefers-color-scheme: ${c})`;n.cssMediaVars[f]||(n.cssMediaVars[f]={}),n.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},Kr=(t,e,r)=>{let n=T();if(mS(t))return n.useVariable&&t.var&&(n.cssVars[t.var]=t.value),t;if(!n.useVariable&&QO(t))return t;if(w(t)&&bt(t)){let g=t.slice(2);if(t=tt(g),!(t.includes(\"rgb\")||t.includes(\"var\")||t.includes(\"#\"))){let m=g.split(\" \"),b=n.color[m[0]];if(b&&!b.value&&!b.rgb&&(w(b)||R(b)||k(b))&&!Ce.has(m[0])){Ce.add(m[0]);try{n.color[m[0]]=Kr(b,m[0])}finally{Ce.delete(m[0])}b=n.color[m[0]]}if(b&&b.value){let _=b.rgb,y=m[1]!==void 0?m[1]:\"1\",x=m[2];x&&(_=er(_,x)),t=`rgba(${_}, ${y})`}else{let _=m[2],y=m[1]!==void 0?m[1]:\"1\";if(_)try{let x=ke(m[0]);x&&x.length>=3?t=`rgba(${er(x.slice(0,3).join(\", \"),_)}, ${y})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(R(t)&&(t={\"@light\":t[0],\"@dark\":t[1]!==void 0?t[1]:t[0]}),k(t)){let g={};for(let m in t)m!==\"var\"&&(g[m]=Kr(t[m],e,m.slice(0,1)===\"@\"?m.slice(1):m));return n.useVariable&&Zr(g,\"color\",e,n),g}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${e}`+(r?`-${r}`:\"\"),i=t.value||t;if(w(i)&&!i.includes(\"(\")&&!i.startsWith(\"#\")){let g=jt(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];if(m&&!m.value&&!m.rgb&&(w(m)||R(m)||k(m))&&!Ce.has(g.name)){Ce.add(g.name);try{n.color[g.name]=Kr(m,g.name)}finally{Ce.delete(g.name)}}let b=n.color[g.name];if(b&&b.rgb){let _=b.rgb;g.tone&&(_=er(_,g.tone));let y=g.alpha!==void 0?parseFloat(g.alpha):b.alpha!==void 0?b.alpha:1;i=`rgba(${_}, ${y})`}}}let a=ke(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),h=`${c}, ${l}, ${f}`,p=`rgba(${h}, ${d})`;return n.useVariable&&(n.cssVars[s]=p),{var:s,rgb:h,alpha:d,value:p}},Jo=(t,e,r)=>{let n=T();if(k(t)&&t.value!==void 0&&t.var!==void 0)return n.useVariable&&(n.cssVars[t.var]=t.value),t;if(w(t)&&bt(t)&&(t=tt(t.slice(2))),R(t)&&(t={\"@light\":t[0],\"@dark\":t[1]!==void 0?t[1]:t[0]}),k(t)){let i={};for(let a in t)a!==\"var\"&&(i[a]=Jo(t[a],e,a.slice(0,1)===\"@\"?a.slice(1):a));return n.useVariable&&Zr(i,\"gradient\",e,n),i}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}gradient-${e}`+(r?`-${r}`:\"\");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};P();var Uf=(t,e,r={},n)=>{let o=n||T(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=r,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!==\"auto\"?o.globalTheme:\"light\"),d=w(e)?e:String(e),h=jt(t),p=h&&!h.passthrough&&!h.cssVar?h.name:null,g=(X,Y)=>c?{value:X,...Y}:X;if(p){let X=o.color[`${p}Safe`];if(X){let Y=`${d}@${u}`,V=X[Y]!==void 0?X[Y]:X[d];if(V!==void 0){let Tt=V&&V.rgb!==void 0?o.useVariable&&V.var?`var(${V.var})`:V.value:tt(V,null,o);return g(Tt,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=tt(t,u?`@${u}`:null,o),b=zn(t,o,u),_=zn(e,o,u);if(!b||!_)return o.verbose&&console.warn(\"getSafeInk: could not resolve\",t,e,\"\\u2014 returning hue unchanged\"),g(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let y=Fn(_.rgb,_.alpha),x=Fn(b.rgb,b.alpha,y),S=Wo(x,y);if(S>=f-.02)return g(m,{ratio:S,deviation:0,derived:!1,overridden:!1});let[v,E,D]=_a(b.rgb),[,F,A]=xa([v,E,D]),N=$n(y)>.5,At=N?v:1-v,Vt=X=>{let Y=N?v-X:v+X,V=Math.max(0,Math.min(1,Y));return{rgb:wa(V,F,A),L:V}},kt=X=>{let{rgb:Y}=Vt(X),V=Fn(Y.map(Tt=>Math.round(Tt)),b.alpha,y);return Wo(V,y)},it=0,M=At,H=kt(M)>=f;if(H)for(let X=0;X<l;X++){let Y=(it+M)/2;kt(Y)>=f?M=Y:it=Y}else it=M;let{rgb:gt,L:B}=Vt(M),ht=gt.map(X=>Math.round(X)),$=kt(M),q=b.alpha<1?`rgba(${ht.join(\", \")}, ${b.alpha})`:`rgb(${ht.join(\", \")})`,mt=Math.abs(B-v)*100;return g(q,{rgb:ht,ratio:$,startRatio:S,deviation:mt,derived:!0,overridden:!1,reachable:H})},jm=(t,e,r={},n)=>Uf(t,e,{...r,meta:!0},n);P();P();var eR=t=>{let r=T().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Qt(o),o},rR=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;yt(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Qt(r),Wr(t,e)}},Fa=t=>{let e=t.toLowerCase(),r=e.includes(\"width\")||e.includes(\"height\"),n=e.includes(\"border\")||e.includes(\"outline\");return r&&!n},Na=()=>{let t=T(),{spacing:e}=t;Qt(e),xr(e),rR(e)},nR=t=>{let e=T(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Qt(t)},Ct=(t,e=\"padding\",r,n)=>{let o=nR(r);if(w(t)){if(!n&&/^(?:env|var)\\(/.test(t.trim()))return{[e]:t};if(!n&&t.includes(\"(\")){let i=_r(t);n=i[0],t=i[1]}}let s=n?[t]:w(t)&&t.includes(\"(\")?ft(t):Ln(t);if(R(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)=>nr(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return nr(t,e,o,n)}},Ee=(t,e,r,n)=>{let o=T(),{spacing:s}=o,i=r||t[e];if(!n&&w(i)&&/^(?:env|var)\\(/.test(i.trim()))return{[e]:i};if(!n&&w(i)&&i.includes(\"(\")){let a=_r(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=eR(t);return Ct(i,e,a,n)}return Ct(i,e,s,n)},ja=t=>{let e=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=xo.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+\"_default\":r};return t.split(\",\").map(r=>r.trim()).map(e).join(\",\").split(\" \").map(e).join(\" \")};P();var Hn=(t,e,r)=>!w(t)||ce.test(t)?t:yr(t).map(n=>(n=n.trim(),n.split(/\\s+/).map(o=>{if(o=o.trim(),!o)return\"\";if(o.startsWith(\"--\"))return`var(${o})`;let s=Vn(()=>tt(o,e));if(Fe(s))return s;if(/^\\d/.test(o)||o===\"0\"||o.includes(\"px\")||o.slice(-2)===\"em\"||o===\"inset\"||o===\"none\"||Mn.has(o.toLowerCase()))return o;r&&r(o);let i=Ct(o,\"shadow\");return i&&i.shadow?i.shadow:o}).join(\" \"))).join(\", \"),Jr=(t,e,r,n)=>{let o=T();if(k(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(R(t)){let a={\"@light\":Jr(t[0],e,\"light\"),\"@dark\":Jr(t[1],e,\"dark\")};return o.useVariable&&Zr(a,\"shadow\",e,o),a}if(k(t)){let a={};for(let c in t)a[c]=Jr(t[c],e,c.startsWith(\"@\")?c.slice(1):c);return o.useVariable&&Zr(a,\"shadow\",e,o),a}w(t)&&!ce.test(t)&&(t=Hn(t));let i=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}shadow-${e}`+(r?`-${r}`:\"\");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Ba=(t,e)=>{let r=T();if(e||(e=r.globalTheme===\"auto\"?null:r.globalTheme),!w(t)){r.verbose&&console.warn(t,\"- type for color is not valid\");return}if(bt(t))return`var(${t})`;let[n]=R(t)?t:t.split(\" \"),s=r.shadow[n],i=k(s);if(!s)return r.verbose&&console.warn(\"Can't find color \",n),t;if(i&&!s.value&&r.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s[\"@\"+e]||s[e];if(a)return a.value!==void 0?a.value:a;r.verbose&&console.warn(t,\" - does not have \",e)}if(i&&s.value)return s.value;if(i){let a={},c=Xr(r);for(let l in s){if(l.charCodeAt(0)!==64)continue;let f=l.slice(1),u=s[l],d=u&&(u.value!==void 0?u.value:u);if(d!==void 0&&(a[`[data-theme=\"${f}\"] &`]=d,f===\"light\"||f===\"dark\")){let h=Yr(f,r);if(!h)continue;a[h]={[c]:d}}}return a}return r.verbose&&console.warn(\"Can't find color\",t),t};var oR=new Set([\"none\",\"hidden\",\"dotted\",\"dashed\",\"solid\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\"]),sR=t=>oR.has(t),ue=(t,e,r)=>{if(t==null)return;let n=t+\"\";if(ce.test(n))return n;let o=n.trim();return o===\"none\"||o===\"0\"||o===\"initial\"||o===\"inherit\"||o===\"unset\"?n:n.split(/\\s+/).map(s=>{if(s=s.trim(),!s)return\"\";if(bt(s))return`var(${s})`;if(sR(s)||/^\\d/.test(s)||s===\"0\")return s;let i=Vn(()=>tt(s,e));if(Fe(i))return i;if(Mn.has(s.toLowerCase()))return s;r&&r(s);let a=Ct(s,\"border\");return a&&a.border?a.border:s}).join(\" \")};P();var iR=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\"]),bS=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],SS=t=>{for(let e=0;e<bS.length;e++)if(t.includes(bS[e]))return!0;return!1},aR={boxShadow:Hn,textShadow:Hn,border:ue,borderTop:ue,borderRight:ue,borderBottom:ue,borderLeft:ue,outline:ue,columnRule:ue},cR=t=>{if(!t)return!1;let e=jt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},_S=new Set,lR=(t,e,r,n,o,s)=>{if(!pt())return;let i=`${t}::${e}::${r||\"\"}::${n}`;_S.has(i)||(_S.add(i),console.warn(`[smbls/scratch] theme param \"${e}\" on \"${t}\"`+(r?` (${r})`:\"\")+` did not fully resolve: \"${n}\" -> \"${o}\" still contains the unresolved token \"${s}\". This is not valid CSS \\u2014 the browser will drop the whole declaration. Register \"${s}\" as a design-system color token or fix the typo.`))},Vm=(t,e,r,n)=>{let o=aR[e];if(!o)return tt(r,n);let s=null,i=o(r,n,a=>{!s&&cR(a)&&(s=a)});return s&&lR(t,e,n,r,i,s),i},zm=(t,e)=>Ae(t,e),fR=t=>k(t)&&j(t.value),uR=t=>{for(let e in t){let r=t[e];if(w(r)&&r.startsWith(\"var(--\"))return!0}return!1},Va=(t,e)=>{let r=T();return fR(t)?!r.useVariable&&uR(t)?t:Qo(t.value,e):Qo(t,e)},kS=(t,e)=>{let r=new Set;for(let n of e){let o=n.slice(0,1);if(!(o===\"@\"||o===\".\"||o===\":\")&&SS(n))for(let s in t){if(r.has(s))continue;let i=t[s]?.[n];if(i===void 0)continue;let a=tt(i,`@${s}`);a!==void 0&&w(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!iR.has(a)&&r.add(s)}}return r},dR=t=>t.startsWith(\"[data-theme=\")||t.startsWith(\"@media\"),Ua=(t,e)=>{for(let r in e){let n=e[r];k(n)?Ua(t[r]||(t[r]={}),n):t[r]=n}return t},xS=(t,e,r,n)=>{if(Ua(t,{[`[data-theme=\"${e}\"] &`]:r}),e!==\"light\"&&e!==\"dark\")return;let o=Yr(e,n);o&&Ua(t,{[o]:{[Xr(n)]:r}})},vS=(t,e,r,n)=>{let o=r.globalTheme!==void 0?r.globalTheme:\"auto\",s=o&&o!==\"auto\"?String(o).replace(/^'|'$/g,\"\"):null,i=new Set(n?Object.keys(n):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=kS(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f===\"@\")continue;if(f===\".\"||f===\":\"){let b={};for(let x in t)j(t[x]?.[l])&&(b[x]=t[x][l]);let _=n&&j(n[l])?n[l]:void 0;if(!Object.keys(b).length&&!_)continue;let y=f===\".\"?l.slice(1):l.replace(/^:+/,\"\");c[l]=vS(b,`${e}-${y}`,r,_);continue}let u=n&&!j(n[l])?n[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add(\"light\"),d.add(\"dark\"),s&&d.add(s));let h={},p;for(let b of d){if(a.has(b))continue;let _=t[b]?.[l];if((_===void 0||j(_))&&(_=u),_===void 0)continue;let y=Vm(e,l,_,`@${b}`);y!==void 0&&(h[b]=y,(s&&b===s||!s&&(b===\"light\"||p===void 0))&&(p=y))}let g={},m=Object.keys(h).filter(b=>h[b]!==p);if(m.length){let b=h.light!==void 0?h.light:p,_=h.dark!==void 0?h.dark:p;if(SS(l)&&Gr(b)&&Gr(_)){g[l]=b===_?b:`light-dark(${b}, ${_})`;for(let y in h)y===\"light\"||y===\"dark\"||xS(g,y,{[l]:h[y]},r)}else{p!==void 0&&(g[l]=p);for(let y of m)xS(g,y,{[l]:h[y]},r)}}else{if(p===void 0)continue;g[l]=p}Ua(c,g),c[`.${l}`]=g}return(c.background||c.color||c.backgroundColor)&&(c[\".inversed\"]={color:c.background||c.backgroundColor,background:c.color}),c},Bm=(t,e,r,n)=>{let{cssVars:o}=r;r.cssMediaVars||(r.cssMediaVars={});let s=r.cssMediaVars,i=r.globalTheme!==void 0?r.globalTheme:\"auto\",a=i&&i!==\"auto\"?String(i).replace(/^'|'$/g,\"\"):null,c={},l=new Set(n?Object.keys(n):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=kS(t,l);for(let u of l){let d=u.slice(0,1),h=j(n?.[u])||Object.values(t).some(p=>j(p?.[u]));if(d===\".\"&&h){let p=u.slice(1),g={};for(let b in t)j(t[b]?.[u])&&(g[b]=t[b][u]);let m=j(n?.[u])?n[u]:void 0;c[u]=Bm(g,`${e}-${p}`,r,m)}else if(d===\":\"&&h){let p=u.replace(/^:+/,\"\"),g={};for(let b in t)j(t[b]?.[u])&&(g[b]=t[b][u]);let m=j(n?.[u])?n[u]:void 0;c[u]=Bm(g,`${e}-${p}`,r,m)}else if(d!==\"@\"&&d!==\".\"&&d!==\":\"){let g=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${e}-${u}`,m=n&&!j(n[u])?n[u]:void 0,b=new Set(Object.keys(t));m!==void 0&&(b.add(\"light\"),b.add(\"dark\"),a&&b.add(a));let _,y=!1;for(let x of b){if(f.has(x))continue;let S=t[x]?.[u];if((S===void 0||j(S))&&(S=m),S===void 0)continue;let v=Vm(e,u,S,`@${x}`);if(v===void 0)continue;y=!0,(a&&x===a||!a&&(x===\"light\"||_===void 0))&&(_=v);let E=`[data-theme=\"${x}\"]`;if(s[E]||(s[E]={}),s[E][g]=v,x===\"dark\"||x===\"light\"){let D=`@media (prefers-color-scheme: ${x})`;s[D]||(s[D]={}),s[D][g]=v}}if(_!==void 0&&(o[g]=_),!y)continue;c[u]=`var(${g})`,c[`.${u}`]={[u]:c[u]}}}return(c.background||c.color||c.backgroundColor)&&(c[\".inversed\"]={color:c.background||c.backgroundColor,background:c.color}),c},Qo=(t,e,r,n)=>{let o=T(),{cssVars:s}=o,i={value:t},a=!r&&!n,c,l;if(j(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith(\"@\")?j(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=Bm(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith(\"@\")?j(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=vS(f,e,o,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u===\"@\"||u===\":\"||u===\".\"){let h=u===\"@\"&&f;i[f]=Qo(d,e,f,n||h)}else if(!a){let h=Vm(e,f,d,n),p=[...new Set([n,r].filter(_=>_).map(_=>_.slice(1)))],g=p.length?\"-\"+p.join(\"-\"):\"\",b=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${e}${g}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[b]=h),i[f]=`var(${b})`):i[f]=h,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u===\".\"||u===\":\")&&j(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u===\".\"||u===\":\")&&j(t[f])&&(i[f]=l[f])}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(w(t)&&bt(t)){let u=o.theme[t.slice(2)];return Ae(u,n)}return i},Um=(t,e)=>{let r={};for(let n in t){let o=n.slice(0,1);if(j(t[n]))if(e&&dR(n))r[n]=Ua({},t[n]);else{if(o===\"@\")continue;o===\":\"?r[`&${n}`]=Um(t[n],e):o===\".\"&&(r[`&${n}`]=Um(t[n],e))}else r[n]=t[n]}return r},CS=(t,e)=>{let r=e.shift();return t[r]?CS(t[r],e):t},wS=(t,e)=>R(e)?CS(t,e):w(e)&&t[e]?t[e]:t;var Ae=(t,e)=>{let r=T();if(w(t)&&bt(t)&&(t=Ae(t.slice(2))),!t||!w(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=R(t)?t:t.split(\" \"),s=r.theme[n];return s&&o.length?s=wS(s,o):s&&e&&(s=wS(s,e)),Um(s,!r.useVariable)};P();P();var za=(t,e)=>{let r=T(),n=`--font-${e}`;if(!t||R(t)&&!t[0])return;let o;if(t.isVariable){let s=ve(t.url,r.files)||t.url;qo(s)?o=Ko(s):o=Hr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\",unicodeRange:t.unicodeRange})}else if(t[0])o=jn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>ve(i,r.files)||i):ve(t.url,r.files)||t.url;o=Hr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:n,value:t,fontFace:o}},Ha=(t,e)=>{let r=T(),{fontFamily:n}=r;return Nn(e||n,t)},ts=(t,e)=>{let r=T(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!n.default)&&(n.default=e),k(s)&&(s=Ln(s));let a=`--font-family-${e}`,c=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i,isSystemFallback:!!t.isSystemFallback}};P();var Vf=t=>{let e=T(),{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:d,subSequence:h,h1Matches:p,unit:g}=t;yt(i,{type:l,base:f,ratio:u,range:d,subSequence:h,h1Matches:p,unit:g});let m=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),b=i.unit||g,_=!i.unit&&m.has(g)?\"rem\":b,y=n[c],x=\"@media \"+(y===\"print\"?`${y}`:`screen and ${y}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+_},!a){yt(i,{sequence:{},scales:{},vars:{}}),Qt(i),Wr(t,o);continue}yt(i,{sequence:{},scales:{},templates:{},vars:{}}),Qt(i),Wr(t,o)}},zf=t=>{let e=T();if(t.h1Matches){let r=t.unit,n=Ia(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}}}},Wa=()=>{let t=T(),{typography:e}=t;Qt(e),zf(e),xr(e),Vf(e)},qa=t=>{let e=T(),{typography:r}=e;return nr(t,\"fontSize\",r)};P();var Ka=t=>{if(!w(t))return;let r=T().shape;if(r)return r[t]!==void 0?r[t]:r[t.toLowerCase()]};P();var Ga=()=>{let t=T(),{timing:e}=t;Qt(e),xr(e)},Te=t=>{let e=T(),{timing:r}=e;return r[t]||r[ga(t)]||t},de=(t,e=\"timing\")=>{let r=T(),{timing:n}=r;return nr(t,e,n)};P();var Ya=()=>{let t=T(),{fontFamily:e,theme:r,typography:n}=t,o=t.document;return ur(o)?(Ir(t,\"document\",o),o=t.document={}):o||(o=t.document={}),yt(o,{theme:r.document,fontFamily:Nn(e),fontSize:n.base,lineHeight:n.lineHeight})};P();var qm={document:et},ES=new WeakMap,AS=new WeakMap,pR=128,TS=1048576,Hm=8192,Km=t=>t.nodeType===1&&t.localName===\"symbol\"&&t.getAttribute(\"id\"),PS=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),hR=(t,e)=>{let r=1,n=t.ownerDocument;if(n&&typeof n.createTreeWalker==\"function\"){let s=n.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++r>e)return r;return r}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++r>e)return r;o.push(s[i])}}return r},Wm=(t,e)=>{if(typeof t.importNode==\"function\")return t.importNode(e,!0);let r=e.cloneNode(!0);return typeof t.adoptNode==\"function\"?t.adoptNode(r):r},gR=(t,e)=>{if(typeof t.prepend==\"function\")return t.prepend(e);let r=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore==\"function\"?t.insertBefore(e,r||null):t.appendChild(e)},es=(t,e)=>{let r=T();if(!t){r.verbose&&console.warn(\"setSVG: val is not defined\",e);return}return r.useSvgSprite?Ma(e,t):t},Xa=(t,e=qm)=>{let r=T(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];IS(n,e)},Wn=(t,e)=>{let r=T();return r.useIconSprite&&!r.semanticIcons?.[e]?es(t,e):t},qn=(t,e=qm)=>{let r=T(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];IS(n,e)},DS=(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},mR=(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},yR=(t,e,r)=>{let n=String(r),o=AS.get(e),s=o?.entries.get(n);if(s)return o.entries.delete(n),o.entries.set(n,s),s.root;let i=mR(t,n);if(i||(i=DS(t,{isRoot:!1}),i.innerHTML=n),n.length>TS)return i;let a=hR(i,Hm);if(a>Hm)return i;for(o||(o={entries:new Map,units:0,nodes:0},AS.set(e,o));o.entries.size>=pR||o.units+n.length>TS||o.nodes+a>Hm;){let c=o.entries.keys().next().value,l=o.entries.get(c);o.units-=c.length,o.nodes-=l.nodes,o.entries.delete(c)}return o.entries.set(n,{root:i,nodes:a}),o.units+=n.length,o.nodes+=a,i},OS=t=>{let e=new Map;for(let r of t.children){let n=Km(r);if(!n)continue;let o=e.get(n)||[];o.push(r),e.set(n,o)}return e},bR=t=>t.replace(/[\"\\\\\\u0000-\\u001f\\u007f]/g,e=>`\\\\${e.charCodeAt(0).toString(16)} `),RS=(t,e,r,n)=>{let o=0,s=e.childElementCount>8?OS(r):null,i=a=>{if(!s)try{return[...r.querySelectorAll(`symbol[id=\"${bR(a)}\"]`)].filter(c=>c.parentNode===r)}catch{s=OS(r)}return s.get(a)};for(let a of e.childNodes){if(PS(a))continue;let c=Km(a);if(!c&&n){let u=o++,d=n.nodes[u];if(!d&&n.complete||d?.parentNode===r)continue;let h=Wm(t,d||a);r.appendChild(h),n.nodes[u]=h;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=Wm(t,a),r.appendChild(f);else if(!f.isEqualNode(a)){let u=Wm(t,a);r.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},IS=(t,e=qm)=>{let r=T(),n=e.document||et;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),$a(t);let o=n.querySelector(\"#svgSprite\"),s=\"\";for(let d in t)s+=t[d];let i=o||DS(n);if(!i||!i.nodeType)return;let a=d=>yR(n,i,d),c=a(s),l=ES.get(i);l||ES.set(i,l=new WeakMap);let f=l.get(r);if(f||l.set(r,f=new Map),[...c.childNodes].some(d=>!PS(d)&&!Km(d))){let d=[];for(let h in t)d.push(h);for(let h of d){let p=f.get(h);p||f.set(h,p={nodes:[],complete:!1}),RS(n,d.length===1?c:a(t[h]),i,p),p.complete=!0}}else{RS(n,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||gR(n.body,i);for(let d in t)r.__svgCache[d]=!0};P();var Za=(t={})=>{let e=T(),r=e.typography||{},n=e.document||{},o=k(e.reset)?e.reset:e.reset={};if(o[\":root\"]){let c=o,l=r.templates||{};c.body={...e.useDocumentTheme?Ae(\"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}=r.templates||{},a=e.useDocumentTheme?Ae(\"document\"):{};if(o.html&&Wt(o.html,a),r.unit)for(let c in i){if(c.slice(0,6)!==\"@media\")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(o[c]||(o[c]={}),o[c].html||(o[c].html={}),o[c].html.fontSize===void 0&&(o[c].html.fontSize=l.fontSize))}if(r.unit){let c=e.media||{};for(let l in r){if(l.charAt(0)!==\"@\")continue;let f=r[l];if(!f||f.unit===r.unit||!f.unit)continue;let u=f.unit,d=f.base||r.base,h=f.browserDefault||r.browserDefault,p=l.slice(1),g=c[p];if(!g)continue;let m=\"@media \"+(g===\"print\"?g:\"screen and \"+g);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/h+u}}return nt(yt(o,t),{html:{position:\"absolute\",width:\"100%\",height:\"100%\",top:\"0\",left:\"0\",margin:\"0\",WebkitFontSmoothing:\"subpixel-antialiased\",textSizeAdjust:\"100%\",WebkitTextSizeAdjust:\"100%\",...a,fontSize:r.unit?r.base/r.browserDefault+r.unit:r.browserDefault+\"px\",fontFamily:n.fontFamily,lineHeight:n.lineHeight},body:{boxSizing:\"border-box\",height:\"100%\",margin:0,fontFamily:n.fontFamily,fontSize:r.unit?\"1\"+e.unit.default:r.base/r.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}},fe)};P();var _R=new Set([\"fallback\"]),Gm=new Set,LS=(t,e)=>{Gm.has(t)||(Gm.add(t),pt()&&console.warn(e))},Ym=()=>{Gm.clear()},$S=t=>{for(let e in t)delete t[e];return t},Ja=()=>{let t=T(),e=k(t.cssSkinVars)?$S(t.cssSkinVars):t.cssSkinVars={},r=k(t.cssSkinFallback)?$S(t.cssSkinFallback):t.cssSkinFallback={},n=t.skins;if(!k(n))return e;let o=t.varPrefix?t.varPrefix+\"-\":\"\",s=t.color||{},i=t.cssVars||{},a=c=>w(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in n){let l=n[c];if(!k(l))continue;let f={};for(let u in l){if(_R.has(u))continue;let d=l[u];if(k(d))for(let h in d){let p=`--${o}theme-${u}-${h}`;t.useVariable!==!1&&!(p in i)&&LS(`${c}/${u}/${h}`,`[scratch] skin \"${c}\" rewrites theme \"${u}\" param \"${h}\", which the theme does not declare \\u2014 no element reads ${p}, so the skin changes nothing there. Declare \"${h}\" on the \"${u}\" theme (its no-skin value).`),f[p]=a(d[h])}}e[c]=f,w(l.fallback)&&(r[c]=l.fallback)}for(let c in r){let l=r[c];e[l]||(LS(`${c}/fallback/${l}`,`[scratch] skin \"${c}\" falls back to \"${l}\", which is not a declared skin \\u2014 the reduced-transparency fallback is skipped.`),delete r[c])}return e},MS=(t,e)=>{let r=`[data-skin=\"${t}\"]`;return!e||e===\":root\"?`:root${r}, ${r}`:`${e}${r}, ${r} ${e}, ${e} ${r}`},Kn=(t,e,r)=>{let n={};if(!k(t))return n;for(let s in t)n[MS(s,r)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[MS(s,r)]=i)}return Object.keys(o).length&&(n[\"@media (prefers-reduced-transparency: reduce)\"]=o),n};P();var xR=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),FS=/^-?[A-Z][0-9]?$/,or=t=>ue(t),Hf=t=>{if(w(t))return ce.test(t)?t:t.split(/\\s+/).map(e=>{if(e=e.trim(),!e)return\"\";if(bt(e))return`var(${e})`;if(/^\\d/.test(e)||e.includes(\"px\")||e===\"0\")return e;let r=tt(e);return Fe(r)?r:e}).join(\" \")},Wf=(t,e)=>Ba(t,e),Qa=(t,e)=>{if(w(t))return ce.test(t)?t:yr(t).map(r=>(r=r.trim(),r?r.split(/\\s+/).map(n=>{if(n=n.trim(),!n)return\"\";if(bt(n))return`var(${n})`;if(n===\"inset\"||n===\"none\")return n;let o=tt(n);if(Fe(o)){let i=Lt(n,e);return k(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=Ct(n,\"shadow\");return s&&s.shadow?s.shadow:n}).join(\" \"):\"\")).join(\", \")},tc=(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=yr(o).map(c=>(c=c.trim(),c.split(/\\s+/).map(f=>{if(!f||/^\\d/.test(f)||f===\"0\"||xR.has(f)||f===\"transparent\"||ce.test(f))return f;let u=tt(f);return Fe(u)?u:f}).join(\" \")));return n+a.join(\", \")+s},qf=(t,e)=>{if(!w(t))return;let r=T();return yr(t).map(n=>{let o=n.trim();if(bt(o))return`var(${o})`;if(/^var\\(/.test(o)||o.includes(\"url\"))return o;if(r.gradient?.[o]){let s=Lt(o,e);if(w(s))return s;if(k(s)){for(let i in s)if(w(s[i]))return s[i]}return o}return o.includes(\"gradient\")?tc(o,e):o.includes(\"/\")||o.startsWith(\"http\")||o.includes(\".\")&&!jt(o)?`url(${o})`:o}).join(\", \")},Kf=t=>w(t)&&ft(t).map(e=>Ct(e,\"gap\").gap).join(\" \"),Gf=t=>{if(!w(t))return t;let e=T();return ft(t).map(r=>FS.test(r)?Un(r,e.spacing):r).join(\" \")},Xm=t=>{if(!w(t))return;let e=t.split(\" \");return e.length?e.map(r=>bt(r)?`var(${r})`:r.length<3||r.includes(\"ms\")?de(r).timing||r:Te(r)?Te(r):r).join(\" \"):t},ec=(t,e,r)=>{if(w(t))return t.split(\",\").map(n=>de(n).timing||n).join(\",\")},Yf=t=>{if(!w(t))return;let e=t.split(\",\");if(e.length)return e.map(Xm).join(\",\")};function wt(t,e,r={},n={}){let o=lt.call(this,e||r[t]);if(o==null)return;let s;if(w(o)){if(/^(?:env|var)\\(/.test(o.trim()))return{[t]:o};if(o.includes(\"(\")){let c=_r(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Fa(t);!i&&a&&!n.ratio&&(o=ja(o))}return n.ratio?Ee(r,t,o,s):Ct(o,t,void 0,s)}var I=(t,e=null,r)=>wt(t,e,r,{ratio:!0}),wR=(t,e,r)=>w(t)?ft(t).map(n=>FS.test(n)?Ee(e,r,n)[r]:n).join(\" \"):t,wr=(t,e,r,n=\"borderRadius\")=>{if(w(t))return{[n]:ft(t).map(o=>{let s=Ka(o);return s!==void 0?wR(s,e,r):Ee(e,r,o)[r]}).join(\" \")}};P();var ns=\"__smblsThemeRootOwner\",os=t=>{let e=t&&t.__prefersListener,r=t&&t.__prefersMq;if(e&&r)try{typeof r.removeEventListener==\"function\"?r.removeEventListener(\"change\",e):typeof r.removeListener==\"function\"&&r.removeListener(e)}catch{try{r.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},NS=(t,e,r)=>{if(!(!t||!e)){os(t),t.__prefersListener=r,t.__prefersMq=e;try{e.addEventListener(\"change\",r)}catch{e.addListener(r)}}},SR=(t,e)=>{let r=T(),{cssVars:n}=r,o=e.startsWith(\"--\")?e:`--${e}`;return n[o]=t,t},Kt=t=>t,Xf={color:Kr,gradient:Jo,font:za,fontFamily:ts,fontfamily:ts,theme:Va,icons:Wn,semanticIcons:Kt,semanticicons:Kt,svg:es,svgData:Kt,typography:Kt,shadow:Jr,spacing:Kt,media:Kt,grid:Kt,class:Kt,timing:Kt,reset:Kt,unit:Kt,animation:Kt,vars:SR,sizes:Kt,shape:Kt,skins:Kt},kR=(t,e,r,n)=>{Ir(t,r,e);let o={};for(let s of n)t[s]===e&&(t[s]=o);return t.verbose&&console.warn(\"[scratch] design-system family\",r,\"resolved to a host object; parked it and allocated a plain bucket\"),o},Zm=(t,e,r)=>{let n=T(),o=Ea(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=ur(i)?kR(n,i,s,[o,s,t]):i,c=Xf[o]||Xf[s];if(c)try{let l=c(e,r);return a&&(a[r]=l),a}catch(l){n.verbose&&console.warn(\"Error setting\",s,\"value\",e,r,l)}if(!c){let l=a||(n[s]={});return l[r]=e,l}n.verbose&&console.warn(\"Can not find\",s,\"method in scratch\")},Jm=(t,e)=>{let r=T(),n=t.toLowerCase();return ur(e)?(Ir(r,n,e),r.verbose&&console.warn(\"[scratch] ignoring host object passed as the\",n,\"design-system family\"),r[n]||r[t]):e==null?(r.verbose&&console.warn(\"[scratch] skipping empty design-system family\",n),r[n]||r[t]):(Object.keys(e).sort((s,i)=>{let a=k(e[s])||R(e[s])?1:0,c=k(e[i])||R(e[i])?1:0;return a-c}).forEach(s=>{try{return Zm(n,e[s],s)}catch(i){r.verbose&&console.warn(\"Error setting\",n,\"value\",e[s],s,i)}}),r[n]||r[t])},Zf=(t,e)=>{let r=e||T();r.globalTheme=t;let o=_o(r)||(typeof document<\"u\"?document:null),s=o&&o.defaultView||(typeof window<\"u\"?window:null);if(o){let a=r.themeRoot||o.documentElement,c=t&&t!==\"auto\";if(a[ns]=r,c)os(r),a.setAttribute(\"data-theme\",t),r.resolvedTheme=t,t===\"dark\"||t===\"light\"?a.style.colorScheme=t:a.style.colorScheme=\"light dark\";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?\"dark\":\"light\";a.setAttribute(\"data-theme\",d),r.resolvedTheme=d},f=s.matchMedia(\"(prefers-color-scheme: dark)\");l(f),a.style.colorScheme=\"light dark\",NS(r,f,l)}else os(r),a.setAttribute(\"data-theme\",\"light\"),r.resolvedTheme=\"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 d in r.cssVars)f[u].style.setProperty(d,r.cssVars[d]);return r}}catch{}}return r},vR={},Gn=(t,e=vR)=>{let r=e.config||T(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:h,semanticIcons:p,hoverMedia:g,files:m,assets:b,..._}=t;e.newConfig&&(r=Mf(e.newConfig)),fr(_.document)&&(r.__domDocument=_.document,delete _.document),fr(r.document)&&(r.__domDocument||(r.__domDocument=r.document),r.document={}),m!==void 0&&(r.files=m),b!==void 0&&(r.assets=b),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),d!==void 0&&(r.useDocumentTheme=d),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),h!==void 0&&(r.useDefaultConfig=h),p!==void 0&&(r.semanticIcons=p),g!==void 0&&(r.hoverMedia=g),r.verbose&&console.log(r);let x=_o(r)||(typeof document<\"u\"?document:null),S=x&&x.defaultView||(typeof window<\"u\"?window:null),v=x&&(r.themeRoot||x.documentElement);if(v&&typeof v.setAttribute==\"function\")if(r.globalTheme&&r.globalTheme!==\"auto\")os(r),v.setAttribute(\"data-theme\",r.globalTheme),r.resolvedTheme=r.globalTheme,v[ns]=r,r.globalTheme===\"dark\"||r.globalTheme===\"light\"?v.style.colorScheme=r.globalTheme:v.style.colorScheme=\"light dark\";else if(v[ns]&&v[ns]!==r&&v.hasAttribute(\"data-theme\"))os(r),r.resolvedTheme=v.getAttribute(\"data-theme\");else if(S&&S.matchMedia){let N=Vt=>{let kt=Vt.matches?\"dark\":\"light\";v.setAttribute(\"data-theme\",kt),r.resolvedTheme=kt},At=S.matchMedia(\"(prefers-color-scheme: dark)\");N(At),v.style.colorScheme=\"light dark\",v[ns]=r,NS(r,At,N)}else os(r),v.setAttribute(\"data-theme\",\"light\"),r.resolvedTheme=\"light\",v.style.colorScheme=\"light\",v[ns]=r;r.__svgCache||(r.__svgCache={}),Zo(_);let E=Object.keys(_).filter(A=>!A.startsWith(\"__\")),D=new Set(E);if(E.forEach(A=>{let N=A.toLowerCase();N!==A&&D.has(N)&&nt(_[N],_[A],fe)}),E.map(A=>{let N=A.toLowerCase();if(!(N!==A&&D.has(N)))return Jm(A,_[A])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),_.typography)try{Wa()}catch(A){r.verbose&&console.warn(\"Error applying typography sequence\",A)}if(_.spacing)try{Na()}catch(A){r.verbose&&console.warn(\"Error applying spacing sequence\",A)}if(_.timing)try{Ga()}catch(A){r.verbose&&console.warn(\"Error applying timing sequence\",A)}try{Ja()}catch(A){r.verbose&&console.warn(\"Error applying skins\",A)}Ya();let F=Za();return F&&(r.reset=F),r};var is=new Map,XS=null,ty=null,CR=null;function nc(t){t.batchAtomicCss&&(ty=t.batchAtomicCss),t.compoundCssClass&&(CR=t.compoundCssClass)}var ER=new Set,BS=t=>!!(t&&t.documentElement&&typeof t.createElement==\"function\"&&t.head!==void 0);function ry(t){try{let e=T();e&&(e.__domDocument=t)}catch{}t&&ER.add(t)}function Xn(){try{let t=T();if(t){if(BS(t.__domDocument))return t.__domDocument;if(BS(t.document))return t.document}}catch{}return typeof document<\"u\"?document:null}var te={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function ru(){return{...te}}function ny(){for(let t in te)te[t]=0;tu=!1}var tu=!1,Qf=(t,e)=>`${t} ${e}${t===1?\"\":\"s\"}`;function AR(t){let e=Date.parse(t);if(!isFinite(e))return\"\";let r=Math.floor((Date.now()-e)/864e5);return r<1?\" (today)\":` (${Qf(r,\"day\")} ago)`}function TR(){try{let t=NR();if(!t.length)return-1;let e=0;for(let r=0;r<t.length;r++)e+=t[r].cssRules?t[r].cssRules.length:0;return e}catch{return-1}}function OR(t,e){if(tu)return!1;tu=!0;let r=\"n/a \\u2014 running from src/ (unbuilt), so no dist is in play\",n=\"this IS the source\",o=\"@symbo.ls/css\";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \\u2014 the engine emitted ${Qf(te.variable,\"variable rule\")} and ${Qf(te.atomic,\"atomic rule\")}, while the design system held ${Qf(e,\"CSS variable\")}.\n The document will render UNSTYLED and nothing else will report an error.\n This is what a STALE dist/ looks like: an obsolete emitter against a current design system.\n package : ${o}\n built : ${r}\n source : ${n}\n emitted : ${JSON.stringify(te)}\n sheets : the style[data-smbls] tiers currently hold ${TR()} rule(s)\n FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist\n then rebuild the listed packages and clear the app's .parcel-cache\n Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function ZS(){try{let t=T(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function US(t){tu||te.variable>0||te.atomic>0||JS(Math.max(t,ZS()))}function oy(t){let e=t&&(t.CSS_VARS||t.cssVars);return JS(e?Object.keys(e).length:ZS())}function JS(t){let e=ru();if(t===0)return{ok:!0,reason:\"no-design-system\",stats:e,varCount:t};if(!nu())return{ok:!0,reason:\"no-sheet\",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let r=e.invalid>0?\"every rule was rejected as malformed\":\"no rule was ever produced\";return OR(r,t),{ok:!1,reason:r,stats:e,varCount:t}}var RR={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 Yn(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function eu(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 PR(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():eu(e)}var DR={\"backdrop-filter\":\"-webkit-backdrop-filter\",\"user-select\":\"-webkit-user-select\",\"mask-image\":\"-webkit-mask-image\",\"mask-size\":\"-webkit-mask-size\",\"mask-repeat\":\"-webkit-mask-repeat\",\"mask-position\":\"-webkit-mask-position\",\"mask-clip\":\"-webkit-mask-clip\",\"mask-origin\":\"-webkit-mask-origin\",\"background-clip\":\"-webkit-background-clip\"};function ss(t,e){let r=DR[t];return r?`${t}:${e};${r}:${e};`:`${t}:${e};`}function ey(t){let e=\"\";for(let r in t){let n=t[r];if(typeof n!=\"object\"||n===null)continue;let o=\"\";for(let s in n){let i=s.charCodeAt(0)===45&&s.charCodeAt(1)===45;o+=ss(i?s:Yn(s),n[s])}e+=`${r}{${o}}`}return e}var IR=\"@media (hover: hover)\",LR=/(?:^|[^\\\\]):hover(?![\\w-])/;function sy(){try{let t=T();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Sr(t,e,r){return r===!1||!LR.test(e)||r===void 0&&!sy()?t:`${IR}{${t}}`}function VS(t,e,r){let n=(r?r+\"\u0001\":\"\")+t+\":\"+e,o=is.get(n),s=o?null:Yn(t);if(!o){let c=RR[t]||eu(t),l=PR(e);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,is.set(n,o)}if(typeof e==\"string\"&&(e.indexOf(\"}\")!==-1||e.indexOf(\"{\")!==-1))return o;let i=s||Yn(t),a=`.${o}{${ss(i,e)}}`;return Ne(a,void 0,\"atomic\"),o}var zS=new WeakMap,HS=new WeakMap;function Ne(t,e,r){let n=nu(e,$R(t));if(!n)return te.dropped++,\"dropped\";let o=zS.get(n);if(o||(o=new Set,zS.set(n,o)),o.has(t))return te.duplicate++,te[r||\"global\"]++,\"duplicate\";let s=HS.get(n);if(s&&s.has(t))return te.invalid++,\"invalid\";try{n.insertRule(t,n.cssRules.length)}catch{return s||(s=new Set,HS.set(n,s)),s.add(t),te.invalid++,\"invalid\"}return o.add(t),te[r||\"global\"]++,\"inserted\"}var je=\"0:0\",WS=\"1:0\",qS=/\\((max|min)-width:\\s*([\\d.]+)(px|em|rem)?\\)/g;function $R(t){if(typeof t!=\"string\"||!t)return je;if(t.charCodeAt(0)===64){if(!t.startsWith(\"@media\")&&!t.startsWith(\"@supports\")&&!t.startsWith(\"@container\"))return je;let e=1/0,r=-1/0;qS.lastIndex=0;let n;for(;n=qS.exec(t);){let o=parseFloat(n[2])*(n[3]===\"em\"||n[3]===\"rem\"?16:1);n[1]===\"max\"?e=Math.min(e,o):r=Math.max(r,o)}return e!==1/0?\"2:\"+-e:r!==-1/0?\"3:\"+r:WS}return t.charCodeAt(0)!==46||/^\\.[\\w-]+\\{/.test(t)?je:WS}var KS=t=>{let e=t.indexOf(\":\");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},MR=(t,e)=>{let[r,n]=KS(t),[o,s]=KS(e);return r!==o?r<o:n<s},FR=t=>t.getAttribute(\"data-tier\")||je,GS=new WeakMap;function nu(t,e){let r=t||Xn();if(!r||!r.head)return null;let n=e||je,o=GS.get(r);o||(o=new Map,GS.set(r,o));let s=o.get(n);if(s&&s.ownerNode&&s.ownerNode.parentNode===r.head)return s;n!==je&&nu(r,je);let i=n===je?r.head.querySelector(\"style[data-smbls]:not([data-tier])\"):r.head.querySelector(`style[data-smbls][data-tier=\"${n}\"]`);if(!i){i=r.createElement(\"style\"),i.setAttribute(\"data-smbls\",\"\"),n!==je&&i.setAttribute(\"data-tier\",n);let c=r.head.querySelectorAll(\"style[data-smbls]\"),l=null;for(let u=0;u<c.length;u++)if(MR(n,FR(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;l?r.head.insertBefore(i,l):f?r.head.insertBefore(i,f.nextSibling):r.head.appendChild(i)}let a=i.sheet;return o.set(n,a),n===je&&(XS=a),a}function NR(t){let e=t||Xn();if(!e||!e.head)return[];let r=[],n=e.head.querySelectorAll(\"style[data-smbls]\");for(let o=0;o<n.length;o++)n[o].sheet&&r.push(n[o].sheet);return r}var jR=8;function pe(t,e,r,n){if(!t||typeof t!=\"object\")return\"\";let o=!!(n&&n.state),s=null,i=0,a=[],c=[];for(let f in t){let u=t[f];u==null||u===!1||u===\"\"||(typeof u==\"object\"?c.push([f,u]):ty?(s||(s=[]),s.push(f,String(u)),i++):a.push(VS(f,String(u),r)))}if(s&&i>=jR){let f=s.join(\"\\0\"),u=ty(f),d=u.indexOf(\"\\0\"),h=u.substring(0,d),p=u.substring(d+1);if(p){let g=p.split(`\n`);for(let m=0;m<g.length;m++)g[m]&&Ne(g[m],void 0,\"atomic\")}a.push(h)}else if(s)for(let f=0;f<s.length;f+=2)a.push(VS(s[f],s[f+1],r));let l=[];for(let f=0;f<c.length;f++)l.push(VR(c[f][0],c[f][1],r,o));return a.concat(l).join(\" \").trim()}var YS=new Map,BR=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\\w-])/;function rc(t){return/^@(media|supports|container)\\b/.test(t)}function UR(t){return typeof t!=\"string\"||!t||rc(t)?!1:t.split(\",\").every(e=>BR.test(e.trim()))}function VR(t,e,r,n){let o=JSON.stringify(e),s=t.indexOf(\":hover\")!==-1||o.indexOf(\":hover\")!==-1,i=s&&sy(),a=(r?r+\"\u0001\":\"\")+t+o+(s&&!i?\"\u0002rawhover\":\"\")+(n?\"\u0003state\":\"\"),c=is.get(a);if(c){let y=YS.get(c);if(y)for(let x=0;x<y.length;x++)Ne(y[x],void 0,\"atomic\");return c}c=r?`_${r}_c${eu(a)}`:`_c${eu(a)}`;let l=n?`.${c}.${c}`:`.${c}`,f=UR(t)?`${l}.${c}`:l,u=\"\",d=[],h=y=>typeof y==\"string\"&&(y.indexOf(\"{\")!==-1||y.indexOf(\"}\")!==-1),p=(y,x)=>{let S=\"\";for(let v in x){let E=x[v];if(E!=null)if(typeof E==\"object\")p([...y,v],E);else{if(h(E))continue;S+=ss(Yn(v),E)}}S&&(y.length===0?u+=S:d.push({chain:y,body:S}))};p([],e);let g=y=>y.startsWith(\":\")||y.startsWith(\"[\"),m=(y,x=!0)=>{let S=x&&y.length===1?f:l;if(!y.length)return S;let v=y[0].split(\",\").map(E=>E.trim()).map(E=>E.includes(\"&\")?E.replace(/&/g,S):g(E)?`${S}${E}`:`${S} ${E}`);for(let E=1;E<y.length;E++){let D=y[E].split(\",\").map(A=>A.trim()),F=[];for(let A of v)for(let N of D)N.includes(\"&\")?F.push(N.replace(/&/g,A)):g(N)?F.push(A+N):F.push(A+\" \"+N);v=F}return v.join(\", \")},b=[],_=(y,x)=>{let S=y.filter(rc),v=m(y.filter(D=>!rc(D)),S.length===0),E=`${v}{${x}}`;for(let D=S.length-1;D>=0;D--)E=`${S[D]}{${E}}`;E=Sr(E,v,i),b.push(E),Ne(E,void 0,\"atomic\")};u&&_([t],u);for(let y of d)_([t,...y.chain],y.body);return YS.set(c,b),is.set(a,c),c}function St(t){if(t==null||typeof t!=\"string\"&&typeof t!=\"object\")return;if(nu(),typeof t==\"string\"){let s=t.indexOf(\"--\")!==-1;Ne(t,void 0,s?\"variable\":\"global\"),s&&US(1);return}let e=sy(),r=0,n=Object.keys(t),o=s=>{let i=s.match(/max-width:\\s*(\\d+)/);return i?parseInt(i[1]):0};n.sort((s,i)=>{let a=s.startsWith(\"@media\"),c=i.startsWith(\"@media\");return!a&&!c?0:a?c?o(i)-o(s):1:-1});for(let s of n){let i=t[s];if(s.startsWith(\"@keyframes\")){let a=ey(i);a&&Ne(`${s}{${a}}`,void 0,\"keyframes\");continue}if(rc(s))for(let a in i){let c=i[a];if(a.startsWith(\"@keyframes\")){let l=ey(c);l&&Ne(`${s}{${a}{${l}}}`,void 0,\"keyframes\");continue}if(typeof c==\"object\"&&c!==null){let l=\"\",f=0;for(let u in c){let d=u.charCodeAt(0)===45&&u.charCodeAt(1)===45;d&&f++;let h=d?u:Yn(u);l+=ss(h,c[u])}r+=f,Ne(Sr(`${s}{${a}{${l}}}`,a,e),void 0,f?\"variable\":\"global\")}else{let l=a.charCodeAt(0)===45&&a.charCodeAt(1)===45;l&&r++;let f=l?a:Yn(a);Ne(`${s}{${ss(f,c)}}`,void 0,l?\"variable\":\"global\")}}else{let a=\"\",c=!1,l=0;for(let f in i){let u=i[f];if(typeof u==\"object\"&&u!==null)c=!0;else{let d=f.charCodeAt(0)===45&&f.charCodeAt(1)===45;d&&l++;let h=d?f:Yn(f);a+=ss(h,u)}}if(r+=l,a&&Ne(Sr(`${s}{${a}}`,s,e),void 0,l?\"variable\":\"global\"),c){let f=[],u=[];for(let d in i)typeof i[d]==\"object\"&&i[d]!==null&&(rc(d)?f.push(d):u.push(d));f.sort((d,h)=>{let p=g=>{let m=g.match(/max-width:\\s*(\\d+)/);return m?parseInt(m[1]):0};return p(h)-p(d)});for(let d of u)St({[`${s} ${d}`]:i[d]});for(let d of f)St({[d]:{[s]:i[d]}})}}}r>0&&US(r)}function as(t,e){return Ne(`@keyframes ${t}{${ey(e)}}`,void 0,\"keyframes\"),t}function QS(){is.clear(),XS=null}function iy(){return is.size}P();var ob={};L(ob,{DELEGATED_EVENTS:()=>ds,LIFECYCLE_EVENTS:()=>en,MIXINS:()=>ou,NON_BUBBLING_EVENTS:()=>su,REGISTRY:()=>Bt,SVG_TAGS:()=>fs,addDelegatedEvent:()=>oc,addMethods:()=>bs,applyExtends:()=>hs,cacheNode:()=>tn,create:()=>he,createHTMLNode:()=>ls,detectTag:()=>Qr,dispose:()=>nn,flushMounts:()=>pc,globalEventKeyInfo:()=>iu,isSvgTag:()=>us,isValidTag:()=>cs,refreshContextProto:()=>gu,registerEvent:()=>ps,registerGlobalEvent:()=>au,remove:()=>ys,removeDelegatedEvent:()=>sc,update:()=>gs});var cy=\"http://www.w3.org/2000/svg\",fs=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\"]),zR=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 cs(t){return zR.has(t)||fs.has(t)}function us(t){return fs.has(t)}function Qr(t){let{tag:e,key:r}=t;if(typeof e==\"function\")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<\"u\"&&console.error&&console.error(`[smbls] \\`tag:\\` factory threw on \"${r||\"<anon>\"}\" \\u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=r),typeof e==\"string\"&&cs(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\",\"th\",\"tr\",\"td\",\"thead\",\"tbody\",\"tfoot\",\"caption\",\"col\",\"colgroup\"]),o=r.toLowerCase();return o.includes(\".\")&&(o=o.split(\".\")[0]),o.includes(\"_\")&&(o=o.split(\"_\")[0]),cs(o)&&!n.has(o)?o:\"div\"}var t0={};function ls(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(us(t)){let n=e?.parent;if(t===\"svg\"||n?.node?.namespaceURI===cy)return r.createElementNS(cy,t);if(t!==\"svg\")return r.createElement(\"div\")}return r.createElement(t)}function tn(t){let e=t.tag=Qr(t),n=us(e)&&(e===\"svg\"||t.parent?.node?.namespaceURI===cy)?\"svg:\"+e:e,o=t?.context?.document||globalThis.document,s=t0[n];if(s||(s=t0[n]=ls(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?ls(e,t):s.cloneNode(!0);return e===\"string\"&&(i.nodeValue=t.text||\"\"),i}var Bt=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\",\"allowRuntimeTemplates\",\"__name\",\"__ref\",\"__hash\",\"__text\",\"parent\",\"node\"]),ou={text:\"text\",html:\"html\",style:\"style\",attr:\"attr\",data:\"data\",classlist:\"classlist\",state:\"state\",scope:\"scope\"},en=new Set([\"start\",\"init\",\"complete\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeUpdate\",\"update\",\"afterUpdate\",\"beforeClassAssign\",\"lazyLoad\",\"render\",\"renderRouter\",\"done\",\"create\",\"frame\",\"mounted\",\"contentUpdate\",\"startUpdate\",\"stateUpdate\",\"beforeStateUpdate\",\"initInspect\",\"initSync\",\"beforeRemove\",\"remove\"]),su=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\"]),ly=new Set([\"wheel\",\"mousewheel\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\"]),ds=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 uy=new WeakMap,HR={passive:!0},WR={passive:!0,capture:!0},dy=(t,e)=>ly.has(t)?e?WR:HR:e||!1;function n0(t){let e=uy.get(t);return e||(e={handlers:new Map,installed:new Set},uy.set(t,e)),e}function qR(t,e){let r=n0(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\"||t===\"pointerenter\"||t===\"pointerleave\",o=t===\"mouseenter\"||t===\"mouseleave\"||t===\"pointerenter\"||t===\"pointerleave\";e.addEventListener(t,s=>{if(o){let a=s.target,c=r.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains==\"function\"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},dy(t,n))}function oc(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=n0(n);qR(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function sc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=uy.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function e0(t){return ds.has(t)&&!en.has(t)}function o0(t,e){let{context:r}=t,n=r?.designSystem;return o=>{n&&ot(n);try{let s=e.call(t,o,t,t.state,r);if(s&&typeof s.then==\"function\"){s.catch(i=>{t.error=i,console.error(\"[DOMQL] Async event error:\",i)}).finally(()=>{n&&rt()});return}}catch(s){if(t.error=s,console.error(\"[DOMQL] Event error:\",s),r?.strictMode)throw s}n&&rt()}}function ps(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o0(e,r),i=su.has(t);if(!i&&e0(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;oc(t,n,s,a)}else n.addEventListener(t,s,dy(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!i&&e0(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;sc(t,n,a)}else n.removeEventListener(t,s,dy(t,!1))})}var fy=[[\"onDocument\",\"document\"],[\"onWindow\",\"window\"],[\"onVisualViewport\",\"visualViewport\"],[\"onMediaQuery\",\"mediaQuery\"]];function iu(t){if(typeof t!=\"string\")return null;for(let e=0;e<fy.length;e++){let r=fy[e][0];if(t.length<=r.length||!t.startsWith(r))continue;let n=t.charCodeAt(r.length);if(!(n<65||n>90))return{target:fy[e][1],eventName:t.slice(r.length).toLowerCase()}}return null}var KR=/^[A-Za-z_$][\\w$]*$/;function GR(t,e,r){let n=e,o=!1,s,i=!1,a=null;if(e&&typeof e==\"object\"&&typeof e!=\"function\"&&(n=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive==\"boolean\"&&(s=e.passive),typeof e.query==\"string\"&&(a=e.query)),typeof n==\"string\"&&KR.test(n)){let c=n;n=function(f){return t.call(c,f)}}return typeof n!=\"function\"?null:(s===void 0&&(s=ly.has(r)),{handler:n,capture:o,passive:s,once:i,query:a})}function YR(t,e,r){let n=t.node?.ownerDocument||t.context?.document||(typeof document<\"u\"?document:null);if(!n||typeof n.addEventListener!=\"function\")return null;if(e===\"document\")return n;let o=n.defaultView||(typeof window<\"u\"?window:null);if(!o)return null;if(e===\"window\")return typeof o.addEventListener==\"function\"?o:null;if(e===\"visualViewport\"){let s=o.visualViewport;return s&&typeof s.addEventListener==\"function\"?s:null}if(e===\"mediaQuery\"){let s=r&&r.query;if(typeof s!=\"string\"||!s.trim()||typeof o.matchMedia!=\"function\")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}function XR(t,e,r,n){try{return t.addEventListener(e,r,n),!0}catch{return typeof t.addListener==\"function\"?(t.addListener(r),!0):!1}}function ZR(t,e,r,n){try{t.removeEventListener(e,r,n)}catch{typeof t.removeListener==\"function\"&&t.removeListener(r)}}function JR(t){let e=t.node;if(!e)return!1;let r=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return r?r.isConnected!==!1:!1}function au(t,e,r){if(e.__ref){if(Array.isArray(r)){if(t.target!==\"mediaQuery\")return;for(let o=0;o<r.length;o++)r0(t,e,r[o]);return}r0(t,e,r)}}function r0(t,e,r){let n=e.__ref,o=GR(e,r,t.eventName);if(!o||t.target===\"mediaQuery\"&&t.eventName!==\"change\")return;let s=YR(e,t.target,o);if(!s)return;let i=t.target+\":\"+(o.query?o.query+\":\":\"\")+t.eventName+\":\"+(o.capture?1:0);if(n.__globalEvents&&n.__globalEvents.has(i))return;let a=o0(e,o.handler),c=f=>{JR(e)&&a(f)},l={capture:o.capture,passive:o.passive,once:o.once};XR(s,t.eventName,c,l)&&(n.__globalEvents||(n.__globalEvents=new Map),n.__globalEvents.set(i,{target:s,eventName:t.eventName,listener:c,options:l}),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>{ZR(s,t.eventName,c,l),n.__globalEvents&&n.__globalEvents.delete(i)}))}function s0(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 hs(t,e,r){let n=s0(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=i0(n[i],s);a&&a!==e&&a0(t,a,r,new Set([e]))}}function i0(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 a0(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=s0(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=i0(o[a],i);c&&a0(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]=c0(t[s],i):t[s]=i}}function c0(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]=c0(o,s):r[n]=s}return r}On();P();var QR=[\"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\"],cu={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\"]},f0=[\"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\"],sr=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()):u0(t),tP=new Set([\"tabIndex\",\"readOnly\",\"maxLength\",\"minLength\",\"autoComplete\",\"autoFocus\",\"autoPlay\",\"contentEditable\",\"spellCheck\",\"colSpan\",\"rowSpan\",\"srcSet\",\"crossOrigin\",\"accessKey\",\"inputMode\",\"enterKeyHint\",\"formAction\",\"noValidate\"]),u0=t=>tP.has(t)?t.toLowerCase():null,eP=new Set([\"draggable\",\"contenteditable\",\"spellcheck\",\"autocorrect\"]),ir=t=>typeof t==\"string\"&&(eP.has(t)||t.startsWith(\"aria-\")),ee=(t,e)=>e!==!0&&e!==!1?e:ir(t)?e?\"true\":\"false\":e===!0?\"\":e,Oe=(t,e)=>e.startsWith(\"aria-\")||e.startsWith(\"data-\")||sr(e)||cu.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(cu,t)?cu[t].includes(e):!1,hy=t=>{if(!w(t))return!1;let e=t.toLowerCase();return f0.includes(e)},rP=(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])Ot(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(Ot(e[o][a])){let c=a.replace(/([A-Z])/g,l=>\"-\"+l.toLowerCase());n[\"data-\"+c]=e[o][a]}continue}let s=Oe(t,o),i=hy(o);if(Ot(e[o])&&(s||i)){let a=sr(o)||o;n[a]=e[o]}}return n},nP=(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},rn=(t,e)=>{let r=t.call(\"exec\",e,t);if(r)return w(r)&&r.includes(\"{{\")&&(r=t.call(\"replaceLiteralsWithObjectFields\",r)),r},py=(t,e)=>{let r=(t.preSrc||\"\")+(rn(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},Zn={src:t=>py(t,t.src),href:t=>rn(t,t.href),action:t=>rn(t,t.action),poster:t=>py(t,t.poster),data:t=>rn(t,t.data)},gy=t=>{let e=t.tag||\"div\",r={};for(let n in Zn)if(t[n]!==void 0&&Oe(e,n)){let o=Zn[n](t);o!==void 0&&(r[n]=o)}return r},l0=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return O(r)?r.call(e,e):!!r},oP=(t,e,r)=>{if(t===\"$\"){let o=l0(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=l0(e,r);o!==void 0&&(n=o)}return t===\".\"?!!n:!n},sP=new Set([\"$\",\".\",\"!\"]),iP=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(oP(a,c,f))return O(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!sP.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 h in a[l])o(\"aria-\"+h,a[l][h],i,c);continue}if(l===\"data\"&&a[l]&&typeof a[l]==\"object\"){for(let h in a[l]){let p=h.replace(/([A-Z])/g,g=>\"-\"+g.toLowerCase());o(\"data-\"+p,a[l][h],i,c)}continue}let f=Oe(e,l),u=hy(l);if(!f&&!u)continue;let d=sr(l)||l;o(d,a[l],i,c)}}return n};function gs(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\"&&my(n))try{let i=r.onBeforeUpdate(r,r.state,r.context,e);if(i&&typeof i.then==\"function\")i.then(()=>kr(n,!1),a=>{kr(n,!0),r.context?.plugins?.length&&Rt(\"error\",r,{hook:\"onBeforeUpdate\",error:a})||console.error(\"[DOMQL] onBeforeUpdate error:\",a)});else if(kr(n,!1),i===!1)return r}catch(i){throw kr(n,!0),i}let o=!t||Object.keys(t).length===0,s=[];al(()=>{if(t.state&&xt(r.state)&&r.state.$update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&ms(r,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 i in t.style){let a=t.style[i];if(a==null)continue;let c=i.replace(/[A-Z]/g,f=>\"-\"+f.toLowerCase()),l=String(a).replace(/\\s*!important\\s*$/,\"\");r.node.style.setProperty(c,l,\"important\")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let i in t.attr){let a=t.attr[i];a==null||a===!1&&!ir(i)?r.node.removeAttribute(i):typeof a!=\"function\"&&typeof a!=\"object\"&&r.node.setAttribute(i,ee(i,a))}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let i in t.data)r.node.dataset[i]=t.data[i];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let i in t){if(Bt.has(i)||i===\"state\")continue;let a=t[i],c=r[i];if(c&&c.__ref&&typeof c.update==\"function\")c.update(a,e);else if(typeof a==\"object\"&&a!==null){let l=i.charCodeAt(0);l>=65&&l<=90&&he(a,r,i,e)}else i!==\"text\"&&i!==\"html\"&&i!==\"style\"&&i!==\"attr\"&&i!==\"data\"&&(r[i]=a,typeof a!=\"function\"&&s.push(i))}});for(let i=0;i<s.length;i++)h0(r,s[i]);if(r.node){for(let i=0;i<s.length;i++)if(d0(s[i])){p0(r);break}}if(r.node&&o&&n.__effects&&n.__effects.length)for(let i=0;i<n.__effects.length;i++){let a=n.__effects[i];a&&!a._disposed&&!a._isSubscribeToEffect&&typeof a._execute==\"function\"&&a._execute()}else if(r.node&&n.__conditionalRunners)for(let i of n.__conditionalRunners)i();return Rt(\"update\",r),!e.preventListeners&&typeof r.onUpdate==\"function\"&&r.onUpdate(r,r.state,r.context,e),r}function nn(t){if(!t)return;let e=t.__ref;if(!e)return;e.__disposed=!0;try{typeof t.onBeforeRemove==\"function\"&&t.onBeforeRemove(t,t.state,t.context)}catch(n){console.error(\"[smbls] onBeforeRemove error:\",n)}if(e.__effects){for(let n=0;n<e.__effects.length;n++)e.__effects[n].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let n=0;n<e.__eventCleanup.length;n++)e.__eventCleanup[n]();e.__eventCleanup.length=0}if(e.__children){let n=e.__children.slice();e.__children.length=0;for(let o=0;o<n.length;o++){let s=t[n[o]];s&&s.__ref&&nn(s)}}t.node?.parentNode?t.node.remove():t.tag===\"fragment\"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r==\"function\"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let n=t.parent.__ref.__children.indexOf(t.key);n!==-1&&t.parent.__ref.__children.splice(n,1),delete t.parent[t.key]}try{typeof t.onRemove==\"function\"&&t.onRemove(t)}catch(n){console.error(\"[smbls] onRemove error:\",n)}t.node=null,t.parent=null,t.__ref=null}function ys(){nn(this)}P();P();P();var aP=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],cP=[\"none\",\"forwards\",\"backwards\",\"both\"],lP=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],fP=[\"running\",\"paused\"],uP=t=>/^[\\d.]+m?s$/.test(t),dP=/^(?:translate(?:3d|x|y|z)?\\((?:\\s*0[a-z%]*\\s*,?)+\\)|scale(?:3d|x|y|z)?\\((?:\\s*1(?:\\.0+)?\\s*,?)+\\)|rotate(?:3d|x|y|z)?\\((?:\\s*0[a-z%]*\\s*,?)+\\)|skew(?:x|y)?\\((?:\\s*0[a-z%]*\\s*,?)+\\)|matrix\\(\\s*1\\s*,\\s*0\\s*,\\s*0\\s*,\\s*1\\s*,\\s*0\\s*,\\s*0\\s*\\))$/,pP=t=>{let e=String(t).trim().toLowerCase();if(e===\"\"||e===\"none\"||e===\"initial\"||e===\"unset\")return!0;let r=e.match(/[a-z0-9]+\\([^()]*\\)/g);return!r||r.join(\"\").replace(/\\s+/g,\"\")!==e.replace(/\\s+/g,\"\")?!1:r.every(n=>dP.test(n.replace(/\\s+/g,\"\")))},g0=t=>/^(?:\\s*0[a-z%]*)+\\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),hP={transform:pP,translate:g0,rotate:t=>g0(t)||/^\\s*(?:[xyz]\\s+)?0(?:deg|rad|turn|grad)?\\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\\s*1(?:\\.0+)?)+\\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},gP=t=>{let e=String(t).trim().toLowerCase();if(e===\"from\")return 0;if(e===\"to\")return 100;let r=e.match(/^(\\d+(?:\\.\\d+)?)%$/);return r?Number(r[1]):null},mP=t=>{if(!k(t))return null;let e=null,r=-1;for(let n in t){let o=gP(n);o==null||!k(t[n])||o>=r&&(r=o,e=t[n])}return e},yP=t=>{let e=mP(t);if(!e)return!1;let r=Object.keys(e);if(!r.length)return!1;for(let n of r){let o=hP[n];if(!o)return!1;let s=e[n];if(s==null||typeof s==\"object\"||typeof s==\"function\"||!o(s))return!1}return!0},bP=(t,e)=>{if(k(t))return t;let{animation:r}=e.context&&e.context.designSystem||{},n=r&&r[t];return k(n)?n:null},_P=[\"reverse\",\"alternate\",\"alternate-reverse\"],m0=(t,e,r)=>{let n=r||e.animationDirection;return n&&_P.includes(String(n))?\"both\":yP(bP(t,e))?\"backwards\":\"both\"},xP=0,y0=new Map,yy=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(k(t)){let o=JSON.stringify(t),s=y0.get(o);if(s)return s;let i=`smbls-anim-${xP++}`,a=as(i,t);return y0.set(o,a),a}let n=r&&r[t];return k(n)?as(t,n):t},wP=t=>{let e=[],r=0,n=\"\";for(let o of String(t).trim())o===\"(\"?r++:o===\")\"&&r>0&&r--,r===0&&/\\s/.test(o)?(n&&e.push(n),n=\"\"):n+=o;return n&&e.push(n),e},SP=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=wP(t),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:uP(u)?s.push(u):aP.includes(u)||u.startsWith(\"cubic-bezier\")||u.startsWith(\"steps(\")||u.startsWith(\"linear(\")?i=u:u===\"infinite\"||/^\\d+$/.test(u)?a=u===\"infinite\"?u:Number(u):lP.includes(u)?c=u:cP.includes(u)?l=u:fP.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},by={animation:(t,e)=>{if(t!=null){if(w(t)&&t.includes(\" \")){let r=SP(t,e);return{animationName:yy(r.name||t,e),animationDuration:r.durations[0]||de(e.animationDuration||\"A\").timing,animationDelay:r.durations[1]||de(e.animationDelay||\"0s\").timing,animationTimingFunction:r.timingFunction||Te(e.animationTimingFunction||\"ease\"),animationFillMode:r.fillMode||e.animationFillMode||m0(r.name||t,e,r.direction),animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:yy(t,e),animationDuration:de(e.animationDuration||\"A\").timing,animationDelay:de(e.animationDelay||\"0s\").timing,animationTimingFunction:Te(e.animationTimingFunction||\"ease\"),animationFillMode:e.animationFillMode||m0(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:yy(t,e)}),animationDuration:t=>({animationDuration:de(t).timing}),animationDelay:t=>({animationDelay:de(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Te(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};P();var lu=(t,e,r)=>{if(typeof e==\"number\"&&(e=String(e)),!w(e))return;let[n,o]=ft(e);return{...I(t+\"Start\",n,r),...I(t+\"End\",o||n,r)}},_y={show:t=>t?void 0:{display:\"none !important\"},hide:t=>t?{display:\"none !important\"}:void 0,height:(t,e)=>I(\"height\",t,e),width:(t,e)=>I(\"width\",t,e),boxSizing:t=>Pt(t)?{boxSizing:\"border-box\"}:{boxSizing:t},boxSize:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"height\",e),...wt(\"width\",r||e)}},inlineSize:(t,e)=>I(\"inlineSize\",t,e),blockSize:(t,e)=>I(\"blockSize\",t,e),minWidth:(t,e)=>I(\"minWidth\",t,e),maxWidth:(t,e)=>I(\"maxWidth\",t,e),widthRange:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"minWidth\",e),...wt(\"maxWidth\",r||e)}},minHeight:(t,e)=>I(\"minHeight\",t,e),maxHeight:(t,e)=>I(\"maxHeight\",t,e),heightRange:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"minHeight\",e),...wt(\"maxHeight\",r||e)}},size:t=>{if(!w(t))return;let[e,r]=ft(t);return{...I(\"inlineSize\",e),...I(\"blockSize\",r||e)}},minBlockSize:(t,e)=>I(\"minBlockSize\",t,e),minInlineSize:(t,e)=>I(\"minInlineSize\",t,e),maxBlockSize:(t,e)=>I(\"maxBlockSize\",t,e),maxInlineSize:(t,e)=>I(\"maxInlineSize\",t,e),minSize:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"minInlineSize\",e),...wt(\"minBlockSize\",r||e)}},maxSize:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"maxInlineSize\",e),...wt(\"maxBlockSize\",r||e)}},borderWidth:(t,e)=>I(\"borderWidth\",t,e),borderTopWidth:(t,e)=>I(\"borderTopWidth\",t,e),borderRightWidth:(t,e)=>I(\"borderRightWidth\",t,e),borderBottomWidth:(t,e)=>I(\"borderBottomWidth\",t,e),borderLeftWidth:(t,e)=>I(\"borderLeftWidth\",t,e),textDecorationThickness:(t,e)=>I(\"textDecorationThickness\",t,e),textUnderlineOffset:(t,e)=>I(\"textUnderlineOffset\",t,e),padding:(t,e)=>I(\"padding\",t,e),paddingInline:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"paddingInlineStart\",e),...wt(\"paddingInlineEnd\",r||e)}},paddingBlock:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"paddingBlockStart\",e),...wt(\"paddingBlockEnd\",r||e)}},paddingTop:(t,e)=>I(\"paddingBlockStart\",t,e),paddingBottom:(t,e)=>I(\"paddingBlockEnd\",t,e),paddingLeft:(t,e)=>I(\"paddingInlineStart\",t,e),paddingRight:(t,e)=>I(\"paddingInlineEnd\",t,e),paddingBlockStart:(t,e)=>I(\"paddingBlockStart\",t,e),paddingBlockEnd:(t,e)=>I(\"paddingBlockEnd\",t,e),paddingInlineStart:(t,e)=>I(\"paddingInlineStart\",t,e),paddingInlineEnd:(t,e)=>I(\"paddingInlineEnd\",t,e),margin:(t,e)=>I(\"margin\",t,e),marginInline:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"marginInlineStart\",e),...wt(\"marginInlineEnd\",r||e)}},marginBlock:t=>{if(!w(t))return;let[e,r]=ft(t);return{...wt(\"marginBlockStart\",e),...wt(\"marginBlockEnd\",r||e)}},marginTop:(t,e)=>I(\"marginBlockStart\",t,e),marginBottom:(t,e)=>I(\"marginBlockEnd\",t,e),marginLeft:(t,e)=>I(\"marginInlineStart\",t,e),marginRight:(t,e)=>I(\"marginInlineEnd\",t,e),marginInlineStart:(t,e)=>I(\"marginInlineStart\",t,e),marginInlineEnd:(t,e)=>I(\"marginInlineEnd\",t,e),marginBlockStart:(t,e)=>I(\"marginBlockStart\",t,e),marginBlockEnd:(t,e)=>I(\"marginBlockEnd\",t,e),scrollMargin:(t,e)=>I(\"scrollMargin\",t,e),scrollMarginTop:(t,e)=>I(\"scrollMarginTop\",t,e),scrollMarginRight:(t,e)=>I(\"scrollMarginRight\",t,e),scrollMarginBottom:(t,e)=>I(\"scrollMarginBottom\",t,e),scrollMarginLeft:(t,e)=>I(\"scrollMarginLeft\",t,e),scrollMarginBlock:(t,e)=>lu(\"scrollMarginBlock\",t,e),scrollMarginInline:(t,e)=>lu(\"scrollMarginInline\",t,e),scrollMarginBlockStart:(t,e)=>I(\"scrollMarginBlockStart\",t,e),scrollMarginBlockEnd:(t,e)=>I(\"scrollMarginBlockEnd\",t,e),scrollMarginInlineStart:(t,e)=>I(\"scrollMarginInlineStart\",t,e),scrollMarginInlineEnd:(t,e)=>I(\"scrollMarginInlineEnd\",t,e),scrollPadding:(t,e)=>I(\"scrollPadding\",t,e),scrollPaddingTop:(t,e)=>I(\"scrollPaddingTop\",t,e),scrollPaddingRight:(t,e)=>I(\"scrollPaddingRight\",t,e),scrollPaddingBottom:(t,e)=>I(\"scrollPaddingBottom\",t,e),scrollPaddingLeft:(t,e)=>I(\"scrollPaddingLeft\",t,e),scrollPaddingBlock:(t,e)=>lu(\"scrollPaddingBlock\",t,e),scrollPaddingInline:(t,e)=>lu(\"scrollPaddingInline\",t,e),scrollPaddingBlockStart:(t,e)=>I(\"scrollPaddingBlockStart\",t,e),scrollPaddingBlockEnd:(t,e)=>I(\"scrollPaddingBlockEnd\",t,e),scrollPaddingInlineStart:(t,e)=>I(\"scrollPaddingInlineStart\",t,e),scrollPaddingInlineEnd:(t,e)=>I(\"scrollPaddingInlineEnd\",t,e),gap:t=>({gap:Kf(t)}),columnGap:(t,e)=>Ee(e,\"columnGap\",t),rowGap:(t,e)=>Ee(e,\"rowGap\",t),flexWrap:t=>{if(t!=null)return{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)=>wr(t??e.borderRadius,e,\"round\"),borderRadius:(t,e)=>wr(t??e.round,e,\"borderRadius\"),borderTopLeftRadius:(t,e)=>wr(t,e,\"borderTopLeftRadius\",\"borderTopLeftRadius\"),borderTopRightRadius:(t,e)=>wr(t,e,\"borderTopRightRadius\",\"borderTopRightRadius\"),borderBottomLeftRadius:(t,e)=>wr(t,e,\"borderBottomLeftRadius\",\"borderBottomLeftRadius\"),borderBottomRightRadius:(t,e)=>wr(t,e,\"borderBottomRightRadius\",\"borderBottomRightRadius\")};var xy={fontSize:t=>qa(t)||t,fontFamily:t=>({fontFamily:Ha(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'\"wght\" '+t}),lineClamp:t=>{if(t!=null)return t===\"none\"?{WebkitLineClamp:\"none\",lineClamp:\"none\"}:{display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:String(t),lineClamp:String(t),overflow:\"hidden\"}}};var wy={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 Sy={inset:(t,e)=>{if(e.call(\"isNumber\",t))return{inset:t};if(e.call(\"isString\",t))return{inset:ft(t).map(r=>Ct(r,\"k\").k).join(\" \")}},left:t=>Ct(t,\"left\"),top:t=>Ct(t,\"top\"),right:t=>Ct(t,\"right\"),bottom:t=>Ct(t,\"bottom\"),verticalInset:t=>{if(typeof t!=\"string\")return;let e=ft(t).map(r=>Ct(r,\"k\").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!=\"string\")return;let e=ft(t).map(r=>Ct(r,\"k\").k);return{left:e[0],right:e[1]||e[0]}}};P();var fu=0,uu=()=>{fu++},du=()=>{fu>0&&fu--},ge=({context:t,state:e})=>{let r=t?.designSystem,n=e?.root?.globalTheme||r?.globalTheme;return n&&n!==\"auto\"?n:fu>0?null:r&&r.resolvedTheme||null},re=(t,e)=>{if(e==null||e===\"\")return;if(!k(e))return{[t]:e};let r={},n=!1;for(let o in e){let s=e[o];if(!(s==null||s===\"\")){if(k(s)){let i=re(t,s);i&&(r[o]=i,n=!0);continue}r[o]={[t]:s},n=!0}}return n?r:void 0},ky={theme:(t,e)=>{if(t)return e.themeModifier?Ae(t,`@${e.themeModifier}`):Ae(t)},color:(t,e)=>{let r=ge(e);if(t)return re(\"color\",Lt(t,r))},background:(t,e)=>{let r=ge(e);if(t)return w(t)&&t.includes(\"gradient\")&&t.includes(\"(\")?{background:tc(t,r)}:re(\"background\",Lt(t,r))},backgroundColor:(t,e)=>{let r=ge(e);if(t)return re(\"backgroundColor\",Lt(t,r))},backgroundImage:(t,e,r,n)=>{let o=ge(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 re(\"backgroundImage\",qf(t,o))},textStroke:t=>{let e=Hf(t);if(e!=null)return{WebkitTextStroke:e}},outline:t=>({outline:or(t)}),outlineWidth:(t,e)=>I(\"outlineWidth\",t,e),outlineColor:(t,e)=>{let r=ge(e);if(t)return re(\"outlineColor\",Lt(t,r))},outlineOffset:(t,e)=>I(\"outlineOffset\",t,e),border:t=>({border:or(t)}),borderColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderColor\",Lt(t,r))},borderTopColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderTopColor\",Lt(t,r))},borderBottomColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderBottomColor\",Lt(t,r))},borderLeftColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderLeftColor\",Lt(t,r))},borderRightColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderRightColor\",Lt(t,r))},borderLeft:t=>({borderLeft:or(t)}),borderTop:t=>({borderTop:or(t)}),borderRight:t=>({borderRight:or(t)}),borderBottom:t=>({borderBottom:or(t)}),shadow:(t,e)=>{let r=ge(e);if(t)return re(\"boxShadow\",Wf(t,r))},boxShadow:(t,e)=>{if(!w(t))return;let[r,n]=t.split(\"!importan\"),o=ge(e),s=n?\" !important\":\"\",i=Qa(r.trim(),o);return w(i)?{boxShadow:i+s}:re(\"boxShadow\",i)},textShadow:(t,{context:e})=>re(\"textShadow\",Qa(t,e.designSystem.globalTheme)),columnRule:t=>({columnRule:or(t)})};var ic={transition:t=>{let e=Yf(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:ec(t)}),transitionDelay:t=>({transitionDelay:ec(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Te(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};P();var vy={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)=>{if(t!=null)return{display:\"flex\",flexWrap:t}},align:(t,e)=>{if(!w(t))return;let[r,n]=t.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}};P();var kP=/(^|[^\\w.-])([A-Za-z_][\\w-]*)/g,b0=t=>{if(!w(t))return t;let e=T().sizes;return e?t.replace(kP,(r,n,o)=>{let s=e[o];return s==null?r:n+String(s)}):t},ar=t=>b0(Gf(t)),Cy={gridTemplateColumns:t=>({gridTemplateColumns:ar(t)}),gridTemplateRows:t=>({gridTemplateRows:ar(t)}),gridAutoColumns:t=>({gridAutoColumns:ar(t)}),gridAutoRows:t=>({gridAutoRows:ar(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:ar(t)}),templateColumns:t=>({gridTemplateColumns:ar(t)}),autoColumns:t=>({gridAutoColumns:ar(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:ar(t)}),templateRows:t=>({gridTemplateRows:ar(t)}),autoRows:t=>({gridAutoRows:ar(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var _t={...by,..._y,...xy,...wy,...Sy,...ky,...ic,...vy,...Cy};var Et=new Set([\"accentColor\",\"alignContent\",\"alignItems\",\"alignSelf\",\"alignmentBaseline\",\"all\",\"animation\",\"animationDelay\",\"animationDirection\",\"animationDuration\",\"animationFillMode\",\"animationIterationCount\",\"animationName\",\"animationPlayState\",\"animationRange\",\"animationRangeEnd\",\"animationRangeStart\",\"animationTimeline\",\"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\",\"interpolateSize\",\"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\",\"overscrollBehavior\",\"overscrollBehaviorX\",\"overscrollBehaviorY\",\"padding\",\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"pageBreakAfter\",\"pageBreakBefore\",\"pageBreakInside\",\"paintOrder\",\"perspective\",\"perspectiveOrigin\",\"placeContent\",\"placeItems\",\"placeSelf\",\"pointerEvents\",\"position\",\"resize\",\"right\",\"rotate\",\"rowGap\",\"scrollBehavior\",\"scrollMargin\",\"scrollMarginBlock\",\"scrollMarginBlockEnd\",\"scrollMarginBlockStart\",\"scrollMarginBottom\",\"scrollMarginInline\",\"scrollMarginInlineEnd\",\"scrollMarginInlineStart\",\"scrollMarginLeft\",\"scrollMarginRight\",\"scrollMarginTop\",\"scrollPadding\",\"scrollPaddingBlock\",\"scrollPaddingBlockEnd\",\"scrollPaddingBlockStart\",\"scrollPaddingBottom\",\"scrollPaddingInline\",\"scrollPaddingInlineEnd\",\"scrollPaddingInlineStart\",\"scrollPaddingLeft\",\"scrollPaddingRight\",\"scrollPaddingTop\",\"scrollSnapAlign\",\"scrollSnapStop\",\"scrollSnapType\",\"scrollTimeline\",\"scrollTimelineAxis\",\"scrollTimelineName\",\"scrollbarColor\",\"scrollbarGutter\",\"scrollbarWidth\",\"shapeImageThreshold\",\"shapeMargin\",\"shapeOutside\",\"tabSize\",\"tableLayout\",\"textAlign\",\"textAlignLast\",\"textDecoration\",\"textDecorationColor\",\"textDecorationLine\",\"textDecorationSkipInk\",\"textDecorationStyle\",\"textDecorationThickness\",\"textIndent\",\"textOverflow\",\"textShadow\",\"textTransform\",\"textUnderlineOffset\",\"timelineScope\",\"top\",\"touchAction\",\"transform\",\"transformOrigin\",\"transformStyle\",\"transition\",\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\",\"translate\",\"translateX\",\"translateY\",\"translateZ\",\"unicodeBidi\",\"userSelect\",\"verticalAlign\",\"viewTimeline\",\"viewTimelineAxis\",\"viewTimelineInset\",\"viewTimelineName\",\"visibility\",\"whiteSpace\",\"widows\",\"width\",\"willChange\",\"wordBreak\",\"wordSpacing\",\"wordWrap\",\"writingMode\",\"zIndex\"]);P();var vP=/^-?[A-Z][0-9]?$/,CP=/^[a-z][0-9]?$/,_0=/var\\(\\s*(--[A-Za-z0-9-]+)/g,EP=t=>{let e=new Set,r=new Set;if(!t||typeof t!=\"object\")return{knownLetters:e,knownVars:r};for(let n in t){let o=t[n];if(!(!o||typeof o!=\"object\")){if(o.sequence&&typeof o.sequence==\"object\")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars==\"object\")for(let s in o.vars)r.add(s)}}return{knownLetters:e,knownVars:r}},AP=(t,e)=>{if(!e.size)return[];let r=t.split(/[(),\\s]+/).filter(Boolean),n=new Set;for(let o of r){if(!vP.test(o))continue;let s=o.charCodeAt(0)===45?o.slice(1):o;e.has(s)&&n.add(o)}return[...n]},TP=(t,e)=>{if(!e.size)return[];let r=[];_0.lastIndex=0;let n;for(;n=_0.exec(t);){let o=n[1];if(e.has(o))continue;let s=o.lastIndexOf(\"-\");if(s===-1)continue;let i=o.slice(s+1);if(!CP.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&r.push({varName:o,corrected:a})}return r},pu=new Set,x0=(t,e,r)=>{if(!pt()||!w(e)||!e)return;let n;try{n=T()}catch{return}let{knownLetters:o,knownVars:s}=EP(n);if(!o.size&&!s.size)return;let i=AP(e,o),a=TP(e,s);if(!i.length&&!a.length)return;let c=r?.__ref?.path?r.__ref.path.join(\".\"):r?.key||\"?\";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;pu.has(f)||(pu.add(f),console.warn(`[smbls/css-in-props] \"${t}\" on <${c}> looks like it contains an un-wrapped design-system token (\"${l}\") \\u2014 \"${t}\" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE \"${t}\" declaration (not just this argument). Wrap it in var(--<family>-${l.replace(\"-\",\"\")}) (or calc(-1 * var(--<family>-${l.replace(\"-\",\"\")})) for a negative). Value: \"${e}\"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;pu.has(u)||(pu.add(u),console.warn(`[smbls/css-in-props] \"${t}\" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \\u2014 the real variable is ${f}, so this reference silently never resolves. Value: \"${e}\"`))}};P();var OP=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,RP=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=ne(e,r);if(!s)return{[t]:i};if(/^@(media|supports|container)\\b/.test(s))return{[s]:i};if(s===\"print\")return{\"@media print\":i};if(s[0]===\"(\")return{[`@media screen and ${s}`]:i};let a=s.match(OP),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},w0=(t,e,r)=>({[t]:ne(e,r)}),ac=(t,e,r)=>{let n=`&${t}`,o=ne(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}},Ey=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return O(r)?r.call(e,e):!!r},PP=(t,e,r)=>{let n=t.slice(1),o=Ey(n,r);if(o===void 0&&(o=!!r[n]),!!o)return ne(e,r)},DP=(t,e,r)=>({[t]:e}),IP=(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=Ey(n,r);s!==void 0&&(o=s)}if(o)return ne(e,r)},LP=(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=Ey(n,r);s!==void 0&&(o=s)}if(!o)return ne(e,r)},Ay=(t,e)=>ne(t,e),Ty={\"@\":RP,\":\":ac,\"[\":ac,\"*\":ac,\"+\":ac,\"~\":ac,\"&\":w0,\">\":w0,$:PP,\"-\":DP,\".\":IP,\"!\":LP};var hu=Fr(),S0=(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(c!==null)if(a===\"class\"&&w(c)){let l=k0(c,e);l&&(r.unpack?yt(o,l):o.designSystemClass=l)}else if(a===\"true\"){let l=lt(c,e);yt(o,Ay(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=O(l)?l(e,e.state,e.context):l;f&&i(a,f),!hu&&k(o[a])&&(o[a].label=a)}else if(_t[a]){let l=lt(c,e);if(l===null)continue;R(l)&&(l=l.reduce((u,d)=>yt(u,d),{}));let f=_t[a](l,e,e.state,e.context);R(f)&&(f=f.reduce((u,d)=>yt(u,d),{})),f&&i(a,f),!hu&&k(o[a])&&(o[a].label=a)}else if(Et.has(a)){let l=lt(c,e);if(l===null)continue;typeof l==\"string\"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),hu||x0(a,l,e),i(a,{[a]:l}),!hu&&k(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&rt()}},k0=(t,e)=>{if(!w(t))return;let r=e?.context?.designSystem?.class;if(!r)return;let n;for(let o of t.split(\" \")){if(!o)continue;let s=r[o];if(!k(s))continue;let i=st(s);n=n?Wt(n,i):i}if(n)return ne(n,e)},v0=(t,e)=>{let r={};for(let n in t){let o=Ty[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\"?Wt(r[i],s[i]):r[i]=s[i])}}return r},ne=(t,e,r={unpack:!0})=>{let[n,o]=S0(t,e,r),s=v0(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return _i(n,s);n._selectors=s}return n},$P=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};P();var C0=t=>{if(k(t))return ne(t,t)},MP=(t,e)=>{let r=C0(t);return typeof e==\"function\"?e(r):pe(r)};P();P();function Py(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})}var E0=new Set;function A0(t,e,r){let n=String(e);if(E0.has(n))return;E0.add(n);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join(\".\"):t?.key!=null?String(t.key):\"(unknown element)\",i=r!=null?`resolves to a non-function (${typeof r}) \\u2014 it cannot be called`:\"is not registered in context.methods, context.functions, or context.utils, and is not an element method\",a=`[smbls] el.call('${n}') at <${s}>: \"${n}\" ${i}. Returning undefined (unchanged behavior) \\u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;Py(t,\"error\",[a]),console.error(a)}var O0=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),FP=new Set,R0=t=>O0(Oy,t)&&!(vo||FP).has(t),T0=new Set;function P0(t,e){T0.has(t)||(T0.add(t),pt()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \\u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function NP(...t){return Py(this,\"warn\",t),sa.apply(this,t)}function jP(...t){return Py(this,\"error\",t),Pn.apply(this,t)}var Oy={update:gs,remove:ys,getDB:la,getQuery:fa,getRootData:ra,getPath:Ji,nextElement:ia,previousElement:aa,verbose:Lo,warn:NP,error:jP,variables:ca,spotByPath:Zi,set(t,e){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}try{if(this.removeContent(),t!=null){let n=this.context?.__create;n&&n(t,this,\"content\",e)}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let n=r.__setQueued;n&&(r.__setQueued=null,this.set(n.content,n.options))}}},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(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:ea,getRootState:ta,getRootContext:na,getContext:oa,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=R0(t);n&&r?.methods?.[t]&&r.methods[t]!==this[t]&&P0(t,\"el.call\");let o=n?this[t]:r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof o==\"function\"){let s=En;if(!s||!s(o))return o.call(this,...e);pt()&&A0(this,t,Ie(o));return}pt()&&A0(this,t,o)},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)}},Ry=new WeakMap;function BP(t){if(!t)return Oy;let e=Ry.get(t);if(e)return e;e=Object.create(Oy);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Ry.set(t,e),e}function bs(t){let e=BP(t.context);Object.setPrototypeOf(t,e)}function gu(t){if(!t)return!1;let e=Ry.get(t);if(!e)return!1;let r=t.methods;if(!r)return!1;for(let n in r){if(R0(n)&&!O0(e,n)){P0(n,\"refreshContextProto\");continue}e[n]=r[n]}return!0}var mu=[],yu=!1,on=0;function bu(){return typeof performance<\"u\"&&typeof performance.now==\"function\"?performance.now():Date.now()}function D0(t){let e=typeof globalThis<\"u\"?globalThis.scheduler:null;if(e&&typeof e.yield==\"function\"){e.yield().then(t,t);return}if(typeof MessageChannel==\"function\"){let r=new MessageChannel;r.port1.onmessage=()=>{r.port1.close(),t()},r.port2.postMessage(0);return}setTimeout(t,0)}function Dy(){return on?bu()-on>=50:!1}var _s=0;function Iy(){_s===0&&!on&&(on=bu()),_s++}function Ly(){_s>0&&_s--,_s===0&&!yu&&(on=0)}function $y(t){mu.push(t),yu||(yu=!0,D0(I0))}function I0(){for(on=bu();mu.length;){let t=mu.shift();try{t()}catch(e){typeof console<\"u\"&&console.error&&console.error(\"[smbls] deferred mount chunk failed:\",e?.message||e)}if(bu()-on>=50)break}if(mu.length){D0(I0);return}yu=!1,on=0,_s=0}P();P();On();var By={};L(By,{STATE_METHODS:()=>L0,applyInitialState:()=>xu,applyStateMethods:()=>me,callStateMethod:()=>cc,createState:()=>Fy,isTracking:()=>jy,useHostState:()=>Ny});var L0=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\"]),_u=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Be=(t,e,r,{onlyIfAbsent:n}={})=>{_u(t,\"$\"+e,r),!(n&&Object.prototype.hasOwnProperty.call(t,e))&&_u(t,e,r)},cc=(t,e,...r)=>{if(!t)return;let n=t[\"$\"+e];if(typeof n==\"function\")return n.apply(t,r);let o=t[e];if(typeof o==\"function\")return o.apply(t,r)},me=(t,e)=>{if(xt(e)){let o=e.__raw||e;Be(o,\"toggle\",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),Be(o,\"set\",function(s,i={}){return e.$clean({preventStateUpdate:!0}),typeof s==\"object\"&&s!==null&&e.$update(s,i),e},{onlyIfAbsent:!0}),Be(o,\"setByPath\",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}),Be(o,\"getByPath\",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}),Be(o,\"removeByPath\",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}),Be(o,\"reset\",function(s={}){let i=e.$parse();return e.$set(i,s)}),Be(o,\"apply\",function(s,i={}){if(typeof s==\"function\"){let a=s(e);return e.$update(a,i)}}),Be(o,\"applyFunction\",function(s,i={}){if(typeof s==\"function\")return s(e),e.$update(e.$parse(),i)}),Be(o,\"rootUpdate\",function(s,i={}){let a=e;for(;a?.parent&&xt(a.parent);)a=a.parent;return cc(a,\"update\",s,i)}),Be(o,\"parentUpdate\",function(s,i={}){if(e.parent)return cc(e.parent,\"update\",s,i)}),Be(o,\"quietReplace\",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,\"root\")||Object.defineProperty(o,\"root\",{get:function(){let s=e,i=xt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,xt(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)if(_u(e,\"$\"+o,n[o]),typeof e[o]!=\"function\"){if(Object.prototype.hasOwnProperty.call(e,o)){fl(o,\"\");continue}_u(e,o,n[o])}};var Fy=function(t,e,r){return t.state=xu(t,e,r),t.state},xu=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return me(t,s),s}if(typeof o==\"string\")return n&&(n.__state=o),n.__stateType=\"string\",UP(o,t,e);if(typeof o==\"number\"||typeof o==\"boolean\"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=lr({value:o});return s.__element=t,e?.state&&(s.parent=e.state),me(t,s),s}if(typeof o==\"function\"&&(o=o(t,e?.state)||{}),typeof o==\"object\"&&!xt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=lr({...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)),me(t,s),typeof t.onStateCreated==\"function\"&&t.onStateCreated(t,s,t.context,r),s}return xt(o)?(o.__element=t,o):e?.state||{}};function My(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 UP(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?My(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?My(o,s):o??{}}let n=My(r.state,t);if(n&&typeof n==\"object\"&&!xt(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 Ny=(t,e)=>{if(!t)return M0;let r=zP(t,e);return!r||!r.state?M0:WP(r.state)},jy=()=>cl()!=null,VP=128;function zP(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<VP&&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 HP={get(t,e){return t[e]}},$0=new WeakMap,WP=t=>{let e=$0.get(t);return e||(e=new Proxy(t,HP),$0.set(t,e)),e},M0=new Proxy(Object.create(null),{get(){},has(){return!1}});var wu=\"3.14.792\";var F0=\"__SMBLS_ELEMENT_ID_ENGINE__\",N0=(t,e,r)=>{let n=e||wu,o=r||(typeof globalThis<\"u\"?globalThis:null);if(!o)return t;let s=o[F0];return s&&s.engine&&s.version===n?s.engine:(s||(o[F0]={version:n,engine:t}),t)};var W=(t,e)=>e.split(\" \").map(r=>t+\"-\"+r),Uy=\"top right bottom left\",Vy=Uy+\" block block-start block-end inline inline-start inline-end\",sn=\"start end\",Jn=\"width style color\",Su=t=>W(t,Vy),qP=(()=>{let t=W(\"border\",\"width style color image\");for(let e of Vy.split(\" \"))t.push(\"border-\"+e,...W(\"border-\"+e,Jn));return t})(),j0=t=>[...W(\"border-\"+t,Jn+\" start end\"),...W(\"border-\"+t+\"-start\",Jn),...W(\"border-\"+t+\"-end\",Jn)],vr={animation:W(\"animation\",\"name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end\"),background:W(\"background\",\"image position position-x position-y size repeat origin clip attachment color\"),border:qP};for(let t of[\"width\",\"style\",\"color\"])vr[\"border-\"+t]=Vy.split(\" \").map(e=>\"border-\"+e+\"-\"+t);for(let t of Uy.split(\" \"))vr[\"border-\"+t]=W(\"border-\"+t,Jn);vr[\"border-block\"]=j0(\"block\");vr[\"border-inline\"]=j0(\"inline\");Object.assign(vr,{\"border-image\":W(\"border-image\",\"source slice width outset repeat\"),\"border-radius\":\"top-left top-right bottom-right bottom-left start-start start-end end-start end-end\".split(\" \").map(t=>\"border-\"+t+\"-radius\"),columns:W(\"column\",\"width count\"),\"column-rule\":W(\"column-rule\",Jn),container:W(\"container\",\"name type\"),\"contain-intrinsic-size\":W(\"contain-intrinsic\",\"width height\"),flex:W(\"flex\",\"grow shrink basis\"),\"flex-flow\":W(\"flex\",\"direction wrap\"),font:[...W(\"font\",\"style variant weight stretch size\"),\"line-height\",...W(\"font\",\"family size-adjust kerning feature-settings variation-settings optical-sizing\")],gap:[\"row-gap\",\"column-gap\"],grid:W(\"grid\",\"template template-rows template-columns template-areas auto-rows auto-columns auto-flow\"),\"grid-template\":W(\"grid-template\",\"rows columns areas\"),\"grid-area\":W(\"grid\",\"row column row-start row-end column-start column-end\"),\"grid-row\":W(\"grid-row\",sn),\"grid-column\":W(\"grid-column\",sn),inset:[...Uy.split(\" \"),...W(\"inset\",\"block block-start block-end inline inline-start inline-end\")],\"inset-block\":W(\"inset-block\",sn),\"inset-inline\":W(\"inset-inline\",sn),\"list-style\":W(\"list-style\",\"type position image\"),margin:Su(\"margin\"),\"margin-block\":W(\"margin-block\",sn),\"margin-inline\":W(\"margin-inline\",sn),mask:W(\"mask\",\"image mode repeat position clip origin size composite\"),offset:W(\"offset\",\"position path distance rotate anchor\"),outline:W(\"outline\",Jn),overflow:W(\"overflow\",\"x y\"),\"overscroll-behavior\":W(\"overscroll-behavior\",\"x y\"),padding:Su(\"padding\"),\"padding-block\":W(\"padding-block\",sn),\"padding-inline\":W(\"padding-inline\",sn)});for(let t of[\"content\",\"items\",\"self\"])vr[\"place-\"+t]=[\"align-\"+t,\"justify-\"+t];Object.assign(vr,{\"scroll-margin\":Su(\"scroll-margin\"),\"scroll-padding\":Su(\"scroll-padding\"),\"text-decoration\":W(\"text-decoration\",\"line style color thickness\"),\"text-emphasis\":W(\"text-emphasis\",\"style color\"),transition:W(\"transition\",\"property duration timing-function delay behavior\")});var lc={};for(let t in vr)for(let e of vr[t])(lc[e]||(lc[e]=[])).push(t);var KP=new Set([\"rows\",\"cols\",\"wrap\"]),ku=(t,e)=>KP.has(e)&&Oe(t,e),xs=(t,e)=>!!(_t[e]||Et&&Et.has(e))&&!ku(t,e);var J0=N0({uniqId:1,scopedStyleId:0},wu),uc=[],Qn=new Set,Jy=!1,Q0=0,ws=null,hc=null;function Ss(){return typeof Date<\"u\"&&typeof Date.now==\"function\"?Date.now():0}function tk(){return typeof document<\"u\"&&document.visibilityState===\"hidden\"}var GP=250,YP=1e3;function XP(){return hc&&(hc!==(typeof requestAnimationFrame==\"function\"?requestAnimationFrame:null)||tk())?!0:Ss()-Q0>=YP}function ZP(){if(Jy=!0,Q0=Ss(),hc=null,typeof requestAnimationFrame!=\"function\"){let t=typeof clearTimeout==\"function\"?clearTimeout:null,e=setTimeout(pc,0);ws=t?()=>t(e):null;return}if(tk()){let t=typeof clearTimeout==\"function\"?clearTimeout:null,e=setTimeout(pc,GP);ws=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame==\"function\"?cancelAnimationFrame:null;hc=requestAnimationFrame;let e=requestAnimationFrame(pc);ws=t?()=>t(e):null}}function Du(){if(Jy){if(!XP())return;let t=ws;if(ws=null,t)try{t()}catch{}}ZP()}var ek=300,rk=15e4;function pc(){if(Jy=!1,ws=null,hc=null,Qn.size&&C2(),!uc.length)return;let t=uc.splice(0,uc.length);for(let e=0;e<t.length;e++){let r=t[e];if(r.node){if(!r.node.isConnected){let n=r.__ref||(r.__ref={});n.__mountAttempts=(n.__mountAttempts||0)+1,n.__mountFirstAttemptAt==null&&(n.__mountFirstAttemptAt=Ss());let o=Ss()-n.__mountFirstAttemptAt;n.__mountAttempts<=ek&&o<rk?(uc.push(r),Du()):console.warn(\"[DOMQL] onMounted dropped after\",n.__mountAttempts,\"attempts /\",o,\"ms \\u2014 node never connected:\",r.key||r.tag||r);continue}oe(\"Mounted\",r,r.__ref?.__mountOptions||{})}}}function qy(t,e){let r=t.__ref?.__autoGrow;r&&r.active&&nb(t,!0),typeof t.onMounted==\"function\"&&(t.__ref.__mountOptions=e,uc.push(t),Du())}function B0(t,e){if(typeof t.onContentUpdate!=\"function\")return;t.context?.plugins?.length&&Rt(\"contentUpdate\",t,e);let r=t.context?.designSystem;r&&ot(r);try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onContentUpdate\",error:n})||console.error('[DOMQL] Lifecycle \"onContentUpdate\" error:',n),t.context?.strictMode)throw n}finally{r&&rt()}}function Cr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function JP(t){return t.charAt(2).toLowerCase()+t.slice(3)}function QP(t){return t.toLowerCase()}function Ky(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function dc(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]=dc(o,s):r[n]=s}return r}function Tu(t){if(typeof t==\"string\")return t||void 0;if(typeof t==\"number\"||typeof t==\"bigint\")return String(t)}function nk(t,e,r){return Tu(t)||(e&&typeof e==\"object\"?Tu(e.key):void 0)||String(r)}function he(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t==\"string\"||typeof t==\"number\")&&(t={text:t}),r=Tu(r);let s=Tu(t.key),i=Object.create(null);i.key=r||s||`_${J0.uniqId++}`,i.parent=e||null,i.context=t.context||e?.context||n.context||{},i.context.__create||(i.context.__create=he);let a=i.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||i,path:e?.__ref?.path?[...e.__ref.path,i.key]:[i.key],origin:t};if(r&&!t.extends&&!t.extend){let m=r.indexOf(\"_\"),b=r.indexOf(\".\"),_=m>0?m:-1;if(b>0&&(_<0||b<_)&&(_=b),_>0){let y=r.substring(0,_),x=i.context?.components;x&&(x[y]||x[\"smbls.\"+y])?t={...t,extends:y}:x&&pt()&&(/^[A-Z]\\w*_\\d+$/.test(r)||/^[A-Z]\\w*\\.\\w+$/.test(r))&&console.warn(`[smbls] auto-extend: key \"${r}\" looks like an instance of \"${y}\" but neither \"${y}\" nor \"smbls.${y}\" is registered in context.components \\u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}hs(i,t,n);let c=new Set([\"childProps\",\"attr\",\"style\",\"scope\",\"data\"]),l=i.props&&typeof i.props==\"object\"?i.props:null;for(let m in t){if(m===\"parent\"||m===\"node\"||m===\"__ref\"||m===\"extends\"||m===\"context\"||m===\"props\")continue;if(m===\"key\"){s&&(i.key=s);continue}let b=t[m],_=i[m],y=_&&b&&typeof _==\"object\"&&typeof b==\"object\"&&!Array.isArray(_)&&!Array.isArray(b)&&typeof _!=\"function\"&&typeof b!=\"function\";y&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?i[m]=dc(_,b):y&&c.has(m)?i[m]={..._,...b}:y&&Ky(m)?i[m]=dc(_,b):i[m]=b}function f(m){for(let b in m){let _=m[b],y=i[b],x=y&&_&&typeof y==\"object\"&&typeof _==\"object\"&&!Array.isArray(y)&&!Array.isArray(_)&&typeof y!=\"function\"&&typeof _!=\"function\";x&&b.charCodeAt(0)>=65&&b.charCodeAt(0)<=90?i[b]=dc(y,_):x&&c.has(b)?i[b]={...y,..._}:x&&Ky(b)?i[b]=dc(y,_):i[b]=_}}l&&f(l),t.props&&typeof t.props==\"object\"&&f(t.props),t.classlist!==void 0&&(i.classlist=t.classlist),t.text!==void 0&&(i.text=t.text),t.html!==void 0&&(i.html=t.html);let u=i.scope&&typeof i.scope==\"object\"?i.scope:null,d=e?.scope,h=i.context&&typeof i.context.globalScope==\"object\"&&i.context.globalScope||null,p=d||h||null;if(t.scope!==void 0||u){let m={};u&&Object.assign(m,u),t.scope!==void 0&&Object.assign(m,t.scope),i.scope=ll(m,p)}else p&&(i.scope=p);if(t.if!==void 0&&(i.if=t.if),bs(i),t2(i,e,t),i.if!=null){let m;if(typeof i.if==\"function\")try{m=i.if(i,i.state,i.context)}catch(b){if(m=!1,a.__ifError=b,typeof console<\"u\"&&console.warn){let _=i.key||i.tag||\"?\";console.warn(`[smbls] \\`if:\\` evaluator threw on ${_} \\u2014 treating as false:`,b?.message||b)}}else m=i.if;a.__if=!!m}if(a.__if)typeof i.if==\"function\"&&(a.__ifInitialized=!0);else return e&&(e[i.key]=i),typeof i.if==\"function\"&&ik(i,a,i.if),i;i.tag||(i.tag=Qr(i)),oe(\"Init\",i,n);let g=i.node=tn(i);if(!g)return i;if(i.tag===\"fragment\"){let b=(i.context?.document||globalThis.document).createComment(\"\");g.appendChild(b),a.__fragmentAnchor=b}oe(\"AttachNode\",i,n),g.setAttribute&&i.key&&g.setAttribute(\"data-key\",i.key),e&&(e[i.key]=i,e.__ref?.__children&&(e.__ref.__children.includes(i.key)||e.__ref.__children.push(i.key))),g.setAttribute&&i.context?.scopeSelector&&i.context.scopeSelector!==\":root\"&&i.context.key&&i.key===i.context.key&&g.setAttribute(\"data-smbls-app\",i.context.key),i.id&&g.setAttribute&&(g.id=i.id),mk(i,n),sk(i),Gy(i),pk(i),hk(i);try{yk(i,n)}catch(m){if(typeof console<\"u\"&&console.error){let b=i.__ref?.path?.join(\".\")||i.key||\"<root>\";console.error(`[smbls] createChildren failed at ${b}:`,m?.message||m,m?.stack?`\n`+m.stack.split(`\n`).slice(0,6).join(`\n`):\"\")}}if(Pu(i,!0),bk(i,e,o),typeof i.html==\"function\"&&i.node&&!i.node.innerHTML){let m=i.context?.designSystem;m&&ot(m);try{let b=i.html(i,i.state,i.context);b!=null&&typeof b!=\"function\"&&(i.node.innerHTML=b)}catch{}finally{m&&rt()}}if(oe(\"Create\",i,n),oe(\"Complete\",i,n),oe(\"Render\",i,n),oe(\"RenderRouter\",i,n),qy(i,n),typeof i.onFrame==\"function\"){let m=i.onFrame,b=i.context?.designSystem,_=()=>{if(i.node){if(i.node.isConnected){b&&ot(b);try{m(i,i.state,i.context)}catch(y){console.error(\"[DOMQL] onFrame error:\",y)}finally{b&&rt()}}requestAnimationFrame(_)}};requestAnimationFrame(_)}return i}function t2(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&&!xt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,me(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=t.context,u=a.lang||l.defaultLang||\"en\",d=new Set,h=(m,b)=>{d.has(m)||hr(f,m,c)&&(c[m]=b,d.add(m),Je(f,m))},p=l.translations[u];if(p&&typeof p==\"object\")for(let m in p)h(m,p[m]);let g=new Set(l.languages||[]);for(let m in l.translations)g.has(m)||h(m,l.translations[m])}t.state=xt(c)?c:lr(c),t.state.__element=t,t.state.root=t.state,me(t,t.state),Io?.(a,t.state)}else t.state={},Object.defineProperty(t.state,\"root\",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),me(t,t.state);return}if(typeof i==\"string\"){if(t.state=ok(i,e),t.state&&typeof t.state==\"object\"&&!xt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,\"root\",{value:a,enumerable:!1,configurable:!0,writable:!0})}me(t,t.state);return}if(typeof i==\"function\"){let a=i(t,e?.state);t.state=xt(a)?a:lr(a||{})}else xt(i)?t.state=i:t.state=lr({...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,me(t,t.state),Io?.(i,t.state)}function zy(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 ok(t,e){if(!e)return{};if(t===\".\")return e.state||{};if(t.startsWith(\"../\")){let o=t.slice(3);return o?zy(e.state,o):e.state??{}}if(t.startsWith(\"~/\")){let o=e.state?.root||e.state,s=t.slice(2);return s?zy(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=zy(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{}}var e2=new Set([\"s\",\"state\",\"ctx\",\"context\"]);function r2(t){try{let r=(typeof Ie==\"function\"?Ie(t):Function.prototype.toString.call(t)).match(/^[^(]*\\(([^)]*)\\)/);return r?r[1].split(\",\").map(n=>n.trim().split(\"=\")[0].trim()).filter(Boolean):[]}catch{return[]}}function n2(t){if(typeof t!=\"function\"||t.length!==2)return!1;let e=r2(t);if(e.length<2)return!1;let r=e[1].replace(/[{}[\\]]/g,\"\").trim();return r.length>0&&!e2.has(r)}function o2(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\"||Bt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Cr(a)||_t[a]||Et&&Et.has(a)||Oe(r,a)||(pt()&&n2(t[a])&&console.warn(`[smbls] custom prop \"${a}\"${t.key?` on key \"${t.key}\"`:\"\"} is a function \\u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \\u2026) instead of reading el.${a}(\\u2026) directly (see RULES.md Rule 8).`),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&&rt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function s2(t,e){if(!(!Array.isArray(e)||e.length===0))for(let r=0;r<e.length;r++){let n=e[r];try{typeof n==\"function\"?n(t,t.state,t.context):typeof n==\"string\"&&t.state?.[n]}catch{}}}function Ut(t,e,r){return!Array.isArray(e)||e.length===0?r:function(...n){return s2(t,e),r.apply(this,n)}}function fc(t,e){if(!(!t||Array.isArray(t)||typeof t!=\"object\"))return t[e]}function ut(t,e){return()=>t.path.join(\".\")+\"::\"+e}var U0=new Set;function ye(t,e,r){if(!pt())return;let n=ut(t,e)();U0.has(n)||(U0.add(n),console.warn(`[smbls] \"${e}\" effect threw on ${t.path.join(\".\")} \\u2014 keeping previous value:`,r?.message||r))}var V0=/(['\"`])((?:\\\\.|(?!\\1)[^\\\\])*)\\1/g,i2=(t,e)=>{let r;try{r=String(t)}catch{return}if(!r.includes(\"{{\"))return;V0.lastIndex=0;let n;for(;(n=V0.exec(r))!==null;)n[2].includes(\"{{\")&&e.add(n[2])},a2=(t,e)=>!Cr(t)&&!xs(e,t),z0=(t,e,r,n)=>{if(typeof e==\"string\"){e.includes(\"{{\")&&r.add(e);return}typeof e==\"function\"&&a2(t,n)&&i2(e,r)},c2=[\"attr\",\"aria\",\"data\"],l2=t=>{if(c2.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},f2=t=>{let e=new Set,r=t.tag||\"div\";for(let n of Object.keys(t)){let o=Object.getOwnPropertyDescriptor(t,n),s=o&&o.value;if(s&&typeof s==\"object\"&&!Array.isArray(s)){if(!l2(n))continue;for(let i in s)z0(i,s[i],e,r);continue}z0(n,s,e,r)}return e};function sk(t,e){let r=t.__ref,n=!!(e&&e.skipIfEffect),o=f2(t);if(r.__authoredTemplates)for(let c of o)r.__authoredTemplates.add(c);else r.__authoredTemplates=o;if(o2(t),typeof t.text==\"function\"){let c=t.text,l=Ut(t,t.textDeps,c),f=G(()=>{if(!r.contentManaged)try{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!=\"function\"&&typeof u!=\"object\"&&(typeof u==\"string\"&&u.includes(\"{{\")&&(u=$t.call(t,u,t.state)),ms(t,u))}catch(u){ye(r,\"text\",u)}},{depth:r.path.length,label:ut(r,\"text\")});r.__effects.push(f),r.__exec.text=c}else if(typeof t.text==\"string\"&&t.text.includes(\"{{\")){let c=t.text,l=G(()=>{if(r.contentManaged)return;let f=$t.call(t,c,t.state);f!=null&&(t.text=f),t.node&&ms(t,f??\"\")},{depth:r.path.length,label:ut(r,\"text\")});r.__effects.push(l),r.__exec.text=c}let s=t.tag||\"div\";for(let c of Object.keys(t))if(typeof t[c]==\"function\"&&!Bt.has(c)&&!Cr(c)&&!r.__exec[c]&&!ku(s,c)){if(_t[c]){let l=t[c],f=Ut(t,t[c+\"Deps\"],l),u=c,d,h=null,p=null,g,m=G(()=>{let b=t.context?.designSystem;b&&ot(b);try{let _=f(t,t.state,t.context);uu();let y;try{y=_t[u](_,t,t.state,t.context)}finally{du()}if(Array.isArray(y)){let S={};for(let v of y)if(v)for(let E in v)S[E]=v[E];y=S}let x=u===\"show\"||u===\"hide\";if(y&&t.node&&u2(y)){let S=Eu(y);if(S===null||S!==g){g=S;let v=pe(y,null,t.context?.cssPrefix),E=v?v.split(\" \").filter(Boolean):null;if(t.node.classList){if(p)for(let D of p)t.node.classList.remove(D);if(E&&E.length)for(let D of E)t.node.classList.add(D);p=E}}d=void 0,h=null}else if(y&&t.node){if(p){for(let v of p)t.node.classList.remove(v);p=null,g=void 0}let S=Eu(y);if(S===null||S!==d||!Cu(t.node,h)){d=S;let v=q0(t,y);h=vu(t.node,v)}}else t.node&&x&&(d=void 0,h=null,t.node.style.display=\"\")}finally{b&&rt()}},{depth:r.path.length,label:ut(r,u)});r.__effects.push(m),r.__exec[c]=l}else if(Et&&Et.has(c)){let l=t[c],f=Ut(t,t[c+\"Deps\"],l),u=c,d,h=null,p=G(()=>{let g=t.context?.designSystem;g&&ot(g);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let b=u+\":\"+String(m);if(b!==d||!Cu(t.node,h)){d=b;let _={[u]:m},y=q0(t,_);h=vu(t.node,y)}}else d=void 0,h=null,t.node.style[u]=\"\"}finally{g&&rt()}},{depth:r.path.length,label:ut(r,u)});r.__effects.push(p),r.__exec[c]=l}}if(typeof t.html==\"function\"){let c=t.html,l=Ut(t,t.htmlDeps,c),f=G(()=>{let u=t.context?.designSystem;u&&ot(u);try{let d=l(t,t.state,t.context);t.node&&d!=null&&typeof d!=\"function\"&&(t.node.innerHTML=d)}finally{u&&rt()}},{depth:r.path.length,label:ut(r,\"html\")});r.__effects.push(f),r.__exec.html=c}if(typeof t.value==\"function\"){let c=t.value,l=Ut(t,t.valueDeps,c),f=G(()=>{try{let u=l(t,t.state,t.context);typeof u==\"string\"&&u.includes(\"{{\")&&(u=$t.call(t,u,t.state)),W0(t,u)}catch(u){ye(r,\"value\",u)}},{depth:r.path.length,label:ut(r,\"value\")});r.__effects.push(f),r.__exec.value=c}else if(typeof t.value==\"string\"&&t.value.includes(\"{{\")){let c=t.value,l=G(()=>{try{W0(t,$t.call(t,c,t.state))}catch(f){ye(r,\"value\",f)}},{depth:r.path.length,label:ut(r,\"value\")});r.__effects.push(l),r.__exec.value=c}if(typeof t.style==\"function\"){let c=t.style,l=Ut(t,t.styleDeps,c),f,u=null,d=G(()=>{let h=l(t,t.state,t.context),p=Eu(h);(p===null||p!==f||!Cu(t.node,u))&&(f=p,d2(t.node,u,h),to(t.node,h),u=vu(t.node,h))},{depth:r.path.length,label:ut(r,\"style\")});r.__effects.push(d),r.__exec.style=c}else if(t.style&&typeof t.style==\"object\")for(let c in t.style){let l=t.style[c];if(typeof l!=\"function\")continue;let f=Ut(t,fc(t.styleDeps,c),l),u,d=null,h=G(()=>{try{let p=f(t,t.state,t.context);if(t.node){let g=c+\":\"+String(p);if(g!==u||!Cu(t.node,d)){u=g;let m={[c]:p};to(t.node,m),d=vu(t.node,m)}}}catch(p){ye(r,\"style.\"+c,p)}},{depth:r.path.length,label:ut(r,\"style.\"+c)});r.__effects.push(h)}if(t.attr&&typeof t.attr==\"object\"){for(let c in t.attr)if(typeof t.attr[c]==\"function\"){let l=Ut(t,fc(t.attrDeps,c),t.attr[c]),f=c,u=G(()=>{try{let d=l(t,t.state,t.context);typeof d==\"string\"&&d.includes(\"{{\")&&(d=$t.call(t,d,t.state)),t.node?.setAttribute&&(d==null||d===!1&&!ir(f)?t.node.removeAttribute(f):typeof d!=\"function\"&&typeof d!=\"object\"&&t.node.setAttribute(f,ee(f,d)))}catch(d){ye(r,\"attr.\"+f,d)}},{depth:r.path.length,label:ut(r,\"attr.\"+f)});u._attrName=f.toLowerCase(),r.__effects.push(u)}else if(typeof t.attr[c]==\"string\"&&t.attr[c].includes(\"{{\")){let l=t.attr[c],f=c,u=G(()=>{try{let d=$t.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,ee(f,d??\"\"))}catch(d){ye(r,\"attr.\"+f,d)}},{depth:r.path.length,label:ut(r,\"attr.\"+f)});u._attrName=f.toLowerCase(),r.__effects.push(u)}}if(t.aria&&typeof t.aria==\"object\")for(let c in t.aria){let l=t.aria[c];if(typeof l==\"string\"&&l.includes(\"{{\")){let h=l,p=\"aria-\"+c.replace(/[A-Z]/g,m=>\"-\"+m.toLowerCase()),g=G(()=>{try{let m=$t.call(t,h,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(p,ee(p,m??\"\"))}catch(m){ye(r,\"aria.\"+c,m)}},{depth:r.path.length,label:ut(r,\"aria.\"+c)});g._attrName=p,r.__effects.push(g);continue}if(typeof l!=\"function\")continue;let f=Ut(t,fc(t.ariaDeps,c),t.aria[c]),u=\"aria-\"+c.replace(/[A-Z]/g,h=>\"-\"+h.toLowerCase()),d=G(()=>{try{let h=f(t,t.state,t.context);if(!t.node?.setAttribute)return;h==null?t.node.removeAttribute(u):typeof h!=\"function\"&&typeof h!=\"object\"&&t.node.setAttribute(u,ee(u,h))}catch(h){ye(r,\"aria.\"+c,h)}},{depth:r.path.length,label:ut(r,\"aria.\"+c)});d._attrName=u,r.__effects.push(d)}if(t.data&&typeof t.data==\"object\")for(let c in t.data){let l=t.data[c];if(typeof l==\"string\"&&l.includes(\"{{\")){let p=l,g=\"data-\"+c.replace(/[A-Z]/g,b=>\"-\"+b.toLowerCase()),m=G(()=>{try{let b=$t.call(t,p,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(g,b??\"\")}catch(b){ye(r,\"data.\"+c,b)}},{depth:r.path.length,label:ut(r,\"data.\"+c)});m._attrName=g,r.__effects.push(m);continue}if(typeof l!=\"function\")continue;let f=Ut(t,fc(t.dataDeps,c),t.data[c]),d=\"data-\"+c.replace(/[A-Z]/g,p=>\"-\"+p.toLowerCase()),h=G(()=>{try{let p=f(t,t.state,t.context);if(!t.node?.setAttribute)return;p==null||p===!1?t.node.removeAttribute(d):typeof p!=\"function\"&&typeof p!=\"object\"&&t.node.setAttribute(d,p===!0?\"\":p)}catch(p){ye(r,\"data.\"+c,p)}},{depth:r.path.length,label:ut(r,\"data.\"+c)});h._attrName=d,r.__effects.push(h)}let i=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(i)for(let c in i){if(typeof i[c]!=\"function\")continue;let l=Ut(t,fc(t.classDeps,c),i[c]),f=G(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u==\"string\"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){ye(r,\"class.\"+c,u)}},{depth:r.path.length,label:ut(r,\"class.\"+c)});r.__effects.push(f)}!n&&typeof t.if==\"function\"&&ik(t,r,t.if);for(let c of Object.keys(t)){if(Bt.has(c)||typeof t[c]!=\"function\")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||Cr(c))continue;let f=t[c];r.__exec[c]=f;let u=t.tag||\"div\";if(Oe(u,c)&&!xs(u,c)){let d=sr(c)||c,h=Ut(t,t[c+\"Deps\"],f),p=G(()=>{try{let g=h(t,t.state,t.context);typeof g==\"string\"&&g.includes(\"{{\")&&(g=$t.call(t,g,t.state)),t.node?.setAttribute&&(g==null||g===!1&&!ir(d)?t.node.removeAttribute(d):typeof g!=\"function\"&&typeof g!=\"object\"&&(d===\"src\"&&\"src\"in t.node?t.node.src=g:t.node.setAttribute(d,ee(d,g))))}catch(g){ye(r,c,g)}},{depth:r.path.length,label:ut(r,c)});p._attrName=d.toLowerCase(),r.__effects.push(p)}}let a=t.tag||\"div\";for(let c of Object.keys(t)){if(Bt.has(c))continue;let l=t[c];if(typeof l!=\"string\"||!l.includes(\"{{\"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Cr(c)||xs(a,c)||Zn[c]||!Oe(a,c))continue;let u=sr(c)||c,d=G(()=>{try{let h=$t.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,ee(u,h??\"\"))}catch(h){ye(r,c,h)}},{depth:r.path.length,label:ut(r,c)});d._attrName=u.toLowerCase(),r.__effects.push(d)}if(b2(t),S2(t),typeof t.onStateUpdate==\"function\"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=G(()=>{let h=[];for(let b=0;b<l.length;b++){let _=l[b];try{h[b]=typeof _==\"function\"?_(t,t.state,t.context):t.state?.[_]}catch{h[b]=void 0}}if(!f){f=!0,u=h;return}let p=h.length!==u.length;for(let b=0;!p&&b<h.length;b++)h[b]!==u[b]&&(p=!0);let g=u;if(u=h,!p)return;let m=t.context?.designSystem;m&&ot(m);try{c(t,t.state,t.context,{prev:g,next:h})}catch(b){if(t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onStateUpdate\",error:b})||console.error('[DOMQL] Lifecycle \"onStateUpdate\" error:',b),t.context?.strictMode)throw b}finally{m&&rt()}},{depth:r.path.length,label:ut(r,\"onStateUpdate\")});r.__effects.push(d)}w2(t)}function H0(t){let e=t.parent,r=e?.node;if(!r||!t.node){bk(t,t.parent);return}let n=null,o=Object.keys(e),s=o.indexOf(t.key);for(let i=s+1;i<o.length;i++){let a=e[o[i]];if(a?.node?.parentNode===r){n=a.node;break}}n?r.insertBefore(t.node,n):r.appendChild(t.node)}function ik(t,e,r){let n=Ut(t,t.ifDeps,r),o=G(()=>{let s;try{s=n(t,t.state,t.context)}catch(a){if(s=!1,e.__ifError=a,typeof console<\"u\"&&console.warn){let c=t.key||t.tag||\"?\";console.warn(`[smbls] \\`if:\\` reactive effect threw on ${c} \\u2014 treating as false:`,a?.message||a)}return}let i=e.__if;if(e.__if=!!s,i&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove==\"function\"&&t.onRemove(t)}catch(a){console.error(\"[smbls] onRemove error:\",a)}}else if(!i&&e.__if)if(e.__ifInitialized)t.node||(t.node=tn(t)),t.node&&(t.node.ref=t),H0(t),Gy(t),oe(\"Render\",t,{}),qy(t,{});else{if(e.__ifInitialized=!0,t.tag||(t.tag=Qr(t)),oe(\"Init\",t,{}),t.node||(t.node=tn(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.tag===\"fragment\"&&!e.__fragmentAnchor){let c=(t.context?.document||globalThis.document).createComment(\"\");t.node.appendChild(c),e.__fragmentAnchor=c}oe(\"AttachNode\",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute(\"data-key\",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),mk(t,{}),sk(t,{skipIfEffect:!0}),Gy(t),pk(t),hk(t),yk(t,{}),H0(t),oe(\"Create\",t,{}),oe(\"Complete\",t,{}),oe(\"Render\",t,{}),oe(\"RenderRouter\",t,{}),qy(t,{})}},{depth:e.path.length,label:ut(e,\"if\")});e.__effects.push(o)}function ms(t,e){let r=t.node;if(!r)return;let n=e==null||typeof e==\"object\"?\"\":String(e);if(t.tag===\"string\"){r.nodeValue!==n&&(r.nodeValue=n);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==r&&(s=null),!s){let i=r.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==n&&(s.nodeValue=n):r.firstChild?(s=(r.ownerDocument||t.context?.document||globalThis.document).createTextNode(n),r.insertBefore(s,r.firstChild)):(r.textContent=n,s=r.firstChild&&r.firstChild.nodeType===3?r.firstChild:null),o&&(o.__textNode=s||null)}function W0(t,e){let r=t.node;if(!r||!(\"value\"in r))return;let n=e==null?\"\":String(e);if(r.value===n)return;let o=typeof document<\"u\"&&document.activeElement===r,s=o&&typeof r.selectionStart==\"number\"?r.selectionStart:null,i=o&&typeof r.selectionEnd==\"number\"?r.selectionEnd:null;if(r.value=n,o&&s!=null&&i!=null)try{r.setSelectionRange(s,i)}catch{}}function Gy(t){let{node:e}=t;if(e){if((typeof t.text==\"string\"&&!t.text.includes(\"{{\")||typeof t.text==\"number\")&&ms(t,t.text),dk(t),typeof t.html==\"string\"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!=\"function\"&&!(typeof t.value==\"string\"&&t.value.includes(\"{{\"))&&\"value\"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style==\"object\"){let r=t.style;for(let n in t.style)if(typeof t.style[n]==\"function\"){r={};for(let o in t.style)typeof t.style[o]!=\"function\"&&(r[o]=t.style[o]);break}to(e,r)}if(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&&(typeof n==\"string\"&&n.includes(\"{{\")||n===!1&&!ir(r)||e.setAttribute&&e.setAttribute(r,ee(r,n)))}if(typeof t.themeModifier==\"string\"&&t.themeModifier&&e.setAttribute&&e.setAttribute(\"data-theme\",t.themeModifier),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||typeof n==\"string\"&&n.includes(\"{{\")||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 Eu(t){if(t==null||typeof t!=\"object\")return\"s:\"+String(t);try{return\"o:\"+JSON.stringify(t)}catch{return null}}function u2(t){if(!t||typeof t!=\"object\")return!1;for(let e in t){let r=t[e];if(r&&typeof r==\"object\"&&!Array.isArray(r))return!0}return!1}function vu(t,e){if(!t||!t.style||!e)return null;let r=t.style,n=[];for(let o in e){if(e[o]==null||o.charAt(0)===\"&\")continue;let i=Iu(o);n.push(i,Qy(r,i),ak(r,i))}return n}function Qy(t,e){return typeof t.getPropertyValue==\"function\"?t.getPropertyValue(e):\"\"}function ak(t,e){return typeof t.getPropertyPriority==\"function\"?t.getPropertyPriority(e):\"\"}function Iu(t){return Ou(t)?t:t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function d2(t,e,r){if(!t||!t.style||!e||!e.length)return;let n=t.style,o=new Set;if(r&&typeof r==\"object\")for(let s in r)r[s]==null||s.charAt(0)===\"&\"||o.add(Iu(s));for(let s=0;s<e.length;s+=3){let i=e[s];o.has(i)||Qy(n,i)===e[s+1]&&typeof n.removeProperty==\"function\"&&n.removeProperty(i)}}function Cu(t,e){if(!e||!t||!t.style)return!1;let r=t.style;for(let n=0;n<e.length;n+=3)if(Qy(r,e[n])!==e[n+1]||ak(r,e[n])!==e[n+2])return!1;return!0}var Ou=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45;function p2(t){let e=null;for(let r in t)t[r]!=null&&r.charAt(0)!==\"&\"&&(e||(e=new Set),e.add(Iu(r)));return e}function h2(t,e,r,n){let o=t.__ref;if(!o)return;let s=null;if(r)for(let i of r){if(n&&n.has(i))continue;let a=e[i];if(a==null||typeof a==\"object\")continue;let c=Iu(i);lc[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function ck(t,e){let r=t.__ref,n=r&&r.__declaredLonghands;if(!n||!e)return null;let o=null;for(let s in n){if(e.has(s))continue;let i=lc[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=n[s])}return o}function q0(t,e){let r=t.node;to(r,e);let n=p2(e);if(!n)return e;let o=t.__ref;if(o)if(o.__inlineCssKeys)for(let i of n)o.__inlineCssKeys.add(i);else o.__inlineCssKeys=new Set(n);let s=ck(t,n);return s?(to(r,s),Object.assign({},e,s)):e}function g2(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let r=ck(t,e.__inlineCssKeys);r&&to(t.node,r)}function to(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=Ou(n)?n: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&&m2(t,r)}function m2(t,e){let r=`_ds${J0.scopedStyleId++}`;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 d in l){let h=l[d];if(typeof h==\"object\"){let p=d.includes(\"&\")?c.split(\", \").map(m=>d.replace(/&/g,m)).join(\", \"):c.split(\", \").map(m=>`${m} ${d}`).join(\", \"),g=\"\";for(let m in h)g+=`${m.replace(/[A-Z]/g,b=>\"-\"+b.toLowerCase())}: ${h[m]};`;u+=Sr(`${p} { ${g} }`,p)+`\n`}else f+=`${d.replace(/[A-Z]/g,p=>\"-\"+p.toLowerCase())}: ${h};`}f&&(s+=Sr(`${c} { ${f} }`,c)+`\n`),u&&(s+=u)}}s&&(o.textContent+=s)}var K0=new Set;function G0(t){if(!Array.isArray(t))return\"\";let e=[];for(let r=0;r<t.length;r++)typeof t[r]==\"string\"&&t[r].length&&e.push(t[r]);return e.sort(),e.join(\"|\")}function y2(t,e,r){let n=G0(r);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(G0(o)===n)return;let s=t.__ref.path?t.__ref.path.join(\".\"):t.key||\"?\";K0.has(s)||(K0.add(s),console.warn(`[smbls] subscribeTo function at \"${s}\" resolved to a DIFFERENT key list one microtask after create \\u2014 wired [${r.join(\", \")||\"(none)\"}], probed [${Array.isArray(o)?o.join(\", \"):String(o)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element create.js) \\u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \\u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function b2(t){let e=t.subscribeTo,r=typeof e==\"function\",n=e;if(r)try{n=e(t,t.state,t.context)}catch{n=null}if(r&&pt()&&y2(t,e,Array.isArray(n)?n:[]),!Array.isArray(n)||n.length===0)return;let o=t.__ref;for(let s=0;s<n.length;s++){let i=n[s];if(typeof i!=\"string\"||i.length===0)continue;let a=i.split(\".\"),c=a[0],l=a.slice(1),f={value:!1},u=G(()=>{let d=t.state&&(xt(t.state)?t.state.root:null);if(!d||!xt(d))return;let h=d;h=h[c];for(let g=0;g<l.length&&!(h==null||typeof h!=\"object\");g++)if(xt(h))h=h[l[g]];else break;if(!f.value)return;let p=!1;if(typeof t.onBeforeUpdate==\"function\"){let g=t.context?.designSystem;g&&ot(g);try{if(my(o)){let m=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});m&&typeof m.then==\"function\"?m.then(()=>kr(o,!1),b=>{kr(o,!0),t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onBeforeUpdate\",error:b})||console.error(\"[DOMQL] subscribeTo onBeforeUpdate error:\",b)}):(kr(o,!1),m===!1&&(p=!0))}}catch(m){kr(o,!0),t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onBeforeUpdate\",error:m})||console.error(\"[DOMQL] subscribeTo onBeforeUpdate error:\",m)}finally{g&&rt()}}if(!p&&t.node&&o.__effects)for(let g=0;g<o.__effects.length;g++){let m=o.__effects[g];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute==\"function\"&&m._execute()}if(!p&&typeof t.onUpdate==\"function\"){let g=t.context?.designSystem;g&&ot(g);try{t.onUpdate(t,t.state,t.context)}catch(m){t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onUpdate\",error:m})||console.error(\"[DOMQL] subscribeTo onUpdate error:\",m)}finally{g&&rt()}}},{depth:o.path.length,label:ut(o,\"subscribeTo(\"+i+\")\")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function tb(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith(\"@media\")&&!t.startsWith(\"@keyframes\")&&!t.startsWith(\"@supports\")&&!t.startsWith(\"@container\")&&(t===\"@dark\"||t===\"@light\"||!e.context?.designSystem?.media?.[t.slice(1)])}function eb(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\\b/.test(t))return t;let r=e.context?.designSystem?.media?.[t.slice(1)];return r?/^@(media|supports|container)\\b/.test(r)?r:`@media ${r}`:t}var Y0=new Set;function _2(t,e){let r=e?.__ref?.path?e.__ref.path.join(\".\"):e?.key||\"?\",n=r+\"::\"+t;Y0.has(n)||(Y0.add(n),console.warn(`[smbls/css] \"${t}\" at ${r} is a CHILD-COMPONENT key nested inside a pseudo/selector block (\":hover\", \"@dark\", etc.) \\u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}function ks(t,e,r,n){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(_t[a]){let u=_t[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let h of d)h&&Object.assign(o,h)}}else o[a]=c;if(l)for(let u in o)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c==\"function\"&&(c=c(e,e.state,e.context)),c==null||typeof c==\"function\")continue;if(typeof c==\"object\"&&!Array.isArray(c)){if(a===\"style\"){for(let h in c){let p=c[h];if(typeof p==\"function\"&&(p=p(e,e.state,e.context)),p==null||typeof p==\"function\")continue;let g=typeof e[h]==\"function\"&&(_t[h]||Et&&Et.has(h))||!!(n&&n.has(h));i(h,p,g)}continue}if(tb(a,e)){let h=ks(c,e,!1,n);Object.keys(h).length&&(o[`[data-theme=\"${a.slice(1)}\"] &`]=h);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){pt()&&_2(a,e);continue}let u=eb(a,e),d=ks(c,e,!1,n);Object.keys(d).length&&(o[u]=d);continue}let l=typeof e[a]==\"function\"&&(_t[a]||Et&&Et.has(a)),f=!!(n&&n.has(a));i(a,c,l||f)}if(r)for(let a in o)s.add(a);for(let a of s){let c=o[a];typeof c==\"string\"&&!c.includes(\"!important\")&&(o[a]=c+\" !important\")}return o}var Ru=t=>!!t&&typeof t==\"object\"&&!Array.isArray(t);function lk(t,e){for(let r in e){let n=e[r];t[r]=Ru(n)?lk(Ru(t[r])?t[r]:{},n):n}return t}function x2(t,e){if(!Ru(e))return;let r;for(let n of t.split(\" \")){let o=n?e[n]:null;Ru(o)&&(r=lk(r||{},o))}return r}function rb(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t==\"function\")return!0;if(t&&typeof t==\"object\"&&!Array.isArray(t)){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&rb(t[r],e+1))return!0}return!1}function fk(t,e,r){if(!e||typeof e!=\"object\"||Array.isArray(e))return null;if(tb(t,r)){let s=ks(e,r,!1);return Object.keys(s).length?{cssProp:`[data-theme=\"${t.slice(1)}\"] &`,block:s}:null}let n=eb(t,r),o=ks(e,r,!1);return Object.keys(o).length?{cssProp:n,block:o}:null}function w2(t){let e=t.__ref;for(let r of Object.keys(t)){if(!Ky(r))continue;let n=t[r];if(!n||typeof n!=\"object\"||Array.isArray(n)||!rb(n))continue;let o=null,s,i=G(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&ot(a);let c,l=!1;try{let f=fk(r,n,t),u=f?Eu(f.block)+\"::\"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=pe({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(\" \").filter(Boolean):null}else c=null}finally{a&&rt()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length,label:ut(e,\"cssBlock(\"+r+\")\")});e.__effects.push(i)}}function S2(t){let e=t.__ref;e.__conditionalRunners=[];let r=new Map;for(let n of Object.keys(t)){let o=n.charAt(0);if(o!==\".\"&&o!==\"!\")continue;let s=n.slice(1);if(!s)continue;if(/[:@\\s>~+[\\]]/.test(s)){if(typeof console<\"u\"&&console.warn){let p=s.split(/[:@\\s>~+[\\]]/)[0];console.warn(`[smbls] conditional \\`${n}\\` on ${t.key||\"?\"} will never match \\u2014 the whole string after \\`${o}\\` is read as one prop name. Nest the selector inside instead: \\`${o}${p}: { '${s.slice(p.length)}': {...} }\\`.`)}continue}let i=t[n];if(!i||typeof i!=\"object\")continue;let a=o===\"!\",c={lastMatch:!1,appliedKeys:null,appliedClasses:null},l=new Set;for(let p in i){if(!Object.prototype.hasOwnProperty.call(i,p))continue;let g=p.charAt(0),m=i[p];(g===\":\"||g===\"@\"||g===\"&\"||g===\"[\")&&m&&typeof m==\"object\"&&!Array.isArray(m)||l.add(p)}let f=()=>{let p,g=t[s];if(g===void 0){let _=!!t.state&&s in t.state,y=t.state?t.state[s]:void 0;if(_||y!==void 0)p=y;else{let x=t.context?.cases?.[s];if(x===void 0)return;try{p=typeof x==\"function\"?x.call(t,t):x}catch(S){p=!1,e.__conditionalError=S,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${n}\\` case fn threw on ${t.key||\"?\"} \\u2014 treating as false:`,S?.message||S)}}}else if(typeof g==\"function\")try{p=g(t,t.state,t.context)}catch(_){p=!1,e.__conditionalError=_,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${n}\\` predicate threw on ${t.key||\"?\"} \\u2014 treating as false:`,_?.message||_)}else p=g;let m=a?!p:!!p;if(!t.node||m===c.lastMatch)return;c.lastMatch=m;let b=t.context?.designSystem;b&&ot(b);try{if(m){let _={},y={},x=!1;for(let v in i){if(!Object.prototype.hasOwnProperty.call(i,v))continue;let E=i[v],D=v.charAt(0);if((D===\":\"||D===\"@\"||D===\"&\"||D===\"[\")&&E&&typeof E==\"object\"&&!Array.isArray(E)){if(tb(v,t)){let A=ks(E,t,!1,l);Object.keys(A).length&&(y[`[data-theme=\"${v.slice(1)}\"] &`]=A,x=!0)}else{let A=eb(v,t),N=ks(E,t,!1,l);Object.keys(N).length&&(y[A]=N,x=!0)}continue}let F=typeof E==\"function\"?E(t,t.state,t.context):E;if(F!=null)if(_t[v]){let A=_t[v](F,t,t.state,t.context);if(A){let N=Array.isArray(A)?A:[A];for(let At of N)At&&Object.assign(_,At)}}else(Et&&Et.has(v)||Ou(v))&&(_[v]=F)}let S=Object.keys(_);if(S.length){to(t.node,_);for(let v of S)r.set(v,n);c.appliedKeys=S}else c.appliedKeys=null;if(x){let v=pe(y,null,t.context?.cssPrefix,{state:!0}),E=v?v.split(\" \").filter(Boolean):[];if(E.length&&t.node.classList){for(let D of E)t.node.classList.add(D);c.appliedClasses=E}else c.appliedClasses=null}else if(c.appliedClasses){for(let v of c.appliedClasses)t.node.classList.remove(v);c.appliedClasses=null}}else{if(c.appliedKeys){for(let _ of c.appliedKeys)r.get(_)===n&&(Ou(_)?t.node.style.removeProperty(_):t.node.style[_]=\"\",r.delete(_));c.appliedKeys=null}if(c.appliedClasses){for(let _ of c.appliedClasses)t.node.classList.remove(_);c.appliedClasses=null}}}finally{b&&rt()}};e.__conditionalRunners.push(f);let u=Ut(t,t[s+\"Deps\"],f),d=G(u,{depth:e.path.length,label:ut(e,\"conditional(\"+n+\")\")}),h=e.__exec&&e.__exec[s]||t[s];d._sources.size===0&&typeof h==\"function\"&&pt()&&console.warn(`[smbls] conditional \\`${n}\\` on ${t.key||\"?\"} subscribed to nothing \\u2014 its predicate tracked no reactive read on its first run, so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). If the predicate guards its state reads (\\`in\\`, short-circuits, \\`?.\\`), declare \\`${s}Deps: [...]\\` (state-key strings or \\`(el, s) => \\u2026\\` selectors) so the subscription is armed unconditionally.`),e.__effects.push(d)}}var Hy=new WeakSet;function k2(t){let e=t.ownerDocument;!e||Hy.has(e)||(Hy.add(e),queueMicrotask(()=>{Hy.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Wy=new WeakSet,X0=!1;function Z0(t){return t.startsWith(\"[data-theme=\")||t.startsWith(\"@media\")&&t.includes(\"prefers-color-scheme\")}function Yy(t,e){let r={...t};for(let n in e){let o=e[n],s=r[n];r[n]=o&&typeof o==\"object\"&&s&&typeof s==\"object\"?Yy(s,o):o}return r}function uk(t,e){let r={};for(let n in t){let o=t[n];if(o&&typeof o==\"object\"){let s=uk(o,e);Object.keys(s).length&&(r[n]=s)}else e.has(n)||(r[n]=o)}return r}function dk(t){let{node:e}=t;if(!e)return;if(X0||(X0=!0,pe({display:\"none\"})),Wy.has(t)){console.error(\"[applyCssInProps] re-entry detected for element\",t.key,\"prop path:\",t.__ref?.path);return}Wy.add(t);let r=t.context?.designSystem;r&&ot(r),uu();try{let n={},o=!1,s=[],i=null,a=null,c=null,l=(p,g)=>{if(g&&typeof g==\"object\"&&Z0(p)){a||(a={});let m=a[p];m&&(g=Yy(m,g)),a[p]=g}else(g===null||typeof g!=\"object\")&&(c||(c=new Set),c.add(p));n[p]=g};if(Object.prototype.hasOwnProperty.call(t,\"theme\")&&typeof t.theme!=\"function\"&&_t.theme){let p=_t.theme(t.theme,t,t.state,t.context);if(p){let g=m=>{for(let b in m){let _=m[b];_&&typeof _==\"object\"&&Z0(b)&&(i||(i={}),i[b]=_),n[b]=_}};if(Array.isArray(p))for(let m of p)m&&g(m);else g(p);o=!0}}let f=(p,g)=>{if(_t[p]){let m=_t[p](g,t,t.state,t.context);if(m){if(Array.isArray(m)){for(let b of m)if(b)for(let _ in b)l(_,b[_])}else for(let b in m)l(b,m[b]);o=!0}}else if(Et&&Et.has(p))g!=null&&typeof g!=\"object\"&&(l(p,g),o=!0);else if(p.charCodeAt(0)===45)g!=null&&typeof g!=\"object\"&&(l(p,g),o=!0);else if((p.charAt(0)===\"&\"||p.charAt(0)===\"@\"||p.charAt(0)===\":\"||p.charAt(0)===\"[\")&&g&&typeof g==\"object\"&&!Array.isArray(g)){if(rb(g))return;let m=fk(p,g,t);m&&(l(m.cssProp,m.block),o=!0)}};if(typeof t.class==\"string\"){let p=x2(t.class,t.context?.designSystem?.class);if(p)for(let g in p)f(g,p[g])}let u=c?new Set(c):null,d=t.tag||\"div\";for(let p of Object.keys(t)){if(typeof t[p]==\"function\"||Bt.has(p)||p===\"theme\")continue;let g=p.charCodeAt(0);g>=65&&g<=90||Cr(p)||ku(d,p)||f(p,t[p])}if(i)for(let p in i){let g=c?uk(i[p],c):i[p];a&&a[p]&&(g=Yy(g,a[p])),Object.keys(g).length?n[p]=g:delete n[p]}if(h2(t,n,c,u),o){n.display&&String(n.display).includes(\"!important\")&&(e.style.setProperty(\"display\",String(n.display).replace(/\\s*!important\\s*$/,\"\"),\"important\"),delete n.display);let p=t.display!=null&&typeof t.display!=\"function\"?t.display:t.hide===!0||t.show===!1?\"none\":null;typeof p==\"string\"&&p!==\"\"&&n.display&&n.display!==p&&(n.display=p);let g=pe(n,null,t.context?.cssPrefix);if(s=g?g.split(\" \").filter(Boolean):[],g&&e.classList){let m=s,b=!1;for(let _ of m)e.classList.add(_),b||(_.charCodeAt(0)===95&&_.charCodeAt(1)===99||_.charCodeAt(0)===95&&_.indexOf(\"_c\",1)!==-1)&&(b=!0);b&&k2(e)}}let h=t.__ref;if(h){let p=h.__staticCssClasses;if(p&&e.classList){let g=new Set(s);for(let m of p)g.has(m)||e.classList.remove(m)}h.__staticCssClasses=s}g2(t)}finally{du(),r&&rt(),Wy.delete(t)}}var d0=t=>!!_t[t]||!!(Et&&Et.has(t))||typeof t==\"string\"&&t.charCodeAt(0)===45;function p0(t){t&&t.node&&dk(t)}function pk(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||typeof s==\"string\"&&s.includes(\"{{\"))continue;let i=\"aria-\"+o.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase());e.setAttribute(i,ee(i,s))}let r=gy(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 of Object.keys(t)){if(typeof t[o]==\"function\"||Bt.has(o)||o===\"on\"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Cr(o)&&!xs(n,o)&&Oe(n,o)){let i=t[o];if(i==null)continue;if(typeof i==\"string\"&&i.includes(\"{{\")){if(!Zn[o])continue;i=$t.call(t,i,t.state)}if(i==null||typeof i==\"function\"||typeof i==\"object\"||i===!1&&!ir(sr(o)||o))continue;let a=sr(o)||o;e.setAttribute(a,ee(a,i))}}}function h0(t,e){let{node:r}=t;if(!r||!r.setAttribute)return;let n=e.charCodeAt(0);if(n>=65&&n<=90||Cr(e))return;let o=t.tag||\"div\";if(xs(o,e)||!Oe(o,e))return;let s=sr(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute==\"function\"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=Zn[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l==\"string\"&&l.includes(\"{{\")&&(l=$t.call(t,l,t.state)),l==null||l===!1&&!ir(s)?r.removeAttribute(s):typeof l!=\"function\"&&typeof l!=\"object\"&&r.setAttribute(s,ee(s,l))}function v2(t,e){let r=t.node,n=t.__ref,o=n.__autoGrow;if(!e){if(o&&o.active){try{r.removeEventListener(\"input\",o.resize)}catch{}Au(o),Qn.delete(t),r.style.height=\"\",o.appliedMax!=null&&r.style.maxHeight===o.appliedMax&&(r.style.maxHeight=\"\"),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=n.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,layoutWatch:null,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!r.isConnected){nb(t,!0);return}if(!(r.scrollHeight>0)){E2(t,o);return}Au(o);let i=r.style.height;r.style.height=\"auto\";let a=r.scrollHeight;if(!(a>0)){r.style.height=i;return}r.style.height=a+\"px\",o.lastMeasure=a}},n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>{try{r.removeEventListener(\"input\",o.resize)}catch{}Au(o),Qn.delete(t)})),o.active||(r.addEventListener(\"input\",o.resize),o.active=!0);let s=typeof e==\"object\"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&r.style.maxHeight===o.appliedMax&&(r.style.maxHeight=\"\"):r.style.maxHeight=s,o.appliedMax=s),o.resize()}function nb(t,e){let r=t.__ref?.__autoGrow;r&&(e&&(r.attachAttempts=0,r.firstAttemptAt=null),Qn.add(t),Du())}function C2(){let t=Array.from(Qn);Qn.clear();for(let e=0;e<t.length;e++){let r=t[e],n=r.node,o=r.__ref?.__autoGrow;if(!(!n||!o||!o.active)){if(!n.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=Ss()),o.attachAttempts+=1,o.attachAttempts<=ek&&Ss()-o.firstAttemptAt<rk&&(Qn.add(r),Du());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function E2(t,e){if(e.layoutWatch)return;let r=t.node;if(!r)return;let n=r.ownerDocument&&r.ownerDocument.defaultView,o=n&&n.ResizeObserver||(typeof ResizeObserver==\"function\"?ResizeObserver:null);if(typeof o!=\"function\")return;let s=()=>{!r.isConnected||!(r.scrollHeight>0)||(Au(e),nb(t,!0))},i;try{i=new o(s),i.observe(r)}catch{return}e.layoutWatch=i}function Au(t){let e=t.layoutWatch;if(e){t.layoutWatch=null;try{e.disconnect()}catch{}}}function hk(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!==\"TEXTAREA\")return;let r=t.__ref,n=t.autoGrow,o=typeof n==\"function\"?Ut(t,t.autoGrowDeps,n):null,s=G(()=>{let i=t.autoGrow,a=i;if(typeof i==\"function\")try{a=(i===n&&o?o:i)(t,t.state,t.context)}catch{a=null}v2(t,a)},{depth:r.path.length,label:ut(r,\"autoGrow\")});r.__effects||(r.__effects=[]),r.__effects.push(s),o&&(r.__exec.autoGrow=n)}var gk=new Set([\"onSwipe\",\"onSwipeLeft\",\"onSwipeRight\",\"onSwipeUp\",\"onSwipeDown\"]);function mk(t,e){for(let r of Object.keys(t)){if(!Cr(r)||gk.has(r))continue;let n=iu(r);if(n){au(n,t,t[r]);continue}let o=t[r];if(typeof o==\"string\"&&/^[A-Za-z_$][\\w$]*$/.test(o)){let i=o;o=function(c){return t.call(i,c)}}if(typeof o!=\"function\")continue;let s=JP(r);en.has(s)||ps(QP(s),t,o)}A2(t)}function A2(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let d of gk){let h=t[d];typeof h==\"function\"&&(r[d]=h,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=d=>{let h=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];h&&(i=h.clientX,a=h.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let h=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!h)return;let p=h.clientX-i,g=h.clientY-a,m=Date.now()-c;if(m>s)return;let b=Math.abs(p),_=Math.abs(g);if(Math.max(b,_)<o)return;let y;if(b>_*1.2)y=p<0?\"left\":\"right\";else if(_>b*1.2)y=g<0?\"up\":\"down\";else return;let x=\"onSwipe\"+y.charAt(0).toUpperCase()+y.slice(1),S=r[x],v=r.onSwipe;S&&S.call(t,d,t,t.state,t.context),v&&v.call(t,{direction:y,dx:p,dy:g,dt:m,event:d},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 gc(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]=gc(o,s):r[n]=s}return r}function Xy(t,e,r,n){if(!e||!t.node)return;let o=t.childExtends;if(Array.isArray(e)){let s=t.tag===\"fragment\",i=t.context?.document||globalThis.document,a=s?null:i?.createDocumentFragment();if(!s&&!a)return;let c=t.childProps,l=t.childrenAs,f=m=>{let b=e[m],_=b;(typeof b==\"string\"||typeof b==\"number\")&&(b={text:b});let y=c;if(typeof c==\"function\")try{y=c(t,b)}catch{y=null}if(l===\"state\"){let S=_;(typeof _==\"string\"||typeof _==\"number\")&&(S={value:_,text:_}),b=y?{...y,state:S}:{state:S}}else y&&(b=gc(y,b));if(o&&!b.ignoreChildExtends)if(b.extends){let S=Array.isArray(b.extends)?b.extends:[b.extends],v=Array.isArray(o)?o:[o];b={...b,extends:[...v,...S]}}else b={...b,extends:o};let x=nk(b?.key,_,m);try{return he(b,t,x,r)}catch(S){if(typeof console<\"u\"&&console.error){let v=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${x}\" failed to construct at ${v} (initial render, skipping this row):`,S?.message||S)}return null}},u=t.__ref;if(!(n===!0&&!s&&!!u&&(r?.mountYield===!0||t.yieldChildren===!0))){for(let m=0;m<e.length;m++){let b=f(m);!s&&b?.node&&a.appendChild(b.node)}return s||t.node.appendChild(a),!0}let h=u.__childrenChunkGen=(u.__childrenChunkGen||0)+1;Iy();let p=null,g=m=>{if(u.__disposed||u.__childrenChunkGen!==h){p&&p.parentNode&&p.remove();return}for(let b=m;b<e.length;b++){let _=f(b);if(_?.node&&(p?t.node.insertBefore(_.node,p):a.appendChild(_.node)),b+1<e.length&&Dy()){p||(p=i.createComment(\"smbls-mount\"),a.appendChild(p),t.node.appendChild(a));let y=b+1;$y(()=>g(y));return}}p?(p.remove(),t.node.tagName===\"SELECT\"&&Pu(t,!0)):t.node.appendChild(a)};return g(0),Ly(),!0}if(typeof e==\"string\"){let s=ok(e,t);if(Array.isArray(s))return Xy(t,s,r,n)}if(typeof e==\"object\")for(let s in e){if(Bt.has(s))continue;let i=e[s];if(!(i==null||i===!1)){if((typeof i==\"string\"||typeof i==\"number\")&&(i={text:i}),t.childProps&&(i=gc(t.childProps,i)),o&&!i.ignoreChildExtends)if(i.extends){let a=Array.isArray(i.extends)?i.extends:[i.extends],c=Array.isArray(o)?o:[o];i={...i,extends:[...c,...a]}}else i={...i,extends:o};he(i,t,s,r)}}}function Pu(t,e){let r=t.node;if(!r||r.tagName!==\"SELECT\")return;let n=r.options;if(!n||!n.length)return;let o=t.__ref,s=o&&o.__exec&&o.__exec.value,i=typeof s==\"function\",a=t.value!=null&&typeof t.value!=\"function\";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value,typeof f==\"string\"&&f.includes(\"{{\")&&(f=$t.call(t,f,t.state));let u=f==null?\"\":String(f);r.value!==u&&(r.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<n.length;f++)n[f].defaultSelected&&(l=f);l>=0&&r.selectedIndex!==l&&(r.selectedIndex=l)}function yk(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r==\"function\"){let u=r;try{r=u(t,t.state,t.context)}catch(m){if(r=void 0,typeof console<\"u\"&&console.error){let b=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] \\`children:\\` factory threw at ${b} (initial run, treating as empty):`,m?.message||m)}}t.children=r;let d=t.__ref,h=!1,p=Ut(t,t.childrenDeps,u),g=G(()=>{let m=h;h=!0;let b;try{b=p(t,t.state,t.context)}catch(F){if(typeof console<\"u\"&&console.error){let A=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] \\`children:\\` factory threw at ${A}${m?\"\":\" (initial tracking run)\"}:`,F?.message||F)}return}if(!m||b===t.children)return;t.children=b,d.__childrenChunkGen!=null&&d.__childrenChunkGen++;let _=typeof t.onContentUpdate==\"function\",y=_?[]:null,x=_?[]:null,S=_?[]:null;if(Array.isArray(b)&&t.childrenAs===\"state\"){let F=t.childProps,A=[],N=new Map;for(let B=0;B<b.length;B++){let ht=b[B],$=F;if(typeof F==\"function\")try{$=F(t,ht)}catch{$=null}let q=nk($&&$.key,ht,B);A.push(q),N.set(q,{rawChild:ht,childProps:$})}let At=new Set(A),Vt=d.__children.slice();for(let B of Vt)if(!At.has(B)){let ht=t[B];ht?.remove&&ht.remove(),delete t[B],x&&x.push(B)}let kt=t.childExtends,it=t.tag===\"fragment\",M=t.context?.document||globalThis.document,H=it?null:M?.createDocumentFragment(),gt=new Set;for(let B of A){let ht=N.get(B),$=ht.rawChild,q=t[B];if(q&&q.state){if($&&typeof $==\"object\"){let Tt=q.state,Nt=Tt.$replace||Tt.replace,ho=Tt.$update||Tt.update;try{if(typeof Nt==\"function\")Nt.call(Tt,$);else if(typeof ho==\"function\"){for(let ae in Tt)if(!(ae===\"__element\"||ae===\"root\"||ae===\"parent\"||ae===\"update\")&&!Object.prototype.hasOwnProperty.call($,ae))try{Tt[ae]=void 0}catch{}ho.call(Tt,$)}else for(let ae in $)Tt[ae]=$[ae]}catch(ae){if(typeof console<\"u\"&&console.error){let Xs=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${B}\" failed to patch at ${Xs} (reconcile, keeping its previous data for this pass):`,ae?.message||ae)}}}S&&S.push(B);continue}let mt=$;(typeof $==\"string\"||typeof $==\"number\")&&(mt={value:$,text:$});let X=ht.childProps,Y=X?{...X,state:mt}:{state:mt};if(kt&&!Y.ignoreChildExtends)if(Y.extends){let Tt=Array.isArray(Y.extends)?Y.extends:[Y.extends],Nt=Array.isArray(kt)?kt:[kt];Y={...Y,extends:[...Nt,...Tt]}}else Y={...Y,extends:kt};let V;try{V=he(Y,t,B,e)}catch(Tt){if(typeof console<\"u\"&&console.error){let Nt=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${B}\" failed to construct at ${Nt} (reconcile, skipping this row):`,Tt?.message||Tt)}gt.add(B);continue}!it&&V?.node&&H&&H.appendChild(V.node),y&&y.push(B)}if(!it&&H&&H.childNodes.length&&t.node&&t.node.appendChild(H),!it&&t.node){let B=null;for(let ht of A){let $=t[ht]?.node;if(!$)continue;let q=B?B.nextSibling:t.node.firstChild;$!==q&&t.node.insertBefore($,q),B=$}}d.__children=gt.size?A.filter(B=>!gt.has(B)):A,_&&(y.length||x.length)&&B0(t,{added:y,removed:x,kept:S}),Pu(t,!1);return}let D=_?[...d.__children]:null;for(let F of[...d.__children]){let A=t[F];A?.remove&&A.remove(),delete t[F]}d.__children=[],Xy(t,b,e),Pu(t,!1),_&&B0(t,{added:[...d.__children],removed:D,kept:[]})},{depth:d.path.length,label:ut(d,\"children\")});d.__effects.push(g)}let s=Xy(t,r,e,!0);if(n!=null&&!(n&&n.__ref)){let u=n;if(typeof u==\"string\"||typeof u==\"number\"?u={text:u}:typeof u!=\"object\"&&(u={}),t.childProps&&(u=gc(t.childProps,u)),o&&!u.ignoreChildExtends)if(u.extends){let d=Array.isArray(u.extends)?u.extends:[u.extends],h=Array.isArray(o)?o:[o];u={...u,extends:[...h,...d]}}else u={...u,extends:o};he(u,t,\"content\",e)}if(r&&!s)return;let i=t.context?.components||{};{let u=Object.keys(t);for(let d=0;d<u.length;d++){let h=u[d];if(!h.endsWith(\"Extends\")||typeof t[h]!=\"string\")continue;let p=h.slice(0,-7);if(!p||p.charCodeAt(0)<65||p.charCodeAt(0)>90)continue;let g={extends:t[h]};delete t[h];for(let m=d+1;m<u.length;m++){let b=u[m],_=b.charCodeAt(0);if(_>=65&&_<=90||Bt.has(b)||typeof t[b]==\"function\"&&(b.startsWith(\"on\")||b.startsWith(\".\")))break;let y=t[b];y!==void 0&&(g[b]=y,delete t[b])}t[p]&&typeof t[p]==\"object\"?t[p]={...g,...t[p]}:t[p]=g}}let a=e?.mountYield===!0||t.yieldChildren===!0,c=Object.keys(t),l=u=>{if(Bt.has(u)||typeof t[u]!=\"object\"||t[u]===null)return;let d=u.charCodeAt(0);if(d<65||d>90)return;let h=t[u];if(!h.__ref){if(!h.extends&&!h.extend){let p=i[u]||i[`smbls.${u}`];p&&(h={...h,extends:p})}if(t.childProps&&(h=gc(t.childProps,h)),o&&!h.ignoreChildExtends)if(h.extends){let p=Array.isArray(h.extends)?h.extends:[h.extends],g=Array.isArray(o)?o:[o];h={...h,extends:[...g,...p]}}else h={...h,extends:o};he(h,t,u,e)}};if(!a){for(let u of c)l(u);return}Iy();let f=u=>{for(let d=u;d<c.length;d++)if(l(c[d]),d+1<c.length&&Dy()){let h=d+1;$y(()=>f(h));return}};f(0),Ly()}function bk(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)}var Zy=3;function my(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Zy?!1:(t.__inBeforeUpdate=!0,!0)}function kr(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Zy&&typeof console<\"u\"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Zy}x in a row on this element \\u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function oe(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Rt(n,e,r);let o=\"on\"+t,s=e[o];if(typeof s==\"function\"){let c=t===\"Render\"?\"__inRender\":t===\"RenderRouter\"?\"__inRenderRouter\":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&ot(l);let f=!!c;try{let u=s(e,e.state,e.context,r);if(u&&typeof u.then==\"function\"){let d=e.__ref;return u.catch(h=>{e.context?.plugins?.length&&Rt(\"error\",e,{hook:o,error:h})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,h)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(e.context?.plugins?.length&&Rt(\"error\",e,{hook:o,error:u})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,u),e.context?.strictMode)throw u}finally{l&&rt(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var _k={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\"],scrim:[\"black.45\",\"black.55\"],scrimSoft:[\"black.2\",\"black.3\"],blueDeep:\"#0A5CB8\",blueBright:\"#47A8FF\",accentInk:[\"blueDeep\",\"blueBright\"],greenDeep:\"#2A6E28\",greenBright:\"#7FD07B\",successInk:[\"greenDeep\",\"greenBright\"],redDeep:\"#A83520\",redBright:\"#FF8C78\",dangerInk:[\"redDeep\",\"redBright\"],orangeDeep:\"#94500F\",orangeBright:\"#F4A45E\",warningInk:[\"orangeDeep\",\"orangeBright\"],magentaDeep:\"#A100A1\",magentaBright:\"#FF7AFF\",magentaInk:[\"magentaDeep\",\"magentaBright\"]},xk={\"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 T2={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\"}}}},O2={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},R2={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\"}}},wk={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...T2,...O2,...R2,backdrop:{\"@light\":{background:\"scrim\",backdropFilter:\"blur(8px)\"},\"@dark\":{background:\"scrim\",backdropFilter:\"blur(8px)\"}},backdropSoft:{\"@light\":{background:\"scrimSoft\",backdropFilter:\"blur(4px)\"},\"@dark\":{background:\"scrimSoft\",backdropFilter:\"blur(4px)\"}},none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var Sk={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var kk={ratio:1.618,subSequence:!0};var vk={SourceSans:[{url:\"\"}]},Ck={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 Ek={symbols:'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"41\" height=\"42\" viewBox=\"0 0 41 42\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z\"/></svg>',logo:'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"41\" height=\"42\" viewBox=\"0 0 41 42\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z\"/></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 Ak={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 Tk={base:150,ratio:1.333,unit:\"ms\",subSequence:!0,defaultBezier:\"cubic-bezier(.29, .67, .51, .97)\",springBezier:\"cubic-bezier(.32, .72, 0, 1)\"};var Ok={radiusControl:\"12px\",radiusCard:\"17px\",radiusSheet:\"24px\",radiusPill:\"999px\",controlH:\"44px\",controlHCompact:\"36px\"};var mc={version:\"0.0.1\",color:_k,gradient:xk,theme:wk,typography:Sk,spacing:kk,font:vk,fontFamily:Ck,timing:Tk,icons:Ek,media:Ak,sizes:Ok,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:\"scale(0.95)\",opacity:0},to:{transform:\"\",opacity:1}},modalOut:{to:{transform:\"scale(0.95)\",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Cs={};L(Cs,{A:()=>Gv,AssetPicture:()=>Kk,Audio:()=>Xk,Avatar:()=>lC,B:()=>gv,Block:()=>Rk,Box:()=>Nu,Br:()=>_v,Button:()=>Zv,ButtonSet:()=>eC,COMPONENTS:()=>eo,Caption:()=>iv,Checkbox:()=>Ov,CheckboxHgroup:()=>Rv,Circle:()=>Hk,CircleButton:()=>Qv,Clickable:()=>Uk,Data:()=>yv,Dialog:()=>nC,DialogFooter:()=>sC,DialogHeader:()=>oC,Dropdown:()=>uC,DropdownList:()=>dC,DropdownParent:()=>pC,DropdownParentFocus:()=>hC,DropdownSiblingFocus:()=>gC,FileIcon:()=>Vv,Flex:()=>Dk,Focusable:()=>Vk,FocusableComponent:()=>zk,Footnote:()=>hv,Form:()=>Nk,Grid:()=>Lk,Gutter:()=>Mk,H1:()=>Qk,H2:()=>tv,H3:()=>ev,H4:()=>rv,H5:()=>nv,H6:()=>ov,Headline:()=>dv,Hgroup:()=>vv,HgroupButton:()=>Ev,HgroupRows:()=>Cv,Hoverable:()=>Bk,Hr:()=>bv,I:()=>mv,Icon:()=>Bv,IconButton:()=>rC,IconText:()=>Uv,Iframe:()=>jk,Img:()=>Fk,Inline:()=>Pk,InlineFlex:()=>Ik,InlineGrid:()=>$k,Input:()=>Av,Italic:()=>fv,KangorooButton:()=>tC,Li:()=>xv,Link:()=>Ib,Notification:()=>mC,NumberInput:()=>Tv,Ol:()=>Sv,P:()=>sv,Picture:()=>qk,Radio:()=>Pv,RadioHgroup:()=>Dv,Range:()=>fC,RouteLink:()=>Yv,RouterLink:()=>Lb,SHAPES:()=>Mu,Select:()=>Xv,Shape:()=>fb,Span:()=>Jk,SquareButton:()=>Jv,Strong:()=>av,Subhead:()=>pv,Svg:()=>Gk,Text:()=>Zk,Textarea:()=>$v,TextareaWithButton:()=>Mv,Theme:()=>Wk,Title:()=>uv,Toggle:()=>Iv,ToggleHgroup:()=>Lv,Tooltip:()=>iC,TooltipHidden:()=>aC,TooltipParent:()=>cC,U:()=>cv,Ul:()=>wv,Underline:()=>lv,Video:()=>Yk,depth:()=>Fu,focusableRingEnabled:()=>Lu,getSystemGlobalTheme:()=>yc});var sb={};L(sb,{Block:()=>Rk,Flex:()=>Dk,Grid:()=>Lk,Gutter:()=>Mk,Inline:()=>Pk,InlineFlex:()=>Ik,InlineGrid:()=>$k});var Rk={display:\"block\"},Pk={display:\"inline\"},Dk={display:\"flex\"},Ik={display:\"inline-flex\"},Lk={display:\"grid\"},$k={display:\"inline-grid\"},Mk={boxSize:\"C1\"};var ib={};L(ib,{Img:()=>Fk});P();var Fk={tag:\"img\",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||\"\",src:t=>{let e=Jt(t);return e&&e.src||t.src},srcset:t=>{let e=Jt(t);return(e?ya(e):\"\")||t.srcset}}};var ab={};L(ab,{Form:()=>Nk});var Nk={tag:\"form\"};var cb={};L(cb,{Iframe:()=>jk});var jk={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"};var lb={};L(lb,{Clickable:()=>Uk,Focusable:()=>Vk,FocusableComponent:()=>zk,Hoverable:()=>Bk,focusableRingEnabled:()=>Lu});var P2={appearance:\"none\",fontFamily:\"inherit\"},Bk={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}}},Uk={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}};function Lu(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}var Vk={border:\"none\",outline:t=>Lu(t)?\"solid 0 currentColor\":\"none\",\":focus-visible\":{opacity:1,outline:t=>Lu(t)?\"solid X currentColor\":\"none\"},attr:{tabIndex:t=>t.tabIndex}},zk={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",cursor:\"pointer\",\":disabled\":{cursor:\"not-allowed\"},style:P2};var pb={};L(pb,{Picture:()=>qk});var db={};L(db,{Theme:()=>Wk,getSystemGlobalTheme:()=>yc});var ub={};L(ub,{Circle:()=>Hk,SHAPES:()=>Mu,Shape:()=>fb,default:()=>D2,depth:()=>Fu});P();var Re=T(),Fu={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Re.unit.default} 4${Re.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Re.unit.default} 6${Re.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Re.unit.default} 10${Re.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Re.unit.default} 16${Re.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Re.unit.default} 26${Re.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Re.unit.default} 42${Re.unit.default}`}},vs=t=>tt(t.shapeDirectionColor)||tt(t.borderColor)||tt(t.backgroundColor)||tt(t.background),$u=t=>{let e=ic.transition(t.transition,t);return e&&e.transition},Mu={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:vs(t),transition:$u(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:vs(t),transition:$u(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:vs(t),transition:$u(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:$u(t),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${vs(t)} 25%, transparent 25%), linear-gradient(315deg, ${vs(t)} 25%, transparent 25%)`},\"&:after\":{background:vs(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)\"}}}},fb={deps:{exec:lt,getSpacingBasedOnRatio:Ee,getMediaColor:Lt},classlist:{shape:t=>t.deps.exec(Mu[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Mu[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}}},Hk={round:\"100%\"},D2=fb;P();var yc=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n===\"auto\"?null:n},Wk={deps:{depth:Fu},classlist:{depth:t=>!Pt(t.depth)&&t.deps.depth[t.depth]}};var qk={deps:{getSystemGlobalTheme:yc},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:yc},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 hb={};L(hb,{AssetPicture:()=>Kk});P();var Kk={tag:\"picture\",children:t=>{let e=Jt(t);if(e)return ba(e,t.alt)}};var gb={};L(gb,{Svg:()=>Gk});var Gk={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),a=d=>`<use xlink:href=\"#${d}\" />`;if(typeof i==\"string\"){let d=i.match(/^\\s*<symbol\\b[^>]*\\bid=\"([^\"]+)\"/);if(d){let h=d[1],p=e.document||(typeof document<\"u\"?document:null);if(!(p&&typeof p.getElementById==\"function\"&&p.getElementById(h))){let m=n&&n.scratchSystem&&n.scratchSystem.appendSVGSprite;r&&!r.__svgCache&&(r.__svgCache={}),typeof m==\"function\"?m({[h]:i},{document:p}):n&&typeof n.init==\"function\"&&n.init({svg:{[h]:i}},{document:p,emotion:e.emotion})}return a(h)}}if(!s&&i)return i;let 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 d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var mb={};L(mb,{Video:()=>Yk});P();var Yk={tag:\"video\",controls:!0,attr:{src:t=>{let e=Jt(t);return e&&e.src||t.src}},children:t=>{let e=Jt(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 yb={};L(yb,{Audio:()=>Xk});P();var Xk={tag:\"audio\",controls:!0,attr:{src:t=>{let e=Jt(t);return e&&e.src||t.src}},children:t=>{let e=Jt(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 bb={};L(bb,{B:()=>gv,Caption:()=>iv,Data:()=>yv,Footnote:()=>hv,H1:()=>Qk,H2:()=>tv,H3:()=>ev,H4:()=>rv,H5:()=>nv,H6:()=>ov,Headline:()=>dv,I:()=>mv,Italic:()=>fv,P:()=>sv,Span:()=>Jk,Strong:()=>av,Subhead:()=>pv,Text:()=>Zk,Title:()=>uv,U:()=>cv,Underline:()=>lv});var Zk={},Jk={tag:\"span\"},Qk={tag:\"h1\"},tv={tag:\"h2\"},ev={tag:\"h3\"},rv={tag:\"h4\"},nv={tag:\"h5\"},ov={tag:\"h6\"},sv={tag:\"p\"},iv={tag:\"caption\"},av={tag:\"strong\",fontWeight:\"700\"},cv={tag:\"u\"},lv={tag:\"u\"},fv={tag:\"i\"},uv={},dv={tag:\"h6\",fontSize:\"B\",fontWeight:500},pv={tag:\"span\",fontSize:\"Z1\"},hv={tag:\"span\",fontSize:\"Z\"},gv={tag:\"b\"},mv={tag:\"i\"},yv={tag:\"data\"};var _b={};L(_b,{Box:()=>Nu,Br:()=>_v,Hr:()=>bv,Li:()=>xv,Ol:()=>Sv,Ul:()=>wv});var I2=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=ne(e,t,{unpack:!1});r.__class=n},Nu={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:I2},bv={tag:\"hr\",margin:\"C1 0\"},_v={tag:\"br\"},xv={tag:\"li\"},wv={tag:\"ul\",childExtends:{extends:\"Li\"}},Sv={tag:\"ol\",childExtends:{extends:\"Li\"}};var xb={};L(xb,{Hgroup:()=>vv,HgroupButton:()=>Ev,HgroupRows:()=>Cv});var kv=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},vv={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:kv,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:kv,margin:\"0\",color:\"paragraph\"}},Cv={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},Ev={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}};var wb={};L(wb,{Input:()=>Av});var Av={extends:[\"Focusable\"],tag:\"input\",border:\"none\",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 Sb={};L(Sb,{NumberInput:()=>Tv});var Tv={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 kb={};L(kb,{Checkbox:()=>Ov,CheckboxHgroup:()=>Rv});var Ov={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 currentColor\",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\"}}},Rv={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}};var vb={};L(vb,{Radio:()=>Pv,RadioHgroup:()=>Dv});var Pv={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}},Dv={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}};var Cb={};L(Cb,{Toggle:()=>Iv,ToggleHgroup:()=>Lv});var Iv={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}},Lv={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}};var Eb={};L(Eb,{Textarea:()=>$v,TextareaWithButton:()=>Mv});var $v={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\"}},Mv={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 Ab={};L(Ab,{FileIcon:()=>Vv,Icon:()=>Bv,IconText:()=>Uv});var Fv=new Set,Nv=(t,e)=>{if(!Fv.has(t)&&(Fv.add(t),typeof console<\"u\"&&console.warn)){let r=e&&e.__ref&&e.__ref.path,n=r&&r.length?` at <${r.join(\".\")}>`:\"\";console.warn(`[Icon] Unknown icon name \"${t}\"${n} \\u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},jv=new WeakMap,L2=t=>{let e=jv.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},jv.set(t,e)),e},$2=(t,e)=>{if(!t)return null;let r=t.default||t;return typeof r==\"string\"?r.trim()?{[e]:r}:null:typeof r==\"object\"&&!Array.isArray(r)&&Object.keys(r).length?r:null},M2=(t,e,r)=>{let n=r&&r.context&&r.context.document||(typeof document<\"u\"?document:null);ot(t);try{let o=T();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Wn(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&n&&Object.keys(s).length&&qn(s,{document:n}),Object.keys(s).length>0}finally{rt()}},F2=(t,e,r,n,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!=\"function\"||!s.icons)return!1;let a=L2(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(o),a.pending.has(e))return!0;let l=Promise.resolve().then(()=>i(e,t)).then(f=>{let u=$2(f,r);return u?M2(s,u,n):!1}).catch(f=>(typeof console<\"u\"&&console.error&&console.error(`[Icon] iconsLoader failed for \"${e}\":`,f),!1)).then(f=>{a.pending.delete(e);let u=a.waiting.get(e);a.waiting.delete(e),f||a.failed.add(e),u&&u.forEach(d=>{try{d(f)}catch(h){console.error(\"[Icon] repaint error:\",h)}})});return a.pending.set(e,l),!0},Bv={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=p=>{let g=p[\".isActive\"];if(g)return p.call(\"exec\",g.name||g.icon)},l=(p,g,m)=>{let{semanticIcons:b}=m&&m.designSystem,{toCamelCase:_}=m&&m.utils,y=f(p,g),S=_(y).split(/([a-z])([A-Z])/g),v=S[1]?S[0]:y.split(\".\")[0].split(\" \")[0],E=b&&b[v];if(E){let D=y.includes(\".\")?\"sfsymbols.\"+y.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return y=E[D]||E[y.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${y}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},f=(p,g)=>{let{key:m}=p,b=p.call(\"exec\",p.name||p.icon||m,p);return p.call(\"isString\",b)&&b.includes(\"{{\")&&(b=p.call(\"replaceLiteralsWithObjectFields\",b)),p.call(\"isString\",b)?b:m},u=t.src,d,h=()=>{let p=f(t,e),g=p;if(p.includes(\" \")){let A=p.split(\" \");p=A[0]+A.slice(1).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join(\"\")}let m=a(p),b=m.split(/([a-z])([A-Z])/g),_=l(t,e,r);if(_){Object.assign(t,_);return}let y;t.isActive&&(y=c(t));let x=n[\".isActive\"];n&&n.isActive&&x&&x.icon&&(y=t.call(\"exec\",x.icon||x.Icon.name||x.Icon.icon,t)),t.call(\"isString\",y)&&y.includes(\"{{\")&&(y=t.call(\"replaceLiteralsWithObjectFields\",y));let S;o[y]&&(S=y),o[m]?S=m:o[b[0]+b[1]]?S=b[0]+b[1]:o[b[0]]?S=b[0]:i&&t.warn(\"Can't find icon:\",p,S);let v=o[S],E=n&&n.src||u;!v&&!E&&(F2(r,g,m,t,N=>{if(!(d&&d._disposed)){if(!N)return Nv(g,t);h()}})||Nv(g,t));let D=s&&S,F=v||E||o.noIcon;if(!(t.spriteId===D&&t.src===F&&t.node&&t.node.innerHTML)&&(t.spriteId=D,t.src=F,typeof t.html==\"function\"&&t.node)){let A=t.context&&t.context.designSystem;A&&ot(A);try{let N=t.html(t,t.state,t.context);N!=null&&typeof N!=\"function\"&&(t.node.innerHTML=N)}finally{A&&rt()}}};d=G(h,{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\"}},Uv={display:\"flex\",align:\"center center\",lineHeight:1,\".reversed\":{flow:\"row-reverse\"},\".vertical\":{flow:\"column\"},Icon:{if:t=>{let{parent:e}=t,r=t.call(\"exec\",t.icon,t);return t.call(\"exec\",r||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call(\"exec\",t.parent.icon,t.parent)},text:t=>t.text},Vv={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}};var $b={};L($b,{A:()=>Gv,Link:()=>Ib,RouteLink:()=>Yv,RouterLink:()=>Lb});var bc={};L(bc,{default:()=>z2,getActiveRoute:()=>Db,lastLevel:()=>Bu,lastPathname:()=>ju,matchRoute:()=>Ob,parseQuery:()=>Rb,parseRoutePattern:()=>Tb,router:()=>cr,runGuards:()=>Pb});P();var Hv=/^:(.+)/,Wv=/^\\*$/,zv=new Map,Tb=t=>{let e=zv.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(Hv);a?n.push({index:i,name:a[1]}):Wv.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return zv.set(t,s),s},Ob=(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=Tb(l),u=N2(o,f);u>a&&(a=u,i=l,c=j2(o,f))}return!i&&e[\"/*\"]&&(i=\"/*\"),{key:i,content:i?e[i]:null,params:c,routePath:s}},N2=(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(Hv.test(r[i]))o+=1;else if(Wv.test(r[i]))o+=.5;else return-1;return o},j2=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Rb=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},Pb=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},Db=(t=0,e)=>{e||(e=typeof C<\"u\"?C.location.pathname:\"/\");let n=e.split(\"/\")[t+1];if(n)return`/${n}`},ju,Bu=0,B2=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"?\"/\":t,qv={level:Bu,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof et<\"u\"&&(et.scrollingElement||et.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0,exitTimeout:300},U2=(t,e)=>{if(!t||t.visibilityState!==\"visible\")return!1;try{let r=e&&typeof e.matchMedia==\"function\"&&e.matchMedia(\"(prefers-reduced-motion: reduce)\");if(r&&r.matches)return!1}catch{}return!0},Kv=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},V2=(t,e,r,n,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===r)return a.wait;if(Kv(e),!r||!r.node||typeof t.onRouteExit>\"u\"||!U2(s,i))return null;let c=typeof o==\"number\"&&o>=0?o:qv.exitTimeout,l=typeof AbortController==\"function\"?new AbortController:null,f={...n,page:r,timeout:c,signal:l?l.signal:void 0},u;try{u=gr(\"routeExit\",t,f)}catch{return null}if(!u||typeof u.then!=\"function\")return null;let d={page:r,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(h=>{let p=setTimeout(()=>{d.abort(),h()},c),g=()=>{clearTimeout(p),h()};u.then(g,g)}),e.__routeExit=d,d.wait},cr=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||C,i=o?.context?.document||et,a={...qv,...o.context.routerOptions,...n};Bu=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=B2(t);let u=typeof s.URL==\"function\"?s.URL:typeof globalThis<\"u\"&&globalThis.URL||URL,d=new u(f+t),{pathname:h,search:p,hash:g}=d,m=Rb(p),b=o.node,_=g&&g!==s.location.hash.slice(1),y=h!==ju;ju=h;let x=c.__routerRendered,S,v,E,D;if(a.useParamsMatching){let M=Ob(h,o.routes,a.level);S=M.key,v=M.routePath,E=M.content,D=M.params}else{S=Db(a.level,h),v=S;let M=o.routes;E=M?M[S||\"/\"]||M[\"/*\"]:null,D={}}let F=a.scrollToNode?b:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!E){a.onNotFound?a.onNotFound({pathname:h,route:S,element:o}):a.silent||console.warn(\"[smbls/router] no content matched for path\",h,\"\\u2014 available routes:\",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let M={pathname:h,route:S,params:D,query:m,hash:g,element:o,state:r},H=await Pb(a.guards,M);if(H===!1)return;if(typeof H==\"string\")return cr(H,e,r,{...n,guards:[]})}let A=c.__routerNavSeq=(c.__routerNavSeq||0)+1,N=!x||x.content!==E||x.route!==S,At=y||N||a.force===!0;if(At&&x){let M=V2(o,c,o[l],{from:x.route,to:S,pathname:h,params:D,query:m,hash:g},a.exitTimeout,i,s);if(M&&(await M,c.__routerNavSeq!==A||(c.__routeExit&&c.__routeExit.wait===M&&(c.__routeExit=null),typeof o?.set!=\"function\")))return}else Kv(c);if(a.pushState){let M=h+(p||\"\")+(g||\"\");try{a.replace?s.history.replaceState(r,null,M):s.history.pushState(r,null,M)}catch{}}let kt=y||!_?{route:S,routePath:v,hash:g,params:D,query:m,debugging:!1}:{params:D,query:m};if(a.updateState&&o.state.update(kt,{preventContentUpdate:!0}),At){l&&a.removeOldElement&&o[l].remove();let M=o.__ref?.origin?.content,H={};if(M)for(let $ in M){let q=M[$];$===\"__ref\"||$===\"props\"||$===\"node\"||$===\"parent\"||$===\"key\"||(typeof q==\"string\"||typeof q==\"number\"||typeof q==\"boolean\"||typeof q==\"object\"&&q!==null&&!q.node&&!q.__ref)&&(H[$]=q)}let gt={...H,...typeof E==\"object\"?E:{extends:E}};a.useFragment&&(gt.tag=\"fragment\");let B={content:E,route:S},ht=c.__routerRendered;try{if(typeof o?.set!=\"function\")return;c.__routerRendered=B,o.set(gt,{contentElementKey:l})}catch($){c.__routerRendered===B&&(c.__routerRendered=ht),console.error(\"[smbls/router] failed to render route content\",h,$)}}let it=!y&&_;if(a.scrollToTop&&!it&&F?.scrollTo&&F.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 M=i.getElementById(g.slice(1));if(M&&F?.scrollTo){let H=s.getComputedStyle?s.getComputedStyle(M):null,gt=H&&parseFloat(H.scrollMarginTop)||0,B=M.getBoundingClientRect().top+F.scrollTop-gt-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:B,left:0})}}gr(\"routeChanged\",o,a)},z2=cr;var H2=(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,d=e.__ref.root,h=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&&!h){t.preventDefault();try{let p=d;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=d;for(let b of g){if(!m||!m[b]){m=null;break}m=m[b]}m&&(p=m,d.routes&&(p.routes=d.routes))}(f.router||l.router||c.router||cr)(a,p,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(p){console.warn(p)}}},Ib={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:t=>rn(t,t.href)||rn(t,t.call(\"exec\",t,t).href),\"aria-label\":t=>t.aria?t.aria.label:t.text},onClick:H2},Gv={extends:\"Link\"},Lb={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,d=e.__ref.root,h=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&&!h){t.preventDefault();try{let p=d;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=d;for(let b of g){if(!m||!m[b]){m=null;break}m=m[b]}m&&(p=m,d.routes&&(p.routes=d.routes))}(f.router||l.router||c.router||cr)(a,p,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(p){console.warn(p)}}}},Yv={extends:[Ib,Lb]};var Mb={};L(Mb,{Select:()=>Xv});var Xv={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 Fb={};L(Fb,{Button:()=>Zv,ButtonSet:()=>eC,CircleButton:()=>Qv,IconButton:()=>rC,KangorooButton:()=>tC,SquareButton:()=>Jv});var Zv={extends:[\"IconText\",\"FocusableComponent\"],tag:\"button\",minHeight:\"controlH\",fontSize:\"Z2\",type:\"button\",borderStyle:\"none\",display:\"inline-flex\",align:\"center center\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",padding:\"0 A\",fontWeight:\"700\",fontFamily:\"inherit\",round:\"radiusPill\",disabled:t=>t.call(\"exec\",t.disabled)},Jv={extends:\"Button\",fontSize:\"A\",width:\"A\",minHeight:\"auto\",padding:\"Z\",aspectRatio:\"1 / 1\",boxSize:\"fit-content fit-content\",justifyContent:\"center\",round:\"Z2\",boxSizing:\"content-box\"},Qv={extends:\"SquareButton\",round:\"C\"},tC={extends:\"Button\",childExtends:\"IconText\"},eC={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},rC={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"};var Nb={};L(Nb,{Dialog:()=>nC,DialogFooter:()=>sC,DialogHeader:()=>oC});var nC={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},oC={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},sC={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 jb={};L(jb,{Tooltip:()=>iC,TooltipHidden:()=>aC,TooltipParent:()=>cC});P();var iC={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=>Ot(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)}},aC={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)}},cC={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 Bb={};L(Bb,{Avatar:()=>lC});var W2=t=>{let r=`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><rect width=\"64\" height=\"64\" rx=\"32\" fill=\"#71718A\"/><text x=\"32\" y=\"42\" font-family=\"system-ui,sans-serif\" font-size=\"28\" font-weight=\"700\" text-anchor=\"middle\" fill=\"#fff\">${String(t||\"\").trim().charAt(0).toUpperCase()||\"?\"}</text></svg>`;return\"data:image/svg+xml;utf8,\"+encodeURIComponent(r)},lC={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\"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let r=e.node.getAttribute(\"alt\")||(e.key!==\"no-avatar\"?e.key:\"\");e.node.src=W2(r)},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 Ub={};L(Ub,{Range:()=>fC});var fC={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:Ho(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:Ho(\"#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 Vb={};L(Vb,{Dropdown:()=>uC,DropdownList:()=>dC,DropdownParent:()=>pC,DropdownParentFocus:()=>hC,DropdownSiblingFocus:()=>gC});var uC={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\"},dC={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\"}}},pC={position:\"relative\",zIndex:999,\":hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}},hC={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()}}},gC={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 zb={};L(zb,{Notification:()=>mC});var mC={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 eo=Object.assign({},sb,ib,ab,cb,lb,pb,hb,gb,ub,mb,yb,db,bb,_b,xb,wb,Sb,kb,vb,Cb,Eb,Ab,$b,Mb,Fb,Nb,jb,Bb,Ub,Vb,zb);function Uu(t){if(t==null)return 0;if(typeof t!=\"object\")return yC(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Uu(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^yC(r[n]))*16777619,e=(e^Uu(t[r[n]]))*16777619;return e>>>0}function yC(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Vu(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(!Vu(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)||!Vu(t[s],e[s]))return!1}return!0}function Hb(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=Hb(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 Wb(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])?Wb(t[n],o,r):t[n]=o}return t}function an(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 Es(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function _c(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():an(e)}function bC(t){return t.split(`\n`).map(an).join(`\n`)}var _C={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 xC(t,e){let r=_C[t]||an(t),n=_c(e),o=`_${r}-${n}`,s=Es(t),i=Y2[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}\n${c}`}var Y2={\"backdrop-filter\":\"-webkit-backdrop-filter\",\"user-select\":\"-webkit-user-select\",\"mask-image\":\"-webkit-mask-image\",\"mask-size\":\"-webkit-mask-size\",\"mask-repeat\":\"-webkit-mask-repeat\",\"mask-position\":\"-webkit-mask-position\",\"mask-clip\":\"-webkit-mask-clip\",\"mask-origin\":\"-webkit-mask-origin\",\"background-clip\":\"-webkit-background-clip\"},X2=\"@media (hover: hover)\",Z2=/(?:^|[^\\\\]):hover(?![\\w-])/,wC=t=>typeof t==\"string\"&&(t.indexOf(\"{\")!==-1||t.indexOf(\"}\")!==-1);function SC(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||wC(i))continue;let a=_C[s]||an(s),c=_c(i),l=`_${a}-${c}`,f=Es(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(\" \")+\"\\0\"+n.join(`\n`)}function kC(t,e,r){let n=t+e,o=`_c${an(n)}`,s=e.split(\"\\0\"),i=\"\";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(wC(u)||(i+=`${Es(f)}:${u};`))}let a,c;if(t.startsWith(\"@media\"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(\":\")||t.startsWith(\"&\")||t.startsWith(\"[\")&&!t.includes(\"&\")){let l=t.startsWith(\"&\")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes(\"&\")?(c=t.replace(\"&\",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return r!==!1&&Z2.test(c)&&(a=`${X2}{${a}}`),`${o}\n${a}`}var qb=null;function Hu(t){qb=t}var Ue={structuralHash:Uu,deepEqual:Vu,mergeStructural:Hb,overwriteDeep:Wb,shortHash:an,toKebab:Es,sanitizeValue:_c,batchShortHash:bC,atomicCssClass:xC,batchAtomicCss:SC,compoundCssClass:kC},vC=!1,zu=null;function CC(t){return zu||(zu=import(t||\"@symbo.ls/wasm/pkg\").then(e=>(e.structuralHash&&(Ue.structuralHash=e.structuralHash),e.deepEqual&&(Ue.deepEqual=e.deepEqual),e.mergeStructural&&(Ue.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Ue.overwriteDeep=e.overwriteDeep),e.shortHash&&(Ue.shortHash=e.shortHash),e.toKebab&&(Ue.toKebab=e.toKebab),e.sanitizeValue&&(Ue.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Ue.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Ue.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Ue.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Ue.compoundCssClass=e.compoundCssClass),vC=!0,qb&&e.batchAtomicCss&&qb({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug(\"[smbls] WASM not available, using JS fallbacks:\",e.message),!1)),zu)}function EC(){return vC}P();var xc={};L(xc,{CDN_PROVIDERS:()=>Se,DOMQL_EVENTS:()=>qp,DOMQ_PROPERTIES:()=>Lr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vo,ENV:()=>fh,HTML_TAGS:()=>Ao,METHODS:()=>Mr,METHODS_EXL:()=>hi,NODE_ENV:()=>Le,OPTIONS:()=>Bi,PACKAGE_MANAGER_TO_CDN:()=>Ur,PARSED_DOMQ_PROPERTIES:()=>pi,PROPS_METHODS:()=>$r,STATE_METHODS:()=>wn,STATE_PROPERTIES:()=>Hp,SVG_TAGS:()=>Zx,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>uf,__resetBuiltinMethodWarnings:()=>Wg,addCaching:()=>zl,addContext:()=>Vl,addExtend:()=>Ih,addExtends:()=>Ye,addItemAfterEveryElement:()=>Pp,addProtoToArray:()=>li,addRef:()=>jl,applyCSS:()=>Yb,applyDependentState:()=>Jh,applyEvent:()=>Yl,applyEventUpdate:()=>Xl,applyExtends:()=>tw,applyProps:()=>Ii,arrayContainsOtherArray:()=>vp,arraysEqual:()=>Ip,arrayzeValue:()=>Ln,buildImgSrcset:()=>ya,buildSourcesAndImg:()=>ba,cache:()=>ng,call:()=>vg,captureSnapshot:()=>Eg,checkForStateTypes:()=>Gh,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>Mp,clone:()=>Yp,cloneAndMergeArrayExtend:()=>Ci,cloneFunction:()=>yh,collectExtendsList:()=>To,concatAddExtends:()=>Rh,copyJavaScriptToClipboard:()=>Gg,copyStringToClipboard:()=>Kg,createBasedOnType:()=>Nl,createElement:()=>Kh,createElementExtends:()=>El,createExtends:()=>Ai,createExtendsFromKeys:()=>Oo,createExtendsStack:()=>Rl,createIfConditionFlag:()=>bh,createInheritedState:()=>Yh,createKey:()=>Si,createNestedObject:()=>nh,createNestedObjectByKeyPath:()=>Zh,createObjectWithoutPrototype:()=>bl,createParent:()=>Bl,createPath:()=>Ul,createProps:()=>Li,createPropsStack:()=>Ml,createRoot:()=>qh,createScope:()=>tg,createSnapshotId:()=>wi,customDecodeURIComponent:()=>zp,customEncodeURIComponent:()=>Vp,cutArrayAfterValue:()=>Op,cutArrayBeforeValue:()=>Tp,debounce:()=>ki,debounceOnContext:()=>gh,decodeNewlines:()=>Up,deepClone:()=>st,deepContains:()=>eh,deepDefaults:()=>pa,deepDestringifyFunctions:()=>_e,deepExtend:()=>Cl,deepMerge:()=>nt,deepMergeExtends:()=>Xe,deepStringifyFunctions:()=>mi,defineSetter:()=>Sg,destringifyGlobalScope:()=>bi,detectHeightOnInit:()=>Pg,detectInfiniteLoop:()=>ah,document:()=>et,encodeNewlines:()=>Bp,error:()=>Pn,excludeKeysFromObject:()=>lh,exec:()=>lt,extendCachedRegistry:()=>Ph,extendStackRegistry:()=>Ti,extractArrayExtend:()=>Ri,fetchLibraryData:()=>mf,fibonacciNumberByIndex:()=>Dg,filterArrays:()=>Lp,filterArraysFast:()=>$p,finalizeExtends:()=>Pl,findClosestNumber:()=>gf,findClosestNumberInFactory:()=>Vg,findInheritedState:()=>Kl,findKeyPosition:()=>Np,flattenExtend:()=>Ro,formatDate:()=>Rg,generateHash:()=>Sl,generateHeadArrayTags:()=>hf,generateKey:()=>xi,generateMetaTags:()=>Bg,get:()=>bg,getActiveRoute:()=>Db,getCDNDirUrl:()=>df,getCDNUrl:()=>Me,getCapitalCaseKeys:()=>Mh,getCdnProviderFromConfig:()=>Fo,getChildStateInKey:()=>ql,getChildren:()=>wg,getContext:()=>oa,getCookie:()=>kh,getDB:()=>la,getEmotionStylesheet:()=>Jg,getExtendsInElement:()=>Lh,getExtendsStack:()=>Ei,getExtendsStackRegistry:()=>vl,getFrequencyInArray:()=>Cp,getFunctionSource:()=>Ie,getHashedExtend:()=>Oi,getImportMapScript:()=>Og,getInObjectByPath:()=>ih,getLocalStorage:()=>Ch,getNev:()=>hh,getPageMetadata:()=>Ug,getParentStateInKey:()=>Wl,getPath:()=>Ji,getQuery:()=>fa,getRef:()=>xg,getRoot:()=>ea,getRootContext:()=>na,getRootData:()=>ra,getRootState:()=>ta,getRootStateInKey:()=>Hl,getSpreadChildren:()=>Fh,global:()=>wp,hasFunction:()=>Ge,hasHandlerPlugin:()=>Co,hasOwnProperty:()=>Jp,hashContent:()=>jo,inheritChildExtends:()=>Tl,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Ol,init:()=>Er,initProps:()=>zh,is:()=>Zt,isArray:()=>R,isBoolean:()=>ul,isBuiltinElementMethod:()=>Wp,isContextComponent:()=>Nh,isCyclic:()=>ch,isDOMNode:()=>Xt,isDate:()=>pl,isDefined:()=>Ot,isDevelopment:()=>Nr,isEmpty:()=>ml,isEmptyObject:()=>Qp,isEqualDeep:()=>yl,isFailedRevival:()=>En,isFunction:()=>O,isHtmlElement:()=>oi,isLazyFunction:()=>Xp,isLocal:()=>ph,isLoudDevRuntime:()=>pt,isMalformedDependency:()=>Dn,isMethod:()=>Cg,isMobile:()=>wh,isNode:()=>dr,isNot:()=>kp,isNotProduction:()=>Tn,isNull:()=>dl,isNumber:()=>Ke,isObject:()=>k,isObjectLike:()=>j,isPhoto:()=>Ig,isPolyglotWritableKey:()=>hr,isProduction:()=>Fr,isProtectedElementMethod:()=>Sn,isStaging:()=>dh,isState:()=>Xh,isString:()=>w,isStringFunction:()=>vi,isTest:()=>xl,isTesting:()=>uh,isUndefined:()=>Pt,isUniversallyReservedKey:()=>Ag,isUnresolvableDependency:()=>Vr,isValidDependencyMap:()=>In,isValidHtmlTag:()=>Ah,isWrappedLibrary:()=>tr,joinArrays:()=>wo,jointStacks:()=>Dh,keys:()=>lf,lastLevel:()=>Bu,lastPathname:()=>ju,loadCssFile:()=>Fg,loadJavascript:()=>Ng,loadJavascriptFile:()=>Lg,loadJavascriptFileEmbedSync:()=>Mg,loadJavascriptFileSync:()=>$g,loadRemoteCSS:()=>jg,loadRemoteScript:()=>No,log:()=>kg,logGroupIf:()=>xh,logIf:()=>_h,lookdown:()=>mg,lookdownAll:()=>yg,lookup:()=>gg,lowercaseFirstLetter:()=>xn,makeObjectWithoutPrototype:()=>th,map:()=>Gp,mapStringsWithContextComponents:()=>Pi,markPolyglotSeeded:()=>Je,matchRoute:()=>Ob,matchesComponentNaming:()=>Ze,memoize:()=>mh,merge:()=>yt,mergeSharedLibraries:()=>ha,nextElement:()=>ia,normalizeIgnoreList:()=>zr,normalizeLibraryKey:()=>Bo,objectToString:()=>yi,objectizeStringProperty:()=>Di,overwrite:()=>_i,overwriteDeep:()=>Wt,overwriteShallow:()=>An,overwriteState:()=>Qh,parse:()=>ff,parseDeep:()=>Xi,parseQuery:()=>Rb,parseRoutePattern:()=>Tb,pickupElementFromProps:()=>Ll,pickupPropsFromElement:()=>Il,polyglotSeededKeys:()=>ji,previousElement:()=>aa,promoteActiveRootState:()=>Io,propExists:()=>Uh,propertizeElement:()=>$l,propertizeUpdate:()=>Bh,reinit:()=>Gb,remove:()=>Ow,removeChars:()=>Yg,removeCookie:()=>vh,removeDuplicateProps:()=>Fi,removeDuplicatesInArray:()=>So,removeFromArray:()=>Ep,removeFromObject:()=>rh,removeNestedKeyByPath:()=>oh,removeValueFromArray:()=>ci,removeValueFromArrayAll:()=>Rp,reorderArrayByValues:()=>Dp,replaceLiteralsWithObjectFields:()=>$t,replaceOctalEscapeSequences:()=>jp,resolveAsset:()=>Jt,resolveHandler:()=>Eo,resolveSharedLibraries:()=>qg,returnValueAsText:()=>Fl,router:()=>cr,runGuards:()=>Pb,runPluginHook:()=>Rt,scratchSystem:()=>rs,scratchUtils:()=>qr,self:()=>Sp,set:()=>Gn,setActiveRootState:()=>Qi,setCookie:()=>Sh,setHashedExtend:()=>kl,setInObjectByPath:()=>sh,setLocalStorage:()=>Eh,setNodeStyles:()=>cf,setProps:()=>_g,setPropsPrototype:()=>Mi,sharedLibrary:()=>Hg,splitPackageSpecifier:()=>ua,spotByPath:()=>Zi,srcsetFor:()=>Uo,stringIncludesAny:()=>ui,stringToObject:()=>Zp,stripVersionRangePrefix:()=>da,swapItemsInArray:()=>Ap,syncProps:()=>Ni,toCamelCase:()=>ga,toDashCase:()=>ma,toDescriptionCase:()=>Zg,toPriorityOrder:()=>xe,toTitleCase:()=>Xg,toggleFullscreen:()=>Tg,triggerEventOn:()=>gr,triggerEventOnUpdate:()=>eg,trimStringFromSymbols:()=>Fp,unstackArrayOfObjects:()=>ai,update:()=>Vh,updateProps:()=>Hh,variables:()=>ca,verbose:()=>Lo,warn:()=>sa,window:()=>C});P();P();var Q2=T(),AC=(t=Q2,e)=>{let r=k(e.localFile)?e.localFile:{},n=st(r.designSystem||{});return nt(t,n,fe)},tD={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Wu=(t,e)=>{let r=!e||e===\":root\",n={};for(let o in t)if(o.startsWith(\"@media\")){let s=r?\":root:not([data-theme])\":`:root:not([data-theme]) ${e}:not([data-theme])`;n[o]={[s]:t[o]}}else r?n[o]=t[o]:n[`${e}${o}, ${o} ${e}`]=t[o];return n},Kb=(t,e)=>{t.CSS_MEDIA_VARS&&St(Wu(t.CSS_MEDIA_VARS,e));let r=Kn(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(r).length&&St(r)},Er=(t,e=tD)=>{let r=AC(t||{},e),n=e.scopeSelector||\":root\",o=e.globalTheme;if(typeof window<\"u\"&&window.location){let g=new URLSearchParams(window.location.search).get(\"globalTheme\");g&&(o=g)}let s=Gn({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:o,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=n);let i=ka(s.font,s.files),a=s.useReset,c=s.useVariable,l=s.useFontImport,f=s.useSvgSprite,u=t.svg,d=s.useIconSprite,h=t.icons;l&&St(i),c&&(St({[n]:s.CSS_VARS}),Kb(s,n)),a&&St(s.reset);let p=s.animation;if(p){let g={};for(let m in p)g[`@keyframes ${m}`]=p[m];St(g)}return(u||f)&&Xa(s.svg,{document:e.document}),(h||d)&&qn(s.icons,{document:e.document}),s},qu={},Gb=(t,e=qu)=>{let r=AC(t||{},e),n=e.scopeSelector||\":root\",o=Gn({verbose:!1,...r});return e.preventInject||(St({[n]:o.CSS_VARS}),Kb(o,n),St(o.reset)),o},Yb=(t,e=qu)=>{St(t)},eD=(t,e=qu)=>{let r=e.scopeSelector||\":root\";St({[r]:t.CSS_VARS}),Kb(t,r)};var rD=(t,e=qu)=>{};P();var OC=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"||t===\"blank\"||t===\"about:blank\"?\"/\":t,nD=t=>{let e=t&&t.initialPath;return typeof e!=\"string\"||!e?null:e[0]===\"/\"?e:\"/\"+e},Zb={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},wc=(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},oD=[\"manual\",\"auto\"],Xb=new WeakMap,TC=(t,e)=>{let r=e.claims[e.claims.length-1],n=r?r.value:e.found;t.scrollRestoration!==n&&(t.scrollRestoration=n)},sD=(t,e)=>{let r=e&&e.scrollRestoration;if(r!=null){if(!oD.includes(r)){if(t.verbose!==!1){let n=typeof r==\"string\"?JSON.stringify(r):`a ${typeof r}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual' or 'auto', got ${n} \\u2014 the browser default stays`)}return}try{let n=t.window||C,o=n&&n.history;if(!o||!(\"scrollRestoration\"in o))return;let s=Xb.get(o);s||(s={found:o.scrollRestoration,claims:[]},Xb.set(o,s));let i={value:r};s.claims.push(i),TC(o,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||Xb.delete(o);try{TC(o,s)}catch{}}})}catch{}}},RC=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Zb:e.router=yt(e.router||{},Zb);let r=e.router;sD(e,r);let n=async(s,i)=>{let a=s.context?.window||C,c=nD(r);if(!c){if(!a.location)return;let{pathname:f,search:u,hash:d}=a.location;f=OC(f),c=f+u+d}let l=s;if(r.customRouterElement){let f=wc(s,r.customRouterElement);f&&(l=f,s.routes&&(l.routes=s.routes))}l.routes&&await cr(c,l,{},{initialRender:!0,pushState:!1})},o=!Pt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),iD(e,r),r},Jb=(t,e)=>{if(e.router===!1)return;let r=e.router||Zb;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:cr,o=e.window||C,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=OC(a);let f=a+c+l,u=t;if(r.customRouterElement){let d=wc(t,r.customRouterElement);d&&(u=d,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))},iD=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return nt(r.Link||r[\"smbls.Link\"],r.RouterLink||r[\"smbls.RouterLink\"])};P();var Qb=C&&C.location?C.location.host.includes(\"dev.\"):Nr(),PC=Qb?\"http://localhost:8080/get\":\"https://api.symbols.app/get\",aD={endpoint:PC},DC=async(t,e=aD)=>{let r=e.endpoint||PC,n=e.serviceRoute?R(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(O(e.onError))return e.onError(s);console.error(s)}},cD=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await DC(t,r),o=Qb||e.isDevelopment?_e(n):_e(n.releases[0]);r.serviceRoute?R(r.serviceRoute)?r.serviceRoute.forEach(s=>{Wt(e[s],o[s.toLowerCase()])}):Wt(e[r.serviceRoute],o):[\"state\",\"designSystem\",\"components\",\"snippets\",\"pages\",\"utils\",\"files\",\"assets\",\"packages\",\"functions\",\"globalScope\"].forEach(s=>{Wt(e[s],o[s.toLowerCase()])})}return e},lD=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await DC(t,n),s=Qb||e.isDevelopment?_e(o):_e(o.releases[0]);r(s)}},IC=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await cD(t,e)}catch(r){console.error(r)}},LC=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&lD(e,r,n||(o=>{let s=o.designSystem;k(s)&&r.utils.init(s),k(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Sc=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{nn(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};var e_={};L(e_,{Helmet:()=>FC,applyMetadata:()=>Os,default:()=>yD,extractMetadata:()=>hD,generateHeadHtml:()=>mD,helmetPlugin:()=>t_,resolveMetadata:()=>cn});P();var fD={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\"}},uD=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}\"]`},$C=t=>_e({v:t}).v,MC=(t,e,r,n)=>{try{return lt(t,e,r)}catch(o){console.warn(`[helmet] metadata factory for \"${n}\" threw; treating as unset:`,o&&o.message||o);return}},cn=(t,e,r)=>{if(!t)return{};let n=t;w(n)&&Ge(n)&&(n=$C(n));let o=O(n)?MC(n,e,r,\"metadata\"):k(n)?{...n}:{};if(!k(o))return{};for(let s in o){let i=o[s];w(i)&&Ge(i)&&(i=$C(i)),O(i)?i=MC(i,e,r,s):w(i)&&Ge(i)&&(i=void 0),w(i)&&i.includes(\"{{\")&&e?.call&&(i=e.call(\"replaceLiteralsWithObjectFields\",i,r)),o[s]=i}return o},dD=t=>!!t&&typeof t==\"object\"&&(t.notFound===!0||t.metadata?.notFound===!0),pD=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t[\"/*\"])return t[\"/*\"];if(t[\"*\"])return t[\"*\"];for(let r in t)if(dD(t[r]))return t[r]},hD=(t,e=\"/\",r,n)=>{let o=t.pages||{},s=pD(o,e),i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let c=cn(t.app.metadata,r,n);i={...i,...c}}let a=new Set;if(s){let c=s.metadata||s.helmet||{},l=cn(c,r,n);for(let f in l)a.add(f);i={...i,...l},!i.title&&s.state?.title&&(i.title=s.state.title,a.add(\"title\")),!i.description&&s.state?.description&&(i.description=s.state.description,a.add(\"description\"))}if(i.title||(i.title=t.name||\"Symbols\"),i.title&&(a.has(\"title\")||!i[\"og:title\"])&&(a.has(\"og:title\")||(i[\"og:title\"]=i.title)),i.description&&(a.has(\"description\")||!i[\"og:description\"])&&(a.has(\"og:description\")||(i[\"og:description\"]=i.description)),i.title&&!i[\"twitter:title\"]&&(i[\"twitter:title\"]=i.title),i.description&&!i[\"twitter:description\"]&&(i[\"twitter:description\"]=i.description),i[\"og:url\"]||i.url){let c=(i[\"og:url\"]||i.url||\"\").replace(/\\/$/,\"\");if(c&&e&&e!==\"/\"){let l=e.startsWith(\"/\")?e:\"/\"+e;i[\"og:url\"]=c+l}}if(t.files)for(let c in i){let l=i[c];if(typeof l==\"string\"&&l.length>0&&!l.startsWith(\"/\")&&!l.startsWith(\"http\")){let f=t.files[l];f?.src&&(i[c]=f.src)}}return i},gD=(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},Ts=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)},As=(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))}},Os=(t,e)=>{if(!(!k(t)||!e)){for(let r in t){let n=t[r];if(n==null||r===\"jsonLd\"||r===\"styles\"||r===\"scripts\"||r===\"alternate\"||r===\"favicons\"||r===\"icon\"||r===\"favicon\")continue;let o=fD[r];if(!o)continue;let s=uD(o),i=e.querySelector(s)||gD(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(Ts);As(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(Ts);As(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));As(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})}if(Array.isArray(t.alternate)){let r=t.alternate.filter(o=>k(o)),n=r.map(o=>`${o.hreflang||\"\"}|${o.href||\"\"}`);As(e,\"data-smbls-alternate\",n,o=>{let s=n.indexOf(o),i=e.createElement(\"link\");i.setAttribute(\"rel\",\"alternate\");for(let[a,c]of Object.entries(r[s]))i.setAttribute(a,c);return i})}if(Array.isArray(t.favicons)){let r=t.favicons.filter(o=>o!=null),n=r.map(o=>k(o)?Ts(JSON.stringify(o)):String(o));As(e,\"data-smbls-favicon\",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement(\"link\");if(a.setAttribute(\"rel\",\"icon\"),k(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute(\"href\",String(i));return a})}if(t.icon||t.favicon){let r=String(t.icon||t.favicon),n=r.endsWith(\".svg\")?\"image/svg+xml\":r.endsWith(\".png\")?\"image/png\":\"\";As(e,\"data-smbls-single-icon\",[r],o=>{let s=e.createElement(\"link\");return s.setAttribute(\"rel\",\"icon\"),s.setAttribute(\"href\",o),n&&s.setAttribute(\"type\",n),s})}}},at=t=>{if(t==null)return\"\";let e={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"};return t.toString().replace(/[&<>\"']/g,r=>e[r])},mD=t=>{let e=['<meta charset=\"UTF-8\">'],r=new Set([\"charset\",\"jsonLd\",\"styles\",\"scripts\"]),n=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||r.has(o)||typeof s==\"function\")continue;if(o===\"title\"){e.push(`<title>${at(s)}</title>`);continue}if(o===\"viewport\"){n||(e.push(`<meta name=\"viewport\" content=\"${at(s)}\">`),n=!0);continue}if(o===\"canonical\"){e.push(`<link rel=\"canonical\" href=\"${at(s)}\">`);continue}if(o===\"icon\"||o===\"favicon\"){let f=at(s),u=f.endsWith(\".svg\")?' type=\"image/svg+xml\"':f.endsWith(\".png\")?' type=\"image/png\"':\"\";e.push(`<link rel=\"icon\" href=\"${f}\"${u}>`);continue}if(o===\"favicons\"&&Array.isArray(s)){s.forEach(f=>{if(typeof f==\"object\"){let u=Object.entries(f).map(([d,h])=>`${d}=\"${at(h)}\"`).join(\" \");e.push(`<link rel=\"icon\" ${u}>`)}else typeof f==\"string\"&&e.push(`<link rel=\"icon\" href=\"${at(f)}\">`)});continue}if(o===\"alternate\"&&Array.isArray(s)){s.forEach(f=>{if(typeof f==\"object\"){let u=Object.entries(f).map(([d,h])=>`${d}=\"${at(h)}\"`).join(\" \");e.push(`<link rel=\"alternate\" ${u}>`)}});continue}let i=[\"og:\",\"article:\",\"product:\",\"fb:\",\"profile:\",\"book:\",\"business:\",\"music:\",\"video:\"],a=[\"twitter:\",\"DC:\",\"DCTERMS:\"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith(\"http-equiv:\")){let f=o.replace(\"http-equiv:\",\"\");e.push(`<meta http-equiv=\"${at(f)}\" content=\"${at(s)}\">`)}else if(o.startsWith(\"itemprop:\")){let f=o.replace(\"itemprop:\",\"\");e.push(`<meta itemprop=\"${at(f)}\" content=\"${at(s)}\">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property=\"${at(o)}\" content=\"${at(f)}\">`)):e.push(`<meta property=\"${at(o)}\" content=\"${at(s)}\">`):l?e.push(`<meta name=\"${at(o)}\" content=\"${at(s)}\">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name=\"${at(o)}\" content=\"${at(f)}\">`)):(typeof s==\"string\"||typeof s==\"number\"||typeof s==\"boolean\")&&e.push(`<meta name=\"${at(o)}\" content=\"${at(s)}\">`)}if(n||e.splice(1,0,'<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">'),Array.isArray(t.jsonLd))for(let o of t.jsonLd){if(o==null)continue;let s=typeof o==\"string\"?o:JSON.stringify(o),i=String(s).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script type=\"application/ld+json\" data-smbls-jsonld=\"${Ts(s)}\">${i}<\\/script>`)}if(Array.isArray(t.styles))for(let o of t.styles){if(o==null||!String(o).trim())continue;let s=String(o).replace(/<\\/style/gi,\"<\\\\/style\");e.push(`<style data-smbls-style=\"${Ts(s)}\">${s}</style>`)}if(Array.isArray(t.scripts))for(let o of t.scripts){if(!o)continue;let s=typeof o==\"string\",i=s?o:o.src;if(!i&&!(o&&o.body))continue;let a=[];i&&a.push(`src=\"${at(i)}\"`),s||(o.type&&a.push(`type=\"${at(o.type)}\"`),o.async&&a.push(\"async\"),o.defer&&a.push(\"defer\"),o.integrity&&a.push(`integrity=\"${at(o.integrity)}\"`),o.crossorigin&&a.push(`crossorigin=\"${at(o.crossorigin)}\"`),o.referrerpolicy&&a.push(`referrerpolicy=\"${at(o.referrerpolicy)}\"`),o.nomodule&&a.push(\"nomodule\"));let c=` data-smbls-script=\"${at(i||Ts(o.body||\"\"))}\"`;if(!s&&o.body){let l=String(o.body).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script ${a.join(\" \")}${c}>${l}<\\/script>`)}else e.push(`<script ${a.join(\" \")}${c}><\\/script>`)}return e.join(`\n`)},FC={define:{metadata:(t,e,r)=>{let n=e.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=G(()=>{let s=cn(t,e,e.state);Os(s,n);let i=e.state?.root;k(i)&&(i.$helmet=s)});e.__ref?.__effects&&e.__ref.__effects.push(o)}}},t_={name:\"helmet\",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<\"u\"&&document;if(!e)return;let r=G(()=>{let n=t.metadata;if(!n)return;let o=cn(n,t,t.state);Os(o,e)});t.__ref?.__effects&&t.__ref.__effects.push(r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<\"u\"&&document;if(!r)return;let n=cn(e,t,t.state);Os(n,r)}},yD=FC;Yi();var NC=(t,e,r,n)=>{t&&Gi(t,e,r,n)},jC=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=cn(t,e,r);Os(o,n)},BC=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},Rs={routes:t=>t,metadata:jC,fetch:NC,$router:BC},UC=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=jC),t.fetch!==!1&&(e.fetch=NC),t.router!==!1&&(e.$router=BC),e};var r_={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Ku={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Gu={...r_,router:Ku},bD={state:{},pages:{},components:{},router:Ku,define:Rs},ln=bD;P();P();var VC=(t,e)=>j(t.extends)?t.extends:[];P();var n_={};L(n_,{default:()=>SD,getActiveLang:()=>fn,getLanguages:()=>vc,getLocalStateLang:()=>Oc,initPolyglot:()=>Xu,loadTranslations:()=>Ec,polyglotPlugin:()=>Ds,setLang:()=>Ac,translate:()=>Cc,upsertTranslation:()=>Tc});P();var HC=\"smbls_lang\",_D=\"smbls_t_\",xD=\"smbls_tv_\",Ps={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)}}},kc={};function fn(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||t?.state?.lang||e?.defaultLang||\"en\"}function vc(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Yu=(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},zC=(t,e,r)=>{let n=e.lastIndexOf(\".\");if(n===-1)return t[e+\"_\"+r];let o=Yu(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=zC(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Yu(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=Yu(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||\"en\";if(s){let l=zC(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Yu(l,t);if(f!==void 0)return f}}return t}async function Ec(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||_D,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,\"v_\"):xD);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Ps.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(kc[i])return kc[i];let a=this;return kc[i]=(async()=>{try{let c=r.fetch,l=parseInt(Ps.get(s+t),10)||0,f,u,d;if(O(c)){let p=await c(t,l,a);if(!p||p.changed===!1)return;f=p.translations||p.data||p,u=p.version||0,d=!0}else if(k(c)){let p=a.getDB||(()=>e.fetch),g=O(p)?await p.call(a):e.fetch;if(!g)return;let m=c.rpc||c.from||\"get_translations_if_changed\",b={p_lang:t,p_cached_version:l,...c.params||{}},_=await g.rpc({from:m,params:b});if(_.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,_.error;let y=_.data;if(!y||!y.changed)return;f=y.translations||{},u=y.version||0,d=!0}else return;if(!d||!f)return;Ps.set(o+t,JSON.stringify(f)),u&&Ps.set(s+t,String(u));let h={translations:{...n.translations||{}}};h.translations[t]=f,n.update&&n.update(h)}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 kc[i]}})(),kc[i]}var wD=(t,e,r)=>{let n=t.__ref;if(!n||n.contentManaged||r==null||typeof r==\"object\")return;let o=n.__textNode;if(!o||o.parentNode!==e)return;let s=String(r);o.nodeValue!==s&&(o.nodeValue=s)};async function Ac(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root,o=e?.document||globalThis.document;if(!n)return;let s=r?.storageLangKey||HC;if(Ps.set(s,t),o?.documentElement&&(o.documentElement.lang=t),this.call(\"getActiveLang\")===t)return;r?.fetch&&await this.call(\"loadTranslations\",t),e?.state&&(e.state.lang=t);let i=r?.translations?.[t],a={lang:t},c=l=>hr(e,l,n);if(i&&typeof i==\"object\")for(let l in i){if(!c(l))continue;let f=i[l];(Array.isArray(f)||typeof f==\"string\"||typeof f==\"number\")&&(a[l]=f)}n.update&&n.update(a);for(let l in a)l!==\"lang\"&&Je(e,l);if(i&&typeof i==\"object\")for(let l in i){if(!c(l))continue;let f=i[l];if(f&&typeof f==\"object\"&&!Array.isArray(f)&&n[l]&&typeof n[l]==\"object\"&&!Array.isArray(n[l])){for(let u in f)n[l][u]=f[u];Je(e,l)}}if(o&&i){let l=o.querySelectorAll(\"[data-key]\");for(let f of l){let u=f.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d==\"string\"&&d.includes(\"{{\"))try{wD(u,f,u.call(\"replaceLiteralsWithObjectFields\",d,u.state))}catch{}}}}async function Tc(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&&k(o.fetch)){let i=this.getDB||(()=>n.fetch),a=O(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 Xu(){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||HC,s=Ps.get(n)||fn.call(this),i=t?.document||globalThis.document;i?.documentElement&&(i.documentElement.lang=s),r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call(\"loadTranslations\",s)}function Oc(t){try{let e=fn.call(this),r=this?.state;if(!r)return\"\";let n=t.lastIndexOf(\".\");if(n===-1)return r[t+e]??\"\";let o=t.substring(0,n).split(\".\"),s=r;for(let i=0;i<o.length;i++){if(s==null)return\"\";s=s[o[i]]}return s==null?\"\":s[t.substring(n+1)+e]??\"\"}catch{return\"\"}}var Ds={name:\"polyglot\",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Xu.call(t))}},SD=Ds;Yi();var s_={};L(s_,{SYSTEM_METRICS:()=>Rc,capsizeHandler:()=>o_,capsizePlugin:()=>Ju,computeCapsize:()=>WC,default:()=>kD,resolveFontSizePx:()=>qC,resolveMetrics:()=>KC});var Rc={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}},Zu=t=>parseFloat(t.toFixed(4)),WC=(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,d=l/i,h=(n-a+s/2)/i-(u-d)/2,p=(c+s/2)/i-(u-d)/2;return{fontSize:`${Zu(t/16)}rem`,lineHeight:`${Zu(f)}px`,capHeightTrim:`${Zu(-h)}em`,baselineTrim:`${Zu(-p)}em`}},qC=(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},KC=(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(Rc[i])return Rc[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(Rc[a])return Rc[a]}}return null},o_=(t,e,r,n)=>{if(!t)return;let o=qC(e.fontSize,n);if(!o)return;let s=KC(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=WC(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},Ju={name:\"capsize\",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},kD=Ju;var d_={};L(d_,{PRESERVE_VALUE_KEYS:()=>Ft,SKIP_INLINE_KEYS:()=>un,abbrToProp:()=>Mt,decode:()=>JC,encode:()=>YC,expand:()=>no,isComponentKey:()=>Ve,isSelectorKey:()=>ze,parse:()=>oo,parseFurther:()=>io,propToAbbr:()=>Pe,shorten:()=>Pc,shorthandPlugin:()=>Dc,stringify:()=>ro,stringifyFurther:()=>so});var Pe={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\"},Mt=Object.create(null);for(let t in Pe)Mt[Pe[t]]=t;var i_=Object.create(null);for(let t in Pe){let e=Pe[t];if(i_[e])throw new Error(`Duplicate abbreviation \"${e}\" for \"${t}\" \\u2014 already used by \"${i_[e]}\"`);i_[e]=t}var Ft=new Set([\"state\",\"st\",\"scope\",\"scp\",\"attr\",\"at\",\"style\",\"sy\",\"data\",\"dt\",\"context\",\"ctx\",\"query\",\"qy\",\"class\",\"cl\"]),un=new Set([\"text\",\"tx\",\"html\",\"htm\",\"content\",\"cnt\",\"placeholder\",\"phd\",\"src\",\"href\",\"hrf\"]);function Ve(t){return/^[A-Z]/.test(t)}function ze(t){return/^[:@.!$>&]/.test(t)||t.startsWith(\"> \")}function YC(t){if(!t||typeof t!=\"object\")return\"\";let e=[];for(let r in t){let n=t[r];if(typeof n==\"function\"||n!==null&&typeof n==\"object\"&&!Array.isArray(n)||n===void 0)continue;let o=Pe[r]||r;if(n===!0)e.push(o);else if(n===!1)e.push(\"!\"+o);else if(Array.isArray(n)){let s=n.map(i=>Qu(i));e.push(o+\":\"+s.join(\",\"))}else e.push(o+\":\"+Qu(n))}return e.join(\" \")}function Qu(t){return String(t).replace(/ /g,\"_\")}function Pc(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Pc(r):r});let e={};for(let r in t){let n=t[r];if(Ve(r)){e[r]=a_(n);continue}if(ze(r)){e[r]=a_(n);continue}let o=Pe[r]||r;if(Ft.has(r)||Ft.has(o)){e[o]=n;continue}e[o]=a_(n)}return e}function a_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Pc(e):e}):typeof t==\"object\"?Pc(t):t}function ro(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n==\"object\"?ro(n):n});let e={},r=[];for(let n in t){let o=t[n];if(Ve(n)){e[n]=GC(o);continue}if(ze(n)){e[n]=GC(o);continue}let s=Pe[n]||n;if(Ft.has(n)||Ft.has(s)){e[s]=o;continue}if(typeof o==\"function\"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(un.has(n)||un.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a==\"object\"})){e[s]=o.map(function(a){return a!==null&&typeof a==\"object\"?ro(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+\":\"+o.map(Qu).join(\",\"));continue}if(typeof o==\"object\"){e[s]=ro(o);continue}o===!0?r.push(s):o===!1?r.push(\"!\"+s):typeof o==\"number\"||typeof o==\"string\"&&(o.includes(\",\")||o.includes(\"_\"))?e[s]=o:r.push(s+\":\"+Qu(o))}return r.length&&(e.in=r.join(\" \")),e}function GC(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?ro(e):e}):typeof t==\"object\"?ro(t):t}function JC(t){if(!t||typeof t!=\"string\")return{};let e={},r=QC(t);for(let n of r){if(n.startsWith(\"!\")){let c=n.slice(1),l=Mt[c]||c;e[l]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let c=Mt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s;if(i.includes(\",\")){e[a]=i.split(\",\").map(XC);continue}e[a]=XC(i)}return e}function QC(t){return t.trim().split(/\\s+/).filter(Boolean)}function XC(t){let e=t.replace(/_/g,\" \");return/^-?\\d+(\\.\\d+)?$/.test(e)?Number(e):e}function ZC(t){return t.replace(/_/g,\" \")}function vD(t){if(!t||typeof t!=\"string\")return{};let e={},r=QC(t);for(let n of r){if(n.startsWith(\"!\")){let c=n.slice(1),l=Mt[c]||c;e[l]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let c=Mt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s;if(i.includes(\",\")){e[a]=i.split(\",\").map(ZC);continue}e[a]=ZC(i)}return e}function no(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?no(r):r});let e={};for(let r in t){let n=t[r];if(Ve(r)){e[r]=c_(n);continue}let o=Mt[r]||r;if(ze(r)&&o===r){e[r]=c_(n);continue}if(Ft.has(o)||Ft.has(r)){e[o]=n;continue}e[o]=c_(n)}return e}function c_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?no(e):e}):typeof t==\"object\"?no(t):t}function oo(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?oo(r):r});let e={};if(typeof t.in==\"string\"){let r=vD(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(Ve(r)){e[r]=l_(n);continue}let o=Mt[r]||r;if(ze(r)&&o===r){e[r]=l_(n);continue}if(Ft.has(o)||Ft.has(r)){e[o]=n;continue}e[o]=l_(n)}return e}function l_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?oo(e):e}):typeof t==\"object\"?oo(t):t}function t1(t){return String(t).replace(/\\\\/g,\"\\\\\\\\\").replace(/_/g,\"\\\\_\").replace(/,/g,\"\\\\,\").replace(/ /g,\"_\")}function CD(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 ED(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 e1(t){if(t==null||typeof t!=\"object\"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]===\"in\"&&typeof t.in==\"string\"}function so(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n==\"object\"?so(n):n});let e={},r=[];for(let n in t){let o=t[n];if(Ve(n)){let i=r1(o);e[n]=e1(i)?i.in:i;continue}if(ze(n)){let i=r1(o);e[n]=e1(i)?i.in:i;continue}let s=Pe[n]||n;if(Ft.has(n)||Ft.has(s)){e[s]=o;continue}if(typeof o==\"function\"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(un.has(n)||un.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a==\"object\"})){e[s]=o.map(function(a){return a!==null&&typeof a==\"object\"?so(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+\":\"+o.map(t1).join(\",\"));continue}if(typeof o==\"object\"){e[s]=so(o);continue}if(o===!0){r.push(s);continue}if(o===!1){r.push(\"!\"+s);continue}if(typeof o==\"number\"){r.push(s+\":#\"+o);continue}r.push(s+\":\"+t1(o))}return r.length&&(e.in=r.join(\" \")),e}function r1(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?so(e):e}):typeof t==\"object\"?so(t):t}function n1(t){return t.startsWith(\"#\")&&/^#-?\\d+(\\.\\d+)?$/.test(t)?Number(t.slice(1)):CD(t)}function f_(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=Mt[l]||l;e[f]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let l=Mt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s,c=ED(i);if(c.length>1){e[a]=c.map(n1);continue}e[a]=n1(i)}return e}function io(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?io(r):r});let e={};if(typeof t.in==\"string\"){let r=f_(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(Ve(r)){typeof n==\"string\"?e[r]=f_(n):e[r]=u_(n);continue}let o=Mt[r]||r;if(ze(r)&&o===r){typeof n==\"string\"?e[r]=f_(n):e[r]=u_(n);continue}if(Ft.has(o)||Ft.has(r)){e[o]=n;continue}e[o]=u_(n)}return e}function u_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?io(e):e}):typeof t==\"object\"?io(t):t}var AD={shorten:no,stringify:oo,stringifyFurther:io};function TD(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 OD=[\"components\",\"pages\",\"snippets\"],Dc={name:\"shorthand\",prepareContext(t){let e=t.shorthand;if(!e)return;let n=AD[e===!0?\"shorten\":e];if(n){for(let o of OD)t[o]&&(t[o]=TD(t[o],n));t.app&&typeof t.app==\"object\"&&(t.app=n(t.app))}}};var v_={};L(v_,{LEVELS:()=>Ic,analyzePlugin:()=>Ls,attachBrowserListeners:()=>cd,attachNetworkListeners:()=>$c,classifyEvent:()=>__,createAnalyzeState:()=>ld,createBeaconSink:()=>S_,createConsoleSink:()=>x_,createDedupe:()=>m_,createEnrich:()=>h_,createMemorySink:()=>w_,createPipeline:()=>nd,createRedact:()=>rd,createRemoteSink:()=>sd,createSample:()=>y_,createSummarize:()=>g_,default:()=>Ls,emitFetchEvent:()=>u1,makeEvent:()=>Z,meetsLevel:()=>td,normalizeLevel:()=>Lc,resolveSinks:()=>ad,summarizeElement:()=>ao});var RD=0,PD=()=>`${Date.now().toString(36)}-${(RD++).toString(36)}`,Z=(t,e,r={})=>({id:PD(),ts:Date.now(),type:t,level:e,...r}),DD=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(\" > \")},ao=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:DD(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Is=t=>t?.context?.analyze,ID={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\"}},LD=(t,{category:e,type:r,level:n})=>o=>{let s=Is(o);!s||!s.shouldCapture(e)||s.emit(Z(r,n,{hook:t,element:ao(o)}))},o1=t=>(e,r)=>{let n=Is(e);!n||!n.shouldCapture(\"state\")||n.emit(Z(\"state\",\"debug\",{hook:t,element:ao(e),changedKeys:r?.changedKeys||null}))},Ls={name:\"analyze\",error(t,e){let r=Is(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:ao(t),error:n,message:n?.message||(typeof e?.message==\"string\"?e.message:null)}))},renderRouter(t){let e=Is(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=Is(t);!e||!e.shouldCapture(\"updates\")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(t){let e=Is(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:ao(t),durationMs:r}))},beforeStateUpdate:o1(\"beforeStateUpdate\"),stateUpdate:o1(\"stateUpdate\")};for(let[t,e]of Object.entries(ID))Ls[t]=LD(t,e);P();var Ic={error:0,warn:1,info:2,debug:3,trace:4};var td=(t,e)=>{let r=Ic[t],n=Ic[e];return r==null||n==null?!0:r<=n},Lc=t=>Ic[t]!=null?t:\"warn\";P();var ed=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var $D=(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},MD=(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\"***\"}},p_=(t,e,r,n)=>{if(n>6||t==null||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(s=>p_(s,e,r,n+1));let o={};for(let s of Object.keys(t))if($D(s,e)||ed.test(s)){let a=MD(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=p_(t[s],e,r,n+1);return o},rd=(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:d,target:h,...p}=n,g=p_(p,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...g}}};var h_=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=C,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}}}},g_=()=>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},m_=(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}},y_=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},s1={redact:t=>rd(t.config.redact||[],t.config.maskStrategy),enrich:t=>h_(t),summarize:()=>g_(),dedupe:t=>m_(t.config.cache?.dedupeWindowMs||1e3),sample:t=>y_(t.config.sample||{})},FD=(t,e)=>{if(typeof t==\"function\")return t;if(typeof t==\"string\"){let r=s1[t];return r?r(e):null}return null},nd=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(s1.redact(t));for(let s of r){let i=FD(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 d=u,h=!1;for(let p of l)if(d=p(d),d==null){h=!0;break}!h&&d!=null&&f.push(d)}return f}i=c}return i}};P();P();var od=typeof C<\"u\"&&typeof C.document<\"u\",ND=5e3,jD=50,BD=3,UD=1500,VD=1e3,__=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\",zD=t=>{try{return JSON.stringify(t)}catch{return null}},HD=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},WD=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}},qD=()=>{if(!od)return null;try{let t=C.document?.documentElement?.getAttribute(\"data-theme\")||null,e=typeof C.matchMedia==\"function\"?C.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}},KD=()=>{if(!od)return null;let t=C.location,e=typeof navigator<\"u\"?navigator:null,r=typeof screen<\"u\"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:e?.userAgent||null,browser:WD(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:HD(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.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:qD()}},sd=(t={})=>{let e=t.url,r=typeof t.transport==\"function\"?t.transport:null,n=typeof t.syncTransport==\"function\"?t.syncTransport:null;if(!e&&!r)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth==\"function\"?t.getAuth:null,u=typeof t.getContext==\"function\"?t.getContext:null,d=typeof t.classify==\"function\"?t.classify:__,h=typeof t.beforeSend==\"function\"?t.beforeSend:null,p=t.debug===!0,g=typeof t.getDebug==\"function\"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:ND,b=t.maxBatch||jD,_=t.maxRetries!=null?t.maxRetries:BD,y=t.backoffMs||UD,x=t.queueLimit||VD,S=t.sampleRate!=null?t.sampleRate:1,v=()=>typeof crypto<\"u\"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,E=t.sessionId||v(),D=[],F=[],A=null,N=null,At=()=>{A||!D.length||(A=setTimeout(M,m))},Vt=$=>{if(N)return;let q=y*Math.pow(2,Math.max(0,$-1));N=setTimeout(()=>{if(N=null,!F.length)return;let mt=F.shift();it(mt.envelope,mt.attempt)},q)},kt=($,q=!1)=>{let mt=u?b_(u):null,X={id:E,sentAt:Date.now()};q&&(X.endedAt=Date.now());let Y={v:1,session:X,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:KD(),user:mt?.user||null,traits:mt?.traits||null,tags:mt?.tags||null,events:$};if((g?b_(g)===!0:p)&&(Y.app.debug=!0),h)try{return h(Y)||null}catch{return Y}return Y},it=async($,q=1)=>{if($)try{let mt=!0;if(r){let X=await r($);mt=X!==!1&&X?.ok!==!1}else mt=await GD(e,$,{apiKey:o,getAuth:f});!mt&&q<_&&(F.push({envelope:$,attempt:q+1}),Vt(q+1))}catch{q<_&&(F.push({envelope:$,attempt:q+1}),Vt(q+1))}},M=($=!1,q=!1)=>{if(A&&(clearTimeout(A),A=null),!D.length&&!q)return;let mt=D;D=[];let X=kt(mt,q);if(X){if($&&od){if(typeof n==\"function\"&&b_(()=>n(X)))return;if(navigator.sendBeacon&&e){let Y=zD(X);if(Y)try{navigator.sendBeacon(e,new C.Blob([Y],{type:\"application/json\"}));return}catch{}}}it(X)}},H=!1,gt=()=>{H||(H=!0,M(!0,!0))};od&&(C.addEventListener(\"pagehide\",gt,{passive:!0}),C.addEventListener(\"beforeunload\",gt,{passive:!0}),C.addEventListener(\"visibilitychange\",()=>{C.document.visibilityState===\"hidden\"&&M(!0)},{passive:!0}));let B=$=>{if(!$||S<1&&Math.random()>S)return;H&&(H=!1);let q={...$,log_type:d($)};D.push(q),D.length>x&&(D=D.slice(-x)),D.length>=b?M():At()},ht=$=>(M(!1,!0),E=$||v(),H=!1,B.sessionId=E,E);return B.flush=()=>M(!1),B.endSession=gt,B.startNewSession=ht,B.sessionId=E,B},b_=t=>{try{return t()}catch{return null}},GD=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 YD={error:\"\\x1B[31m\",warn:\"\\x1B[33m\",info:\"\\x1B[36m\",debug:\"\\x1B[90m\",trace:\"\\x1B[90m\"},XD=\"\\x1B[0m\",id=typeof C<\"u\"&&typeof C.document<\"u\",x_=(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(id)i(a,s);else{let c=YD[s.level]||\"\";i(`${c}${a}${XD}`,s)}}},w_=(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},S_=(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=id?new C.Blob([c],{type:\"application/json\"}):c;if(id&&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(()=>{})};id&&(C.addEventListener(\"pagehide\",i,{passive:!0}),C.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},i1={console:x_,memory:w_,beacon:S_,remote:sd},a1=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},ad=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=i1[n];if(!o)continue;r.push(n===\"memory\"?o(t,{}):o(n===\"remote\"?a1(t,{}):{}))}else if(n&&typeof n==\"object\"&&n.type){let o=i1[n.type];if(!o)continue;r.push(n.type===\"memory\"?o(t,n):o(n.type===\"remote\"?a1(t,n):n))}return r};P();var ZD=typeof C<\"u\"&&typeof C.document<\"u\",JD=new Set([\"password\",\"hidden\"]),c1=(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))))}},k_=\"__analyzeKeyPath\",$s=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[k_])return e[k_];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[k_]=i}catch{}return i},QD=(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\"***\"}},tI=t=>!!(!t||t.tagName===\"INPUT\"&&JD.has(t.type)||ed.test(t.name||\"\")||ed.test(t.id||\"\")||t.dataset?.analyze===\"skip\"),cd=t=>{if(!ZD)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(C,\"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(C,\"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(C,\"click\",i=>{t.emit(Z(\"pointer\",\"info\",{hook:\"click\",target:$s(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:l1(i)}))},{passive:!0,capture:!0}),o(C,\"dblclick\",i=>{t.emit(Z(\"pointer\",\"info\",{hook:\"dblclick\",target:$s(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(C,\"contextmenu\",i=>{t.emit(Z(\"pointer\",\"info\",{hook:\"contextmenu\",target:$s(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=c1(i=>{t.emit(Z(\"pointer\",\"trace\",{hook:\"pointermove\",x:i.clientX,y:i.clientY}))},r.pointermove);o(C,\"pointermove\",s,{passive:!0})}if(e.keyboard&&o(C,\"keydown\",s=>{t.emit(Z(\"keyboard\",\"info\",{hook:\"keydown\",code:s.code,key:s.key&&s.key.length===1?\"\\xB7\":s.key,modifiers:l1(s),target:$s(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=tI(a),f=a.dataset?.analyze===\"track\",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=QD(a.value,t.config.maskStrategy)),t.emit(Z(\"forms\",\"info\",{hook:i.type,target:$s(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(C,\"input\",s,{passive:!0,capture:!0}),o(C,\"change\",s,{passive:!0,capture:!0}),o(C,\"submit\",i=>{t.emit(Z(\"forms\",\"info\",{hook:\"submit\",target:$s(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=c1(()=>{t.emit(Z(\"scroll\",\"trace\",{hook:\"scroll\",x:C.scrollX,y:C.scrollY}))},r.scroll);o(C,\"scroll\",s,{passive:!0,capture:!0})}if(e.viewport){let s=ki(()=>{t.emit(Z(\"viewport\",\"info\",{hook:\"resize\",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},r.resize);o(C,\"resize\",s,{passive:!0}),o(C,\"orientationchange\",()=>{t.emit(Z(\"viewport\",\"info\",{hook:\"orientationchange\",orientation:typeof screen<\"u\"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,\"visibilitychange\",()=>{t.emit(Z(\"viewport\",\"info\",{hook:\"visibilitychange\",hidden:C.document.hidden}))},{passive:!0}),t.emit(Z(\"viewport\",\"info\",{hook:\"initial\",w:C.innerWidth,h:C.innerHeight,dpr:C.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(f1)}))}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{}},l1=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),eI=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=f1(t.cause)),e},f1=t=>{if(t==null)return t;if(t instanceof Error)return eI(t);if(typeof t==\"object\")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};P();var rI=typeof C<\"u\"&&typeof C.document<\"u\",u1=(t,e)=>{let r=t?.analyze;if(!r||!r.shouldCapture(\"network\"))return;let n=e.phase===\"error\"?\"error\":\"info\";r.emit(Z(\"network\",n,{hook:`fetch.${e.phase}`,source:\"symbo-fetch\",...e}))},$c=t=>{if(rI&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof C.fetch==\"function\"){let e=C.fetch.bind(C),r=function(n,o){if(o?.headers?.[\"X-Analyze-Beacon\"]||!t.shouldCapture(\"network\"))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})};C.fetch=r,t.__teardown.push(()=>{C.fetch=e})}if(typeof C.XMLHttpRequest==\"function\"){let e=C.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||!t.shouldCapture(\"network\"))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 nI={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},oI={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},sI={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},iI={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},aI=t=>{let e={...nI,...t};return e.replay&&Object.assign(e,oI),e.telemetry&&Object.assign(e,sI),e.remote&&Object.assign(e,iI),Object.assign(e,t),e},cI=64,lI=()=>{if(typeof C>\"u\"||!C.location)return null;try{let e=new URLSearchParams(C.location.search).get(\"analyze\");return e||null}catch{return null}},ld=(t={})=>{let e=t===!0?{}:{...t};e.capture=aI(e.capture||{});let r=lI();(r===\"debug\"||e.debug)&&(e.level=\"debug\",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),r===\"off\"&&(e.enabled=!1),e.level=Lc(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=nd(n),n.__sinks=ad(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&&td(s.level,n.config.level)){if(!n.__ready){if(s.level!==\"error\"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<cI&&n.__preBuffer.push(s);return}o(),d1(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)d1(n,a)}try{cd(n)}catch(a){console.error(\"[analyze] browser attach error:\",a)}try{$c(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=Lc(s)},n.setCapture=(s,i)=>{if(n.config.capture[s]=!!i,s===\"network\"&&i&&n.__ready)try{$c(n)}catch(a){console.error(\"[analyze] network attach error:\",a)}},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.startNewSession=s=>{let i=s||(typeof crypto<\"u\"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(n.config.sinks)?n.config.sinks:[];for(let c of a)c&&typeof c==\"object\"&&c.type===\"remote\"&&(c.sessionId=i);if(n.__sinks)for(let c of n.__sinks)typeof c.startNewSession==\"function\"&&c.startNewSession(i);return i},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},d1=(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 A_={};L(A_,{Inspect:()=>fd,inspectPlugin:()=>E_});P();function p1(t){return w(t)?t:R(t)?t.find(e=>w(e)):\"\"}function C_(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&p1(t.extends),n=t.parent&&t.parent.childExtends&&p1(t.parent.childExtends);return(e||r||n||\"\").split(\"_\")[0].split(\".\")[0].split(\"+\")[0]}function ud(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=C_(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?ud(t.parent):o&&(e[o]||r[o])?t:ud(t.parent)}var fI=(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}))}},fd={\".preventSelect\":{userSelect:\"none\"},\"!preventSelect\":{userSelect:\"auto\"},onInspect:fI,onMousemove:(t,e,r)=>{let n=t.target.ref,o=ud(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=C_(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),h={x:l,y:f,width:u,height:d};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}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=ud(n);if(!o)return;let s=C_(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(k(e)){let{Content:r,...n}=e;for(let o in n)Cs[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(fd):t.extends?t.extends=[t.extends,fd]:t.extends=[fd]}};var O_={};L(O_,{apiUrl:()=>T_,channelByApiUrl:()=>hI,channelNames:()=>dI,channels:()=>se,currentChannel:()=>dn,defaultChannel:()=>SI,deployTarget:()=>_I,isKnownChannel:()=>wI,mermaidUrl:()=>bI,normalizeOwnerSegment:()=>kI,normalizeProjectKey:()=>CI,normalizeProjectSlug:()=>vI,parseSymboLsHost:()=>EI,previewProjectUrl:()=>yI,previewUrl:()=>y1,resolveChannel:()=>co,screenshotCdnHost:()=>b1,screenshotCdnUrl:()=>xI,setChannel:()=>pI,shellUrl:()=>mI,socketUrl:()=>gI});var se={channels:{local:{api:\"http://localhost:8080\",socket:\"http://localhost:8080\",shell:\"http://my.localhost:1355\",preview:\"http://preview.localhost:1355\",mermaidApex:\"localhost:1355\",deploy:{}},development:{api:\"https://dev.api.symbols.app\",socket:\"https://dev.api.symbols.app\",shell:\"https://dev.my.symbols.app\",preview:\"https://dev.preview.symbols.app\",mermaidApex:\"dev.symbo.ls\",deploy:{shellBucket:\"smbls-my-dev\",previewWorker:\"smbls-preview-dev\",mermaidWorker:\"mermaid-dev\"}},\"demo-dev\":{api:\"https://dev.api.symbols.app\",socket:\"https://dev.api.symbols.app\",shell:\"https://dev.demo.symbols.app\",preview:\"https://dev.preview.symbols.app\",mermaidApex:\"dev.symbo.ls\",deploy:{shellBucket:\"smbls-my-demo-dev\",previewWorker:\"smbls-preview-dev\",mermaidWorker:\"mermaid-dev\"}},next:{api:\"https://next.api.symbols.app\",socket:\"https://next.api.symbols.app\",shell:\"https://next.my.symbols.app\",preview:\"https://next.preview.symbols.app\",mermaidApex:\"next.symbo.ls\",deploy:{shellBucket:\"smbls-my-next\",previewWorker:\"smbls-preview-next\",mermaidWorker:\"mermaid-next\"}},test:{api:\"https://test.api.symbols.app\",socket:\"https://test.api.symbols.app\",shell:\"https://test.my.symbols.app\",preview:\"https://test.preview.symbols.app\",mermaidApex:\"test.symbo.ls\",deploy:{shellBucket:\"smbls-my-test\",previewWorker:\"smbls-preview-test\",mermaidWorker:\"mermaid-test\"}},upcoming:{api:\"https://upcoming.api.symbols.app\",socket:\"https://upcoming.api.symbols.app\",shell:\"https://upcoming.my.symbols.app\",preview:\"https://upcoming.preview.symbols.app\",mermaidApex:\"upcoming.symbo.ls\",deploy:{shellBucket:\"smbls-my-upcoming\",previewWorker:\"smbls-preview-upcoming\",mermaidWorker:\"mermaid-upcoming\"}},staging:{api:\"https://staging.api.symbols.app\",socket:\"https://staging.api.symbols.app\",shell:\"https://staging.my.symbols.app\",preview:\"https://staging.preview.symbols.app\",mermaidApex:\"staging.symbo.ls\",deploy:{shellBucket:\"smbls-my-staging\",previewWorker:\"smbls-preview-staging\",mermaidWorker:\"mermaid-staging\"}},demo:{api:\"https://api.symbols.app\",socket:\"https://api.symbols.app\",shell:\"https://demo.symbols.app\",preview:\"https://preview.symbols.app\",mermaidApex:\"at.symbo.ls\",deploy:{shellBucket:\"smbls-my-demo\",previewWorker:\"smbls-preview\",mermaidWorker:\"mermaid\"}},production:{api:\"https://api.symbols.app\",socket:\"https://api.symbols.app\",shell:\"https://my.symbols.app\",preview:\"https://preview.symbols.app\",mermaidApex:\"at.symbo.ls\",deploy:{shellBucket:\"smbls-my-prod\",previewWorker:\"smbls-preview\",mermaidWorker:\"mermaid\"}}},defaultChannel:\"production\",screenshotCdn:\"screenshots.api.symbols.app\"};var dI=Object.keys(se.channels),Ar=t=>!!(t&&se.channels[t]),co=t=>Ar(t)?se.channels[t]:se.channels[se.defaultChannel],pI=t=>{typeof globalThis>\"u\"||(globalThis.__SYMBOLS_CHANNEL__=Ar(t)?t:null,Ms=void 0)},Ms,Mc=t=>typeof process<\"u\"&&process.env&&process.env[t]||null,dn=()=>{if(Ms!==void 0)return Ms;let t=typeof globalThis<\"u\"?globalThis.__SYMBOLS_CHANNEL__:null,e=Mc(\"SYMBOLS_CHANNEL\"),r=Mc(\"NODE_ENV\");return Ms=Ar(t)&&t||Ar(e)&&e||Ar(r)&&r||se.defaultChannel,Ms===se.defaultChannel&&!Ar(t)&&!Ar(e)&&!Ar(r)&&typeof process<\"u\"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${r||\"unset\"}, __SYMBOLS_CHANNEL__ unset) \\u2014 falling back to \"${se.defaultChannel}\". Outbound URLs (shellUrl/apiUrl) will target production; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel.`),Ms},h1=[\"production\",\"staging\",\"upcoming\",\"next\",\"test\",\"development\",\"local\",\"demo\",\"demo-dev\"],g1=t=>{let e=h1.indexOf(t);return e===-1?h1.length:e},hI=t=>{if(!t)return null;let e=Object.keys(se.channels).filter(r=>se.channels[r].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((r,n)=>g1(r)-g1(n))[0]},T_=(t=dn())=>Mc(\"SYMBOLS_API_URL\")||co(t).api,gI=(t=dn())=>Mc(\"SYMBOLS_SOCKET_URL\")||co(t).socket,mI=(t=dn())=>co(t).shell||null,y1=(t=dn())=>co(t).preview||null,yI=({owner:t,key:e,env:r=\"production\"}={},n=dn())=>{let o=y1(n);if(!o||!t||!e)return null;let s=o.match(/^(https?:\\/\\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!r||r===\"production\"||r===\"prod\"?l:`${l}?env=${encodeURIComponent(r)}`},bI=({owner:t,key:e,env:r=\"production\"}={},n=dn())=>{let o=co(n).mermaidApex;if(!o||!t||!e)return null;let i=!r||r===\"production\"||r===\"prod\"?\"\":`--${encodeURIComponent(r)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith(\"localhost\")?\"http\":\"https\"}://${a}.${o}`},_I=(t=dn())=>co(t).deploy||{},b1=()=>Mc(\"SYMBOLS_SCREENSHOT_CDN\")||se.screenshotCdn,xI=({owner:t,key:e,page:r=\"root\",componentKey:n,env:o=\"production\",width:s}={})=>{if(!t||!e)return null;let i=n?`component/${encodeURIComponent(n)}`:encodeURIComponent(String(r||\"root\").replace(/^\\/+/,\"\").replace(/\\//g,\"-\")||\"root\"),a=[];o&&o!==\"production\"&&a.push(`env=${encodeURIComponent(o)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join(\"&\")}`:\"\";return`https://${b1()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},wI=Ar,SI=se.defaultChannel,kI=t=>t==null||typeof t!=\"string\"?\"\":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,\"-\").replace(/-+/g,\"-\").replace(/^-+|-+$/g,\"\").slice(0,32)||\"\",vI=t=>t==null||typeof t!=\"string\"?\"\":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,\"-\").replace(/-+/g,\"-\").replace(/^-+|-+$/g,\"\").slice(0,48)||\"\",CI=(t,e={})=>{let r=String(t||\"\").trim();if(!r)return\"\";/\\.symbo\\.ls$/iu.test(r)&&(r=r.replace(/\\.symbo\\.ls$/iu,\"\")),r.includes(\"/\")&&(r=r.split(\"/\").pop());let n=typeof e.owner==\"string\"?e.owner.trim():\"\";return n&&r.startsWith(`${n}--`)?r=r.slice(n.length+2):!n&&r.includes(\"--\")&&(r=r.slice(r.indexOf(\"--\")+2)),r},m1={at:\"production\",prod:\"production\",production:\"production\",dev:\"development\",development:\"development\",next:\"next\",upcoming:\"upcoming\",test:\"test\",staging:\"staging\"},EI=t=>{if(typeof t!=\"string\"||!t)return null;let e=t.toLowerCase().replace(/^www\\./,\"\").replace(/\\/$/,\"\");if(!e.endsWith(\".symbo.ls\"))return null;let r=e.split(\".\");if(r.length<4||r.slice(-2).join(\".\")!==\"symbo.ls\")return null;if(r.length===4){let s=r[1],i=r[0],a=m1[s];if(a&&i.includes(\"--\")){let c=i.split(\"--\");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?m1[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(r.length>=5)return{projectKey:r[1],owner:r[2],env:r[0]};let n=r[1],o=r[0];if(o.includes(\"--\")){let[s,i]=o.split(\"--\",2);return!s||!i?null:{projectKey:s,owner:n,env:i}}return{projectKey:o,owner:n,env:\"production\"}};var D_={};L(D_,{BUILD_DOMQL_SYSTEM_PROMPT:()=>R1,DEFAULT_MAX_TOKENS:()=>yd,DEFAULT_MODEL:()=>pn,DEFAULT_PROVIDER:()=>jc,DEFAULT_TEMPERATURE:()=>md,MODEL_TIER_ALIASES:()=>P_,PROVIDER_MODELS:()=>Nc,SIMONE_BASE_URL:()=>Fc,SIMONE_CHAT_PATH:()=>dd,SIMONE_CODE_PATH:()=>pd,SIMONE_CODE_SYMBOLS_PATH:()=>hd,SIMONE_HEALTH_PATH:()=>gd,SIMONE_TOOLS_PATH:()=>_1,WORKSPACE_SYSTEM_PROMPT:()=>O1,buildMessages:()=>v1,chat:()=>Bc,health:()=>k1,parseSimoneResponse:()=>A1,resolveModel:()=>P1,streamChat:()=>Bc,streamCode:()=>w1,streamCodeSymbols:()=>S1,toLegacyEnvelope:()=>T1});var Fc=\"https://symbols-service-production.up.railway.app\",dd=\"/api/chat\",pd=\"/api/code\",hd=\"/api/code-symbols\",gd=\"/api/health\",_1=\"/api/tools\",Nc={\"openai-compatible\":[\"claude-sonnet-4-6\",\"claude-opus-4-6\",\"gpt-4o\",\"gpt-4o-mini\",\"deepseek-chat\"],anthropic:[\"claude-sonnet-4-6\",\"claude-sonnet-4-5-20250929\",\"claude-opus-4-1-20250805\",\"claude-haiku-4-5-20251001\"],openrouter:[\"google/gemini-3-pro-preview\"],gemini:[\"gemini-2.5-pro\",\"gemini-3.1-pro-preview\"]},jc=\"gemini\",pn=Nc[jc][0],md=.7,yd=4096;function AI(t){if(!t)return null;for(let[e,r]of Object.entries(Nc))if(r.includes(t))return e;return null}function x1(t,e){return t?t.replace(/\\/$/,\"\")+e:e}function TI(t){if(!t.startsWith(\"data: \"))return null;let e=t.slice(6);if(e===\"[DONE]\")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function Bc(t,e={},r){let{baseUrl:n=Fc,path:o=dd,model:s=pn,provider:i=AI(s)||jc,temperature:a=md,maxTokens:c=yd,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError(\"simone: messages must be a non-empty array\");let h={messages:t,provider:i,model:s,temperature:a,maxTokens:c};l&&(h.effort=l),f&&(h.apiKeys=f);let p=await fetch(x1(n,o),{method:\"POST\",headers:{\"Content-Type\":\"application/json\",Accept:\"text/event-stream\",...d},body:JSON.stringify(h),signal:u});if(!p.ok){let x=p.statusText;try{let v=await p.text();try{let E=JSON.parse(v);x=E.error||E.detail||x}catch{x=v||x}}catch{}let S=new Error(`simone: HTTP ${p.status} \\u2014 ${x}`);throw S.status=p.status,S}if(!p.body||typeof p.body.getReader!=\"function\"){let x=await p.text();return r&&r(x),{text:x,errors:[]}}let g=p.body.getReader(),m=new TextDecoder,b=[],_=[],y=\"\";try{for(;;){let{done:x,value:S}=await g.read();if(x)break;y+=m.decode(S,{stream:!0});let v=y.indexOf(`\n`);for(;v!==-1;){let E=y.slice(0,v).trim();if(y=y.slice(v+1),E){let D=TI(E);if(D?.done)return{text:b.join(\"\"),errors:_};let F=D?.chunk;F?.delta&&(b.push(F.delta),r&&r(F.delta)),F?.error&&_.push(F.error)}v=y.indexOf(`\n`)}}return{text:b.join(\"\"),errors:_}}finally{g.cancel().catch(()=>{})}}function w1(t,e={},r){return Bc(t,{...e,path:pd},r)}function S1(t,e={},r){return Bc(t,{...e,path:hd},r)}async function k1(t={}){let{baseUrl:e=Fc,signal:r,headers:n}=t,o=await fetch(x1(e,gd),{method:\"GET\",headers:n,signal:r});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function v1({system:t,history:e=[],user:r,context:n}){let o=[];t&&o.push({role:\"system\",content:t});for(let s of e)!s||!s.role||typeof s.content!=\"string\"||!s.content||o.push({role:s.role,content:s.content});if(r){let s=r;if(n!=null){let i=typeof n==\"string\"?n:JSON.stringify(n,null,2);s=`${s}\n\n---\nContext:\n\\`\\`\\`json\n${i}\n\\`\\`\\``}o.push({role:\"user\",content:s})}return o}var E1=/```(?<lang>[a-zA-Z0-9_+-]*)\\n(?<code>[\\s\\S]*?)```/g,OI=new Set([\"component\",\"components\",\"page\",\"pages\",\"function\",\"method\",\"state\",\"theme\",\"color\",\"font\",\"icon\"]);function RI(t){let e=[];for(let r of t.matchAll(E1))e.push({lang:(r.groups?.lang||\"\").toLowerCase(),code:r.groups?.code??\"\"});return e}function PI(t){return t.replace(E1,\"\").trim()}function R_(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\\s*([}\\]])/g,\"$1\"))}catch{}return null}function C1(t){return!!t&&typeof t==\"object\"&&typeof t.type==\"string\"&&OI.has(t.type)}function A1(t){let e=(typeof t==\"string\"?t:\"\").trim();if(!e)return{kind:\"text\",text:\"\",message:\"\"};let r=RI(e),n=r.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=r.filter(i=>i.lang===\"json\"),s=PI(e);for(let i of o){let a=R_(i.code);if(C1(a))return{kind:\"asset\",text:s||a.description||\"\",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||\"\"}`.trim()}}if(n.length>0){let i=n[0].code,a=R_(\"[\"+i+\"]\");return Array.isArray(a)&&a.length>1?{kind:\"multi\",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:\"component\",text:s,code:i,message:s||\"Generated a component\"}}if(e.startsWith(\"{\")){let i=R_(e);if(C1(i))return{kind:\"asset\",text:i.description||\"\",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||\"\"}`.trim()}}return{kind:\"text\",text:e,message:e}}function T1(t){if(!t)return{code_response:{type:\"error\",content:\"Empty response from assistant\"}};switch(t.kind){case\"asset\":return{code_response:{type:\"json_response\",data:t.asset}};case\"multi\":return{code_response:{type:\"symbols_component_code\",component_code:t.code}};case\"component\":return{code_response:{type:\"symbols_component_code\",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:\"plain_text_response\",content:t.text||t.message||\"\"}}}}var O1=[\"You are Simone, the Symbols.app assistant.\",\"You help users build DOMQL v3 components, pages, and design-system entries.\",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of \"component\", \"page\", \"function\", \"state\", \"color\", \"font\", \"icon\", \"theme\".',\"For multiple assets, return one ```js fenced block with comma-separated asset objects.\",\"For general questions, reply with prose only.\"].join(\" \"),R1=[\"You are a DOMQL v3.14 code generator for the Symbols workspace.\",\"Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \\u2014 never a description, never a plan, never an explanation.\",\"Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \\u2014 never on:{} or props:{} wrappers.\",\"OUTPUT FORMAT \\u2014 pick ONE:\",\"- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \\u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).\",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { \"pages\": { \"PageKey\": \"<DOMQL object-literal source string>\" }, \"components\": { \"CompKey\": \"<DOMQL object-literal source string>\" } }. Include only the sections you produce; each value is the DOMQL source for that key.',\"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.\",\"Emit ONLY the single fenced block. No text before or after it.\"].join(`\n`),P_={Starter:pn,Free:pn,Pro:\"claude-opus-4-6\"};function P1(t){return t?P_[t]||t:pn}var D1={\"@symbo.ls/signal\":_p,\"@symbo.ls/scratch\":Qm,\"@symbo.ls/element\":ob,\"@symbo.ls/css\":ay,\"@symbo.ls/utils\":Vo,\"@symbo.ls/state\":By,\"@symbo.ls/router\":bc,\"@symbo.ls/polyglot\":n_,\"@symbo.ls/helmet\":e_,\"@symbo.ls/fetch\":of,\"@symbo.ls/capsize\":s_,\"@symbo.ls/shorthand\":d_,\"@symbo.ls/analyze\":v_,\"@symbo.ls/inspect\":A_,\"@symbo.ls/channels\":O_,\"@symbo-ls/simone-server\":D_},I1=(t,e)=>{let r=t||(typeof globalThis<\"u\"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in D1)n[o]||(n[o]=D1[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n},L1=(t,e)=>{let r=t||(typeof globalThis<\"u\"?globalThis:null);if(!r||!e||typeof e!=\"object\")return null;let n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!=\"function\"||Object.prototype.hasOwnProperty.call(n,o))continue;let i=a=>(Object.defineProperty(n,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return n},$1=[\"@symbo.ls/sdk\"],M1=(t,e)=>{let r=e||(typeof globalThis<\"u\"?globalThis:null);if(!r||!t||typeof t!=\"object\")return null;let n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!=\"object\"&&typeof s!=\"function\"||n[o]||(n[o]=s)}return n},DI=/^@symbo[-.]ls\\//,II=t=>t.includes(\"/\")?t.slice(t.indexOf(\"/\")+1):t,F1=(t,e)=>{let r=e||(typeof globalThis<\"u\"?globalThis:null);if(!r||!Array.isArray(t))return null;let n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o of t){let s=o&&o.library?o.library:o;if(!s||typeof s!=\"object\"||s.__isStub)continue;let i=s.key||s.name||s.__libraryKey,a=[];for(let c of[s.key,s.name,s.__libraryKey,s.__libraryName]){if(typeof c!=\"string\"||!c||c!==i&&!DI.test(c))continue;let l=II(c);l&&!a.includes(l)&&a.push(l)}for(let c of a)for(let l of[`@symbo-ls/${c}`,`@symbo.ls/${c}`])n[l]||(n[l]=s)}return n};P();var N1=t=>{let e={faces:0,links:0};if(!t)return e;for(let r in t){let n=t[r];if(!n||!n.fontFace)continue;let o=Array.isArray(n.fontFace)?n.fontFace:[n.fontFace];for(let s of o){if(j1(s)){let i=LI(s);i&&$I(i)&&e.links++;continue}typeof s==\"string\"&&s.includes(\"font-family\")&&(St(`@font-face { ${s} }`),e.faces++)}}return e},j1=t=>typeof t==\"string\"&&t.trim().startsWith(\"@import\"),LI=t=>{if(!j1(t))return null;let e=String(t).match(/url\\(\\s*['\"]?([^'\")]+)['\"]?\\s*\\)/);return e?e[1].trim():null},$I=(t,e)=>{if(typeof t!=\"string\"||!t)return null;let r=e||Xn();if(!r||!r.head)return null;let n=\"data-smbls-font\",o=r.head.querySelectorAll(`link[rel=\"stylesheet\"][${n}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(n)===t)return o[i];let s=r.createElement(\"link\");return s.setAttribute(\"rel\",\"stylesheet\"),s.setAttribute(\"href\",t),s.setAttribute(n,t),r.head.appendChild(s),s};var z1=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},B1=(t=\"smbls\")=>{let e={};for(let r in eo)Object.prototype.hasOwnProperty.call(eo,r)&&(Ze(r)?e[`smbls.${r}`]=eo[r]:e[r]=eo[r]);return e},H1=t=>t.components?{...B1(),...t.components}:B1(),W1=t=>({...xc,...bc,...qr,...t.utils,...t.snippets,...t.functions}),q1=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var K1=t=>typeof globalThis<\"u\"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,MI=3e3,FI=(t,e,r=n=>import(n))=>{if(typeof globalThis>\"u\")return Promise.resolve(null);try{let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(n[t])return Promise.resolve(n[t]);let o=Promise.resolve().then(()=>r(e)).then(i=>(i&&!n[t]&&(n[t]=i),n[t]||null)).catch(()=>null);return new Promise(i=>{let a=setTimeout(()=>i(null),MI);o.then(c=>{clearTimeout(a),i(c)})})}catch{return Promise.resolve(null)}},U1={},M_=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=FI})=>{if(o||(o=Ur[s]||Fo(i)||\"esmsh\"),!t)return null;if(!In(t))return console.warn(`[smbls] dependencies is ${Array.isArray(t)?\"an ARRAY\":`a ${typeof t}`}, not a package-name-keyed object \\u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own \"dependencies\" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=Nr()&&n?`?${Math.random()}`:\"\",f=async(d,h)=>{let p=Me(d,h,o)+l;try{await Promise.race([No(p,{document:r,type:\"module\"}),new Promise((g,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,p)}catch(g){if(console.error(`Failed to load ${d} from ${o}:`,g),o!==\"symbols\")try{let m=Me(d,h,\"symbols\")+l;await Promise.race([No(m,{document:r,type:\"module\"}),new Promise((b,_)=>setTimeout(()=>_(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let h=t[d];if(!(e&&e[d])&&!U1[d]&&(U1[d]=!0,!Vr(d))){if(Dn(d)){console.warn(`[smbls] dependency \"${d}\" looks like an un-interpolated template placeholder, not a real package specifier \\u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}K1(d)||u.push(f(d,h))}}return u.length&&await Promise.allSettled(u),t},V1=/\\[smbls\\] runtime dependency \"([^\"]+)\" is not registered on globalThis\\.__SMBLS_PKGS__/g,NI=t=>{if(typeof t==\"string\")return t;if(typeof t==\"function\")try{return typeof Ie==\"function\"?Ie(t):Function.prototype.toString.call(t)}catch{return\"\"}return\"\"},jI=t=>{let e=new Set;if(!t)return e;let r=[t.globalScope,t.functions,t.methods,t.snippets];for(let n=0;n<r.length;n++){let o=r[n];if(!o||typeof o!=\"object\")continue;let s=Object.keys(o);for(let i=0;i<s.length;i++){let a;try{a=o[s[i]]}catch{continue}let c=NI(a);if(!c||c.indexOf(\"__SMBLS_PKGS__\")===-1)continue;V1.lastIndex=0;let l;for(;(l=V1.exec(c))!==null;)e.add(l[1])}}return e},BI=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!=\"function\")return e;let r;try{r=t.querySelectorAll('script[type=\"importmap\"]')}catch{return e}for(let n=0;n<r.length;n++){let o;try{o=JSON.parse(r[n].textContent||\"\")}catch{continue}let s=o&&typeof o==\"object\"?o.imports:null;if(s&&typeof s==\"object\"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},UI=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let r of e)if(r.length>1&&r.endsWith(\"/\")&&t.length>r.length&&t.startsWith(r))return!0;return!1},G1=(t,{syncRead:e=jI(t),runtimeDocument:r=typeof document<\"u\"?document:null,importMap:n=BI(r)}={})=>{let o=t&&t.dependencies;if(!In(o))return null;let s=!t.document||t.document===r,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&UI(l,n)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},VI=t=>import(t),I_={},zI=(t,e)=>{if(!e||typeof globalThis>\"u\")return;let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});r[t]||(r[t]=e)},HI=(t,{importModule:e=VI}={})=>{let r=[];if(!t)return Promise.resolve([]);for(let n in t)Vr(n)||Dn(n)||K1(n)||(I_[n]||(I_[n]=Promise.resolve().then(()=>e(n)).then(o=>(zI(n,o),o||null),()=>null)),r.push(I_[n]));return Promise.all(r)},WI=2e3,qI=3e3,Y1=(t,{win:e=typeof window<\"u\"?window:null,importModule:r,loadTimeoutMs:n=qI}={})=>t?new Promise(o=>{let s=()=>{HI(t,{importModule:r}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback==\"function\"?e.requestIdleCallback(s,{timeout:WI}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!==\"complete\"&&typeof e.addEventListener==\"function\"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener==\"function\"&&e.removeEventListener(\"load\",f),i())};e.addEventListener(\"load\",f,{once:!0}),l=setTimeout(f,n)}else i()}):null,X1=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||Fo(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]&&Vr(a))return await u.require(a,c);if(!u.packages[a]){let d=Nr()?`?${Math.random()}`:\"\";if(l&&l[a]){let h=l[a],p=Me(a,h,c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!==\"symbols\"){let m=Me(a,h,\"symbols\")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let h=Me(a,\"latest\",c)+d;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(p){if(console.error(`Failed to load ${a} from ${c}:`,p),c!==\"symbols\"){let g=Me(a,\"latest\",\"symbols\")+d;await i.utils.loadRemoteScript(g,{window:u,document:f})}}u.packages[a]=\"loadedOnDeman\"}}return await u.require(a,c)};r.packages?r.packages=yt(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)},KI=/\\s+/g,Z1=(t,e)=>typeof t==\"function\"?t(e,e?.state,e?.context):t,GI=(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+=` ${Z1(o,e)}`)}return r},YI=(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=GI(t,e));let o=t.replace(KI,\" \").trim();if(r&&typeof r.setAttribute==\"function\")r.setAttribute(\"class\",o);else if(r)try{r.className=o}catch{}return o},XI=()=>(t,e,r)=>{let n=Z1(t,e);if(t){let{__ref:o}=e;o.__class.style=n}J1()(e.classlist,e,e.state,!0)},J1=()=>(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=pe(c),i[a]=l}for(let a in i)a===\"classProps\"||a===\"class\"||s[a]===void 0&&delete i[a];e.node&&YI(i,e,e.node)}},ZI=()=>({style:XI(),classlist:J1()}),JI=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],L_=new WeakSet,$_=!1,QI=t=>!!t&&typeof t==\"object\",Q1=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||ZI(),s=e.designSystem?nt(st(e.designSystem),st(mc),fe):st(mc),i={};for(let g of JI)e[g]!==void 0&&(i[g]=e[g]);let a,c=QI(r),f=c&&L_.has(r)&&!e.skipDesignSystemInit,u=!f&&!$_,d=f?`[data-smbls-app=\"${t}\"]`:\":root\";if(e.scopeSelector=d,e.skipDesignSystemInit){if(a=T(t)||T(),a&&(a.__domDocument=r),a?.CSS_VARS){ot(a);try{St({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&St(Wu(a.CSS_MEDIA_VARS,d));let g=Kn(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(g).length&&St(g)}finally{rt()}}}else if(u){let g=T();g&&(g.__domDocument=r),a=Er(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...Gu,...i,...n}),a&&a!==g&&(a.__domDocument=r),c&&L_.add(r),$_=!0}else{let g=Aa(t,s,{cleanBase:!0});for(let m in i)g[m]=i[m];if(g.__domDocument=r,f){let m=t.replace(/[^a-zA-Z0-9]/g,\"\").substring(0,6);e.cssPrefix=m,g.varPrefix=m}ot(g);try{a=Er(g,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...Gu,...i,...n})}finally{rt()}c&&L_.add(r),$_=!0}let h=a?.CONFIG||a,p=h?.font;if(p){ot(h);try{N1(p)}finally{rt()}}return[a,o]},tE=(t,e)=>{let r={};e.state&&nt(r,e.state),t&&t.state&&nt(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=new Set,a=new Set,c=(u,d)=>{if(!a.has(u)){if(!hr(e,u,r)){i.add(u);return}r[u]=d,a.add(u),Je(e,u)}},l=n.translations[s];if(l&&typeof l==\"object\")for(let u in l)c(u,l[u]);let f=new Set(n.languages||[]);for(let u in n.translations)f.has(u)||c(u,n.translations[u]);i.size&&n.verbose!==!1&&e.verbose!==!1&&console.warn(`[polyglot] ${i.size} translation key${i.size===1?\"\":\"s\"} collide${i.size===1?\"s\":\"\"} with a declared root-state key (${[...i].join(\", \")}) \\u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \\`{{ key | polyglot }}\\` instead of a bare \\`{{ key }}\\`.`)}return r.isRootState=!0,st(r)},eE=(t,e)=>{k(t.routes)&&k(e.pages)&&yt(t.routes,e.pages);let r=t.routes||e.pages||{},n=[];for(let o in r){if(o.charCodeAt(0)===47)continue;let i=\"/\"+(o===\"index\"?\"\":o);Object.prototype.hasOwnProperty.call(r,i)?n.push(`${o} -> ${i}`):r[i]=r[o],delete r[o]}return n.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${n.length} explicitly declared route${n.length===1?\"\":\"s\"} over a same-named page key (${n.join(\", \")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \\u2014 add it to that library's ignoreList if you did not intend the collision.`),r},rE=t=>{ha(t,t.sharedLibraries)};var Uc={polyglot:Cc,getLocalStateLang:Oc,getActiveLang:fn,getLang:fn,setLang:Ac,getLanguages:vc,loadTranslations:Ec,upsertTranslation:Tc};Yi();var He=Object.create(null);He.open=\"0\";He.close=\"1\";He.ping=\"2\";He.pong=\"3\";He.message=\"4\";He.upgrade=\"5\";He.noop=\"6\";var Vc=Object.create(null);Object.keys(He).forEach(t=>{Vc[He[t]]=t});var zc={type:\"error\",data:\"parser error\"};var sE=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",iE=typeof ArrayBuffer==\"function\",aE=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Hc=({type:t,data:e},r,n)=>sE&&e instanceof Blob?r?n(e):nE(e,n):iE&&(e instanceof ArrayBuffer||aE(e))?r?n(e):nE(new Blob([e]),n):n(He[t]+(e||\"\")),nE=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];e(\"b\"+(n||\"\"))},r.readAsDataURL(t)};function oE(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var F_;function cE(t,e){if(sE&&t.data instanceof Blob)return t.data.arrayBuffer().then(oE).then(e);if(iE&&(t.data instanceof ArrayBuffer||aE(t.data)))return e(oE(t.data));Hc(t,!1,r=>{F_||(F_=new TextEncoder),e(F_.encode(r))})}var lE=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",Wc=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let t=0;t<lE.length;t++)Wc[lE.charCodeAt(t)]=t;var fE=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=Wc[t.charCodeAt(n)],i=Wc[t.charCodeAt(n+1)],a=Wc[t.charCodeAt(n+2)],c=Wc[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 tL=typeof ArrayBuffer==\"function\",qc=(t,e)=>{if(typeof t!=\"string\")return{type:\"message\",data:uE(t,e)};let r=t.charAt(0);return r===\"b\"?{type:\"message\",data:eL(t.substring(1),e)}:Vc[r]?t.length>1?{type:Vc[r],data:t.substring(1)}:{type:Vc[r]}:zc},eL=(t,e)=>{if(tL){let r=fE(t);return uE(r,e)}else return{base64:!0,data:t}},uE=(t,e)=>e===\"blob\"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var dE=\"\u001e\",pE=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Hc(s,!1,a=>{n[i]=a,++o===r&&e(n.join(dE))})})},hE=(t,e)=>{let r=t.split(dE),n=[];for(let o=0;o<r.length;o++){let s=qc(r[o],e);if(n.push(s),s.type===\"error\")break}return n};function gE(){return new TransformStream({transform(t,e){cE(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 N_;function bd(t){return t.reduce((e,r)=>e+r.length,0)}function _d(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 mE(t,e){N_||(N_=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(bd(r)<1)break;let c=_d(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(bd(r)<2)break;let c=_d(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(bd(r)<8)break;let c=_d(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(zc);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(bd(r)<o)break;let c=_d(r,o);a.enqueue(qc(s?c:N_.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(zc);break}}}})}var j_=4;function dt(t){if(t)return rL(t)}function rL(t){for(var e in dt.prototype)t[e]=dt.prototype[e];return t}dt.prototype.on=dt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this};dt.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.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};dt.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};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+t]||[]};dt.prototype.hasListeners=function(t){return!!this.listeners(t).length};var Tr=typeof Promise==\"function\"&&typeof Promise.resolve==\"function\"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),Gt=typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")(),yE=\"arraybuffer\";function xd(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var nL=Gt.setTimeout,oL=Gt.clearTimeout;function Or(t,e){e.useNativeTimers?(t.setTimeoutFn=nL.bind(Gt),t.clearTimeoutFn=oL.bind(Gt)):(t.setTimeoutFn=Gt.setTimeout.bind(Gt),t.clearTimeoutFn=Gt.clearTimeout.bind(Gt))}var sL=1.33;function bE(t){return typeof t==\"string\"?iL(t):Math.ceil((t.byteLength||t.size)*sL)}function iL(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 wd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function _E(t){let e=\"\";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+=\"&\"),e+=encodeURIComponent(r)+\"=\"+encodeURIComponent(t[r]));return e}function xE(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 Sd=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type=\"TransportError\"}},Rr=class extends dt{constructor(e){super(),this.writable=!1,Or(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 Sd(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=qc(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=_E(e);return r.length?\"?\"+r:\"\"}};var Kc=class extends Rr{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)};hE(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,pE(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]=wd()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var wE=!1;try{wE=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var SE=wE;function aL(){}var B_=class extends Kc{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}},hn=class t extends dt{constructor(e,r,n){super(),this.createRequest=e,Or(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=xd(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=aL,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()}};hn.requestsCount=0;hn.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",kE);else if(typeof addEventListener==\"function\"){let t=\"onpagehide\"in Gt?\"pagehide\":\"unload\";addEventListener(t,kE,!1)}}function kE(){for(let t in hn.requests)hn.requests.hasOwnProperty(t)&&hn.requests[t].abort()}var cL=(function(){let t=vE({xdomain:!1});return t&&t.responseType!==null})(),gn=class extends B_{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=cL&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new hn(vE,this.uri(),e)}};function vE(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!e||SE))return new XMLHttpRequest}catch{}if(!e)try{return new Gt[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var CE=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",V_=class extends Rr{get name(){return\"websocket\"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=CE?{}:xd(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;Hc(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Tr(()=>{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]=wd()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},U_=Gt.WebSocket||Gt.MozWebSocket,mn=class extends V_{createSocket(e,r,n){return CE?new U_(e,r,n):r?new U_(e,r):new U_(e)}doWrite(e,r){this.ws.send(r)}};var Fs=class extends Rr{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=mE(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=gE();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&&Tr(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var z_={websocket:mn,webtransport:Fs,polling:gn};var lL=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,fL=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function Ns(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=lL.exec(t||\"\"),s={},i=14;for(;i--;)s[fL[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=uL(s,s.path),s.queryKey=dL(s,s.query),s}function uL(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 dL(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var H_=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",kd=[];H_&&addEventListener(\"offline\",()=>{kd.forEach(t=>t())},!1);var lo=class t extends dt{constructor(e,r){if(super(),this.binaryType=yE,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=Ns(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=Ns(r.host).host);Or(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=xE(this.opts.query)),H_&&(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\"})},kd.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=j_,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+=bE(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,Tr(()=>{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(),H_&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=kd.indexOf(this._offlineEventListener);n!==-1&&kd.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};lo.protocol=j_;var vd=class extends lo{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;lo.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;lo.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 d=new Error(\"probe error\");d.transport=r.name,this.emitReserved(\"upgradeError\",d)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let d=new Error(\"probe error: \"+u);d.transport=r.name,s(),this.emitReserved(\"upgradeError\",d)};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}},js=class extends vd{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=>z_[o]).filter(o=>!!o)),super(e,n)}};var PV=js.protocol;function EE(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=Ns(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 Z_={};L(Z_,{Decoder:()=>Y_,Encoder:()=>G_,PacketType:()=>z,isPacketValid:()=>IL,protocol:()=>FE});var hL=typeof ArrayBuffer==\"function\",gL=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,AE=Object.prototype.toString,mL=typeof Blob==\"function\"||typeof Blob<\"u\"&&AE.call(Blob)===\"[object BlobConstructor]\",yL=typeof File==\"function\"||typeof File<\"u\"&&AE.call(File)===\"[object FileConstructor]\";function Yc(t){return hL&&(t instanceof ArrayBuffer||gL(t))||mL&&t instanceof Blob||yL&&t instanceof File}function Gc(t,e){if(!t||typeof t!=\"object\")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Gc(t[r]))return!0;return!1}if(Yc(t))return!0;if(t.toJSON&&typeof t.toJSON==\"function\"&&arguments.length===1)return Gc(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Gc(t[r]))return!0;return!1}function TE(t){let e=[],r=t.data,n=t;return n.data=W_(r,e),n.attachments=e.length,{packet:n,buffers:e}}function W_(t,e){if(!t)return t;if(Yc(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]=W_(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]=W_(t[n],e));return r}return t}function OE(t,e){return t.data=q_(t.data,e),delete t.attachments,t}function q_(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]=q_(t[r],e);else if(typeof t==\"object\")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=q_(t[r],e));return t}var $E=IA(LE(),1),K_=(0,$E.default)(\"socket.io-parser\"),ME=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],FE=5,z;(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\"})(z||(z={}));var G_=class{constructor(e){this.replacer=e}encode(e){return K_(\"encoding packet %j\",e),(e.type===z.EVENT||e.type===z.ACK)&&Gc(e)?this.encodeAsBinary({type:e.type===z.EVENT?z.BINARY_EVENT:z.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=\"\"+e.type;return(e.type===z.BINARY_EVENT||e.type===z.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)),K_(\"encoded %j as %s\",e,r),r}encodeAsBinary(e){let r=TE(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Y_=class t extends dt{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===z.BINARY_EVENT;n||r.type===z.BINARY_ACK?(r.type=n?z.EVENT:z.ACK,this.reconstructor=new X_(r),r.attachments===0&&super.emitReserved(\"decoded\",r)):super.emitReserved(\"decoded\",r)}else if(Yc(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(z[n.type]===void 0)throw new Error(\"unknown packet type \"+n.type);if(n.type===z.BINARY_EVENT||n.type===z.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(!NE(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 K_(\"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 z.CONNECT:return Ad(r);case z.DISCONNECT:return r===void 0;case z.CONNECT_ERROR:return typeof r==\"string\"||Ad(r);case z.EVENT:case z.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&ME.indexOf(r[0])===-1);case z.ACK:case z.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},X_=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=OE(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function RL(t){return typeof t==\"string\"}var NE=Number.isInteger||function(t){return typeof t==\"number\"&&isFinite(t)&&Math.floor(t)===t};function PL(t){return t===void 0||NE(t)}function Ad(t){return Object.prototype.toString.call(t)===\"[object Object]\"}function DL(t,e){switch(t){case z.CONNECT:return e===void 0||Ad(e);case z.DISCONNECT:return e===void 0;case z.EVENT:return Array.isArray(e)&&(typeof e[0]==\"number\"||typeof e[0]==\"string\"&&ME.indexOf(e[0])===-1);case z.ACK:return Array.isArray(e);case z.CONNECT_ERROR:return typeof e==\"string\"||Ad(e);default:return!1}}function IL(t){return RL(t.nsp)&&PL(t.id)&&DL(t.type,t.data)}function be(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var LL=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),zs=class extends dt{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=[be(e,\"open\",this.onopen.bind(this)),be(e,\"packet\",this.onpacket.bind(this)),be(e,\"error\",this.onerror.bind(this)),be(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(LL.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:z.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:z.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 z.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 z.EVENT:case z.BINARY_EVENT:this.onevent(e);break;case z.ACK:case z.BINARY_ACK:this.onack(e);break;case z.DISCONNECT:this.ondisconnect();break;case z.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:z.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:z.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 uo(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}uo.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};uo.prototype.reset=function(){this.attempts=0};uo.prototype.setMin=function(t){this.ms=t};uo.prototype.setMax=function(t){this.max=t};uo.prototype.setJitter=function(t){this.jitter=t};var Hs=class extends dt{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,Or(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 uo({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||Z_;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 js(this.uri,this.opts);let r=this.engine,n=this;this._readyState=\"opening\",this.skipReconnect=!1;let o=be(r,\"open\",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",a),e?e(a):this.maybeReconnectOnOpen()},i=be(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(be(e,\"ping\",this.onping.bind(this)),be(e,\"data\",this.ondata.bind(this)),be(e,\"error\",this.onerror.bind(this)),be(e,\"close\",this.onclose.bind(this)),be(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){Tr(()=>{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 zs(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 Xc={};function Ws(t,e){typeof t==\"object\"&&(e=t,t=void 0),e=e||{};let r=EE(t,e.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=Xc[o]&&s in Xc[o].nsps,a=e.forceNew||e[\"force new connection\"]||e.multiplex===!1||i,c;return a?c=new Hs(n,e):(Xc[o]||(Xc[o]=new Hs(n,e)),c=Xc[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Ws,{Manager:Hs,Socket:zs,io:Ws,connect:Ws});P();P();var Td=new Set([\"__proto__\",\"constructor\",\"prototype\"]),J_=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Td.has(t[e]))return!1;return!0},jE=(t,e)=>{!t||!J_(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},BE=(t,e,r,n=!1)=>{!t||!J_(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)},Od=(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\":jE(t,o);break;case\"update\":case\"set\":BE(t,o,s,!0);break;default:break}return r},UE=(t,e)=>{if(!e||typeof e!=\"object\"||Array.isArray(e))return null;let r=t&&(t.__raw||t)||{},n=null;for(let o of Object.keys(e))Td.has(o)||Object.prototype.hasOwnProperty.call(r,o)||(n||(n={}),n[o]=e[o]);return n},Zc=(t,e)=>{!t||!e||typeof e!=\"object\"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},VE=(t,e,r,n=\"designSystem\")=>{for(let o in e){if(Td.has(o))continue;let s=`${n}/${o}`;if(r.has(s))continue;let i=e[o],a=t[o];if(i&&typeof i==\"object\"&&!Array.isArray(i)){if(!a||typeof a!=\"object\"||Array.isArray(a)){if(o in t)continue;t[o]={}}VE(t[o],i,r,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},Q_=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Od(o,e)}let r=JSON.parse(JSON.stringify(t.__rawDesignSystem)),n=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];for(let o of n){let s=tr(o),i=s?o.library:o,a=i&&i.designSystem;if(!a||typeof a!=\"object\")continue;let c=zr(i.sharedLibIgnore);if(s)for(let l of zr(o.ignoreList))c.add(l);c.has(\"designSystem\")||VE(r,a,c)}return r};P();var zE=(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])=>{if(r[a]&&typeof r[a]==\"object\")if(a===\"designSystem\"){if(Zc(r,c),n){let l=Q_(r);l&&Er(l)}}else An(r[a],c);else r[a]=c}),n=!0,i&&(r.schema=i))}},HE=(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=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]===\"designSystem\"),i=s.length?o.filter(c=>!s.includes(c)):o,a=Od(r,i);if(s.length&&a.add(\"designSystem\"),a.has(\"designSystem\")){let c=Q_(r,s);c?Er(c):r.__warnedNoRawDesignSystem||(r.__warnedNoRawDesignSystem=!0,console.warn(\"[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \\u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds).\"))}if(a.has(\"state\")){let c=UE(e,r.state);if(c){let l=typeof e.$update==\"function\"?e.$update:e.update;typeof l==\"function\"&&l.call(e,c)}}if([\"pages\",\"components\",\"snippets\",\"functions\",\"assets\"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=r.window.location;t.call(\"router\",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var $L={success:\"green\",error:\"red\",warning:\"yellow\"},WE=(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)}},qE={state:{notifications:[]},Notifications:{position:\"fixed\",left:\"A2\",bottom:\"Z2\",zIndex:\"999\",childExtends:\"Notification\",childProps:({state:t})=>({animationDuration:\"C\",background:$L[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 ML=!1,FL=()=>ML?\"http://localhost:8080\":\"https://api.symbols.app\",NL=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}},jL=async t=>{try{let e=t||FL(),r=await C.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)}},YE=(t,e,r,n)=>{t.on(\"snapshot\",zE(e,r,n)),t.on(\"ops\",HE(e,r,n)),t.on(\"clients\",o=>{n.editor?.verbose&&WE(o,e,r)}),t.on(\"disconnect\",o=>{n.editor?.verbose&&console.info(\"[sync] disconnected\",o)})},BL=async(t,e,r,n)=>{let o=await jL(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=Ws(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)\")}),YE(a,t,e,r),a},UL=(t,e,r)=>{let n=Ws({transports:[\"websocket\",\"polling\"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on(\"connect\",()=>{r.editor?.verbose!==!1&&console.info(\"[sync] connected (runner)\")}),YE(n,t,e,r),n.on(\"reload\",()=>{typeof C<\"u\"&&C.location&&C.location.reload()}),n},VL=async(t,e,r)=>{let{mode:n,baseUrl:o}=NL(r);return n?n===\"collab\"?BL(t,e,r,o):n===\"runner\"?UL(t,e,r):null:null},zL={onInit:VL};var XE=t=>typeof t>\"u\",KE=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),GE=t=>t?.editor?.runtime===\"runner\",ZE=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},JE={name:\"sync\",beforeCreate(t,e){let r=e&&e.editor;(r&&!XE(r.liveSync)?r.liveSync:KE(e)||GE(e))&&(KE(e)&&!GE(e)&&!e?.key||ZE(t,zL))}},QE={name:\"notifications\",beforeCreate(t,e){if(!e)return;let r=XE(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&ZE(t,qE)}};var rx={};L(rx,{AlertTemplate:()=>Bd,ConfirmTemplate:()=>jd,CustomTemplate:()=>Vd,ModalLayer:()=>Nd,ModalRoot:()=>Fd,PromptTemplate:()=>Ud,windowsComponents:()=>ex});var tx={};L(tx,{alertDialog:()=>$d,closeAllModals:()=>Id,closeModal:()=>Pd,confirmDialog:()=>Ld,getLayer:()=>Rd,openModal:()=>Dd,promptDialog:()=>Md,windowsFunctions:()=>Pr});function J(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function qs(t){let e=t;for(;e;){if(e.key===\"ModalRoot\")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let r=t?.getRoot?.();return r?.ModalRoot?r.ModalRoot:typeof globalThis<\"u\"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Rd(){return J(this)}var HL=(t,e)=>{let r=t&&t[\"ModalLayer_\"+e],n=r?.node||r?.__ref?.node;!n||typeof n.style?.setProperty!=\"function\"||(n.style.setProperty(\"display\",\"none\",\"important\"),n.style.setProperty(\"opacity\",\"0\",\"important\"),n.style.setProperty(\"visibility\",\"hidden\",\"important\"),n.style.setProperty(\"pointer-events\",\"none\",\"important\"))},tA=(t,e)=>{let r=t&&t[\"ModalLayer_\"+e],n=r?.node||r?.__ref?.node;!n||typeof n.style?.removeProperty!=\"function\"||(n.style.removeProperty(\"display\"),n.style.removeProperty(\"opacity\"),n.style.removeProperty(\"visibility\"),n.style.removeProperty(\"pointer-events\"))};function Pd(t){let e=qs(this);if(!e)return;let r=e.state?.stack||[];if(!r.length)return;let n,o,s;if(t){if(s=[],n=r.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),n.length===r.length)return;o=r.filter(i=>i.id===t)}else n=r.slice(0,-1),o=r.slice(-1),s=[r.length-1];e.state.update({stack:n});for(let i of s)HL(e,i);for(let i of o)if(typeof i.onClose==\"function\")try{i.onClose()}catch(a){console.warn(\"[windows] onClose threw:\",a)}}function Dd(t={}){let e=qs(this);if(!e)return console.warn(\"[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context.\"),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let r=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,n={id:r,template:t.template||\"custom\",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},o=e.state?.stack||[];if(o.length>=5)return console.warn(\"[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first.\"),null;let s=o.length;return tA(e,s),e.state.update({stack:[...o,n]}),r}function Id(){let t=qs(this);!t||!t.state?.stack?.length||t.state.update({stack:[]})}function Ld(t){let e=typeof t==\"string\"?{message:t}:t||{};return this.call(\"openModal\",{...e,template:\"confirm\"})}function $d(t){let e=typeof t==\"string\"?{message:t}:t||{};return this.call(\"openModal\",{...e,template:\"alert\"})}function Md(t){let e=typeof t==\"string\"?{message:t}:t||{};return this.call(\"openModal\",{...e,template:\"prompt\"})}var Pr={openModal:Dd,closeModal:Pd,closeAllModals:Id,confirmDialog:Ld,alertDialog:$d,promptDialog:Md,getLayer:Rd};var WL=[\"a[href]\",\"button:not([disabled])\",\"input:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\",'[tabindex]:not([tabindex=\"-1\"])'].join(\",\"),eA=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(WL),r=[];for(let n=0;n<e.length;n++){let o=e[n];(o.offsetParent!==null||o===document.activeElement)&&r.push(o)}return r},rA=t=>{let e=t.state?.stack||[];if(!e.length)return null;let r=t[\"ModalLayer_\"+(e.length-1)];return r?.node||r?.__ref?.node||null},Fd={tag:\"div\",position:\"fixed\",inset:\"0\",zIndex:\"2000\",pointerEvents:\"none\",state:{stack:[]},subscribeTo:[\"stack\"],ModalLayer_0:{__slotIndex:0,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_1:{__slotIndex:1,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_2:{__slotIndex:2,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_3:{__slotIndex:3,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_4:{__slotIndex:4,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},onInit:(t,e)=>{if(typeof window>\"u\")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let r=t.context;if(r){r.functions||(r.functions={});for(let a in Pr)a in r.functions||(r.functions[a]=Pr[a])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let n=()=>{let a=t.state?.stack||[];if(!a.length)return;let c=a.length-1,l=a[c];t.state.update({stack:a.slice(0,-1)});let f=t[\"ModalLayer_\"+c],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty(\"display\",\"none\",\"important\"),u.style.setProperty(\"opacity\",\"0\",\"important\"),u.style.setProperty(\"visibility\",\"hidden\",\"important\"),u.style.setProperty(\"pointer-events\",\"none\",\"important\")),typeof l?.onClose==\"function\")try{l.onClose()}catch(d){console.warn(\"[windows] onClose threw:\",d)}},o=a=>{let c=t.state?.stack;if(c?.length){if(a.key===\"Tab\"){let l=rA(t);if(!l)return;let f=eA(l);if(!f.length){a.preventDefault();let p=l.querySelector?.('[role=\"dialog\"]')||l;try{p.focus?.()}catch{}return}let u=f[0],d=f[f.length-1],h=document.activeElement;if(!l.contains(h)){a.preventDefault();try{u.focus()}catch{}return}if(a.shiftKey&&h===u){a.preventDefault();try{d.focus()}catch{}}else if(!a.shiftKey&&h===d){a.preventDefault();try{u.focus()}catch{}}return}a.key===\"Escape\"&&c[c.length-1]?.dismissOnBackdrop!==!1&&(a.preventDefault(),n())}};window.addEventListener(\"keydown\",o),t.__escHandler=o;let s=a=>{let c=t.state?.stack||[];if(a<0||a>=c.length)return;let l=c[a];t.state.update({stack:c.filter((d,h)=>h!==a)});let f=t[\"ModalLayer_\"+a],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty(\"display\",\"none\",\"important\"),u.style.setProperty(\"opacity\",\"0\",\"important\"),u.style.setProperty(\"visibility\",\"hidden\",\"important\"),u.style.setProperty(\"pointer-events\",\"none\",\"important\")),typeof l?.onClose==\"function\")try{l.onClose()}catch(d){console.warn(\"[windows] onClose threw:\",d)}},i=a=>{let c=t.state?.stack||[];if(!c.length)return;let l=a.target?.closest?.('[data-key=\"Close\"]');if(l){for(let f=c.length-1;f>=0;f--){let u=t[\"ModalLayer_\"+f],d=u?.node||u?.__ref?.node;if(d&&d.contains(l)){a.preventDefault(),a.stopPropagation(),s(f);return}}return}for(let f=c.length-1;f>=0;f--){let u=t[\"ModalLayer_\"+f];if((u?.node||u?.__ref?.node)===a.target){if(c[f]?.dismissOnBackdrop===!1)return;a.preventDefault(),a.stopPropagation(),s(f);return}}};document.addEventListener(\"click\",i,!0),t.__clickDelegate=i},onUpdate:t=>{if(typeof window>\"u\")return;let e=(t.state&&t.state.stack||[]).length,r=t.__prevStackLen||0;if(e!==r)if(t.__prevStackLen=e,t.__modalOpeners=t.__modalOpeners||[],e>r)t.__modalOpeners[e]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[e]||null,typeof requestAnimationFrame==\"function\"&&requestAnimationFrame(()=>{let n=rA(t);if(!n)return;let o=eA(n)[0]||n.querySelector&&n.querySelector('[role=\"dialog\"]')||n;try{o.focus&&o.focus()}catch{}});else{let n=null;for(let o=r;o>e;o--)t.__modalOpeners[o]&&(n=n||t.__modalOpeners[o]),t.__modalOpeners[o]=null;if(n&&typeof n.focus==\"function\"&&n.isConnected!==!1)try{n.focus()}catch{}}},onDestroy:t=>{typeof window>\"u\"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener(\"keydown\",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener(\"click\",t.__clickDelegate,!0),delete t.__clickDelegate))}};var Nd={tag:\"div\",position:\"fixed\",inset:\"0\",alignItems:\"center\",justifyContent:\"center\",padding:\"A\",theme:\"backdrop\",transition:\"opacity C defaultBezier\",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?\"flex\":\"none\",opacity:(t,e)=>t.layer?\"1\":\"0\",visibility:(t,e)=>t.layer?\"visible\":\"hidden\",pointerEvents:(t,e)=>t.layer?\"auto\":\"none\",ModalWindow:{attr:{role:\"dialog\",\"aria-modal\":\"true\",tabindex:\"-1\",\"aria-labelledby\":t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}},width:t=>J(t)?.width||\"H\",maxWidth:t=>J(t)?.maxWidth||\"90vw\",flow:\"y\",maxHeight:t=>J(t)?.maxHeight||\"100%\",animation:\"modalIn\",animationDuration:\"D\",animationTimingFunction:\"springBezier\",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:\"none\"},overflow:\"visible\",ConfirmTemplate:{hide:t=>J(t)?.template!==\"confirm\"},AlertTemplate:{hide:t=>J(t)?.template!==\"alert\"},PromptTemplate:{hide:t=>J(t)?.template!==\"prompt\"},CustomTemplate:{hide:t=>J(t)?.template!==\"custom\"}}};var Ks=(t,e,r)=>J(t)?.[e]||r,qL=t=>{let e=J(t)?.icon;return e===null||e===!1},jd={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",ModalHeader:{Hgroup:{H:{text:t=>Ks(t,\"title\",\"Are you sure?\"),attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>qL(t),Indicator:{extends:\"Icon\",opacity:\".7\",icon:t=>Ks(t,\"icon\",\"warning\")}}},ModalBody:{flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",P:{tag:\"p\",margin:\"0\",text:t=>Ks(t,\"message\",\"This action cannot be undone.\"),color:\"dim\"}},ModalFooter:{flow:\"x\",gap:\"Z1\",align:\"center end\",flexShrink:\"0\",CancelBtn:{extends:\"CancelButton\",text:t=>Ks(t,\"cancelText\",\"Cancel\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onCancel)try{n.onCancel()}catch(o){console.warn(\"[windows] confirm.onCancel threw:\",o)}e.call(\"closeModal\",n?.id)}},ConfirmBtn:{extends:\"Button\",theme:t=>Ks(t,\"confirmTheme\",\"primary\"),text:t=>Ks(t,\"confirmText\",\"Confirm\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onConfirm)try{n.onConfirm()}catch(o){console.warn(\"[windows] confirm.onConfirm threw:\",o)}e.call(\"closeModal\",n?.id)}}}};var Jc=(t,e,r)=>J(t)?.[e]||r,Bd={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",ModalHeader:{Hgroup:{H:{text:t=>Jc(t,\"title\",\"Notice\"),attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:\"Icon\",opacity:\".7\",icon:t=>Jc(t,\"icon\",\"info\")}}},ModalBody:{flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",hide:t=>!Jc(t,\"message\",\"\"),P:{tag:\"p\",margin:\"0\",text:t=>Jc(t,\"message\",\"\"),color:\"dim\"}},ModalFooter:{flow:\"x\",align:\"center end\",flexShrink:\"0\",OkBtn:{extends:\"Button\",theme:\"primary\",text:t=>Jc(t,\"okText\",\"OK\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onOk)try{n.onOk()}catch(o){console.warn(\"[windows] alert.onOk threw:\",o)}e.call(\"closeModal\",n?.id)}}}};var Gs=(t,e,r)=>J(t)?.[e]||r,Ud={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",scope:{value:\"\"},onRender:(t,e)=>{let r=J(t);if(!r||t.scope._seededLayerId===r.id)return;t.scope._seededLayerId=r.id,t.scope.value=r.defaultValue||\"\";let n=t.InputRow&&t.InputRow.node;n&&(n.value=t.scope.value)},onUpdate:(t,e)=>{let r=J(t);if(!r||t.scope._seededLayerId===r.id)return;t.scope._seededLayerId=r.id,t.scope.value=r.defaultValue||\"\";let n=t.InputRow&&t.InputRow.node;n&&(n.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>Gs(t,\"title\",\"Enter a value\"),attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",hide:t=>!Gs(t,\"message\",\"\"),P:{tag:\"p\",margin:\"0\",text:t=>Gs(t,\"message\",\"\"),color:\"dim\"}},InputRow:{extends:\"Input\",flexShrink:\"0\",autofocus:!0,placeholder:t=>Gs(t,\"placeholder\",\"\"),value:(t,e)=>t.parent.scope?.value||\"\",onInput:(t,e,r)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,r)=>{if(t.key!==\"Enter\")return;t.preventDefault();let n=J(e),o=e.parent.scope?.value||\"\";if(n?.onConfirm)try{n.onConfirm(o)}catch(s){console.warn(\"[windows] prompt.onConfirm threw:\",s)}e.call(\"closeModal\",n?.id)}},ModalFooter:{flow:\"x\",gap:\"Z1\",align:\"center end\",flexShrink:\"0\",CancelBtn:{extends:\"CancelButton\",text:t=>Gs(t,\"cancelText\",\"Cancel\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onCancel)try{n.onCancel()}catch(o){console.warn(\"[windows] prompt.onCancel threw:\",o)}e.call(\"closeModal\",n?.id)}},ConfirmBtn:{extends:\"Button\",theme:\"primary\",text:t=>Gs(t,\"confirmText\",\"OK\"),onClick:(t,e,r)=>{let n=J(e),o=e.parent.parent.scope?.value||\"\";if(n?.onConfirm)try{n.onConfirm(o)}catch(s){console.warn(\"[windows] prompt.onConfirm threw:\",s)}e.call(\"closeModal\",n?.id)}}}};var Vd={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",Title:{tag:\"h2\",text:t=>J(t)?.title||\"\",hide:t=>!J(t)?.title,position:\"absolute\",width:\"1px\",height:\"1px\",margin:\"-1px\",padding:\"0\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",border:\"0\",attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},Slot:{tag:\"div\",flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",onInit:t=>{let e=G(()=>{let r=J(t),n=r?.content||null,o=r?.id||null;if(!n){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(n);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in Pr)i in s.functions||(s.functions[i]=Pr[i])}}catch(s){console.warn(\"[windows] custom.content set failed:\",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var nA={extends:\"Button\",theme:\"tertiary\"};var ex={ModalRoot:Fd,ModalLayer:Nd,ConfirmTemplate:jd,AlertTemplate:Bd,PromptTemplate:Ud,CustomTemplate:Vd,\"smbls.CancelButton\":nA};var cx={};L(cx,{Dropdown:()=>Gd,DropdownList:()=>Yd,DropdownParent:()=>Xd,DropdownParentFocus:()=>Zd,DropdownRoot:()=>qd,DropdownSiblingFocus:()=>Jd,DropdownTrigger:()=>Kd,dropdownComponents:()=>ax});var oA=(t,e,r)=>({bottom:r-t.bottom,top:t.top,right:e-t.right,left:t.left}),KL=(t,e,r,n)=>{let o=oA(t,r,n),s=i=>o[i]>=e.height+8;return s(\"bottom\")?\"bottom\":s(\"top\")?\"top\":o.bottom>=o.top?\"bottom\":\"top\"},GL=(t,e,r,n,o)=>{let s=oA(e,n,o),i=t===\"top\"||t===\"bottom\"?r.height+8:r.width+8;if(s[t]>=i)return t;let a={top:\"bottom\",bottom:\"top\",left:\"right\",right:\"left\"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var nx=(t,e,r)=>{let n;return t===\"bottom\"?n=r-e.bottom-16:t===\"top\"?n=e.top-16:n=r-16,Math.max(40,Math.floor(n))},zd=(t,e,r)=>Math.max(e,Math.min(r,t)),Dr=(t,e,r=\"auto\")=>{if(!t){let p=typeof window<\"u\"?window.innerHeight:768;return{left:0,top:0,side:\"bottom\",align:\"start\",maxHeight:nx(\"center\",null,p)}}let n=typeof window<\"u\"?window.innerWidth:1024,o=typeof window<\"u\"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(r===\"center\"){let p=nx(\"center\",t,o),g=Math.min(s.height,p),m=zd((n-s.width)/2,8,Math.max(8,n-s.width-8)),b=zd((o-g)/2,8,Math.max(8,o-g-8));return{left:m,top:b,side:\"center\",align:\"center\",maxHeight:p}}let i,a;if(r===\"auto\")i=KL(t,s,n,o),a=\"start\";else{let p=r.split(\"-\");i=p[0],a=p[1]||\"start\",i=GL(i,t,s,n,o)}let c=nx(i,t,o),l=Math.min(s.height,c),f,u;i===\"bottom\"||i===\"top\"?(a===\"start\"?f=t.left:a===\"end\"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i===\"bottom\"?t.bottom+8:t.top-l-8):(a===\"start\"?u=t.top:a===\"end\"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i===\"right\"?t.right+8:t.left-s.width-8);let d=Math.max(8,n-s.width-8),h=Math.max(8,o-l-8);return f=zd(f,8,d),u=zd(u,8,h),{left:f,top:u,side:i,align:a,maxHeight:c}},Ys=t=>{switch(t){case\"bottom\":return\"translateY(-6px)\";case\"top\":return\"translateY(6px)\";case\"left\":return\"translateX(6px)\";case\"right\":return\"translateX(-6px)\";case\"center\":return\"translateY(0px)\";default:return\"translateY(-6px)\"}};var yn={placement:\"auto\",trigger:\"click\",offset:8,minWidth:\"180px\",maxWidth:\"90vw\",maxHeight:null},YL=t=>{if(!t||typeof t.getBoundingClientRect!=\"function\")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},ox=t=>t?.getRoot?.()?.DropdownRoot||null,XL=0,ZL=()=>`dropdown_${++XL}_${Date.now().toString(36)}`;function Hd(t={}){let e=ox(this);if(!e)return console.warn(\"[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context.\"),null;let r=t.anchorEl?.node||t.anchorEl,n=t.anchorRect||YL(r);if(!n)return console.warn(\"[dropdown] openDropdown: no anchor element/rect provided \\u2014 pass anchorEl or anchorRect.\"),null;let o=t.id||ZL(),s=t.restoreEl?.node||t.restoreEl||r||(typeof document<\"u\"?document.activeElement:null),i={id:o,content:t.content||null,anchor:n,placement:t.placement||yn.placement,trigger:t.trigger||yn.trigger,offset:t.offset??yn.offset,minWidth:t.minWidth||yn.minWidth,maxWidth:t.maxWidth||yn.maxWidth,maxHeight:t.maxHeight||yn.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:s},a=e.state?.layer;if(a?.onClose)try{a.onClose(a)}catch(c){console.warn(\"[dropdown] prev onClose threw:\",c)}if(e.state.update({layer:i}),typeof i.onOpen==\"function\")try{i.onOpen(i)}catch(c){console.warn(\"[dropdown] onOpen threw:\",c)}return o}function Wd(t){let e=ox(this);if(!e)return;let r=e.state?.layer;r&&e.state.update({layer:{...r,inert:!!t}})}function po(t){let e=ox(this);if(!e)return;let r=e.state?.layer;if(!r)return;let n=typeof t==\"string\"?t:t?.id;if(n&&r.id&&n!==r.id)return;let o=r.onClose,s=r.restoreEl,i=typeof document<\"u\"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown=\"panel\"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus==\"function\")try{s.focus()}catch(d){console.warn(\"[dropdown] focus restore threw:\",d)}if(typeof o==\"function\")try{o(r)}catch(d){console.warn(\"[dropdown] onClose threw:\",d)}}var sx=(t,e)=>{let r=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${r})`:r},sA=t=>{let e=t.getBoundingClientRect();return{width:e.width,height:Math.max(e.height,t.scrollHeight||0)}},JL=`\n@keyframes smbls-dropdown-fade-in {\n from { opacity: 0; transform: var(--smbls-dropdown-from, translateY(-6px)) scale(0.98); }\n to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }\n}\n[data-smbls-dropdown=\"panel\"][data-smbls-open=\"true\"] {\n /* The one place the keyframe is declared \\u2014 name and fill only. Duration\n and curve are the design system's motion tokens, carried by the Panel's\n own animationDuration ('B') and animationTimingFunction\n ('defaultBezier') props as atomic classes; an animation shorthand here\n would reset both. The content-mount effect owns the data-smbls-open\n flag and toggles it off and on to restart the keyframe per layer\n (FW-DROPDOWN-ROOT-OVERLAY-DEFAULTS-ROLE-FOCUS-1). */\n animation-name: smbls-dropdown-fade-in;\n animation-fill-mode: both;\n transform-origin: top center;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-smbls-dropdown=\"panel\"] {\n animation: none !important;\n }\n}\n[data-smbls-dropdown=\"panel\"][data-smbls-surface] {\n background: var(--smbls-dropdown-surface) !important;\n}\n[data-smbls-dropdown=\"panel\"] {\n /* The panel is a pure positioning shell \\u2014 menu BODIES own their card\n chrome (padding/round/border via e.g. CanvasCreateMenuBody), so the\n panel itself stays chromeless. !important for the same reason as the\n surface rule above: the theme prop re-emits border longhands inline\n on every re-render and would beat any declarative zero\n (2026-06-10 per Nika \"remove Panel border and padding\"). */\n border-width: 0 !important;\n padding: 0 !important;\n}\n[data-smbls-dropdown=\"panel\"]:not([data-smbls-themed]):not([data-smbls-surface]) {\n /* Chromeless guarantee for the REUSED panel node: css-in-props'\n reactive effect applies styles only when its resolver returns a\n result (element/src/create.js \"if (cssResult && element.node)\") \\u2014\n it never CLEARS, so a previously themed layer's inline\n background/color/box-shadow would survive into the next unthemed\n layer. _applyChrome flags opt-in chrome with data-smbls-themed /\n data-smbls-shadowed; these :not() rules neutralise the stale paint\n channels for everyone else. Background keeps :not([data-smbls-surface])\n so the caller surface-override rule above still wins on ties. */\n background: transparent !important;\n}\n[data-smbls-dropdown=\"panel\"]:not([data-smbls-themed]) {\n color: inherit !important;\n}\n[data-smbls-dropdown=\"panel\"]:not([data-smbls-shadowed]) {\n box-shadow: none !important;\n}\n`,QL=()=>{if(typeof document>\"u\"||document.getElementById(\"smbls-dropdown-css\"))return;let t=document.createElement(\"style\");t.id=\"smbls-dropdown-css\",t.textContent=JL,document.head.appendChild(t)},iA=(t,e)=>{if(!t.node)return;let r=e?.background;if(!r)t.node.removeAttribute(\"data-smbls-surface\");else{let n=/^[a-z][\\w.+-]*$/i.test(r)?`var(--color-${r})`:r;t.node.style.setProperty(\"--smbls-dropdown-surface\",n),t.node.setAttribute(\"data-smbls-surface\",\"\")}e?.theme?t.node.setAttribute(\"data-smbls-themed\",\"\"):t.node.removeAttribute(\"data-smbls-themed\"),e?.shadow?t.node.setAttribute(\"data-smbls-shadowed\",\"\"):t.node.removeAttribute(\"data-smbls-shadowed\")},t$=t=>{t.node&&(t.node.removeAttribute(\"data-smbls-open\"),t.node.offsetWidth,t.node.setAttribute(\"data-smbls-open\",\"true\"))},e$=[[\"role\",\"role\"],[\"aria-label\",\"ariaLabel\"],[\"aria-labelledby\",\"ariaLabelledby\"]],aA=(t,e)=>{if(!t.node)return;let r=new Set;for(let[n,o]of e$){let s=e?.[o];s&&(t.node.setAttribute(n,s),r.add(n))}if(t.__a11yAttrs)for(let n of t.__a11yAttrs)r.has(n)||t.node.removeAttribute(n);t.__a11yAttrs=r,t.__panelTabindex&&(t.node.removeAttribute(\"tabindex\"),t.__panelTabindex=!1)},r$='a[href], button, input:not([type=\"hidden\"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable=\"false\"])',n$=t=>{let e=t.node;if(e){for(let r of e.querySelectorAll(r$)){if(r.matches(\":disabled\"))continue;let n=r.getAttribute(\"tabindex\");if(!(n!==null&&parseInt(n,10)<0)&&(r.focus({preventScroll:!0}),e.ownerDocument.activeElement===r))return}e.setAttribute(\"tabindex\",\"-1\"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},qd={tag:\"div\",attr:{\"data-smbls-dropdown-root\":\"true\"},position:\"fixed\",inset:\"0\",zIndex:\"1500\",pointerEvents:\"none\",state:{layer:null},onInit:t=>{if(QL(),typeof window>\"u\")return;let e=n=>{n.key===\"Escape\"&&t.state?.layer&&(n.preventDefault(),po.call(t))};window.addEventListener(\"keydown\",e),t.__dropdownEscHandler=e;let r=n=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown=\"panel\"]');if(s&&s.contains(n.target))return;let i=o.anchor;if(i){let a=n.clientX,c=n.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}po.call(t)};document.addEventListener(\"mousedown\",r,!0),t.__dropdownClickHandler=r},onRemove:t=>{typeof window>\"u\"||(t.__dropdownEscHandler&&window.removeEventListener(\"keydown\",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener(\"mousedown\",t.__dropdownClickHandler,!0))},PanelHost:{tag:\"div\",position:\"fixed\",inset:\"0\",pointerEvents:\"none\",subscribeTo:[\"layer\"],layer:(t,e)=>e?.layer||null,Panel:{tag:\"div\",attr:{\"data-smbls-dropdown\":\"panel\"},position:\"fixed\",subscribeTo:[\"layer\"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return\"-9999px\";let r=t._lastSize||{width:280,height:200};return Dr(e.anchor,r,e.placement).left+\"px\"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return\"-9999px\";let r=t._lastSize||{width:280,height:200};return Dr(e.anchor,r,e.placement).top+\"px\"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let r=t._lastSize||{width:280,height:200};return{\"--smbls-dropdown-from\":Ys(Dr(e.anchor,r,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||\"180px\",maxWidth:t=>t.parent?.layer?.maxWidth||\"90vw\",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return\"none\";let r=t._lastSize||{width:280,height:200};return sx(e,Dr(e.anchor,r,e.placement))},overflow:\"auto\",overscrollBehavior:\"contain\",padding:\"0\",round:t=>t.parent?.layer?.round||\"radiusCard\",theme:t=>t.parent?.layer?.theme||null,border:\"none\",borderWidth:\"0\",shadow:t=>t.parent?.layer?.shadow||null,animationDuration:\"B\",animationTimingFunction:\"defaultBezier\",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?\"none\":\"auto\":\"none\"},opacity:t=>t.parent?.layer?\"0.999\":\"0\",onClick:t=>t.stopPropagation(),onInit:t=>{let e=G(()=>{let r=t.parent?.layer,n=r?.content||null,o=r?.id||null;if(!n){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,aA(t,null),t.node?.removeAttribute(\"data-smbls-open\")}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(n)}catch(s){console.warn(\"[dropdown] content set failed:\",s)}iA(t,r),aA(t,r),t$(t),r.focusIn&&n$(t),!(typeof requestAnimationFrame>\"u\")&&requestAnimationFrame(()=>{if(!t.node)return;iA(t,r);let s=t.parent?.layer;if(!s?.anchor)return;let i=sA(t.node);t._lastSize=i;let a=Dr(s.anchor,i,s.placement);t.node.style.maxHeight=sx(s,a),t.node.style.left=a.left+\"px\",t.node.style.top=a.top+\"px\",t.node.style.setProperty(\"--smbls-dropdown-from\",Ys(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let r=sA(t.node),n=t._lastSize;(!n||Math.abs(n.width-r.width)>1||Math.abs(n.height-r.height)>1)&&(t._lastSize=r);let o=Dr(e.anchor,r,e.placement);t.node.style.maxHeight=sx(e,o),t.node.style.left=o.left+\"px\",t.node.style.top=o.top+\"px\",t.node.style.setProperty(\"--smbls-dropdown-from\",Ys(o.side))}}}};var ix=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call(\"closeDropdown\");return}let r={anchorEl:t,trigger:t.dropdownTrigger||\"click\",placement:t.dropdownPlacement||\"auto\",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let n in r)r[n]===void 0&&delete r[n];t.call(\"openDropdown\",r)},Kd={position:\"relative\",onClick:(t,e)=>{(e.dropdownTrigger||\"click\")===\"click\"&&(t.preventDefault(),t.stopPropagation(),ix(e))},onFocus:(t,e)=>{e.dropdownTrigger===\"focus\"&&ix(e)},onMouseenter:(t,e)=>{e.dropdownTrigger===\"hover\"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>ix(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger===\"hover\"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call(\"closeDropdown\"),250))}};var Gd={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\"},Yd={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\"}}},Xd={position:\"relative\",zIndex:999,\":hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}},Zd={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()}}},Jd={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 ax={DropdownRoot:qd,DropdownTrigger:Kd,Dropdown:Gd,DropdownList:Yd,DropdownParent:Xd,DropdownParentFocus:Zd,DropdownSiblingFocus:Jd};var fx={};L(fx,{DROPDOWN_DEFAULTS:()=>yn,closeDropdown:()=>po,computePosition:()=>Dr,dropdownFunctions:()=>lx,fadeInTransform:()=>Ys,openDropdown:()=>Hd,setDropdownInert:()=>Wd});var lx={openDropdown:Hd,closeDropdown:po,setDropdownInert:Wd};var o$=(t,e,r)=>({bottom:r-t.bottom,top:t.top,right:e-t.right,left:t.left}),s$=(t,e,r,n,o)=>{let s=o$(e,n,o),i=t===\"top\"||t===\"bottom\"?r.height+6:r.width+6;if(s[t]>=i)return t;let a={top:\"bottom\",bottom:\"top\",left:\"right\",right:\"left\"}[t];return a&&s[a]>=i?a:t},cA=(t,e,r)=>Math.max(e,Math.min(r,t)),lA=(t,e,r=\"bottom\")=>{if(!t)return{left:0,top:0,side:\"bottom\"};let n=typeof window<\"u\"?window.innerWidth:1024,o=typeof window<\"u\"?window.innerHeight:768,s=s$(r,t,e,n,o),i,a;return s===\"bottom\"||s===\"top\"?(i=t.left+(t.width-e.width)/2,a=s===\"bottom\"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s===\"right\"?t.right+6:t.left-e.width-6),i=cA(i,6,n-e.width-6),a=cA(a,6,o-e.height-6),{left:i,top:a,side:s}},fA=t=>{switch(t){case\"bottom\":return\"translate3d(0, -10%, 0)\";case\"top\":return\"translate3d(0, 10%, 0)\";case\"left\":return\"translate3d(10%, 0, 0)\";case\"right\":return\"translate3d(-10%, 0, 0)\";default:return\"translate3d(0, -10%, 0)\"}};var Qd={placement:\"bottom\",theme:\"dialog\",delay:250,hideDelay:100},i$=t=>{if(!t||typeof t.getBoundingClientRect!=\"function\")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},uA=t=>t?.getRoot?.()?.TooltipRoot||null,dA=t=>{let e=t?.state?.tip;return e?typeof e.$parse==\"function\"?e.$parse():{...e}:null},pA=(t,e,r=0)=>{let n=dA(t);if(!n||n.id!==e||n.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!=\"function\")return;if(o.textContent!==(n.text||\"\")){r<3&&setTimeout(()=>pA(t,e,r+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...n,size:{width:s.width,height:s.height}}})},a$=t=>{typeof queueMicrotask==\"function\"?queueMicrotask(t):Promise.resolve().then(t)},c$=0,l$=()=>`tooltip_${++c$}_${Date.now().toString(36)}`;function hA(t={}){let e=uA(this);if(!e)return console.warn(\"[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context.\"),null;let r=t.anchorEl?.node||t.anchorEl,n=t.anchorRect||i$(r);if(!n)return console.warn(\"[tooltip] openTooltip: no anchor element/rect provided.\"),null;let o=t.id||l$(),s={id:o,text:t.text||\"\",anchor:n,placement:t.placement||Qd.placement,theme:t.theme||Qd.theme,open:!0,size:null};return e.state.update({tip:s}),a$(()=>pA(e,o)),o}function gA(t){let e=uA(this);if(!e)return;let r=dA(e);if(!r||r.open===!1)return;let n=typeof t==\"string\"?t:t?.id;n&&r.id&&n!==r.id||e.state.update({tip:{...r,open:!1}})}var ux=t=>{let e=t.tip;return e?.anchor?lA(e.anchor,e.size||{width:0,height:0},e.placement):null},tp=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},mA={tag:\"div\",attr:{\"data-smbls-tooltip-root\":\"true\"},position:\"fixed\",inset:\"0\",zIndex:\"2500\",pointerEvents:\"none\",state:{tip:null},Panel:{tag:\"div\",attr:{\"data-smbls-tooltip\":\"panel\"},role:\"tooltip\",position:\"fixed\",tip:(t,e)=>e?.tip||null,left:t=>{let e=ux(t);return e?e.left+\"px\":\"-9999px\"},top:t=>{let e=ux(t);return e?e.top+\"px\":\"-9999px\"},text:t=>t.tip?.text||\"\",theme:t=>t.tip?.theme||Qd.theme,width:\"max-content\",maxWidth:\"280px\",padding:\"Y2 Z\",round:\"Z\",fontSize:\"Y2\",lineHeight:\"1.35\",whiteSpace:\"normal\",pointerEvents:\"none\",opacity:t=>tp(t)?\"1\":\"0\",visibility:t=>tp(t)?\"visible\":\"hidden\",transform:t=>{if(tp(t))return\"none\";let e=ux(t);return fA(e?e.side:\"bottom\")},transition:t=>{let e=tp(t)?\"A\":\"Z\";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var dx=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute(\"title\")&&e.removeAttribute(\"title\")},f$=t=>{t.tooltipText&&(dx(t),t.call(\"openTooltip\",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||\"bottom\",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},yA=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,f$(t)},t.tooltipDelay??250))},bA=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call(\"closeTooltip\",t.tooltipId||t.key)},t.tooltipHideDelay??100))},_A={onMouseenter:(t,e)=>yA(e),onMouseleave:(t,e)=>bA(e),onFocus:(t,e)=>yA(e),onBlur:(t,e)=>bA(e),onMouseover:(t,e)=>dx(e),onFocusin:(t,e)=>dx(e)};var xA={display:\"flex\",theme:\"dialog\",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=>t.call(\"isDefined\",t.parent.title)||t.parent.title,width:\"fit-content\",fontWeight:500,color:\"currentColor\",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:\"currentColor\",fontWeight:\"400\",text:(t,e)=>t.call(\"exec\",t.parent.description,t)}},wA={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)},style:t=>{if(!t.parent||!t.parent.state.tooltipOpen)return{opacity:\"\",visibility:\"\",transform:\"\"};let e=t.shapeDirection;return{opacity:\"1\",visibility:\"visible\",transform:e===\"left\"||e===\"right\"?\"translate3d(0%,-50%,0)\":\"translate3d(-50%,0,0)\"}},styleDeps:[t=>t.parent&&t.parent.state.tooltipOpen]},SA={position:\"relative\",zIndex:999,state:{tooltipOpen:!1},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\"}}})},onPointerdown:(t,e,r)=>{t.pointerType===\"touch\"&&r.update({tooltipOpen:!r.tooltipOpen})},onDocumentKeydown:(t,e,r)=>{t.key!==\"Escape\"||!r.tooltipOpen||r.update({tooltipOpen:!1})},onDocumentPointerdown:(t,e,r)=>{r.tooltipOpen&&(e.node&&e.node.contains(t.target)||r.update({tooltipOpen:!1}))}};var kA={TooltipRoot:mA,TooltipTrigger:_A,Tooltip:xA,TooltipHidden:wA,TooltipParent:SA};var vA={openTooltip:hA,closeTooltip:gA};var CA=t=>!!(t&&typeof t==\"object\"&&t.__isStub===!0),EA=t=>tr(t)?t.library!==void 0?t.library:t.key??t.name:t,u$=(t,e)=>{let r=e?.sharedLibraries,n=Array.isArray(r)?r.map(i=>typeof i==\"string\"?i:i?.key||i?.name):r&&typeof r==\"object\"?Object.keys(r):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey==\"string\"&&i.__libraryKey)return i.__libraryKey;if(n&&n[a])return n[a];if(typeof i.__stubId==\"string\"){let c=i.__stubId.match(/^@symbo[-.]ls\\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=EA(i);if(!CA(a))return i;let c=s(a);return c?tr(i)?{...i,library:c}:c:null}).filter(Boolean)},hx=new WeakMap,d$={lazy:!0,window:globalThis},px=t=>{let e=hx.get(t);e&&(hx.delete(t),Y1(e))},p$=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||Rs,e.cssPropsRegistry=_t,e.window=z1(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>{let g=EA(p);return typeof g==\"string\"||CA(g)})){e.sharedLibraries=u$(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(P(),Vo));e.sharedLibraries=await p(e.sharedLibraries,{apiBaseUrl:T_()})}F1(e.sharedLibraries),rE(e)}Zc(e,e.designSystem);let[s,i]=Q1(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Dc.prepareContext(e);let a=tE(t,e);if(e.state=a,Qi(a),e.pages=eE(t,e),e.components=H1(e),e.utils=W1(e),Ur[e.packageManager]){let h=G1(e);h&&h.deferred?(h.blocking&&await M_({...e,dependencies:h.blocking}),hx.set(e,h.deferred)):e.dependencies=await M_(e)}if(e.methods=q1(e),e.routerOptions=RC(t,e),e.defaultExtends=[Nu],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!=\"object\")){let h=e.plugins.filter(p=>!p||typeof p!=\"object\");e.plugins=e.plugins.filter(p=>p&&typeof p==\"object\"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?\"y\":\"ies\"} (${h.map(p=>JSON.stringify(p)).join(\", \")}) \\u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}e.globalScope&&k(e.globalScope)&&(e.globalScope=bi(e.globalScope));let c=(h,p)=>{let g=p?h[p]:h;if(!k(g))return;let m=_e(g,{},d$);try{Object.assign(g,m)}catch(b){if(p)h[p]=m;else throw b}};c(t),c(e,\"components\"),c(e,\"pages\"),c(e,\"functions\"),c(e,\"methods\"),c(e,\"snippets\"),c(e,\"app\");let l=h=>h&&typeof h.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=h=>e.plugins.some(p=>p&&p.name===h);if(e.polyglot&&!f(\"polyglot\")){e.plugins.push(Ds);for(let h in Uc)typeof e.functions[h]!=\"function\"&&(e.functions[h]=Uc[h])}if(f(\"helmet\")||e.plugins.push(t_),e.fetch&&!f(\"fetch\")&&e.plugins.push(pg),e.designSystem?.typography?.useCapsize!==!1&&!f(\"capsize\")&&(e.plugins.push(Ju),e.cssPropsRegistry.useCapsize=o_),e.shorthand&&!f(\"shorthand\")&&e.plugins.push(Dc),e.analyze&&!f(\"analyze\")){let h=e.analyze===!0?{}:e.analyze;e.analyze=ld(h),e.plugins.push(Ls)}e.sync!==!1&&!f(\"sync\")&&e.plugins.push(JE),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(QE);let d=(h,p,g)=>{if(e[h]!==!1){for(let m in p)k(e.components[m])||(e.components[m]=p[m]);for(let m in g)typeof e.functions[m]!=\"function\"&&(e.functions[m]=g[m])}};return d(\"windows\",ex,Pr),d(\"dropdown\",ax,lx),d(\"tooltip\",kA,vA),e},gx=async(t,e)=>{k(e)||(e={}),dr(t)?(t={},e.parent=t):w(t)?(t={},e.key=t):k(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 p$(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&&k(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=VC(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await X1({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 px(e),t;let i=e.parent||s.body;if(n){let c=h$(he,t,i,e,r,o);return px(e),c}let a=he(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return px(e),typeof window<\"u\"&&!e.document&&(window.__smblsApp=a),a},h$=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 g$(o),c},g$=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var mx=(t,e)=>nt(t,k(e)?e:{}),m$=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},y$=()=>{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}},AA=t=>{let e=y$();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e===\"runner\"&&typeof t.editor.livesync>\"u\"&&(t.editor.livesync=!0))},yx=(t,e=ln,r)=>{let n={...ln,...mx(e,r)};return AA(n),m$(n),gx(t,n).then(s=>{if(Jb(s,n),s.destroy=()=>Sc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=wc(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})},b$=(t,e=ln,r)=>{let n=yx(t,e,r),o={...ln,...mx(e,r)},s=o.key;return LC(n,s,{utils:xc,...o}),n},_$=async(t,e=ln,r)=>{let n={...ln,...mx(e,r)};AA(n);let o=e.key;await IC(o,n);let s=await gx(t,n);return Jb(s,n),s.destroy=()=>Sc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=wc(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},x$=(t={},e=ln,r)=>yx({deps:{isUndefined:Pt},...t},nt({domqlOptions:{onlyResolveExtends:!0}},e),r);Hu(nc);I1(void 0,{smbls:bx});L1(void 0,{\"@symbo.ls/windows\":()=>({...rx,...tx}),\"@symbo.ls/dropdown\":()=>({...cx,...fx})});return LA(bx);})();\n";
|
|
2
|
+
export const version = "3.14.815";
|
|
3
|
+
export default "\"use strict\";var Smbls=(()=>{var TA=Object.create;var Qc=Object.defineProperty;var OA=Object.getOwnPropertyDescriptor;var RA=Object.getOwnPropertyNames;var PA=Object.getPrototypeOf,DA=Object.prototype.hasOwnProperty;var U=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var rp=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},L=(t,e)=>{for(var r in e)Qc(t,r,{get:e[r],enumerable:!0})},_x=(t,e,r,n)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of RA(e))!DA.call(t,o)&&o!==r&&Qc(t,o,{get:()=>e[o],enumerable:!(n=OA(e,o))||n.enumerable});return t};var IA=(t,e,r)=>(r=t!=null?TA(PA(t)):{},_x(e||!t||!t.__esModule?Qc(r,\"default\",{value:t,enumerable:!0}):r,t)),LA=t=>_x(Qc({},\"__esModule\",{value:!0}),t);var wp,Sp,C,et,ni=U(()=>{\"use strict\";wp=globalThis,Sp=globalThis,C=globalThis,et=C.document});var dr,oi,Xt,si=U(()=>{\"use strict\";ni();dr=t=>(typeof Node==\"object\"?t instanceof C.Node:t&&typeof t==\"object\"&&typeof t.nodeType==\"number\"&&typeof t.nodeName==\"string\")||!1,oi=t=>(typeof HTMLElement==\"object\"?t instanceof C.HTMLElement:t&&typeof t==\"object\"&&t!==null&&t.nodeType===1&&typeof t.nodeName==\"string\")||!1,Xt=t=>typeof C<\"u\"&&(C.Node&&t instanceof C.Node||C.Window&&t instanceof C.Window||t===C||et!==void 0&&t===et)});var v,S,Ke,O,ul,dl,R,pl,j,Ot,Pt,ii,Zt,kp,Dt=U(()=>{\"use strict\";si();v=t=>t===null?!1:typeof t==\"object\"&&t.constructor===Object,S=t=>typeof t==\"string\",Ke=t=>typeof t==\"number\",O=t=>typeof t==\"function\",ul=t=>t===!0||t===!1,dl=t=>t===null,R=t=>Array.isArray(t),pl=t=>t instanceof Date,j=t=>t===null?!1:typeof t==\"object\",Ot=t=>t!==void 0,Pt=t=>t===void 0,ii={boolean:ul,array:R,object:v,string:S,date:pl,number:Ke,null:dl,function:O,objectLike:j,node:dr,htmlElement:oi,defined:Ot},Zt=t=>(...e)=>e.some(r=>ii[r](t)),kp=t=>(...e)=>!e.some(r=>ii[r](t))});var vp,Cp,Ep,Ap,wo,ai,Tp,Op,ci,Rp,Pp,Dp,Ip,Lp,$p,Mp,So,li,ko=U(()=>{\"use strict\";pr();Dt();vp=(t,e)=>e.every(r=>t.includes(r)),Cp=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},Ep=(t,e)=>{if(S(e)&&(e=parseInt(e)),Ke(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},Ap=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},wo=(...t)=>[].concat(...t),ai=(t,e=[])=>t.reduce((r,n)=>nt(r,st(n,{exclude:e}),e),{}),Tp=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Op=(t,e)=>{if(!R(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},ci=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Rp=(t,e)=>t.filter(r=>r!==e),Pp=(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},Dp=(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},Ip=(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},Lp=(t,e)=>t.filter(r=>!e.includes(r)),$p=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Mp=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},So=t=>R(t)?[...new Set(t)]:t,li=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function $t(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!t.includes(o)||!JA(this,t))return t;let s=ZA[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let d=f.trim();if(u){let h=a?.context,p=h?.functions?.[u]||h?.utils?.[u]||h?.methods?.[u]||h?.snippets?.[u]||a?.[u];if(p&&typeof p==\"function\")try{return String(p.call(a,d)??\"\")}catch{return\"\"}return\"\"}if(l){let h=(l.match(/\\.\\.\\//g)||[]).length,p=i;for(let m=0;m<h;m++){if(!p||!p.parent)return\"\";p=p.parent}if(d===\"parent\")return String(p.value??\"\");let g=fi(p,d);return g!=null&&typeof g==\"object\"?\"\":String(g??\"\")}else{let h=fi(i,d);if(h!=null&&typeof h!=\"object\")return String(h);let p=a?.context?.polyglot;if(p?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||p.defaultLang||\"en\",m=p.translations[g];if(m){let x=fi(m,d);if(x!=null&&typeof x!=\"object\")return String(x);for(let b in m){let _=m[b];if(_&&typeof _==\"object\"&&!Array.isArray(_)){let w=fi(_,d);if(w!=null&&typeof w!=\"object\")return String(w)}}}let y=fi(p.translations,d);if(y!=null&&typeof y!=\"object\")return String(y)}return\"\"}})}var ui,Fp,ZA,fi,JA,xn,Np,QA,jp,Bp,Up,tT,Vp,zp,di=U(()=>{\"use strict\";ui=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Fp=(t,e)=>{let r=new RegExp(`[${e.join(\"\\\\\")}]`,\"g\");return t.replace(r,\"\")},ZA={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},fi=(t,e)=>e.split(\".\").reduce((r,n)=>r?.[n],t),JA=(t,e)=>{if(!t||!t.__ref)return!0;let r=t;for(;r;){if(r.allowRuntimeTemplates===!0)return!0;let n=r.__ref&&r.__ref.__authoredTemplates;if(n&&n.has(e))return!0;r=r.parent}return!1};xn=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Np=(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}},QA=/\\\\([0-7]{1,3})/g,jp=t=>t.replace(QA,(e,r)=>String.fromCharCode(parseInt(r,8))),Bp=t=>t.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),Up=t=>t.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),tT=/[^a-zA-Z0-9\\s]/g,Vp=t=>t.replace(tT,e=>\"%\"+e.charCodeAt(0).toString(16).toUpperCase()),zp=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Lr,pi,Hp,wn,$r,Mr,Wp,vo,Sn,hi,qp,kn=U(()=>{\"use strict\";Lr=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\"]),pi=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),Hp=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],wn=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\"]),$r=new Set([\"update\",\"__element\"]),Mr=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\"]),Wp=t=>Mr.has(t),vo=new Set([\"log\",\"warn\",\"error\",\"verbose\"]),Sn=t=>Mr.has(t)&&!vo.has(t),hi=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...Mr,...wn,...$r]),qp=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])});function gT(){let t=vn.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var Dx,Cn,lt,Gp,yt,nt,Bx,Yp,st,mi,eT,rT,Ix,yi,nT,oT,sT,Ge,Ux,iT,hl,Vx,Kp,vn,aT,cT,lT,fT,uT,Lx,dT,$x,pT,Mx,gl,hT,mT,yT,bT,Fx,Xp,Ie,En,_T,xT,_e,zx,Hx,Wx,qx,Kx,Nx,gi,jx,bi,Zp,Jp,ml,Qp,th,_i,An,Wt,yl,wT,eh,rh,bl,nh,oh,sh,ih,ah,ch,lh,pr=U(()=>{\"use strict\";ni();Dt();ko();di();si();kn();Dx=\"production\",Cn=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,lt=(t,e,r,n)=>{if(O(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&&(R(t)||v(t)&&!Xt(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 lt(i,e,r,n)}}return t},Gp=(t,e,r)=>{for(let n in e)t[n]=lt(e[n],r)},yt=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Cn(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},nt=(t,e,r=hi)=>Bx(t,e,r,null),Bx=(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)||Cn(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(j(i)&&j(a)){let c=n||[];c.push(t,e),Bx(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Yp=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Cn(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},st=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!j(t)||Xt(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=R(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let h in u){if(!Object.prototype.hasOwnProperty.call(u,h)||Cn(h)||h===\"__proto__\"||c(h))continue;let p=u[h];if(!(n&&p===void 0)&&!(o&&p===null)){if(Xt(p)){d[h]=p;continue}if(i&&h===\"extends\"&&R(p)){d[h]=ai(p,r);continue}if(O(p)){d[h]=p;continue}if(j(p))if(s.has(p))d[h]=s.get(p);else{let g=R(p)?[]:{};s.set(p,g),d[h]=g,f.push([p,g])}else d[h]=p}}}return l},mi=(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(O(n))e[r]=n.toString();else if(v(n))e[r]={},mi(n,e[r]);else if(R(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];v(i)?(o[s]={},mi(i,o[s])):O(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},eT=/^[A-Za-z_$][A-Za-z0-9_$]*$/,rT=t=>`'${String(t).replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/\\r/g,\"\\\\r\").replace(/\\n/g,\"\\\\n\")}'`,Ix=t=>{let e=String(t);return ui(e,[`\n`,\"'\"])?\"`\"+e.replace(/\\\\/g,\"\\\\\\\\\").replace(/`/g,\"\\\\`\").replace(/\\$\\{/g,\"\\\\${\")+\"`\":\"'\"+e.replace(/\\\\/g,\"\\\\\\\\\").replace(/'/g,\"\\\\'\").replace(/\\r/g,\"\\\\r\")+\"'\"},yi=(t={},e=0)=>{if(t===null||typeof t!=\"object\"||t instanceof RegExp)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=eT.test(s)?s:rT(s);if(o+=`${n} ${a}: `,i instanceof RegExp)o+=String(i);else if(R(i)){o+=`[\n`;for(let c of i)c instanceof RegExp?o+=`${n} ${String(c)},\n`:j(c)&&c!==null?o+=`${n} ${yi(c,e+2)},\n`:S(c)?o+=`${n} ${Ix(c)},\n`:o+=`${n} ${c},\n`;o+=`${n} ]`}else j(i)?o+=yi(i,e+1):S(i)?o+=Ix(i):o+=i;o+=`,\n`}return o+=`${n}}`,o},nT=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/,/^(?:\\*\\s*)?[a-zA-Z_$][\\w$]*\\s*\\((?:[^()]|\\([^()]*\\))*\\)\\s*\\{[\\s\\S]*\\}$/],oT=/^[\"[{]/,sT=/^(export|import)\\s/,Ge=t=>{if(!t)return!1;let e=t.trim();if(e===\"\"||e===\"{}\"||e===\"[]\")return!1;let r=e.includes(\"=>\");if(!r&&e.charCodeAt(0)!==40&&!e.startsWith(\"function\")&&!e.startsWith(\"async\")&&!(e.charCodeAt(e.length-1)===125&&e.includes(\"(\"))||sT.test(e)||!nT.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!r||o===91||oT.test(e)&&!r)},Ux=t=>(0,eval)(t),iT=(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 d=t.indexOf(`\n`,s);s=d===-1?c:d;continue}if(u===\"/\"&&t[s+1]===\"*\"){let d=t.indexOf(\"*/\",s+2);s=d===-1?c:d+2;continue}if(u==='\"'||u===\"'\"||u===\"`\"){let d=u;for(s++;s<c;){if(t[s]===\"\\\\\"){s+=2;continue}if(t[s]===d){s++;break}if(d===\"`\"&&t[s]===\"$\"&&t[s+1]===\"{\"){s+=2;let h=1;for(;s<c&&h>0;)t[s]===\"{\"?h++:t[s]===\"}\"&&h--,s++;continue}s++}continue}if(u===\"{\"){i++,s++;continue}if(u===\"}\"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let d=s,h=0,p=s;for(;p<c;){let g=t[p];if(g==='\"'||g===\"'\"||g===\"`\"){let m=g;for(p++;p<c;){if(t[p]===\"\\\\\"){p+=2;continue}if(t[p]===m){p++;break}p++}continue}if(g===\"(\"||g===\"[\"||g===\"{\"){h++,p++;continue}if(g===\")\"||g===\"]\"||g===\"}\"){if(h===0)break;h--,p++;continue}if(h===0&&(g===\";\"||g===`\n`)){p++;break}p++}o.push([d,p]),s=p;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},hl=(t,e,r,n)=>{let o=String(t).trimStart();if(/^(export|import)\\s/.test(o))return t;try{return r.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\\s(]/.test(f))try{l=r.window.eval(\"(async \"+f+\")\")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let h=iT(f,u);if(!h||h===f)break;f=h;try{l=r.window.eval(\"(\"+f+\")\");break}catch(p){let g=/Identifier '([^']+)' has already been declared/.exec(p&&p.message||String(p));if(!g||g[1]!==u)break}}}if(!l&&/Unexpected (token '\\{'|identifier)/.test(i))try{let f=r.window.eval(\"({\"+t+\"})\");if(f&&typeof f==\"object\"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]==\"function\"&&(l=f[u[0]])}}catch{}return l||(typeof console<\"u\"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \\u2014 `+(n?\"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: \":\"value will be left as a string. Reason: \")+i+`.\nFirst 200 chars of source: `+String(t).slice(0,200)),t)}},Vx=1,Kp=2,vn=new WeakMap,aT=/^(async\\s+)?function(?![\\w$])\\s*(\\*)?\\s*([A-Za-z_$][\\w$]*)?\\s*\\((?:[^()'\"`/]|\\([^()'\"`/]*\\))*\\)\\s*\\{/,cT=/^(async\\s+)?[A-Za-z_$][\\w$]*\\s*=>/,lT=/^(async\\s*)?\\((?:[^()'\"`/]|\\([^()'\"`/]*\\))*\\)\\s*=>/,fT=/^(async\\s+)?([A-Za-z_$][\\w$]*)\\s*\\((?:[^()'\"`/]|\\([^()'\"`/]*\\))*\\)\\s*\\{/,uT=new Set([\"if\",\"for\",\"while\",\"switch\",\"catch\",\"with\",\"do\",\"return\",\"typeof\",\"void\",\"delete\",\"new\",\"in\",\"of\",\"instanceof\",\"function\",\"class\",\"const\",\"let\",\"var\",\"await\",\"yield\",\"import\",\"export\",\"try\",\"else\",\"throw\",\"case\",\"default\",\"break\",\"continue\",\"debugger\",\"finally\",\"super\",\"this\",\"null\",\"true\",\"false\",\"async\",\"get\",\"set\",\"static\"]),Lx=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,dT=(t,e,r)=>{let n=t.indexOf(e,r);for(;n!==-1;){let o=n+e.length;if((n===0||!Lx(t.charCodeAt(n-1)))&&(o>=t.length||!Lx(t.charCodeAt(o))))return!0;n=t.indexOf(e,o)}return!1},$x=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},pT=t=>{let e=t,r=0;for(;r<e.length&&e.charCodeAt(r)<=32;)r++;r&&(e=e.slice(r));let n=aT.exec(e);if(n){if(n[2]||$x(e)!==125)return null;let o=n[3]||\"\";return o&&dT(e,o,n[0].indexOf(\"(\"))||e.indexOf(\"arguments.callee\")!==-1?null:{src:t,name:o,kind:n[1]?Kp:Vx,async:!!n[1],fn:void 0}}return n=cT.exec(e)||lT.exec(e),n?{src:t,name:\"\",kind:Kp,async:!!n[1],fn:void 0}:(n=fT.exec(e),n&&!uT.has(n[2])&&$x(e)===125?e.indexOf(\"arguments.callee\")!==-1?null:{src:t,name:n[2],kind:Kp,async:!!n[1],fn:void 0}:null)},Mx=t=>t.index===-1?`\"${t.key}\"`:`array index ${t.index} (prop \"${t.key}\")`,gl=t=>{let e=hl(t.src,Mx(t),t.opts,!0),r=null;return typeof e==\"function\"?r=e:(t.value=e,typeof e!=\"string\"&&typeof console<\"u\"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${Mx(t)} did not evaluate to a function \\u2014 the lazily revived function returns that value.\nFirst 200 chars of source: `+String(t.src).slice(0,200))),t.fn=r,t.opts=null,r},hT=(t,e,r)=>Reflect.construct(t,e,r);mT={length:{get(){let t=vn.get(this);if(!t)return 0;let e=t.fn===void 0?gl(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=vn.get(this);return t?t.name:\"\"},configurable:!0},toString:{value:gT,writable:!0,configurable:!0}},yT=Object.getPrototypeOf(async function(){}),bT=t=>{let e;return t.kind===Vx?e=function(){let r=t.fn===void 0?gl(t):t.fn;return r===null?t.value:new.target?hT(r,arguments,new.target):r.apply(this,arguments)}:e={lazy(){let r=t.fn===void 0?gl(t):t.fn;return r===null?t.value:r.apply(this,arguments)}}.lazy,vn.set(e,t),Object.defineProperties(e,mT),t.async&&Object.setPrototypeOf(e,yT),e},Fx=(t,e,r,n)=>{let o=pT(t);return o?(o.key=e,o.index=r,o.opts=n,bT(o)):hl(t,r===-1?`\"${e}\"`:`array index ${r} (prop \"${e}\")`,n)},Xp=t=>typeof t==\"function\"&&vn.has(t),Ie=t=>{let e=vn.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},En=t=>{let e=typeof t==\"function\"?vn.get(t):void 0;return e?(e.fn===void 0?gl(e):e.fn)===null:!1},_T=new Set([\"components\",\"pages\",\"functions\",\"methods\",\"snippets\",\"app\",\"globalScope\"]),xT={window:{eval:Ux}},_e=(t,e={},r=xT)=>{if(!t||typeof t!=\"object\")return e;(!r||!r.window||typeof r.window.eval!=\"function\")&&(r={...r,window:{eval:Ux}});let n=r.lazy===!0,o=r.lazy===\"context\",s=(a,c,l)=>n||o&&(a===t?_T.has(c):l),i=[[t,e,n]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let u=a[f];if(S(u))Ge(u)?c[f]=l?Fx(u,f,-1,r):hl(u,`\"${f}\"`,r):c[f]=u;else if(R(u)){let d=c[f]=[],h=s(a,f,l);for(let p=0;p<u.length;p++){let g=u[p];if(S(g))d.push(Ge(g)?h?Fx(g,f,p,r):hl(g,`array index ${p} (prop \"${f}\")`,r):g);else if(v(g)){let m=jx(g);if(m)d.push(m);else{let y={};d.push(y),i.push([g,y,h])}}else d.push(g)}}else if(v(u)){let d=jx(u);if(d){c[f]=d;continue}let h=c[f]&&typeof c[f]==\"object\"&&!R(c[f])?c[f]:c[f]={};i.push([u,h,s(a,f,l)])}else c[f]=u}}return e},zx=\"Set\",Hx=\"Map\",Wx=\"RegExp\",qx=\"WeakMap\",Kx=\"WeakSet\",Nx=t=>{let e=Object.keys(t);return e.length===1&&e[0]===\"__type\"},gi=(t,e)=>{if(!t||typeof t!=\"object\")return t;let r=s=>gi(s,e||(e=new WeakMap));if(t.__type===zx&&R(t.values))return new Set(t.values.map(r));if(t.__type===Hx&&R(t.entries))return new Map(t.entries.map(s=>R(s)?[r(s[0]),r(s[1])]:s));if(t.__type===qx&&Nx(t))return new WeakMap;if(t.__type===Kx&&Nx(t))return new WeakSet;if(t.__type===Wx&&S(t.source))try{return new RegExp(t.source,S(t.flags)?t.flags:\"\")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let n=!1;if(R(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=gi(t[i],e),s[i]!==t[i]&&(n=!0);return n||e.set(t,t),n?s:t}let o={};e.set(t,o);for(let s of Object.keys(t))o[s]=gi(t[s],e),o[s]!==t[s]&&(n=!0);return n||e.set(t,t),n?o:t},jx=t=>{if(!t||typeof t!=\"object\")return null;let e=t.__type;if(e!==Wx&&e!==zx&&e!==Hx&&e!==qx&&e!==Kx)return null;let r=gi(t);return r===t?null:r},bi=t=>{if(!t||typeof t!=\"object\")return t;let e={},r=[];for(let i of Object.keys(t)){let a=t[i];S(a)&&Ge(a)?r.push([i,a]):e[i]=gi(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=C.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]=C.eval(`(function(__gs__) { ${l}\n return (${c}); })`)(e)}catch{try{e[a]=C.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of r)if(!n(i))try{e[i]=C.eval(`(${a})`)}catch{e[i]=a}return e},Zp=(t,e={verbose:!0})=>{try{return t?C.eval(\"(\"+t+\")\"):{}}catch(r){e.verbose&&console.warn(r)}},Jp=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),ml=t=>{for(let e in t)return!1;return!0},Qp=t=>v(t)&&ml(t),th=()=>Object.create(null),_i=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Cn(s)||s===\"constructor\"||s===\"prototype\"||e[s]!==void 0&&(t[s]=e[s]);return t},An=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Cn(o)||o===\"constructor\"||o===\"prototype\"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},Wt=(t,e,r={},n=new WeakMap)=>{if(!j(t)||!j(e)||Xt(t)||Xt(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&&Cn(a)||a===\"constructor\"||a===\"prototype\")continue;let c=t[a],l=e[a];Xt(l)?t[a]=l:j(c)&&j(l)?t[a]=Wt(c,l,r,n):l!==void 0&&(t[a]=l)}return t},yl=(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)||!yl(t[i],e[i],r))return!1}return!0},wT=new Set([\"node\",\"__ref\"]),eh=(t,e,r=wT)=>{if(t===e)return!0;if(!j(t)||!j(e)||Xt(t)||Xt(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(Xt(l)||Xt(f)){if(l!==f)return!1}else if(j(l)&&j(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},rh=(t,e)=>{if(e==null)return t;if(Zt(e)(\"string\",\"number\"))delete t[e];else if(R(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},bl=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]=bl(t[r]));return e},nh=(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},oh=(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]},sh=(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},ih=(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},ah=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(Dx===\"test\"||Dx===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",r),!0},ch=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)},lh=(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 xi,wi,Si,_l=U(()=>{\"use strict\";pr();xi=(function(){let t=0;function e(){return t++,t}return e})(),wi=xi,Si=(t,e,r)=>(lt(r,t)||r||t.key||xi()).toString()});var Le,fh,Fr,xl,uh,dh,ph,Nr,hh,Tn,pt,wl=U(()=>{\"use strict\";Le=\"production\",fh=Le,Fr=(t=Le)=>t===\"production\",xl=(t=Le)=>t===\"testing\"||t===\"test\",uh=xl,dh=(t=Le)=>t===\"staging\",ph=(t=Le)=>t===\"local\",Nr=(t=Le)=>t===\"development\"||t===\"dev\"||t===\"local\",hh=(t,e=Le)=>e[t],Tn=(t=Le)=>!Fr(t),pt=t=>{let e=t&&\"env\"in t?t.env:typeof process<\"u\"&&process.env?\"production\":void 0;if(e&&e!==\"production\")return!0;let r=t&&\"hostname\"in t?t.hostname:typeof location<\"u\"?location.hostname:void 0;return typeof r==\"string\"&&r?r===\"localhost\"||r===\"127.0.0.1\"||r.endsWith(\".localhost\"):!1}});function ki(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 yh(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 gh,mh,ST,vi,Co,Eo,Rt,On=U(()=>{\"use strict\";gh=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},mh=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}}},ST=/^\\s*(?:async\\s+)?(?:function\\b|\\([^)]*\\)\\s*=>|[a-zA-Z_$][\\w$]*\\s*=>)/,vi=t=>ST.test(t),Co=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Eo=(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},Rt=(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 bh,Gx=U(()=>{\"use strict\";Dt();pr();bh=(t,e)=>{let{__ref:r}=t,n=t.if;if(O(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\"?lt(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var _h,xh,Yx=U(()=>{\"use strict\";_h=(t,...e)=>{t&&e.map(r=>console.log(r))},xh=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Ch(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 Eh(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 wh,Sh,kh,vh,Xx=U(()=>{\"use strict\";Dt();ni();wh=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),Sh=(t,e,r=365)=>{if(Pt(et)||Pt(et.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;et.cookie=`${t}=${e};${o};path=/`},kh=t=>{if(Pt(et)||Pt(et.cookie))return;let e=`${t}=`,n=decodeURIComponent(et.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\"\"},vh=t=>{Pt(et)||Pt(et.cookie)||(et.cookie=t+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}});var Ao,Zx,Ah,Th=U(()=>{\"use strict\";Ao={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\"])},Zx=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\"]),Ah=t=>Ao.body.has(t)});var Oh,Jx,To,xe,Oo,Ai,Ye,Rh,Sl,Ti,Ph,Oi,kl,vl,Ri,Cl,Ro,kT,Xe,Qx,Ci,Pi,Dh,Ei,Ih,Lh,El,Al,Tl,Ol,Rl,Pl,tw,Dl=U(()=>{\"use strict\";ko();$h();pr();Dt();Oh=\"production\",Jx=t=>t.sourcemap!==!1&&Oh!==\"production\",To=t=>{if(!t)return[];let e=[],r=t.extends;r&&(R(r)?e.push(...r):e.push(r));let n=t.extend;return n&&(R(n)?e.push(...n):e.push(n)),e},xe=t=>{if(!R(t))return t;let e=[];for(let r=t.length-1;r>=0;r--){let n=t[r];e.push(R(n)?xe(n):n)}return e},Oo=t=>{if(t.includes(\"+\"))return t.split(\"+\").filter(Ze);if(t.includes(\"_\")){let[e]=t.split(\"_\");return[e]}if(t.includes(\".\")&&!Ze(t.split(\".\")[1])){let[e]=t.split(\".\");return[e]}return[t]},Ai=(t,e,r)=>{let n=[],o=Oo(r);o&&(n=[...o]);let s=xe(To(t));return s.length&&(n=[...n,...s]),n},Ye=(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},Rh=(t,e)=>{if(!t)return e;let{extends:r}=e,n=R(r)?r:[r],o=R(t)?t:[t];return{...e,extends:wo(o,n)}},Sl=()=>Math.random().toString(36).substring(2),Ti={},Ph={},Oi=t=>Ti[t.__hash],kl=(t,e)=>{let r=Sl();return S(t)||(t.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(Ti[r]=e),e},vl=(t,e)=>t.__hash?e.concat(Oi(t)):kl(t,e),Ri=(t,e,r,n=new Set,o,s)=>{for(let i of t)R(i)?Ri(i,e,r,n,o,s):Ro(i,e,r,n,o,void 0,s);return e},Cl=(t,e,r,n=new Set,o,s,i)=>{let a=To(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a.length&&Ro(xe(a),e,r,n,o,s,i),e},Ro=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(R(t))return Ri(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=Pi(t,r)):i&&v(t)&&i.has(t)&&(a=i.get(t)),n.has(t)||(n.add(t),t?.extends||t?.extend?Cl(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a))),e},kT=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"extend\",\"childExtends\",\"childExtendsRecursive\"]),Xe=(t,e,r,n,o)=>{e=st(e);for(let s in e){if(kT.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?v(a)&&!R(a)?(r[s]=r[s]||{},Qx(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(v(i)&&v(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];Ze(s)?t[s]=Xe(i,a,c,n,l):Xe(i,a,c,n,l)}if(s===\"extends\"||s===\"childExtends\"||s===\"childExtendsRecursive\"){if(R(i)&&R(a))t[s]=i.concat(a);else if(R(i)&&v(a)){let c=Xe({},i);t[s]=Xe(c,a)}}}}return t},Qx=(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];v(s)&&!R(s)?(t[o]=t[o]||{},Qx(t[o],s,r,n)):t[o]=r}}},Ci=(t,e,r)=>t.reduce((n,o,s)=>{let i=st(o),a=r?r[s]:void 0;return Xe(n,i,e,a)},{}),Pi=(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&&(Oh===\"test\"||Oh===\"development\")&&console.warn(\"Extend is string but component was not found:\",t);return}return t},Dh=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Ei=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Oi(t)||[];let s=Ro(t,[],e,new Set,r,void 0,n);return r?s:vl(t,s)},Ih=(t,e)=>{if(!t)return e;let r=R(t)?t:[t];return wo(r,e)},Lh=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Ze(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},El=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=To(t);if(i.length){let a=xe(i),[c,...l]=a,f=typeof c==\"string\"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?Ye([f,...l],t):Ye(a,t)}return Al(t,e,r),Tl(t,e,r),Ol(t,e,r),t.component&&Ye(xe(lt(t.component,t)),t),o.defaultExtends&&Ye(xe(o.defaultExtends),t),So(n.__extends)},Al=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Ye(xe(e.childProps.extends),t),n.__extends},Tl=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Ye(xe(s),t),n.__extends},Ol=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key===\"__text\";return o&&!i&&!s&&Ye(xe(o),t),n.__extends},Rl=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Jx(r),a=i?[...n.__extends]:null,c=So(n.__extends.map((l,f)=>Pi(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let h=c[d],p=a[d];h&&v(h)&&S(p)&&l.set(h,p)}let f=[],u=Ei(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=Ei(c,o);n.__extendsStack=l}return n.__extendsStack},Pl=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Jx(r)){let s={},i=n.__extendsNames||[],a=Ci(o,s,i),c={};Xe(t,a,c,void 0,s),n.__sourcemap=c}else{let s=Ci(o);Xe(t,s)}return t},tw=(t,e,r={})=>(El(t,e,r),Rl(t,e,r),Pl(t,e,r),t)});function Mh(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Fh(t){return Object.keys(t).filter(e=>/^\\d+$/.test(e))}function Nh(t,e,r){let{context:n}=e||{},[o]=Oo(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Ze,$h=U(()=>{\"use strict\";Dl();Dt();Ze=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function ew(t,e){let{props:r,on:n}=e,o=xn(t.split(\"on\")[1]),s=n[o],i=r[t];O(s)?n[o]=(...a)=>{if(s(...a)!==!1&&O(i))return i(...a)}:n[o]=i}var rw=U(()=>{\"use strict\";di();Dt()});function Il(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()&&(O(o)||o!=null&&Co(this.context))){let p=xn(n.slice(2));t.on&&(t.on[p]=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=v(a)||O(a),f=v(c)||O(c);if(l||f)continue;let u=n.charAt(0);if(ow.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let d=jh.test(n)||nw.test(n)||CT(o),h=Lr.has(n);!d&&!h&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Ll(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=O(o)||o!=null&&Co(this.context);if(s&&i){ew(n,t),delete t.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(ow.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=v(c)||O(c),u=v(l)||O(l),d=jh.test(n)||nw.test(n),h=Lr.has(n);(d||h||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function $l(t=this){let e=[];return Il.call(this,t,{cachedKeys:e}),Ll.call(this,t,{cachedKeys:e}),t}function Bh(t={}){return t.on||(t.on={}),t.props||(t.props={}),$l.call(this,t)}function Vh(t,e){this.__element.update({props:t},e)}function Mi(t){let e={update:Vh.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var jh,nw,ow,vT,CT,Li,Di,Uh,$i,Fi,Ni,Ml,Ii,zh,Hh,Wh=U(()=>{\"use strict\";kn();rw();pr();Dt();di();On();jh=/^[A-Z]/,nw=/^\\d+$/,ow=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),vT=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),CT=t=>{if(!t||typeof t!=\"object\"||Array.isArray(t))return!1;for(let e in t)if(vT.has(e)||jh.test(e))return!0;return!1},Li=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return j(n)?{...n}:(o.__propsStack.push(n),{})};Di=t=>Zt(t)(\"string\",\"number\")?{inheritedString:t}:t,Uh=(t,e)=>!t||!e.length?!1:e.includes(t),$i=(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=Di(i);n.unshift(c)}if(s){let c=Di(s);n.unshift(c)}return n};Fi=t=>{let e=new Set;return t.filter(r=>!r||$r.has(r)||e.has(r)?!1:(e.add(r),!0))},Ni=(t,e,r)=>(e.props=t.reduce((n,o)=>{if($r.has(o))return n;for(;O(o);)o=lt(o,e);return nt(n,st(o,{exclude:$r}))},{}),Mi(e),e.props),Ml=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...$i(t,e)]),v(r)?o.push(r):r===\"inherit\"&&e?.props?o.push(e.props):r&&o.push(r),R(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=Fi(o),n.__propsStack},Ii=(t,e)=>{let{__ref:r}=t,n=Ml(t,e);n.length?Ni(n,t):(r.__propsStack=[],t.props={})},zh=function(t,e,r){let{__ref:n}=t;if(n.__if)Ii(t,e);else try{Ii(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),t.props={},n.__propsStack=[]}return Mi(t),t},Hh=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=$i(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Fi(s),n.__propsStack.length&&Ni(n.__propsStack,e),e}});var sw,Fl,Nl,jl,Bl,qh,Ul,Vl,zl,Kh,iw=U(()=>{\"use strict\";Dl();_l();si();Wh();Th();Dt();sw=\"production\",Fl=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=Ao.body.has(r)&&r;return{text:t,tag:n||o||s||\"string\"}},Nl=(t,e,r)=>{if(t===void 0)return(sw===\"test\"||sw===\"development\")&&console.warn(r,\"element is undefined in\",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Zt(t)(\"string\",\"number\")?Fl(t,e,r):O(t)?{props:t}:t},jl=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Bl=(t,e,r,n,o)=>{if(!e)return o;if(dr(e)){let s={key:\":root\",node:e};return o[`${r}_parent`]=s,s}return e},qh=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===\":root\";r?.root||(r.root=o?t:n?.root)},Ul=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Vl=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),zl=(t,e,r)=>{let n=jl(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=Ai(t,e,r),n.path=Ul(t,e,r),n},Kh=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Nl(t,e,r);if(!i)return;let a=Bl(i,e,r,n,o),c=Si(i,a,r);zl(i,a,c);let l=Li(i,a,c),f=Vl(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Gh,Hl,Wl,ql,Kl,Yh,Gl,Xh,Zh,Jh,Qh,aw,ji,hr,Je,cw=U(()=>{\"use strict\";ko();kn();pr();Dt();Gh=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Zt(o)(\"string\",\"number\")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Hl=(t,e)=>{if(!t.includes(\"~/\"))return;if(t.split(\"~/\").length>1)return e.root},Wl=(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},ql=(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]},Kl=(t,e,r={})=>{let o=t.__ref.__state;if(!Gl(t))return;let s=Hl(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll(\"~/\",\"\");else{let a=Wl(o,e.state);a&&(i=a,o=o.replaceAll(\"../\",\"\"))}if(i)return ql(o,i,r)},Yh=(t,e)=>{let r=t.__ref,n=Kl(t,e);if(n===void 0)return t.state;if(Zt(n)(\"object\",\"array\"))return st(n);if(Zt(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},Gl=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Zt(r)(\"number\",\"string\",\"boolean\"))},Xh=function(t){return j(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Zh=(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},Jh=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=st(n,wn),s={[t.key]:o},i=v(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?li(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Qh=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){nt(t,e,wn);return}(o?An:Wt)(t,e,wn)},aw=\"__polyglotSeededKeys\",ji=t=>{if(!v(t))return new Set;let e=t[aw];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,aw,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},hr=(t,e,r)=>ji(t).has(e)?!0:!v(r)||r[e]===void 0,Je=(t,e)=>(ji(t).add(e),e)});var ET,tg,lw=U(()=>{\"use strict\";ET=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},tg=(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&&!ET(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var fw,Yl,gr,Xl,eg,rg=U(()=>{\"use strict\";Dt();On();fw=(t,e)=>{let r=\"on\"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Yl=(t,e,r,n,o)=>{if(t=Eo(t,e),!!O(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}},gr=(t,e,r)=>{if(!e)throw new Error(\"Element is required\");Rt(t,e,r);let n=fw(t,e);if(n){let{state:o,context:s}=e;return Yl(n,e,o,s,r)}},Xl=(t,e,r,n,o,s)=>{if(t=Eo(t,r),!!O(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}},eg=(t,e,r,n)=>{Rt(t,r,e,n);let o=fw(t,r);if(o){let{state:s,context:i}=r;return Xl(o,e,r,s,i,n)}}});var ng,Bi,og=U(()=>{\"use strict\";ng={},Bi={}});var gw={};L(gw,{restAdapter:()=>hw,setup:()=>MT});var AT,pw,uw,TT,OT,RT,dw,mr,PT,DT,IT,sg,LT,$T,MT,hw,mw=U(()=>{\"use strict\";AT=(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()},pw=t=>Object.prototype.toString.call(t).slice(8,-1),uw=[\"auto\",\"json\",\"text\",\"blob\",\"arrayBuffer\",\"stream\",\"response\"],TT={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},OT=t=>{let e=t.headers.get(\"content-type\");return e&&e.includes(\"json\")?t.json():t.text()},RT=async t=>{let e=await t.text(),r=t.headers.get(\"content-type\");if(e&&r&&r.includes(\"json\"))try{return JSON.parse(e)}catch{}return e},dw=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,mr=async(t,e,r)=>{let n=r??\"auto\";if(!uw.includes(n))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType \"${n}\" \\u2014 use one of: ${uw.join(\", \")}`);let o=await globalThis.fetch(t,e);if(n===\"auto\"){let s=await OT(o);return{data:s,error:o.ok?null:dw(s,o),status:o.status}}if(!o.ok){let s=await RT(n===\"response\"?o.clone():o);return{data:n===\"response\"?o:s,error:dw(s,o),status:o.status}}return{data:await TT[n](o),error:null,status:o.status}},PT=[\"FormData\",\"Blob\",\"File\",\"URLSearchParams\",\"ReadableStream\",\"ArrayBuffer\"],DT=t=>t!==null&&typeof t==\"object\"&&(ArrayBuffer.isView(t)||PT.includes(pw(t))),IT=t=>Array.isArray(t)?t:typeof t.entries==\"function\"?t.entries():Object.entries(t),sg=(...t)=>{let e={},r=new Map;for(let n of t)if(n)for(let[o,s]of IT(n)){let i=o.toLowerCase();if(r.has(i)&&delete e[r.get(i)],s==null){r.delete(i);continue}r.set(i,o),e[o]=s}return e},LT={\"Content-Type\":\"application/json\"},$T={\"Content-Type\":void 0},MT=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error(\"@symbo.ls/fetch rest: url is required\");return hw(t,e,r,n)},hw=(t,e={},r,n={})=>{let o=r?.token||null,s=()=>o?{Authorization:`Bearer ${o}`}:null,i=u=>sg(e,s(),u),a=u=>({...n,...u}),c=(u,d,h)=>{if(!DT(d))return a({method:u,headers:sg(e,s(),LT,h),body:JSON.stringify(d)});let p={method:u,headers:sg(e,s(),$T,h),body:d};return pw(d)===\"ReadableStream\"&&(p.duplex=\"half\"),a(p)},l=(u,d)=>{let h=d||t;if(u&&(u.startsWith(\"http://\")||u.startsWith(\"https://\")))return u;let p=u&&!u.startsWith(\"/\")?\"/\":\"\";return`${h}${p}${u||\"\"}`};return{name:\"rest\",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await mr(l(r.sessionUrl,r.baseUrl),a({headers:i()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error(\"rest: auth.signInUrl not configured\");let d=await mr(l(r.signInUrl,r.baseUrl),c(\"POST\",u));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await mr(l(r.signOutUrl,r.baseUrl),a({method:\"POST\",headers:i()})),o=null,{error:null}),select:({from:u,params:d,select:h,limit:p,offset:g,order:m,single:y,headers:x,baseUrl:b,responseType:_})=>{let w={...d};return h&&(w.select=h),p&&(w.limit=p),g&&(w.offset=g),y&&(w.single=!0),m&&(typeof m==\"string\"?w.order=m:Array.isArray(m)?w.order=m.map(k=>`${k.by}:${k.asc===!1?\"desc\":\"asc\"}`).join(\",\"):m.by&&(w.order=`${m.by}:${m.asc===!1?\"desc\":\"asc\"}`)),mr(AT(b||t,u||\"\",w),a({headers:i(x)}),_)},rpc:({from:u,params:d,headers:h,baseUrl:p,responseType:g})=>mr(l(`rpc/${u}`,p),c(\"POST\",d,h),g),insert:({from:u,data:d,headers:h,baseUrl:p,responseType:g})=>mr(l(u,p),c(\"POST\",d,h),g),update:({from:u,data:d,params:h,method:p,headers:g,baseUrl:m,responseType:y})=>{let x=h?.id||d?.id,b=x?`${u}/${x}`:u;return mr(l(b,m),c(p||\"PATCH\",d,g),y)},upsert:({from:u,data:d,params:h,method:p,headers:g,baseUrl:m,responseType:y})=>{let x=h?.id||d?.id,b=x?`${u}/${x}`:u;return mr(l(b,m),c(p||\"PUT\",d,g),y)},delete:({from:u,params:d,headers:h,baseUrl:p,responseType:g})=>{let m=d?.id,y=m?`${u}/${m}`:u;return mr(l(y,p),a({method:\"DELETE\",headers:i(h)}),g)}}}});var bw={};L(bw,{localAdapter:()=>yw,setup:()=>NT});var Zl,FT,NT,yw,_w=U(()=>{\"use strict\";Zl=(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},FT=(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}},NT=async({data:t,...e})=>yw(t,e),yw=(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,d,h)=>{let p=n[f];if(p)for(let g of p)g(d,h,{event:u,table:f})},l=Date.now();return{name:\"local\",store:r,select:async({from:f,params:u,...d})=>{let p=i(f).filter(g=>Zl(g,u));return FT(p,d)},insert:async({from:f,data:u})=>{let d=i(f),p=(Array.isArray(u)?u:[u]).map(g=>{let m={id:g.id||++l,...g};return d.push(m),m});a(f);for(let g of p)c(f,\"INSERT\",g,null);return{data:Array.isArray(u)?p:p[0],error:null}},update:async({from:f,data:u,params:d})=>{let h=i(f),p=[];for(let g=0;g<h.length;g++)if(Zl(h[g],d)){let m={...h[g]};Object.assign(h[g],u),p.push(h[g]),c(f,\"UPDATE\",h[g],m)}return a(f),{data:p,error:null}},upsert:async({from:f,data:u,params:d})=>{let h=i(f),p=Array.isArray(u)?u:[u],g=[];for(let m of p){let y=d||(m.id!==void 0?{id:m.id}:null),x=y?h.findIndex(b=>Zl(b,y)):-1;if(x>-1){let b={...h[x]};Object.assign(h[x],m),g.push(h[x]),c(f,\"UPDATE\",h[x],b)}else{let b={id:m.id||++l,...m};h.push(b),g.push(b),c(f,\"INSERT\",b,null)}}return a(f),{data:Array.isArray(u)?g:g[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),h=[];for(let p=d.length-1;p>=0;p--)Zl(d[p],u)&&(h.push(d[p]),d.splice(p,1),c(f,\"DELETE\",null,h[h.length-1]));return a(f),{data:h,error:null}},subscribe:({from:f,on:u},d)=>{n[f]||(n[f]=[]);let h=(p,g,m)=>{u&&u!==\"*\"&&u!==m.event||d(p,g,m)};return n[f].push(h),()=>{let p=n[f].indexOf(h);p>-1&&n[f].splice(p,1)}}}}});var of={};L(of,{createAdapter:()=>HT,default:()=>eO,executeFetch:()=>Gi,fetchPlugin:()=>pg,initAdapterAuth:()=>rf,parseDuration:()=>zi,queryClient:()=>tO,registerAdapter:()=>zT,resolveDb:()=>kw});var jT,BT,Jl,Ui,Ql,Vi,UT,VT,zT,HT,kw,zi,qt,vw,Po,WT,Ki,Hi,Wi,tf,fg,ef,qT,xw,ig,Cw,Ew,Do,ww,KT,Sw,GT,nf,cg,Aw,rf,ug,we,$e,qi,dg,YT,lg,Rn,Qe,jr,XT,ZT,JT,ag,QT,Gi,tO,pg,eO,Yi=U(()=>{\"use strict\";P();jT=[\"select\",\"rpc\",\"insert\",\"update\",\"upsert\",\"delete\",\"subscribe\"],BT={rest:()=>Promise.resolve().then(()=>(mw(),gw)),local:()=>Promise.resolve().then(()=>(_w(),bw))},Jl=Symbol.for(\"@symbo.ls/fetch:CUSTOM_ADAPTERS\"),Ui=(()=>{if(typeof globalThis<\"u\"&&globalThis[Jl])return globalThis[Jl];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Jl,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Jl]}catch{}return t})(),Ql=Symbol.for(\"@symbo.ls/fetch:PENDING_ADAPTERS\"),Vi=(()=>{if(typeof globalThis<\"u\"&&globalThis[Ql])return globalThis[Ql];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Ql,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ql]}catch{}return t})(),UT=5e3,VT=t=>new Promise(e=>{if(Ui[t])return e(Ui[t]);let r=Vi[t]||(Vi[t]=[]),n=!1,o=()=>{n||(n=!0,e(Ui[t]||null))};r.push(o),setTimeout(o,UT)}),zT=(t,e)=>{Ui[t]=e;let r=Vi[t];if(r&&r.length){Vi[t]=[];for(let n of r)n()}},HT=t=>{let e={};for(let r of jT)t[r]&&(e[r]=t[r]);return e.name=t.name||\"custom\",e},kw=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=Ui[n]||BT[n];if(!o&&(o=await VT(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)},zi=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},qt=new Map,vw=new Map,Po=new Map,WT=(t,e,r)=>{if(t.cache?.key)return t.cache.key;let n=GT(t.params),o=r?`${r}:`:\"\",s=`${t.from}:${t.method}:${o}${JSON.stringify(n||\"\")}`;return e?`${s}:${e}`:s},Ki=t=>qt.get(t)||null,Hi=(t,e,r)=>{let n=qt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};qt.set(t,o);let s=vw.get(t);if(s)for(let i of s)O(i)&&i(o);return o},Wi=t=>{if(t){let e=qt.get(t);e&&(e.stale=!0);return}for(let[,e]of qt)e.stale=!0},tf=t=>{if(t){qt.delete(t);return}qt.clear()},fg=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:zi(t),gcTime:3e5}:{staleTime:zi(t.stale||t.staleTime)||6e4,gcTime:zi(t.gc||t.gcTime||t.expire)||3e5,key:t.key},ef=null,qT=()=>{ef||(ef=setInterval(()=>{let t=Date.now();for(let[e,r]of qt){let n=vw.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&qt.delete(e)}},3e4),ef.unref&&ef.unref())};qT();xw=3,ig=t=>Math.min(1e3*2**t,3e4),Cw=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:xw,delay:ig}:typeof e==\"number\"?{count:e,delay:ig}:{count:e.count??xw,delay:O(e.delay)?e.delay:typeof e.delay==\"number\"?()=>e.delay:ig}},Ew=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=O(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=O(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Do={focus:new Set,online:new Set},ww=!1,KT=()=>{if(ww||typeof window>\"u\")return;ww=!0;let t=()=>{for(let r of Do.focus)r()},e=()=>{for(let r of Do.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&t()}),window.addEventListener(\"focus\",t),window.addEventListener(\"online\",e)},Sw=(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(v(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},GT=t=>(!t||O(t),t),nf=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},cg=(t,e)=>{let n=(t?.state?.root||e?.state?.root)?.__fetchScope;return n?String(n):void 0},Aw=(t,e,r)=>{let n;if(!t)n=void 0;else if(O(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=O(s)?s(e,e.state):s}}return n},rf=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)})},ug=async(t,e)=>{if(O(t.select))return t.auth!==!1&&await rf(t,e),t;if(t.__resolved)return t.auth!==!1&&await rf(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=kw(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 rf(r,e),r):null},we=(t,e,...r)=>{let n=O(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},$e=(t,e,r,...n)=>{let o=t&&O(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},qi=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},dg=t=>t.responseType===\"stream\"||t.responseType===\"response\",YT=[\"Blob\",\"File\",\"ArrayBuffer\",\"ReadableStream\",\"Response\"],lg=t=>t!==null&&typeof t==\"object\"&&(ArrayBuffer.isView(t)||YT.includes(Object.prototype.toString.call(t).slice(8,-1))),Rn=(t,e,r,n={})=>{if(!r&&lg(e))return;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)&&!lg(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})}},Qe=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},jr=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=cg(e,r);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&cg(e,r)===i;if(t.enabled===!1||O(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||O(t.skip)&&t.skip(e,e.state))return;let l=await ug(o,r);if(!l||!c())return;let{from:f,method:u,query:d,params:h,cache:p,transform:g,single:m,auth:y,fields:x,as:b,limit:_,offset:w,order:k,headers:E,baseUrl:D,responseType:F,page:A,cursor:N,getNextPageParam:At,getPreviousPageParam:Vt,infinite:kt,placeholderData:it,initialData:M,select:H,keepPreviousData:gt}=t,B=S(H)?H:void 0;if(d&&O(e.getQuery)){let ct=e.getQuery(l.name||\"paths\");ct&&(B=ct.select||ct.length&&ct.join(\",\")||B)}let ht=Aw(h,e,r),$=dg(t)?null:fg(p),q=Cw(t),mt=nf(e,r),X=mt?`:${mt}`:\"\",Y=i?`${i}:`:\"\",V=$?p?.key||`${f}:${u}:${Y}${JSON.stringify(ht||\"\")}${kt?\":infinite\":\"\"}${A?\":p\"+JSON.stringify(A):\"\"}${X}`:null;if(!s.__fetchInitialized&&V&&(s.__fetchInitialized=!0,M!==void 0)){let ct=O(M)?M():M;Hi(V,ct,null)}if((u===\"select\"||u===\"rpc\")&&V&&$){let ct=Ki(V);if(ct&&!ct.error){let Q=Date.now()-ct.time,vt=ct.stale||Q>($.staleTime||0),K=ct.data;if(O(H)&&(K=H(K,e,e.state)),g&&(K=g(K,e,e.state)),!c())return;if(Rn(e,K,b),!vt){Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(it!==void 0){let Q=O(it)?it(e,e.state):it;Q!==void 0&&Rn(e,Q,b)}}if(V&&Po.has(V)&&!n.force){let ct=Po.get(V);try{let Q=await Promise.race([ct,new Promise((vt,K)=>setTimeout(()=>K(\"DEDUP_TIMEOUT\"),15e3))]);if(!c())return;if(Q?.data!==void 0){let vt=Q.data;if(O(H)&&(vt=H(vt,e,e.state)),g&&(vt=g(vt,e,e.state)),!c())return;Rn(e,vt,b),we(e,\"onFetchComplete\",vt),$e(t,e,\"onFetchComplete\",vt)}}catch{if(!c())return}return}let Tt=!Ki(V)?.data;Qe(e,{isFetching:!0,isLoading:Tt,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),we(e,\"onFetchStart\"),$e(t,e,\"onFetchStart\");let Nt=r?.analyze?.emitNetwork,ho=Nt?typeof performance<\"u\"?performance.now():Date.now():0;Nt&&Nt({phase:\"start\",mode:\"query\",from:f,method:u,cacheKey:V,lang:mt});let Xs=Ew(async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let K=await l.getSession();if(!c())return;if(y===!0&&!K){let zt={message:\"Not authenticated\"};return Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:zt,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",zt),$e(t,e,\"onFetchError\",zt),{data:null,error:zt}}}let ct=l[u];if(!O(ct))return{data:null,error:{message:`Method \"${u}\" not found on adapter`}};let Q={from:f,select:B,params:ht,single:m,limit:_,offset:w,order:k,headers:E,baseUrl:D};F!==void 0&&(Q.responseType=F);let vt=nf(e,r);if(vt&&(Q.headers={...Q.headers,\"Accept-Language\":vt}),A!==void 0){if(v(A))A.offset!==void 0&&(Q.offset=A.offset),A.limit!==void 0&&(Q.limit=A.limit),A.cursor!==void 0&&(Q.params={...Q.params,cursor:A.cursor});else if(typeof A==\"number\"){let K=t.pageSize||_||20;Q.offset=(A-1)*K,Q.limit=K}}if(N!==void 0&&(Q.params={...Q.params,cursor:N}),u===\"insert\"||u===\"update\"||u===\"upsert\"){let K;if(x===!0||t.on===\"submit\")K=qi(e);else if(R(x)){let zt=qi(e);K={};for(let ep of x)K[ep]=zt[ep]}else e.state?.parse?K=e.state.parse():v(e.state)&&(K={...e.state});g&&(K=g(K,e,e.state)),Q.data=K}if(u===\"rpc\"){let K=ht;if(t.on===\"submit\"){let zt=qi(e);K=t.transformParams?t.transformParams(zt,e,e.state):zt}Q.params=K}if(u===\"subscribe\"){let K=l.subscribe({from:f,params:ht,on:t.subscribeOn},(zt,ep,S$)=>{c()&&(Rn(e,zt,b),we(e,\"onFetchComplete\",zt),$e(t,e,\"onFetchComplete\",zt))});return c()?(s.__unsubscribe=K,{data:null,error:null,subscribed:!0}):(O(K)&&K(),{data:null,error:null,subscribed:!0})}return ct(Q)},q);V&&Po.set(V,Xs);try{let ct=await Xs;if(!c()||ct?.subscribed)return;let{data:Q,error:vt}=ct||{};if(vt){V&&Hi(V,null,vt),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:vt,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",vt),$e(t,e,\"onFetchError\",vt),Nt&&Nt({phase:\"error\",mode:\"query\",from:f,method:u,cacheKey:V,error:vt.message||vt,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-ho});return}if(Q!==void 0){if((u===\"select\"||u===\"rpc\")&&V){let zt=Hi(V,Q,null);zt.gcTime=$?.gcTime||3e5}let K=Q;if(kt&&R(Q)&&(s.__pages||(s.__pages=[]),n.direction===\"previous\"?s.__pages.unshift(Q):s.__pages.push(Q),K=s.__pages.flat(),At&&(s.__nextPageParam=At(Q,s.__pages),s.__hasNextPage=s.__nextPageParam!=null),Vt&&(s.__prevPageParam=Vt(Q,s.__pages),s.__hasPreviousPage=s.__prevPageParam!=null)),O(H)&&(K=H(K,e,e.state)),g&&(K=g(K,e,e.state)),!c())return;(!gt||K!==void 0)&&Rn(e,K,b),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),we(e,\"onFetchComplete\",K),$e(t,e,\"onFetchComplete\",K),Nt&&Nt({phase:\"success\",mode:\"query\",ok:!0,from:f,method:u,cacheKey:V,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-ho})}}catch(ct){if(!c())return;Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ct,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",ct),$e(t,e,\"onFetchError\",ct),Nt&&Nt({phase:\"error\",mode:\"query\",from:f,method:u,cacheKey:V,error:ct.message||String(ct),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-ho})}finally{V&&Po.get(V)===Xs&&Po.delete(V)}},XT=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||jr;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))},ZT=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),KT();let o=t.refetchInterval;if(o){let c=typeof o==\"number\"?o:zi(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&jr(t,e,r,{force:!0})},c);n.__fetchCleanups.push(()=>clearInterval(l))}}let s=dg(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=nf(e,r),f=cg(e,r),u=WT(t,l,f),d=Ki(u),h=fg(t.cache);(!d||d.stale||Date.now()-d.time>(h?.staleTime||0))&&jr(t,e,r,{force:!0})};Do.focus.add(c),n.__fetchCleanups.push(()=>Do.focus.delete(c))}if(a){let c=()=>jr(t,e,r,{force:!0});Do.online.add(c),n.__fetchCleanups.push(()=>Do.online.delete(c))}},JT=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():v(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=O(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Rn(t,i,o),s},ag=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Rn(t,n,e.as),delete r.__optimisticSnapshot)},QT=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ug(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:h,baseUrl:p,responseType:g,invalidates:m,optimistic:y,onMutate:x,onSuccess:b,onError:_,onSettled:w}=t,k;if(c===!0||u===\"submit\")k=qi(e);else if(R(c)){let A=qi(e);k={};for(let N of c)k[N]=A[N]}else e.state?.parse?k=e.state.parse():v(e.state)&&(k={...e.state});l&&(k=l(k,e,e.state)),O(x)&&x(k,e,e.state);let E=y?JT(e,t,k):null;s.__fetching=!0,Qe(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),we(e,\"onFetchStart\"),$e(t,e,\"onFetchStart\");let D=r?.analyze?.emitNetwork,F=D?typeof performance<\"u\"?performance.now():Date.now():0;D&&D({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let H=await o.getSession();if(d===!0&&!H){E!==void 0&&ag(e,t);let gt={message:\"Not authenticated\"};we(e,\"onFetchError\",gt),$e(t,e,\"onFetchError\",gt);return}}let A=o[i];if(!O(A))return;let N={from:a,data:k,headers:h,baseUrl:p};g!==void 0&&(N.responseType=g),t.params&&(N.params=Aw(t.params,e,r));let At=nf(e,r);At&&(N.headers={...N.headers,\"Accept-Language\":At});let Vt=Cw(t),kt=await Ew(()=>A(N),Vt),{data:it,error:M}=kt||{};if(M){E!==void 0&&ag(e,t),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:M,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",M),O(_)&&_(M,k,e),O(w)&&w(null,M,k,e),D&&D({phase:\"error\",mode:\"mutation\",from:a,method:i,error:M.message||String(M),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,it!==void 0&&(f||!lg(it))){let H=f?{[f]:it}:it;e.state?.update&&e.state.update(H,{preventFetch:!0})}if(Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),we(e,\"onFetchComplete\",it),$e(t,e,\"onFetchComplete\",it),O(b)&&b(it,k,e),O(w)&&w(it,null,k,e),D&&D({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-F}),m){let H=R(m)?m:[m];for(let gt of H)if(gt===!0||gt===\"*\")for(let[B]of qt)B.startsWith(a+\":\")&&Wi(B);else Wi(gt)}}catch(A){E!==void 0&&ag(e,t),Qe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:A,status:\"error\",fetchStatus:\"idle\"}),we(e,\"onFetchError\",A),$e(t,e,\"onFetchError\",A),O(_)&&_(A,k,e),O(w)&&w(null,A,k,e),D&&D({phase:\"error\",mode:\"mutation\",from:a,method:i,error:A.message||String(A),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},Gi=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=lt(t,e);if(!s)return;let i=R(s)?s.map(c=>Sw(lt(c,e),e)).filter(Boolean):[Sw(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?QT:jr;c.on===\"create\"?f(c,e,n):Promise.resolve().then(()=>{XT({...c,__runner:f},e,n)}),!l&&c.on===\"create\"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&ZT(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)jr(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};jr(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};jr(f,e,n,{direction:\"previous\",force:!0})}},tO={invalidateQueries:t=>{if(!t){Wi();return}if(S(t))for(let[e]of qt)(e.startsWith(t)||e.includes(t))&&Wi(e);else if(R(t)){let e=t.join(\":\");for(let[r]of qt)r.includes(e)&&Wi(r)}},removeQueries:t=>{if(!t){tf();return}if(S(t))for(let[e]of qt)(e.startsWith(t)||e.includes(t))&&tf(e)},getQueryData:t=>Ki(t)?.data??void 0,setQueryData:(t,e)=>{let r=Ki(t),n=O(e)?e(r?.data):e;Hi(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ug(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(!O(s))return;let i={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};t.responseType!==void 0&&(i.responseType=t.responseType);let a=await s(i);if(a?.data!==void 0&&!a?.error&&!dg(t)){let c=Hi(o,a.data,null);c.gcTime=fg(t.cache)?.gcTime||3e5}return a},getCache:()=>qt,clear:()=>tf(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of qt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||tf(r))}},pg={name:\"fetch\",create(t){let e=t.fetch;e&&(t.parent||Po.clear(),Gi(e,t,t.state,t.context))}},eO=Gi});function Zi(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 gg(t){let e=this,{parent:r}=e;if(O(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 mg(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(O(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 yg(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(O(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 cf(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(v(n)&&o)cf.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 Ow(t){let e=this;if(gr(\"beforeRemove\",e,t)===!1)return e;O(e.node.remove)?e.node.remove():Fr()||(console.warn(\"This item cant be removed\"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=ci(e.parent.__ref.__children,e.key)),gr(\"remove\",e,t)}function bg(t){return this[t]}function _g(t,e){let r=this;if(t)return r.update(t,e),r}function xg(t){return t?this.__ref&&this.__ref[t]:this.__ref}function wg(){let t=this.getRef(\"__children\");return Array.isArray(t)?t.map(e=>this[e]):[]}function Ji(){return this.getRef().path}function ta(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Tw();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Tw()),t?e?.[t]:e}function ea(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for \"${this?.key||\"<unknown>\"}\" \\u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function ra(t){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&t?this.getRoot(\"data\")[t]:this.getRoot(\"data\")}function na(t){let e=this.getRoot()?.context;return t?e[t]:e}function oa(t){let e=this.context;return t?e[t]:e}function lf(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Lr.has(r)&&!pi.has(r)||e.push(r);return e}function ff(t=[]){let e=this,r={},n=lf.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=O(c&&c.parse)?c.parse():c;r[a]=O(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 Ot(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Xi(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=ff.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=>j(a)?Xi.call(a,t,e):a):j(i)&&(n[s]=Xi.call(i,t,e))}return n}function Lo(...t){if(Br!==\"test\"&&Br!==\"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 kg(...t){(Br===\"test\"||Br===\"development\")&&console.log(...t)}function sa(...t){(Br===\"test\"||Br===\"development\")&&console.warn(...t)}function Pn(...t){if(Br===\"test\"||Br===\"development\"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Lo.call(this),new Error(...t)}}function ia(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function aa(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 ca(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,st(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 vg(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n&&!En(n))try{let o=n.call(this,...e);return o&&typeof o.then==\"function\"&&o.catch(s=>{Pn.call(this,s)}),o}catch(o){if(Pn.call(this,o),r?.strictMode)throw o}}async function la(){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 sf();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await sf();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=sf().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 sf();await o(n,t.context)}return n}function fa(t){let e=this,r=t||Bi.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(hg(e,n),r===!0)return n;let o=lO[r];return o?o(n):n}function Cg(t,e){return!!(Mr.has(t)||e?.context?.methods?.[t])}var Br,af,Qi,Io,Tw,Sg,rO,sf,hg,nO,Rw,oO,sO,iO,aO,cO,lO,Pw=U(()=>{\"use strict\";rg();kn();Dt();pr();wl();ko();og();Br=\"production\";af=null,Qi=t=>{af=t||null},Io=(t,e)=>{t&&e&&af===t&&(af=e)},Tw=()=>af||null;Sg=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});rO=\"[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.\",sf=()=>Promise.resolve().then(()=>(Yi(),of)).catch(t=>{throw new Error(rO,{cause:t})});hg=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&nO(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&hg(c,e)}let s=r.contentElementKey||\"content\",i=t[s];i&&i.__ref&&hg(i,e)},nO=(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])}},Rw=(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${Rw(i,e+1)}\n${r}}`).join(`\n`):\"\"},oO=t=>`{\n${Rw(t,1)}\n}`,sO=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},iO=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(\"&\")},aO=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&n.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let h in f)f[h]===!0?r.push(`${u}.${h}`):s(f[h],h,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}`},cO=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},lO={graphql:oO,\"json-api\":sO,odata:iO,sql:aO,paths:cO}});var fO,Eg,Dw=U(()=>{\"use strict\";_l();fO={snapshotId:wi},Eg=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=fO.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var uf,Ag,Iw=U(()=>{uf=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),Ag=t=>typeof t==\"string\"&&uf.has(t)});async function Tg(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 Lw=U(()=>{\"use strict\"});var $o,Mo,ua,Se,Ur,Fo,da,Me,df,uO,Vr,dO,Dn,In,Og,$w=U(()=>{\"use strict\";$o=t=>t!==\"latest\"?`@${t}`:\"\",Mo=t=>t?`/${t}`:\"\",ua=t=>{let e=typeof t==\"string\"?t.replace(/\\/+$/,\"\"):\"\";if(!e)return{name:\"\",subpath:\"\"};let r=e.split(\"/\"),n=e.startsWith(\"@\")?2:1;return{name:r.slice(0,n).join(\"/\"),subpath:r.slice(n).join(\"/\")}},Se={skypack:{url:\"https://cdn.skypack.dev\",formatUrl:(t,e,r)=>`${Se.skypack.url}/${t}${$o(e)}${Mo(r)}`},esmsh:{url:\"https://esm.sh\",formatUrl:(t,e,r)=>`${Se.esmsh.url}/${t}${$o(e)}${Mo(r)}`},unpkg:{url:\"https://unpkg.com\",formatUrl:(t,e,r)=>`${Se.unpkg.url}/${t}${$o(e)}${Mo(r)}?module`},jsdelivr:{url:\"https://cdn.jsdelivr.net/npm\",formatUrl:(t,e,r)=>`${Se.jsdelivr.url}/${t}${$o(e)}${Mo(r)}/+esm`},symbols:{url:\"https://pkg.symbo.ls\",formatUrl:(t,e,r)=>`${Se.symbols.url}/${t}${$o(e)}${Mo(r)}/+esm`}},Ur={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},Fo=(t={})=>{let{packageManager:e}=t;return Ur[e]||null},da=t=>{if(typeof t!=\"string\")return t;let e=t.trim().match(/^[\\^~](\\d.*)$/);return e?e[1]:t},Me=(t,e=\"latest\",r=\"esmsh\")=>{let n=Se[r]||Se.esmsh,{name:o,subpath:s}=ua(t);return n.formatUrl(o||t,da(e),s)},df=(t,e=\"latest\",r=\"esmsh\")=>{let n=Se[r]||Se.esmsh,o=da(e),{name:s,subpath:i}=ua(t);return`${n.url}/${s||t}${$o(o)}${Mo(i)}/`},uO=/^node:|^@symbo-ls\\//,Vr=t=>typeof t==\"string\"&&uO.test(t),dO=/[<>…]/,Dn=t=>typeof t==\"string\"&&dO.test(t),In=t=>!!t&&typeof t==\"object\"&&!Array.isArray(t),Og=(t,e=\"skypack\",r={})=>{let n=t.dependencies;if(!In(n))return\"\";let o=Object.keys(n);if(!o.length)return\"\";let s=r.pin||{},i={};for(let f of o){if(Vr(f)||Dn(f))continue;let u=s[f]||n[f]||\"latest\";i[f]=Me(f,u,e),f.endsWith(\"/\")||(i[f+\"/\"]=df(f,u,e))}if(!Object.keys(i).length)return\"\";let a='<script type=\"importmap\">',c=\"<\\/script>\",l=`{\n \"imports\": ${JSON.stringify(i,null,2)}\n }`;return`${a}${l}${c}`}});var Rg,Mw=U(()=>{\"use strict\";Rg=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 Pg,Fw=U(()=>{\"use strict\";Pg=(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 Dg,Nw=U(()=>{\"use strict\";Dg=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 Ig,jw=U(()=>{\"use strict\";Ig=t=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(t)});function No(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 jg(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 Lg,$g,Mg,Fg,Ng,Bw=U(()=>{\"use strict\";Lg=(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)}}),$g=(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)}),Mg=(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}`)},Fg=(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)}}),Ng=(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 mO(t,e){if(!e||typeof e!=\"object\")return t;let r=o=>{if(!gO(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 pf(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 yO(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,(d,h,p)=>{let g=h.trim();if(p===\"polyglot\")return a[g]??pf(a,g)??d;if(p===\"getLocalStateLang\")return pf(c,g+s)??d;let m=pf(c,g);return m!==void 0?m:a[g]??pf(a,g)??d}));return l}function Uw(t){if(!v(t))return{};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}}vi(n)&&delete e[r]}return e}function Ug(t,e,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=t.pages?.[e],i=v(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Uw(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=Uw(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let g=t.name||t.key;g?n?d.title=g:o===\"development\"?d.title=`${g} / dev:symbo.ls`:o===\"staging\"?d.title=`${g} / staging:symbo.ls`:d.title=`${g} / symbo.ls`:d.title=\"Symbols demo\"}d=yO(d,t,r),d.title&&(l.has(\"title\")||!d[\"og:title\"])&&(l.has(\"og:title\")||(d[\"og:title\"]=d.title)),d.description&&(l.has(\"description\")||!d[\"og:description\"])&&(l.has(\"og:description\")||(d[\"og:description\"]=d.description)),d.title&&!d[\"twitter:title\"]&&(d[\"twitter:title\"]=d.title),d.description&&!d[\"twitter:description\"]&&(d[\"twitter:description\"]=d.description);let h=r?.actualPathname||e;if(d[\"og:url\"]||d.url){let g=(d[\"og:url\"]||d.url||\"\").replace(/\\/$/,\"\");if(g&&h&&h!==\"/\"){let m=h.startsWith(\"/\")?h:\"/\"+h;d[\"og:url\"]=g+m}}d=mO(d,t.files);let p=t.name||t.app?.metadata?.title||t.app?.name||\"\";for(let[g,m]of Object.entries(d))if(typeof m==\"string\"&&m.includes(\"{{\")){let y=m.replace(/\\{\\{[^}]*\\}\\}/g,\"\").trim();y?d[g]=y:g===\"title\"?d[g]=p:delete d[g]}return d}var It,pO,jo,hO,hf,Bg,gO,Vw=U(()=>{\"use strict\";Dt();On();It=t=>{if(t==null)return\"\";let e={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"};return t.toString().replace(/[&<>\"']/g,r=>e[r])},pO=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}=\"${It(r)}\"`).join(\" \"),jo=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)},hO=new Set([\"jsonLd\",\"styles\",\"scripts\"]),hf=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r==\"string\"?r:JSON.stringify(r),o=String(n).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script type=\"application/ld+json\" data-smbls-jsonld=\"${jo(n)}\">${o}<\\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\\/style/gi,\"<\\\\/style\");e.push(`<style data-smbls-style=\"${jo(n)}\">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r==\"string\",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src=\"${It(o)}\"`),n||(r.type&&s.push(`type=\"${It(r.type)}\"`),r.async&&s.push(\"async\"),r.defer&&s.push(\"defer\"),r.integrity&&s.push(`integrity=\"${It(r.integrity)}\"`),r.crossorigin&&s.push(`crossorigin=\"${It(r.crossorigin)}\"`),r.referrerpolicy&&s.push(`referrerpolicy=\"${It(r.referrerpolicy)}\"`),r.nomodule&&s.push(\"nomodule\"));let i=` data-smbls-script=\"${It(o||jo(r.body||\"\"))}\"`;if(!n&&r.body){let a=String(r.body).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script ${s.join(\" \")}${i}>${a}<\\/script>`)}else e.push(`<script ${s.join(\" \")}${i}><\\/script>`)}return e},Bg=(t,e)=>{e||(t={...t,robots:\"noindex\"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||hO.has(o))return n;if(o===\"title\")return n.push(`<title>${It(s)}</title>`),n;if(o===\"canonical\")return n.push(`<link rel=\"canonical\" href=\"${It(s)}\">`),n;if(o===\"manifest\")return n.push(`<link rel=\"manifest\" href=\"${It(s)}\">`),n;if(o===\"favicon\"||o===\"favicons\"||o===\"icon\"||o===\"icons\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"string\")n.push(`<link rel=\"icon\" href=\"${It(f)}\">`);else if(typeof f==\"object\"){let u=pO(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(([d,h])=>h!==void 0).map(([d,h])=>`${d}=\"${It(h)}\"`).join(\" \");n.push(`<link rel=\"alternate\" ${u}>`)}}),n;let i=(l,f,u=\"name\")=>{if(typeof f==\"string\"||typeof f==\"number\"||typeof f==\"boolean\")n.push(`<meta ${u}=\"${It(l)}\" content=\"${It(f)}\">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d==\"string\"||typeof d==\"number\"||typeof d==\"boolean\")n.push(`<meta ${u}=\"${It(l)}\" content=\"${It(d)}\">`);else if(typeof d==\"object\"){let h=Object.entries(d).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}=\"${It(g)}\"`).join(\" \");n.push(`<meta ${h}>`)}});else if(typeof f==\"object\"){let d=Object.entries(f).filter(([h,p])=>p!==void 0).map(([h,p])=>`${h}=\"${It(p)}\"`).join(\" \");n.push(`<meta ${d}>`)}};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\">']);return r.push(...hf(t)),r.join(`\n`)},gO=t=>typeof t==\"string\"&&t.length>0&&!t.startsWith(\"/\")&&!t.startsWith(\"http\")});var gf,Vg,zw=U(()=>{\"use strict\";Dt();gf=(t,e)=>(R(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Vg=(t,e)=>(t=parseFloat(t),v(e)&&(e=Object.values(e)),gf(t,e))});function Bo(t){let e=String(t||\"\").trim();if(!e)return{owner:Hw,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=Hw);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function mf(t,e={}){if((e.provider||\"kv\")===\"api\")return qw(t,e);let n=await OO(t,e);return n||qw(t,e)}async function OO(t,e={}){let r=e.kvBaseUrl||bO,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 qw(t,e={}){let r=e.apiBaseUrl||_O,{key:n}=Bo(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(h=>{let{key:p}=Bo(h?.key);return p.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 d=await u.json();return d?.data||d||null}catch{return null}}async function Kw(t,e={}){if(v(t))return t;if(S(t)){let{full:r}=Bo(t);if(!r)return null;try{let n=await mf(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 qg(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(tr(n)){let o=await Kw(Xw(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return Kw(n,e)}))).filter(Boolean)}var Hw,bO,_O,pa,Gw,xO,wO,Ww,Yw,SO,kO,vO,zr,Hg,tr,Xw,zg,Wg,CO,EO,AO,TO,ha,Zw=U(()=>{\"use strict\";Dt();kn();wl();Hw=\"system\",bO=\"https://smbls-kv.nika-980.workers.dev\",_O=\"https://api.symbols.app\";pa=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?v(t[o])&&v(e[o])&&pa(t[o],e[o],r,s):t[o]=e[o])}},Gw=(t,e,r)=>{if(!v(t)||!e.size)return t;let n=`${r}/`,o=!1;for(let i of e)if(i.startsWith(n)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${r}/${i}`;e.has(a)||(s[i]=Gw(t[i],e,a))}return s},xO=new Set,wO=new Set([\"components\",\"pages\",\"functions\",\"snippets\",\"methods\"]),Ww=(t,e)=>e===\"\"&&wO.has(t),Yw=[\"fontFamily\",\"fontfamily\",\"font_family\",\"FONT_FAMILY\"],SO=t=>{let e=new Map;if(!v(t))return e;for(let r of Yw){let n=t[r];if(v(n))for(let o in n)!v(n[o])||!n[o].isDefault||(e.has(r)||e.set(r,new Set),e.get(r).add(o))}return e},kO=(t,e)=>{for(let r of Yw){let n=t[r];if(!v(n))continue;let o=e.get(r),s=null;for(let i in n){let a=n[i];if(!v(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...n}),s[i]=c}s&&(t[r]=s)}},vO=t=>t.replace(/\\.js$/iu,\"\"),zr=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=>vO(o.trim())).filter(Boolean).join(\"/\");n&&e.add(n)}return e},Hg=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),tr=t=>v(t)&&Array.isArray(t.ignoreList)&&(\"library\"in t||\"key\"in t||\"name\"in t),Xw=t=>t.library!==void 0?t.library:t.key??t.name,zg=new Set,Wg=()=>{zg.clear()},CO=(t,e)=>{let r=e.filter(n=>!zg.has(n));if(r.length){for(let n of r)zg.add(n);pt()&&console.warn(`[smbls] shared library \"${t}\" ships ${r.map(n=>`methods.${n}`).join(\", \")} \\u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},EO=(t,e,r)=>{let n=null;for(let o in t)if(Sn(o)&&(e.has(`methods/${o}`)||r.push(o),!n)){n={};for(let s in t)Sn(s)||(n[s]=t[s])}return n||t},AO=(t,e,r,n=\"library\")=>{let o=zr(e.sharedLibIgnore);e.sharePages===!1&&o.add(\"pages\");let s=o.size?new Set([...r,...o]):r,i=[];for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&!(a===\"sharePages\"||a===\"sharedLibIgnore\")&&a!==\"app\"&&!s.has(a)){if(v(e[a])&&v(t[a])){if(a===\"designSystem\")pa(t[a],e[a],s,a);else for(let c in e[a])if(!s.has(`${a}/${c}`)){if(a===\"methods\"&&Sn(c)){c in t[a]||i.push(c);continue}c in t[a]?Ww(a,t[a][c])&&!Ww(a,e[a][c])&&(t[a][c]=e[a][c]):t[a][c]=e[a][c]}}else if(!(a in t)){let c=e[a],l=a===\"methods\"&&c&&typeof c==\"object\"?EO(c,s,i):c;t[a]=Gw(l,s,a)}}i.length&&CO(n,i)},TO=(t,e,r)=>{if(t!==e){let n=Xw(t);if(S(n)&&n)return n;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${r}]`},ha=(t,e)=>{if(!e||!e.length)return;let r=SO(t.designSystem);for(let n=0;n<e.length;n++){let o=e[n],s=o,i=xO;tr(s)&&(i=zr(s.ignoreList),s=s.library),v(s)&&AO(t,s,i,TO(o,s,n))}r.size&&kO(t.designSystem,r)}});var Kg,Gg,Yg,ga,Xg,ma,Zg,Ln,Jw=U(()=>{\"use strict\";Dt();Kg=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn(\"Failed to copy text: \",e)}},Gg=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)}},Yg=t=>t.replace(/[^a-zA-Z0-9_]/g,\"\"),ga=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,\"\")),Xg=t=>t&&t.replace(/\\w\\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),ma=t=>t.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),Zg=(t=\"\")=>{if(typeof t!=\"string\")return;let e=t.replace(/([A-Z])/g,\" $1\");return e.charAt(0).toUpperCase()+e.slice(1)},Ln=t=>{if(R(t))return t;if(S(t))return t.split(\" \");if(v(t))return Object.values(t);if(Ke(t))return[t]}});var Jg,Qw=U(()=>{\"use strict\";Jg=()=>{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 Jt,Uo,ya,ba,tS=U(()=>{\"use strict\";Jt=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];if(!n)return null;if(typeof n==\"string\")return{src:n,type:null,variants:null};if(typeof n==\"object\"){if(typeof n.src==\"string\")return n;let o=n.content,s=o&&o.src;if(typeof s==\"string\")return{...n,src:s,type:n.type??o.type??null,variants:n.variants??o.variants??null}}return null},Uo=(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(\", \")},ya=t=>{if(!t||!Array.isArray(t.variants))return\"\";let e=t.variants.filter(r=>r.format===t.type);return Uo(e,{keepOneX:!1})},ba=(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:Uo(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Uo(o,{keepOneX:!1}),i={src:t.src,alt:e||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}});var Vo={};L(Vo,{CDN_PROVIDERS:()=>Se,DOMQL_EVENTS:()=>qp,DOMQ_PROPERTIES:()=>Lr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vo,ENV:()=>fh,HTML_TAGS:()=>Ao,METHODS:()=>Mr,METHODS_EXL:()=>hi,NODE_ENV:()=>Le,OPTIONS:()=>Bi,PACKAGE_MANAGER_TO_CDN:()=>Ur,PARSED_DOMQ_PROPERTIES:()=>pi,PROPS_METHODS:()=>$r,STATE_METHODS:()=>wn,STATE_PROPERTIES:()=>Hp,SVG_TAGS:()=>Zx,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>uf,__resetBuiltinMethodWarnings:()=>Wg,addCaching:()=>zl,addContext:()=>Vl,addExtend:()=>Ih,addExtends:()=>Ye,addItemAfterEveryElement:()=>Pp,addProtoToArray:()=>li,addRef:()=>jl,applyDependentState:()=>Jh,applyEvent:()=>Yl,applyEventUpdate:()=>Xl,applyExtends:()=>tw,applyProps:()=>Ii,arrayContainsOtherArray:()=>vp,arraysEqual:()=>Ip,arrayzeValue:()=>Ln,buildImgSrcset:()=>ya,buildSourcesAndImg:()=>ba,cache:()=>ng,call:()=>vg,captureSnapshot:()=>Eg,checkForStateTypes:()=>Gh,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>Mp,clone:()=>Yp,cloneAndMergeArrayExtend:()=>Ci,cloneFunction:()=>yh,collectExtendsList:()=>To,concatAddExtends:()=>Rh,copyJavaScriptToClipboard:()=>Gg,copyStringToClipboard:()=>Kg,createBasedOnType:()=>Nl,createElement:()=>Kh,createElementExtends:()=>El,createExtends:()=>Ai,createExtendsFromKeys:()=>Oo,createExtendsStack:()=>Rl,createIfConditionFlag:()=>bh,createInheritedState:()=>Yh,createKey:()=>Si,createNestedObject:()=>nh,createNestedObjectByKeyPath:()=>Zh,createObjectWithoutPrototype:()=>bl,createParent:()=>Bl,createPath:()=>Ul,createProps:()=>Li,createPropsStack:()=>Ml,createRoot:()=>qh,createScope:()=>tg,createSnapshotId:()=>wi,customDecodeURIComponent:()=>zp,customEncodeURIComponent:()=>Vp,cutArrayAfterValue:()=>Op,cutArrayBeforeValue:()=>Tp,debounce:()=>ki,debounceOnContext:()=>gh,decodeNewlines:()=>Up,deepClone:()=>st,deepContains:()=>eh,deepDefaults:()=>pa,deepDestringifyFunctions:()=>_e,deepExtend:()=>Cl,deepMerge:()=>nt,deepMergeExtends:()=>Xe,deepStringifyFunctions:()=>mi,defineSetter:()=>Sg,destringifyGlobalScope:()=>bi,detectHeightOnInit:()=>Pg,detectInfiniteLoop:()=>ah,document:()=>et,encodeNewlines:()=>Bp,error:()=>Pn,excludeKeysFromObject:()=>lh,exec:()=>lt,extendCachedRegistry:()=>Ph,extendStackRegistry:()=>Ti,extractArrayExtend:()=>Ri,fetchLibraryData:()=>mf,fibonacciNumberByIndex:()=>Dg,filterArrays:()=>Lp,filterArraysFast:()=>$p,finalizeExtends:()=>Pl,findClosestNumber:()=>gf,findClosestNumberInFactory:()=>Vg,findInheritedState:()=>Kl,findKeyPosition:()=>Np,flattenExtend:()=>Ro,formatDate:()=>Rg,generateHash:()=>Sl,generateHeadArrayTags:()=>hf,generateKey:()=>xi,generateMetaTags:()=>Bg,get:()=>bg,getCDNDirUrl:()=>df,getCDNUrl:()=>Me,getCapitalCaseKeys:()=>Mh,getCdnProviderFromConfig:()=>Fo,getChildStateInKey:()=>ql,getChildren:()=>wg,getContext:()=>oa,getCookie:()=>kh,getDB:()=>la,getEmotionStylesheet:()=>Jg,getExtendsInElement:()=>Lh,getExtendsStack:()=>Ei,getExtendsStackRegistry:()=>vl,getFrequencyInArray:()=>Cp,getFunctionSource:()=>Ie,getHashedExtend:()=>Oi,getImportMapScript:()=>Og,getInObjectByPath:()=>ih,getLocalStorage:()=>Ch,getNev:()=>hh,getPageMetadata:()=>Ug,getParentStateInKey:()=>Wl,getPath:()=>Ji,getQuery:()=>fa,getRef:()=>xg,getRoot:()=>ea,getRootContext:()=>na,getRootData:()=>ra,getRootState:()=>ta,getRootStateInKey:()=>Hl,getSpreadChildren:()=>Fh,global:()=>wp,hasFunction:()=>Ge,hasHandlerPlugin:()=>Co,hasOwnProperty:()=>Jp,hashContent:()=>jo,inheritChildExtends:()=>Tl,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Ol,initProps:()=>zh,is:()=>Zt,isArray:()=>R,isBoolean:()=>ul,isBuiltinElementMethod:()=>Wp,isContextComponent:()=>Nh,isCyclic:()=>ch,isDOMNode:()=>Xt,isDate:()=>pl,isDefined:()=>Ot,isDevelopment:()=>Nr,isEmpty:()=>ml,isEmptyObject:()=>Qp,isEqualDeep:()=>yl,isFailedRevival:()=>En,isFunction:()=>O,isHtmlElement:()=>oi,isLazyFunction:()=>Xp,isLocal:()=>ph,isLoudDevRuntime:()=>pt,isMalformedDependency:()=>Dn,isMethod:()=>Cg,isMobile:()=>wh,isNode:()=>dr,isNot:()=>kp,isNotProduction:()=>Tn,isNull:()=>dl,isNumber:()=>Ke,isObject:()=>v,isObjectLike:()=>j,isPhoto:()=>Ig,isPolyglotWritableKey:()=>hr,isProduction:()=>Fr,isProtectedElementMethod:()=>Sn,isStaging:()=>dh,isState:()=>Xh,isString:()=>S,isStringFunction:()=>vi,isTest:()=>xl,isTesting:()=>uh,isUndefined:()=>Pt,isUniversallyReservedKey:()=>Ag,isUnresolvableDependency:()=>Vr,isValidDependencyMap:()=>In,isValidHtmlTag:()=>Ah,isWrappedLibrary:()=>tr,joinArrays:()=>wo,jointStacks:()=>Dh,keys:()=>lf,loadCssFile:()=>Fg,loadJavascript:()=>Ng,loadJavascriptFile:()=>Lg,loadJavascriptFileEmbedSync:()=>Mg,loadJavascriptFileSync:()=>$g,loadRemoteCSS:()=>jg,loadRemoteScript:()=>No,log:()=>kg,logGroupIf:()=>xh,logIf:()=>_h,lookdown:()=>mg,lookdownAll:()=>yg,lookup:()=>gg,lowercaseFirstLetter:()=>xn,makeObjectWithoutPrototype:()=>th,map:()=>Gp,mapStringsWithContextComponents:()=>Pi,markPolyglotSeeded:()=>Je,matchesComponentNaming:()=>Ze,memoize:()=>mh,merge:()=>yt,mergeSharedLibraries:()=>ha,nextElement:()=>ia,normalizeIgnoreList:()=>zr,normalizeLibraryKey:()=>Bo,objectToString:()=>yi,objectizeStringProperty:()=>Di,overwrite:()=>_i,overwriteDeep:()=>Wt,overwriteShallow:()=>An,overwriteState:()=>Qh,parse:()=>ff,parseDeep:()=>Xi,pickupElementFromProps:()=>Ll,pickupPropsFromElement:()=>Il,polyglotSeededKeys:()=>ji,previousElement:()=>aa,promoteActiveRootState:()=>Io,propExists:()=>Uh,propertizeElement:()=>$l,propertizeUpdate:()=>Bh,remove:()=>Ow,removeChars:()=>Yg,removeCookie:()=>vh,removeDuplicateProps:()=>Fi,removeDuplicatesInArray:()=>So,removeFromArray:()=>Ep,removeFromObject:()=>rh,removeNestedKeyByPath:()=>oh,removeValueFromArray:()=>ci,removeValueFromArrayAll:()=>Rp,reorderArrayByValues:()=>Dp,replaceLiteralsWithObjectFields:()=>$t,replaceOctalEscapeSequences:()=>jp,resolveAsset:()=>Jt,resolveHandler:()=>Eo,resolveSharedLibraries:()=>qg,returnValueAsText:()=>Fl,runPluginHook:()=>Rt,self:()=>Sp,setActiveRootState:()=>Qi,setCookie:()=>Sh,setHashedExtend:()=>kl,setInObjectByPath:()=>sh,setLocalStorage:()=>Eh,setNodeStyles:()=>cf,setProps:()=>_g,setPropsPrototype:()=>Mi,sharedLibrary:()=>Hg,splitPackageSpecifier:()=>ua,spotByPath:()=>Zi,srcsetFor:()=>Uo,stringIncludesAny:()=>ui,stringToObject:()=>Zp,stripVersionRangePrefix:()=>da,swapItemsInArray:()=>Ap,syncProps:()=>Ni,toCamelCase:()=>ga,toDashCase:()=>ma,toDescriptionCase:()=>Zg,toPriorityOrder:()=>xe,toTitleCase:()=>Xg,toggleFullscreen:()=>Tg,triggerEventOn:()=>gr,triggerEventOnUpdate:()=>eg,trimStringFromSymbols:()=>Fp,unstackArrayOfObjects:()=>ai,update:()=>Vh,updateProps:()=>Hh,variables:()=>ca,verbose:()=>Lo,warn:()=>sa,window:()=>C});var P=U(()=>{\"use strict\";_l();wl();Dt();pr();On();ko();si();Gx();Yx();di();ni();Xx();Th();$h();Wh();Dl();iw();cw();kn();lw();Pw();og();Dw();rg();Iw();Lw();$w();Mw();Fw();Nw();jw();Bw();Vw();zw();Zw();Jw();Qw();tS()});var PE=rp((ZV,RE)=>{var Bs=1e3,Us=Bs*60,Vs=Us*60,fo=Vs*24,_L=fo*7,xL=fo*365.25;RE.exports=function(t,e){e=e||{};var r=typeof t;if(r===\"string\"&&t.length>0)return wL(t);if(r===\"number\"&&isFinite(t))return e.long?kL(t):SL(t);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(t))};function wL(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*xL;case\"weeks\":case\"week\":case\"w\":return r*_L;case\"days\":case\"day\":case\"d\":return r*fo;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Vs;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*Us;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*Bs;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function SL(t){var e=Math.abs(t);return e>=fo?Math.round(t/fo)+\"d\":e>=Vs?Math.round(t/Vs)+\"h\":e>=Us?Math.round(t/Us)+\"m\":e>=Bs?Math.round(t/Bs)+\"s\":t+\"ms\"}function kL(t){var e=Math.abs(t);return e>=fo?Cd(t,e,fo,\"day\"):e>=Vs?Cd(t,e,Vs,\"hour\"):e>=Us?Cd(t,e,Us,\"minute\"):e>=Bs?Cd(t,e,Bs,\"second\"):t+\" ms\"}function Cd(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+\" \"+n+(o?\"s\":\"\")}});var IE=rp((JV,DE)=>{function vL(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=PE(),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 d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,d=null,h,p;function g(...m){if(!g.enabled)return;let y=g,x=Number(new Date),b=x-(u||x);y.diff=b,y.prev=u,y.curr=x,u=x,m[0]=r.coerce(m[0]),typeof m[0]!=\"string\"&&m.unshift(\"%O\");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(k,E)=>{if(k===\"%%\")return\"%\";_++;let D=r.formatters[E];if(typeof D==\"function\"){let F=m[_];k=D.call(y,F),m.splice(_,1),_--}return k}),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:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,p=r.enabled(f)),p),set:m=>{d=m}}),typeof r.init==\"function\"&&r.init(g),g}function n(f,u){let d=r(this.namespace+(typeof u>\"u\"?\":\":u)+f);return d.log=this.log,d}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 d of u)d[0]===\"-\"?r.skips.push(d.slice(1)):r.names.push(d)}function s(f,u){let d=0,h=0,p=-1,g=0;for(;d<f.length;)if(h<u.length&&(u[h]===f[d]||u[h]===\"*\"))u[h]===\"*\"?(p=h,g=d,h++):(d++,h++);else if(p!==-1)h=p+1,g++,d=g;else return!1;for(;h<u.length&&u[h]===\"*\";)h++;return h===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}DE.exports=vL});var LE=rp((ie,Ed)=>{ie.formatArgs=EL;ie.save=AL;ie.load=TL;ie.useColors=CL;ie.storage=OL();ie.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`.\"))}})();ie.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 CL(){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 EL(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+Ed.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)}ie.log=console.debug||console.log||(()=>{});function AL(t){try{t?ie.storage.setItem(\"debug\",t):ie.storage.removeItem(\"debug\")}catch{}}function TL(){let t;try{t=ie.storage.getItem(\"debug\")||ie.storage.getItem(\"DEBUG\")}catch{}return!t&&typeof process<\"u\"&&\"env\"in process&&(t=process.env.DEBUG),t}function OL(){try{return localStorage}catch{}}Ed.exports=IE()(ie);var{formatters:RL}=Ed.exports;RL.j=function(t){try{return JSON.stringify(t)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}});var bx={};L(bx,{ANIMATION_PROPS:()=>by,ARIA_ROLES:()=>QR,ATTR_TRANSFORMS:()=>Zn,BLOCK_PROPS:()=>_y,CDN_PROVIDERS:()=>Se,COMPOUND_CSS_KEYWORDS:()=>Mn,CONFIG:()=>Bn,CONFIG_MERGE_EXL:()=>fe,CSS_NAMED_COLOR_HEX:()=>yf,CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_PROPS_REGISTRY:()=>xt,CSS_UNITS:()=>xo,DEFAULT_CONFIG:()=>mc,DEFAULT_CSS_PROPERTIES_LIST:()=>Et,DELEGATED_EVENTS:()=>ds,DESIGN_SYSTEM_OPTIONS:()=>r_,DOMQL_EVENTS:()=>qp,DOMQ_PROPERTIES:()=>Lr,DOM_EVENTS:()=>f0,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vo,ENV:()=>fh,FACTORY:()=>le,FLEX_PROPS:()=>vy,FONT_PROPS:()=>xy,GRID_PROPS:()=>Cy,HOST_REGISTERED_PACKAGES:()=>$1,HTML_ATTRIBUTES:()=>cu,HTML_TAGS:()=>Ao,LIFECYCLE_EVENTS:()=>en,METHODS:()=>Mr,METHODS_EXL:()=>hi,MISC_PROPS:()=>wy,MIXINS:()=>ou,NODE_ENV:()=>Le,OPTIONS:()=>Bi,PACKAGE_MANAGER_TO_CDN:()=>Ur,PARSED_DOMQ_PROPERTIES:()=>pi,POSITION_PROPS:()=>Sy,PROPS_METHODS:()=>$r,REGISTRY:()=>Bt,RESERVED_STORE_METHODS:()=>Ox,ROUTER_OPTIONS:()=>Ku,SIGNAL_ENGINE_KEY:()=>bo,SIGNAL_INSTANCES_KEY:()=>mo,STANDARD_SCHEME_QUERIES:()=>Bf,STATE_PROPERTIES:()=>Hp,STORE_METHOD_NAMES:()=>Tx,SVG_TAGS:()=>fs,THEME_PROPS:()=>ky,TIMING_PROPS:()=>ic,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>uf,VALUE_TRANSFORMERS:()=>Xf,VERSION:()=>Px,__resetBuiltinMethodWarnings:()=>Wg,__resetSignalEngine:()=>bp,__resetSignalInstances:()=>yp,__resetSkinWarnings:()=>Ym,__resetStateShadowWarnings:()=>Rx,activateConfig:()=>sS,addCaching:()=>zl,addContext:()=>Vl,addDelegatedEvent:()=>oc,addExtend:()=>Ih,addExtends:()=>Ye,addItemAfterEveryElement:()=>Pp,addMethods:()=>bs,addProtoToArray:()=>li,addRef:()=>jl,aliasCaseVariants:()=>Zo,animation:()=>km,appendSVGSprite:()=>Xa,appendSvgIconsSprite:()=>qn,applyAttrTransforms:()=>gy,applyCSS:()=>Yb,applyDependentState:()=>Jh,applyDocument:()=>Ya,applyEvent:()=>Yl,applyEventUpdate:()=>Xl,applyExtends:()=>hs,applyHeadings:()=>zf,applyInitialState:()=>xu,applyMediaSequenceVars:()=>Wr,applyProps:()=>Ii,applyReset:()=>Za,applySequenceGlobalVars:()=>La,applySequenceVars:()=>xr,applySkins:()=>Ja,applySpacingSequence:()=>Na,applyStateMethods:()=>me,applyTimingSequence:()=>Ga,applyTrueProps:()=>Ay,applyTypographySequence:()=>Wa,arrayContainsOtherArray:()=>vp,arraysEqual:()=>Ip,arrayzeValue:()=>Ln,assertEmitIntegrity:()=>oy,batch:()=>al,breakpoints:()=>wm,buildImgSrcset:()=>ya,buildSkinVarStyles:()=>Kn,buildSourcesAndImg:()=>ba,buildThemeVarStyles:()=>Wu,cache:()=>ng,cacheNode:()=>tn,call:()=>vg,callStateMethod:()=>cc,camelToAttr:()=>sr,camelToLowerAttr:()=>u0,captureSnapshot:()=>Eg,changeGlobalTheme:()=>Zf,changeLightness:()=>om,checkAttributeByTagName:()=>Oe,checkEventFunctions:()=>hy,checkForStateTypes:()=>Gh,checkIfBoxSize:()=>Fa,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>Mp,class:()=>Tm,clone:()=>Yp,cloneAndMergeArrayExtend:()=>Ci,cloneFunction:()=>yh,collectExtendsList:()=>To,color:()=>hm,colorStringToRgbaArray:()=>ke,components:()=>Cs,compositeOverBackdrop:()=>Fn,concatAddExtends:()=>Rh,contrastRatio:()=>Wo,convertSvgToSymbol:()=>Ma,copyJavaScriptToClipboard:()=>Gg,copyStringToClipboard:()=>Kg,create:()=>yx,createAsync:()=>_$,createBasedOnType:()=>Nl,createComputed:()=>Cx,createConfig:()=>Aa,createDefine:()=>UC,createEffect:()=>G,createElement:()=>Kh,createElementExtends:()=>El,createExtends:()=>Ai,createExtendsFromKeys:()=>Oo,createExtendsStack:()=>Rl,createHTMLNode:()=>ls,createIfConditionFlag:()=>bh,createInheritedState:()=>Yh,createKey:()=>Si,createNestedObject:()=>nh,createNestedObjectByKeyPath:()=>Zh,createObjectWithoutPrototype:()=>bl,createParent:()=>Bl,createPath:()=>Ul,createProps:()=>Li,createPropsStack:()=>Ml,createRoot:()=>qh,createScope:()=>tg,createScopeStore:()=>ll,createSignal:()=>ei,createSkeleton:()=>w$,createSnapshotId:()=>wi,createState:()=>Fy,createStore:()=>lr,createSync:()=>x$,css:()=>pe,cssMediaVars:()=>$f,cssVars:()=>Lf,customDecodeURIComponent:()=>zp,customEncodeURIComponent:()=>Vp,cutArrayAfterValue:()=>Op,cutArrayBeforeValue:()=>Tp,debounce:()=>ki,debounceOnContext:()=>gh,decodeNewlines:()=>Up,deepClone:()=>st,deepContains:()=>eh,deepDefaults:()=>pa,deepDestringifyFunctions:()=>_e,deepExtend:()=>Cl,deepMerge:()=>nt,deepMergeExtends:()=>Xe,deepStringifyFunctions:()=>mi,defaultDefine:()=>Rs,defineResolvedThemeSignal:()=>Xo,defineSetter:()=>Sg,defineThemeSignal:()=>Yo,destringifyGlobalScope:()=>bi,destroy:()=>Sc,detectHeightOnInit:()=>Pg,detectInfiniteLoop:()=>ah,detectTag:()=>Qr,devices:()=>Sm,dispose:()=>nn,encodeNewlines:()=>Bp,error:()=>Pn,excludeKeysFromObject:()=>lh,exec:()=>lt,executeAttr:()=>nP,exetuteClassPerComponent:()=>$P,extendCachedRegistry:()=>Ph,extendStackRegistry:()=>Ti,extractArrayExtend:()=>Ri,extractConditionalAttrs:()=>iP,fetchLibraryData:()=>mf,fibonacciNumberByIndex:()=>Dg,filterArrays:()=>Lp,filterArraysFast:()=>$p,filterAttributesByTagName:()=>rP,finalizeExtends:()=>Pl,findClosestNumber:()=>gf,findClosestNumberInFactory:()=>Vg,findHeadingLetter:()=>Nf,findHeadings:()=>Ia,findInheritedState:()=>Kl,findKeyPosition:()=>Np,flattenExtend:()=>Ro,font:()=>cm,fontFace:()=>um,fontFamily:()=>lm,fontFamilyTypes:()=>fm,formatDate:()=>Rg,generateHash:()=>Sl,generateHeadArrayTags:()=>hf,generateKey:()=>xi,generateMetaTags:()=>Bg,generateSequence:()=>Qt,generateSequencePosition:()=>$m,generateSprite:()=>$a,generateSubSequence:()=>Pa,get:()=>bg,getActiveConfig:()=>T,getActiveDocument:()=>Xn,getActiveLang:()=>fn,getCDNDirUrl:()=>df,getCDNUrl:()=>Me,getCacheSize:()=>iy,getCapitalCaseKeys:()=>Mh,getCdnProviderFromConfig:()=>Fo,getChildStateInKey:()=>ql,getChildren:()=>wg,getColor:()=>tt,getColorShade:()=>Sf,getContext:()=>oa,getCookie:()=>kh,getDB:()=>la,getDefaultOrFirstKey:()=>Nn,getEmitStats:()=>ru,getEmotionStylesheet:()=>Jg,getExtendsInElement:()=>Lh,getExtendsStack:()=>Ei,getExtendsStackRegistry:()=>vl,getFnPrefixAndValue:()=>_r,getFontFace:()=>im,getFontFaceEach:()=>jn,getFontFaceEachString:()=>Rf,getFontFaceString:()=>ka,getFontFamily:()=>Ha,getFontFormat:()=>Tf,getFontSizeByKey:()=>qa,getFrequencyInArray:()=>Cp,getFunctionSource:()=>Ie,getHashedExtend:()=>Oi,getImportMapScript:()=>Og,getInObjectByPath:()=>ih,getLanguages:()=>vc,getLocalStateLang:()=>Oc,getLocalStorage:()=>Ch,getMediaColor:()=>Lt,getMediaTheme:()=>Ae,getNev:()=>hh,getObserver:()=>cl,getPageMetadata:()=>Ug,getParentStateInKey:()=>Wl,getPath:()=>Ji,getQuery:()=>fa,getRef:()=>xg,getResolvedThemeSignal:()=>oS,getRgbTone:()=>er,getRoot:()=>ea,getRootContext:()=>na,getRootData:()=>ra,getRootState:()=>ta,getRootStateInKey:()=>Hl,getSafeInk:()=>Uf,getSafeInkInfo:()=>jm,getSequenceValue:()=>Un,getSequenceValueBySymbols:()=>Da,getSequenceValuePropertyPair:()=>nr,getShadow:()=>Ba,getShapeByKey:()=>Ka,getSignals:()=>Ax,getSpacingBasedOnRatio:()=>Ee,getSpacingByKey:()=>Ct,getSpreadChildren:()=>Fh,getSubratio:()=>Ra,getSubratioDifference:()=>Oa,getSystemGlobalTheme:()=>ge,getTheme:()=>zm,getThemeSignal:()=>nS,getTimingByKey:()=>de,getTimingFunction:()=>Te,global:()=>wp,gradient:()=>gm,grid:()=>Am,hasFunction:()=>Ge,hasHandlerPlugin:()=>Co,hasOwnProperty:()=>Jp,hashContent:()=>jo,hexToRgb:()=>tm,hexToRgbArray:()=>bf,hexToRgba:()=>rm,hslToRgb:()=>wf,icons:()=>bm,inheritChildExtends:()=>Tl,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Ol,init:()=>Er,initPolyglot:()=>Xu,initProps:()=>zh,injectGlobal:()=>_t,is:()=>Zt,isArray:()=>R,isBoolean:()=>ul,isBuiltinElementMethod:()=>Wp,isCSSVar:()=>bt,isContextComponent:()=>Nh,isCyclic:()=>ch,isDOMNode:()=>Xt,isDate:()=>pl,isDefined:()=>Ot,isDevelopment:()=>Nr,isDomDocument:()=>fr,isEmpty:()=>ml,isEmptyObject:()=>Qp,isEnumeratedTrueFalseAttr:()=>ir,isEqualDeep:()=>yl,isFailedRevival:()=>En,isFunction:()=>O,isGoogleFontsUrl:()=>qo,isHostObject:()=>ur,isHtmlElement:()=>oi,isLazyFunction:()=>Xp,isLocal:()=>ph,isLoudDevRuntime:()=>pt,isMalformedDependency:()=>Dn,isMethod:()=>Cg,isMobile:()=>wh,isNode:()=>dr,isNot:()=>kp,isNotProduction:()=>Tn,isNull:()=>dl,isNumber:()=>Ke,isObject:()=>v,isObjectLike:()=>j,isPhoto:()=>Ig,isPlainColor:()=>Gr,isPolyglotWritableKey:()=>hr,isProduction:()=>Fr,isProtectedElementMethod:()=>Sn,isRawUnitValue:()=>ri,isResolvedColor:()=>Fe,isScalingUnit:()=>_n,isStaging:()=>dh,isState:()=>Xh,isStore:()=>wt,isString:()=>S,isStringFunction:()=>vi,isSvgTag:()=>us,isTest:()=>xl,isTesting:()=>uh,isTracking:()=>jy,isUndefined:()=>Pt,isUniversallyReservedKey:()=>Ag,isUnresolvableDependency:()=>Vr,isValidDependencyMap:()=>In,isValidHtmlTag:()=>Ah,isValidTag:()=>cs,isWasmLoaded:()=>EC,isWrappedLibrary:()=>tr,isWritableFamilyBucket:()=>xp,joinArrays:()=>wo,jointStacks:()=>Dh,keyframes:()=>as,keys:()=>lf,linearChannelToSrgb:()=>Cf,loadCssFile:()=>Fg,loadJavascript:()=>Ng,loadJavascriptFile:()=>Lg,loadJavascriptFileEmbedSync:()=>Mg,loadJavascriptFileSync:()=>$g,loadRemoteCSS:()=>jg,loadRemoteScript:()=>No,loadTranslations:()=>Ec,loadWasm:()=>CC,log:()=>kg,logGroupIf:()=>xh,logIf:()=>_h,lookdown:()=>mg,lookdownAll:()=>yg,lookup:()=>gg,lowercaseFirstLetter:()=>xn,makeObjectWithoutPrototype:()=>th,map:()=>Gp,mapStringsWithContextComponents:()=>Pi,markPolyglotSeeded:()=>Je,matchesComponentNaming:()=>Ze,media:()=>dm,memoize:()=>mh,merge:()=>yt,mergeSharedLibraries:()=>ha,mixTwoColors:()=>Qg,mixTwoRgb:()=>nm,mixTwoRgba:()=>kf,nextElement:()=>ia,normalizeIgnoreList:()=>zr,normalizeLibraryKey:()=>Bo,numToLetterMap:()=>rr,objectToString:()=>yi,objectizeStringProperty:()=>Di,oklabToLinearSrgb:()=>Ef,oklabToOklch:()=>xa,oklchToGamutSafeSrgb:()=>wa,oklchToOklab:()=>Af,opacify:()=>Ho,overwrite:()=>_i,overwriteDeep:()=>Wt,overwriteShallow:()=>An,overwriteState:()=>Qh,parkHostObject:()=>Ir,parse:()=>ff,parseColorToken:()=>jt,parseDeep:()=>Xi,pickupElementFromProps:()=>Ll,pickupPropsFromElement:()=>Il,polyglotFunctions:()=>Uc,polyglotPlugin:()=>Ds,polyglotSeededKeys:()=>ji,popConfig:()=>rt,popStaticCssPass:()=>du,previousElement:()=>aa,promoteActiveRootState:()=>Io,propExists:()=>Uh,propertizeElement:()=>$l,propertizeUpdate:()=>Bh,pushConfig:()=>ot,pushStaticCssPass:()=>uu,quietColorProbe:()=>Vn,refreshContextProto:()=>gu,registerEvent:()=>ps,registerHostPackages:()=>M1,registerSignalInstance:()=>yo,reinit:()=>Gb,relativeLuminance:()=>$n,remove:()=>ys,removeChars:()=>Yg,removeCookie:()=>vh,removeDelegatedEvent:()=>sc,removeDuplicateProps:()=>Fi,removeDuplicatesInArray:()=>So,removeFromArray:()=>Ep,removeFromObject:()=>rh,removeNestedKeyByPath:()=>oh,removeValueFromArray:()=>ci,removeValueFromArrayAll:()=>Rp,reorderArrayByValues:()=>Dp,replaceLiteralsWithObjectFields:()=>$t,replaceOctalEscapeSequences:()=>jp,resetEmitStats:()=>ny,resolveAsset:()=>Jt,resolveBorderValue:()=>ue,resolveColorRgb:()=>zn,resolveColorsInGradient:()=>tc,resolveConfigDocument:()=>_o,resolveDesignSystemClass:()=>k0,resolveFileSource:()=>py,resolveFileUrl:()=>ve,resolveGridTracks:()=>b0,resolveHandler:()=>Eo,resolvePropValue:()=>rn,resolveShadowValue:()=>Hn,resolveSharedLibraries:()=>qg,returnSubThemeOrDefault:()=>sm,returnValueAsText:()=>Fl,rgbArrayToHex:()=>_f,rgbToHSL:()=>xf,rgbToHex:()=>em,runPluginHook:()=>Rt,runThroughMedia:()=>Vf,schemeGuardSelector:()=>Xr,schemeMediaQuery:()=>Yr,scratchDefaultConfig:()=>Go,scratchSystem:()=>rs,scratchUtils:()=>qr,self:()=>Sp,semanticIcons:()=>_m,sequence:()=>br,serializeAttrValue:()=>ee,set:()=>Gn,setActiveConfig:()=>Mf,setActiveDocument:()=>ry,setActiveRootState:()=>Qi,setAdaptiveSchemeVar:()=>Zr,setClass:()=>rD,setClassname:()=>MP,setColor:()=>Kr,setCookie:()=>Sh,setCssEngineHook:()=>Hu,setCustomFont:()=>Sa,setCustomFontMedia:()=>Hr,setEach:()=>Jm,setFont:()=>za,setFontFamily:()=>ts,setFontImport:()=>Ko,setGradient:()=>Jo,setHashedExtend:()=>kl,setInCustomFontMedia:()=>Of,setInObjectByPath:()=>sh,setLang:()=>Ac,setLocalStorage:()=>Eh,setMediaTheme:()=>Qo,setNodeStyles:()=>cf,setObserver:()=>Ex,setProps:()=>_g,setPropsPrototype:()=>Mi,setSVG:()=>es,setScalingVar:()=>Ta,setShadow:()=>Jr,setSubScalingVar:()=>Ff,setSvgIcon:()=>Wn,setTheme:()=>Va,setValue:()=>Zm,setVariables:()=>Mm,setWasmEngine:()=>nc,shadow:()=>ym,shape:()=>Pm,sharedLibrary:()=>Hg,sizes:()=>Rm,skins:()=>Dm,spacing:()=>pm,splitPackageSpecifier:()=>ua,splitSpacedValue:()=>ja,splitTopLevelCommas:()=>yr,splitTopLevelSpaces:()=>ft,splitTransition:()=>Yf,spotByPath:()=>Zi,srcsetFor:()=>Uo,srgbChannelToLinear:()=>vf,srgbToOklab:()=>_a,stringIncludesAny:()=>ui,stringToObject:()=>Zp,stripVersionRangePrefix:()=>da,svg:()=>vm,svgData:()=>Cm,swapItemsInArray:()=>Ap,syncProps:()=>Ni,templates:()=>Em,theme:()=>mm,timing:()=>xm,toCamel:()=>Ea,toCamelCase:()=>ga,toDashCase:()=>ma,toDescriptionCase:()=>Zg,toLinearChannel:()=>zo,toPriorityOrder:()=>xe,toTitleCase:()=>Xg,toggleFullscreen:()=>Tg,transformBackgroundImage:()=>qf,transformBorder:()=>or,transformBorderRadius:()=>wr,transformBoxShadow:()=>Qa,transformClassname:()=>C0,transformDuration:()=>ec,transformGridTemplate:()=>Gf,transformShadow:()=>Wf,transformSize:()=>St,transformSizeRatio:()=>I,transformTextStroke:()=>Hf,transformTransition:()=>Xm,transformersByPrefix:()=>Ty,transfromGap:()=>Kf,translate:()=>Cc,triggerEventOn:()=>gr,triggerEventOnUpdate:()=>eg,trimStringFromSymbols:()=>Fp,typography:()=>va,unit:()=>am,unstackArrayOfObjects:()=>ai,update:()=>gs,updateProps:()=>Hh,updateVars:()=>eD,upsertTranslation:()=>Tc,useCssInProps:()=>ne,useHostState:()=>Ny,usePropsAsCSS:()=>S0,useSelectorsAsCSS:()=>v0,variables:()=>ca,vars:()=>Om,verbose:()=>Lo,warn:()=>sa,warnStateKeyShadowsMethod:()=>fl,window:()=>C,wrapHoverRule:()=>Sr});var _p={};L(_p,{RESERVED_STORE_METHODS:()=>Ox,SIGNAL_ENGINE_KEY:()=>bo,SIGNAL_INSTANCES_KEY:()=>mo,STORE_METHOD_NAMES:()=>Tx,VERSION:()=>Px,__resetSignalEngine:()=>bp,__resetSignalInstances:()=>yp,__resetStateShadowWarnings:()=>Rx,batch:()=>al,createComputed:()=>Cx,createEffect:()=>G,createScopeStore:()=>ll,createSignal:()=>ei,createStore:()=>lr,getObserver:()=>cl,getSignals:()=>Ax,isStore:()=>wt,registerSignalInstance:()=>yo,setObserver:()=>Ex,warnStateKeyShadowsMethod:()=>fl});var lp={};L(lp,{WRITE_JOURNAL:()=>Zs,batch:()=>Qs,createComputed:()=>MA,createEffect:()=>FA,createSignal:()=>We,getObserver:()=>ap,journalWrite:()=>Js,setObserver:()=>$A});var Yt=null,tl=0,el=[],ap=()=>Yt,$A=t=>{Yt=t},rl=0,np=[];function We(t){let e=new Set;function r(){return Yt&&(e.add(Yt),Yt._sources.add(s)),t}function n(i){i!==t&&(t=i,zA(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:\"signal\"};return s}function MA(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:\"computed\",_subscribers:n,_execute(){ip(o);let s=Yt;Yt=o;try{e=t(),r=!1}finally{Yt=s}},_notify(){r=!0,n.size>0&&kx(n)},get(){return Yt&&(n.add(Yt),Yt._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var De=new Set,op=!1,Zs=[];function Js(t){Zs.push(t),Zs.length>32&&Zs.shift()}function FA(t,e){let r=e?.depth??0,n={_sources:new Set,_type:\"effect\",_depth:r,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;ip(n);let o=Yt;Yt=n;try{t()}catch(s){console.error(\"[smbls] effect error:\",s)}finally{Yt=o}},_notify(){n._disposed||(tl>0?el.push(n):rl>0?np.push(n):cp(n))},dispose(){n._disposed=!0,ip(n)}};return n._execute(),n}function Qs(t){tl++;try{t()}finally{tl--,tl===0&&VA()}}var sp=!1,xx=1e3,NA=8,jA=256,BA=4;function wx(){return typeof performance<\"u\"?performance.now():Date.now()}function cp(t){De.add(t),!sp&&(op||(op=!0,queueMicrotask(Sx)))}var go=[];function UA(){if(De.size===1){let[e]=De;return De.clear(),e._disposed?0:(e._execute(),1)}go.length=0;for(let e of De)go.push(e);De.clear(),go.sort((e,r)=>e._depth-r._depth);let t=0;for(let e=0;e<go.length;e++){let r=go[e];r._disposed||(r._execute(),t++)}return go.length=0,t}function Sx(t=0,e=0){if(op=!1,De.size===0)return;sp=!0;let r=wx(),n=!1;try{for(;De.size>0;){if(++t>xx){let o=new Map;for(let c of De){let l=c._label;if(typeof l==\"function\")try{l=l()}catch{l=\"<label error>\"}if(l=l||\"<unlabeled>\",o.set(l,(o.get(l)||0)+1),o.size>=12)break}let s=[...o.entries()].map(([c,l])=>l>1?`${c} \\xD7${l}`:c).join(\", \"),i=new Map;for(let c of Zs)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \\xD7${l}`:c).join(\", \");console.error(\"[smbls] reactive effect cascade exceeded\",xx,\"passes in a single flush \\u2014 breaking to avoid hanging the thread.\",\"This usually means an effect (or an onUpdate/subscribeTo handler\",\"it calls into) unconditionally writes back a signal it depends on.\",\"Still queued at break (the loop participants):\",s||\"<queue empty>\",\"\\u2014 last notifying store writes:\",a||\"<none recorded>\"),De.clear();break}if(e+=UA(),De.size>0&&(e>=jA||t>=BA)&&wx()-r>NA){n=!0,setTimeout(()=>Sx(t,e),0);break}}}finally{n||(sp=!1)}}function VA(){for(let t=0;t<el.length;t++)cp(el[t]);el.length=0}function kx(t){rl++;try{for(let e of t)e._notify()}finally{if(rl--,rl===0&&np.length>0){let e=np.splice(0);for(let r=0;r<e.length;r++)cp(e[r])}}}function zA(t){kx(t)}function ip(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var mp={};L(mp,{RESERVED_STORE_METHODS:()=>ti,STORE_METHOD_NAMES:()=>gp,__resetStateShadowWarnings:()=>HA,createScopeStore:()=>GA,createStore:()=>nl,getSignals:()=>KA,isStore:()=>qA,warnStateKeyShadowsMethod:()=>hp});var qe=Symbol(\"store\"),ol=Symbol(\"signals\"),gp=[\"update\",\"parse\",\"clean\",\"keys\",\"values\",\"replace\",\"add\",\"remove\",\"destroy\",\"quietUpdate\"],ti=new Set(gp),pp=new Set,fp=(t,e)=>t?t+\".\"+e:String(e);function hp(t,e){let r=(e||\"\")+\"::\"+t;if(pp.has(r))return;pp.add(r);let n=e?`state.${e}`:\"state\",o=`[smbls/state] \"${t}\" is a reserved store-method name and was written as DATA at ${n}.${t}. The value is preserved and readable \\u2014 data wins over the method \\u2014 but \"${n}.${t}(\\u2026)\" no longer reaches the store method on this node. Use \"${n}.$${t}(\\u2026)\" for the method, or rename the data key. Reserved: ${gp.join(\", \")}.`;typeof console<\"u\"&&console.warn&&console.warn(o)}function HA(){pp.clear()}var up=t=>!t||typeof t!=\"object\"||Array.isArray(t)||t[qe]||Object.isFrozen(t)||typeof Node<\"u\"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!sl(t),WA=12,sl=t=>{if(!t||typeof t!=\"object\")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function il(t,e,r){if(t===e)return!0;if(r>WA)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!il(t[n],e[n],r+1))return!1;return!0}if(sl(t)&&sl(e)){let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s of n)if(!Object.prototype.hasOwnProperty.call(e,s)||!il(t[s],e[s],r+1))return!1;return!0}return!1}function nl(t,e,r,n){r===void 0&&(r=0),n===void 0&&(n=\"\");let o={},s={},i=b=>Object.prototype.hasOwnProperty.call(o,b)&&Object.prototype.hasOwnProperty.call(s,b),a=e&&e.maxDepth||8;if(t&&typeof t==\"object\")for(let b in t){if(b===\"__proto__\"||!Object.prototype.hasOwnProperty.call(t,b))continue;if(b.startsWith(\"__\")){s[b]=t[b];continue}ti.has(b)&&hp(b,n);let _=t[b];r<a&&_&&typeof _==\"object\"&&!up(_)?(s[b]=_,o[b]=We(nl(_,e,r+1,fp(n,b)))):(s[b]=_,o[b]=We(_))}let c=new Proxy(s,{get(b,_){if(_===qe)return!0;if(_===ol)return o;if(_===\"__raw\")return b;if(_===\"$update\")return l;if(_===\"$parse\")return u;if(_===\"$clean\")return d;if(_===\"$keys\")return h;if(_===\"$values\")return p;if(_===\"$replace\")return g;if(_===\"$add\")return m;if(_===\"$remove\")return y;if(_===\"$destroy\")return x;if(_===\"$quietUpdate\")return f;if(ti.has(_)&&!Object.prototype.hasOwnProperty.call(o,_))switch(_){case\"update\":return l;case\"parse\":return u;case\"clean\":return d;case\"keys\":return h;case\"values\":return p;case\"replace\":return g;case\"add\":return m;case\"remove\":return y;case\"destroy\":return x;case\"quietUpdate\":return f}if(_===\"__element\")return b.__element;if(_===\"parent\")return b.parent;if(_===\"root\")return b.root;if(Object.prototype.hasOwnProperty.call(o,_)){let k=o[_].get();if(k!==void 0||!(_!==\"root\"&&b.root&&b.root!==c))return k}if(b[_]!==void 0)return b[_];let w=typeof _==\"string\"&&!_.startsWith(\"__\")&&_!==\"then\"&&_!==\"constructor\"&&ap()!=null;if(_!==\"root\"&&b.root&&b.root!==c){let k=b.root[_];return w&&!Object.prototype.hasOwnProperty.call(o,_)&&(o[_]=We(void 0),o[_].get()),k}if(w)return o[_]=We(void 0),o[_].get()},set(b,_,w){if(_===\"__proto__\")return!1;if(_===\"__element\"||_===\"parent\"||_===\"root\"||typeof _==\"string\"&&_.startsWith(\"__\")&&!Object.prototype.hasOwnProperty.call(o,_))return b[_]=w,!0;ti.has(_)&&hp(_,n);let k=fp(n,_);if(Object.prototype.hasOwnProperty.call(o,_))if(w&&typeof w==\"object\"&&!up(w)){if(w===b[_])return!0;let E=o[_].peek(),D=E&&E[qe]?E.$parse():E;if(il(w,D,0))return!0;b[_]=w,Js(k),o[_].set(nl(w,e,r+1,k))}else{if(Array.isArray(w)&&w!==b[_]&&Array.isArray(o[_].peek())&&il(w,o[_].peek(),0))return!0;o[_].peek()!==w&&Js(k),b[_]=w,o[_].set(w)}else b[_]=w,w&&typeof w==\"object\"&&!up(w)?o[_]=We(nl(w,e,r+1,k)):o[_]=We(w);return!0},has(b,_){return typeof _==\"string\"&&_.charCodeAt(0)===36&&ti.has(_.slice(1))?!0:_ in b},ownKeys(b){return Object.keys(o).filter(i)},getOwnPropertyDescriptor(b,_){return i(_)?{enumerable:!0,configurable:!0,value:o[_].peek()}:Object.getOwnPropertyDescriptor(b,_)},deleteProperty(b,_){return o[_]&&(o[_].peek()!==void 0&&Js(fp(n,_)),o[_].set(void 0),delete o[_]),delete b[_],!0}});function l(b,_){Qs(()=>{for(let k in b)k!==\"__proto__\"&&(c[k]=b[k])});let w=s.__element;return w&&w.onUpdate&&!_?.quiet&&w.onUpdate(w,c,w.context),c}function f(b){return l(b,{quiet:!0})}function u(b){if(b||(b=new Set),b.has(c))return\"[Circular]\";b.add(c);let _={};for(let w in o){if(w===\"parent\"||w===\"root\"||w.startsWith(\"__\")||!Object.prototype.hasOwnProperty.call(s,w))continue;let k=o[w].peek();k&&k[qe]?_[w]=k.$parse(b):_[w]=k}return _}function d(){return Qs(()=>{for(let b in o)delete c[b]}),c}function h(){return Object.keys(o).filter(i)}function p(){return Object.keys(o).filter(i).map(b=>o[b].peek())}function g(b){return Qs(()=>{for(let _ in o)_ in b||delete c[_];for(let _ in b)_!==\"__proto__\"&&(c[_]=b[_])}),c}function m(b,_){let w=Object.prototype.hasOwnProperty.call(o,b)?o[b].peek():s[b];if(Array.isArray(w))return c[b]=[...w,_],c;if(w&&typeof w==\"object\"&&!Array.isArray(w)){if(sl(_))w[qe]?w.$update(_):c[b]={...w,..._};else{let k=String(Object.keys(w).length);w[qe]?w.$update({[k]:_}):c[b]={...w,[k]:_}}return c}return c[b]=_,c}function y(b){return delete c[b],c}function x(){d(),s.__element=null,s.parent=null}return c}function qA(t){return t&&t[qe]===!0}function KA(t){return t[ol]}function GA(t,e){let r={},n={};if(t&&typeof t==\"object\")for(let i in t)n[i]=t[i],r[i]=We(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[ol];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[qe]?a[dp]:null}return null};return new Proxy(n,{get(i,a){return a===qe?!0:a===ol?r:a===dp?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]=We(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[qe]?c[dp]: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 dp=Symbol(\"scope.parent\");var bn=\"3.14.785\";var mo=\"__SMBLS_SIGNAL_INSTANCES__\",yo=(t,e,r)=>{let n=e||(typeof globalThis<\"u\"?globalThis:null);if(!n)return null;let o=n[mo]||(n[mo]={versions:[],engines:0,reported:!1});return typeof o.engines!=\"number\"&&(o.engines=o.versions.length),o.versions.push(t||bn),r||o.engines++,o.engines>1&&!o.reported&&(o.reported=!0,console.error(\"[smbls] duplicate @symbo.ls/signal instance \\u2014\",o.engines,\"copies of the reactive engine are loaded on this page:\",o.versions.join(\", \")+\".\",\"Each copy keeps its own observer and effect queue, so an effect created\",\"by one copy never re-fires from another copy's store writes, and one\",\"copy's cascade breaker cannot see the other's queue.\",\"Copies of the SAME version adopt a single engine automatically, so\",\"this means the versions above DIFFER: a fossil copy is resolving beside\",\"the current one. That is a dependency-graph fault, not an application\",\"bug \\u2014 align the version wherever @symbo.ls/signal is imported, then\",\"regenerate the lockfile so exactly one version resolves.\")),o},yp=t=>{let e=t||(typeof globalThis<\"u\"?globalThis:null);e&&delete e[mo]};var bo=\"__SMBLS_SIGNAL_ENGINE__\",vx=(t,e,r)=>{let n=e||bn,o=r||(typeof globalThis<\"u\"?globalThis:null);if(!o)return t;let s=o[bo];return s&&s.engine&&s.version===n?(yo(n,o,!0),s.engine):(s||(o[bo]={version:n,engine:t}),yo(n,o,!1),t)},bp=t=>{let e=t||(typeof globalThis<\"u\"?globalThis:null);e&&delete e[bo]};var Ht=vx({...lp,...mp,VERSION:bn},bn),ei=Ht.createSignal,Cx=Ht.createComputed,G=Ht.createEffect,al=Ht.batch,cl=Ht.getObserver,Ex=Ht.setObserver,lr=Ht.createStore,ll=Ht.createScopeStore,wt=Ht.isStore,Ax=Ht.getSignals,Tx=Ht.STORE_METHOD_NAMES,Ox=Ht.RESERVED_STORE_METHODS,fl=Ht.warnStateKeyShadowsMethod,Rx=Ht.__resetStateShadowWarnings,Px=Ht.VERSION;var ay={};L(ay,{assertEmitIntegrity:()=>oy,css:()=>pe,getActiveDocument:()=>Xn,getCacheSize:()=>iy,getEmitStats:()=>ru,injectGlobal:()=>_t,keyframes:()=>as,reset:()=>QS,resetEmitStats:()=>ny,setActiveDocument:()=>ry,setWasmEngine:()=>nc,wrapHoverRule:()=>Sr});var Qm={};L(Qm,{COMPOUND_CSS_KEYWORDS:()=>Mn,CONFIG:()=>Bn,CONFIG_MERGE_EXL:()=>fe,CSS_NAMED_COLOR_HEX:()=>yf,CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_UNITS:()=>xo,FACTORY:()=>le,STANDARD_SCHEME_QUERIES:()=>Bf,VALUE_TRANSFORMERS:()=>Xf,__resetSkinWarnings:()=>Ym,activateConfig:()=>sS,aliasCaseVariants:()=>Zo,animation:()=>km,appendSVGSprite:()=>Xa,appendSvgIconsSprite:()=>qn,applyDocument:()=>Ya,applyHeadings:()=>zf,applyMediaSequenceVars:()=>Wr,applyReset:()=>Za,applySequenceGlobalVars:()=>La,applySequenceVars:()=>xr,applySkins:()=>Ja,applySpacingSequence:()=>Na,applyTimingSequence:()=>Ga,applyTypographySequence:()=>Wa,breakpoints:()=>wm,buildSkinVarStyles:()=>Kn,changeGlobalTheme:()=>Zf,changeLightness:()=>om,checkIfBoxSize:()=>Fa,class:()=>Tm,color:()=>hm,colorStringToRgbaArray:()=>ke,compositeOverBackdrop:()=>Fn,contrastRatio:()=>Wo,convertSvgToSymbol:()=>Ma,createConfig:()=>Aa,cssMediaVars:()=>$f,cssVars:()=>Lf,defineResolvedThemeSignal:()=>Xo,defineThemeSignal:()=>Yo,devices:()=>Sm,document:()=>eS,findHeadingLetter:()=>Nf,findHeadings:()=>Ia,font:()=>cm,fontFace:()=>um,fontFamily:()=>lm,fontFamilyTypes:()=>fm,generateSequence:()=>Qt,generateSequencePosition:()=>$m,generateSprite:()=>$a,generateSubSequence:()=>Pa,getActiveConfig:()=>T,getColor:()=>tt,getColorShade:()=>Sf,getDefaultOrFirstKey:()=>Nn,getFnPrefixAndValue:()=>_r,getFontFace:()=>im,getFontFaceEach:()=>jn,getFontFaceEachString:()=>Rf,getFontFaceString:()=>ka,getFontFamily:()=>Ha,getFontFormat:()=>Tf,getFontSizeByKey:()=>qa,getMediaColor:()=>Lt,getMediaTheme:()=>Ae,getResolvedThemeSignal:()=>oS,getRgbTone:()=>er,getSafeInk:()=>Uf,getSafeInkInfo:()=>jm,getSequenceValue:()=>Un,getSequenceValueBySymbols:()=>Da,getSequenceValuePropertyPair:()=>nr,getShadow:()=>Ba,getShapeByKey:()=>Ka,getSpacingBasedOnRatio:()=>Ee,getSpacingByKey:()=>Ct,getSubratio:()=>Ra,getSubratioDifference:()=>Oa,getTheme:()=>zm,getThemeSignal:()=>nS,getTimingByKey:()=>de,getTimingFunction:()=>Te,gradient:()=>gm,grid:()=>Am,hexToRgb:()=>tm,hexToRgbArray:()=>bf,hexToRgba:()=>rm,hslToRgb:()=>wf,icons:()=>bm,isCSSVar:()=>bt,isDomDocument:()=>fr,isGoogleFontsUrl:()=>qo,isHostObject:()=>ur,isPlainColor:()=>Gr,isRawUnitValue:()=>ri,isResolvedColor:()=>Fe,isScalingUnit:()=>_n,isWritableFamilyBucket:()=>xp,linearChannelToSrgb:()=>Cf,media:()=>dm,mixTwoColors:()=>Qg,mixTwoRgb:()=>nm,mixTwoRgba:()=>kf,numToLetterMap:()=>rr,oklabToLinearSrgb:()=>Ef,oklabToOklch:()=>xa,oklchToGamutSafeSrgb:()=>wa,oklchToOklab:()=>Af,opacify:()=>Ho,parkHostObject:()=>Ir,parseColorToken:()=>jt,popConfig:()=>rt,pushConfig:()=>ot,quietColorProbe:()=>Vn,relativeLuminance:()=>$n,reset:()=>rS,resolveBorderValue:()=>ue,resolveColorRgb:()=>zn,resolveColorsInGradient:()=>tc,resolveConfigDocument:()=>_o,resolveFileUrl:()=>ve,resolveShadowValue:()=>Hn,returnSubThemeOrDefault:()=>sm,rgbArrayToHex:()=>_f,rgbToHSL:()=>xf,rgbToHex:()=>em,runThroughMedia:()=>Vf,schemeGuardSelector:()=>Xr,schemeMediaQuery:()=>Yr,scratchDefaultConfig:()=>Go,scratchSystem:()=>rs,scratchUtils:()=>qr,semanticIcons:()=>_m,sequence:()=>br,set:()=>Gn,setActiveConfig:()=>Mf,setAdaptiveSchemeVar:()=>Zr,setColor:()=>Kr,setCustomFont:()=>Sa,setCustomFontMedia:()=>Hr,setEach:()=>Jm,setFont:()=>za,setFontFamily:()=>ts,setFontImport:()=>Ko,setGradient:()=>Jo,setInCustomFontMedia:()=>Of,setMediaTheme:()=>Qo,setSVG:()=>es,setScalingVar:()=>Ta,setShadow:()=>Jr,setSubScalingVar:()=>Ff,setSvgIcon:()=>Wn,setTheme:()=>Va,setValue:()=>Zm,setVariables:()=>Mm,shadow:()=>ym,shape:()=>Pm,sizes:()=>Rm,skins:()=>Dm,spacing:()=>pm,splitSpacedValue:()=>ja,splitTopLevelCommas:()=>yr,splitTopLevelSpaces:()=>ft,splitTransition:()=>Yf,srgbChannelToLinear:()=>vf,srgbToOklab:()=>_a,svg:()=>vm,svgData:()=>Cm,templates:()=>Em,theme:()=>mm,timing:()=>xm,toCamel:()=>Ea,toLinearChannel:()=>zo,transformBackgroundImage:()=>qf,transformBorder:()=>or,transformBorderRadius:()=>wr,transformBoxShadow:()=>Qa,transformDuration:()=>ec,transformGridTemplate:()=>Gf,transformShadow:()=>Wf,transformSize:()=>St,transformSizeRatio:()=>I,transformTextStroke:()=>Hf,transformTransition:()=>Xm,transfromGap:()=>Kf,typography:()=>va,unit:()=>am,vars:()=>Om});var qr={};L(qr,{COMPOUND_CSS_KEYWORDS:()=>Mn,CSS_NAMED_COLOR_HEX:()=>yf,CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_UNITS:()=>xo,applyMediaSequenceVars:()=>Wr,applySequenceGlobalVars:()=>La,applySequenceVars:()=>xr,changeLightness:()=>om,colorStringToRgbaArray:()=>ke,compositeOverBackdrop:()=>Fn,contrastRatio:()=>Wo,convertSvgToSymbol:()=>Ma,findHeadingLetter:()=>Nf,findHeadings:()=>Ia,generateSequence:()=>Qt,generateSequencePosition:()=>$m,generateSprite:()=>$a,generateSubSequence:()=>Pa,getColorShade:()=>Sf,getDefaultOrFirstKey:()=>Nn,getFnPrefixAndValue:()=>_r,getFontFace:()=>im,getFontFaceEach:()=>jn,getFontFaceEachString:()=>Rf,getFontFaceString:()=>ka,getFontFormat:()=>Tf,getRgbTone:()=>er,getSequenceValue:()=>Un,getSequenceValueBySymbols:()=>Da,getSequenceValuePropertyPair:()=>nr,getSubratio:()=>Ra,getSubratioDifference:()=>Oa,hexToRgb:()=>tm,hexToRgbArray:()=>bf,hexToRgba:()=>rm,hslToRgb:()=>wf,isCSSVar:()=>bt,isDomDocument:()=>fr,isGoogleFontsUrl:()=>qo,isHostObject:()=>ur,isRawUnitValue:()=>ri,isResolvedColor:()=>Fe,isScalingUnit:()=>_n,isWritableFamilyBucket:()=>xp,linearChannelToSrgb:()=>Cf,mixTwoColors:()=>Qg,mixTwoRgb:()=>nm,mixTwoRgba:()=>kf,numToLetterMap:()=>rr,oklabToLinearSrgb:()=>Ef,oklabToOklch:()=>xa,oklchToGamutSafeSrgb:()=>wa,oklchToOklab:()=>Af,opacify:()=>Ho,parkHostObject:()=>Ir,parseColorToken:()=>jt,relativeLuminance:()=>$n,resolveConfigDocument:()=>_o,resolveFileUrl:()=>ve,returnSubThemeOrDefault:()=>sm,rgbArrayToHex:()=>_f,rgbToHSL:()=>xf,rgbToHex:()=>em,setCustomFont:()=>Sa,setCustomFontMedia:()=>Hr,setFontImport:()=>Ko,setInCustomFontMedia:()=>Of,setScalingVar:()=>Ta,setSubScalingVar:()=>Ff,setVariables:()=>Mm,splitTopLevelCommas:()=>yr,splitTopLevelSpaces:()=>ft,srgbChannelToLinear:()=>vf,srgbToOklab:()=>_a,toLinearChannel:()=>zo});var fr=t=>!!(t&&t.documentElement&&typeof t.createElement==\"function\"&&t.head!==void 0),ur=t=>{if(t===null||typeof t!=\"object\")return!1;let e=Object.prototype.toString.call(t);return!!(e!==\"[object Object]\"&&e!==\"[object Array]\"||typeof t.nodeType==\"number\"||t.defaultView||t.window===t||t.self===t)},xp=t=>t!==null&&typeof t==\"object\"&&!ur(t),Ir=(t,e,r)=>{if(!t)return;if(fr(r)){t.__domDocument||(t.__domDocument=r);return}let n=`__host_${e}`;t[n]||(t[n]=r)},_o=t=>t?fr(t.__domDocument)?t.__domDocument:fr(t.document)?t.document:null:null;var _n=t=>t===\"em\"||t===\"rem\"||t===\"vw\"||t===\"vh\"||t===\"vmax\"||t===\"vmin\",xo=[\"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\"],YA=t=>t.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),XA=new RegExp(`^-?(?:\\\\d+\\\\.?\\\\d*|\\\\.\\\\d+)(?:${xo.filter(t=>t!==\"auto\").map(YA).join(\"|\")})$`),ri=t=>XA.test(String(t).trim());P();var yf={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},ke=t=>{if(t===\"\")return[0,0,0,0];if(t.toLowerCase()===\"transparent\")return[0,0,0,0];let e=yf[t.toLowerCase()];if(e&&(t=e),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&&et&&C){let r=et.body.appendChild(et.createElement(\"fictum\")),n=\"rgb(1, 2, 3)\";if(r.style.color=n,r.style.color!==n){et.body.removeChild(r);return}if(r.style.color=t,r.style.color===n||r.style.color===\"\")return et.body.removeChild(r),[0,0,0,0];t=C.getComputedStyle(r).color,et.body.removeChild(r)}return t.indexOf(\"rgb\")===0?(t.indexOf(\"rgba\")===-1&&(t=`${t}, 1`),t.match(/[\\.\\d]+/g).map(r=>+r)):[0,0,0,0]},Qg=(t,e,r=.5)=>(t=ke(t),e=ke(e),kf(t,e,r)),tm=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},bf=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},em=(t,e,r)=>\"#\"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),_f=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),rm=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},nm=(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})`},om=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},xf=(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]},wf=(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)],Sf=(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)},kf=(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})`},Ho=(t,e)=>{let r=ke(t);if(!r){Tn()&&console.warn(t+\" color is not rgba\");return}return r[3]=e,`rgba(${r})`},bt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Mn=new Set([\"currentcolor\",\"transparent\",\"thin\",\"medium\",\"thick\"]),ce=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,RO=/^([a-zA-Z]\\w*(?:-[a-zA-Z]\\w*)*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,jt=t=>{if(!S(t))return null;if(ce.test(t))return{passthrough:t};if(bt(t))return{cssVar:t};let e=t.match(RO);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}},Fe=t=>S(t)&&(t.includes(\"rgb\")||t.includes(\"var(\")||t.includes(\"#\")),yr=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},ft=t=>{let e=[],r=\"\",n=0;for(let o of t){if(o===\"(\"?n+=1:o===\")\"&&n>0&&(n-=1),n===0&&/\\s/.test(o)){r.length&&e.push(r),r=\"\";continue}r+=o}return r.length&&e.push(r),e},zo=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),$n=t=>.2126*zo(t[0])+.7152*zo(t[1])+.0722*zo(t[2]),Wo=(t,e)=>{let r=$n(t)+.05,n=$n(e)+.05;return r>n?r/n:n/r},vf=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Cf=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,_a=([t,e,r])=>{let[n,o,s]=[t,e,r].map(vf),i=.4122214708*n+.5363325363*o+.0514459929*s,a=.2119034982*n+.6806995451*o+.1073969566*s,c=.0883024619*n+.2817188376*o+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},Ef=([t,e,r])=>{let n=t+.3963377774*e+.2158037573*r,o=t-.1055613458*e-.0638541728*r,s=t-.0894841775*e-1.291485548*r,i=n**3,a=o**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},xa=([t,e,r])=>{let n=Math.atan2(r,e)*180/Math.PI;return n<0&&(n+=360),[t,Math.sqrt(e*e+r*r),n]},Af=([t,e,r])=>{let n=r*Math.PI/180;return[t,e*Math.cos(n),e*Math.sin(n)]},wa=(t,e,r,n=24)=>{let o=a=>Ef(Af([t,a,r])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=o(e);if(!s(i)){let a=0,c=e;for(let l=0;l<n;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>Cf(Math.max(0,Math.min(1,a))))},Fn=(t,e=1,r=[255,255,255])=>e>=1?t:t.map((n,o)=>n*e+r[o]*(1-e)),er=(t,e)=>{S(t)&&t.includes(\"rgb\")&&(t=ke(t).join(\", \")),S(t)&&(t=t.split(\",\").map(o=>parseFloat(o.trim()))),Ke(e)&&(e+=\"\");let r=_f(t),n=e.slice(0,1);if(n===\"-\"||n===\"+\"){let o=Sf(r,parseFloat(e));return bf(o).join(\", \")}else{let[o,s,i]=t,[a,c]=xf(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return wf(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(\", \")}};var sm=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var ve=(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},Nn=(t,e)=>{if(t[e])return t[e].value;let r=()=>Object.keys(t).find(o=>o!==\"default\"&&t[o]&&t[o].value&&!t[o].isSystemFallback);if(t.default){let o=t[t.default];if(o&&o.isSystemFallback){let s=r();if(s)return t[s].value}if(o)return o.value}let n=r()||Object.keys(t).find(o=>o!==\"default\"&&t[o]&&t[o].value);return n&&t[n]&&t[n].value},Tf=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},qo=t=>t&&(t.includes(\"fonts.googleapis.com\")||t.includes(\"fonts.gstatic.com\")),Ko=t=>`@import url('${t}');`,Of=t=>`@font-face { ${t} }`,Sa=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a==\"string\"&&a).map(a=>{let c=Tf(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.unicodeRange?`\n unicode-range: ${n.unicodeRange};`:\"\"}\n src: ${i};`},Hr=(t,e,r,n)=>`@font-face {${Sa(t,e,r,n)}\n}`,jn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[o],u=Array.isArray(s)?s.map(d=>ve(d,r)||d):ve(s,r)||s;return Sa(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),im=t=>Object.keys(t).map(r=>jn(r,t[r].value)),Rf=(t,e,r)=>{if(e&&e.isVariable){let s=ve(e.url,r)||e.url;return qo(s)?Ko(s):Hr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\",unicodeRange:e.unicodeRange})}if(e[0])return jn(t,e,r).map(Of);let o=Array.isArray(e.url)?e.url.map(s=>ve(s,r)||s):ve(e.url,r)||e.url;return Hr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},ka=(t,e)=>Object.keys(t).map(n=>Rf(n,t[n].value,e));P();P();P();P();var Go={};L(Go,{animation:()=>km,breakpoints:()=>wm,class:()=>Tm,color:()=>hm,devices:()=>Sm,document:()=>eS,font:()=>cm,fontFace:()=>um,fontFamily:()=>lm,fontFamilyTypes:()=>fm,gradient:()=>gm,grid:()=>Am,icons:()=>bm,media:()=>dm,reset:()=>rS,semanticIcons:()=>_m,sequence:()=>br,shadow:()=>ym,shape:()=>Pm,sizes:()=>Rm,skins:()=>Dm,spacing:()=>pm,svg:()=>vm,svgData:()=>Cm,templates:()=>Em,theme:()=>mm,timing:()=>xm,typography:()=>va,unit:()=>am,vars:()=>Om});var br={\"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 am={default:\"em\"};var PO={browserDefault:16,base:16,type:\"font-size\",ratio:br[\"minor-third\"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:\"em\",templates:{},sequence:{},scales:{},vars:{}},va=PO;var cm={};var lm={},fm={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},um={};var dm={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var DO={base:va.base,type:\"spacing\",ratio:br.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},pm=DO;var hm={},gm={};var mm={};var ym={};var bm={},_m={};var IO={default:150,base:150,type:\"timing\",ratio:br[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},xm=IO;var eS={};var wm={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Sm={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 km={};var vm={},Cm={};var Em={};var LO={},Am=LO;var Tm={};var rS={},Om={},Rm={},Pm={},Dm={};var Lf={},$f={},fe=new Set,Pf=Go,Df={},Ea=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in Pf){let e=t.toLowerCase();Df[e]=Pf[t];let r=Ea(e);r!==e&&(Df[r]=Pf[t]),e!==t&&(Df[t]=Pf[t])}var Bn={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:Lf,cssMediaVars:$f,CSS_VARS:Lf,CSS_MEDIA_VARS:$f,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Df},Yo=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Ot(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let r=Ot(e)?e:t.globalTheme,n=ei(Ot(r)?r:\"auto\");return Object.defineProperty(t,\"globalTheme\",{get(){return n.get()},set(o){n.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,\"__globalThemeSignal\",{value:n,enumerable:!1,configurable:!0,writable:!0}),n},nS=t=>t?Yo(t):null,Xo=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Ot(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let r=Ot(e)?e:t.resolvedTheme,n=ei(Ot(r)?r:null);return Object.defineProperty(t,\"resolvedTheme\",{get(){return n.get()},set(o){n.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,\"__resolvedThemeSignal\",{value:n,enumerable:!1,configurable:!0,writable:!0}),n},oS=t=>t?Xo(t):null;Yo(Bn);Xo(Bn);var If=st(Bn),le={active:\"0\",0:Bn},sS=t=>(Ot(t)&&(le.active=t),le[t||le.active]),Ca=[],ot=t=>{t&&t._scratchConfig&&Ca.push(t)},rt=()=>{Ca.pop()},T=t=>Ca.length?Ca[Ca.length-1]:le[t||le.active]||Bn,Mf=t=>{if(v(t))return le.active=\"1\",le[1]=nt(t,st(If),fe),Zo(le[1]),Yo(le[1]),Xo(le[1]),t},$O=[\"useReset\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\"],MO=[\"useVariable\",\"globalTheme\",\"verbose\"],FO=[[\"fontfamily\",\"fontFamily\",\"font_family\"],[\"fontfamilytypes\",\"fontFamilyTypes\"],[\"semanticicons\",\"semanticIcons\"],[\"svgdata\",\"svgData\"]],Zo=t=>{for(let e of FO){let r;for(let n of e){let o=t[n];v(o)&&(r=r?nt(r,o,fe):o)}if(r)for(let n of e)v(t[n])&&(t[n]=r)}},Aa=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:T(),o=st(!r&&n&&n._scratchConfig?n:If);for(let i of $O)delete o[i];for(let i of MO)Object.prototype.hasOwnProperty.call(If,i)?o[i]=If[i]:delete o[i];let s=nt(e||{},o,fe);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s.cssSkinVars={},s.cssSkinFallback={},s._scratchConfig=!0,Zo(s),Yo(s),Xo(s),t&&(le[t]=s),s};var rr={\"-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\"},Lm=(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=iS.has(e.unit)?\"rem\":e.unit;e.vars[n]=s+c},_r=t=>{if(!t.includes(\"(\"))return t;let e=t.trim(),r=e.indexOf(\"(\"),n=e.slice(0,r),o=0,s=-1;for(let i=r;i<e.length;i++){let a=e[i];if(a===\"(\")o++;else if(a===\")\"&&(o--,o===0)){s=i;break}}return s===-1||/\\s/.test(n)||e.slice(s+1).trim()!==\"\"?[void 0,t]:[n,e.slice(r+1,s)]},Im=\"\\0\",NO=(t,e)=>{let r=\"\",n=0,o=\"\";for(let s of t){if(n===0&&s!==\"(\"){r+=s;continue}o+=s,s===\"(\"?n++:s===\")\"&&(n--,n===0&&(r+=Im+e.length+Im,e.push(o),o=\"\"))}return r+o},jO=(t,e)=>t.indexOf(Im)===-1?t:t.replace(/\\u0000(\\d+)\\u0000/g,(r,n)=>e[Number(n)]),BO=/^(calc|min|max|clamp)\\((.*)\\)$/,UO=(t,e)=>{let r=BO.exec(t);return r?`${r[1]}(${Da(r[2],e)})`:t.indexOf(\"(\")!==-1?t:Un(t,e)},iS=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),Ta=(t,e)=>{let{base:r,type:n,unit:o}=e,s=iS.has(o)?\"rem\":o,i=(_n(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=rr[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=rr[t+1],u=Math.abs(t),d=Math.pow(aS,2*u),h=rr[u];return h?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${h}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ff=(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}))`},Oa=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ra=(t,e)=>Oa(t,e).map(r=>r/t),Pa=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,h]=Oa(o,s);l>16?f=[u,d,h]:f=[u,h],f.forEach((p,g)=>{let m=~~(p/n*1e3)/1e3,y=i+(g+1),x=a+(g+1)/10,b=Ff(g+1,f,i,e),_={key:r+(g+1),variable:y,value:p,scaling:m,scalingVariable:b,index:x};Lm(_,e)})},aS=1.618,VO=(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(aS,2*n);return Math.max(o,s)},Qt=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=rr[f],d=VO(f,r,n),h=~~(d/r*100)/100,p=c+u,g=Ta(f,t),m={key:u,variable:p,value:d,base:r,scaling:h,scalingVariable:g,ratio:n,index:f};Lm(m,t),s&&Pa(m,t)}return t},$m=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:rr[e],a=S(e)?Object.entries(rr).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,h=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(r&&r.replace(\".\",\"-\"))+\"-\"+i,p=Ta(a,t),g={key:i,variable:h,value:l,base:n,scaling:f,scalingVariable:p,ratio:o,index:a};return Lm(g,c),s&&Pa(g,c),c},Un=(t=\"A\",e)=>{let r=T(),{unit:n}=r;if(S(t)&&bt(t))return`var(${t})`;if(S(t)&&/^(?:env|var|calc|min|max|clamp)\\(/.test(t.trim()))return t;if(S(t)){let b=r.sizes;if(b){let _=b[t]||b[t.toLowerCase()];if(_!==void 0)return t.slice(0,1)===\"-\"?`calc(${_} * -1)`:_}}let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(ri(t)||!c||[\"none\",\"auto\",\"max-content\",\"min-content\",\"fit-content\",\"inherit\",\"initial\",\"unset\",\"revert\",\"revert-layer\"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+\"-\":\"\"}${ma(e.type.replace(\".\",\"-\"))}-`,h=t.toUpperCase(),p=h.slice(0,1)===\"-\"?\"-\":\"\",g=p?h.slice(1):h,m=\"\";g.includes(\"_\")&&(m=\"_\"+g.split(\"_\")[1].toLowerCase(),g=g.split(\"_\")[0]);let y=b=>a.test(b)?`var(${d}${b}${m})`:b;if(g.includes(\"+\")){let[b,_]=g.split(\"+\"),w=`${y(b)} + ${y(_)}`;return p?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes(\"*\")){let[b,_]=g.split(\"*\"),w=`${y(b)} * ${y(_)}`;return p?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes(\"-\")){let[b,_]=g.split(\"-\"),w=`${y(b)} - ${y(_)}`;return p?`calc((${w}) * -1)`:`calc(${w})`}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 b=`var(${d}${g}${m})`;return p?`calc(${b} * -1)`:b}let x=o?o[g]:null;if(!x){if(console.warn(\"can't find\",o,g),pt())throw new Error(`[smbls] Unresolvable design-system token \"${t}\"`+(e.type?` for sequence \"${e.type}\"`:\"\")+\" \\u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.\");return}return s===\"ms\"||s===\"s\"?p+x.val+s:p+x.scaling+s},Da=(t,e)=>{if(![\"+\",\"-\",\"*\",\"/\",\",\"].filter(i=>t.includes(i+\" \")).length)return t;let n=/(\\s+-\\s+|\\s*[+*/,]\\s*)/,o=[];return NO(t,o).split(n).map(i=>{let a=jO(i,o),c=a.trim();return!c||[\"+\",\"-\",\"*\",\"/\",\",\"].includes(c)?a:UO(c,e)}).join(\"\")},nr=(t,e,r,n)=>{if(typeof t!=\"string\")return T().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=_r(t);n=s[0],t=s[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length?t=Da(t,r):t=Un(t,r),{[e]:n?`${n}(${t})`:t}},Nf=(t,e)=>rr[t-e],Ia=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Nf(e,o);return r[s]})};P();var Mm=(t,e)=>{let r=T(),{cssVars:n}=r;j(t.value)||(n[t.var]=t.value)},La=(t,e,r)=>{let n=T(),{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[d,h,p]=Ra(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${h/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${p/a})`},cS=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),xr=(t,e={})=>{let r=T(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=cS.has(i)?\"rem\":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||La(s,t,e);for(let u in l){let d=l[u],h=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+\"_default\"]=h,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=h:(s[d.variable+\"_default\"]=h,s[d.variable]=`var(${d.variable+\"_default\"})`)}},Wr=(t,e,r={})=>{let n=T(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=cS.has(l)?\"rem\":l,{mediaRegenerate:u}=t,{sequence:d,scales:h}=c,p=s[a];if(!p&&n.verbose&&console.warn(\"Can't find media query \",p),!u){let g=i[`@media ${p}`];g||(g=i[`@media ${p}`]={}),La(g,c,r);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let x=d[y],b=h[y]+f;g[x.variable+\"_default\"]=b,g[x.variable]=b}return}for(let g in d){let m=d[g],y=(_n(f)?h[g]:d[g].val)+f;!p&&n.verbose&&console.warn(\"Can't find query \",p);let x=i[`@media ${p}`];x||(x=i[`@media ${p}`]={}),x[m.variable]=`var(${m.variable+\"_\"+a})`,i[m.variable+\"_\"+a]=y}};P();var fS=Tn(),$a=t=>{let e=T(),r=\"\";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},zO=t=>{let e=t&&(t.default||t);if(!S(e))return fS&&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},{}):{}},HO=(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},lS=new Set,Ma=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return fS&&!lS.has(t)&&(lS.add(t),console.warn(\"convertSvgToSymbol:\",t,\"is not a string\")),\"\";e=r;let n=e.match(/^<symbol\\b[^>]*\\bid=\"([^\"]*)\"/);if(n){let u=n[1];return u===t?e:e.replace(`id=\"${u}\"`,`id=\"${t}\"`)}let o=zO(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=HO(e,t).replace(\"<svg\",`<symbol id=\"${t}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${a}\"`);return f=f.replace(/^<symbol\\b[^>]*>/,u=>u.replace(/\\s(width|height)=\"[^\"]*\"/g,\"\")),f=f.replace(\"</svg\",\"</symbol\"),f=KO(f),f},WO=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",qO=new RegExp(`<(${WO})\\\\b([^>]*?)\\\\s*/>`,\"g\"),KO=t=>t.replace(qO,\"<$1$2></$1>\");var rs={};L(rs,{STANDARD_SCHEME_QUERIES:()=>Bf,__resetSkinWarnings:()=>Ym,appendSVGSprite:()=>Xa,appendSvgIconsSprite:()=>qn,applyDocument:()=>Ya,applyHeadings:()=>zf,applyReset:()=>Za,applySkins:()=>Ja,applySpacingSequence:()=>Na,applyTimingSequence:()=>Ga,applyTypographySequence:()=>Wa,buildSkinVarStyles:()=>Kn,checkIfBoxSize:()=>Fa,getColor:()=>tt,getFontFamily:()=>Ha,getFontSizeByKey:()=>qa,getMediaColor:()=>Lt,getMediaTheme:()=>Ae,getSafeInk:()=>Uf,getSafeInkInfo:()=>jm,getShadow:()=>Ba,getShapeByKey:()=>Ka,getSpacingBasedOnRatio:()=>Ee,getSpacingByKey:()=>Ct,getTheme:()=>zm,getTimingByKey:()=>de,getTimingFunction:()=>Te,isPlainColor:()=>Gr,quietColorProbe:()=>Vn,resolveBorderValue:()=>ue,resolveColorRgb:()=>zn,resolveShadowValue:()=>Hn,runThroughMedia:()=>Vf,schemeGuardSelector:()=>Xr,schemeMediaQuery:()=>Yr,setAdaptiveSchemeVar:()=>Zr,setColor:()=>Kr,setFont:()=>za,setFontFamily:()=>ts,setGradient:()=>Jo,setMediaTheme:()=>Qo,setSVG:()=>es,setShadow:()=>Jr,setSvgIcon:()=>Wn,setTheme:()=>Va,splitSpacedValue:()=>ja});P();var Bf={light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\"},Yr=(t,e)=>{let r=e.media&&e.media[t]||Bf[t];return r?\"@media \"+(r===\"print\"?`${r}`:`screen and ${r}`):null},Xr=t=>{let e=t.scopeSelector||\":root\";return`${e===\":root\"?\":root:not([data-theme])\":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},Ce=new Set,hS=new Set([\"aliceblue\",\"antiquewhite\",\"aqua\",\"aquamarine\",\"azure\",\"beige\",\"bisque\",\"black\",\"blanchedalmond\",\"blue\",\"blueviolet\",\"brown\",\"burlywood\",\"cadetblue\",\"chartreuse\",\"chocolate\",\"coral\",\"cornflowerblue\",\"cornsilk\",\"crimson\",\"cyan\",\"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\",\"fuchsia\",\"gainsboro\",\"ghostwhite\",\"gold\",\"goldenrod\",\"gray\",\"green\",\"greenyellow\",\"grey\",\"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\",\"lime\",\"limegreen\",\"linen\",\"magenta\",\"maroon\",\"mediumaquamarine\",\"mediumblue\",\"mediumorchid\",\"mediumpurple\",\"mediumseagreen\",\"mediumslateblue\",\"mediumspringgreen\",\"mediumturquoise\",\"mediumvioletred\",\"midnightblue\",\"mintcream\",\"mistyrose\",\"moccasin\",\"navajowhite\",\"navy\",\"oldlace\",\"olive\",\"olivedrab\",\"orange\",\"orangered\",\"orchid\",\"palegoldenrod\",\"palegreen\",\"paleturquoise\",\"palevioletred\",\"papayawhip\",\"peachpuff\",\"peru\",\"pink\",\"plum\",\"powderblue\",\"purple\",\"rebeccapurple\",\"red\",\"rosybrown\",\"royalblue\",\"saddlebrown\",\"salmon\",\"sandybrown\",\"seagreen\",\"seashell\",\"sienna\",\"silver\",\"skyblue\",\"slateblue\",\"slategray\",\"slategrey\",\"snow\",\"springgreen\",\"steelblue\",\"tan\",\"teal\",\"thistle\",\"tomato\",\"turquoise\",\"violet\",\"wheat\",\"white\",\"whitesmoke\",\"yellow\",\"yellowgreen\"]),GO=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\\()/i,YO=/gradient\\(|url\\(|image-set\\(|var\\(/i,XO=new Set([\"transparent\",\"currentColor\",\"currentcolor\"]),Gr=t=>{if(!S(t))return!1;let e=t.trim();return YO.test(e)?!1:GO.test(e)?!0:hS.has(e)||XO.has(e)},jf=new Set,uS=t=>{if(!t)return!1;let{color:e,gradient:r}=t;return!!(v(e)&&Object.keys(e).length||v(r)&&Object.keys(r).length)},dS=new Set,Fm=0,Vn=t=>{Fm++;try{return t()}finally{Fm--}},ZO=(t,e)=>{if(!S(t)||t.indexOf(\" \")===-1)return null;let r=t.replace(/\\s+/g,\"\"),n=jt(r);if(!n||n.passthrough||n.cssVar)return null;let{color:o,gradient:s}=e;return!o[n.name]&&!s[n.name]?null:r},Nm=(t,e,r)=>{let n=ZO(t,r);if(n){if(!dS.has(t)){dS.add(t);let i=r&&r.name?` (design system \\`${r.name}\\`)`:\"\";console.warn(`[scratch] color token \\`${t}\\` has a space before its alpha/tone modifier${i} \\u2014 did you mean \\`${n}\\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let o=jt(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&uS(r)&&!r.color[o.name]&&!r.gradient[o.name]){if(!Fm&&!jf.has(t)){jf.add(t);let i=r&&r.name?` (design system \\`${r.name}\\`)`:\"\";console.warn(`[scratch] color token \\`${t}\\` does not resolve${i} \\u2014 \\`${o.name}\\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=S(e)?e.toLowerCase():\"\";if(!hS.has(s)||!uS(r))return t;if(!jf.has(s)){jf.add(s);let i=r&&r.name?` (design system \\`${r.name}\\`)`:\"\";console.warn(`[scratch] color \\`${t}\\` is a CSS named colour that is not in the palette${i}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable (\"looks designed\", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},gS=(t,e,r)=>{let n=e!==void 0?e:1;if(!r)return`rgb(from ${t} r g b / ${n})`;if(r.charCodeAt(0)===43||r.charCodeAt(0)===45){let s=parseFloat(r),i=s<0?\"-\":\"+\",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${n})`}return`hsl(from ${t} h s ${r}% / ${n})`},tt=(t,e,r)=>{let n=r||T();if(!S(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(bt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(R(t))[o,s,i]=t;else{let u=jt(t);if(!u){let{color:d,gradient:h}=n,p=h[t]||d[t];return p?(e&&p[e]&&(p=p[e]),n.useVariable?`var(${p.var})`:p.value):Nm(t,t,n)}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 Nm(t,o,n);if(e)if(l[e]!==void 0)l=l[e];else if(R(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u===\"dark\"?l=l[1]!==void 0?l[1]:l[0]:(u!==\"light\"&&n.verbose&&console.warn(t,\" - array-form color tokens only support light/dark; falling back to the light slot for scheme\",e),l=l[0])}else n.verbose&&console.warn(t,\" - does not have \",e);if(S(l)){if(Ce.has(o))return l;Ce.add(o);try{return tt(l,null,r)}finally{Ce.delete(o)}}let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?gS(u,s,i):u}return i&&!l[i]&&(f=er(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:n.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},pS=t=>{let e=ke(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!==\"transparent\"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},JO=(t,e)=>{if(!e)return t;let r=t.rgb;if(e.tone){let o=er(r,e.tone);r=S(o)?o.split(\",\").map(s=>parseFloat(s.trim())):o}let n=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:r,alpha:n}},zn=(t,e,r)=>{let n=e||T();if(!S(t))return null;let o=jt(t);if(o){if(o.passthrough){let d=ke(o.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(o.cssVar)return null}let s=o?o.name:t,{color:i,gradient:a}=n,c=i[s]||a[s];if(!c)return pS(t);if(S(c)){let d;if(Ce.has(s))d=pS(c);else{Ce.add(s);try{d=zn(c,n,r)}finally{Ce.delete(s)}}return d?JO(d,o):null}if(c.rgb===void 0&&v(c)){let d=`@${r||\"light\"}`;c=c[d]!==void 0?c[d]:c[\"@light\"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;o&&o.tone&&(l=er(l,o.tone));let f=S(l)?l.split(\",\").map(d=>parseFloat(d.trim())):l,u=o&&o.alpha!==void 0?parseFloat(o.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},mS=t=>v(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),yS=t=>{if(!v(t)||t.value!==void 0)return null;let e=[];for(let r in t)if(r!==\"var\"){if(r.charCodeAt(0)!==64||!mS(t[r]))return null;e.push(r.slice(1))}return e.length?e:null},QO=t=>S(t&&t.var)&&yS(t)!==null,tR=(t,e,r,n,o)=>{let s=yS(e);if(!s)return;if(S(e.var)){let c=`var(${e.var})`;return r||n?gS(c,r,n):c}if(s.length!==2||!s.includes(\"light\")||!s.includes(\"dark\"))return;let i=tt(t,\"@light\",o),a=tt(t,\"@dark\",o);if(!(!Gr(i)||!Gr(a)))return i===a?i:`light-dark(${i}, ${a})`},Lt=(t,e,r)=>{let n=r||T();if(e||(e=n.globalTheme===\"auto\"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(bt(t))return`var(${t})`;let o,s,i;if(R(t))o=t[0];else{let u=jt(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=v(l);if(f&&l.value)return tt(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?tt(t,null,r):`var(${l.var})`;if(e){if(!n.useVariable&&a[o]===l){let u=tR(t,l,s,i,r);if(u!==void 0)return u}return tt(t,`@${e}`,r)}else{let u={},d=Xr(n);for(let h in l){if(h.charCodeAt(0)!==64)continue;let p=h.slice(1),g=tt(t,h,r);if(g!==void 0&&(u[`[data-theme=\"${p}\"] &`]=g,p===\"light\"||p===\"dark\")){let m=Yr(p,n);if(!m)continue;u[m]={[d]:g}}}return u}}else return Nm(t,o,n)},Zr=(t,e,r,n)=>{let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}${e}-${r}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!=\"string\"||(a[l]=u,(l===\"light\"||i===void 0)&&(i=u))}if(i!==void 0){n.cssVars[s]=i,n.cssMediaVars||(n.cssMediaVars={});for(let c in a){let l=`[data-theme=\"${c}\"]`;if(n.cssMediaVars[l]||(n.cssMediaVars[l]={}),n.cssMediaVars[l][s]=a[c],c===\"light\"||c===\"dark\"){let f=`@media (prefers-color-scheme: ${c})`;n.cssMediaVars[f]||(n.cssMediaVars[f]={}),n.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},Kr=(t,e,r)=>{let n=T();if(mS(t))return n.useVariable&&t.var&&(n.cssVars[t.var]=t.value),t;if(!n.useVariable&&QO(t))return t;if(S(t)&&bt(t)){let g=t.slice(2);if(t=tt(g),!(t.includes(\"rgb\")||t.includes(\"var\")||t.includes(\"#\"))){let m=g.split(\" \"),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(S(y)||R(y)||v(y))&&!Ce.has(m[0])){Ce.add(m[0]);try{n.color[m[0]]=Kr(y,m[0])}finally{Ce.delete(m[0])}y=n.color[m[0]]}if(y&&y.value){let x=y.rgb,b=m[1]!==void 0?m[1]:\"1\",_=m[2];_&&(x=er(x,_)),t=`rgba(${x}, ${b})`}else{let x=m[2],b=m[1]!==void 0?m[1]:\"1\";if(x)try{let _=ke(m[0]);_&&_.length>=3?t=`rgba(${er(_.slice(0,3).join(\", \"),x)}, ${b})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(R(t)&&(t={\"@light\":t[0],\"@dark\":t[1]!==void 0?t[1]:t[0]}),v(t)){let g={};for(let m in t)m!==\"var\"&&(g[m]=Kr(t[m],e,m.slice(0,1)===\"@\"?m.slice(1):m));return n.useVariable&&Zr(g,\"color\",e,n),g}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${e}`+(r?`-${r}`:\"\"),i=t.value||t;if(S(i)&&!i.includes(\"(\")&&!i.startsWith(\"#\")){let g=jt(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];if(m&&!m.value&&!m.rgb&&(S(m)||R(m)||v(m))&&!Ce.has(g.name)){Ce.add(g.name);try{n.color[g.name]=Kr(m,g.name)}finally{Ce.delete(g.name)}}let y=n.color[g.name];if(y&&y.rgb){let x=y.rgb;g.tone&&(x=er(x,g.tone));let b=g.alpha!==void 0?parseFloat(g.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${x}, ${b})`}}}let a=ke(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),h=`${c}, ${l}, ${f}`,p=`rgba(${h}, ${d})`;return n.useVariable&&(n.cssVars[s]=p),{var:s,rgb:h,alpha:d,value:p}},Jo=(t,e,r)=>{let n=T();if(v(t)&&t.value!==void 0&&t.var!==void 0)return n.useVariable&&(n.cssVars[t.var]=t.value),t;if(S(t)&&bt(t)&&(t=tt(t.slice(2))),R(t)&&(t={\"@light\":t[0],\"@dark\":t[1]!==void 0?t[1]:t[0]}),v(t)){let i={};for(let a in t)a!==\"var\"&&(i[a]=Jo(t[a],e,a.slice(0,1)===\"@\"?a.slice(1):a));return n.useVariable&&Zr(i,\"gradient\",e,n),i}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}gradient-${e}`+(r?`-${r}`:\"\");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};P();var Uf=(t,e,r={},n)=>{let o=n||T(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=r,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!==\"auto\"?o.globalTheme:\"light\"),d=S(e)?e:String(e),h=jt(t),p=h&&!h.passthrough&&!h.cssVar?h.name:null,g=(X,Y)=>c?{value:X,...Y}:X;if(p){let X=o.color[`${p}Safe`];if(X){let Y=`${d}@${u}`,V=X[Y]!==void 0?X[Y]:X[d];if(V!==void 0){let Tt=V&&V.rgb!==void 0?o.useVariable&&V.var?`var(${V.var})`:V.value:tt(V,null,o);return g(Tt,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=tt(t,u?`@${u}`:null,o),y=zn(t,o,u),x=zn(e,o,u);if(!y||!x)return o.verbose&&console.warn(\"getSafeInk: could not resolve\",t,e,\"\\u2014 returning hue unchanged\"),g(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let b=Fn(x.rgb,x.alpha),_=Fn(y.rgb,y.alpha,b),w=Wo(_,b);if(w>=f-.02)return g(m,{ratio:w,deviation:0,derived:!1,overridden:!1});let[k,E,D]=_a(y.rgb),[,F,A]=xa([k,E,D]),N=$n(b)>.5,At=N?k:1-k,Vt=X=>{let Y=N?k-X:k+X,V=Math.max(0,Math.min(1,Y));return{rgb:wa(V,F,A),L:V}},kt=X=>{let{rgb:Y}=Vt(X),V=Fn(Y.map(Tt=>Math.round(Tt)),y.alpha,b);return Wo(V,b)},it=0,M=At,H=kt(M)>=f;if(H)for(let X=0;X<l;X++){let Y=(it+M)/2;kt(Y)>=f?M=Y:it=Y}else it=M;let{rgb:gt,L:B}=Vt(M),ht=gt.map(X=>Math.round(X)),$=kt(M),q=y.alpha<1?`rgba(${ht.join(\", \")}, ${y.alpha})`:`rgb(${ht.join(\", \")})`,mt=Math.abs(B-k)*100;return g(q,{rgb:ht,ratio:$,startRatio:w,deviation:mt,derived:!0,overridden:!1,reachable:H})},jm=(t,e,r={},n)=>Uf(t,e,{...r,meta:!0},n);P();P();var eR=t=>{let r=T().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Qt(o),o},rR=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;yt(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Qt(r),Wr(t,e)}},Fa=t=>{let e=t.toLowerCase(),r=e.includes(\"width\")||e.includes(\"height\"),n=e.includes(\"border\")||e.includes(\"outline\");return r&&!n},Na=()=>{let t=T(),{spacing:e}=t;Qt(e),xr(e),rR(e)},nR=t=>{let e=T(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Qt(t)},Ct=(t,e=\"padding\",r,n)=>{let o=nR(r);if(S(t)){if(!n&&/^(?:env|var)\\(/.test(t.trim()))return{[e]:t};if(!n&&t.includes(\"(\")){let i=_r(t);n=i[0],t=i[1]}}let s=n?[t]:S(t)&&t.includes(\"(\")?ft(t):Ln(t);if(R(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)=>nr(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return nr(t,e,o,n)}},Ee=(t,e,r,n)=>{let o=T(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&/^(?:env|var)\\(/.test(i.trim()))return{[e]:i};if(!n&&S(i)&&i.includes(\"(\")){let a=_r(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=eR(t);return Ct(i,e,a,n)}return Ct(i,e,s,n)},ja=t=>{let e=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=xo.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+\"_default\":r};return t.split(\",\").map(r=>r.trim()).map(e).join(\",\").split(\" \").map(e).join(\" \")};P();var Hn=(t,e,r)=>!S(t)||ce.test(t)?t:yr(t).map(n=>(n=n.trim(),n.split(/\\s+/).map(o=>{if(o=o.trim(),!o)return\"\";if(o.startsWith(\"--\"))return`var(${o})`;let s=Vn(()=>tt(o,e));if(Fe(s))return s;if(/^\\d/.test(o)||o===\"0\"||o.includes(\"px\")||o.slice(-2)===\"em\"||o===\"inset\"||o===\"none\"||Mn.has(o.toLowerCase()))return o;r&&r(o);let i=Ct(o,\"shadow\");return i&&i.shadow?i.shadow:o}).join(\" \"))).join(\", \"),Jr=(t,e,r,n)=>{let o=T();if(v(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(R(t)){let a={\"@light\":Jr(t[0],e,\"light\"),\"@dark\":Jr(t[1],e,\"dark\")};return o.useVariable&&Zr(a,\"shadow\",e,o),a}if(v(t)){let a={};for(let c in t)a[c]=Jr(t[c],e,c.startsWith(\"@\")?c.slice(1):c);return o.useVariable&&Zr(a,\"shadow\",e,o),a}S(t)&&!ce.test(t)&&(t=Hn(t));let i=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}shadow-${e}`+(r?`-${r}`:\"\");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Ba=(t,e)=>{let r=T();if(e||(e=r.globalTheme===\"auto\"?null:r.globalTheme),!S(t)){r.verbose&&console.warn(t,\"- type for color is not valid\");return}if(bt(t))return`var(${t})`;let[n]=R(t)?t:t.split(\" \"),s=r.shadow[n],i=v(s);if(!s)return r.verbose&&console.warn(\"Can't find color \",n),t;if(i&&!s.value&&r.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s[\"@\"+e]||s[e];if(a)return a.value!==void 0?a.value:a;r.verbose&&console.warn(t,\" - does not have \",e)}if(i&&s.value)return s.value;if(i){let a={},c=Xr(r);for(let l in s){if(l.charCodeAt(0)!==64)continue;let f=l.slice(1),u=s[l],d=u&&(u.value!==void 0?u.value:u);if(d!==void 0&&(a[`[data-theme=\"${f}\"] &`]=d,f===\"light\"||f===\"dark\")){let h=Yr(f,r);if(!h)continue;a[h]={[c]:d}}}return a}return r.verbose&&console.warn(\"Can't find color\",t),t};var oR=new Set([\"none\",\"hidden\",\"dotted\",\"dashed\",\"solid\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\"]),sR=t=>oR.has(t),ue=(t,e,r)=>{if(t==null)return;let n=t+\"\";if(ce.test(n))return n;let o=n.trim();return o===\"none\"||o===\"0\"||o===\"initial\"||o===\"inherit\"||o===\"unset\"?n:n.split(/\\s+/).map(s=>{if(s=s.trim(),!s)return\"\";if(bt(s))return`var(${s})`;if(sR(s)||/^\\d/.test(s)||s===\"0\")return s;let i=Vn(()=>tt(s,e));if(Fe(i))return i;if(Mn.has(s.toLowerCase()))return s;r&&r(s);let a=Ct(s,\"border\");return a&&a.border?a.border:s}).join(\" \")};P();var iR=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\"]),bS=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],SS=t=>{for(let e=0;e<bS.length;e++)if(t.includes(bS[e]))return!0;return!1},aR={boxShadow:Hn,textShadow:Hn,border:ue,borderTop:ue,borderRight:ue,borderBottom:ue,borderLeft:ue,outline:ue,columnRule:ue},cR=t=>{if(!t)return!1;let e=jt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},_S=new Set,lR=(t,e,r,n,o,s)=>{if(!pt())return;let i=`${t}::${e}::${r||\"\"}::${n}`;_S.has(i)||(_S.add(i),console.warn(`[smbls/scratch] theme param \"${e}\" on \"${t}\"`+(r?` (${r})`:\"\")+` did not fully resolve: \"${n}\" -> \"${o}\" still contains the unresolved token \"${s}\". This is not valid CSS \\u2014 the browser will drop the whole declaration. Register \"${s}\" as a design-system color token or fix the typo.`))},Vm=(t,e,r,n)=>{let o=aR[e];if(!o)return tt(r,n);let s=null,i=o(r,n,a=>{!s&&cR(a)&&(s=a)});return s&&lR(t,e,n,r,i,s),i},zm=(t,e)=>Ae(t,e),fR=t=>v(t)&&j(t.value),uR=t=>{for(let e in t){let r=t[e];if(S(r)&&r.startsWith(\"var(--\"))return!0}return!1},Va=(t,e)=>{let r=T();return fR(t)?!r.useVariable&&uR(t)?t:Qo(t.value,e):Qo(t,e)},kS=(t,e)=>{let r=new Set;for(let n of e){let o=n.slice(0,1);if(!(o===\"@\"||o===\".\"||o===\":\")&&SS(n))for(let s in t){if(r.has(s))continue;let i=t[s]?.[n];if(i===void 0)continue;let a=tt(i,`@${s}`);a!==void 0&&S(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!iR.has(a)&&r.add(s)}}return r},dR=t=>t.startsWith(\"[data-theme=\")||t.startsWith(\"@media\"),Ua=(t,e)=>{for(let r in e){let n=e[r];v(n)?Ua(t[r]||(t[r]={}),n):t[r]=n}return t},xS=(t,e,r,n)=>{if(Ua(t,{[`[data-theme=\"${e}\"] &`]:r}),e!==\"light\"&&e!==\"dark\")return;let o=Yr(e,n);o&&Ua(t,{[o]:{[Xr(n)]:r}})},vS=(t,e,r,n)=>{let o=r.globalTheme!==void 0?r.globalTheme:\"auto\",s=o&&o!==\"auto\"?String(o).replace(/^'|'$/g,\"\"):null,i=new Set(n?Object.keys(n):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=kS(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f===\"@\")continue;if(f===\".\"||f===\":\"){let y={};for(let _ in t)j(t[_]?.[l])&&(y[_]=t[_][l]);let x=n&&j(n[l])?n[l]:void 0;if(!Object.keys(y).length&&!x)continue;let b=f===\".\"?l.slice(1):l.replace(/^:+/,\"\");c[l]=vS(y,`${e}-${b}`,r,x);continue}let u=n&&!j(n[l])?n[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add(\"light\"),d.add(\"dark\"),s&&d.add(s));let h={},p;for(let y of d){if(a.has(y))continue;let x=t[y]?.[l];if((x===void 0||j(x))&&(x=u),x===void 0)continue;let b=Vm(e,l,x,`@${y}`);b!==void 0&&(h[y]=b,(s&&y===s||!s&&(y===\"light\"||p===void 0))&&(p=b))}let g={},m=Object.keys(h).filter(y=>h[y]!==p);if(m.length){let y=h.light!==void 0?h.light:p,x=h.dark!==void 0?h.dark:p;if(SS(l)&&Gr(y)&&Gr(x)){g[l]=y===x?y:`light-dark(${y}, ${x})`;for(let b in h)b===\"light\"||b===\"dark\"||xS(g,b,{[l]:h[b]},r)}else{p!==void 0&&(g[l]=p);for(let b of m)xS(g,b,{[l]:h[b]},r)}}else{if(p===void 0)continue;g[l]=p}Ua(c,g),c[`.${l}`]=g}return(c.background||c.color||c.backgroundColor)&&(c[\".inversed\"]={color:c.background||c.backgroundColor,background:c.color}),c},Bm=(t,e,r,n)=>{let{cssVars:o}=r;r.cssMediaVars||(r.cssMediaVars={});let s=r.cssMediaVars,i=r.globalTheme!==void 0?r.globalTheme:\"auto\",a=i&&i!==\"auto\"?String(i).replace(/^'|'$/g,\"\"):null,c={},l=new Set(n?Object.keys(n):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=kS(t,l);for(let u of l){let d=u.slice(0,1),h=j(n?.[u])||Object.values(t).some(p=>j(p?.[u]));if(d===\".\"&&h){let p=u.slice(1),g={};for(let y in t)j(t[y]?.[u])&&(g[y]=t[y][u]);let m=j(n?.[u])?n[u]:void 0;c[u]=Bm(g,`${e}-${p}`,r,m)}else if(d===\":\"&&h){let p=u.replace(/^:+/,\"\"),g={};for(let y in t)j(t[y]?.[u])&&(g[y]=t[y][u]);let m=j(n?.[u])?n[u]:void 0;c[u]=Bm(g,`${e}-${p}`,r,m)}else if(d!==\"@\"&&d!==\".\"&&d!==\":\"){let g=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${e}-${u}`,m=n&&!j(n[u])?n[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add(\"light\"),y.add(\"dark\"),a&&y.add(a));let x,b=!1;for(let _ of y){if(f.has(_))continue;let w=t[_]?.[u];if((w===void 0||j(w))&&(w=m),w===void 0)continue;let k=Vm(e,u,w,`@${_}`);if(k===void 0)continue;b=!0,(a&&_===a||!a&&(_===\"light\"||x===void 0))&&(x=k);let E=`[data-theme=\"${_}\"]`;if(s[E]||(s[E]={}),s[E][g]=k,_===\"dark\"||_===\"light\"){let D=`@media (prefers-color-scheme: ${_})`;s[D]||(s[D]={}),s[D][g]=k}}if(x!==void 0&&(o[g]=x),!b)continue;c[u]=`var(${g})`,c[`.${u}`]={[u]:c[u]}}}return(c.background||c.color||c.backgroundColor)&&(c[\".inversed\"]={color:c.background||c.backgroundColor,background:c.color}),c},Qo=(t,e,r,n)=>{let o=T(),{cssVars:s}=o,i={value:t},a=!r&&!n,c,l;if(j(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith(\"@\")?j(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=Bm(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith(\"@\")?j(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=vS(f,e,o,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u===\"@\"||u===\":\"||u===\".\"){let h=u===\"@\"&&f;i[f]=Qo(d,e,f,n||h)}else if(!a){let h=Vm(e,f,d,n),p=[...new Set([n,r].filter(x=>x).map(x=>x.slice(1)))],g=p.length?\"-\"+p.join(\"-\"):\"\",y=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${e}${g}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[y]=h),i[f]=`var(${y})`):i[f]=h,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u===\".\"||u===\":\")&&j(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u===\".\"||u===\":\")&&j(t[f])&&(i[f]=l[f])}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&&bt(t)){let u=o.theme[t.slice(2)];return Ae(u,n)}return i},Um=(t,e)=>{let r={};for(let n in t){let o=n.slice(0,1);if(j(t[n]))if(e&&dR(n))r[n]=Ua({},t[n]);else{if(o===\"@\")continue;o===\":\"?r[`&${n}`]=Um(t[n],e):o===\".\"&&(r[`&${n}`]=Um(t[n],e))}else r[n]=t[n]}return r},CS=(t,e)=>{let r=e.shift();return t[r]?CS(t[r],e):t},wS=(t,e)=>R(e)?CS(t,e):S(e)&&t[e]?t[e]:t;var Ae=(t,e)=>{let r=T();if(S(t)&&bt(t)&&(t=Ae(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=R(t)?t:t.split(\" \"),s=r.theme[n];return s&&o.length?s=wS(s,o):s&&e&&(s=wS(s,e)),Um(s,!r.useVariable)};P();P();var za=(t,e)=>{let r=T(),n=`--font-${e}`;if(!t||R(t)&&!t[0])return;let o;if(t.isVariable){let s=ve(t.url,r.files)||t.url;qo(s)?o=Ko(s):o=Hr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\",unicodeRange:t.unicodeRange})}else if(t[0])o=jn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>ve(i,r.files)||i):ve(t.url,r.files)||t.url;o=Hr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:n,value:t,fontFace:o}},Ha=(t,e)=>{let r=T(),{fontFamily:n}=r;return Nn(e||n,t)},ts=(t,e)=>{let r=T(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!n.default)&&(n.default=e),v(s)&&(s=Ln(s));let a=`--font-family-${e}`,c=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i,isSystemFallback:!!t.isSystemFallback}};P();var Vf=t=>{let e=T(),{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:d,subSequence:h,h1Matches:p,unit:g}=t;yt(i,{type:l,base:f,ratio:u,range:d,subSequence:h,h1Matches:p,unit:g});let m=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),y=i.unit||g,x=!i.unit&&m.has(g)?\"rem\":y,b=n[c],_=\"@media \"+(b===\"print\"?`${b}`:`screen and ${b}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+x},!a){yt(i,{sequence:{},scales:{},vars:{}}),Qt(i),Wr(t,o);continue}yt(i,{sequence:{},scales:{},templates:{},vars:{}}),Qt(i),Wr(t,o)}},zf=t=>{let e=T();if(t.h1Matches){let r=t.unit,n=Ia(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}}}},Wa=()=>{let t=T(),{typography:e}=t;Qt(e),zf(e),xr(e),Vf(e)},qa=t=>{let e=T(),{typography:r}=e;return nr(t,\"fontSize\",r)};P();var Ka=t=>{if(!S(t))return;let r=T().shape;if(r)return r[t]!==void 0?r[t]:r[t.toLowerCase()]};P();var Ga=()=>{let t=T(),{timing:e}=t;Qt(e),xr(e)},Te=t=>{let e=T(),{timing:r}=e;return r[t]||r[ga(t)]||t},de=(t,e=\"timing\")=>{let r=T(),{timing:n}=r;return nr(t,e,n)};P();var Ya=()=>{let t=T(),{fontFamily:e,theme:r,typography:n}=t,o=t.document;return ur(o)?(Ir(t,\"document\",o),o=t.document={}):o||(o=t.document={}),yt(o,{theme:r.document,fontFamily:Nn(e),fontSize:n.base,lineHeight:n.lineHeight})};P();var qm={document:et},ES=new WeakMap,AS=new WeakMap,pR=128,TS=1048576,Hm=8192,Km=t=>t.nodeType===1&&t.localName===\"symbol\"&&t.getAttribute(\"id\"),PS=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),hR=(t,e)=>{let r=1,n=t.ownerDocument;if(n&&typeof n.createTreeWalker==\"function\"){let s=n.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++r>e)return r;return r}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++r>e)return r;o.push(s[i])}}return r},Wm=(t,e)=>{if(typeof t.importNode==\"function\")return t.importNode(e,!0);let r=e.cloneNode(!0);return typeof t.adoptNode==\"function\"?t.adoptNode(r):r},gR=(t,e)=>{if(typeof t.prepend==\"function\")return t.prepend(e);let r=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore==\"function\"?t.insertBefore(e,r||null):t.appendChild(e)},es=(t,e)=>{let r=T();if(!t){r.verbose&&console.warn(\"setSVG: val is not defined\",e);return}return r.useSvgSprite?Ma(e,t):t},Xa=(t,e=qm)=>{let r=T(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];IS(n,e)},Wn=(t,e)=>{let r=T();return r.useIconSprite&&!r.semanticIcons?.[e]?es(t,e):t},qn=(t,e=qm)=>{let r=T(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];IS(n,e)},DS=(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},mR=(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},yR=(t,e,r)=>{let n=String(r),o=AS.get(e),s=o?.entries.get(n);if(s)return o.entries.delete(n),o.entries.set(n,s),s.root;let i=mR(t,n);if(i||(i=DS(t,{isRoot:!1}),i.innerHTML=n),n.length>TS)return i;let a=hR(i,Hm);if(a>Hm)return i;for(o||(o={entries:new Map,units:0,nodes:0},AS.set(e,o));o.entries.size>=pR||o.units+n.length>TS||o.nodes+a>Hm;){let c=o.entries.keys().next().value,l=o.entries.get(c);o.units-=c.length,o.nodes-=l.nodes,o.entries.delete(c)}return o.entries.set(n,{root:i,nodes:a}),o.units+=n.length,o.nodes+=a,i},OS=t=>{let e=new Map;for(let r of t.children){let n=Km(r);if(!n)continue;let o=e.get(n)||[];o.push(r),e.set(n,o)}return e},bR=t=>t.replace(/[\"\\\\\\u0000-\\u001f\\u007f]/g,e=>`\\\\${e.charCodeAt(0).toString(16)} `),RS=(t,e,r,n)=>{let o=0,s=e.childElementCount>8?OS(r):null,i=a=>{if(!s)try{return[...r.querySelectorAll(`symbol[id=\"${bR(a)}\"]`)].filter(c=>c.parentNode===r)}catch{s=OS(r)}return s.get(a)};for(let a of e.childNodes){if(PS(a))continue;let c=Km(a);if(!c&&n){let u=o++,d=n.nodes[u];if(!d&&n.complete||d?.parentNode===r)continue;let h=Wm(t,d||a);r.appendChild(h),n.nodes[u]=h;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=Wm(t,a),r.appendChild(f);else if(!f.isEqualNode(a)){let u=Wm(t,a);r.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},IS=(t,e=qm)=>{let r=T(),n=e.document||et;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),$a(t);let o=n.querySelector(\"#svgSprite\"),s=\"\";for(let d in t)s+=t[d];let i=o||DS(n);if(!i||!i.nodeType)return;let a=d=>yR(n,i,d),c=a(s),l=ES.get(i);l||ES.set(i,l=new WeakMap);let f=l.get(r);if(f||l.set(r,f=new Map),[...c.childNodes].some(d=>!PS(d)&&!Km(d))){let d=[];for(let h in t)d.push(h);for(let h of d){let p=f.get(h);p||f.set(h,p={nodes:[],complete:!1}),RS(n,d.length===1?c:a(t[h]),i,p),p.complete=!0}}else{RS(n,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||gR(n.body,i);for(let d in t)r.__svgCache[d]=!0};P();var Za=(t={})=>{let e=T(),r=e.typography||{},n=e.document||{},o=v(e.reset)?e.reset:e.reset={};if(o[\":root\"]){let c=o,l=r.templates||{};c.body={...e.useDocumentTheme?Ae(\"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}=r.templates||{},a=e.useDocumentTheme?Ae(\"document\"):{};if(o.html&&Wt(o.html,a),r.unit)for(let c in i){if(c.slice(0,6)!==\"@media\")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(o[c]||(o[c]={}),o[c].html||(o[c].html={}),o[c].html.fontSize===void 0&&(o[c].html.fontSize=l.fontSize))}if(r.unit){let c=e.media||{};for(let l in r){if(l.charAt(0)!==\"@\")continue;let f=r[l];if(!f||f.unit===r.unit||!f.unit)continue;let u=f.unit,d=f.base||r.base,h=f.browserDefault||r.browserDefault,p=l.slice(1),g=c[p];if(!g)continue;let m=\"@media \"+(g===\"print\"?g:\"screen and \"+g);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/h+u}}return nt(yt(o,t),{html:{position:\"absolute\",width:\"100%\",height:\"100%\",top:\"0\",left:\"0\",margin:\"0\",WebkitFontSmoothing:\"subpixel-antialiased\",textSizeAdjust:\"100%\",WebkitTextSizeAdjust:\"100%\",...a,fontSize:r.unit?r.base/r.browserDefault+r.unit:r.browserDefault+\"px\",fontFamily:n.fontFamily,lineHeight:n.lineHeight},body:{boxSizing:\"border-box\",height:\"100%\",margin:0,fontFamily:n.fontFamily,fontSize:r.unit?\"1\"+e.unit.default:r.base/r.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}},fe)};P();var _R=new Set([\"fallback\"]),Gm=new Set,LS=(t,e)=>{Gm.has(t)||(Gm.add(t),pt()&&console.warn(e))},Ym=()=>{Gm.clear()},$S=t=>{for(let e in t)delete t[e];return t},Ja=()=>{let t=T(),e=v(t.cssSkinVars)?$S(t.cssSkinVars):t.cssSkinVars={},r=v(t.cssSkinFallback)?$S(t.cssSkinFallback):t.cssSkinFallback={},n=t.skins;if(!v(n))return e;let o=t.varPrefix?t.varPrefix+\"-\":\"\",s=t.color||{},i=t.cssVars||{},a=c=>S(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in n){let l=n[c];if(!v(l))continue;let f={};for(let u in l){if(_R.has(u))continue;let d=l[u];if(v(d))for(let h in d){let p=`--${o}theme-${u}-${h}`;t.useVariable!==!1&&!(p in i)&&LS(`${c}/${u}/${h}`,`[scratch] skin \"${c}\" rewrites theme \"${u}\" param \"${h}\", which the theme does not declare \\u2014 no element reads ${p}, so the skin changes nothing there. Declare \"${h}\" on the \"${u}\" theme (its no-skin value).`),f[p]=a(d[h])}}e[c]=f,S(l.fallback)&&(r[c]=l.fallback)}for(let c in r){let l=r[c];e[l]||(LS(`${c}/fallback/${l}`,`[scratch] skin \"${c}\" falls back to \"${l}\", which is not a declared skin \\u2014 the reduced-transparency fallback is skipped.`),delete r[c])}return e},MS=(t,e)=>{let r=`[data-skin=\"${t}\"]`;return!e||e===\":root\"?`:root${r}, ${r}`:`${e}${r}, ${r} ${e}, ${e} ${r}`},Kn=(t,e,r)=>{let n={};if(!v(t))return n;for(let s in t)n[MS(s,r)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[MS(s,r)]=i)}return Object.keys(o).length&&(n[\"@media (prefers-reduced-transparency: reduce)\"]=o),n};P();var xR=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),FS=/^-?[A-Z][0-9]?$/,or=t=>ue(t),Hf=t=>{if(S(t))return ce.test(t)?t:t.split(/\\s+/).map(e=>{if(e=e.trim(),!e)return\"\";if(bt(e))return`var(${e})`;if(/^\\d/.test(e)||e.includes(\"px\")||e===\"0\")return e;let r=tt(e);return Fe(r)?r:e}).join(\" \")},Wf=(t,e)=>Ba(t,e),Qa=(t,e)=>{if(S(t))return ce.test(t)?t:yr(t).map(r=>(r=r.trim(),r?r.split(/\\s+/).map(n=>{if(n=n.trim(),!n)return\"\";if(bt(n))return`var(${n})`;if(n===\"inset\"||n===\"none\")return n;let o=tt(n);if(Fe(o)){let i=Lt(n,e);return v(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=Ct(n,\"shadow\");return s&&s.shadow?s.shadow:n}).join(\" \"):\"\")).join(\", \")},tc=(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=yr(o).map(c=>(c=c.trim(),c.split(/\\s+/).map(f=>{if(!f||/^\\d/.test(f)||f===\"0\"||xR.has(f)||f===\"transparent\"||ce.test(f))return f;let u=tt(f);return Fe(u)?u:f}).join(\" \")));return n+a.join(\", \")+s},qf=(t,e)=>{if(!S(t))return;let r=T();return yr(t).map(n=>{let o=n.trim();if(bt(o))return`var(${o})`;if(/^var\\(/.test(o)||o.includes(\"url\"))return o;if(r.gradient?.[o]){let s=Lt(o,e);if(S(s))return s;if(v(s)){for(let i in s)if(S(s[i]))return s[i]}return o}return o.includes(\"gradient\")?tc(o,e):o.includes(\"/\")||o.startsWith(\"http\")||o.includes(\".\")&&!jt(o)?`url(${o})`:o}).join(\", \")},Kf=t=>S(t)&&ft(t).map(e=>Ct(e,\"gap\").gap).join(\" \"),Gf=t=>{if(!S(t))return t;let e=T();return ft(t).map(r=>FS.test(r)?Un(r,e.spacing):r).join(\" \")},Xm=t=>{if(!S(t))return;let e=t.split(\" \");return e.length?e.map(r=>bt(r)?`var(${r})`:r.length<3||r.includes(\"ms\")?de(r).timing||r:Te(r)?Te(r):r).join(\" \"):t},ec=(t,e,r)=>{if(S(t))return t.split(\",\").map(n=>de(n).timing||n).join(\",\")},Yf=t=>{if(!S(t))return;let e=t.split(\",\");if(e.length)return e.map(Xm).join(\",\")};function St(t,e,r={},n={}){let o=lt.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(/^(?:env|var)\\(/.test(o.trim()))return{[t]:o};if(o.includes(\"(\")){let c=_r(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Fa(t);!i&&a&&!n.ratio&&(o=ja(o))}return n.ratio?Ee(r,t,o,s):Ct(o,t,void 0,s)}var I=(t,e=null,r)=>St(t,e,r,{ratio:!0}),wR=(t,e,r)=>S(t)?ft(t).map(n=>FS.test(n)?Ee(e,r,n)[r]:n).join(\" \"):t,wr=(t,e,r,n=\"borderRadius\")=>{if(S(t))return{[n]:ft(t).map(o=>{let s=Ka(o);return s!==void 0?wR(s,e,r):Ee(e,r,o)[r]}).join(\" \")}};P();var ns=\"__smblsThemeRootOwner\",os=t=>{let e=t&&t.__prefersListener,r=t&&t.__prefersMq;if(e&&r)try{typeof r.removeEventListener==\"function\"?r.removeEventListener(\"change\",e):typeof r.removeListener==\"function\"&&r.removeListener(e)}catch{try{r.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},NS=(t,e,r)=>{if(!(!t||!e)){os(t),t.__prefersListener=r,t.__prefersMq=e;try{e.addEventListener(\"change\",r)}catch{e.addListener(r)}}},SR=(t,e)=>{let r=T(),{cssVars:n}=r,o=e.startsWith(\"--\")?e:`--${e}`;return n[o]=t,t},Kt=t=>t,Xf={color:Kr,gradient:Jo,font:za,fontFamily:ts,fontfamily:ts,theme:Va,icons:Wn,semanticIcons:Kt,semanticicons:Kt,svg:es,svgData:Kt,typography:Kt,shadow:Jr,spacing:Kt,media:Kt,grid:Kt,class:Kt,timing:Kt,reset:Kt,unit:Kt,animation:Kt,vars:SR,sizes:Kt,shape:Kt,skins:Kt},kR=(t,e,r,n)=>{Ir(t,r,e);let o={};for(let s of n)t[s]===e&&(t[s]=o);return t.verbose&&console.warn(\"[scratch] design-system family\",r,\"resolved to a host object; parked it and allocated a plain bucket\"),o},Zm=(t,e,r)=>{let n=T(),o=Ea(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=ur(i)?kR(n,i,s,[o,s,t]):i,c=Xf[o]||Xf[s];if(c)try{let l=c(e,r);return a&&(a[r]=l),a}catch(l){n.verbose&&console.warn(\"Error setting\",s,\"value\",e,r,l)}if(!c){let l=a||(n[s]={});return l[r]=e,l}n.verbose&&console.warn(\"Can not find\",s,\"method in scratch\")},Jm=(t,e)=>{let r=T(),n=t.toLowerCase();return ur(e)?(Ir(r,n,e),r.verbose&&console.warn(\"[scratch] ignoring host object passed as the\",n,\"design-system family\"),r[n]||r[t]):e==null?(r.verbose&&console.warn(\"[scratch] skipping empty design-system family\",n),r[n]||r[t]):(Object.keys(e).sort((s,i)=>{let a=v(e[s])||R(e[s])?1:0,c=v(e[i])||R(e[i])?1:0;return a-c}).forEach(s=>{try{return Zm(n,e[s],s)}catch(i){r.verbose&&console.warn(\"Error setting\",n,\"value\",e[s],s,i)}}),r[n]||r[t])},Zf=(t,e)=>{let r=e||T();r.globalTheme=t;let o=_o(r)||(typeof document<\"u\"?document:null),s=o&&o.defaultView||(typeof window<\"u\"?window:null);if(o){let a=r.themeRoot||o.documentElement,c=t&&t!==\"auto\";if(a[ns]=r,c)os(r),a.setAttribute(\"data-theme\",t),r.resolvedTheme=t,t===\"dark\"||t===\"light\"?a.style.colorScheme=t:a.style.colorScheme=\"light dark\";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?\"dark\":\"light\";a.setAttribute(\"data-theme\",d),r.resolvedTheme=d},f=s.matchMedia(\"(prefers-color-scheme: dark)\");l(f),a.style.colorScheme=\"light dark\",NS(r,f,l)}else os(r),a.setAttribute(\"data-theme\",\"light\"),r.resolvedTheme=\"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 d in r.cssVars)f[u].style.setProperty(d,r.cssVars[d]);return r}}catch{}}return r},vR={},Gn=(t,e=vR)=>{let r=e.config||T(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:h,semanticIcons:p,hoverMedia:g,files:m,assets:y,...x}=t;e.newConfig&&(r=Mf(e.newConfig)),fr(x.document)&&(r.__domDocument=x.document,delete x.document),fr(r.document)&&(r.__domDocument||(r.__domDocument=r.document),r.document={}),m!==void 0&&(r.files=m),y!==void 0&&(r.assets=y),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),d!==void 0&&(r.useDocumentTheme=d),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),h!==void 0&&(r.useDefaultConfig=h),p!==void 0&&(r.semanticIcons=p),g!==void 0&&(r.hoverMedia=g),r.verbose&&console.log(r);let _=_o(r)||(typeof document<\"u\"?document:null),w=_&&_.defaultView||(typeof window<\"u\"?window:null),k=_&&(r.themeRoot||_.documentElement);if(k&&typeof k.setAttribute==\"function\")if(r.globalTheme&&r.globalTheme!==\"auto\")os(r),k.setAttribute(\"data-theme\",r.globalTheme),r.resolvedTheme=r.globalTheme,k[ns]=r,r.globalTheme===\"dark\"||r.globalTheme===\"light\"?k.style.colorScheme=r.globalTheme:k.style.colorScheme=\"light dark\";else if(k[ns]&&k[ns]!==r&&k.hasAttribute(\"data-theme\"))os(r),r.resolvedTheme=k.getAttribute(\"data-theme\");else if(w&&w.matchMedia){let N=Vt=>{let kt=Vt.matches?\"dark\":\"light\";k.setAttribute(\"data-theme\",kt),r.resolvedTheme=kt},At=w.matchMedia(\"(prefers-color-scheme: dark)\");N(At),k.style.colorScheme=\"light dark\",k[ns]=r,NS(r,At,N)}else os(r),k.setAttribute(\"data-theme\",\"light\"),r.resolvedTheme=\"light\",k.style.colorScheme=\"light\",k[ns]=r;r.__svgCache||(r.__svgCache={}),Zo(x);let E=Object.keys(x).filter(A=>!A.startsWith(\"__\")),D=new Set(E);if(E.forEach(A=>{let N=A.toLowerCase();N!==A&&D.has(N)&&nt(x[N],x[A],fe)}),E.map(A=>{let N=A.toLowerCase();if(!(N!==A&&D.has(N)))return Jm(A,x[A])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),x.typography)try{Wa()}catch(A){r.verbose&&console.warn(\"Error applying typography sequence\",A)}if(x.spacing)try{Na()}catch(A){r.verbose&&console.warn(\"Error applying spacing sequence\",A)}if(x.timing)try{Ga()}catch(A){r.verbose&&console.warn(\"Error applying timing sequence\",A)}try{Ja()}catch(A){r.verbose&&console.warn(\"Error applying skins\",A)}Ya();let F=Za();return F&&(r.reset=F),r};var is=new Map,XS=null,ty=null,CR=null;function nc(t){t.batchAtomicCss&&(ty=t.batchAtomicCss),t.compoundCssClass&&(CR=t.compoundCssClass)}var ER=new Set,BS=t=>!!(t&&t.documentElement&&typeof t.createElement==\"function\"&&t.head!==void 0);function ry(t){try{let e=T();e&&(e.__domDocument=t)}catch{}t&&ER.add(t)}function Xn(){try{let t=T();if(t){if(BS(t.__domDocument))return t.__domDocument;if(BS(t.document))return t.document}}catch{}return typeof document<\"u\"?document:null}var te={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function ru(){return{...te}}function ny(){for(let t in te)te[t]=0;tu=!1}var tu=!1,Qf=(t,e)=>`${t} ${e}${t===1?\"\":\"s\"}`;function AR(t){let e=Date.parse(t);if(!isFinite(e))return\"\";let r=Math.floor((Date.now()-e)/864e5);return r<1?\" (today)\":` (${Qf(r,\"day\")} ago)`}function TR(){try{let t=NR();if(!t.length)return-1;let e=0;for(let r=0;r<t.length;r++)e+=t[r].cssRules?t[r].cssRules.length:0;return e}catch{return-1}}function OR(t,e){if(tu)return!1;tu=!0;let r=\"n/a \\u2014 running from src/ (unbuilt), so no dist is in play\",n=\"this IS the source\",o=\"@symbo.ls/css\";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \\u2014 the engine emitted ${Qf(te.variable,\"variable rule\")} and ${Qf(te.atomic,\"atomic rule\")}, while the design system held ${Qf(e,\"CSS variable\")}.\n The document will render UNSTYLED and nothing else will report an error.\n This is what a STALE dist/ looks like: an obsolete emitter against a current design system.\n package : ${o}\n built : ${r}\n source : ${n}\n emitted : ${JSON.stringify(te)}\n sheets : the style[data-smbls] tiers currently hold ${TR()} rule(s)\n FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist\n then rebuild the listed packages and clear the app's .parcel-cache\n Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function ZS(){try{let t=T(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function US(t){tu||te.variable>0||te.atomic>0||JS(Math.max(t,ZS()))}function oy(t){let e=t&&(t.CSS_VARS||t.cssVars);return JS(e?Object.keys(e).length:ZS())}function JS(t){let e=ru();if(t===0)return{ok:!0,reason:\"no-design-system\",stats:e,varCount:t};if(!nu())return{ok:!0,reason:\"no-sheet\",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let r=e.invalid>0?\"every rule was rejected as malformed\":\"no rule was ever produced\";return OR(r,t),{ok:!1,reason:r,stats:e,varCount:t}}var RR={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 Yn(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function eu(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 PR(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():eu(e)}var DR={\"backdrop-filter\":\"-webkit-backdrop-filter\",\"user-select\":\"-webkit-user-select\",\"mask-image\":\"-webkit-mask-image\",\"mask-size\":\"-webkit-mask-size\",\"mask-repeat\":\"-webkit-mask-repeat\",\"mask-position\":\"-webkit-mask-position\",\"mask-clip\":\"-webkit-mask-clip\",\"mask-origin\":\"-webkit-mask-origin\",\"background-clip\":\"-webkit-background-clip\"};function ss(t,e){let r=DR[t];return r?`${t}:${e};${r}:${e};`:`${t}:${e};`}function ey(t){let e=\"\";for(let r in t){let n=t[r];if(typeof n!=\"object\"||n===null)continue;let o=\"\";for(let s in n){let i=s.charCodeAt(0)===45&&s.charCodeAt(1)===45;o+=ss(i?s:Yn(s),n[s])}e+=`${r}{${o}}`}return e}var IR=\"@media (hover: hover)\",LR=/(?:^|[^\\\\]):hover(?![\\w-])/;function sy(){try{let t=T();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Sr(t,e,r){return r===!1||!LR.test(e)||r===void 0&&!sy()?t:`${IR}{${t}}`}function VS(t,e,r){let n=(r?r+\"\u0001\":\"\")+t+\":\"+e,o=is.get(n),s=o?null:Yn(t);if(!o){let c=RR[t]||eu(t),l=PR(e);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,is.set(n,o)}if(typeof e==\"string\"&&(e.indexOf(\"}\")!==-1||e.indexOf(\"{\")!==-1))return o;let i=s||Yn(t),a=`.${o}{${ss(i,e)}}`;return Ne(a,void 0,\"atomic\"),o}var zS=new WeakMap,HS=new WeakMap;function Ne(t,e,r){let n=nu(e,$R(t));if(!n)return te.dropped++,\"dropped\";let o=zS.get(n);if(o||(o=new Set,zS.set(n,o)),o.has(t))return te.duplicate++,te[r||\"global\"]++,\"duplicate\";let s=HS.get(n);if(s&&s.has(t))return te.invalid++,\"invalid\";try{n.insertRule(t,n.cssRules.length)}catch{return s||(s=new Set,HS.set(n,s)),s.add(t),te.invalid++,\"invalid\"}return o.add(t),te[r||\"global\"]++,\"inserted\"}var je=\"0:0\",WS=\"1:0\",qS=/\\((max|min)-width:\\s*([\\d.]+)(px|em|rem)?\\)/g;function $R(t){if(typeof t!=\"string\"||!t)return je;if(t.charCodeAt(0)===64){if(!t.startsWith(\"@media\")&&!t.startsWith(\"@supports\")&&!t.startsWith(\"@container\"))return je;let e=1/0,r=-1/0;qS.lastIndex=0;let n;for(;n=qS.exec(t);){let o=parseFloat(n[2])*(n[3]===\"em\"||n[3]===\"rem\"?16:1);n[1]===\"max\"?e=Math.min(e,o):r=Math.max(r,o)}return e!==1/0?\"2:\"+-e:r!==-1/0?\"3:\"+r:WS}return t.charCodeAt(0)!==46||/^\\.[\\w-]+\\{/.test(t)?je:WS}var KS=t=>{let e=t.indexOf(\":\");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},MR=(t,e)=>{let[r,n]=KS(t),[o,s]=KS(e);return r!==o?r<o:n<s},FR=t=>t.getAttribute(\"data-tier\")||je,GS=new WeakMap;function nu(t,e){let r=t||Xn();if(!r||!r.head)return null;let n=e||je,o=GS.get(r);o||(o=new Map,GS.set(r,o));let s=o.get(n);if(s&&s.ownerNode&&s.ownerNode.parentNode===r.head)return s;n!==je&&nu(r,je);let i=n===je?r.head.querySelector(\"style[data-smbls]:not([data-tier])\"):r.head.querySelector(`style[data-smbls][data-tier=\"${n}\"]`);if(!i){i=r.createElement(\"style\"),i.setAttribute(\"data-smbls\",\"\"),n!==je&&i.setAttribute(\"data-tier\",n);let c=r.head.querySelectorAll(\"style[data-smbls]\"),l=null;for(let u=0;u<c.length;u++)if(MR(n,FR(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;l?r.head.insertBefore(i,l):f?r.head.insertBefore(i,f.nextSibling):r.head.appendChild(i)}let a=i.sheet;return o.set(n,a),n===je&&(XS=a),a}function NR(t){let e=t||Xn();if(!e||!e.head)return[];let r=[],n=e.head.querySelectorAll(\"style[data-smbls]\");for(let o=0;o<n.length;o++)n[o].sheet&&r.push(n[o].sheet);return r}var jR=8;function pe(t,e,r,n){if(!t||typeof t!=\"object\")return\"\";let o=!!(n&&n.state),s=null,i=0,a=[],c=[];for(let f in t){let u=t[f];u==null||u===!1||u===\"\"||(typeof u==\"object\"?c.push([f,u]):ty?(s||(s=[]),s.push(f,String(u)),i++):a.push(VS(f,String(u),r)))}if(s&&i>=jR){let f=s.join(\"\\0\"),u=ty(f),d=u.indexOf(\"\\0\"),h=u.substring(0,d),p=u.substring(d+1);if(p){let g=p.split(`\n`);for(let m=0;m<g.length;m++)g[m]&&Ne(g[m],void 0,\"atomic\")}a.push(h)}else if(s)for(let f=0;f<s.length;f+=2)a.push(VS(s[f],s[f+1],r));let l=[];for(let f=0;f<c.length;f++)l.push(VR(c[f][0],c[f][1],r,o));return a.concat(l).join(\" \").trim()}var YS=new Map,BR=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\\w-])/;function rc(t){return/^@(media|supports|container)\\b/.test(t)}function UR(t){return typeof t!=\"string\"||!t||rc(t)?!1:t.split(\",\").every(e=>BR.test(e.trim()))}function VR(t,e,r,n){let o=JSON.stringify(e),s=t.indexOf(\":hover\")!==-1||o.indexOf(\":hover\")!==-1,i=s&&sy(),a=(r?r+\"\u0001\":\"\")+t+o+(s&&!i?\"\u0002rawhover\":\"\")+(n?\"\u0003state\":\"\"),c=is.get(a);if(c){let b=YS.get(c);if(b)for(let _=0;_<b.length;_++)Ne(b[_],void 0,\"atomic\");return c}c=r?`_${r}_c${eu(a)}`:`_c${eu(a)}`;let l=n?`.${c}.${c}`:`.${c}`,f=UR(t)?`${l}.${c}`:l,u=\"\",d=[],h=b=>typeof b==\"string\"&&(b.indexOf(\"{\")!==-1||b.indexOf(\"}\")!==-1),p=(b,_)=>{let w=\"\";for(let k in _){let E=_[k];if(E!=null)if(typeof E==\"object\")p([...b,k],E);else{if(h(E))continue;w+=ss(Yn(k),E)}}w&&(b.length===0?u+=w:d.push({chain:b,body:w}))};p([],e);let g=b=>b.startsWith(\":\")||b.startsWith(\"[\"),m=(b,_=!0)=>{let w=_&&b.length===1?f:l;if(!b.length)return w;let k=b[0].split(\",\").map(E=>E.trim()).map(E=>E.includes(\"&\")?E.replace(/&/g,w):g(E)?`${w}${E}`:`${w} ${E}`);for(let E=1;E<b.length;E++){let D=b[E].split(\",\").map(A=>A.trim()),F=[];for(let A of k)for(let N of D)N.includes(\"&\")?F.push(N.replace(/&/g,A)):g(N)?F.push(A+N):F.push(A+\" \"+N);k=F}return k.join(\", \")},y=[],x=(b,_)=>{let w=b.filter(rc),k=m(b.filter(D=>!rc(D)),w.length===0),E=`${k}{${_}}`;for(let D=w.length-1;D>=0;D--)E=`${w[D]}{${E}}`;E=Sr(E,k,i),y.push(E),Ne(E,void 0,\"atomic\")};u&&x([t],u);for(let b of d)x([t,...b.chain],b.body);return YS.set(c,y),is.set(a,c),c}function _t(t){if(t==null||typeof t!=\"string\"&&typeof t!=\"object\")return;if(nu(),typeof t==\"string\"){let s=t.indexOf(\"--\")!==-1;Ne(t,void 0,s?\"variable\":\"global\"),s&&US(1);return}let e=sy(),r=0,n=Object.keys(t),o=s=>{let i=s.match(/max-width:\\s*(\\d+)/);return i?parseInt(i[1]):0};n.sort((s,i)=>{let a=s.startsWith(\"@media\"),c=i.startsWith(\"@media\");return!a&&!c?0:a?c?o(i)-o(s):1:-1});for(let s of n){let i=t[s];if(s.startsWith(\"@keyframes\")){let a=ey(i);a&&Ne(`${s}{${a}}`,void 0,\"keyframes\");continue}if(rc(s))for(let a in i){let c=i[a];if(a.startsWith(\"@keyframes\")){let l=ey(c);l&&Ne(`${s}{${a}{${l}}}`,void 0,\"keyframes\");continue}if(typeof c==\"object\"&&c!==null){let l=\"\",f=0;for(let u in c){let d=u.charCodeAt(0)===45&&u.charCodeAt(1)===45;d&&f++;let h=d?u:Yn(u);l+=ss(h,c[u])}r+=f,Ne(Sr(`${s}{${a}{${l}}}`,a,e),void 0,f?\"variable\":\"global\")}else{let l=a.charCodeAt(0)===45&&a.charCodeAt(1)===45;l&&r++;let f=l?a:Yn(a);Ne(`${s}{${ss(f,c)}}`,void 0,l?\"variable\":\"global\")}}else{let a=\"\",c=!1,l=0;for(let f in i){let u=i[f];if(typeof u==\"object\"&&u!==null)c=!0;else{let d=f.charCodeAt(0)===45&&f.charCodeAt(1)===45;d&&l++;let h=d?f:Yn(f);a+=ss(h,u)}}if(r+=l,a&&Ne(Sr(`${s}{${a}}`,s,e),void 0,l?\"variable\":\"global\"),c){let f=[],u=[];for(let d in i)typeof i[d]==\"object\"&&i[d]!==null&&(rc(d)?f.push(d):u.push(d));f.sort((d,h)=>{let p=g=>{let m=g.match(/max-width:\\s*(\\d+)/);return m?parseInt(m[1]):0};return p(h)-p(d)});for(let d of u)_t({[`${s} ${d}`]:i[d]});for(let d of f)_t({[d]:{[s]:i[d]}})}}}r>0&&US(r)}function as(t,e){return Ne(`@keyframes ${t}{${ey(e)}}`,void 0,\"keyframes\"),t}function QS(){is.clear(),XS=null}function iy(){return is.size}P();var ob={};L(ob,{DELEGATED_EVENTS:()=>ds,LIFECYCLE_EVENTS:()=>en,MIXINS:()=>ou,NON_BUBBLING_EVENTS:()=>su,REGISTRY:()=>Bt,SVG_TAGS:()=>fs,addDelegatedEvent:()=>oc,addMethods:()=>bs,applyExtends:()=>hs,cacheNode:()=>tn,create:()=>he,createHTMLNode:()=>ls,detectTag:()=>Qr,dispose:()=>nn,flushMounts:()=>pc,globalEventKeyInfo:()=>iu,isSvgTag:()=>us,isValidTag:()=>cs,refreshContextProto:()=>gu,registerEvent:()=>ps,registerGlobalEvent:()=>au,remove:()=>ys,removeDelegatedEvent:()=>sc,update:()=>gs});var cy=\"http://www.w3.org/2000/svg\",fs=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\"]),zR=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 cs(t){return zR.has(t)||fs.has(t)}function us(t){return fs.has(t)}function Qr(t){let{tag:e,key:r}=t;if(typeof e==\"function\")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<\"u\"&&console.error&&console.error(`[smbls] \\`tag:\\` factory threw on \"${r||\"<anon>\"}\" \\u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=r),typeof e==\"string\"&&cs(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\",\"th\",\"tr\",\"td\",\"thead\",\"tbody\",\"tfoot\",\"caption\",\"col\",\"colgroup\"]),o=r.toLowerCase();return o.includes(\".\")&&(o=o.split(\".\")[0]),o.includes(\"_\")&&(o=o.split(\"_\")[0]),cs(o)&&!n.has(o)?o:\"div\"}var t0={};function ls(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(us(t)){let n=e?.parent;if(t===\"svg\"||n?.node?.namespaceURI===cy)return r.createElementNS(cy,t);if(t!==\"svg\")return r.createElement(\"div\")}return r.createElement(t)}function tn(t){let e=t.tag=Qr(t),n=us(e)&&(e===\"svg\"||t.parent?.node?.namespaceURI===cy)?\"svg:\"+e:e,o=t?.context?.document||globalThis.document,s=t0[n];if(s||(s=t0[n]=ls(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?ls(e,t):s.cloneNode(!0);return e===\"string\"&&(i.nodeValue=t.text||\"\"),i}var Bt=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\",\"allowRuntimeTemplates\",\"__name\",\"__ref\",\"__hash\",\"__text\",\"parent\",\"node\"]),ou={text:\"text\",html:\"html\",style:\"style\",attr:\"attr\",data:\"data\",classlist:\"classlist\",state:\"state\",scope:\"scope\"},en=new Set([\"start\",\"init\",\"complete\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeUpdate\",\"update\",\"afterUpdate\",\"beforeClassAssign\",\"lazyLoad\",\"render\",\"renderRouter\",\"done\",\"create\",\"frame\",\"mounted\",\"contentUpdate\",\"startUpdate\",\"stateUpdate\",\"beforeStateUpdate\",\"initInspect\",\"initSync\",\"beforeRemove\",\"remove\"]),su=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\"]),ly=new Set([\"wheel\",\"mousewheel\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\"]),ds=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 uy=new WeakMap,HR={passive:!0},WR={passive:!0,capture:!0},dy=(t,e)=>ly.has(t)?e?WR:HR:e||!1;function n0(t){let e=uy.get(t);return e||(e={handlers:new Map,installed:new Set},uy.set(t,e)),e}function qR(t,e){let r=n0(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\"||t===\"pointerenter\"||t===\"pointerleave\",o=t===\"mouseenter\"||t===\"mouseleave\"||t===\"pointerenter\"||t===\"pointerleave\";e.addEventListener(t,s=>{if(o){let a=s.target,c=r.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains==\"function\"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},dy(t,n))}function oc(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=n0(n);qR(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function sc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=uy.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function e0(t){return ds.has(t)&&!en.has(t)}function o0(t,e){let{context:r}=t,n=r?.designSystem;return o=>{n&&ot(n);try{let s=e.call(t,o,t,t.state,r);if(s&&typeof s.then==\"function\"){s.catch(i=>{t.error=i,console.error(\"[DOMQL] Async event error:\",i)}).finally(()=>{n&&rt()});return}}catch(s){if(t.error=s,console.error(\"[DOMQL] Event error:\",s),r?.strictMode)throw s}n&&rt()}}function ps(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o0(e,r),i=su.has(t);if(!i&&e0(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;oc(t,n,s,a)}else n.addEventListener(t,s,dy(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!i&&e0(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;sc(t,n,a)}else n.removeEventListener(t,s,dy(t,!1))})}var fy=[[\"onDocument\",\"document\"],[\"onWindow\",\"window\"],[\"onVisualViewport\",\"visualViewport\"],[\"onMediaQuery\",\"mediaQuery\"]];function iu(t){if(typeof t!=\"string\")return null;for(let e=0;e<fy.length;e++){let r=fy[e][0];if(t.length<=r.length||!t.startsWith(r))continue;let n=t.charCodeAt(r.length);if(!(n<65||n>90))return{target:fy[e][1],eventName:t.slice(r.length).toLowerCase()}}return null}var KR=/^[A-Za-z_$][\\w$]*$/;function GR(t,e,r){let n=e,o=!1,s,i=!1,a=null;if(e&&typeof e==\"object\"&&typeof e!=\"function\"&&(n=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive==\"boolean\"&&(s=e.passive),typeof e.query==\"string\"&&(a=e.query)),typeof n==\"string\"&&KR.test(n)){let c=n;n=function(f){return t.call(c,f)}}return typeof n!=\"function\"?null:(s===void 0&&(s=ly.has(r)),{handler:n,capture:o,passive:s,once:i,query:a})}function YR(t,e,r){let n=t.node?.ownerDocument||t.context?.document||(typeof document<\"u\"?document:null);if(!n||typeof n.addEventListener!=\"function\")return null;if(e===\"document\")return n;let o=n.defaultView||(typeof window<\"u\"?window:null);if(!o)return null;if(e===\"window\")return typeof o.addEventListener==\"function\"?o:null;if(e===\"visualViewport\"){let s=o.visualViewport;return s&&typeof s.addEventListener==\"function\"?s:null}if(e===\"mediaQuery\"){let s=r&&r.query;if(typeof s!=\"string\"||!s.trim()||typeof o.matchMedia!=\"function\")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}function XR(t,e,r,n){try{return t.addEventListener(e,r,n),!0}catch{return typeof t.addListener==\"function\"?(t.addListener(r),!0):!1}}function ZR(t,e,r,n){try{t.removeEventListener(e,r,n)}catch{typeof t.removeListener==\"function\"&&t.removeListener(r)}}function JR(t){let e=t.node;if(!e)return!1;let r=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return r?r.isConnected!==!1:!1}function au(t,e,r){if(e.__ref){if(Array.isArray(r)){if(t.target!==\"mediaQuery\")return;for(let o=0;o<r.length;o++)r0(t,e,r[o]);return}r0(t,e,r)}}function r0(t,e,r){let n=e.__ref,o=GR(e,r,t.eventName);if(!o||t.target===\"mediaQuery\"&&t.eventName!==\"change\")return;let s=YR(e,t.target,o);if(!s)return;let i=t.target+\":\"+(o.query?o.query+\":\":\"\")+t.eventName+\":\"+(o.capture?1:0);if(n.__globalEvents&&n.__globalEvents.has(i))return;let a=o0(e,o.handler),c=f=>{JR(e)&&a(f)},l={capture:o.capture,passive:o.passive,once:o.once};XR(s,t.eventName,c,l)&&(n.__globalEvents||(n.__globalEvents=new Map),n.__globalEvents.set(i,{target:s,eventName:t.eventName,listener:c,options:l}),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>{ZR(s,t.eventName,c,l),n.__globalEvents&&n.__globalEvents.delete(i)}))}function s0(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 hs(t,e,r){let n=s0(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=i0(n[i],s);a&&a!==e&&a0(t,a,r,new Set([e]))}}function i0(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 a0(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=s0(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=i0(o[a],i);c&&a0(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]=c0(t[s],i):t[s]=i}}function c0(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]=c0(o,s):r[n]=s}return r}On();P();var QR=[\"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\"],cu={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\"]},f0=[\"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\"],sr=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()):u0(t),tP=new Set([\"tabIndex\",\"readOnly\",\"maxLength\",\"minLength\",\"autoComplete\",\"autoFocus\",\"autoPlay\",\"contentEditable\",\"spellCheck\",\"colSpan\",\"rowSpan\",\"srcSet\",\"crossOrigin\",\"accessKey\",\"inputMode\",\"enterKeyHint\",\"formAction\",\"noValidate\"]),u0=t=>tP.has(t)?t.toLowerCase():null,eP=new Set([\"draggable\",\"contenteditable\",\"spellcheck\",\"autocorrect\"]),ir=t=>typeof t==\"string\"&&(eP.has(t)||t.startsWith(\"aria-\")),ee=(t,e)=>e!==!0&&e!==!1?e:ir(t)?e?\"true\":\"false\":e===!0?\"\":e,Oe=(t,e)=>e.startsWith(\"aria-\")||e.startsWith(\"data-\")||sr(e)||cu.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(cu,t)?cu[t].includes(e):!1,hy=t=>{if(!S(t))return!1;let e=t.toLowerCase();return f0.includes(e)},rP=(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])Ot(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(Ot(e[o][a])){let c=a.replace(/([A-Z])/g,l=>\"-\"+l.toLowerCase());n[\"data-\"+c]=e[o][a]}continue}let s=Oe(t,o),i=hy(o);if(Ot(e[o])&&(s||i)){let a=sr(o)||o;n[a]=e[o]}}return n},nP=(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},rn=(t,e)=>{let r=t.call(\"exec\",e,t);if(r)return S(r)&&r.includes(\"{{\")&&(r=t.call(\"replaceLiteralsWithObjectFields\",r)),r},py=(t,e)=>{let r=(t.preSrc||\"\")+(rn(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},Zn={src:t=>py(t,t.src),href:t=>rn(t,t.href),action:t=>rn(t,t.action),poster:t=>py(t,t.poster),data:t=>rn(t,t.data)},gy=t=>{let e=t.tag||\"div\",r={};for(let n in Zn)if(t[n]!==void 0&&Oe(e,n)){let o=Zn[n](t);o!==void 0&&(r[n]=o)}return r},l0=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return O(r)?r.call(e,e):!!r},oP=(t,e,r)=>{if(t===\"$\"){let o=l0(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=l0(e,r);o!==void 0&&(n=o)}return t===\".\"?!!n:!n},sP=new Set([\"$\",\".\",\"!\"]),iP=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(oP(a,c,f))return O(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!sP.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 h in a[l])o(\"aria-\"+h,a[l][h],i,c);continue}if(l===\"data\"&&a[l]&&typeof a[l]==\"object\"){for(let h in a[l]){let p=h.replace(/([A-Z])/g,g=>\"-\"+g.toLowerCase());o(\"data-\"+p,a[l][h],i,c)}continue}let f=Oe(e,l),u=hy(l);if(!f&&!u)continue;let d=sr(l)||l;o(d,a[l],i,c)}}return n};function gs(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\"&&my(n))try{let i=r.onBeforeUpdate(r,r.state,r.context,e);if(i&&typeof i.then==\"function\")i.then(()=>kr(n,!1),a=>{kr(n,!0),r.context?.plugins?.length&&Rt(\"error\",r,{hook:\"onBeforeUpdate\",error:a})||console.error(\"[DOMQL] onBeforeUpdate error:\",a)});else if(kr(n,!1),i===!1)return r}catch(i){throw kr(n,!0),i}let o=!t||Object.keys(t).length===0,s=[];al(()=>{if(t.state&&wt(r.state)&&r.state.$update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&ms(r,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 i in t.style){let a=t.style[i];if(a==null)continue;let c=i.replace(/[A-Z]/g,f=>\"-\"+f.toLowerCase()),l=String(a).replace(/\\s*!important\\s*$/,\"\");r.node.style.setProperty(c,l,\"important\")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let i in t.attr){let a=t.attr[i];a==null||a===!1&&!ir(i)?r.node.removeAttribute(i):typeof a!=\"function\"&&typeof a!=\"object\"&&r.node.setAttribute(i,ee(i,a))}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let i in t.data)r.node.dataset[i]=t.data[i];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let i in t){if(Bt.has(i)||i===\"state\")continue;let a=t[i],c=r[i];if(c&&c.__ref&&typeof c.update==\"function\")c.update(a,e);else if(typeof a==\"object\"&&a!==null){let l=i.charCodeAt(0);l>=65&&l<=90&&he(a,r,i,e)}else i!==\"text\"&&i!==\"html\"&&i!==\"style\"&&i!==\"attr\"&&i!==\"data\"&&(r[i]=a,typeof a!=\"function\"&&s.push(i))}});for(let i=0;i<s.length;i++)h0(r,s[i]);if(r.node){for(let i=0;i<s.length;i++)if(d0(s[i])){p0(r);break}}if(r.node&&o&&n.__effects&&n.__effects.length)for(let i=0;i<n.__effects.length;i++){let a=n.__effects[i];a&&!a._disposed&&!a._isSubscribeToEffect&&typeof a._execute==\"function\"&&a._execute()}else if(r.node&&n.__conditionalRunners)for(let i of n.__conditionalRunners)i();return Rt(\"update\",r),!e.preventListeners&&typeof r.onUpdate==\"function\"&&r.onUpdate(r,r.state,r.context,e),r}function nn(t){if(!t)return;let e=t.__ref;if(!e)return;e.__disposed=!0;try{typeof t.onBeforeRemove==\"function\"&&t.onBeforeRemove(t,t.state,t.context)}catch(n){console.error(\"[smbls] onBeforeRemove error:\",n)}if(e.__effects){for(let n=0;n<e.__effects.length;n++)e.__effects[n].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let n=0;n<e.__eventCleanup.length;n++)e.__eventCleanup[n]();e.__eventCleanup.length=0}if(e.__children){let n=e.__children.slice();e.__children.length=0;for(let o=0;o<n.length;o++){let s=t[n[o]];s&&s.__ref&&nn(s)}}t.node?.parentNode?t.node.remove():t.tag===\"fragment\"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r==\"function\"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let n=t.parent.__ref.__children.indexOf(t.key);n!==-1&&t.parent.__ref.__children.splice(n,1),delete t.parent[t.key]}try{typeof t.onRemove==\"function\"&&t.onRemove(t)}catch(n){console.error(\"[smbls] onRemove error:\",n)}t.node=null,t.parent=null,t.__ref=null}function ys(){nn(this)}P();P();P();var aP=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],cP=[\"none\",\"forwards\",\"backwards\",\"both\"],lP=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],fP=[\"running\",\"paused\"],uP=t=>/^[\\d.]+m?s$/.test(t),dP=/^(?:translate(?:3d|x|y|z)?\\((?:\\s*0[a-z%]*\\s*,?)+\\)|scale(?:3d|x|y|z)?\\((?:\\s*1(?:\\.0+)?\\s*,?)+\\)|rotate(?:3d|x|y|z)?\\((?:\\s*0[a-z%]*\\s*,?)+\\)|skew(?:x|y)?\\((?:\\s*0[a-z%]*\\s*,?)+\\)|matrix\\(\\s*1\\s*,\\s*0\\s*,\\s*0\\s*,\\s*1\\s*,\\s*0\\s*,\\s*0\\s*\\))$/,pP=t=>{let e=String(t).trim().toLowerCase();if(e===\"\"||e===\"none\"||e===\"initial\"||e===\"unset\")return!0;let r=e.match(/[a-z0-9]+\\([^()]*\\)/g);return!r||r.join(\"\").replace(/\\s+/g,\"\")!==e.replace(/\\s+/g,\"\")?!1:r.every(n=>dP.test(n.replace(/\\s+/g,\"\")))},g0=t=>/^(?:\\s*0[a-z%]*)+\\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),hP={transform:pP,translate:g0,rotate:t=>g0(t)||/^\\s*(?:[xyz]\\s+)?0(?:deg|rad|turn|grad)?\\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\\s*1(?:\\.0+)?)+\\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},gP=t=>{let e=String(t).trim().toLowerCase();if(e===\"from\")return 0;if(e===\"to\")return 100;let r=e.match(/^(\\d+(?:\\.\\d+)?)%$/);return r?Number(r[1]):null},mP=t=>{if(!v(t))return null;let e=null,r=-1;for(let n in t){let o=gP(n);o==null||!v(t[n])||o>=r&&(r=o,e=t[n])}return e},yP=t=>{let e=mP(t);if(!e)return!1;let r=Object.keys(e);if(!r.length)return!1;for(let n of r){let o=hP[n];if(!o)return!1;let s=e[n];if(s==null||typeof s==\"object\"||typeof s==\"function\"||!o(s))return!1}return!0},bP=(t,e)=>{if(v(t))return t;let{animation:r}=e.context&&e.context.designSystem||{},n=r&&r[t];return v(n)?n:null},_P=[\"reverse\",\"alternate\",\"alternate-reverse\"],m0=(t,e,r)=>{let n=r||e.animationDirection;return n&&_P.includes(String(n))?\"both\":yP(bP(t,e))?\"backwards\":\"both\"},xP=0,y0=new Map,yy=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(v(t)){let o=JSON.stringify(t),s=y0.get(o);if(s)return s;let i=`smbls-anim-${xP++}`,a=as(i,t);return y0.set(o,a),a}let n=r&&r[t];return v(n)?as(t,n):t},wP=t=>{let e=[],r=0,n=\"\";for(let o of String(t).trim())o===\"(\"?r++:o===\")\"&&r>0&&r--,r===0&&/\\s/.test(o)?(n&&e.push(n),n=\"\"):n+=o;return n&&e.push(n),e},SP=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=wP(t),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:uP(u)?s.push(u):aP.includes(u)||u.startsWith(\"cubic-bezier\")||u.startsWith(\"steps(\")||u.startsWith(\"linear(\")?i=u:u===\"infinite\"||/^\\d+$/.test(u)?a=u===\"infinite\"?u:Number(u):lP.includes(u)?c=u:cP.includes(u)?l=u:fP.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},by={animation:(t,e)=>{if(t!=null){if(S(t)&&t.includes(\" \")){let r=SP(t,e);return{animationName:yy(r.name||t,e),animationDuration:r.durations[0]||de(e.animationDuration||\"A\").timing,animationDelay:r.durations[1]||de(e.animationDelay||\"0s\").timing,animationTimingFunction:r.timingFunction||Te(e.animationTimingFunction||\"ease\"),animationFillMode:r.fillMode||e.animationFillMode||m0(r.name||t,e,r.direction),animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:yy(t,e),animationDuration:de(e.animationDuration||\"A\").timing,animationDelay:de(e.animationDelay||\"0s\").timing,animationTimingFunction:Te(e.animationTimingFunction||\"ease\"),animationFillMode:e.animationFillMode||m0(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:yy(t,e)}),animationDuration:t=>({animationDuration:de(t).timing}),animationDelay:t=>({animationDelay:de(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Te(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};P();var lu=(t,e,r)=>{if(typeof e==\"number\"&&(e=String(e)),!S(e))return;let[n,o]=ft(e);return{...I(t+\"Start\",n,r),...I(t+\"End\",o||n,r)}},_y={show:t=>t?void 0:{display:\"none !important\"},hide:t=>t?{display:\"none !important\"}:void 0,height:(t,e)=>I(\"height\",t,e),width:(t,e)=>I(\"width\",t,e),boxSizing:t=>Pt(t)?{boxSizing:\"border-box\"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"height\",e),...St(\"width\",r||e)}},inlineSize:(t,e)=>I(\"inlineSize\",t,e),blockSize:(t,e)=>I(\"blockSize\",t,e),minWidth:(t,e)=>I(\"minWidth\",t,e),maxWidth:(t,e)=>I(\"maxWidth\",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"minWidth\",e),...St(\"maxWidth\",r||e)}},minHeight:(t,e)=>I(\"minHeight\",t,e),maxHeight:(t,e)=>I(\"maxHeight\",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"minHeight\",e),...St(\"maxHeight\",r||e)}},size:t=>{if(!S(t))return;let[e,r]=ft(t);return{...I(\"inlineSize\",e),...I(\"blockSize\",r||e)}},minBlockSize:(t,e)=>I(\"minBlockSize\",t,e),minInlineSize:(t,e)=>I(\"minInlineSize\",t,e),maxBlockSize:(t,e)=>I(\"maxBlockSize\",t,e),maxInlineSize:(t,e)=>I(\"maxInlineSize\",t,e),minSize:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"minInlineSize\",e),...St(\"minBlockSize\",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"maxInlineSize\",e),...St(\"maxBlockSize\",r||e)}},borderWidth:(t,e)=>I(\"borderWidth\",t,e),borderTopWidth:(t,e)=>I(\"borderTopWidth\",t,e),borderRightWidth:(t,e)=>I(\"borderRightWidth\",t,e),borderBottomWidth:(t,e)=>I(\"borderBottomWidth\",t,e),borderLeftWidth:(t,e)=>I(\"borderLeftWidth\",t,e),textDecorationThickness:(t,e)=>I(\"textDecorationThickness\",t,e),textUnderlineOffset:(t,e)=>I(\"textUnderlineOffset\",t,e),padding:(t,e)=>I(\"padding\",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"paddingInlineStart\",e),...St(\"paddingInlineEnd\",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"paddingBlockStart\",e),...St(\"paddingBlockEnd\",r||e)}},paddingTop:(t,e)=>I(\"paddingBlockStart\",t,e),paddingBottom:(t,e)=>I(\"paddingBlockEnd\",t,e),paddingLeft:(t,e)=>I(\"paddingInlineStart\",t,e),paddingRight:(t,e)=>I(\"paddingInlineEnd\",t,e),paddingBlockStart:(t,e)=>I(\"paddingBlockStart\",t,e),paddingBlockEnd:(t,e)=>I(\"paddingBlockEnd\",t,e),paddingInlineStart:(t,e)=>I(\"paddingInlineStart\",t,e),paddingInlineEnd:(t,e)=>I(\"paddingInlineEnd\",t,e),margin:(t,e)=>I(\"margin\",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"marginInlineStart\",e),...St(\"marginInlineEnd\",r||e)}},marginBlock:t=>{if(!S(t))return;let[e,r]=ft(t);return{...St(\"marginBlockStart\",e),...St(\"marginBlockEnd\",r||e)}},marginTop:(t,e)=>I(\"marginBlockStart\",t,e),marginBottom:(t,e)=>I(\"marginBlockEnd\",t,e),marginLeft:(t,e)=>I(\"marginInlineStart\",t,e),marginRight:(t,e)=>I(\"marginInlineEnd\",t,e),marginInlineStart:(t,e)=>I(\"marginInlineStart\",t,e),marginInlineEnd:(t,e)=>I(\"marginInlineEnd\",t,e),marginBlockStart:(t,e)=>I(\"marginBlockStart\",t,e),marginBlockEnd:(t,e)=>I(\"marginBlockEnd\",t,e),scrollMargin:(t,e)=>I(\"scrollMargin\",t,e),scrollMarginTop:(t,e)=>I(\"scrollMarginTop\",t,e),scrollMarginRight:(t,e)=>I(\"scrollMarginRight\",t,e),scrollMarginBottom:(t,e)=>I(\"scrollMarginBottom\",t,e),scrollMarginLeft:(t,e)=>I(\"scrollMarginLeft\",t,e),scrollMarginBlock:(t,e)=>lu(\"scrollMarginBlock\",t,e),scrollMarginInline:(t,e)=>lu(\"scrollMarginInline\",t,e),scrollMarginBlockStart:(t,e)=>I(\"scrollMarginBlockStart\",t,e),scrollMarginBlockEnd:(t,e)=>I(\"scrollMarginBlockEnd\",t,e),scrollMarginInlineStart:(t,e)=>I(\"scrollMarginInlineStart\",t,e),scrollMarginInlineEnd:(t,e)=>I(\"scrollMarginInlineEnd\",t,e),scrollPadding:(t,e)=>I(\"scrollPadding\",t,e),scrollPaddingTop:(t,e)=>I(\"scrollPaddingTop\",t,e),scrollPaddingRight:(t,e)=>I(\"scrollPaddingRight\",t,e),scrollPaddingBottom:(t,e)=>I(\"scrollPaddingBottom\",t,e),scrollPaddingLeft:(t,e)=>I(\"scrollPaddingLeft\",t,e),scrollPaddingBlock:(t,e)=>lu(\"scrollPaddingBlock\",t,e),scrollPaddingInline:(t,e)=>lu(\"scrollPaddingInline\",t,e),scrollPaddingBlockStart:(t,e)=>I(\"scrollPaddingBlockStart\",t,e),scrollPaddingBlockEnd:(t,e)=>I(\"scrollPaddingBlockEnd\",t,e),scrollPaddingInlineStart:(t,e)=>I(\"scrollPaddingInlineStart\",t,e),scrollPaddingInlineEnd:(t,e)=>I(\"scrollPaddingInlineEnd\",t,e),gap:t=>({gap:Kf(t)}),columnGap:(t,e)=>Ee(e,\"columnGap\",t),rowGap:(t,e)=>Ee(e,\"rowGap\",t),flexWrap:t=>{if(t!=null)return{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)=>wr(t??e.borderRadius,e,\"round\"),borderRadius:(t,e)=>wr(t??e.round,e,\"borderRadius\"),borderTopLeftRadius:(t,e)=>wr(t,e,\"borderTopLeftRadius\",\"borderTopLeftRadius\"),borderTopRightRadius:(t,e)=>wr(t,e,\"borderTopRightRadius\",\"borderTopRightRadius\"),borderBottomLeftRadius:(t,e)=>wr(t,e,\"borderBottomLeftRadius\",\"borderBottomLeftRadius\"),borderBottomRightRadius:(t,e)=>wr(t,e,\"borderBottomRightRadius\",\"borderBottomRightRadius\")};var xy={fontSize:t=>qa(t)||t,fontFamily:t=>({fontFamily:Ha(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'\"wght\" '+t}),lineClamp:t=>{if(t!=null)return t===\"none\"?{WebkitLineClamp:\"none\",lineClamp:\"none\"}:{display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:String(t),lineClamp:String(t),overflow:\"hidden\"}}};var wy={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 Sy={inset:(t,e)=>{if(e.call(\"isNumber\",t))return{inset:t};if(e.call(\"isString\",t))return{inset:ft(t).map(r=>Ct(r,\"k\").k).join(\" \")}},left:t=>Ct(t,\"left\"),top:t=>Ct(t,\"top\"),right:t=>Ct(t,\"right\"),bottom:t=>Ct(t,\"bottom\"),verticalInset:t=>{if(typeof t!=\"string\")return;let e=ft(t).map(r=>Ct(r,\"k\").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!=\"string\")return;let e=ft(t).map(r=>Ct(r,\"k\").k);return{left:e[0],right:e[1]||e[0]}}};P();var fu=0,uu=()=>{fu++},du=()=>{fu>0&&fu--},ge=({context:t,state:e})=>{let r=t?.designSystem,n=e?.root?.globalTheme||r?.globalTheme;return n&&n!==\"auto\"?n:fu>0?null:r&&r.resolvedTheme||null},re=(t,e)=>{if(e==null||e===\"\")return;if(!v(e))return{[t]:e};let r={},n=!1;for(let o in e){let s=e[o];if(!(s==null||s===\"\")){if(v(s)){let i=re(t,s);i&&(r[o]=i,n=!0);continue}r[o]={[t]:s},n=!0}}return n?r:void 0},ky={theme:(t,e)=>{if(t)return e.themeModifier?Ae(t,`@${e.themeModifier}`):Ae(t)},color:(t,e)=>{let r=ge(e);if(t)return re(\"color\",Lt(t,r))},background:(t,e)=>{let r=ge(e);if(t)return S(t)&&t.includes(\"gradient\")&&t.includes(\"(\")?{background:tc(t,r)}:re(\"background\",Lt(t,r))},backgroundColor:(t,e)=>{let r=ge(e);if(t)return re(\"backgroundColor\",Lt(t,r))},backgroundImage:(t,e,r,n)=>{let o=ge(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 re(\"backgroundImage\",qf(t,o))},textStroke:t=>{let e=Hf(t);if(e!=null)return{WebkitTextStroke:e}},outline:t=>({outline:or(t)}),outlineWidth:(t,e)=>I(\"outlineWidth\",t,e),outlineColor:(t,e)=>{let r=ge(e);if(t)return re(\"outlineColor\",Lt(t,r))},outlineOffset:(t,e)=>I(\"outlineOffset\",t,e),border:t=>({border:or(t)}),borderColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderColor\",Lt(t,r))},borderTopColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderTopColor\",Lt(t,r))},borderBottomColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderBottomColor\",Lt(t,r))},borderLeftColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderLeftColor\",Lt(t,r))},borderRightColor:(t,e)=>{let r=ge(e);if(t)return re(\"borderRightColor\",Lt(t,r))},borderLeft:t=>({borderLeft:or(t)}),borderTop:t=>({borderTop:or(t)}),borderRight:t=>({borderRight:or(t)}),borderBottom:t=>({borderBottom:or(t)}),shadow:(t,e)=>{let r=ge(e);if(t)return re(\"boxShadow\",Wf(t,r))},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split(\"!importan\"),o=ge(e),s=n?\" !important\":\"\",i=Qa(r.trim(),o);return S(i)?{boxShadow:i+s}:re(\"boxShadow\",i)},textShadow:(t,{context:e})=>re(\"textShadow\",Qa(t,e.designSystem.globalTheme)),columnRule:t=>({columnRule:or(t)})};var ic={transition:t=>{let e=Yf(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:ec(t)}),transitionDelay:t=>({transitionDelay:ec(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Te(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};P();var vy={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)=>{if(t!=null)return{display:\"flex\",flexWrap:t}},align:(t,e)=>{if(!S(t))return;let[r,n]=t.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}};P();var kP=/(^|[^\\w.-])([A-Za-z_][\\w-]*)/g,b0=t=>{if(!S(t))return t;let e=T().sizes;return e?t.replace(kP,(r,n,o)=>{let s=e[o];return s==null?r:n+String(s)}):t},ar=t=>b0(Gf(t)),Cy={gridTemplateColumns:t=>({gridTemplateColumns:ar(t)}),gridTemplateRows:t=>({gridTemplateRows:ar(t)}),gridAutoColumns:t=>({gridAutoColumns:ar(t)}),gridAutoRows:t=>({gridAutoRows:ar(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:ar(t)}),templateColumns:t=>({gridTemplateColumns:ar(t)}),autoColumns:t=>({gridAutoColumns:ar(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:ar(t)}),templateRows:t=>({gridTemplateRows:ar(t)}),autoRows:t=>({gridAutoRows:ar(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var xt={...by,..._y,...xy,...wy,...Sy,...ky,...ic,...vy,...Cy};var Et=new Set([\"accentColor\",\"alignContent\",\"alignItems\",\"alignSelf\",\"alignmentBaseline\",\"all\",\"animation\",\"animationDelay\",\"animationDirection\",\"animationDuration\",\"animationFillMode\",\"animationIterationCount\",\"animationName\",\"animationPlayState\",\"animationRange\",\"animationRangeEnd\",\"animationRangeStart\",\"animationTimeline\",\"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\",\"interpolateSize\",\"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\",\"overscrollBehavior\",\"overscrollBehaviorX\",\"overscrollBehaviorY\",\"padding\",\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"pageBreakAfter\",\"pageBreakBefore\",\"pageBreakInside\",\"paintOrder\",\"perspective\",\"perspectiveOrigin\",\"placeContent\",\"placeItems\",\"placeSelf\",\"pointerEvents\",\"position\",\"resize\",\"right\",\"rotate\",\"rowGap\",\"scrollBehavior\",\"scrollMargin\",\"scrollMarginBlock\",\"scrollMarginBlockEnd\",\"scrollMarginBlockStart\",\"scrollMarginBottom\",\"scrollMarginInline\",\"scrollMarginInlineEnd\",\"scrollMarginInlineStart\",\"scrollMarginLeft\",\"scrollMarginRight\",\"scrollMarginTop\",\"scrollPadding\",\"scrollPaddingBlock\",\"scrollPaddingBlockEnd\",\"scrollPaddingBlockStart\",\"scrollPaddingBottom\",\"scrollPaddingInline\",\"scrollPaddingInlineEnd\",\"scrollPaddingInlineStart\",\"scrollPaddingLeft\",\"scrollPaddingRight\",\"scrollPaddingTop\",\"scrollSnapAlign\",\"scrollSnapStop\",\"scrollSnapType\",\"scrollTimeline\",\"scrollTimelineAxis\",\"scrollTimelineName\",\"scrollbarColor\",\"scrollbarGutter\",\"scrollbarWidth\",\"shapeImageThreshold\",\"shapeMargin\",\"shapeOutside\",\"tabSize\",\"tableLayout\",\"textAlign\",\"textAlignLast\",\"textDecoration\",\"textDecorationColor\",\"textDecorationLine\",\"textDecorationSkipInk\",\"textDecorationStyle\",\"textDecorationThickness\",\"textIndent\",\"textOverflow\",\"textShadow\",\"textTransform\",\"textUnderlineOffset\",\"timelineScope\",\"top\",\"touchAction\",\"transform\",\"transformOrigin\",\"transformStyle\",\"transition\",\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\",\"translate\",\"translateX\",\"translateY\",\"translateZ\",\"unicodeBidi\",\"userSelect\",\"verticalAlign\",\"viewTimeline\",\"viewTimelineAxis\",\"viewTimelineInset\",\"viewTimelineName\",\"visibility\",\"whiteSpace\",\"widows\",\"width\",\"willChange\",\"wordBreak\",\"wordSpacing\",\"wordWrap\",\"writingMode\",\"zIndex\"]);P();var vP=/^-?[A-Z][0-9]?$/,CP=/^[a-z][0-9]?$/,_0=/var\\(\\s*(--[A-Za-z0-9-]+)/g,EP=t=>{let e=new Set,r=new Set;if(!t||typeof t!=\"object\")return{knownLetters:e,knownVars:r};for(let n in t){let o=t[n];if(!(!o||typeof o!=\"object\")){if(o.sequence&&typeof o.sequence==\"object\")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars==\"object\")for(let s in o.vars)r.add(s)}}return{knownLetters:e,knownVars:r}},AP=(t,e)=>{if(!e.size)return[];let r=t.split(/[(),\\s]+/).filter(Boolean),n=new Set;for(let o of r){if(!vP.test(o))continue;let s=o.charCodeAt(0)===45?o.slice(1):o;e.has(s)&&n.add(o)}return[...n]},TP=(t,e)=>{if(!e.size)return[];let r=[];_0.lastIndex=0;let n;for(;n=_0.exec(t);){let o=n[1];if(e.has(o))continue;let s=o.lastIndexOf(\"-\");if(s===-1)continue;let i=o.slice(s+1);if(!CP.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&r.push({varName:o,corrected:a})}return r},pu=new Set,x0=(t,e,r)=>{if(!pt()||!S(e)||!e)return;let n;try{n=T()}catch{return}let{knownLetters:o,knownVars:s}=EP(n);if(!o.size&&!s.size)return;let i=AP(e,o),a=TP(e,s);if(!i.length&&!a.length)return;let c=r?.__ref?.path?r.__ref.path.join(\".\"):r?.key||\"?\";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;pu.has(f)||(pu.add(f),console.warn(`[smbls/css-in-props] \"${t}\" on <${c}> looks like it contains an un-wrapped design-system token (\"${l}\") \\u2014 \"${t}\" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE \"${t}\" declaration (not just this argument). Wrap it in var(--<family>-${l.replace(\"-\",\"\")}) (or calc(-1 * var(--<family>-${l.replace(\"-\",\"\")})) for a negative). Value: \"${e}\"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;pu.has(u)||(pu.add(u),console.warn(`[smbls/css-in-props] \"${t}\" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \\u2014 the real variable is ${f}, so this reference silently never resolves. Value: \"${e}\"`))}};P();var OP=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,RP=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=ne(e,r);if(!s)return{[t]:i};if(/^@(media|supports|container)\\b/.test(s))return{[s]:i};if(s===\"print\")return{\"@media print\":i};if(s[0]===\"(\")return{[`@media screen and ${s}`]:i};let a=s.match(OP),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},w0=(t,e,r)=>({[t]:ne(e,r)}),ac=(t,e,r)=>{let n=`&${t}`,o=ne(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}},Ey=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return O(r)?r.call(e,e):!!r},PP=(t,e,r)=>{let n=t.slice(1),o=Ey(n,r);if(o===void 0&&(o=!!r[n]),!!o)return ne(e,r)},DP=(t,e,r)=>({[t]:e}),IP=(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=Ey(n,r);s!==void 0&&(o=s)}if(o)return ne(e,r)},LP=(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=Ey(n,r);s!==void 0&&(o=s)}if(!o)return ne(e,r)},Ay=(t,e)=>ne(t,e),Ty={\"@\":RP,\":\":ac,\"[\":ac,\"*\":ac,\"+\":ac,\"~\":ac,\"&\":w0,\">\":w0,$:PP,\"-\":DP,\".\":IP,\"!\":LP};var hu=Fr(),S0=(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(c!==null)if(a===\"class\"&&S(c)){let l=k0(c,e);l&&(r.unpack?yt(o,l):o.designSystemClass=l)}else if(a===\"true\"){let l=lt(c,e);yt(o,Ay(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=O(l)?l(e,e.state,e.context):l;f&&i(a,f),!hu&&v(o[a])&&(o[a].label=a)}else if(xt[a]){let l=lt(c,e);if(l===null)continue;R(l)&&(l=l.reduce((u,d)=>yt(u,d),{}));let f=xt[a](l,e,e.state,e.context);R(f)&&(f=f.reduce((u,d)=>yt(u,d),{})),f&&i(a,f),!hu&&v(o[a])&&(o[a].label=a)}else if(Et.has(a)){let l=lt(c,e);if(l===null)continue;typeof l==\"string\"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),hu||x0(a,l,e),i(a,{[a]:l}),!hu&&v(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&rt()}},k0=(t,e)=>{if(!S(t))return;let r=e?.context?.designSystem?.class;if(!r)return;let n;for(let o of t.split(\" \")){if(!o)continue;let s=r[o];if(!v(s))continue;let i=st(s);n=n?Wt(n,i):i}if(n)return ne(n,e)},v0=(t,e)=>{let r={};for(let n in t){let o=Ty[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\"?Wt(r[i],s[i]):r[i]=s[i])}}return r},ne=(t,e,r={unpack:!0})=>{let[n,o]=S0(t,e,r),s=v0(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return _i(n,s);n._selectors=s}return n},$P=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};P();var C0=t=>{if(v(t))return ne(t,t)},MP=(t,e)=>{let r=C0(t);return typeof e==\"function\"?e(r):pe(r)};P();P();function Py(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})}var E0=new Set;function A0(t,e,r){let n=String(e);if(E0.has(n))return;E0.add(n);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join(\".\"):t?.key!=null?String(t.key):\"(unknown element)\",i=r!=null?`resolves to a non-function (${typeof r}) \\u2014 it cannot be called`:\"is not registered in context.methods, context.functions, or context.utils, and is not an element method\",a=`[smbls] el.call('${n}') at <${s}>: \"${n}\" ${i}. Returning undefined (unchanged behavior) \\u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;Py(t,\"error\",[a]),console.error(a)}var O0=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),FP=new Set,R0=t=>O0(Oy,t)&&!(vo||FP).has(t),T0=new Set;function P0(t,e){T0.has(t)||(T0.add(t),pt()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \\u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function NP(...t){return Py(this,\"warn\",t),sa.apply(this,t)}function jP(...t){return Py(this,\"error\",t),Pn.apply(this,t)}var Oy={update:gs,remove:ys,getDB:la,getQuery:fa,getRootData:ra,getPath:Ji,nextElement:ia,previousElement:aa,verbose:Lo,warn:NP,error:jP,variables:ca,spotByPath:Zi,set(t,e){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}try{if(this.removeContent(),t!=null){let n=this.context?.__create;n&&n(t,this,\"content\",e)}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let n=r.__setQueued;n&&(r.__setQueued=null,this.set(n.content,n.options))}}},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(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:ea,getRootState:ta,getRootContext:na,getContext:oa,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=R0(t);n&&r?.methods?.[t]&&r.methods[t]!==this[t]&&P0(t,\"el.call\");let o=n?this[t]:r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof o==\"function\"){let s=En;if(!s||!s(o))return o.call(this,...e);pt()&&A0(this,t,Ie(o));return}pt()&&A0(this,t,o)},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)}},Ry=new WeakMap;function BP(t){if(!t)return Oy;let e=Ry.get(t);if(e)return e;e=Object.create(Oy);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Ry.set(t,e),e}function bs(t){let e=BP(t.context);Object.setPrototypeOf(t,e)}function gu(t){if(!t)return!1;let e=Ry.get(t);if(!e)return!1;let r=t.methods;if(!r)return!1;for(let n in r){if(R0(n)&&!O0(e,n)){P0(n,\"refreshContextProto\");continue}e[n]=r[n]}return!0}var mu=[],yu=!1,on=0;function bu(){return typeof performance<\"u\"&&typeof performance.now==\"function\"?performance.now():Date.now()}function D0(t){let e=typeof globalThis<\"u\"?globalThis.scheduler:null;if(e&&typeof e.yield==\"function\"){e.yield().then(t,t);return}if(typeof MessageChannel==\"function\"){let r=new MessageChannel;r.port1.onmessage=()=>{r.port1.close(),t()},r.port2.postMessage(0);return}setTimeout(t,0)}function Dy(){return on?bu()-on>=50:!1}var _s=0;function Iy(){_s===0&&!on&&(on=bu()),_s++}function Ly(){_s>0&&_s--,_s===0&&!yu&&(on=0)}function $y(t){mu.push(t),yu||(yu=!0,D0(I0))}function I0(){for(on=bu();mu.length;){let t=mu.shift();try{t()}catch(e){typeof console<\"u\"&&console.error&&console.error(\"[smbls] deferred mount chunk failed:\",e?.message||e)}if(bu()-on>=50)break}if(mu.length){D0(I0);return}yu=!1,on=0,_s=0}P();P();On();var By={};L(By,{STATE_METHODS:()=>L0,applyInitialState:()=>xu,applyStateMethods:()=>me,callStateMethod:()=>cc,createState:()=>Fy,isTracking:()=>jy,useHostState:()=>Ny});var L0=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\"]),_u=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Be=(t,e,r,{onlyIfAbsent:n}={})=>{_u(t,\"$\"+e,r),!(n&&Object.prototype.hasOwnProperty.call(t,e))&&_u(t,e,r)},cc=(t,e,...r)=>{if(!t)return;let n=t[\"$\"+e];if(typeof n==\"function\")return n.apply(t,r);let o=t[e];if(typeof o==\"function\")return o.apply(t,r)},me=(t,e)=>{if(wt(e)){let o=e.__raw||e;Be(o,\"toggle\",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),Be(o,\"set\",function(s,i={}){return e.$clean({preventStateUpdate:!0}),typeof s==\"object\"&&s!==null&&e.$update(s,i),e},{onlyIfAbsent:!0}),Be(o,\"setByPath\",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}),Be(o,\"getByPath\",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}),Be(o,\"removeByPath\",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}),Be(o,\"reset\",function(s={}){let i=e.$parse();return e.$set(i,s)}),Be(o,\"apply\",function(s,i={}){if(typeof s==\"function\"){let a=s(e);return e.$update(a,i)}}),Be(o,\"applyFunction\",function(s,i={}){if(typeof s==\"function\")return s(e),e.$update(e.$parse(),i)}),Be(o,\"rootUpdate\",function(s,i={}){let a=e;for(;a?.parent&&wt(a.parent);)a=a.parent;return cc(a,\"update\",s,i)}),Be(o,\"parentUpdate\",function(s,i={}){if(e.parent)return cc(e.parent,\"update\",s,i)}),Be(o,\"quietReplace\",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,\"root\")||Object.defineProperty(o,\"root\",{get:function(){let s=e,i=wt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,wt(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)if(_u(e,\"$\"+o,n[o]),typeof e[o]!=\"function\"){if(Object.prototype.hasOwnProperty.call(e,o)){fl(o,\"\");continue}_u(e,o,n[o])}};var Fy=function(t,e,r){return t.state=xu(t,e,r),t.state},xu=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return me(t,s),s}if(typeof o==\"string\")return n&&(n.__state=o),n.__stateType=\"string\",UP(o,t,e);if(typeof o==\"number\"||typeof o==\"boolean\"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=lr({value:o});return s.__element=t,e?.state&&(s.parent=e.state),me(t,s),s}if(typeof o==\"function\"&&(o=o(t,e?.state)||{}),typeof o==\"object\"&&!wt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=lr({...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)),me(t,s),typeof t.onStateCreated==\"function\"&&t.onStateCreated(t,s,t.context,r),s}return wt(o)?(o.__element=t,o):e?.state||{}};function My(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 UP(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?My(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?My(o,s):o??{}}let n=My(r.state,t);if(n&&typeof n==\"object\"&&!wt(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 Ny=(t,e)=>{if(!t)return M0;let r=zP(t,e);return!r||!r.state?M0:WP(r.state)},jy=()=>cl()!=null,VP=128;function zP(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<VP&&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 HP={get(t,e){return t[e]}},$0=new WeakMap,WP=t=>{let e=$0.get(t);return e||(e=new Proxy(t,HP),$0.set(t,e)),e},M0=new Proxy(Object.create(null),{get(){},has(){return!1}});var wu=\"3.14.792\";var F0=\"__SMBLS_ELEMENT_ID_ENGINE__\",N0=(t,e,r)=>{let n=e||wu,o=r||(typeof globalThis<\"u\"?globalThis:null);if(!o)return t;let s=o[F0];return s&&s.engine&&s.version===n?s.engine:(s||(o[F0]={version:n,engine:t}),t)};var W=(t,e)=>e.split(\" \").map(r=>t+\"-\"+r),Uy=\"top right bottom left\",Vy=Uy+\" block block-start block-end inline inline-start inline-end\",sn=\"start end\",Jn=\"width style color\",Su=t=>W(t,Vy),qP=(()=>{let t=W(\"border\",\"width style color image\");for(let e of Vy.split(\" \"))t.push(\"border-\"+e,...W(\"border-\"+e,Jn));return t})(),j0=t=>[...W(\"border-\"+t,Jn+\" start end\"),...W(\"border-\"+t+\"-start\",Jn),...W(\"border-\"+t+\"-end\",Jn)],vr={animation:W(\"animation\",\"name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end\"),background:W(\"background\",\"image position position-x position-y size repeat origin clip attachment color\"),border:qP};for(let t of[\"width\",\"style\",\"color\"])vr[\"border-\"+t]=Vy.split(\" \").map(e=>\"border-\"+e+\"-\"+t);for(let t of Uy.split(\" \"))vr[\"border-\"+t]=W(\"border-\"+t,Jn);vr[\"border-block\"]=j0(\"block\");vr[\"border-inline\"]=j0(\"inline\");Object.assign(vr,{\"border-image\":W(\"border-image\",\"source slice width outset repeat\"),\"border-radius\":\"top-left top-right bottom-right bottom-left start-start start-end end-start end-end\".split(\" \").map(t=>\"border-\"+t+\"-radius\"),columns:W(\"column\",\"width count\"),\"column-rule\":W(\"column-rule\",Jn),container:W(\"container\",\"name type\"),\"contain-intrinsic-size\":W(\"contain-intrinsic\",\"width height\"),flex:W(\"flex\",\"grow shrink basis\"),\"flex-flow\":W(\"flex\",\"direction wrap\"),font:[...W(\"font\",\"style variant weight stretch size\"),\"line-height\",...W(\"font\",\"family size-adjust kerning feature-settings variation-settings optical-sizing\")],gap:[\"row-gap\",\"column-gap\"],grid:W(\"grid\",\"template template-rows template-columns template-areas auto-rows auto-columns auto-flow\"),\"grid-template\":W(\"grid-template\",\"rows columns areas\"),\"grid-area\":W(\"grid\",\"row column row-start row-end column-start column-end\"),\"grid-row\":W(\"grid-row\",sn),\"grid-column\":W(\"grid-column\",sn),inset:[...Uy.split(\" \"),...W(\"inset\",\"block block-start block-end inline inline-start inline-end\")],\"inset-block\":W(\"inset-block\",sn),\"inset-inline\":W(\"inset-inline\",sn),\"list-style\":W(\"list-style\",\"type position image\"),margin:Su(\"margin\"),\"margin-block\":W(\"margin-block\",sn),\"margin-inline\":W(\"margin-inline\",sn),mask:W(\"mask\",\"image mode repeat position clip origin size composite\"),offset:W(\"offset\",\"position path distance rotate anchor\"),outline:W(\"outline\",Jn),overflow:W(\"overflow\",\"x y\"),\"overscroll-behavior\":W(\"overscroll-behavior\",\"x y\"),padding:Su(\"padding\"),\"padding-block\":W(\"padding-block\",sn),\"padding-inline\":W(\"padding-inline\",sn)});for(let t of[\"content\",\"items\",\"self\"])vr[\"place-\"+t]=[\"align-\"+t,\"justify-\"+t];Object.assign(vr,{\"scroll-margin\":Su(\"scroll-margin\"),\"scroll-padding\":Su(\"scroll-padding\"),\"text-decoration\":W(\"text-decoration\",\"line style color thickness\"),\"text-emphasis\":W(\"text-emphasis\",\"style color\"),transition:W(\"transition\",\"property duration timing-function delay behavior\")});var lc={};for(let t in vr)for(let e of vr[t])(lc[e]||(lc[e]=[])).push(t);var KP=new Set([\"rows\",\"cols\",\"wrap\"]),ku=(t,e)=>KP.has(e)&&Oe(t,e),xs=(t,e)=>!!(xt[e]||Et&&Et.has(e))&&!ku(t,e);var J0=N0({uniqId:1,scopedStyleId:0},wu),uc=[],Qn=new Set,Jy=!1,Q0=0,ws=null,hc=null;function Ss(){return typeof Date<\"u\"&&typeof Date.now==\"function\"?Date.now():0}function tk(){return typeof document<\"u\"&&document.visibilityState===\"hidden\"}var GP=250,YP=1e3;function XP(){return hc&&(hc!==(typeof requestAnimationFrame==\"function\"?requestAnimationFrame:null)||tk())?!0:Ss()-Q0>=YP}function ZP(){if(Jy=!0,Q0=Ss(),hc=null,typeof requestAnimationFrame!=\"function\"){let t=typeof clearTimeout==\"function\"?clearTimeout:null,e=setTimeout(pc,0);ws=t?()=>t(e):null;return}if(tk()){let t=typeof clearTimeout==\"function\"?clearTimeout:null,e=setTimeout(pc,GP);ws=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame==\"function\"?cancelAnimationFrame:null;hc=requestAnimationFrame;let e=requestAnimationFrame(pc);ws=t?()=>t(e):null}}function Du(){if(Jy){if(!XP())return;let t=ws;if(ws=null,t)try{t()}catch{}}ZP()}var ek=300,rk=15e4;function pc(){if(Jy=!1,ws=null,hc=null,Qn.size&&C2(),!uc.length)return;let t=uc.splice(0,uc.length);for(let e=0;e<t.length;e++){let r=t[e];if(r.node){if(!r.node.isConnected){let n=r.__ref||(r.__ref={});n.__mountAttempts=(n.__mountAttempts||0)+1,n.__mountFirstAttemptAt==null&&(n.__mountFirstAttemptAt=Ss());let o=Ss()-n.__mountFirstAttemptAt;n.__mountAttempts<=ek&&o<rk?(uc.push(r),Du()):console.warn(\"[DOMQL] onMounted dropped after\",n.__mountAttempts,\"attempts /\",o,\"ms \\u2014 node never connected:\",r.key||r.tag||r);continue}oe(\"Mounted\",r,r.__ref?.__mountOptions||{})}}}function qy(t,e){let r=t.__ref?.__autoGrow;r&&r.active&&nb(t,!0),typeof t.onMounted==\"function\"&&(t.__ref.__mountOptions=e,uc.push(t),Du())}function B0(t,e){if(typeof t.onContentUpdate!=\"function\")return;t.context?.plugins?.length&&Rt(\"contentUpdate\",t,e);let r=t.context?.designSystem;r&&ot(r);try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onContentUpdate\",error:n})||console.error('[DOMQL] Lifecycle \"onContentUpdate\" error:',n),t.context?.strictMode)throw n}finally{r&&rt()}}function Cr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function JP(t){return t.charAt(2).toLowerCase()+t.slice(3)}function QP(t){return t.toLowerCase()}function Ky(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function dc(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]=dc(o,s):r[n]=s}return r}function Tu(t){if(typeof t==\"string\")return t||void 0;if(typeof t==\"number\"||typeof t==\"bigint\")return String(t)}function nk(t,e,r){return Tu(t)||(e&&typeof e==\"object\"?Tu(e.key):void 0)||String(r)}function he(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t==\"string\"||typeof t==\"number\")&&(t={text:t}),r=Tu(r);let s=Tu(t.key),i=Object.create(null);i.key=r||s||`_${J0.uniqId++}`,i.parent=e||null,i.context=t.context||e?.context||n.context||{},i.context.__create||(i.context.__create=he);let a=i.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||i,path:e?.__ref?.path?[...e.__ref.path,i.key]:[i.key],origin:t};if(r&&!t.extends&&!t.extend){let m=r.indexOf(\"_\"),y=r.indexOf(\".\"),x=m>0?m:-1;if(y>0&&(x<0||y<x)&&(x=y),x>0){let b=r.substring(0,x),_=i.context?.components;_&&(_[b]||_[\"smbls.\"+b])?t={...t,extends:b}:_&&pt()&&(/^[A-Z]\\w*_\\d+$/.test(r)||/^[A-Z]\\w*\\.\\w+$/.test(r))&&console.warn(`[smbls] auto-extend: key \"${r}\" looks like an instance of \"${b}\" but neither \"${b}\" nor \"smbls.${b}\" is registered in context.components \\u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}hs(i,t,n);let c=new Set([\"childProps\",\"attr\",\"style\",\"scope\",\"data\"]),l=i.props&&typeof i.props==\"object\"?i.props:null;for(let m in t){if(m===\"parent\"||m===\"node\"||m===\"__ref\"||m===\"extends\"||m===\"context\"||m===\"props\")continue;if(m===\"key\"){s&&(i.key=s);continue}let y=t[m],x=i[m],b=x&&y&&typeof x==\"object\"&&typeof y==\"object\"&&!Array.isArray(x)&&!Array.isArray(y)&&typeof x!=\"function\"&&typeof y!=\"function\";b&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?i[m]=dc(x,y):b&&c.has(m)?i[m]={...x,...y}:b&&Ky(m)?i[m]=dc(x,y):i[m]=y}function f(m){for(let y in m){let x=m[y],b=i[y],_=b&&x&&typeof b==\"object\"&&typeof x==\"object\"&&!Array.isArray(b)&&!Array.isArray(x)&&typeof b!=\"function\"&&typeof x!=\"function\";_&&y.charCodeAt(0)>=65&&y.charCodeAt(0)<=90?i[y]=dc(b,x):_&&c.has(y)?i[y]={...b,...x}:_&&Ky(y)?i[y]=dc(b,x):i[y]=x}}l&&f(l),t.props&&typeof t.props==\"object\"&&f(t.props),t.classlist!==void 0&&(i.classlist=t.classlist),t.text!==void 0&&(i.text=t.text),t.html!==void 0&&(i.html=t.html);let u=i.scope&&typeof i.scope==\"object\"?i.scope:null,d=e?.scope,h=i.context&&typeof i.context.globalScope==\"object\"&&i.context.globalScope||null,p=d||h||null;if(t.scope!==void 0||u){let m={};u&&Object.assign(m,u),t.scope!==void 0&&Object.assign(m,t.scope),i.scope=ll(m,p)}else p&&(i.scope=p);if(t.if!==void 0&&(i.if=t.if),bs(i),t2(i,e,t),i.if!=null){let m;if(typeof i.if==\"function\")try{m=i.if(i,i.state,i.context)}catch(y){if(m=!1,a.__ifError=y,typeof console<\"u\"&&console.warn){let x=i.key||i.tag||\"?\";console.warn(`[smbls] \\`if:\\` evaluator threw on ${x} \\u2014 treating as false:`,y?.message||y)}}else m=i.if;a.__if=!!m}if(a.__if)typeof i.if==\"function\"&&(a.__ifInitialized=!0);else return e&&(e[i.key]=i),typeof i.if==\"function\"&&ik(i,a,i.if),i;i.tag||(i.tag=Qr(i)),oe(\"Init\",i,n);let g=i.node=tn(i);if(!g)return i;if(i.tag===\"fragment\"){let y=(i.context?.document||globalThis.document).createComment(\"\");g.appendChild(y),a.__fragmentAnchor=y}oe(\"AttachNode\",i,n),g.setAttribute&&i.key&&g.setAttribute(\"data-key\",i.key),e&&(e[i.key]=i,e.__ref?.__children&&(e.__ref.__children.includes(i.key)||e.__ref.__children.push(i.key))),g.setAttribute&&i.context?.scopeSelector&&i.context.scopeSelector!==\":root\"&&i.context.key&&i.key===i.context.key&&g.setAttribute(\"data-smbls-app\",i.context.key),i.id&&g.setAttribute&&(g.id=i.id),mk(i,n),sk(i),Gy(i),pk(i),hk(i);try{yk(i,n)}catch(m){if(typeof console<\"u\"&&console.error){let y=i.__ref?.path?.join(\".\")||i.key||\"<root>\";console.error(`[smbls] createChildren failed at ${y}:`,m?.message||m,m?.stack?`\n`+m.stack.split(`\n`).slice(0,6).join(`\n`):\"\")}}if(Pu(i,!0),bk(i,e,o),typeof i.html==\"function\"&&i.node&&!i.node.innerHTML){let m=i.context?.designSystem;m&&ot(m);try{let y=i.html(i,i.state,i.context);y!=null&&typeof y!=\"function\"&&(i.node.innerHTML=y)}catch{}finally{m&&rt()}}if(oe(\"Create\",i,n),oe(\"Complete\",i,n),oe(\"Render\",i,n),oe(\"RenderRouter\",i,n),qy(i,n),typeof i.onFrame==\"function\"){let m=i.onFrame,y=i.context?.designSystem,x=()=>{if(i.node){if(i.node.isConnected){y&&ot(y);try{m(i,i.state,i.context)}catch(b){console.error(\"[DOMQL] onFrame error:\",b)}finally{y&&rt()}}requestAnimationFrame(x)}};requestAnimationFrame(x)}return i}function t2(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&&!wt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,me(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=t.context,u=a.lang||l.defaultLang||\"en\",d=new Set,h=(m,y)=>{d.has(m)||hr(f,m,c)&&(c[m]=y,d.add(m),Je(f,m))},p=l.translations[u];if(p&&typeof p==\"object\")for(let m in p)h(m,p[m]);let g=new Set(l.languages||[]);for(let m in l.translations)g.has(m)||h(m,l.translations[m])}t.state=wt(c)?c:lr(c),t.state.__element=t,t.state.root=t.state,me(t,t.state),Io?.(a,t.state)}else t.state={},Object.defineProperty(t.state,\"root\",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),me(t,t.state);return}if(typeof i==\"string\"){if(t.state=ok(i,e),t.state&&typeof t.state==\"object\"&&!wt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,\"root\",{value:a,enumerable:!1,configurable:!0,writable:!0})}me(t,t.state);return}if(typeof i==\"function\"){let a=i(t,e?.state);t.state=wt(a)?a:lr(a||{})}else wt(i)?t.state=i:t.state=lr({...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,me(t,t.state),Io?.(i,t.state)}function zy(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 ok(t,e){if(!e)return{};if(t===\".\")return e.state||{};if(t.startsWith(\"../\")){let o=t.slice(3);return o?zy(e.state,o):e.state??{}}if(t.startsWith(\"~/\")){let o=e.state?.root||e.state,s=t.slice(2);return s?zy(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=zy(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{}}var e2=new Set([\"s\",\"state\",\"ctx\",\"context\"]);function r2(t){try{let r=(typeof Ie==\"function\"?Ie(t):Function.prototype.toString.call(t)).match(/^[^(]*\\(([^)]*)\\)/);return r?r[1].split(\",\").map(n=>n.trim().split(\"=\")[0].trim()).filter(Boolean):[]}catch{return[]}}function n2(t){if(typeof t!=\"function\"||t.length!==2)return!1;let e=r2(t);if(e.length<2)return!1;let r=e[1].replace(/[{}[\\]]/g,\"\").trim();return r.length>0&&!e2.has(r)}function o2(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\"||Bt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Cr(a)||xt[a]||Et&&Et.has(a)||Oe(r,a)||(pt()&&n2(t[a])&&console.warn(`[smbls] custom prop \"${a}\"${t.key?` on key \"${t.key}\"`:\"\"} is a function \\u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \\u2026) instead of reading el.${a}(\\u2026) directly (see RULES.md Rule 8).`),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&&rt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function s2(t,e){if(!(!Array.isArray(e)||e.length===0))for(let r=0;r<e.length;r++){let n=e[r];try{typeof n==\"function\"?n(t,t.state,t.context):typeof n==\"string\"&&t.state?.[n]}catch{}}}function Ut(t,e,r){return!Array.isArray(e)||e.length===0?r:function(...n){return s2(t,e),r.apply(this,n)}}function fc(t,e){if(!(!t||Array.isArray(t)||typeof t!=\"object\"))return t[e]}function ut(t,e){return()=>t.path.join(\".\")+\"::\"+e}var U0=new Set;function ye(t,e,r){if(!pt())return;let n=ut(t,e)();U0.has(n)||(U0.add(n),console.warn(`[smbls] \"${e}\" effect threw on ${t.path.join(\".\")} \\u2014 keeping previous value:`,r?.message||r))}var V0=/(['\"`])((?:\\\\.|(?!\\1)[^\\\\])*)\\1/g,i2=(t,e)=>{let r;try{r=String(t)}catch{return}if(!r.includes(\"{{\"))return;V0.lastIndex=0;let n;for(;(n=V0.exec(r))!==null;)n[2].includes(\"{{\")&&e.add(n[2])},a2=(t,e)=>!Cr(t)&&!xs(e,t),z0=(t,e,r,n)=>{if(typeof e==\"string\"){e.includes(\"{{\")&&r.add(e);return}typeof e==\"function\"&&a2(t,n)&&i2(e,r)},c2=[\"attr\",\"aria\",\"data\"],l2=t=>{if(c2.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},f2=t=>{let e=new Set,r=t.tag||\"div\";for(let n of Object.keys(t)){let o=Object.getOwnPropertyDescriptor(t,n),s=o&&o.value;if(s&&typeof s==\"object\"&&!Array.isArray(s)){if(!l2(n))continue;for(let i in s)z0(i,s[i],e,r);continue}z0(n,s,e,r)}return e};function sk(t,e){let r=t.__ref,n=!!(e&&e.skipIfEffect),o=f2(t);if(r.__authoredTemplates)for(let c of o)r.__authoredTemplates.add(c);else r.__authoredTemplates=o;if(o2(t),typeof t.text==\"function\"){let c=t.text,l=Ut(t,t.textDeps,c),f=G(()=>{if(!r.contentManaged)try{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!=\"function\"&&typeof u!=\"object\"&&(typeof u==\"string\"&&u.includes(\"{{\")&&(u=$t.call(t,u,t.state)),ms(t,u))}catch(u){ye(r,\"text\",u)}},{depth:r.path.length,label:ut(r,\"text\")});r.__effects.push(f),r.__exec.text=c}else if(typeof t.text==\"string\"&&t.text.includes(\"{{\")){let c=t.text,l=G(()=>{if(r.contentManaged)return;let f=$t.call(t,c,t.state);f!=null&&(t.text=f),t.node&&ms(t,f??\"\")},{depth:r.path.length,label:ut(r,\"text\")});r.__effects.push(l),r.__exec.text=c}let s=t.tag||\"div\";for(let c of Object.keys(t))if(typeof t[c]==\"function\"&&!Bt.has(c)&&!Cr(c)&&!r.__exec[c]&&!ku(s,c)){if(xt[c]){let l=t[c],f=Ut(t,t[c+\"Deps\"],l),u=c,d,h=null,p=null,g,m=G(()=>{let y=t.context?.designSystem;y&&ot(y);try{let x=f(t,t.state,t.context);uu();let b;try{b=xt[u](x,t,t.state,t.context)}finally{du()}if(Array.isArray(b)){let w={};for(let k of b)if(k)for(let E in k)w[E]=k[E];b=w}let _=u===\"show\"||u===\"hide\";if(b&&t.node&&u2(b)){let w=Eu(b);if(w===null||w!==g){g=w;let k=pe(b,null,t.context?.cssPrefix),E=k?k.split(\" \").filter(Boolean):null;if(t.node.classList){if(p)for(let D of p)t.node.classList.remove(D);if(E&&E.length)for(let D of E)t.node.classList.add(D);p=E}}d=void 0,h=null}else if(b&&t.node){if(p){for(let k of p)t.node.classList.remove(k);p=null,g=void 0}let w=Eu(b);if(w===null||w!==d||!Cu(t.node,h)){d=w;let k=q0(t,b);h=vu(t.node,k)}}else t.node&&_&&(d=void 0,h=null,t.node.style.display=\"\")}finally{y&&rt()}},{depth:r.path.length,label:ut(r,u)});r.__effects.push(m),r.__exec[c]=l}else if(Et&&Et.has(c)){let l=t[c],f=Ut(t,t[c+\"Deps\"],l),u=c,d,h=null,p=G(()=>{let g=t.context?.designSystem;g&&ot(g);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+\":\"+String(m);if(y!==d||!Cu(t.node,h)){d=y;let x={[u]:m},b=q0(t,x);h=vu(t.node,b)}}else d=void 0,h=null,t.node.style[u]=\"\"}finally{g&&rt()}},{depth:r.path.length,label:ut(r,u)});r.__effects.push(p),r.__exec[c]=l}}if(typeof t.html==\"function\"){let c=t.html,l=Ut(t,t.htmlDeps,c),f=G(()=>{let u=t.context?.designSystem;u&&ot(u);try{let d=l(t,t.state,t.context);t.node&&d!=null&&typeof d!=\"function\"&&(t.node.innerHTML=d)}finally{u&&rt()}},{depth:r.path.length,label:ut(r,\"html\")});r.__effects.push(f),r.__exec.html=c}if(typeof t.value==\"function\"){let c=t.value,l=Ut(t,t.valueDeps,c),f=G(()=>{try{let u=l(t,t.state,t.context);typeof u==\"string\"&&u.includes(\"{{\")&&(u=$t.call(t,u,t.state)),W0(t,u)}catch(u){ye(r,\"value\",u)}},{depth:r.path.length,label:ut(r,\"value\")});r.__effects.push(f),r.__exec.value=c}else if(typeof t.value==\"string\"&&t.value.includes(\"{{\")){let c=t.value,l=G(()=>{try{W0(t,$t.call(t,c,t.state))}catch(f){ye(r,\"value\",f)}},{depth:r.path.length,label:ut(r,\"value\")});r.__effects.push(l),r.__exec.value=c}if(typeof t.style==\"function\"){let c=t.style,l=Ut(t,t.styleDeps,c),f,u=null,d=G(()=>{let h=l(t,t.state,t.context),p=Eu(h);(p===null||p!==f||!Cu(t.node,u))&&(f=p,d2(t.node,u,h),to(t.node,h),u=vu(t.node,h))},{depth:r.path.length,label:ut(r,\"style\")});r.__effects.push(d),r.__exec.style=c}else if(t.style&&typeof t.style==\"object\")for(let c in t.style){let l=t.style[c];if(typeof l!=\"function\")continue;let f=Ut(t,fc(t.styleDeps,c),l),u,d=null,h=G(()=>{try{let p=f(t,t.state,t.context);if(t.node){let g=c+\":\"+String(p);if(g!==u||!Cu(t.node,d)){u=g;let m={[c]:p};to(t.node,m),d=vu(t.node,m)}}}catch(p){ye(r,\"style.\"+c,p)}},{depth:r.path.length,label:ut(r,\"style.\"+c)});r.__effects.push(h)}if(t.attr&&typeof t.attr==\"object\"){for(let c in t.attr)if(typeof t.attr[c]==\"function\"){let l=Ut(t,fc(t.attrDeps,c),t.attr[c]),f=c,u=G(()=>{try{let d=l(t,t.state,t.context);typeof d==\"string\"&&d.includes(\"{{\")&&(d=$t.call(t,d,t.state)),t.node?.setAttribute&&(d==null||d===!1&&!ir(f)?t.node.removeAttribute(f):typeof d!=\"function\"&&typeof d!=\"object\"&&t.node.setAttribute(f,ee(f,d)))}catch(d){ye(r,\"attr.\"+f,d)}},{depth:r.path.length,label:ut(r,\"attr.\"+f)});u._attrName=f.toLowerCase(),r.__effects.push(u)}else if(typeof t.attr[c]==\"string\"&&t.attr[c].includes(\"{{\")){let l=t.attr[c],f=c,u=G(()=>{try{let d=$t.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,ee(f,d??\"\"))}catch(d){ye(r,\"attr.\"+f,d)}},{depth:r.path.length,label:ut(r,\"attr.\"+f)});u._attrName=f.toLowerCase(),r.__effects.push(u)}}if(t.aria&&typeof t.aria==\"object\")for(let c in t.aria){let l=t.aria[c];if(typeof l==\"string\"&&l.includes(\"{{\")){let h=l,p=\"aria-\"+c.replace(/[A-Z]/g,m=>\"-\"+m.toLowerCase()),g=G(()=>{try{let m=$t.call(t,h,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(p,ee(p,m??\"\"))}catch(m){ye(r,\"aria.\"+c,m)}},{depth:r.path.length,label:ut(r,\"aria.\"+c)});g._attrName=p,r.__effects.push(g);continue}if(typeof l!=\"function\")continue;let f=Ut(t,fc(t.ariaDeps,c),t.aria[c]),u=\"aria-\"+c.replace(/[A-Z]/g,h=>\"-\"+h.toLowerCase()),d=G(()=>{try{let h=f(t,t.state,t.context);if(!t.node?.setAttribute)return;h==null?t.node.removeAttribute(u):typeof h!=\"function\"&&typeof h!=\"object\"&&t.node.setAttribute(u,ee(u,h))}catch(h){ye(r,\"aria.\"+c,h)}},{depth:r.path.length,label:ut(r,\"aria.\"+c)});d._attrName=u,r.__effects.push(d)}if(t.data&&typeof t.data==\"object\")for(let c in t.data){let l=t.data[c];if(typeof l==\"string\"&&l.includes(\"{{\")){let p=l,g=\"data-\"+c.replace(/[A-Z]/g,y=>\"-\"+y.toLowerCase()),m=G(()=>{try{let y=$t.call(t,p,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(g,y??\"\")}catch(y){ye(r,\"data.\"+c,y)}},{depth:r.path.length,label:ut(r,\"data.\"+c)});m._attrName=g,r.__effects.push(m);continue}if(typeof l!=\"function\")continue;let f=Ut(t,fc(t.dataDeps,c),t.data[c]),d=\"data-\"+c.replace(/[A-Z]/g,p=>\"-\"+p.toLowerCase()),h=G(()=>{try{let p=f(t,t.state,t.context);if(!t.node?.setAttribute)return;p==null||p===!1?t.node.removeAttribute(d):typeof p!=\"function\"&&typeof p!=\"object\"&&t.node.setAttribute(d,p===!0?\"\":p)}catch(p){ye(r,\"data.\"+c,p)}},{depth:r.path.length,label:ut(r,\"data.\"+c)});h._attrName=d,r.__effects.push(h)}let i=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(i)for(let c in i){if(typeof i[c]!=\"function\")continue;let l=Ut(t,fc(t.classDeps,c),i[c]),f=G(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u==\"string\"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){ye(r,\"class.\"+c,u)}},{depth:r.path.length,label:ut(r,\"class.\"+c)});r.__effects.push(f)}!n&&typeof t.if==\"function\"&&ik(t,r,t.if);for(let c of Object.keys(t)){if(Bt.has(c)||typeof t[c]!=\"function\")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||Cr(c))continue;let f=t[c];r.__exec[c]=f;let u=t.tag||\"div\";if(Oe(u,c)&&!xs(u,c)){let d=sr(c)||c,h=Ut(t,t[c+\"Deps\"],f),p=G(()=>{try{let g=h(t,t.state,t.context);typeof g==\"string\"&&g.includes(\"{{\")&&(g=$t.call(t,g,t.state)),t.node?.setAttribute&&(g==null||g===!1&&!ir(d)?t.node.removeAttribute(d):typeof g!=\"function\"&&typeof g!=\"object\"&&(d===\"src\"&&\"src\"in t.node?t.node.src=g:t.node.setAttribute(d,ee(d,g))))}catch(g){ye(r,c,g)}},{depth:r.path.length,label:ut(r,c)});p._attrName=d.toLowerCase(),r.__effects.push(p)}}let a=t.tag||\"div\";for(let c of Object.keys(t)){if(Bt.has(c))continue;let l=t[c];if(typeof l!=\"string\"||!l.includes(\"{{\"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Cr(c)||xs(a,c)||Zn[c]||!Oe(a,c))continue;let u=sr(c)||c,d=G(()=>{try{let h=$t.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,ee(u,h??\"\"))}catch(h){ye(r,c,h)}},{depth:r.path.length,label:ut(r,c)});d._attrName=u.toLowerCase(),r.__effects.push(d)}if(b2(t),S2(t),typeof t.onStateUpdate==\"function\"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=G(()=>{let h=[];for(let y=0;y<l.length;y++){let x=l[y];try{h[y]=typeof x==\"function\"?x(t,t.state,t.context):t.state?.[x]}catch{h[y]=void 0}}if(!f){f=!0,u=h;return}let p=h.length!==u.length;for(let y=0;!p&&y<h.length;y++)h[y]!==u[y]&&(p=!0);let g=u;if(u=h,!p)return;let m=t.context?.designSystem;m&&ot(m);try{c(t,t.state,t.context,{prev:g,next:h})}catch(y){if(t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onStateUpdate\",error:y})||console.error('[DOMQL] Lifecycle \"onStateUpdate\" error:',y),t.context?.strictMode)throw y}finally{m&&rt()}},{depth:r.path.length,label:ut(r,\"onStateUpdate\")});r.__effects.push(d)}w2(t)}function H0(t){let e=t.parent,r=e?.node;if(!r||!t.node){bk(t,t.parent);return}let n=null,o=Object.keys(e),s=o.indexOf(t.key);for(let i=s+1;i<o.length;i++){let a=e[o[i]];if(a?.node?.parentNode===r){n=a.node;break}}n?r.insertBefore(t.node,n):r.appendChild(t.node)}function ik(t,e,r){let n=Ut(t,t.ifDeps,r),o=G(()=>{let s;try{s=n(t,t.state,t.context)}catch(a){if(s=!1,e.__ifError=a,typeof console<\"u\"&&console.warn){let c=t.key||t.tag||\"?\";console.warn(`[smbls] \\`if:\\` reactive effect threw on ${c} \\u2014 treating as false:`,a?.message||a)}return}let i=e.__if;if(e.__if=!!s,i&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove==\"function\"&&t.onRemove(t)}catch(a){console.error(\"[smbls] onRemove error:\",a)}}else if(!i&&e.__if)if(e.__ifInitialized)t.node||(t.node=tn(t)),t.node&&(t.node.ref=t),H0(t),Gy(t),oe(\"Render\",t,{}),qy(t,{});else{if(e.__ifInitialized=!0,t.tag||(t.tag=Qr(t)),oe(\"Init\",t,{}),t.node||(t.node=tn(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.tag===\"fragment\"&&!e.__fragmentAnchor){let c=(t.context?.document||globalThis.document).createComment(\"\");t.node.appendChild(c),e.__fragmentAnchor=c}oe(\"AttachNode\",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute(\"data-key\",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),mk(t,{}),sk(t,{skipIfEffect:!0}),Gy(t),pk(t),hk(t),yk(t,{}),H0(t),oe(\"Create\",t,{}),oe(\"Complete\",t,{}),oe(\"Render\",t,{}),oe(\"RenderRouter\",t,{}),qy(t,{})}},{depth:e.path.length,label:ut(e,\"if\")});e.__effects.push(o)}function ms(t,e){let r=t.node;if(!r)return;let n=e==null||typeof e==\"object\"?\"\":String(e);if(t.tag===\"string\"){r.nodeValue!==n&&(r.nodeValue=n);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==r&&(s=null),!s){let i=r.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==n&&(s.nodeValue=n):r.firstChild?(s=(r.ownerDocument||t.context?.document||globalThis.document).createTextNode(n),r.insertBefore(s,r.firstChild)):(r.textContent=n,s=r.firstChild&&r.firstChild.nodeType===3?r.firstChild:null),o&&(o.__textNode=s||null)}function W0(t,e){let r=t.node;if(!r||!(\"value\"in r))return;let n=e==null?\"\":String(e);if(r.value===n)return;let o=typeof document<\"u\"&&document.activeElement===r,s=o&&typeof r.selectionStart==\"number\"?r.selectionStart:null,i=o&&typeof r.selectionEnd==\"number\"?r.selectionEnd:null;if(r.value=n,o&&s!=null&&i!=null)try{r.setSelectionRange(s,i)}catch{}}function Gy(t){let{node:e}=t;if(e){if((typeof t.text==\"string\"&&!t.text.includes(\"{{\")||typeof t.text==\"number\")&&ms(t,t.text),dk(t),typeof t.html==\"string\"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!=\"function\"&&!(typeof t.value==\"string\"&&t.value.includes(\"{{\"))&&\"value\"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style==\"object\"){let r=t.style;for(let n in t.style)if(typeof t.style[n]==\"function\"){r={};for(let o in t.style)typeof t.style[o]!=\"function\"&&(r[o]=t.style[o]);break}to(e,r)}if(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&&(typeof n==\"string\"&&n.includes(\"{{\")||n===!1&&!ir(r)||e.setAttribute&&e.setAttribute(r,ee(r,n)))}if(typeof t.themeModifier==\"string\"&&t.themeModifier&&e.setAttribute&&e.setAttribute(\"data-theme\",t.themeModifier),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||typeof n==\"string\"&&n.includes(\"{{\")||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 Eu(t){if(t==null||typeof t!=\"object\")return\"s:\"+String(t);try{return\"o:\"+JSON.stringify(t)}catch{return null}}function u2(t){if(!t||typeof t!=\"object\")return!1;for(let e in t){let r=t[e];if(r&&typeof r==\"object\"&&!Array.isArray(r))return!0}return!1}function vu(t,e){if(!t||!t.style||!e)return null;let r=t.style,n=[];for(let o in e){if(e[o]==null||o.charAt(0)===\"&\")continue;let i=Iu(o);n.push(i,Qy(r,i),ak(r,i))}return n}function Qy(t,e){return typeof t.getPropertyValue==\"function\"?t.getPropertyValue(e):\"\"}function ak(t,e){return typeof t.getPropertyPriority==\"function\"?t.getPropertyPriority(e):\"\"}function Iu(t){return Ou(t)?t:t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function d2(t,e,r){if(!t||!t.style||!e||!e.length)return;let n=t.style,o=new Set;if(r&&typeof r==\"object\")for(let s in r)r[s]==null||s.charAt(0)===\"&\"||o.add(Iu(s));for(let s=0;s<e.length;s+=3){let i=e[s];o.has(i)||Qy(n,i)===e[s+1]&&typeof n.removeProperty==\"function\"&&n.removeProperty(i)}}function Cu(t,e){if(!e||!t||!t.style)return!1;let r=t.style;for(let n=0;n<e.length;n+=3)if(Qy(r,e[n])!==e[n+1]||ak(r,e[n])!==e[n+2])return!1;return!0}var Ou=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45;function p2(t){let e=null;for(let r in t)t[r]!=null&&r.charAt(0)!==\"&\"&&(e||(e=new Set),e.add(Iu(r)));return e}function h2(t,e,r,n){let o=t.__ref;if(!o)return;let s=null;if(r)for(let i of r){if(n&&n.has(i))continue;let a=e[i];if(a==null||typeof a==\"object\")continue;let c=Iu(i);lc[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function ck(t,e){let r=t.__ref,n=r&&r.__declaredLonghands;if(!n||!e)return null;let o=null;for(let s in n){if(e.has(s))continue;let i=lc[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=n[s])}return o}function q0(t,e){let r=t.node;to(r,e);let n=p2(e);if(!n)return e;let o=t.__ref;if(o)if(o.__inlineCssKeys)for(let i of n)o.__inlineCssKeys.add(i);else o.__inlineCssKeys=new Set(n);let s=ck(t,n);return s?(to(r,s),Object.assign({},e,s)):e}function g2(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let r=ck(t,e.__inlineCssKeys);r&&to(t.node,r)}function to(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=Ou(n)?n: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&&m2(t,r)}function m2(t,e){let r=`_ds${J0.scopedStyleId++}`;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 d in l){let h=l[d];if(typeof h==\"object\"){let p=d.includes(\"&\")?c.split(\", \").map(m=>d.replace(/&/g,m)).join(\", \"):c.split(\", \").map(m=>`${m} ${d}`).join(\", \"),g=\"\";for(let m in h)g+=`${m.replace(/[A-Z]/g,y=>\"-\"+y.toLowerCase())}: ${h[m]};`;u+=Sr(`${p} { ${g} }`,p)+`\n`}else f+=`${d.replace(/[A-Z]/g,p=>\"-\"+p.toLowerCase())}: ${h};`}f&&(s+=Sr(`${c} { ${f} }`,c)+`\n`),u&&(s+=u)}}s&&(o.textContent+=s)}var K0=new Set;function G0(t){if(!Array.isArray(t))return\"\";let e=[];for(let r=0;r<t.length;r++)typeof t[r]==\"string\"&&t[r].length&&e.push(t[r]);return e.sort(),e.join(\"|\")}function y2(t,e,r){let n=G0(r);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(G0(o)===n)return;let s=t.__ref.path?t.__ref.path.join(\".\"):t.key||\"?\";K0.has(s)||(K0.add(s),console.warn(`[smbls] subscribeTo function at \"${s}\" resolved to a DIFFERENT key list one microtask after create \\u2014 wired [${r.join(\", \")||\"(none)\"}], probed [${Array.isArray(o)?o.join(\", \"):String(o)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element create.js) \\u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \\u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function b2(t){let e=t.subscribeTo,r=typeof e==\"function\",n=e;if(r)try{n=e(t,t.state,t.context)}catch{n=null}if(r&&pt()&&y2(t,e,Array.isArray(n)?n:[]),!Array.isArray(n)||n.length===0)return;let o=t.__ref;for(let s=0;s<n.length;s++){let i=n[s];if(typeof i!=\"string\"||i.length===0)continue;let a=i.split(\".\"),c=a[0],l=a.slice(1),f={value:!1},u=G(()=>{let d=t.state&&(wt(t.state)?t.state.root:null);if(!d||!wt(d))return;let h=d;h=h[c];for(let g=0;g<l.length&&!(h==null||typeof h!=\"object\");g++)if(wt(h))h=h[l[g]];else break;if(!f.value)return;let p=!1;if(typeof t.onBeforeUpdate==\"function\"){let g=t.context?.designSystem;g&&ot(g);try{if(my(o)){let m=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});m&&typeof m.then==\"function\"?m.then(()=>kr(o,!1),y=>{kr(o,!0),t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onBeforeUpdate\",error:y})||console.error(\"[DOMQL] subscribeTo onBeforeUpdate error:\",y)}):(kr(o,!1),m===!1&&(p=!0))}}catch(m){kr(o,!0),t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onBeforeUpdate\",error:m})||console.error(\"[DOMQL] subscribeTo onBeforeUpdate error:\",m)}finally{g&&rt()}}if(!p&&t.node&&o.__effects)for(let g=0;g<o.__effects.length;g++){let m=o.__effects[g];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute==\"function\"&&m._execute()}if(!p&&typeof t.onUpdate==\"function\"){let g=t.context?.designSystem;g&&ot(g);try{t.onUpdate(t,t.state,t.context)}catch(m){t.context?.plugins?.length&&Rt(\"error\",t,{hook:\"onUpdate\",error:m})||console.error(\"[DOMQL] subscribeTo onUpdate error:\",m)}finally{g&&rt()}}},{depth:o.path.length,label:ut(o,\"subscribeTo(\"+i+\")\")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function tb(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith(\"@media\")&&!t.startsWith(\"@keyframes\")&&!t.startsWith(\"@supports\")&&!t.startsWith(\"@container\")&&(t===\"@dark\"||t===\"@light\"||!e.context?.designSystem?.media?.[t.slice(1)])}function eb(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\\b/.test(t))return t;let r=e.context?.designSystem?.media?.[t.slice(1)];return r?/^@(media|supports|container)\\b/.test(r)?r:`@media ${r}`:t}var Y0=new Set;function _2(t,e){let r=e?.__ref?.path?e.__ref.path.join(\".\"):e?.key||\"?\",n=r+\"::\"+t;Y0.has(n)||(Y0.add(n),console.warn(`[smbls/css] \"${t}\" at ${r} is a CHILD-COMPONENT key nested inside a pseudo/selector block (\":hover\", \"@dark\", etc.) \\u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}function ks(t,e,r,n){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(xt[a]){let u=xt[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let h of d)h&&Object.assign(o,h)}}else o[a]=c;if(l)for(let u in o)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c==\"function\"&&(c=c(e,e.state,e.context)),c==null||typeof c==\"function\")continue;if(typeof c==\"object\"&&!Array.isArray(c)){if(a===\"style\"){for(let h in c){let p=c[h];if(typeof p==\"function\"&&(p=p(e,e.state,e.context)),p==null||typeof p==\"function\")continue;let g=typeof e[h]==\"function\"&&(xt[h]||Et&&Et.has(h))||!!(n&&n.has(h));i(h,p,g)}continue}if(tb(a,e)){let h=ks(c,e,!1,n);Object.keys(h).length&&(o[`[data-theme=\"${a.slice(1)}\"] &`]=h);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){pt()&&_2(a,e);continue}let u=eb(a,e),d=ks(c,e,!1,n);Object.keys(d).length&&(o[u]=d);continue}let l=typeof e[a]==\"function\"&&(xt[a]||Et&&Et.has(a)),f=!!(n&&n.has(a));i(a,c,l||f)}if(r)for(let a in o)s.add(a);for(let a of s){let c=o[a];typeof c==\"string\"&&!c.includes(\"!important\")&&(o[a]=c+\" !important\")}return o}var Ru=t=>!!t&&typeof t==\"object\"&&!Array.isArray(t);function lk(t,e){for(let r in e){let n=e[r];t[r]=Ru(n)?lk(Ru(t[r])?t[r]:{},n):n}return t}function x2(t,e){if(!Ru(e))return;let r;for(let n of t.split(\" \")){let o=n?e[n]:null;Ru(o)&&(r=lk(r||{},o))}return r}function rb(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t==\"function\")return!0;if(t&&typeof t==\"object\"&&!Array.isArray(t)){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&rb(t[r],e+1))return!0}return!1}function fk(t,e,r){if(!e||typeof e!=\"object\"||Array.isArray(e))return null;if(tb(t,r)){let s=ks(e,r,!1);return Object.keys(s).length?{cssProp:`[data-theme=\"${t.slice(1)}\"] &`,block:s}:null}let n=eb(t,r),o=ks(e,r,!1);return Object.keys(o).length?{cssProp:n,block:o}:null}function w2(t){let e=t.__ref;for(let r of Object.keys(t)){if(!Ky(r))continue;let n=t[r];if(!n||typeof n!=\"object\"||Array.isArray(n)||!rb(n))continue;let o=null,s,i=G(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&ot(a);let c,l=!1;try{let f=fk(r,n,t),u=f?Eu(f.block)+\"::\"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=pe({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(\" \").filter(Boolean):null}else c=null}finally{a&&rt()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length,label:ut(e,\"cssBlock(\"+r+\")\")});e.__effects.push(i)}}function S2(t){let e=t.__ref;e.__conditionalRunners=[];let r=new Map;for(let n of Object.keys(t)){let o=n.charAt(0);if(o!==\".\"&&o!==\"!\")continue;let s=n.slice(1);if(!s)continue;if(/[:@\\s>~+[\\]]/.test(s)){if(typeof console<\"u\"&&console.warn){let p=s.split(/[:@\\s>~+[\\]]/)[0];console.warn(`[smbls] conditional \\`${n}\\` on ${t.key||\"?\"} will never match \\u2014 the whole string after \\`${o}\\` is read as one prop name. Nest the selector inside instead: \\`${o}${p}: { '${s.slice(p.length)}': {...} }\\`.`)}continue}let i=t[n];if(!i||typeof i!=\"object\")continue;let a=o===\"!\",c={lastMatch:!1,appliedKeys:null,appliedClasses:null},l=new Set;for(let p in i){if(!Object.prototype.hasOwnProperty.call(i,p))continue;let g=p.charAt(0),m=i[p];(g===\":\"||g===\"@\"||g===\"&\"||g===\"[\")&&m&&typeof m==\"object\"&&!Array.isArray(m)||l.add(p)}let f=()=>{let p,g=t[s];if(g===void 0){let x=!!t.state&&s in t.state,b=t.state?t.state[s]:void 0;if(x||b!==void 0)p=b;else{let _=t.context?.cases?.[s];if(_===void 0)return;try{p=typeof _==\"function\"?_.call(t,t):_}catch(w){p=!1,e.__conditionalError=w,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${n}\\` case fn threw on ${t.key||\"?\"} \\u2014 treating as false:`,w?.message||w)}}}else if(typeof g==\"function\")try{p=g(t,t.state,t.context)}catch(x){p=!1,e.__conditionalError=x,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${n}\\` predicate threw on ${t.key||\"?\"} \\u2014 treating as false:`,x?.message||x)}else p=g;let m=a?!p:!!p;if(!t.node||m===c.lastMatch)return;c.lastMatch=m;let y=t.context?.designSystem;y&&ot(y);try{if(m){let x={},b={},_=!1;for(let k in i){if(!Object.prototype.hasOwnProperty.call(i,k))continue;let E=i[k],D=k.charAt(0);if((D===\":\"||D===\"@\"||D===\"&\"||D===\"[\")&&E&&typeof E==\"object\"&&!Array.isArray(E)){if(tb(k,t)){let A=ks(E,t,!1,l);Object.keys(A).length&&(b[`[data-theme=\"${k.slice(1)}\"] &`]=A,_=!0)}else{let A=eb(k,t),N=ks(E,t,!1,l);Object.keys(N).length&&(b[A]=N,_=!0)}continue}let F=typeof E==\"function\"?E(t,t.state,t.context):E;if(F!=null)if(xt[k]){let A=xt[k](F,t,t.state,t.context);if(A){let N=Array.isArray(A)?A:[A];for(let At of N)At&&Object.assign(x,At)}}else(Et&&Et.has(k)||Ou(k))&&(x[k]=F)}let w=Object.keys(x);if(w.length){to(t.node,x);for(let k of w)r.set(k,n);c.appliedKeys=w}else c.appliedKeys=null;if(_){let k=pe(b,null,t.context?.cssPrefix,{state:!0}),E=k?k.split(\" \").filter(Boolean):[];if(E.length&&t.node.classList){for(let D of E)t.node.classList.add(D);c.appliedClasses=E}else c.appliedClasses=null}else if(c.appliedClasses){for(let k of c.appliedClasses)t.node.classList.remove(k);c.appliedClasses=null}}else{if(c.appliedKeys){for(let x of c.appliedKeys)r.get(x)===n&&(Ou(x)?t.node.style.removeProperty(x):t.node.style[x]=\"\",r.delete(x));c.appliedKeys=null}if(c.appliedClasses){for(let x of c.appliedClasses)t.node.classList.remove(x);c.appliedClasses=null}}}finally{y&&rt()}};e.__conditionalRunners.push(f);let u=Ut(t,t[s+\"Deps\"],f),d=G(u,{depth:e.path.length,label:ut(e,\"conditional(\"+n+\")\")}),h=e.__exec&&e.__exec[s]||t[s];d._sources.size===0&&typeof h==\"function\"&&pt()&&console.warn(`[smbls] conditional \\`${n}\\` on ${t.key||\"?\"} subscribed to nothing \\u2014 its predicate tracked no reactive read on its first run, so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). If the predicate guards its state reads (\\`in\\`, short-circuits, \\`?.\\`), declare \\`${s}Deps: [...]\\` (state-key strings or \\`(el, s) => \\u2026\\` selectors) so the subscription is armed unconditionally.`),e.__effects.push(d)}}var Hy=new WeakSet;function k2(t){let e=t.ownerDocument;!e||Hy.has(e)||(Hy.add(e),queueMicrotask(()=>{Hy.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Wy=new WeakSet,X0=!1;function Z0(t){return t.startsWith(\"[data-theme=\")||t.startsWith(\"@media\")&&t.includes(\"prefers-color-scheme\")}function Yy(t,e){let r={...t};for(let n in e){let o=e[n],s=r[n];r[n]=o&&typeof o==\"object\"&&s&&typeof s==\"object\"?Yy(s,o):o}return r}function uk(t,e){let r={};for(let n in t){let o=t[n];if(o&&typeof o==\"object\"){let s=uk(o,e);Object.keys(s).length&&(r[n]=s)}else e.has(n)||(r[n]=o)}return r}function dk(t){let{node:e}=t;if(!e)return;if(X0||(X0=!0,pe({display:\"none\"})),Wy.has(t)){console.error(\"[applyCssInProps] re-entry detected for element\",t.key,\"prop path:\",t.__ref?.path);return}Wy.add(t);let r=t.context?.designSystem;r&&ot(r),uu();try{let n={},o=!1,s=[],i=null,a=null,c=null,l=(p,g)=>{if(g&&typeof g==\"object\"&&Z0(p)){a||(a={});let m=a[p];m&&(g=Yy(m,g)),a[p]=g}else(g===null||typeof g!=\"object\")&&(c||(c=new Set),c.add(p));n[p]=g};if(Object.prototype.hasOwnProperty.call(t,\"theme\")&&typeof t.theme!=\"function\"&&xt.theme){let p=xt.theme(t.theme,t,t.state,t.context);if(p){let g=m=>{for(let y in m){let x=m[y];x&&typeof x==\"object\"&&Z0(y)&&(i||(i={}),i[y]=x),n[y]=x}};if(Array.isArray(p))for(let m of p)m&&g(m);else g(p);o=!0}}let f=(p,g)=>{if(xt[p]){let m=xt[p](g,t,t.state,t.context);if(m){if(Array.isArray(m)){for(let y of m)if(y)for(let x in y)l(x,y[x])}else for(let y in m)l(y,m[y]);o=!0}}else if(Et&&Et.has(p))g!=null&&typeof g!=\"object\"&&(l(p,g),o=!0);else if(p.charCodeAt(0)===45)g!=null&&typeof g!=\"object\"&&(l(p,g),o=!0);else if((p.charAt(0)===\"&\"||p.charAt(0)===\"@\"||p.charAt(0)===\":\"||p.charAt(0)===\"[\")&&g&&typeof g==\"object\"&&!Array.isArray(g)){if(rb(g))return;let m=fk(p,g,t);m&&(l(m.cssProp,m.block),o=!0)}};if(typeof t.class==\"string\"){let p=x2(t.class,t.context?.designSystem?.class);if(p)for(let g in p)f(g,p[g])}let u=c?new Set(c):null,d=t.tag||\"div\";for(let p of Object.keys(t)){if(typeof t[p]==\"function\"||Bt.has(p)||p===\"theme\")continue;let g=p.charCodeAt(0);g>=65&&g<=90||Cr(p)||ku(d,p)||f(p,t[p])}if(i)for(let p in i){let g=c?uk(i[p],c):i[p];a&&a[p]&&(g=Yy(g,a[p])),Object.keys(g).length?n[p]=g:delete n[p]}if(h2(t,n,c,u),o){n.display&&String(n.display).includes(\"!important\")&&(e.style.setProperty(\"display\",String(n.display).replace(/\\s*!important\\s*$/,\"\"),\"important\"),delete n.display);let p=t.display!=null&&typeof t.display!=\"function\"?t.display:t.hide===!0||t.show===!1?\"none\":null;typeof p==\"string\"&&p!==\"\"&&n.display&&n.display!==p&&(n.display=p);let g=pe(n,null,t.context?.cssPrefix);if(s=g?g.split(\" \").filter(Boolean):[],g&&e.classList){let m=s,y=!1;for(let x of m)e.classList.add(x),y||(x.charCodeAt(0)===95&&x.charCodeAt(1)===99||x.charCodeAt(0)===95&&x.indexOf(\"_c\",1)!==-1)&&(y=!0);y&&k2(e)}}let h=t.__ref;if(h){let p=h.__staticCssClasses;if(p&&e.classList){let g=new Set(s);for(let m of p)g.has(m)||e.classList.remove(m)}h.__staticCssClasses=s}g2(t)}finally{du(),r&&rt(),Wy.delete(t)}}var d0=t=>!!xt[t]||!!(Et&&Et.has(t))||typeof t==\"string\"&&t.charCodeAt(0)===45;function p0(t){t&&t.node&&dk(t)}function pk(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||typeof s==\"string\"&&s.includes(\"{{\"))continue;let i=\"aria-\"+o.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase());e.setAttribute(i,ee(i,s))}let r=gy(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 of Object.keys(t)){if(typeof t[o]==\"function\"||Bt.has(o)||o===\"on\"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Cr(o)&&!xs(n,o)&&Oe(n,o)){let i=t[o];if(i==null)continue;if(typeof i==\"string\"&&i.includes(\"{{\")){if(!Zn[o])continue;i=$t.call(t,i,t.state)}if(i==null||typeof i==\"function\"||typeof i==\"object\"||i===!1&&!ir(sr(o)||o))continue;let a=sr(o)||o;e.setAttribute(a,ee(a,i))}}}function h0(t,e){let{node:r}=t;if(!r||!r.setAttribute)return;let n=e.charCodeAt(0);if(n>=65&&n<=90||Cr(e))return;let o=t.tag||\"div\";if(xs(o,e)||!Oe(o,e))return;let s=sr(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute==\"function\"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=Zn[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l==\"string\"&&l.includes(\"{{\")&&(l=$t.call(t,l,t.state)),l==null||l===!1&&!ir(s)?r.removeAttribute(s):typeof l!=\"function\"&&typeof l!=\"object\"&&r.setAttribute(s,ee(s,l))}function v2(t,e){let r=t.node,n=t.__ref,o=n.__autoGrow;if(!e){if(o&&o.active){try{r.removeEventListener(\"input\",o.resize)}catch{}Au(o),Qn.delete(t),r.style.height=\"\",o.appliedMax!=null&&r.style.maxHeight===o.appliedMax&&(r.style.maxHeight=\"\"),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=n.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,layoutWatch:null,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!r.isConnected){nb(t,!0);return}if(!(r.scrollHeight>0)){E2(t,o);return}Au(o);let i=r.style.height;r.style.height=\"auto\";let a=r.scrollHeight;if(!(a>0)){r.style.height=i;return}r.style.height=a+\"px\",o.lastMeasure=a}},n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>{try{r.removeEventListener(\"input\",o.resize)}catch{}Au(o),Qn.delete(t)})),o.active||(r.addEventListener(\"input\",o.resize),o.active=!0);let s=typeof e==\"object\"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&r.style.maxHeight===o.appliedMax&&(r.style.maxHeight=\"\"):r.style.maxHeight=s,o.appliedMax=s),o.resize()}function nb(t,e){let r=t.__ref?.__autoGrow;r&&(e&&(r.attachAttempts=0,r.firstAttemptAt=null),Qn.add(t),Du())}function C2(){let t=Array.from(Qn);Qn.clear();for(let e=0;e<t.length;e++){let r=t[e],n=r.node,o=r.__ref?.__autoGrow;if(!(!n||!o||!o.active)){if(!n.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=Ss()),o.attachAttempts+=1,o.attachAttempts<=ek&&Ss()-o.firstAttemptAt<rk&&(Qn.add(r),Du());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function E2(t,e){if(e.layoutWatch)return;let r=t.node;if(!r)return;let n=r.ownerDocument&&r.ownerDocument.defaultView,o=n&&n.ResizeObserver||(typeof ResizeObserver==\"function\"?ResizeObserver:null);if(typeof o!=\"function\")return;let s=()=>{!r.isConnected||!(r.scrollHeight>0)||(Au(e),nb(t,!0))},i;try{i=new o(s),i.observe(r)}catch{return}e.layoutWatch=i}function Au(t){let e=t.layoutWatch;if(e){t.layoutWatch=null;try{e.disconnect()}catch{}}}function hk(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!==\"TEXTAREA\")return;let r=t.__ref,n=t.autoGrow,o=typeof n==\"function\"?Ut(t,t.autoGrowDeps,n):null,s=G(()=>{let i=t.autoGrow,a=i;if(typeof i==\"function\")try{a=(i===n&&o?o:i)(t,t.state,t.context)}catch{a=null}v2(t,a)},{depth:r.path.length,label:ut(r,\"autoGrow\")});r.__effects||(r.__effects=[]),r.__effects.push(s),o&&(r.__exec.autoGrow=n)}var gk=new Set([\"onSwipe\",\"onSwipeLeft\",\"onSwipeRight\",\"onSwipeUp\",\"onSwipeDown\"]);function mk(t,e){for(let r of Object.keys(t)){if(!Cr(r)||gk.has(r))continue;let n=iu(r);if(n){au(n,t,t[r]);continue}let o=t[r];if(typeof o==\"string\"&&/^[A-Za-z_$][\\w$]*$/.test(o)){let i=o;o=function(c){return t.call(i,c)}}if(typeof o!=\"function\")continue;let s=JP(r);en.has(s)||ps(QP(s),t,o)}A2(t)}function A2(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let d of gk){let h=t[d];typeof h==\"function\"&&(r[d]=h,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=d=>{let h=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];h&&(i=h.clientX,a=h.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let h=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!h)return;let p=h.clientX-i,g=h.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(p),x=Math.abs(g);if(Math.max(y,x)<o)return;let b;if(y>x*1.2)b=p<0?\"left\":\"right\";else if(x>y*1.2)b=g<0?\"up\":\"down\";else return;let _=\"onSwipe\"+b.charAt(0).toUpperCase()+b.slice(1),w=r[_],k=r.onSwipe;w&&w.call(t,d,t,t.state,t.context),k&&k.call(t,{direction:b,dx:p,dy:g,dt:m,event:d},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 gc(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]=gc(o,s):r[n]=s}return r}function Xy(t,e,r,n){if(!e||!t.node)return;let o=t.childExtends;if(Array.isArray(e)){let s=t.tag===\"fragment\",i=t.context?.document||globalThis.document,a=s?null:i?.createDocumentFragment();if(!s&&!a)return;let c=t.childProps,l=t.childrenAs,f=m=>{let y=e[m],x=y;(typeof y==\"string\"||typeof y==\"number\")&&(y={text:y});let b=c;if(typeof c==\"function\")try{b=c(t,y)}catch{b=null}if(l===\"state\"){let w=x;(typeof x==\"string\"||typeof x==\"number\")&&(w={value:x,text:x}),y=b?{...b,state:w}:{state:w}}else b&&(y=gc(b,y));if(o&&!y.ignoreChildExtends)if(y.extends){let w=Array.isArray(y.extends)?y.extends:[y.extends],k=Array.isArray(o)?o:[o];y={...y,extends:[...k,...w]}}else y={...y,extends:o};let _=nk(y?.key,x,m);try{return he(y,t,_,r)}catch(w){if(typeof console<\"u\"&&console.error){let k=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${_}\" failed to construct at ${k} (initial render, skipping this row):`,w?.message||w)}return null}},u=t.__ref;if(!(n===!0&&!s&&!!u&&(r?.mountYield===!0||t.yieldChildren===!0))){for(let m=0;m<e.length;m++){let y=f(m);!s&&y?.node&&a.appendChild(y.node)}return s||t.node.appendChild(a),!0}let h=u.__childrenChunkGen=(u.__childrenChunkGen||0)+1;Iy();let p=null,g=m=>{if(u.__disposed||u.__childrenChunkGen!==h){p&&p.parentNode&&p.remove();return}for(let y=m;y<e.length;y++){let x=f(y);if(x?.node&&(p?t.node.insertBefore(x.node,p):a.appendChild(x.node)),y+1<e.length&&Dy()){p||(p=i.createComment(\"smbls-mount\"),a.appendChild(p),t.node.appendChild(a));let b=y+1;$y(()=>g(b));return}}p?(p.remove(),t.node.tagName===\"SELECT\"&&Pu(t,!0)):t.node.appendChild(a)};return g(0),Ly(),!0}if(typeof e==\"string\"){let s=ok(e,t);if(Array.isArray(s))return Xy(t,s,r,n)}if(typeof e==\"object\")for(let s in e){if(Bt.has(s))continue;let i=e[s];if(!(i==null||i===!1)){if((typeof i==\"string\"||typeof i==\"number\")&&(i={text:i}),t.childProps&&(i=gc(t.childProps,i)),o&&!i.ignoreChildExtends)if(i.extends){let a=Array.isArray(i.extends)?i.extends:[i.extends],c=Array.isArray(o)?o:[o];i={...i,extends:[...c,...a]}}else i={...i,extends:o};he(i,t,s,r)}}}function Pu(t,e){let r=t.node;if(!r||r.tagName!==\"SELECT\")return;let n=r.options;if(!n||!n.length)return;let o=t.__ref,s=o&&o.__exec&&o.__exec.value,i=typeof s==\"function\",a=t.value!=null&&typeof t.value!=\"function\";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value,typeof f==\"string\"&&f.includes(\"{{\")&&(f=$t.call(t,f,t.state));let u=f==null?\"\":String(f);r.value!==u&&(r.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<n.length;f++)n[f].defaultSelected&&(l=f);l>=0&&r.selectedIndex!==l&&(r.selectedIndex=l)}function yk(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r==\"function\"){let u=r;try{r=u(t,t.state,t.context)}catch(m){if(r=void 0,typeof console<\"u\"&&console.error){let y=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] \\`children:\\` factory threw at ${y} (initial run, treating as empty):`,m?.message||m)}}t.children=r;let d=t.__ref,h=!1,p=Ut(t,t.childrenDeps,u),g=G(()=>{let m=h;h=!0;let y;try{y=p(t,t.state,t.context)}catch(F){if(typeof console<\"u\"&&console.error){let A=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] \\`children:\\` factory threw at ${A}${m?\"\":\" (initial tracking run)\"}:`,F?.message||F)}return}if(!m||y===t.children)return;t.children=y,d.__childrenChunkGen!=null&&d.__childrenChunkGen++;let x=typeof t.onContentUpdate==\"function\",b=x?[]:null,_=x?[]:null,w=x?[]:null;if(Array.isArray(y)&&t.childrenAs===\"state\"){let F=t.childProps,A=[],N=new Map;for(let B=0;B<y.length;B++){let ht=y[B],$=F;if(typeof F==\"function\")try{$=F(t,ht)}catch{$=null}let q=nk($&&$.key,ht,B);A.push(q),N.set(q,{rawChild:ht,childProps:$})}let At=new Set(A),Vt=d.__children.slice();for(let B of Vt)if(!At.has(B)){let ht=t[B];ht?.remove&&ht.remove(),delete t[B],_&&_.push(B)}let kt=t.childExtends,it=t.tag===\"fragment\",M=t.context?.document||globalThis.document,H=it?null:M?.createDocumentFragment(),gt=new Set;for(let B of A){let ht=N.get(B),$=ht.rawChild,q=t[B];if(q&&q.state){if($&&typeof $==\"object\"){let Tt=q.state,Nt=Tt.$replace||Tt.replace,ho=Tt.$update||Tt.update;try{if(typeof Nt==\"function\")Nt.call(Tt,$);else if(typeof ho==\"function\"){for(let ae in Tt)if(!(ae===\"__element\"||ae===\"root\"||ae===\"parent\"||ae===\"update\")&&!Object.prototype.hasOwnProperty.call($,ae))try{Tt[ae]=void 0}catch{}ho.call(Tt,$)}else for(let ae in $)Tt[ae]=$[ae]}catch(ae){if(typeof console<\"u\"&&console.error){let Xs=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${B}\" failed to patch at ${Xs} (reconcile, keeping its previous data for this pass):`,ae?.message||ae)}}}w&&w.push(B);continue}let mt=$;(typeof $==\"string\"||typeof $==\"number\")&&(mt={value:$,text:$});let X=ht.childProps,Y=X?{...X,state:mt}:{state:mt};if(kt&&!Y.ignoreChildExtends)if(Y.extends){let Tt=Array.isArray(Y.extends)?Y.extends:[Y.extends],Nt=Array.isArray(kt)?kt:[kt];Y={...Y,extends:[...Nt,...Tt]}}else Y={...Y,extends:kt};let V;try{V=he(Y,t,B,e)}catch(Tt){if(typeof console<\"u\"&&console.error){let Nt=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${B}\" failed to construct at ${Nt} (reconcile, skipping this row):`,Tt?.message||Tt)}gt.add(B);continue}!it&&V?.node&&H&&H.appendChild(V.node),b&&b.push(B)}if(!it&&H&&H.childNodes.length&&t.node&&t.node.appendChild(H),!it&&t.node){let B=null;for(let ht of A){let $=t[ht]?.node;if(!$)continue;let q=B?B.nextSibling:t.node.firstChild;$!==q&&t.node.insertBefore($,q),B=$}}d.__children=gt.size?A.filter(B=>!gt.has(B)):A,x&&(b.length||_.length)&&B0(t,{added:b,removed:_,kept:w}),Pu(t,!1);return}let D=x?[...d.__children]:null;for(let F of[...d.__children]){let A=t[F];A?.remove&&A.remove(),delete t[F]}d.__children=[],Xy(t,y,e),Pu(t,!1),x&&B0(t,{added:[...d.__children],removed:D,kept:[]})},{depth:d.path.length,label:ut(d,\"children\")});d.__effects.push(g)}let s=Xy(t,r,e,!0);if(n!=null&&!(n&&n.__ref)){let u=n;if(typeof u==\"string\"||typeof u==\"number\"?u={text:u}:typeof u!=\"object\"&&(u={}),t.childProps&&(u=gc(t.childProps,u)),o&&!u.ignoreChildExtends)if(u.extends){let d=Array.isArray(u.extends)?u.extends:[u.extends],h=Array.isArray(o)?o:[o];u={...u,extends:[...h,...d]}}else u={...u,extends:o};he(u,t,\"content\",e)}if(r&&!s)return;let i=t.context?.components||{};{let u=Object.keys(t);for(let d=0;d<u.length;d++){let h=u[d];if(!h.endsWith(\"Extends\")||typeof t[h]!=\"string\")continue;let p=h.slice(0,-7);if(!p||p.charCodeAt(0)<65||p.charCodeAt(0)>90)continue;let g={extends:t[h]};delete t[h];for(let m=d+1;m<u.length;m++){let y=u[m],x=y.charCodeAt(0);if(x>=65&&x<=90||Bt.has(y)||typeof t[y]==\"function\"&&(y.startsWith(\"on\")||y.startsWith(\".\")))break;let b=t[y];b!==void 0&&(g[y]=b,delete t[y])}t[p]&&typeof t[p]==\"object\"?t[p]={...g,...t[p]}:t[p]=g}}let a=e?.mountYield===!0||t.yieldChildren===!0,c=Object.keys(t),l=u=>{if(Bt.has(u)||typeof t[u]!=\"object\"||t[u]===null)return;let d=u.charCodeAt(0);if(d<65||d>90)return;let h=t[u];if(!h.__ref){if(!h.extends&&!h.extend){let p=i[u]||i[`smbls.${u}`];p&&(h={...h,extends:p})}if(t.childProps&&(h=gc(t.childProps,h)),o&&!h.ignoreChildExtends)if(h.extends){let p=Array.isArray(h.extends)?h.extends:[h.extends],g=Array.isArray(o)?o:[o];h={...h,extends:[...g,...p]}}else h={...h,extends:o};he(h,t,u,e)}};if(!a){for(let u of c)l(u);return}Iy();let f=u=>{for(let d=u;d<c.length;d++)if(l(c[d]),d+1<c.length&&Dy()){let h=d+1;$y(()=>f(h));return}};f(0),Ly()}function bk(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)}var Zy=3;function my(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Zy?!1:(t.__inBeforeUpdate=!0,!0)}function kr(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Zy&&typeof console<\"u\"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Zy}x in a row on this element \\u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function oe(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Rt(n,e,r);let o=\"on\"+t,s=e[o];if(typeof s==\"function\"){let c=t===\"Render\"?\"__inRender\":t===\"RenderRouter\"?\"__inRenderRouter\":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&ot(l);let f=!!c;try{let u=s(e,e.state,e.context,r);if(u&&typeof u.then==\"function\"){let d=e.__ref;return u.catch(h=>{e.context?.plugins?.length&&Rt(\"error\",e,{hook:o,error:h})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,h)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(e.context?.plugins?.length&&Rt(\"error\",e,{hook:o,error:u})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,u),e.context?.strictMode)throw u}finally{l&&rt(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var _k={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\"],scrim:[\"black.45\",\"black.55\"],scrimSoft:[\"black.2\",\"black.3\"],blueDeep:\"#0A5CB8\",blueBright:\"#47A8FF\",accentInk:[\"blueDeep\",\"blueBright\"],greenDeep:\"#2A6E28\",greenBright:\"#7FD07B\",successInk:[\"greenDeep\",\"greenBright\"],redDeep:\"#A83520\",redBright:\"#FF8C78\",dangerInk:[\"redDeep\",\"redBright\"],orangeDeep:\"#94500F\",orangeBright:\"#F4A45E\",warningInk:[\"orangeDeep\",\"orangeBright\"],magentaDeep:\"#A100A1\",magentaBright:\"#FF7AFF\",magentaInk:[\"magentaDeep\",\"magentaBright\"]},xk={\"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 T2={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\"}}}},O2={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},R2={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\"}}},wk={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...T2,...O2,...R2,backdrop:{\"@light\":{background:\"scrim\",backdropFilter:\"blur(8px)\"},\"@dark\":{background:\"scrim\",backdropFilter:\"blur(8px)\"}},backdropSoft:{\"@light\":{background:\"scrimSoft\",backdropFilter:\"blur(4px)\"},\"@dark\":{background:\"scrimSoft\",backdropFilter:\"blur(4px)\"}},none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var Sk={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var kk={ratio:1.618,subSequence:!0};var vk={SourceSans:[{url:\"\"}]},Ck={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 Ek={symbols:'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"41\" height=\"42\" viewBox=\"0 0 41 42\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z\"/></svg>',logo:'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"41\" height=\"42\" viewBox=\"0 0 41 42\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z\"/></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 Ak={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 Tk={base:150,ratio:1.333,unit:\"ms\",subSequence:!0,defaultBezier:\"cubic-bezier(.29, .67, .51, .97)\",springBezier:\"cubic-bezier(.32, .72, 0, 1)\"};var Ok={radiusControl:\"12px\",radiusCard:\"17px\",radiusSheet:\"24px\",radiusPill:\"999px\",controlH:\"44px\",controlHCompact:\"36px\"};var mc={version:\"0.0.1\",color:_k,gradient:xk,theme:wk,typography:Sk,spacing:kk,font:vk,fontFamily:Ck,timing:Tk,icons:Ek,media:Ak,sizes:Ok,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:\"scale(0.95)\",opacity:0},to:{transform:\"\",opacity:1}},modalOut:{to:{transform:\"scale(0.95)\",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Cs={};L(Cs,{A:()=>Gv,AssetPicture:()=>Kk,Audio:()=>Xk,Avatar:()=>lC,B:()=>gv,Block:()=>Rk,Box:()=>Nu,Br:()=>_v,Button:()=>Zv,ButtonSet:()=>eC,COMPONENTS:()=>eo,Caption:()=>iv,Checkbox:()=>Ov,CheckboxHgroup:()=>Rv,Circle:()=>Hk,CircleButton:()=>Qv,Clickable:()=>Uk,Data:()=>yv,Dialog:()=>nC,DialogFooter:()=>sC,DialogHeader:()=>oC,Dropdown:()=>uC,DropdownList:()=>dC,DropdownParent:()=>pC,DropdownParentFocus:()=>hC,DropdownSiblingFocus:()=>gC,FileIcon:()=>Vv,Flex:()=>Dk,Focusable:()=>Vk,FocusableComponent:()=>zk,Footnote:()=>hv,Form:()=>Nk,Grid:()=>Lk,Gutter:()=>Mk,H1:()=>Qk,H2:()=>tv,H3:()=>ev,H4:()=>rv,H5:()=>nv,H6:()=>ov,Headline:()=>dv,Hgroup:()=>vv,HgroupButton:()=>Ev,HgroupRows:()=>Cv,Hoverable:()=>Bk,Hr:()=>bv,I:()=>mv,Icon:()=>Bv,IconButton:()=>rC,IconText:()=>Uv,Iframe:()=>jk,Img:()=>Fk,Inline:()=>Pk,InlineFlex:()=>Ik,InlineGrid:()=>$k,Input:()=>Av,Italic:()=>fv,KangorooButton:()=>tC,Li:()=>xv,Link:()=>Ib,Notification:()=>mC,NumberInput:()=>Tv,Ol:()=>Sv,P:()=>sv,Picture:()=>qk,Radio:()=>Pv,RadioHgroup:()=>Dv,Range:()=>fC,RouteLink:()=>Yv,RouterLink:()=>Lb,SHAPES:()=>Mu,Select:()=>Xv,Shape:()=>fb,Span:()=>Jk,SquareButton:()=>Jv,Strong:()=>av,Subhead:()=>pv,Svg:()=>Gk,Text:()=>Zk,Textarea:()=>$v,TextareaWithButton:()=>Mv,Theme:()=>Wk,Title:()=>uv,Toggle:()=>Iv,ToggleHgroup:()=>Lv,Tooltip:()=>iC,TooltipHidden:()=>aC,TooltipParent:()=>cC,U:()=>cv,Ul:()=>wv,Underline:()=>lv,Video:()=>Yk,depth:()=>Fu,focusableRingEnabled:()=>Lu,getSystemGlobalTheme:()=>yc});var sb={};L(sb,{Block:()=>Rk,Flex:()=>Dk,Grid:()=>Lk,Gutter:()=>Mk,Inline:()=>Pk,InlineFlex:()=>Ik,InlineGrid:()=>$k});var Rk={display:\"block\"},Pk={display:\"inline\"},Dk={display:\"flex\"},Ik={display:\"inline-flex\"},Lk={display:\"grid\"},$k={display:\"inline-grid\"},Mk={boxSize:\"C1\"};var ib={};L(ib,{Img:()=>Fk});P();var Fk={tag:\"img\",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||\"\",src:t=>{let e=Jt(t);return e&&e.src||t.src},srcset:t=>{let e=Jt(t);return(e?ya(e):\"\")||t.srcset}}};var ab={};L(ab,{Form:()=>Nk});var Nk={tag:\"form\"};var cb={};L(cb,{Iframe:()=>jk});var jk={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"};var lb={};L(lb,{Clickable:()=>Uk,Focusable:()=>Vk,FocusableComponent:()=>zk,Hoverable:()=>Bk,focusableRingEnabled:()=>Lu});var P2={appearance:\"none\",fontFamily:\"inherit\"},Bk={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}}},Uk={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}};function Lu(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}var Vk={border:\"none\",outline:t=>Lu(t)?\"solid 0 currentColor\":\"none\",\":focus-visible\":{opacity:1,outline:t=>Lu(t)?\"solid X currentColor\":\"none\"},attr:{tabIndex:t=>t.tabIndex}},zk={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",cursor:\"pointer\",\":disabled\":{cursor:\"not-allowed\"},style:P2};var pb={};L(pb,{Picture:()=>qk});var db={};L(db,{Theme:()=>Wk,getSystemGlobalTheme:()=>yc});var ub={};L(ub,{Circle:()=>Hk,SHAPES:()=>Mu,Shape:()=>fb,default:()=>D2,depth:()=>Fu});P();var Re=T(),Fu={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Re.unit.default} 4${Re.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Re.unit.default} 6${Re.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Re.unit.default} 10${Re.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Re.unit.default} 16${Re.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Re.unit.default} 26${Re.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Re.unit.default} 42${Re.unit.default}`}},vs=t=>tt(t.shapeDirectionColor)||tt(t.borderColor)||tt(t.backgroundColor)||tt(t.background),$u=t=>{let e=ic.transition(t.transition,t);return e&&e.transition},Mu={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:vs(t),transition:$u(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:vs(t),transition:$u(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:vs(t),transition:$u(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:$u(t),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${vs(t)} 25%, transparent 25%), linear-gradient(315deg, ${vs(t)} 25%, transparent 25%)`},\"&:after\":{background:vs(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)\"}}}},fb={deps:{exec:lt,getSpacingBasedOnRatio:Ee,getMediaColor:Lt},classlist:{shape:t=>t.deps.exec(Mu[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Mu[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}}},Hk={round:\"100%\"},D2=fb;P();var yc=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n===\"auto\"?null:n},Wk={deps:{depth:Fu},classlist:{depth:t=>!Pt(t.depth)&&t.deps.depth[t.depth]}};var qk={deps:{getSystemGlobalTheme:yc},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:yc},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 hb={};L(hb,{AssetPicture:()=>Kk});P();var Kk={tag:\"picture\",children:t=>{let e=Jt(t);if(e)return ba(e,t.alt)}};var gb={};L(gb,{Svg:()=>Gk});var Gk={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),a=d=>`<use xlink:href=\"#${d}\" />`;if(typeof i==\"string\"){let d=i.match(/^\\s*<symbol\\b[^>]*\\bid=\"([^\"]+)\"/);if(d){let h=d[1],p=e.document||(typeof document<\"u\"?document:null);if(!(p&&typeof p.getElementById==\"function\"&&p.getElementById(h))){let m=n&&n.scratchSystem&&n.scratchSystem.appendSVGSprite;r&&!r.__svgCache&&(r.__svgCache={}),typeof m==\"function\"?m({[h]:i},{document:p}):n&&typeof n.init==\"function\"&&n.init({svg:{[h]:i}},{document:p,emotion:e.emotion})}return a(h)}}if(!s&&i)return i;let 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 d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var mb={};L(mb,{Video:()=>Yk});P();var Yk={tag:\"video\",controls:!0,attr:{src:t=>{let e=Jt(t);return e&&e.src||t.src}},children:t=>{let e=Jt(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 yb={};L(yb,{Audio:()=>Xk});P();var Xk={tag:\"audio\",controls:!0,attr:{src:t=>{let e=Jt(t);return e&&e.src||t.src}},children:t=>{let e=Jt(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 bb={};L(bb,{B:()=>gv,Caption:()=>iv,Data:()=>yv,Footnote:()=>hv,H1:()=>Qk,H2:()=>tv,H3:()=>ev,H4:()=>rv,H5:()=>nv,H6:()=>ov,Headline:()=>dv,I:()=>mv,Italic:()=>fv,P:()=>sv,Span:()=>Jk,Strong:()=>av,Subhead:()=>pv,Text:()=>Zk,Title:()=>uv,U:()=>cv,Underline:()=>lv});var Zk={},Jk={tag:\"span\"},Qk={tag:\"h1\"},tv={tag:\"h2\"},ev={tag:\"h3\"},rv={tag:\"h4\"},nv={tag:\"h5\"},ov={tag:\"h6\"},sv={tag:\"p\"},iv={tag:\"caption\"},av={tag:\"strong\",fontWeight:\"700\"},cv={tag:\"u\"},lv={tag:\"u\"},fv={tag:\"i\"},uv={},dv={tag:\"h6\",fontSize:\"B\",fontWeight:500},pv={tag:\"span\",fontSize:\"Z1\"},hv={tag:\"span\",fontSize:\"Z\"},gv={tag:\"b\"},mv={tag:\"i\"},yv={tag:\"data\"};var _b={};L(_b,{Box:()=>Nu,Br:()=>_v,Hr:()=>bv,Li:()=>xv,Ol:()=>Sv,Ul:()=>wv});var I2=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=ne(e,t,{unpack:!1});r.__class=n},Nu={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:I2},bv={tag:\"hr\",margin:\"C1 0\"},_v={tag:\"br\"},xv={tag:\"li\"},wv={tag:\"ul\",childExtends:{extends:\"Li\"}},Sv={tag:\"ol\",childExtends:{extends:\"Li\"}};var xb={};L(xb,{Hgroup:()=>vv,HgroupButton:()=>Ev,HgroupRows:()=>Cv});var kv=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},vv={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:kv,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:kv,margin:\"0\",color:\"paragraph\"}},Cv={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},Ev={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}};var wb={};L(wb,{Input:()=>Av});var Av={extends:[\"Focusable\"],tag:\"input\",border:\"none\",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 Sb={};L(Sb,{NumberInput:()=>Tv});var Tv={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 kb={};L(kb,{Checkbox:()=>Ov,CheckboxHgroup:()=>Rv});var Ov={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 currentColor\",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\"}}},Rv={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}};var vb={};L(vb,{Radio:()=>Pv,RadioHgroup:()=>Dv});var Pv={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}},Dv={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}};var Cb={};L(Cb,{Toggle:()=>Iv,ToggleHgroup:()=>Lv});var Iv={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}},Lv={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}};var Eb={};L(Eb,{Textarea:()=>$v,TextareaWithButton:()=>Mv});var $v={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\"}},Mv={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 Ab={};L(Ab,{FileIcon:()=>Vv,Icon:()=>Bv,IconText:()=>Uv});var Fv=new Set,Nv=(t,e)=>{if(!Fv.has(t)&&(Fv.add(t),typeof console<\"u\"&&console.warn)){let r=e&&e.__ref&&e.__ref.path,n=r&&r.length?` at <${r.join(\".\")}>`:\"\";console.warn(`[Icon] Unknown icon name \"${t}\"${n} \\u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},jv=new WeakMap,L2=t=>{let e=jv.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},jv.set(t,e)),e},$2=(t,e)=>{if(!t)return null;let r=t.default||t;return typeof r==\"string\"?r.trim()?{[e]:r}:null:typeof r==\"object\"&&!Array.isArray(r)&&Object.keys(r).length?r:null},M2=(t,e,r)=>{let n=r&&r.context&&r.context.document||(typeof document<\"u\"?document:null);ot(t);try{let o=T();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Wn(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&n&&Object.keys(s).length&&qn(s,{document:n}),Object.keys(s).length>0}finally{rt()}},F2=(t,e,r,n,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!=\"function\"||!s.icons)return!1;let a=L2(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(o),a.pending.has(e))return!0;let l=Promise.resolve().then(()=>i(e,t)).then(f=>{let u=$2(f,r);return u?M2(s,u,n):!1}).catch(f=>(typeof console<\"u\"&&console.error&&console.error(`[Icon] iconsLoader failed for \"${e}\":`,f),!1)).then(f=>{a.pending.delete(e);let u=a.waiting.get(e);a.waiting.delete(e),f||a.failed.add(e),u&&u.forEach(d=>{try{d(f)}catch(h){console.error(\"[Icon] repaint error:\",h)}})});return a.pending.set(e,l),!0},Bv={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=p=>{let g=p[\".isActive\"];if(g)return p.call(\"exec\",g.name||g.icon)},l=(p,g,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,b=f(p,g),w=x(b).split(/([a-z])([A-Z])/g),k=w[1]?w[0]:b.split(\".\")[0].split(\" \")[0],E=y&&y[k];if(E){let D=b.includes(\".\")?\"sfsymbols.\"+b.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return b=E[D]||E[b.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${b}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},f=(p,g)=>{let{key:m}=p,y=p.call(\"exec\",p.name||p.icon||m,p);return p.call(\"isString\",y)&&y.includes(\"{{\")&&(y=p.call(\"replaceLiteralsWithObjectFields\",y)),p.call(\"isString\",y)?y:m},u=t.src,d,h=()=>{let p=f(t,e),g=p;if(p.includes(\" \")){let A=p.split(\" \");p=A[0]+A.slice(1).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join(\"\")}let m=a(p),y=m.split(/([a-z])([A-Z])/g),x=l(t,e,r);if(x){Object.assign(t,x);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 w;o[b]&&(w=b),o[m]?w=m:o[y[0]+y[1]]?w=y[0]+y[1]:o[y[0]]?w=y[0]:i&&t.warn(\"Can't find icon:\",p,w);let k=o[w],E=n&&n.src||u;!k&&!E&&(F2(r,g,m,t,N=>{if(!(d&&d._disposed)){if(!N)return Nv(g,t);h()}})||Nv(g,t));let D=s&&w,F=k||E||o.noIcon;if(!(t.spriteId===D&&t.src===F&&t.node&&t.node.innerHTML)&&(t.spriteId=D,t.src=F,typeof t.html==\"function\"&&t.node)){let A=t.context&&t.context.designSystem;A&&ot(A);try{let N=t.html(t,t.state,t.context);N!=null&&typeof N!=\"function\"&&(t.node.innerHTML=N)}finally{A&&rt()}}};d=G(h,{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\"}},Uv={display:\"flex\",align:\"center center\",lineHeight:1,\".reversed\":{flow:\"row-reverse\"},\".vertical\":{flow:\"column\"},Icon:{if:t=>{let{parent:e}=t,r=t.call(\"exec\",t.icon,t);return t.call(\"exec\",r||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call(\"exec\",t.parent.icon,t.parent)},text:t=>t.text},Vv={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}};var $b={};L($b,{A:()=>Gv,Link:()=>Ib,RouteLink:()=>Yv,RouterLink:()=>Lb});var bc={};L(bc,{default:()=>z2,getActiveRoute:()=>Db,lastLevel:()=>Bu,lastPathname:()=>ju,matchRoute:()=>Ob,parseQuery:()=>Rb,parseRoutePattern:()=>Tb,router:()=>cr,runGuards:()=>Pb});P();var Hv=/^:(.+)/,Wv=/^\\*$/,zv=new Map,Tb=t=>{let e=zv.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(Hv);a?n.push({index:i,name:a[1]}):Wv.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return zv.set(t,s),s},Ob=(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=Tb(l),u=N2(o,f);u>a&&(a=u,i=l,c=j2(o,f))}return!i&&e[\"/*\"]&&(i=\"/*\"),{key:i,content:i?e[i]:null,params:c,routePath:s}},N2=(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(Hv.test(r[i]))o+=1;else if(Wv.test(r[i]))o+=.5;else return-1;return o},j2=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Rb=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},Pb=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},Db=(t=0,e)=>{e||(e=typeof C<\"u\"?C.location.pathname:\"/\");let n=e.split(\"/\")[t+1];if(n)return`/${n}`},ju,Bu=0,B2=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"?\"/\":t,qv={level:Bu,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof et<\"u\"&&(et.scrollingElement||et.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0,exitTimeout:300},U2=(t,e)=>{if(!t||t.visibilityState!==\"visible\")return!1;try{let r=e&&typeof e.matchMedia==\"function\"&&e.matchMedia(\"(prefers-reduced-motion: reduce)\");if(r&&r.matches)return!1}catch{}return!0},Kv=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},V2=(t,e,r,n,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===r)return a.wait;if(Kv(e),!r||!r.node||typeof t.onRouteExit>\"u\"||!U2(s,i))return null;let c=typeof o==\"number\"&&o>=0?o:qv.exitTimeout,l=typeof AbortController==\"function\"?new AbortController:null,f={...n,page:r,timeout:c,signal:l?l.signal:void 0},u;try{u=gr(\"routeExit\",t,f)}catch{return null}if(!u||typeof u.then!=\"function\")return null;let d={page:r,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(h=>{let p=setTimeout(()=>{d.abort(),h()},c),g=()=>{clearTimeout(p),h()};u.then(g,g)}),e.__routeExit=d,d.wait},cr=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||C,i=o?.context?.document||et,a={...qv,...o.context.routerOptions,...n};Bu=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=B2(t);let u=typeof s.URL==\"function\"?s.URL:typeof globalThis<\"u\"&&globalThis.URL||URL,d=new u(f+t),{pathname:h,search:p,hash:g}=d,m=Rb(p),y=o.node,x=g&&g!==s.location.hash.slice(1),b=h!==ju;ju=h;let _=c.__routerRendered,w,k,E,D;if(a.useParamsMatching){let M=Ob(h,o.routes,a.level);w=M.key,k=M.routePath,E=M.content,D=M.params}else{w=Db(a.level,h),k=w;let M=o.routes;E=M?M[w||\"/\"]||M[\"/*\"]:null,D={}}let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!E){a.onNotFound?a.onNotFound({pathname:h,route:w,element:o}):a.silent||console.warn(\"[smbls/router] no content matched for path\",h,\"\\u2014 available routes:\",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let M={pathname:h,route:w,params:D,query:m,hash:g,element:o,state:r},H=await Pb(a.guards,M);if(H===!1)return;if(typeof H==\"string\")return cr(H,e,r,{...n,guards:[]})}let A=c.__routerNavSeq=(c.__routerNavSeq||0)+1,N=!_||_.content!==E||_.route!==w,At=b||N||a.force===!0;if(At&&_){let M=V2(o,c,o[l],{from:_.route,to:w,pathname:h,params:D,query:m,hash:g},a.exitTimeout,i,s);if(M&&(await M,c.__routerNavSeq!==A||(c.__routeExit&&c.__routeExit.wait===M&&(c.__routeExit=null),typeof o?.set!=\"function\")))return}else Kv(c);if(a.pushState){let M=h+(p||\"\")+(g||\"\");try{a.replace?s.history.replaceState(r,null,M):s.history.pushState(r,null,M)}catch{}}let kt=b||!x?{route:w,routePath:k,hash:g,params:D,query:m,debugging:!1}:{params:D,query:m};if(a.updateState&&o.state.update(kt,{preventContentUpdate:!0}),At){l&&a.removeOldElement&&o[l].remove();let M=o.__ref?.origin?.content,H={};if(M)for(let $ in M){let q=M[$];$===\"__ref\"||$===\"props\"||$===\"node\"||$===\"parent\"||$===\"key\"||(typeof q==\"string\"||typeof q==\"number\"||typeof q==\"boolean\"||typeof q==\"object\"&&q!==null&&!q.node&&!q.__ref)&&(H[$]=q)}let gt={...H,...typeof E==\"object\"?E:{extends:E}};a.useFragment&&(gt.tag=\"fragment\");let B={content:E,route:w},ht=c.__routerRendered;try{if(typeof o?.set!=\"function\")return;c.__routerRendered=B,o.set(gt,{contentElementKey:l})}catch($){c.__routerRendered===B&&(c.__routerRendered=ht),console.error(\"[smbls/router] failed to render route content\",h,$)}}let it=!b&&x;if(a.scrollToTop&&!it&&F?.scrollTo&&F.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 M=i.getElementById(g.slice(1));if(M&&F?.scrollTo){let H=s.getComputedStyle?s.getComputedStyle(M):null,gt=H&&parseFloat(H.scrollMarginTop)||0,B=M.getBoundingClientRect().top+F.scrollTop-gt-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:B,left:0})}}gr(\"routeChanged\",o,a)},z2=cr;var H2=(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,d=e.__ref.root,h=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&&!h){t.preventDefault();try{let p=d;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=d;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,d.routes&&(p.routes=d.routes))}(f.router||l.router||c.router||cr)(a,p,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(p){console.warn(p)}}},Ib={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:t=>rn(t,t.href)||rn(t,t.call(\"exec\",t,t).href),\"aria-label\":t=>t.aria?t.aria.label:t.text},onClick:H2},Gv={extends:\"Link\"},Lb={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,d=e.__ref.root,h=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&&!h){t.preventDefault();try{let p=d;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=d;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(p=m,d.routes&&(p.routes=d.routes))}(f.router||l.router||c.router||cr)(a,p,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(p){console.warn(p)}}}},Yv={extends:[Ib,Lb]};var Mb={};L(Mb,{Select:()=>Xv});var Xv={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 Fb={};L(Fb,{Button:()=>Zv,ButtonSet:()=>eC,CircleButton:()=>Qv,IconButton:()=>rC,KangorooButton:()=>tC,SquareButton:()=>Jv});var Zv={extends:[\"IconText\",\"FocusableComponent\"],tag:\"button\",minHeight:\"controlH\",fontSize:\"Z2\",type:\"button\",borderStyle:\"none\",display:\"inline-flex\",align:\"center center\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",padding:\"0 A\",fontWeight:\"700\",fontFamily:\"inherit\",round:\"radiusPill\",disabled:t=>t.call(\"exec\",t.disabled)},Jv={extends:\"Button\",fontSize:\"A\",width:\"A\",minHeight:\"auto\",padding:\"Z\",aspectRatio:\"1 / 1\",boxSize:\"fit-content fit-content\",justifyContent:\"center\",round:\"Z2\",boxSizing:\"content-box\"},Qv={extends:\"SquareButton\",round:\"C\"},tC={extends:\"Button\",childExtends:\"IconText\"},eC={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},rC={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"};var Nb={};L(Nb,{Dialog:()=>nC,DialogFooter:()=>sC,DialogHeader:()=>oC});var nC={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},oC={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},sC={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 jb={};L(jb,{Tooltip:()=>iC,TooltipHidden:()=>aC,TooltipParent:()=>cC});P();var iC={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=>Ot(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)}},aC={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)}},cC={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 Bb={};L(Bb,{Avatar:()=>lC});var W2=t=>{let r=`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><rect width=\"64\" height=\"64\" rx=\"32\" fill=\"#71718A\"/><text x=\"32\" y=\"42\" font-family=\"system-ui,sans-serif\" font-size=\"28\" font-weight=\"700\" text-anchor=\"middle\" fill=\"#fff\">${String(t||\"\").trim().charAt(0).toUpperCase()||\"?\"}</text></svg>`;return\"data:image/svg+xml;utf8,\"+encodeURIComponent(r)},lC={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\"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let r=e.node.getAttribute(\"alt\")||(e.key!==\"no-avatar\"?e.key:\"\");e.node.src=W2(r)},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 Ub={};L(Ub,{Range:()=>fC});var fC={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:Ho(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:Ho(\"#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 Vb={};L(Vb,{Dropdown:()=>uC,DropdownList:()=>dC,DropdownParent:()=>pC,DropdownParentFocus:()=>hC,DropdownSiblingFocus:()=>gC});var uC={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\"},dC={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\"}}},pC={position:\"relative\",zIndex:999,\":hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}},hC={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()}}},gC={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 zb={};L(zb,{Notification:()=>mC});var mC={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 eo=Object.assign({},sb,ib,ab,cb,lb,pb,hb,gb,ub,mb,yb,db,bb,_b,xb,wb,Sb,kb,vb,Cb,Eb,Ab,$b,Mb,Fb,Nb,jb,Bb,Ub,Vb,zb);function Uu(t){if(t==null)return 0;if(typeof t!=\"object\")return yC(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Uu(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^yC(r[n]))*16777619,e=(e^Uu(t[r[n]]))*16777619;return e>>>0}function yC(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Vu(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(!Vu(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)||!Vu(t[s],e[s]))return!1}return!0}function Hb(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=Hb(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 Wb(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])?Wb(t[n],o,r):t[n]=o}return t}function an(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 Es(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function _c(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():an(e)}function bC(t){return t.split(`\n`).map(an).join(`\n`)}var _C={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 xC(t,e){let r=_C[t]||an(t),n=_c(e),o=`_${r}-${n}`,s=Es(t),i=Y2[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}\n${c}`}var Y2={\"backdrop-filter\":\"-webkit-backdrop-filter\",\"user-select\":\"-webkit-user-select\",\"mask-image\":\"-webkit-mask-image\",\"mask-size\":\"-webkit-mask-size\",\"mask-repeat\":\"-webkit-mask-repeat\",\"mask-position\":\"-webkit-mask-position\",\"mask-clip\":\"-webkit-mask-clip\",\"mask-origin\":\"-webkit-mask-origin\",\"background-clip\":\"-webkit-background-clip\"},X2=\"@media (hover: hover)\",Z2=/(?:^|[^\\\\]):hover(?![\\w-])/,wC=t=>typeof t==\"string\"&&(t.indexOf(\"{\")!==-1||t.indexOf(\"}\")!==-1);function SC(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||wC(i))continue;let a=_C[s]||an(s),c=_c(i),l=`_${a}-${c}`,f=Es(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(\" \")+\"\\0\"+n.join(`\n`)}function kC(t,e,r){let n=t+e,o=`_c${an(n)}`,s=e.split(\"\\0\"),i=\"\";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(wC(u)||(i+=`${Es(f)}:${u};`))}let a,c;if(t.startsWith(\"@media\"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(\":\")||t.startsWith(\"&\")||t.startsWith(\"[\")&&!t.includes(\"&\")){let l=t.startsWith(\"&\")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes(\"&\")?(c=t.replace(\"&\",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return r!==!1&&Z2.test(c)&&(a=`${X2}{${a}}`),`${o}\n${a}`}var qb=null;function Hu(t){qb=t}var Ue={structuralHash:Uu,deepEqual:Vu,mergeStructural:Hb,overwriteDeep:Wb,shortHash:an,toKebab:Es,sanitizeValue:_c,batchShortHash:bC,atomicCssClass:xC,batchAtomicCss:SC,compoundCssClass:kC},vC=!1,zu=null;function CC(t){return zu||(zu=import(t||\"@symbo.ls/wasm/pkg\").then(e=>(e.structuralHash&&(Ue.structuralHash=e.structuralHash),e.deepEqual&&(Ue.deepEqual=e.deepEqual),e.mergeStructural&&(Ue.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Ue.overwriteDeep=e.overwriteDeep),e.shortHash&&(Ue.shortHash=e.shortHash),e.toKebab&&(Ue.toKebab=e.toKebab),e.sanitizeValue&&(Ue.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Ue.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Ue.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Ue.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Ue.compoundCssClass=e.compoundCssClass),vC=!0,qb&&e.batchAtomicCss&&qb({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug(\"[smbls] WASM not available, using JS fallbacks:\",e.message),!1)),zu)}function EC(){return vC}P();var xc={};L(xc,{CDN_PROVIDERS:()=>Se,DOMQL_EVENTS:()=>qp,DOMQ_PROPERTIES:()=>Lr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>vo,ENV:()=>fh,HTML_TAGS:()=>Ao,METHODS:()=>Mr,METHODS_EXL:()=>hi,NODE_ENV:()=>Le,OPTIONS:()=>Bi,PACKAGE_MANAGER_TO_CDN:()=>Ur,PARSED_DOMQ_PROPERTIES:()=>pi,PROPS_METHODS:()=>$r,STATE_METHODS:()=>wn,STATE_PROPERTIES:()=>Hp,SVG_TAGS:()=>Zx,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>uf,__resetBuiltinMethodWarnings:()=>Wg,addCaching:()=>zl,addContext:()=>Vl,addExtend:()=>Ih,addExtends:()=>Ye,addItemAfterEveryElement:()=>Pp,addProtoToArray:()=>li,addRef:()=>jl,applyCSS:()=>Yb,applyDependentState:()=>Jh,applyEvent:()=>Yl,applyEventUpdate:()=>Xl,applyExtends:()=>tw,applyProps:()=>Ii,arrayContainsOtherArray:()=>vp,arraysEqual:()=>Ip,arrayzeValue:()=>Ln,buildImgSrcset:()=>ya,buildSourcesAndImg:()=>ba,cache:()=>ng,call:()=>vg,captureSnapshot:()=>Eg,checkForStateTypes:()=>Gh,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>Mp,clone:()=>Yp,cloneAndMergeArrayExtend:()=>Ci,cloneFunction:()=>yh,collectExtendsList:()=>To,concatAddExtends:()=>Rh,copyJavaScriptToClipboard:()=>Gg,copyStringToClipboard:()=>Kg,createBasedOnType:()=>Nl,createElement:()=>Kh,createElementExtends:()=>El,createExtends:()=>Ai,createExtendsFromKeys:()=>Oo,createExtendsStack:()=>Rl,createIfConditionFlag:()=>bh,createInheritedState:()=>Yh,createKey:()=>Si,createNestedObject:()=>nh,createNestedObjectByKeyPath:()=>Zh,createObjectWithoutPrototype:()=>bl,createParent:()=>Bl,createPath:()=>Ul,createProps:()=>Li,createPropsStack:()=>Ml,createRoot:()=>qh,createScope:()=>tg,createSnapshotId:()=>wi,customDecodeURIComponent:()=>zp,customEncodeURIComponent:()=>Vp,cutArrayAfterValue:()=>Op,cutArrayBeforeValue:()=>Tp,debounce:()=>ki,debounceOnContext:()=>gh,decodeNewlines:()=>Up,deepClone:()=>st,deepContains:()=>eh,deepDefaults:()=>pa,deepDestringifyFunctions:()=>_e,deepExtend:()=>Cl,deepMerge:()=>nt,deepMergeExtends:()=>Xe,deepStringifyFunctions:()=>mi,defineSetter:()=>Sg,destringifyGlobalScope:()=>bi,detectHeightOnInit:()=>Pg,detectInfiniteLoop:()=>ah,document:()=>et,encodeNewlines:()=>Bp,error:()=>Pn,excludeKeysFromObject:()=>lh,exec:()=>lt,extendCachedRegistry:()=>Ph,extendStackRegistry:()=>Ti,extractArrayExtend:()=>Ri,fetchLibraryData:()=>mf,fibonacciNumberByIndex:()=>Dg,filterArrays:()=>Lp,filterArraysFast:()=>$p,finalizeExtends:()=>Pl,findClosestNumber:()=>gf,findClosestNumberInFactory:()=>Vg,findInheritedState:()=>Kl,findKeyPosition:()=>Np,flattenExtend:()=>Ro,formatDate:()=>Rg,generateHash:()=>Sl,generateHeadArrayTags:()=>hf,generateKey:()=>xi,generateMetaTags:()=>Bg,get:()=>bg,getActiveRoute:()=>Db,getCDNDirUrl:()=>df,getCDNUrl:()=>Me,getCapitalCaseKeys:()=>Mh,getCdnProviderFromConfig:()=>Fo,getChildStateInKey:()=>ql,getChildren:()=>wg,getContext:()=>oa,getCookie:()=>kh,getDB:()=>la,getEmotionStylesheet:()=>Jg,getExtendsInElement:()=>Lh,getExtendsStack:()=>Ei,getExtendsStackRegistry:()=>vl,getFrequencyInArray:()=>Cp,getFunctionSource:()=>Ie,getHashedExtend:()=>Oi,getImportMapScript:()=>Og,getInObjectByPath:()=>ih,getLocalStorage:()=>Ch,getNev:()=>hh,getPageMetadata:()=>Ug,getParentStateInKey:()=>Wl,getPath:()=>Ji,getQuery:()=>fa,getRef:()=>xg,getRoot:()=>ea,getRootContext:()=>na,getRootData:()=>ra,getRootState:()=>ta,getRootStateInKey:()=>Hl,getSpreadChildren:()=>Fh,global:()=>wp,hasFunction:()=>Ge,hasHandlerPlugin:()=>Co,hasOwnProperty:()=>Jp,hashContent:()=>jo,inheritChildExtends:()=>Tl,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Ol,init:()=>Er,initProps:()=>zh,is:()=>Zt,isArray:()=>R,isBoolean:()=>ul,isBuiltinElementMethod:()=>Wp,isContextComponent:()=>Nh,isCyclic:()=>ch,isDOMNode:()=>Xt,isDate:()=>pl,isDefined:()=>Ot,isDevelopment:()=>Nr,isEmpty:()=>ml,isEmptyObject:()=>Qp,isEqualDeep:()=>yl,isFailedRevival:()=>En,isFunction:()=>O,isHtmlElement:()=>oi,isLazyFunction:()=>Xp,isLocal:()=>ph,isLoudDevRuntime:()=>pt,isMalformedDependency:()=>Dn,isMethod:()=>Cg,isMobile:()=>wh,isNode:()=>dr,isNot:()=>kp,isNotProduction:()=>Tn,isNull:()=>dl,isNumber:()=>Ke,isObject:()=>v,isObjectLike:()=>j,isPhoto:()=>Ig,isPolyglotWritableKey:()=>hr,isProduction:()=>Fr,isProtectedElementMethod:()=>Sn,isStaging:()=>dh,isState:()=>Xh,isString:()=>S,isStringFunction:()=>vi,isTest:()=>xl,isTesting:()=>uh,isUndefined:()=>Pt,isUniversallyReservedKey:()=>Ag,isUnresolvableDependency:()=>Vr,isValidDependencyMap:()=>In,isValidHtmlTag:()=>Ah,isWrappedLibrary:()=>tr,joinArrays:()=>wo,jointStacks:()=>Dh,keys:()=>lf,lastLevel:()=>Bu,lastPathname:()=>ju,loadCssFile:()=>Fg,loadJavascript:()=>Ng,loadJavascriptFile:()=>Lg,loadJavascriptFileEmbedSync:()=>Mg,loadJavascriptFileSync:()=>$g,loadRemoteCSS:()=>jg,loadRemoteScript:()=>No,log:()=>kg,logGroupIf:()=>xh,logIf:()=>_h,lookdown:()=>mg,lookdownAll:()=>yg,lookup:()=>gg,lowercaseFirstLetter:()=>xn,makeObjectWithoutPrototype:()=>th,map:()=>Gp,mapStringsWithContextComponents:()=>Pi,markPolyglotSeeded:()=>Je,matchRoute:()=>Ob,matchesComponentNaming:()=>Ze,memoize:()=>mh,merge:()=>yt,mergeSharedLibraries:()=>ha,nextElement:()=>ia,normalizeIgnoreList:()=>zr,normalizeLibraryKey:()=>Bo,objectToString:()=>yi,objectizeStringProperty:()=>Di,overwrite:()=>_i,overwriteDeep:()=>Wt,overwriteShallow:()=>An,overwriteState:()=>Qh,parse:()=>ff,parseDeep:()=>Xi,parseQuery:()=>Rb,parseRoutePattern:()=>Tb,pickupElementFromProps:()=>Ll,pickupPropsFromElement:()=>Il,polyglotSeededKeys:()=>ji,previousElement:()=>aa,promoteActiveRootState:()=>Io,propExists:()=>Uh,propertizeElement:()=>$l,propertizeUpdate:()=>Bh,reinit:()=>Gb,remove:()=>Ow,removeChars:()=>Yg,removeCookie:()=>vh,removeDuplicateProps:()=>Fi,removeDuplicatesInArray:()=>So,removeFromArray:()=>Ep,removeFromObject:()=>rh,removeNestedKeyByPath:()=>oh,removeValueFromArray:()=>ci,removeValueFromArrayAll:()=>Rp,reorderArrayByValues:()=>Dp,replaceLiteralsWithObjectFields:()=>$t,replaceOctalEscapeSequences:()=>jp,resolveAsset:()=>Jt,resolveHandler:()=>Eo,resolveSharedLibraries:()=>qg,returnValueAsText:()=>Fl,router:()=>cr,runGuards:()=>Pb,runPluginHook:()=>Rt,scratchSystem:()=>rs,scratchUtils:()=>qr,self:()=>Sp,set:()=>Gn,setActiveRootState:()=>Qi,setCookie:()=>Sh,setHashedExtend:()=>kl,setInObjectByPath:()=>sh,setLocalStorage:()=>Eh,setNodeStyles:()=>cf,setProps:()=>_g,setPropsPrototype:()=>Mi,sharedLibrary:()=>Hg,splitPackageSpecifier:()=>ua,spotByPath:()=>Zi,srcsetFor:()=>Uo,stringIncludesAny:()=>ui,stringToObject:()=>Zp,stripVersionRangePrefix:()=>da,swapItemsInArray:()=>Ap,syncProps:()=>Ni,toCamelCase:()=>ga,toDashCase:()=>ma,toDescriptionCase:()=>Zg,toPriorityOrder:()=>xe,toTitleCase:()=>Xg,toggleFullscreen:()=>Tg,triggerEventOn:()=>gr,triggerEventOnUpdate:()=>eg,trimStringFromSymbols:()=>Fp,unstackArrayOfObjects:()=>ai,update:()=>Vh,updateProps:()=>Hh,variables:()=>ca,verbose:()=>Lo,warn:()=>sa,window:()=>C});P();P();var Q2=T(),AC=(t=Q2,e)=>{let r=v(e.localFile)?e.localFile:{},n=st(r.designSystem||{});return nt(t,n,fe)},tD={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Wu=(t,e)=>{let r=!e||e===\":root\",n={};for(let o in t)if(o.startsWith(\"@media\")){let s=r?\":root:not([data-theme])\":`:root:not([data-theme]) ${e}:not([data-theme])`;n[o]={[s]:t[o]}}else r?n[o]=t[o]:n[`${e}${o}, ${o} ${e}`]=t[o];return n},Kb=(t,e)=>{t.CSS_MEDIA_VARS&&_t(Wu(t.CSS_MEDIA_VARS,e));let r=Kn(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(r).length&&_t(r)},Er=(t,e=tD)=>{let r=AC(t||{},e),n=e.scopeSelector||\":root\",o=e.globalTheme;if(typeof window<\"u\"&&window.location){let g=new URLSearchParams(window.location.search).get(\"globalTheme\");g&&(o=g)}let s=Gn({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:o,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=n);let i=ka(s.font,s.files),a=s.useReset,c=s.useVariable,l=s.useFontImport,f=s.useSvgSprite,u=t.svg,d=s.useIconSprite,h=t.icons;l&&_t(i),c&&(_t({[n]:s.CSS_VARS}),Kb(s,n)),a&&_t(s.reset);let p=s.animation;if(p){let g={};for(let m in p)g[`@keyframes ${m}`]=p[m];_t(g)}return(u||f)&&Xa(s.svg,{document:e.document}),(h||d)&&qn(s.icons,{document:e.document}),s},qu={},Gb=(t,e=qu)=>{let r=AC(t||{},e),n=e.scopeSelector||\":root\",o=Gn({verbose:!1,...r});return e.preventInject||(_t({[n]:o.CSS_VARS}),Kb(o,n),_t(o.reset)),o},Yb=(t,e=qu)=>{_t(t)},eD=(t,e=qu)=>{let r=e.scopeSelector||\":root\";_t({[r]:t.CSS_VARS}),Kb(t,r)};var rD=(t,e=qu)=>{};P();var OC=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"||t===\"blank\"||t===\"about:blank\"?\"/\":t,nD=t=>{let e=t&&t.initialPath;return typeof e!=\"string\"||!e?null:e[0]===\"/\"?e:\"/\"+e},Zb={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},wc=(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},oD=[\"manual\",\"auto\"],Xb=new WeakMap,TC=(t,e)=>{let r=e.claims[e.claims.length-1],n=r?r.value:e.found;t.scrollRestoration!==n&&(t.scrollRestoration=n)},sD=(t,e)=>{let r=e&&e.scrollRestoration;if(r!=null){if(!oD.includes(r)){if(t.verbose!==!1){let n=typeof r==\"string\"?JSON.stringify(r):`a ${typeof r}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual' or 'auto', got ${n} \\u2014 the browser default stays`)}return}try{let n=t.window||C,o=n&&n.history;if(!o||!(\"scrollRestoration\"in o))return;let s=Xb.get(o);s||(s={found:o.scrollRestoration,claims:[]},Xb.set(o,s));let i={value:r};s.claims.push(i),TC(o,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||Xb.delete(o);try{TC(o,s)}catch{}}})}catch{}}},RC=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Zb:e.router=yt(e.router||{},Zb);let r=e.router;sD(e,r);let n=async(s,i)=>{let a=s.context?.window||C,c=nD(r);if(!c){if(!a.location)return;let{pathname:f,search:u,hash:d}=a.location;f=OC(f),c=f+u+d}let l=s;if(r.customRouterElement){let f=wc(s,r.customRouterElement);f&&(l=f,s.routes&&(l.routes=s.routes))}l.routes&&await cr(c,l,{},{initialRender:!0,pushState:!1})},o=!Pt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),iD(e,r),r},Jb=(t,e)=>{if(e.router===!1)return;let r=e.router||Zb;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:cr,o=e.window||C,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=OC(a);let f=a+c+l,u=t;if(r.customRouterElement){let d=wc(t,r.customRouterElement);d&&(u=d,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))},iD=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return nt(r.Link||r[\"smbls.Link\"],r.RouterLink||r[\"smbls.RouterLink\"])};P();var Qb=C&&C.location?C.location.host.includes(\"dev.\"):Nr(),PC=Qb?\"http://localhost:8080/get\":\"https://api.symbols.app/get\",aD={endpoint:PC},DC=async(t,e=aD)=>{let r=e.endpoint||PC,n=e.serviceRoute?R(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(O(e.onError))return e.onError(s);console.error(s)}},cD=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await DC(t,r),o=Qb||e.isDevelopment?_e(n):_e(n.releases[0]);r.serviceRoute?R(r.serviceRoute)?r.serviceRoute.forEach(s=>{Wt(e[s],o[s.toLowerCase()])}):Wt(e[r.serviceRoute],o):[\"state\",\"designSystem\",\"components\",\"snippets\",\"pages\",\"utils\",\"files\",\"assets\",\"packages\",\"functions\",\"globalScope\"].forEach(s=>{Wt(e[s],o[s.toLowerCase()])})}return e},lD=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await DC(t,n),s=Qb||e.isDevelopment?_e(o):_e(o.releases[0]);r(s)}},IC=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await cD(t,e)}catch(r){console.error(r)}},LC=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&lD(e,r,n||(o=>{let s=o.designSystem;v(s)&&r.utils.init(s),v(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Sc=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{nn(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};var e_={};L(e_,{Helmet:()=>FC,applyMetadata:()=>Os,default:()=>yD,extractMetadata:()=>hD,generateHeadHtml:()=>mD,helmetPlugin:()=>t_,resolveMetadata:()=>cn});P();var fD={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\"}},uD=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}\"]`},$C=t=>_e({v:t}).v,MC=(t,e,r,n)=>{try{return lt(t,e,r)}catch(o){console.warn(`[helmet] metadata factory for \"${n}\" threw; treating as unset:`,o&&o.message||o);return}},cn=(t,e,r)=>{if(!t)return{};let n=t;S(n)&&Ge(n)&&(n=$C(n));let o=O(n)?MC(n,e,r,\"metadata\"):v(n)?{...n}:{};if(!v(o))return{};for(let s in o){let i=o[s];S(i)&&Ge(i)&&(i=$C(i)),O(i)?i=MC(i,e,r,s):S(i)&&Ge(i)&&(i=void 0),S(i)&&i.includes(\"{{\")&&e?.call&&(i=e.call(\"replaceLiteralsWithObjectFields\",i,r)),o[s]=i}return o},dD=t=>!!t&&typeof t==\"object\"&&(t.notFound===!0||t.metadata?.notFound===!0),pD=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t[\"/*\"])return t[\"/*\"];if(t[\"*\"])return t[\"*\"];for(let r in t)if(dD(t[r]))return t[r]},hD=(t,e=\"/\",r,n)=>{let o=t.pages||{},s=pD(o,e),i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let c=cn(t.app.metadata,r,n);i={...i,...c}}let a=new Set;if(s){let c=s.metadata||s.helmet||{},l=cn(c,r,n);for(let f in l)a.add(f);i={...i,...l},!i.title&&s.state?.title&&(i.title=s.state.title,a.add(\"title\")),!i.description&&s.state?.description&&(i.description=s.state.description,a.add(\"description\"))}if(i.title||(i.title=t.name||\"Symbols\"),i.title&&(a.has(\"title\")||!i[\"og:title\"])&&(a.has(\"og:title\")||(i[\"og:title\"]=i.title)),i.description&&(a.has(\"description\")||!i[\"og:description\"])&&(a.has(\"og:description\")||(i[\"og:description\"]=i.description)),i.title&&!i[\"twitter:title\"]&&(i[\"twitter:title\"]=i.title),i.description&&!i[\"twitter:description\"]&&(i[\"twitter:description\"]=i.description),i[\"og:url\"]||i.url){let c=(i[\"og:url\"]||i.url||\"\").replace(/\\/$/,\"\");if(c&&e&&e!==\"/\"){let l=e.startsWith(\"/\")?e:\"/\"+e;i[\"og:url\"]=c+l}}if(t.files)for(let c in i){let l=i[c];if(typeof l==\"string\"&&l.length>0&&!l.startsWith(\"/\")&&!l.startsWith(\"http\")){let f=t.files[l];f?.src&&(i[c]=f.src)}}return i},gD=(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},Ts=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)},As=(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))}},Os=(t,e)=>{if(!(!v(t)||!e)){for(let r in t){let n=t[r];if(n==null||r===\"jsonLd\"||r===\"styles\"||r===\"scripts\"||r===\"alternate\"||r===\"favicons\"||r===\"icon\"||r===\"favicon\")continue;let o=fD[r];if(!o)continue;let s=uD(o),i=e.querySelector(s)||gD(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(Ts);As(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(Ts);As(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));As(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})}if(Array.isArray(t.alternate)){let r=t.alternate.filter(o=>v(o)),n=r.map(o=>`${o.hreflang||\"\"}|${o.href||\"\"}`);As(e,\"data-smbls-alternate\",n,o=>{let s=n.indexOf(o),i=e.createElement(\"link\");i.setAttribute(\"rel\",\"alternate\");for(let[a,c]of Object.entries(r[s]))i.setAttribute(a,c);return i})}if(Array.isArray(t.favicons)){let r=t.favicons.filter(o=>o!=null),n=r.map(o=>v(o)?Ts(JSON.stringify(o)):String(o));As(e,\"data-smbls-favicon\",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement(\"link\");if(a.setAttribute(\"rel\",\"icon\"),v(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute(\"href\",String(i));return a})}if(t.icon||t.favicon){let r=String(t.icon||t.favicon),n=r.endsWith(\".svg\")?\"image/svg+xml\":r.endsWith(\".png\")?\"image/png\":\"\";As(e,\"data-smbls-single-icon\",[r],o=>{let s=e.createElement(\"link\");return s.setAttribute(\"rel\",\"icon\"),s.setAttribute(\"href\",o),n&&s.setAttribute(\"type\",n),s})}}},at=t=>{if(t==null)return\"\";let e={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"};return t.toString().replace(/[&<>\"']/g,r=>e[r])},mD=t=>{let e=['<meta charset=\"UTF-8\">'],r=new Set([\"charset\",\"jsonLd\",\"styles\",\"scripts\"]),n=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||r.has(o)||typeof s==\"function\")continue;if(o===\"title\"){e.push(`<title>${at(s)}</title>`);continue}if(o===\"viewport\"){n||(e.push(`<meta name=\"viewport\" content=\"${at(s)}\">`),n=!0);continue}if(o===\"canonical\"){e.push(`<link rel=\"canonical\" href=\"${at(s)}\">`);continue}if(o===\"icon\"||o===\"favicon\"){let f=at(s),u=f.endsWith(\".svg\")?' type=\"image/svg+xml\"':f.endsWith(\".png\")?' type=\"image/png\"':\"\";e.push(`<link rel=\"icon\" href=\"${f}\"${u}>`);continue}if(o===\"favicons\"&&Array.isArray(s)){s.forEach(f=>{if(typeof f==\"object\"){let u=Object.entries(f).map(([d,h])=>`${d}=\"${at(h)}\"`).join(\" \");e.push(`<link rel=\"icon\" ${u}>`)}else typeof f==\"string\"&&e.push(`<link rel=\"icon\" href=\"${at(f)}\">`)});continue}if(o===\"alternate\"&&Array.isArray(s)){s.forEach(f=>{if(typeof f==\"object\"){let u=Object.entries(f).map(([d,h])=>`${d}=\"${at(h)}\"`).join(\" \");e.push(`<link rel=\"alternate\" ${u}>`)}});continue}let i=[\"og:\",\"article:\",\"product:\",\"fb:\",\"profile:\",\"book:\",\"business:\",\"music:\",\"video:\"],a=[\"twitter:\",\"DC:\",\"DCTERMS:\"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith(\"http-equiv:\")){let f=o.replace(\"http-equiv:\",\"\");e.push(`<meta http-equiv=\"${at(f)}\" content=\"${at(s)}\">`)}else if(o.startsWith(\"itemprop:\")){let f=o.replace(\"itemprop:\",\"\");e.push(`<meta itemprop=\"${at(f)}\" content=\"${at(s)}\">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property=\"${at(o)}\" content=\"${at(f)}\">`)):e.push(`<meta property=\"${at(o)}\" content=\"${at(s)}\">`):l?e.push(`<meta name=\"${at(o)}\" content=\"${at(s)}\">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name=\"${at(o)}\" content=\"${at(f)}\">`)):(typeof s==\"string\"||typeof s==\"number\"||typeof s==\"boolean\")&&e.push(`<meta name=\"${at(o)}\" content=\"${at(s)}\">`)}if(n||e.splice(1,0,'<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">'),Array.isArray(t.jsonLd))for(let o of t.jsonLd){if(o==null)continue;let s=typeof o==\"string\"?o:JSON.stringify(o),i=String(s).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script type=\"application/ld+json\" data-smbls-jsonld=\"${Ts(s)}\">${i}<\\/script>`)}if(Array.isArray(t.styles))for(let o of t.styles){if(o==null||!String(o).trim())continue;let s=String(o).replace(/<\\/style/gi,\"<\\\\/style\");e.push(`<style data-smbls-style=\"${Ts(s)}\">${s}</style>`)}if(Array.isArray(t.scripts))for(let o of t.scripts){if(!o)continue;let s=typeof o==\"string\",i=s?o:o.src;if(!i&&!(o&&o.body))continue;let a=[];i&&a.push(`src=\"${at(i)}\"`),s||(o.type&&a.push(`type=\"${at(o.type)}\"`),o.async&&a.push(\"async\"),o.defer&&a.push(\"defer\"),o.integrity&&a.push(`integrity=\"${at(o.integrity)}\"`),o.crossorigin&&a.push(`crossorigin=\"${at(o.crossorigin)}\"`),o.referrerpolicy&&a.push(`referrerpolicy=\"${at(o.referrerpolicy)}\"`),o.nomodule&&a.push(\"nomodule\"));let c=` data-smbls-script=\"${at(i||Ts(o.body||\"\"))}\"`;if(!s&&o.body){let l=String(o.body).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script ${a.join(\" \")}${c}>${l}<\\/script>`)}else e.push(`<script ${a.join(\" \")}${c}><\\/script>`)}return e.join(`\n`)},FC={define:{metadata:(t,e,r)=>{let n=e.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=G(()=>{let s=cn(t,e,e.state);Os(s,n);let i=e.state?.root;v(i)&&(i.$helmet=s)});e.__ref?.__effects&&e.__ref.__effects.push(o)}}},t_={name:\"helmet\",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<\"u\"&&document;if(!e)return;let r=G(()=>{let n=t.metadata;if(!n)return;let o=cn(n,t,t.state);Os(o,e)});t.__ref?.__effects&&t.__ref.__effects.push(r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<\"u\"&&document;if(!r)return;let n=cn(e,t,t.state);Os(n,r)}},yD=FC;Yi();var NC=(t,e,r,n)=>{t&&Gi(t,e,r,n)},jC=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=cn(t,e,r);Os(o,n)},BC=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},Rs={routes:t=>t,metadata:jC,fetch:NC,$router:BC},UC=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=jC),t.fetch!==!1&&(e.fetch=NC),t.router!==!1&&(e.$router=BC),e};var r_={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Ku={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Gu={...r_,router:Ku},bD={state:{},pages:{},components:{},router:Ku,define:Rs},ln=bD;P();P();var VC=(t,e)=>j(t.extends)?t.extends:[];P();var n_={};L(n_,{default:()=>SD,getActiveLang:()=>fn,getLanguages:()=>vc,getLocalStateLang:()=>Oc,initPolyglot:()=>Xu,loadTranslations:()=>Ec,polyglotPlugin:()=>Ds,setLang:()=>Ac,translate:()=>Cc,upsertTranslation:()=>Tc});P();var HC=\"smbls_lang\",_D=\"smbls_t_\",xD=\"smbls_tv_\",Ps={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)}}},kc={};function fn(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||t?.state?.lang||e?.defaultLang||\"en\"}function vc(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Yu=(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},zC=(t,e,r)=>{let n=e.lastIndexOf(\".\");if(n===-1)return t[e+\"_\"+r];let o=Yu(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=zC(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Yu(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=Yu(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||\"en\";if(s){let l=zC(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Yu(l,t);if(f!==void 0)return f}}return t}async function Ec(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||_D,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,\"v_\"):xD);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Ps.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(kc[i])return kc[i];let a=this;return kc[i]=(async()=>{try{let c=r.fetch,l=parseInt(Ps.get(s+t),10)||0,f,u,d;if(O(c)){let p=await c(t,l,a);if(!p||p.changed===!1)return;f=p.translations||p.data||p,u=p.version||0,d=!0}else if(v(c)){let p=a.getDB||(()=>e.fetch),g=O(p)?await p.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||{}},x=await g.rpc({from:m,params:y});if(x.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,x.error;let b=x.data;if(!b||!b.changed)return;f=b.translations||{},u=b.version||0,d=!0}else return;if(!d||!f)return;Ps.set(o+t,JSON.stringify(f)),u&&Ps.set(s+t,String(u));let h={translations:{...n.translations||{}}};h.translations[t]=f,n.update&&n.update(h)}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 kc[i]}})(),kc[i]}var wD=(t,e,r)=>{let n=t.__ref;if(!n||n.contentManaged||r==null||typeof r==\"object\")return;let o=n.__textNode;if(!o||o.parentNode!==e)return;let s=String(r);o.nodeValue!==s&&(o.nodeValue=s)};async function Ac(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root,o=e?.document||globalThis.document;if(!n)return;let s=r?.storageLangKey||HC;if(Ps.set(s,t),o?.documentElement&&(o.documentElement.lang=t),this.call(\"getActiveLang\")===t)return;r?.fetch&&await this.call(\"loadTranslations\",t),e?.state&&(e.state.lang=t);let i=r?.translations?.[t],a={lang:t},c=l=>hr(e,l,n);if(i&&typeof i==\"object\")for(let l in i){if(!c(l))continue;let f=i[l];(Array.isArray(f)||typeof f==\"string\"||typeof f==\"number\")&&(a[l]=f)}n.update&&n.update(a);for(let l in a)l!==\"lang\"&&Je(e,l);if(i&&typeof i==\"object\")for(let l in i){if(!c(l))continue;let f=i[l];if(f&&typeof f==\"object\"&&!Array.isArray(f)&&n[l]&&typeof n[l]==\"object\"&&!Array.isArray(n[l])){for(let u in f)n[l][u]=f[u];Je(e,l)}}if(o&&i){let l=o.querySelectorAll(\"[data-key]\");for(let f of l){let u=f.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d==\"string\"&&d.includes(\"{{\"))try{wD(u,f,u.call(\"replaceLiteralsWithObjectFields\",d,u.state))}catch{}}}}async function Tc(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&&v(o.fetch)){let i=this.getDB||(()=>n.fetch),a=O(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 Xu(){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||HC,s=Ps.get(n)||fn.call(this),i=t?.document||globalThis.document;i?.documentElement&&(i.documentElement.lang=s),r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call(\"loadTranslations\",s)}function Oc(t){try{let e=fn.call(this),r=this?.state;if(!r)return\"\";let n=t.lastIndexOf(\".\");if(n===-1)return r[t+e]??\"\";let o=t.substring(0,n).split(\".\"),s=r;for(let i=0;i<o.length;i++){if(s==null)return\"\";s=s[o[i]]}return s==null?\"\":s[t.substring(n+1)+e]??\"\"}catch{return\"\"}}var Ds={name:\"polyglot\",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Xu.call(t))}},SD=Ds;Yi();var s_={};L(s_,{SYSTEM_METRICS:()=>Rc,capsizeHandler:()=>o_,capsizePlugin:()=>Ju,computeCapsize:()=>WC,default:()=>kD,resolveFontSizePx:()=>qC,resolveMetrics:()=>KC});var Rc={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}},Zu=t=>parseFloat(t.toFixed(4)),WC=(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,d=l/i,h=(n-a+s/2)/i-(u-d)/2,p=(c+s/2)/i-(u-d)/2;return{fontSize:`${Zu(t/16)}rem`,lineHeight:`${Zu(f)}px`,capHeightTrim:`${Zu(-h)}em`,baselineTrim:`${Zu(-p)}em`}},qC=(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},KC=(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(Rc[i])return Rc[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(Rc[a])return Rc[a]}}return null},o_=(t,e,r,n)=>{if(!t)return;let o=qC(e.fontSize,n);if(!o)return;let s=KC(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=WC(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},Ju={name:\"capsize\",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},kD=Ju;var d_={};L(d_,{PRESERVE_VALUE_KEYS:()=>Ft,SKIP_INLINE_KEYS:()=>un,abbrToProp:()=>Mt,decode:()=>JC,encode:()=>YC,expand:()=>no,isComponentKey:()=>Ve,isSelectorKey:()=>ze,parse:()=>oo,parseFurther:()=>io,propToAbbr:()=>Pe,shorten:()=>Pc,shorthandPlugin:()=>Dc,stringify:()=>ro,stringifyFurther:()=>so});var Pe={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\"},Mt=Object.create(null);for(let t in Pe)Mt[Pe[t]]=t;var i_=Object.create(null);for(let t in Pe){let e=Pe[t];if(i_[e])throw new Error(`Duplicate abbreviation \"${e}\" for \"${t}\" \\u2014 already used by \"${i_[e]}\"`);i_[e]=t}var Ft=new Set([\"state\",\"st\",\"scope\",\"scp\",\"attr\",\"at\",\"style\",\"sy\",\"data\",\"dt\",\"context\",\"ctx\",\"query\",\"qy\",\"class\",\"cl\"]),un=new Set([\"text\",\"tx\",\"html\",\"htm\",\"content\",\"cnt\",\"placeholder\",\"phd\",\"src\",\"href\",\"hrf\"]);function Ve(t){return/^[A-Z]/.test(t)}function ze(t){return/^[:@.!$>&]/.test(t)||t.startsWith(\"> \")}function YC(t){if(!t||typeof t!=\"object\")return\"\";let e=[];for(let r in t){let n=t[r];if(typeof n==\"function\"||n!==null&&typeof n==\"object\"&&!Array.isArray(n)||n===void 0)continue;let o=Pe[r]||r;if(n===!0)e.push(o);else if(n===!1)e.push(\"!\"+o);else if(Array.isArray(n)){let s=n.map(i=>Qu(i));e.push(o+\":\"+s.join(\",\"))}else e.push(o+\":\"+Qu(n))}return e.join(\" \")}function Qu(t){return String(t).replace(/ /g,\"_\")}function Pc(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Pc(r):r});let e={};for(let r in t){let n=t[r];if(Ve(r)){e[r]=a_(n);continue}if(ze(r)){e[r]=a_(n);continue}let o=Pe[r]||r;if(Ft.has(r)||Ft.has(o)){e[o]=n;continue}e[o]=a_(n)}return e}function a_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Pc(e):e}):typeof t==\"object\"?Pc(t):t}function ro(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n==\"object\"?ro(n):n});let e={},r=[];for(let n in t){let o=t[n];if(Ve(n)){e[n]=GC(o);continue}if(ze(n)){e[n]=GC(o);continue}let s=Pe[n]||n;if(Ft.has(n)||Ft.has(s)){e[s]=o;continue}if(typeof o==\"function\"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(un.has(n)||un.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a==\"object\"})){e[s]=o.map(function(a){return a!==null&&typeof a==\"object\"?ro(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+\":\"+o.map(Qu).join(\",\"));continue}if(typeof o==\"object\"){e[s]=ro(o);continue}o===!0?r.push(s):o===!1?r.push(\"!\"+s):typeof o==\"number\"||typeof o==\"string\"&&(o.includes(\",\")||o.includes(\"_\"))?e[s]=o:r.push(s+\":\"+Qu(o))}return r.length&&(e.in=r.join(\" \")),e}function GC(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?ro(e):e}):typeof t==\"object\"?ro(t):t}function JC(t){if(!t||typeof t!=\"string\")return{};let e={},r=QC(t);for(let n of r){if(n.startsWith(\"!\")){let c=n.slice(1),l=Mt[c]||c;e[l]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let c=Mt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s;if(i.includes(\",\")){e[a]=i.split(\",\").map(XC);continue}e[a]=XC(i)}return e}function QC(t){return t.trim().split(/\\s+/).filter(Boolean)}function XC(t){let e=t.replace(/_/g,\" \");return/^-?\\d+(\\.\\d+)?$/.test(e)?Number(e):e}function ZC(t){return t.replace(/_/g,\" \")}function vD(t){if(!t||typeof t!=\"string\")return{};let e={},r=QC(t);for(let n of r){if(n.startsWith(\"!\")){let c=n.slice(1),l=Mt[c]||c;e[l]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let c=Mt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s;if(i.includes(\",\")){e[a]=i.split(\",\").map(ZC);continue}e[a]=ZC(i)}return e}function no(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?no(r):r});let e={};for(let r in t){let n=t[r];if(Ve(r)){e[r]=c_(n);continue}let o=Mt[r]||r;if(ze(r)&&o===r){e[r]=c_(n);continue}if(Ft.has(o)||Ft.has(r)){e[o]=n;continue}e[o]=c_(n)}return e}function c_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?no(e):e}):typeof t==\"object\"?no(t):t}function oo(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?oo(r):r});let e={};if(typeof t.in==\"string\"){let r=vD(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(Ve(r)){e[r]=l_(n);continue}let o=Mt[r]||r;if(ze(r)&&o===r){e[r]=l_(n);continue}if(Ft.has(o)||Ft.has(r)){e[o]=n;continue}e[o]=l_(n)}return e}function l_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?oo(e):e}):typeof t==\"object\"?oo(t):t}function t1(t){return String(t).replace(/\\\\/g,\"\\\\\\\\\").replace(/_/g,\"\\\\_\").replace(/,/g,\"\\\\,\").replace(/ /g,\"_\")}function CD(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 ED(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 e1(t){if(t==null||typeof t!=\"object\"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]===\"in\"&&typeof t.in==\"string\"}function so(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n==\"object\"?so(n):n});let e={},r=[];for(let n in t){let o=t[n];if(Ve(n)){let i=r1(o);e[n]=e1(i)?i.in:i;continue}if(ze(n)){let i=r1(o);e[n]=e1(i)?i.in:i;continue}let s=Pe[n]||n;if(Ft.has(n)||Ft.has(s)){e[s]=o;continue}if(typeof o==\"function\"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(un.has(n)||un.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a==\"object\"})){e[s]=o.map(function(a){return a!==null&&typeof a==\"object\"?so(a):a});continue}if(o.length<=1){e[s]=o;continue}r.push(s+\":\"+o.map(t1).join(\",\"));continue}if(typeof o==\"object\"){e[s]=so(o);continue}if(o===!0){r.push(s);continue}if(o===!1){r.push(\"!\"+s);continue}if(typeof o==\"number\"){r.push(s+\":#\"+o);continue}r.push(s+\":\"+t1(o))}return r.length&&(e.in=r.join(\" \")),e}function r1(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?so(e):e}):typeof t==\"object\"?so(t):t}function n1(t){return t.startsWith(\"#\")&&/^#-?\\d+(\\.\\d+)?$/.test(t)?Number(t.slice(1)):CD(t)}function f_(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=Mt[l]||l;e[f]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let l=Mt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Mt[s]||s,c=ED(i);if(c.length>1){e[a]=c.map(n1);continue}e[a]=n1(i)}return e}function io(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?io(r):r});let e={};if(typeof t.in==\"string\"){let r=f_(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(Ve(r)){typeof n==\"string\"?e[r]=f_(n):e[r]=u_(n);continue}let o=Mt[r]||r;if(ze(r)&&o===r){typeof n==\"string\"?e[r]=f_(n):e[r]=u_(n);continue}if(Ft.has(o)||Ft.has(r)){e[o]=n;continue}e[o]=u_(n)}return e}function u_(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?io(e):e}):typeof t==\"object\"?io(t):t}var AD={shorten:no,stringify:oo,stringifyFurther:io};function TD(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 OD=[\"components\",\"pages\",\"snippets\"],Dc={name:\"shorthand\",prepareContext(t){let e=t.shorthand;if(!e)return;let n=AD[e===!0?\"shorten\":e];if(n){for(let o of OD)t[o]&&(t[o]=TD(t[o],n));t.app&&typeof t.app==\"object\"&&(t.app=n(t.app))}}};var v_={};L(v_,{LEVELS:()=>Ic,analyzePlugin:()=>Ls,attachBrowserListeners:()=>cd,attachNetworkListeners:()=>$c,classifyEvent:()=>__,createAnalyzeState:()=>ld,createBeaconSink:()=>S_,createConsoleSink:()=>x_,createDedupe:()=>m_,createEnrich:()=>h_,createMemorySink:()=>w_,createPipeline:()=>nd,createRedact:()=>rd,createRemoteSink:()=>sd,createSample:()=>y_,createSummarize:()=>g_,default:()=>Ls,emitFetchEvent:()=>u1,makeEvent:()=>Z,meetsLevel:()=>td,normalizeLevel:()=>Lc,resolveSinks:()=>ad,summarizeElement:()=>ao});var RD=0,PD=()=>`${Date.now().toString(36)}-${(RD++).toString(36)}`,Z=(t,e,r={})=>({id:PD(),ts:Date.now(),type:t,level:e,...r}),DD=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(\" > \")},ao=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:DD(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Is=t=>t?.context?.analyze,ID={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\"}},LD=(t,{category:e,type:r,level:n})=>o=>{let s=Is(o);!s||!s.shouldCapture(e)||s.emit(Z(r,n,{hook:t,element:ao(o)}))},o1=t=>(e,r)=>{let n=Is(e);!n||!n.shouldCapture(\"state\")||n.emit(Z(\"state\",\"debug\",{hook:t,element:ao(e),changedKeys:r?.changedKeys||null}))},Ls={name:\"analyze\",error(t,e){let r=Is(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:ao(t),error:n,message:n?.message||(typeof e?.message==\"string\"?e.message:null)}))},renderRouter(t){let e=Is(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=Is(t);!e||!e.shouldCapture(\"updates\")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(t){let e=Is(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:ao(t),durationMs:r}))},beforeStateUpdate:o1(\"beforeStateUpdate\"),stateUpdate:o1(\"stateUpdate\")};for(let[t,e]of Object.entries(ID))Ls[t]=LD(t,e);P();var Ic={error:0,warn:1,info:2,debug:3,trace:4};var td=(t,e)=>{let r=Ic[t],n=Ic[e];return r==null||n==null?!0:r<=n},Lc=t=>Ic[t]!=null?t:\"warn\";P();var ed=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var $D=(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},MD=(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\"***\"}},p_=(t,e,r,n)=>{if(n>6||t==null||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(s=>p_(s,e,r,n+1));let o={};for(let s of Object.keys(t))if($D(s,e)||ed.test(s)){let a=MD(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=p_(t[s],e,r,n+1);return o},rd=(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:d,target:h,...p}=n,g=p_(p,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...g}}};var h_=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=C,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}}}},g_=()=>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},m_=(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}},y_=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},s1={redact:t=>rd(t.config.redact||[],t.config.maskStrategy),enrich:t=>h_(t),summarize:()=>g_(),dedupe:t=>m_(t.config.cache?.dedupeWindowMs||1e3),sample:t=>y_(t.config.sample||{})},FD=(t,e)=>{if(typeof t==\"function\")return t;if(typeof t==\"string\"){let r=s1[t];return r?r(e):null}return null},nd=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(s1.redact(t));for(let s of r){let i=FD(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 d=u,h=!1;for(let p of l)if(d=p(d),d==null){h=!0;break}!h&&d!=null&&f.push(d)}return f}i=c}return i}};P();P();var od=typeof C<\"u\"&&typeof C.document<\"u\",ND=5e3,jD=50,BD=3,UD=1500,VD=1e3,__=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\",zD=t=>{try{return JSON.stringify(t)}catch{return null}},HD=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},WD=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}},qD=()=>{if(!od)return null;try{let t=C.document?.documentElement?.getAttribute(\"data-theme\")||null,e=typeof C.matchMedia==\"function\"?C.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}},KD=()=>{if(!od)return null;let t=C.location,e=typeof navigator<\"u\"?navigator:null,r=typeof screen<\"u\"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:e?.userAgent||null,browser:WD(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:HD(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.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:qD()}},sd=(t={})=>{let e=t.url,r=typeof t.transport==\"function\"?t.transport:null,n=typeof t.syncTransport==\"function\"?t.syncTransport:null;if(!e&&!r)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth==\"function\"?t.getAuth:null,u=typeof t.getContext==\"function\"?t.getContext:null,d=typeof t.classify==\"function\"?t.classify:__,h=typeof t.beforeSend==\"function\"?t.beforeSend:null,p=t.debug===!0,g=typeof t.getDebug==\"function\"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:ND,y=t.maxBatch||jD,x=t.maxRetries!=null?t.maxRetries:BD,b=t.backoffMs||UD,_=t.queueLimit||VD,w=t.sampleRate!=null?t.sampleRate:1,k=()=>typeof crypto<\"u\"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,E=t.sessionId||k(),D=[],F=[],A=null,N=null,At=()=>{A||!D.length||(A=setTimeout(M,m))},Vt=$=>{if(N)return;let q=b*Math.pow(2,Math.max(0,$-1));N=setTimeout(()=>{if(N=null,!F.length)return;let mt=F.shift();it(mt.envelope,mt.attempt)},q)},kt=($,q=!1)=>{let mt=u?b_(u):null,X={id:E,sentAt:Date.now()};q&&(X.endedAt=Date.now());let Y={v:1,session:X,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:KD(),user:mt?.user||null,traits:mt?.traits||null,tags:mt?.tags||null,events:$};if((g?b_(g)===!0:p)&&(Y.app.debug=!0),h)try{return h(Y)||null}catch{return Y}return Y},it=async($,q=1)=>{if($)try{let mt=!0;if(r){let X=await r($);mt=X!==!1&&X?.ok!==!1}else mt=await GD(e,$,{apiKey:o,getAuth:f});!mt&&q<x&&(F.push({envelope:$,attempt:q+1}),Vt(q+1))}catch{q<x&&(F.push({envelope:$,attempt:q+1}),Vt(q+1))}},M=($=!1,q=!1)=>{if(A&&(clearTimeout(A),A=null),!D.length&&!q)return;let mt=D;D=[];let X=kt(mt,q);if(X){if($&&od){if(typeof n==\"function\"&&b_(()=>n(X)))return;if(navigator.sendBeacon&&e){let Y=zD(X);if(Y)try{navigator.sendBeacon(e,new C.Blob([Y],{type:\"application/json\"}));return}catch{}}}it(X)}},H=!1,gt=()=>{H||(H=!0,M(!0,!0))};od&&(C.addEventListener(\"pagehide\",gt,{passive:!0}),C.addEventListener(\"beforeunload\",gt,{passive:!0}),C.addEventListener(\"visibilitychange\",()=>{C.document.visibilityState===\"hidden\"&&M(!0)},{passive:!0}));let B=$=>{if(!$||w<1&&Math.random()>w)return;H&&(H=!1);let q={...$,log_type:d($)};D.push(q),D.length>_&&(D=D.slice(-_)),D.length>=y?M():At()},ht=$=>(M(!1,!0),E=$||k(),H=!1,B.sessionId=E,E);return B.flush=()=>M(!1),B.endSession=gt,B.startNewSession=ht,B.sessionId=E,B},b_=t=>{try{return t()}catch{return null}},GD=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 YD={error:\"\\x1B[31m\",warn:\"\\x1B[33m\",info:\"\\x1B[36m\",debug:\"\\x1B[90m\",trace:\"\\x1B[90m\"},XD=\"\\x1B[0m\",id=typeof C<\"u\"&&typeof C.document<\"u\",x_=(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(id)i(a,s);else{let c=YD[s.level]||\"\";i(`${c}${a}${XD}`,s)}}},w_=(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},S_=(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=id?new C.Blob([c],{type:\"application/json\"}):c;if(id&&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(()=>{})};id&&(C.addEventListener(\"pagehide\",i,{passive:!0}),C.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},i1={console:x_,memory:w_,beacon:S_,remote:sd},a1=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},ad=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=i1[n];if(!o)continue;r.push(n===\"memory\"?o(t,{}):o(n===\"remote\"?a1(t,{}):{}))}else if(n&&typeof n==\"object\"&&n.type){let o=i1[n.type];if(!o)continue;r.push(n.type===\"memory\"?o(t,n):o(n.type===\"remote\"?a1(t,n):n))}return r};P();var ZD=typeof C<\"u\"&&typeof C.document<\"u\",JD=new Set([\"password\",\"hidden\"]),c1=(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))))}},k_=\"__analyzeKeyPath\",$s=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[k_])return e[k_];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[k_]=i}catch{}return i},QD=(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\"***\"}},tI=t=>!!(!t||t.tagName===\"INPUT\"&&JD.has(t.type)||ed.test(t.name||\"\")||ed.test(t.id||\"\")||t.dataset?.analyze===\"skip\"),cd=t=>{if(!ZD)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(C,\"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(C,\"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(C,\"click\",i=>{t.emit(Z(\"pointer\",\"info\",{hook:\"click\",target:$s(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:l1(i)}))},{passive:!0,capture:!0}),o(C,\"dblclick\",i=>{t.emit(Z(\"pointer\",\"info\",{hook:\"dblclick\",target:$s(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(C,\"contextmenu\",i=>{t.emit(Z(\"pointer\",\"info\",{hook:\"contextmenu\",target:$s(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=c1(i=>{t.emit(Z(\"pointer\",\"trace\",{hook:\"pointermove\",x:i.clientX,y:i.clientY}))},r.pointermove);o(C,\"pointermove\",s,{passive:!0})}if(e.keyboard&&o(C,\"keydown\",s=>{t.emit(Z(\"keyboard\",\"info\",{hook:\"keydown\",code:s.code,key:s.key&&s.key.length===1?\"\\xB7\":s.key,modifiers:l1(s),target:$s(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=tI(a),f=a.dataset?.analyze===\"track\",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=QD(a.value,t.config.maskStrategy)),t.emit(Z(\"forms\",\"info\",{hook:i.type,target:$s(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(C,\"input\",s,{passive:!0,capture:!0}),o(C,\"change\",s,{passive:!0,capture:!0}),o(C,\"submit\",i=>{t.emit(Z(\"forms\",\"info\",{hook:\"submit\",target:$s(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=c1(()=>{t.emit(Z(\"scroll\",\"trace\",{hook:\"scroll\",x:C.scrollX,y:C.scrollY}))},r.scroll);o(C,\"scroll\",s,{passive:!0,capture:!0})}if(e.viewport){let s=ki(()=>{t.emit(Z(\"viewport\",\"info\",{hook:\"resize\",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},r.resize);o(C,\"resize\",s,{passive:!0}),o(C,\"orientationchange\",()=>{t.emit(Z(\"viewport\",\"info\",{hook:\"orientationchange\",orientation:typeof screen<\"u\"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,\"visibilitychange\",()=>{t.emit(Z(\"viewport\",\"info\",{hook:\"visibilitychange\",hidden:C.document.hidden}))},{passive:!0}),t.emit(Z(\"viewport\",\"info\",{hook:\"initial\",w:C.innerWidth,h:C.innerHeight,dpr:C.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(f1)}))}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{}},l1=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),eI=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=f1(t.cause)),e},f1=t=>{if(t==null)return t;if(t instanceof Error)return eI(t);if(typeof t==\"object\")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};P();var rI=typeof C<\"u\"&&typeof C.document<\"u\",u1=(t,e)=>{let r=t?.analyze;if(!r||!r.shouldCapture(\"network\"))return;let n=e.phase===\"error\"?\"error\":\"info\";r.emit(Z(\"network\",n,{hook:`fetch.${e.phase}`,source:\"symbo-fetch\",...e}))},$c=t=>{if(rI&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof C.fetch==\"function\"){let e=C.fetch.bind(C),r=function(n,o){if(o?.headers?.[\"X-Analyze-Beacon\"]||!t.shouldCapture(\"network\"))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})};C.fetch=r,t.__teardown.push(()=>{C.fetch=e})}if(typeof C.XMLHttpRequest==\"function\"){let e=C.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||!t.shouldCapture(\"network\"))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 nI={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},oI={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},sI={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},iI={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},aI=t=>{let e={...nI,...t};return e.replay&&Object.assign(e,oI),e.telemetry&&Object.assign(e,sI),e.remote&&Object.assign(e,iI),Object.assign(e,t),e},cI=64,lI=()=>{if(typeof C>\"u\"||!C.location)return null;try{let e=new URLSearchParams(C.location.search).get(\"analyze\");return e||null}catch{return null}},ld=(t={})=>{let e=t===!0?{}:{...t};e.capture=aI(e.capture||{});let r=lI();(r===\"debug\"||e.debug)&&(e.level=\"debug\",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),r===\"off\"&&(e.enabled=!1),e.level=Lc(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=nd(n),n.__sinks=ad(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&&td(s.level,n.config.level)){if(!n.__ready){if(s.level!==\"error\"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<cI&&n.__preBuffer.push(s);return}o(),d1(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)d1(n,a)}try{cd(n)}catch(a){console.error(\"[analyze] browser attach error:\",a)}try{$c(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=Lc(s)},n.setCapture=(s,i)=>{if(n.config.capture[s]=!!i,s===\"network\"&&i&&n.__ready)try{$c(n)}catch(a){console.error(\"[analyze] network attach error:\",a)}},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.startNewSession=s=>{let i=s||(typeof crypto<\"u\"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(n.config.sinks)?n.config.sinks:[];for(let c of a)c&&typeof c==\"object\"&&c.type===\"remote\"&&(c.sessionId=i);if(n.__sinks)for(let c of n.__sinks)typeof c.startNewSession==\"function\"&&c.startNewSession(i);return i},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},d1=(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 A_={};L(A_,{Inspect:()=>fd,inspectPlugin:()=>E_});P();function p1(t){return S(t)?t:R(t)?t.find(e=>S(e)):\"\"}function C_(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&p1(t.extends),n=t.parent&&t.parent.childExtends&&p1(t.parent.childExtends);return(e||r||n||\"\").split(\"_\")[0].split(\".\")[0].split(\"+\")[0]}function ud(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=C_(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?ud(t.parent):o&&(e[o]||r[o])?t:ud(t.parent)}var fI=(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}))}},fd={\".preventSelect\":{userSelect:\"none\"},\"!preventSelect\":{userSelect:\"auto\"},onInspect:fI,onMousemove:(t,e,r)=>{let n=t.target.ref,o=ud(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=C_(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),h={x:l,y:f,width:u,height:d};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}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=ud(n);if(!o)return;let s=C_(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(v(e)){let{Content:r,...n}=e;for(let o in n)Cs[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(fd):t.extends?t.extends=[t.extends,fd]:t.extends=[fd]}};var O_={};L(O_,{apiUrl:()=>T_,channelByApiUrl:()=>hI,channelNames:()=>dI,channels:()=>se,currentChannel:()=>dn,defaultChannel:()=>SI,deployTarget:()=>_I,isKnownChannel:()=>wI,mermaidUrl:()=>bI,normalizeOwnerSegment:()=>kI,normalizeProjectKey:()=>CI,normalizeProjectSlug:()=>vI,parseSymboLsHost:()=>EI,previewProjectUrl:()=>yI,previewUrl:()=>y1,resolveChannel:()=>co,screenshotCdnHost:()=>b1,screenshotCdnUrl:()=>xI,setChannel:()=>pI,shellUrl:()=>mI,socketUrl:()=>gI});var se={channels:{local:{api:\"http://localhost:8080\",socket:\"http://localhost:8080\",shell:\"http://my.localhost:1355\",preview:\"http://preview.localhost:1355\",mermaidApex:\"localhost:1355\",deploy:{}},development:{api:\"https://dev.api.symbols.app\",socket:\"https://dev.api.symbols.app\",shell:\"https://dev.my.symbols.app\",preview:\"https://dev.preview.symbols.app\",mermaidApex:\"dev.symbo.ls\",deploy:{shellBucket:\"smbls-my-dev\",previewWorker:\"smbls-preview-dev\",mermaidWorker:\"mermaid-dev\"}},\"demo-dev\":{api:\"https://dev.api.symbols.app\",socket:\"https://dev.api.symbols.app\",shell:\"https://dev.demo.symbols.app\",preview:\"https://dev.preview.symbols.app\",mermaidApex:\"dev.symbo.ls\",deploy:{shellBucket:\"smbls-my-demo-dev\",previewWorker:\"smbls-preview-dev\",mermaidWorker:\"mermaid-dev\"}},next:{api:\"https://next.api.symbols.app\",socket:\"https://next.api.symbols.app\",shell:\"https://next.my.symbols.app\",preview:\"https://next.preview.symbols.app\",mermaidApex:\"next.symbo.ls\",deploy:{shellBucket:\"smbls-my-next\",previewWorker:\"smbls-preview-next\",mermaidWorker:\"mermaid-next\"}},test:{api:\"https://test.api.symbols.app\",socket:\"https://test.api.symbols.app\",shell:\"https://test.my.symbols.app\",preview:\"https://test.preview.symbols.app\",mermaidApex:\"test.symbo.ls\",deploy:{shellBucket:\"smbls-my-test\",previewWorker:\"smbls-preview-test\",mermaidWorker:\"mermaid-test\"}},upcoming:{api:\"https://upcoming.api.symbols.app\",socket:\"https://upcoming.api.symbols.app\",shell:\"https://upcoming.my.symbols.app\",preview:\"https://upcoming.preview.symbols.app\",mermaidApex:\"upcoming.symbo.ls\",deploy:{shellBucket:\"smbls-my-upcoming\",previewWorker:\"smbls-preview-upcoming\",mermaidWorker:\"mermaid-upcoming\"}},staging:{api:\"https://staging.api.symbols.app\",socket:\"https://staging.api.symbols.app\",shell:\"https://staging.my.symbols.app\",preview:\"https://staging.preview.symbols.app\",mermaidApex:\"staging.symbo.ls\",deploy:{shellBucket:\"smbls-my-staging\",previewWorker:\"smbls-preview-staging\",mermaidWorker:\"mermaid-staging\"}},demo:{api:\"https://api.symbols.app\",socket:\"https://api.symbols.app\",shell:\"https://demo.symbols.app\",preview:\"https://preview.symbols.app\",mermaidApex:\"at.symbo.ls\",deploy:{shellBucket:\"smbls-my-demo\",previewWorker:\"smbls-preview\",mermaidWorker:\"mermaid\"}},production:{api:\"https://api.symbols.app\",socket:\"https://api.symbols.app\",shell:\"https://my.symbols.app\",preview:\"https://preview.symbols.app\",mermaidApex:\"at.symbo.ls\",deploy:{shellBucket:\"smbls-my-prod\",previewWorker:\"smbls-preview\",mermaidWorker:\"mermaid\"}}},defaultChannel:\"production\",screenshotCdn:\"screenshots.api.symbols.app\"};var dI=Object.keys(se.channels),Ar=t=>!!(t&&se.channels[t]),co=t=>Ar(t)?se.channels[t]:se.channels[se.defaultChannel],pI=t=>{typeof globalThis>\"u\"||(globalThis.__SYMBOLS_CHANNEL__=Ar(t)?t:null,Ms=void 0)},Ms,Mc=t=>typeof process<\"u\"&&process.env&&process.env[t]||null,dn=()=>{if(Ms!==void 0)return Ms;let t=typeof globalThis<\"u\"?globalThis.__SYMBOLS_CHANNEL__:null,e=Mc(\"SYMBOLS_CHANNEL\"),r=Mc(\"NODE_ENV\");return Ms=Ar(t)&&t||Ar(e)&&e||Ar(r)&&r||se.defaultChannel,Ms===se.defaultChannel&&!Ar(t)&&!Ar(e)&&!Ar(r)&&typeof process<\"u\"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${r||\"unset\"}, __SYMBOLS_CHANNEL__ unset) \\u2014 falling back to \"${se.defaultChannel}\". Outbound URLs (shellUrl/apiUrl) will target production; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel.`),Ms},h1=[\"production\",\"staging\",\"upcoming\",\"next\",\"test\",\"development\",\"local\",\"demo\",\"demo-dev\"],g1=t=>{let e=h1.indexOf(t);return e===-1?h1.length:e},hI=t=>{if(!t)return null;let e=Object.keys(se.channels).filter(r=>se.channels[r].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((r,n)=>g1(r)-g1(n))[0]},T_=(t=dn())=>Mc(\"SYMBOLS_API_URL\")||co(t).api,gI=(t=dn())=>Mc(\"SYMBOLS_SOCKET_URL\")||co(t).socket,mI=(t=dn())=>co(t).shell||null,y1=(t=dn())=>co(t).preview||null,yI=({owner:t,key:e,env:r=\"production\"}={},n=dn())=>{let o=y1(n);if(!o||!t||!e)return null;let s=o.match(/^(https?:\\/\\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!r||r===\"production\"||r===\"prod\"?l:`${l}?env=${encodeURIComponent(r)}`},bI=({owner:t,key:e,env:r=\"production\"}={},n=dn())=>{let o=co(n).mermaidApex;if(!o||!t||!e)return null;let i=!r||r===\"production\"||r===\"prod\"?\"\":`--${encodeURIComponent(r)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith(\"localhost\")?\"http\":\"https\"}://${a}.${o}`},_I=(t=dn())=>co(t).deploy||{},b1=()=>Mc(\"SYMBOLS_SCREENSHOT_CDN\")||se.screenshotCdn,xI=({owner:t,key:e,page:r=\"root\",componentKey:n,env:o=\"production\",width:s}={})=>{if(!t||!e)return null;let i=n?`component/${encodeURIComponent(n)}`:encodeURIComponent(String(r||\"root\").replace(/^\\/+/,\"\").replace(/\\//g,\"-\")||\"root\"),a=[];o&&o!==\"production\"&&a.push(`env=${encodeURIComponent(o)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join(\"&\")}`:\"\";return`https://${b1()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},wI=Ar,SI=se.defaultChannel,kI=t=>t==null||typeof t!=\"string\"?\"\":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,\"-\").replace(/-+/g,\"-\").replace(/^-+|-+$/g,\"\").slice(0,32)||\"\",vI=t=>t==null||typeof t!=\"string\"?\"\":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,\"-\").replace(/-+/g,\"-\").replace(/^-+|-+$/g,\"\").slice(0,48)||\"\",CI=(t,e={})=>{let r=String(t||\"\").trim();if(!r)return\"\";/\\.symbo\\.ls$/iu.test(r)&&(r=r.replace(/\\.symbo\\.ls$/iu,\"\")),r.includes(\"/\")&&(r=r.split(\"/\").pop());let n=typeof e.owner==\"string\"?e.owner.trim():\"\";return n&&r.startsWith(`${n}--`)?r=r.slice(n.length+2):!n&&r.includes(\"--\")&&(r=r.slice(r.indexOf(\"--\")+2)),r},m1={at:\"production\",prod:\"production\",production:\"production\",dev:\"development\",development:\"development\",next:\"next\",upcoming:\"upcoming\",test:\"test\",staging:\"staging\"},EI=t=>{if(typeof t!=\"string\"||!t)return null;let e=t.toLowerCase().replace(/^www\\./,\"\").replace(/\\/$/,\"\");if(!e.endsWith(\".symbo.ls\"))return null;let r=e.split(\".\");if(r.length<4||r.slice(-2).join(\".\")!==\"symbo.ls\")return null;if(r.length===4){let s=r[1],i=r[0],a=m1[s];if(a&&i.includes(\"--\")){let c=i.split(\"--\");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?m1[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(r.length>=5)return{projectKey:r[1],owner:r[2],env:r[0]};let n=r[1],o=r[0];if(o.includes(\"--\")){let[s,i]=o.split(\"--\",2);return!s||!i?null:{projectKey:s,owner:n,env:i}}return{projectKey:o,owner:n,env:\"production\"}};var D_={};L(D_,{BUILD_DOMQL_SYSTEM_PROMPT:()=>R1,DEFAULT_MAX_TOKENS:()=>yd,DEFAULT_MODEL:()=>pn,DEFAULT_PROVIDER:()=>jc,DEFAULT_TEMPERATURE:()=>md,MODEL_TIER_ALIASES:()=>P_,PROVIDER_MODELS:()=>Nc,SIMONE_BASE_URL:()=>Fc,SIMONE_CHAT_PATH:()=>dd,SIMONE_CODE_PATH:()=>pd,SIMONE_CODE_SYMBOLS_PATH:()=>hd,SIMONE_HEALTH_PATH:()=>gd,SIMONE_TOOLS_PATH:()=>_1,WORKSPACE_SYSTEM_PROMPT:()=>O1,buildMessages:()=>v1,chat:()=>Bc,health:()=>k1,parseSimoneResponse:()=>A1,resolveModel:()=>P1,streamChat:()=>Bc,streamCode:()=>w1,streamCodeSymbols:()=>S1,toLegacyEnvelope:()=>T1});var Fc=\"https://symbols-service-production.up.railway.app\",dd=\"/api/chat\",pd=\"/api/code\",hd=\"/api/code-symbols\",gd=\"/api/health\",_1=\"/api/tools\",Nc={\"openai-compatible\":[\"claude-sonnet-4-6\",\"claude-opus-4-6\",\"gpt-4o\",\"gpt-4o-mini\",\"deepseek-chat\"],anthropic:[\"claude-sonnet-4-6\",\"claude-sonnet-4-5-20250929\",\"claude-opus-4-1-20250805\",\"claude-haiku-4-5-20251001\"],openrouter:[\"google/gemini-3-pro-preview\"],gemini:[\"gemini-2.5-pro\",\"gemini-3.1-pro-preview\"]},jc=\"gemini\",pn=Nc[jc][0],md=.7,yd=4096;function AI(t){if(!t)return null;for(let[e,r]of Object.entries(Nc))if(r.includes(t))return e;return null}function x1(t,e){return t?t.replace(/\\/$/,\"\")+e:e}function TI(t){if(!t.startsWith(\"data: \"))return null;let e=t.slice(6);if(e===\"[DONE]\")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function Bc(t,e={},r){let{baseUrl:n=Fc,path:o=dd,model:s=pn,provider:i=AI(s)||jc,temperature:a=md,maxTokens:c=yd,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError(\"simone: messages must be a non-empty array\");let h={messages:t,provider:i,model:s,temperature:a,maxTokens:c};l&&(h.effort=l),f&&(h.apiKeys=f);let p=await fetch(x1(n,o),{method:\"POST\",headers:{\"Content-Type\":\"application/json\",Accept:\"text/event-stream\",...d},body:JSON.stringify(h),signal:u});if(!p.ok){let _=p.statusText;try{let k=await p.text();try{let E=JSON.parse(k);_=E.error||E.detail||_}catch{_=k||_}}catch{}let w=new Error(`simone: HTTP ${p.status} \\u2014 ${_}`);throw w.status=p.status,w}if(!p.body||typeof p.body.getReader!=\"function\"){let _=await p.text();return r&&r(_),{text:_,errors:[]}}let g=p.body.getReader(),m=new TextDecoder,y=[],x=[],b=\"\";try{for(;;){let{done:_,value:w}=await g.read();if(_)break;b+=m.decode(w,{stream:!0});let k=b.indexOf(`\n`);for(;k!==-1;){let E=b.slice(0,k).trim();if(b=b.slice(k+1),E){let D=TI(E);if(D?.done)return{text:y.join(\"\"),errors:x};let F=D?.chunk;F?.delta&&(y.push(F.delta),r&&r(F.delta)),F?.error&&x.push(F.error)}k=b.indexOf(`\n`)}}return{text:y.join(\"\"),errors:x}}finally{g.cancel().catch(()=>{})}}function w1(t,e={},r){return Bc(t,{...e,path:pd},r)}function S1(t,e={},r){return Bc(t,{...e,path:hd},r)}async function k1(t={}){let{baseUrl:e=Fc,signal:r,headers:n}=t,o=await fetch(x1(e,gd),{method:\"GET\",headers:n,signal:r});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function v1({system:t,history:e=[],user:r,context:n}){let o=[];t&&o.push({role:\"system\",content:t});for(let s of e)!s||!s.role||typeof s.content!=\"string\"||!s.content||o.push({role:s.role,content:s.content});if(r){let s=r;if(n!=null){let i=typeof n==\"string\"?n:JSON.stringify(n,null,2);s=`${s}\n\n---\nContext:\n\\`\\`\\`json\n${i}\n\\`\\`\\``}o.push({role:\"user\",content:s})}return o}var E1=/```(?<lang>[a-zA-Z0-9_+-]*)\\n(?<code>[\\s\\S]*?)```/g,OI=new Set([\"component\",\"components\",\"page\",\"pages\",\"function\",\"method\",\"state\",\"theme\",\"color\",\"font\",\"icon\"]);function RI(t){let e=[];for(let r of t.matchAll(E1))e.push({lang:(r.groups?.lang||\"\").toLowerCase(),code:r.groups?.code??\"\"});return e}function PI(t){return t.replace(E1,\"\").trim()}function R_(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\\s*([}\\]])/g,\"$1\"))}catch{}return null}function C1(t){return!!t&&typeof t==\"object\"&&typeof t.type==\"string\"&&OI.has(t.type)}function A1(t){let e=(typeof t==\"string\"?t:\"\").trim();if(!e)return{kind:\"text\",text:\"\",message:\"\"};let r=RI(e),n=r.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=r.filter(i=>i.lang===\"json\"),s=PI(e);for(let i of o){let a=R_(i.code);if(C1(a))return{kind:\"asset\",text:s||a.description||\"\",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||\"\"}`.trim()}}if(n.length>0){let i=n[0].code,a=R_(\"[\"+i+\"]\");return Array.isArray(a)&&a.length>1?{kind:\"multi\",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:\"component\",text:s,code:i,message:s||\"Generated a component\"}}if(e.startsWith(\"{\")){let i=R_(e);if(C1(i))return{kind:\"asset\",text:i.description||\"\",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||\"\"}`.trim()}}return{kind:\"text\",text:e,message:e}}function T1(t){if(!t)return{code_response:{type:\"error\",content:\"Empty response from assistant\"}};switch(t.kind){case\"asset\":return{code_response:{type:\"json_response\",data:t.asset}};case\"multi\":return{code_response:{type:\"symbols_component_code\",component_code:t.code}};case\"component\":return{code_response:{type:\"symbols_component_code\",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:\"plain_text_response\",content:t.text||t.message||\"\"}}}}var O1=[\"You are Simone, the Symbols.app assistant.\",\"You help users build DOMQL v3 components, pages, and design-system entries.\",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of \"component\", \"page\", \"function\", \"state\", \"color\", \"font\", \"icon\", \"theme\".',\"For multiple assets, return one ```js fenced block with comma-separated asset objects.\",\"For general questions, reply with prose only.\"].join(\" \"),R1=[\"You are a DOMQL v3.14 code generator for the Symbols workspace.\",\"Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \\u2014 never a description, never a plan, never an explanation.\",\"Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \\u2014 never on:{} or props:{} wrappers.\",\"OUTPUT FORMAT \\u2014 pick ONE:\",\"- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \\u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).\",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { \"pages\": { \"PageKey\": \"<DOMQL object-literal source string>\" }, \"components\": { \"CompKey\": \"<DOMQL object-literal source string>\" } }. Include only the sections you produce; each value is the DOMQL source for that key.',\"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.\",\"Emit ONLY the single fenced block. No text before or after it.\"].join(`\n`),P_={Starter:pn,Free:pn,Pro:\"claude-opus-4-6\"};function P1(t){return t?P_[t]||t:pn}var D1={\"@symbo.ls/signal\":_p,\"@symbo.ls/scratch\":Qm,\"@symbo.ls/element\":ob,\"@symbo.ls/css\":ay,\"@symbo.ls/utils\":Vo,\"@symbo.ls/state\":By,\"@symbo.ls/router\":bc,\"@symbo.ls/polyglot\":n_,\"@symbo.ls/helmet\":e_,\"@symbo.ls/fetch\":of,\"@symbo.ls/capsize\":s_,\"@symbo.ls/shorthand\":d_,\"@symbo.ls/analyze\":v_,\"@symbo.ls/inspect\":A_,\"@symbo.ls/channels\":O_,\"@symbo-ls/simone-server\":D_},I1=(t,e)=>{let r=t||(typeof globalThis<\"u\"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in D1)n[o]||(n[o]=D1[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n},L1=(t,e)=>{let r=t||(typeof globalThis<\"u\"?globalThis:null);if(!r||!e||typeof e!=\"object\")return null;let n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!=\"function\"||Object.prototype.hasOwnProperty.call(n,o))continue;let i=a=>(Object.defineProperty(n,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return n},$1=[\"@symbo.ls/sdk\"],M1=(t,e)=>{let r=e||(typeof globalThis<\"u\"?globalThis:null);if(!r||!t||typeof t!=\"object\")return null;let n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!=\"object\"&&typeof s!=\"function\"||n[o]||(n[o]=s)}return n},DI=/^@symbo[-.]ls\\//,II=t=>t.includes(\"/\")?t.slice(t.indexOf(\"/\")+1):t,F1=(t,e)=>{let r=e||(typeof globalThis<\"u\"?globalThis:null);if(!r||!Array.isArray(t))return null;let n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o of t){let s=o&&o.library?o.library:o;if(!s||typeof s!=\"object\"||s.__isStub)continue;let i=s.key||s.name||s.__libraryKey,a=[];for(let c of[s.key,s.name,s.__libraryKey,s.__libraryName]){if(typeof c!=\"string\"||!c||c!==i&&!DI.test(c))continue;let l=II(c);l&&!a.includes(l)&&a.push(l)}for(let c of a)for(let l of[`@symbo-ls/${c}`,`@symbo.ls/${c}`])n[l]||(n[l]=s)}return n};P();var N1=t=>{let e={faces:0,links:0};if(!t)return e;for(let r in t){let n=t[r];if(!n||!n.fontFace)continue;let o=Array.isArray(n.fontFace)?n.fontFace:[n.fontFace];for(let s of o){if(j1(s)){let i=$I(s);i&&MI(i)&&e.links++;continue}if(LI(s)){_t(s.trim()),e.faces++;continue}typeof s==\"string\"&&s.includes(\"font-family\")&&(_t(`@font-face { ${s} }`),e.faces++)}}return e},j1=t=>typeof t==\"string\"&&t.trim().startsWith(\"@import\"),LI=t=>typeof t==\"string\"&&t.trim().startsWith(\"@font-face\"),$I=t=>{if(!j1(t))return null;let e=String(t).match(/url\\(\\s*['\"]?([^'\")]+)['\"]?\\s*\\)/);return e?e[1].trim():null},MI=(t,e)=>{if(typeof t!=\"string\"||!t)return null;let r=e||Xn();if(!r||!r.head)return null;let n=\"data-smbls-font\",o=r.head.querySelectorAll(`link[rel=\"stylesheet\"][${n}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(n)===t)return o[i];let s=r.createElement(\"link\");return s.setAttribute(\"rel\",\"stylesheet\"),s.setAttribute(\"href\",t),s.setAttribute(n,t),r.head.appendChild(s),s};var z1=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},B1=(t=\"smbls\")=>{let e={};for(let r in eo)Object.prototype.hasOwnProperty.call(eo,r)&&(Ze(r)?e[`smbls.${r}`]=eo[r]:e[r]=eo[r]);return e},H1=t=>t.components?{...B1(),...t.components}:B1(),W1=t=>({...xc,...bc,...qr,...t.utils,...t.snippets,...t.functions}),q1=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var K1=t=>typeof globalThis<\"u\"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,FI=3e3,NI=(t,e,r=n=>import(n))=>{if(typeof globalThis>\"u\")return Promise.resolve(null);try{let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(n[t])return Promise.resolve(n[t]);let o=Promise.resolve().then(()=>r(e)).then(i=>(i&&!n[t]&&(n[t]=i),n[t]||null)).catch(()=>null);return new Promise(i=>{let a=setTimeout(()=>i(null),FI);o.then(c=>{clearTimeout(a),i(c)})})}catch{return Promise.resolve(null)}},U1={},M_=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=NI})=>{if(o||(o=Ur[s]||Fo(i)||\"esmsh\"),!t)return null;if(!In(t))return console.warn(`[smbls] dependencies is ${Array.isArray(t)?\"an ARRAY\":`a ${typeof t}`}, not a package-name-keyed object \\u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own \"dependencies\" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=Nr()&&n?`?${Math.random()}`:\"\",f=async(d,h)=>{let p=Me(d,h,o)+l;try{await Promise.race([No(p,{document:r,type:\"module\"}),new Promise((g,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,p)}catch(g){if(console.error(`Failed to load ${d} from ${o}:`,g),o!==\"symbols\")try{let m=Me(d,h,\"symbols\")+l;await Promise.race([No(m,{document:r,type:\"module\"}),new Promise((y,x)=>setTimeout(()=>x(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let h=t[d];if(!(e&&e[d])&&!U1[d]&&(U1[d]=!0,!Vr(d))){if(Dn(d)){console.warn(`[smbls] dependency \"${d}\" looks like an un-interpolated template placeholder, not a real package specifier \\u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}K1(d)||u.push(f(d,h))}}return u.length&&await Promise.allSettled(u),t},V1=/\\[smbls\\] runtime dependency \"([^\"]+)\" is not registered on globalThis\\.__SMBLS_PKGS__/g,jI=t=>{if(typeof t==\"string\")return t;if(typeof t==\"function\")try{return typeof Ie==\"function\"?Ie(t):Function.prototype.toString.call(t)}catch{return\"\"}return\"\"},BI=t=>{let e=new Set;if(!t)return e;let r=[t.globalScope,t.functions,t.methods,t.snippets];for(let n=0;n<r.length;n++){let o=r[n];if(!o||typeof o!=\"object\")continue;let s=Object.keys(o);for(let i=0;i<s.length;i++){let a;try{a=o[s[i]]}catch{continue}let c=jI(a);if(!c||c.indexOf(\"__SMBLS_PKGS__\")===-1)continue;V1.lastIndex=0;let l;for(;(l=V1.exec(c))!==null;)e.add(l[1])}}return e},UI=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!=\"function\")return e;let r;try{r=t.querySelectorAll('script[type=\"importmap\"]')}catch{return e}for(let n=0;n<r.length;n++){let o;try{o=JSON.parse(r[n].textContent||\"\")}catch{continue}let s=o&&typeof o==\"object\"?o.imports:null;if(s&&typeof s==\"object\"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},VI=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let r of e)if(r.length>1&&r.endsWith(\"/\")&&t.length>r.length&&t.startsWith(r))return!0;return!1},G1=(t,{syncRead:e=BI(t),runtimeDocument:r=typeof document<\"u\"?document:null,importMap:n=UI(r)}={})=>{let o=t&&t.dependencies;if(!In(o))return null;let s=!t.document||t.document===r,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&VI(l,n)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},zI=t=>import(t),I_={},HI=(t,e)=>{if(!e||typeof globalThis>\"u\")return;let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});r[t]||(r[t]=e)},WI=(t,{importModule:e=zI}={})=>{let r=[];if(!t)return Promise.resolve([]);for(let n in t)Vr(n)||Dn(n)||K1(n)||(I_[n]||(I_[n]=Promise.resolve().then(()=>e(n)).then(o=>(HI(n,o),o||null),()=>null)),r.push(I_[n]));return Promise.all(r)},qI=2e3,KI=3e3,Y1=(t,{win:e=typeof window<\"u\"?window:null,importModule:r,loadTimeoutMs:n=KI}={})=>t?new Promise(o=>{let s=()=>{WI(t,{importModule:r}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback==\"function\"?e.requestIdleCallback(s,{timeout:qI}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!==\"complete\"&&typeof e.addEventListener==\"function\"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener==\"function\"&&e.removeEventListener(\"load\",f),i())};e.addEventListener(\"load\",f,{once:!0}),l=setTimeout(f,n)}else i()}):null,X1=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||Fo(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]&&Vr(a))return await u.require(a,c);if(!u.packages[a]){let d=Nr()?`?${Math.random()}`:\"\";if(l&&l[a]){let h=l[a],p=Me(a,h,c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!==\"symbols\"){let m=Me(a,h,\"symbols\")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let h=Me(a,\"latest\",c)+d;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(p){if(console.error(`Failed to load ${a} from ${c}:`,p),c!==\"symbols\"){let g=Me(a,\"latest\",\"symbols\")+d;await i.utils.loadRemoteScript(g,{window:u,document:f})}}u.packages[a]=\"loadedOnDeman\"}}return await u.require(a,c)};r.packages?r.packages=yt(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)},GI=/\\s+/g,Z1=(t,e)=>typeof t==\"function\"?t(e,e?.state,e?.context):t,YI=(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+=` ${Z1(o,e)}`)}return r},XI=(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=YI(t,e));let o=t.replace(GI,\" \").trim();if(r&&typeof r.setAttribute==\"function\")r.setAttribute(\"class\",o);else if(r)try{r.className=o}catch{}return o},ZI=()=>(t,e,r)=>{let n=Z1(t,e);if(t){let{__ref:o}=e;o.__class.style=n}J1()(e.classlist,e,e.state,!0)},J1=()=>(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=pe(c),i[a]=l}for(let a in i)a===\"classProps\"||a===\"class\"||s[a]===void 0&&delete i[a];e.node&&XI(i,e,e.node)}},JI=()=>({style:ZI(),classlist:J1()}),QI=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],L_=new WeakSet,$_=!1,tL=t=>!!t&&typeof t==\"object\",Q1=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||JI(),s=e.designSystem?nt(st(e.designSystem),st(mc),fe):st(mc),i={};for(let g of QI)e[g]!==void 0&&(i[g]=e[g]);let a,c=tL(r),f=c&&L_.has(r)&&!e.skipDesignSystemInit,u=!f&&!$_,d=f?`[data-smbls-app=\"${t}\"]`:\":root\";if(e.scopeSelector=d,e.skipDesignSystemInit){if(a=T(t)||T(),a&&(a.__domDocument=r),a?.CSS_VARS){ot(a);try{_t({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&_t(Wu(a.CSS_MEDIA_VARS,d));let g=Kn(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(g).length&&_t(g)}finally{rt()}}}else if(u){let g=T();g&&(g.__domDocument=r),a=Er(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...Gu,...i,...n}),a&&a!==g&&(a.__domDocument=r),c&&L_.add(r),$_=!0}else{let g=Aa(t,s,{cleanBase:!0});for(let m in i)g[m]=i[m];if(g.__domDocument=r,f){let m=t.replace(/[^a-zA-Z0-9]/g,\"\").substring(0,6);e.cssPrefix=m,g.varPrefix=m}ot(g);try{a=Er(g,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...Gu,...i,...n})}finally{rt()}c&&L_.add(r),$_=!0}let h=a?.CONFIG||a,p=h?.font;if(p){ot(h);try{N1(p)}finally{rt()}}return[a,o]},tE=(t,e)=>{let r={};e.state&&nt(r,e.state),t&&t.state&&nt(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=new Set,a=new Set,c=(u,d)=>{if(!a.has(u)){if(!hr(e,u,r)){i.add(u);return}r[u]=d,a.add(u),Je(e,u)}},l=n.translations[s];if(l&&typeof l==\"object\")for(let u in l)c(u,l[u]);let f=new Set(n.languages||[]);for(let u in n.translations)f.has(u)||c(u,n.translations[u]);i.size&&n.verbose!==!1&&e.verbose!==!1&&console.warn(`[polyglot] ${i.size} translation key${i.size===1?\"\":\"s\"} collide${i.size===1?\"s\":\"\"} with a declared root-state key (${[...i].join(\", \")}) \\u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \\`{{ key | polyglot }}\\` instead of a bare \\`{{ key }}\\`.`)}return r.isRootState=!0,st(r)},eE=(t,e)=>{v(t.routes)&&v(e.pages)&&yt(t.routes,e.pages);let r=t.routes||e.pages||{},n=[];for(let o in r){if(o.charCodeAt(0)===47)continue;let i=\"/\"+(o===\"index\"?\"\":o);Object.prototype.hasOwnProperty.call(r,i)?n.push(`${o} -> ${i}`):r[i]=r[o],delete r[o]}return n.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${n.length} explicitly declared route${n.length===1?\"\":\"s\"} over a same-named page key (${n.join(\", \")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \\u2014 add it to that library's ignoreList if you did not intend the collision.`),r},rE=t=>{ha(t,t.sharedLibraries)};var Uc={polyglot:Cc,getLocalStateLang:Oc,getActiveLang:fn,getLang:fn,setLang:Ac,getLanguages:vc,loadTranslations:Ec,upsertTranslation:Tc};Yi();var He=Object.create(null);He.open=\"0\";He.close=\"1\";He.ping=\"2\";He.pong=\"3\";He.message=\"4\";He.upgrade=\"5\";He.noop=\"6\";var Vc=Object.create(null);Object.keys(He).forEach(t=>{Vc[He[t]]=t});var zc={type:\"error\",data:\"parser error\"};var sE=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",iE=typeof ArrayBuffer==\"function\",aE=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Hc=({type:t,data:e},r,n)=>sE&&e instanceof Blob?r?n(e):nE(e,n):iE&&(e instanceof ArrayBuffer||aE(e))?r?n(e):nE(new Blob([e]),n):n(He[t]+(e||\"\")),nE=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];e(\"b\"+(n||\"\"))},r.readAsDataURL(t)};function oE(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var F_;function cE(t,e){if(sE&&t.data instanceof Blob)return t.data.arrayBuffer().then(oE).then(e);if(iE&&(t.data instanceof ArrayBuffer||aE(t.data)))return e(oE(t.data));Hc(t,!1,r=>{F_||(F_=new TextEncoder),e(F_.encode(r))})}var lE=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",Wc=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let t=0;t<lE.length;t++)Wc[lE.charCodeAt(t)]=t;var fE=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=Wc[t.charCodeAt(n)],i=Wc[t.charCodeAt(n+1)],a=Wc[t.charCodeAt(n+2)],c=Wc[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 eL=typeof ArrayBuffer==\"function\",qc=(t,e)=>{if(typeof t!=\"string\")return{type:\"message\",data:uE(t,e)};let r=t.charAt(0);return r===\"b\"?{type:\"message\",data:rL(t.substring(1),e)}:Vc[r]?t.length>1?{type:Vc[r],data:t.substring(1)}:{type:Vc[r]}:zc},rL=(t,e)=>{if(eL){let r=fE(t);return uE(r,e)}else return{base64:!0,data:t}},uE=(t,e)=>e===\"blob\"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var dE=\"\u001e\",pE=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Hc(s,!1,a=>{n[i]=a,++o===r&&e(n.join(dE))})})},hE=(t,e)=>{let r=t.split(dE),n=[];for(let o=0;o<r.length;o++){let s=qc(r[o],e);if(n.push(s),s.type===\"error\")break}return n};function gE(){return new TransformStream({transform(t,e){cE(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 N_;function bd(t){return t.reduce((e,r)=>e+r.length,0)}function _d(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 mE(t,e){N_||(N_=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(bd(r)<1)break;let c=_d(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(bd(r)<2)break;let c=_d(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(bd(r)<8)break;let c=_d(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(zc);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(bd(r)<o)break;let c=_d(r,o);a.enqueue(qc(s?c:N_.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(zc);break}}}})}var j_=4;function dt(t){if(t)return nL(t)}function nL(t){for(var e in dt.prototype)t[e]=dt.prototype[e];return t}dt.prototype.on=dt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this};dt.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.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};dt.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};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+t]||[]};dt.prototype.hasListeners=function(t){return!!this.listeners(t).length};var Tr=typeof Promise==\"function\"&&typeof Promise.resolve==\"function\"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),Gt=typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")(),yE=\"arraybuffer\";function xd(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var oL=Gt.setTimeout,sL=Gt.clearTimeout;function Or(t,e){e.useNativeTimers?(t.setTimeoutFn=oL.bind(Gt),t.clearTimeoutFn=sL.bind(Gt)):(t.setTimeoutFn=Gt.setTimeout.bind(Gt),t.clearTimeoutFn=Gt.clearTimeout.bind(Gt))}var iL=1.33;function bE(t){return typeof t==\"string\"?aL(t):Math.ceil((t.byteLength||t.size)*iL)}function aL(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 wd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function _E(t){let e=\"\";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+=\"&\"),e+=encodeURIComponent(r)+\"=\"+encodeURIComponent(t[r]));return e}function xE(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 Sd=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type=\"TransportError\"}},Rr=class extends dt{constructor(e){super(),this.writable=!1,Or(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 Sd(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=qc(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=_E(e);return r.length?\"?\"+r:\"\"}};var Kc=class extends Rr{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)};hE(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,pE(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]=wd()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var wE=!1;try{wE=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var SE=wE;function cL(){}var B_=class extends Kc{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}},hn=class t extends dt{constructor(e,r,n){super(),this.createRequest=e,Or(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=xd(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=cL,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()}};hn.requestsCount=0;hn.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",kE);else if(typeof addEventListener==\"function\"){let t=\"onpagehide\"in Gt?\"pagehide\":\"unload\";addEventListener(t,kE,!1)}}function kE(){for(let t in hn.requests)hn.requests.hasOwnProperty(t)&&hn.requests[t].abort()}var lL=(function(){let t=vE({xdomain:!1});return t&&t.responseType!==null})(),gn=class extends B_{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=lL&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new hn(vE,this.uri(),e)}};function vE(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!e||SE))return new XMLHttpRequest}catch{}if(!e)try{return new Gt[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var CE=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",V_=class extends Rr{get name(){return\"websocket\"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=CE?{}:xd(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;Hc(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Tr(()=>{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]=wd()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},U_=Gt.WebSocket||Gt.MozWebSocket,mn=class extends V_{createSocket(e,r,n){return CE?new U_(e,r,n):r?new U_(e,r):new U_(e)}doWrite(e,r){this.ws.send(r)}};var Fs=class extends Rr{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=mE(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=gE();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&&Tr(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var z_={websocket:mn,webtransport:Fs,polling:gn};var fL=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,uL=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function Ns(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=fL.exec(t||\"\"),s={},i=14;for(;i--;)s[uL[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=dL(s,s.path),s.queryKey=pL(s,s.query),s}function dL(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 pL(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var H_=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",kd=[];H_&&addEventListener(\"offline\",()=>{kd.forEach(t=>t())},!1);var lo=class t extends dt{constructor(e,r){if(super(),this.binaryType=yE,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=Ns(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=Ns(r.host).host);Or(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=xE(this.opts.query)),H_&&(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\"})},kd.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=j_,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+=bE(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,Tr(()=>{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(),H_&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=kd.indexOf(this._offlineEventListener);n!==-1&&kd.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};lo.protocol=j_;var vd=class extends lo{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;lo.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;lo.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 d=new Error(\"probe error\");d.transport=r.name,this.emitReserved(\"upgradeError\",d)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let d=new Error(\"probe error: \"+u);d.transport=r.name,s(),this.emitReserved(\"upgradeError\",d)};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}},js=class extends vd{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=>z_[o]).filter(o=>!!o)),super(e,n)}};var DV=js.protocol;function EE(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=Ns(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 Z_={};L(Z_,{Decoder:()=>Y_,Encoder:()=>G_,PacketType:()=>z,isPacketValid:()=>LL,protocol:()=>FE});var gL=typeof ArrayBuffer==\"function\",mL=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,AE=Object.prototype.toString,yL=typeof Blob==\"function\"||typeof Blob<\"u\"&&AE.call(Blob)===\"[object BlobConstructor]\",bL=typeof File==\"function\"||typeof File<\"u\"&&AE.call(File)===\"[object FileConstructor]\";function Yc(t){return gL&&(t instanceof ArrayBuffer||mL(t))||yL&&t instanceof Blob||bL&&t instanceof File}function Gc(t,e){if(!t||typeof t!=\"object\")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Gc(t[r]))return!0;return!1}if(Yc(t))return!0;if(t.toJSON&&typeof t.toJSON==\"function\"&&arguments.length===1)return Gc(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Gc(t[r]))return!0;return!1}function TE(t){let e=[],r=t.data,n=t;return n.data=W_(r,e),n.attachments=e.length,{packet:n,buffers:e}}function W_(t,e){if(!t)return t;if(Yc(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]=W_(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]=W_(t[n],e));return r}return t}function OE(t,e){return t.data=q_(t.data,e),delete t.attachments,t}function q_(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]=q_(t[r],e);else if(typeof t==\"object\")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=q_(t[r],e));return t}var $E=IA(LE(),1),K_=(0,$E.default)(\"socket.io-parser\"),ME=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],FE=5,z;(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\"})(z||(z={}));var G_=class{constructor(e){this.replacer=e}encode(e){return K_(\"encoding packet %j\",e),(e.type===z.EVENT||e.type===z.ACK)&&Gc(e)?this.encodeAsBinary({type:e.type===z.EVENT?z.BINARY_EVENT:z.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=\"\"+e.type;return(e.type===z.BINARY_EVENT||e.type===z.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)),K_(\"encoded %j as %s\",e,r),r}encodeAsBinary(e){let r=TE(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Y_=class t extends dt{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===z.BINARY_EVENT;n||r.type===z.BINARY_ACK?(r.type=n?z.EVENT:z.ACK,this.reconstructor=new X_(r),r.attachments===0&&super.emitReserved(\"decoded\",r)):super.emitReserved(\"decoded\",r)}else if(Yc(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(z[n.type]===void 0)throw new Error(\"unknown packet type \"+n.type);if(n.type===z.BINARY_EVENT||n.type===z.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(!NE(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 K_(\"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 z.CONNECT:return Ad(r);case z.DISCONNECT:return r===void 0;case z.CONNECT_ERROR:return typeof r==\"string\"||Ad(r);case z.EVENT:case z.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&ME.indexOf(r[0])===-1);case z.ACK:case z.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},X_=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=OE(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function PL(t){return typeof t==\"string\"}var NE=Number.isInteger||function(t){return typeof t==\"number\"&&isFinite(t)&&Math.floor(t)===t};function DL(t){return t===void 0||NE(t)}function Ad(t){return Object.prototype.toString.call(t)===\"[object Object]\"}function IL(t,e){switch(t){case z.CONNECT:return e===void 0||Ad(e);case z.DISCONNECT:return e===void 0;case z.EVENT:return Array.isArray(e)&&(typeof e[0]==\"number\"||typeof e[0]==\"string\"&&ME.indexOf(e[0])===-1);case z.ACK:return Array.isArray(e);case z.CONNECT_ERROR:return typeof e==\"string\"||Ad(e);default:return!1}}function LL(t){return PL(t.nsp)&&DL(t.id)&&IL(t.type,t.data)}function be(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var $L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),zs=class extends dt{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=[be(e,\"open\",this.onopen.bind(this)),be(e,\"packet\",this.onpacket.bind(this)),be(e,\"error\",this.onerror.bind(this)),be(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($L.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:z.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:z.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 z.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 z.EVENT:case z.BINARY_EVENT:this.onevent(e);break;case z.ACK:case z.BINARY_ACK:this.onack(e);break;case z.DISCONNECT:this.ondisconnect();break;case z.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:z.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:z.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 uo(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}uo.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};uo.prototype.reset=function(){this.attempts=0};uo.prototype.setMin=function(t){this.ms=t};uo.prototype.setMax=function(t){this.max=t};uo.prototype.setJitter=function(t){this.jitter=t};var Hs=class extends dt{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,Or(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 uo({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||Z_;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 js(this.uri,this.opts);let r=this.engine,n=this;this._readyState=\"opening\",this.skipReconnect=!1;let o=be(r,\"open\",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",a),e?e(a):this.maybeReconnectOnOpen()},i=be(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(be(e,\"ping\",this.onping.bind(this)),be(e,\"data\",this.ondata.bind(this)),be(e,\"error\",this.onerror.bind(this)),be(e,\"close\",this.onclose.bind(this)),be(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){Tr(()=>{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 zs(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 Xc={};function Ws(t,e){typeof t==\"object\"&&(e=t,t=void 0),e=e||{};let r=EE(t,e.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=Xc[o]&&s in Xc[o].nsps,a=e.forceNew||e[\"force new connection\"]||e.multiplex===!1||i,c;return a?c=new Hs(n,e):(Xc[o]||(Xc[o]=new Hs(n,e)),c=Xc[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Ws,{Manager:Hs,Socket:zs,io:Ws,connect:Ws});P();P();var Td=new Set([\"__proto__\",\"constructor\",\"prototype\"]),J_=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Td.has(t[e]))return!1;return!0},jE=(t,e)=>{!t||!J_(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},BE=(t,e,r,n=!1)=>{!t||!J_(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)},Od=(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\":jE(t,o);break;case\"update\":case\"set\":BE(t,o,s,!0);break;default:break}return r},UE=(t,e)=>{if(!e||typeof e!=\"object\"||Array.isArray(e))return null;let r=t&&(t.__raw||t)||{},n=null;for(let o of Object.keys(e))Td.has(o)||Object.prototype.hasOwnProperty.call(r,o)||(n||(n={}),n[o]=e[o]);return n},Zc=(t,e)=>{!t||!e||typeof e!=\"object\"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},VE=(t,e,r,n=\"designSystem\")=>{for(let o in e){if(Td.has(o))continue;let s=`${n}/${o}`;if(r.has(s))continue;let i=e[o],a=t[o];if(i&&typeof i==\"object\"&&!Array.isArray(i)){if(!a||typeof a!=\"object\"||Array.isArray(a)){if(o in t)continue;t[o]={}}VE(t[o],i,r,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},Q_=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Od(o,e)}let r=JSON.parse(JSON.stringify(t.__rawDesignSystem)),n=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];for(let o of n){let s=tr(o),i=s?o.library:o,a=i&&i.designSystem;if(!a||typeof a!=\"object\")continue;let c=zr(i.sharedLibIgnore);if(s)for(let l of zr(o.ignoreList))c.add(l);c.has(\"designSystem\")||VE(r,a,c)}return r};P();var zE=(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])=>{if(r[a]&&typeof r[a]==\"object\")if(a===\"designSystem\"){if(Zc(r,c),n){let l=Q_(r);l&&Er(l)}}else An(r[a],c);else r[a]=c}),n=!0,i&&(r.schema=i))}},HE=(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=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]===\"designSystem\"),i=s.length?o.filter(c=>!s.includes(c)):o,a=Od(r,i);if(s.length&&a.add(\"designSystem\"),a.has(\"designSystem\")){let c=Q_(r,s);c?Er(c):r.__warnedNoRawDesignSystem||(r.__warnedNoRawDesignSystem=!0,console.warn(\"[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \\u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds).\"))}if(a.has(\"state\")){let c=UE(e,r.state);if(c){let l=typeof e.$update==\"function\"?e.$update:e.update;typeof l==\"function\"&&l.call(e,c)}}if([\"pages\",\"components\",\"snippets\",\"functions\",\"assets\"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=r.window.location;t.call(\"router\",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var ML={success:\"green\",error:\"red\",warning:\"yellow\"},WE=(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)}},qE={state:{notifications:[]},Notifications:{position:\"fixed\",left:\"A2\",bottom:\"Z2\",zIndex:\"999\",childExtends:\"Notification\",childProps:({state:t})=>({animationDuration:\"C\",background:ML[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 FL=!1,NL=()=>FL?\"http://localhost:8080\":\"https://api.symbols.app\",jL=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}},BL=async t=>{try{let e=t||NL(),r=await C.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)}},YE=(t,e,r,n)=>{t.on(\"snapshot\",zE(e,r,n)),t.on(\"ops\",HE(e,r,n)),t.on(\"clients\",o=>{n.editor?.verbose&&WE(o,e,r)}),t.on(\"disconnect\",o=>{n.editor?.verbose&&console.info(\"[sync] disconnected\",o)})},UL=async(t,e,r,n)=>{let o=await BL(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=Ws(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)\")}),YE(a,t,e,r),a},VL=(t,e,r)=>{let n=Ws({transports:[\"websocket\",\"polling\"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on(\"connect\",()=>{r.editor?.verbose!==!1&&console.info(\"[sync] connected (runner)\")}),YE(n,t,e,r),n.on(\"reload\",()=>{typeof C<\"u\"&&C.location&&C.location.reload()}),n},zL=async(t,e,r)=>{let{mode:n,baseUrl:o}=jL(r);return n?n===\"collab\"?UL(t,e,r,o):n===\"runner\"?VL(t,e,r):null:null},HL={onInit:zL};var XE=t=>typeof t>\"u\",KE=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),GE=t=>t?.editor?.runtime===\"runner\",ZE=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},JE={name:\"sync\",beforeCreate(t,e){let r=e&&e.editor;(r&&!XE(r.liveSync)?r.liveSync:KE(e)||GE(e))&&(KE(e)&&!GE(e)&&!e?.key||ZE(t,HL))}},QE={name:\"notifications\",beforeCreate(t,e){if(!e)return;let r=XE(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&ZE(t,qE)}};var rx={};L(rx,{AlertTemplate:()=>Bd,ConfirmTemplate:()=>jd,CustomTemplate:()=>Vd,ModalLayer:()=>Nd,ModalRoot:()=>Fd,PromptTemplate:()=>Ud,windowsComponents:()=>ex});var tx={};L(tx,{alertDialog:()=>$d,closeAllModals:()=>Id,closeModal:()=>Pd,confirmDialog:()=>Ld,getLayer:()=>Rd,openModal:()=>Dd,promptDialog:()=>Md,windowsFunctions:()=>Pr});function J(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function qs(t){let e=t;for(;e;){if(e.key===\"ModalRoot\")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let r=t?.getRoot?.();return r?.ModalRoot?r.ModalRoot:typeof globalThis<\"u\"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Rd(){return J(this)}var WL=(t,e)=>{let r=t&&t[\"ModalLayer_\"+e],n=r?.node||r?.__ref?.node;!n||typeof n.style?.setProperty!=\"function\"||(n.style.setProperty(\"display\",\"none\",\"important\"),n.style.setProperty(\"opacity\",\"0\",\"important\"),n.style.setProperty(\"visibility\",\"hidden\",\"important\"),n.style.setProperty(\"pointer-events\",\"none\",\"important\"))},tA=(t,e)=>{let r=t&&t[\"ModalLayer_\"+e],n=r?.node||r?.__ref?.node;!n||typeof n.style?.removeProperty!=\"function\"||(n.style.removeProperty(\"display\"),n.style.removeProperty(\"opacity\"),n.style.removeProperty(\"visibility\"),n.style.removeProperty(\"pointer-events\"))};function Pd(t){let e=qs(this);if(!e)return;let r=e.state?.stack||[];if(!r.length)return;let n,o,s;if(t){if(s=[],n=r.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),n.length===r.length)return;o=r.filter(i=>i.id===t)}else n=r.slice(0,-1),o=r.slice(-1),s=[r.length-1];e.state.update({stack:n});for(let i of s)WL(e,i);for(let i of o)if(typeof i.onClose==\"function\")try{i.onClose()}catch(a){console.warn(\"[windows] onClose threw:\",a)}}function Dd(t={}){let e=qs(this);if(!e)return console.warn(\"[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context.\"),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let r=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,n={id:r,template:t.template||\"custom\",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},o=e.state?.stack||[];if(o.length>=5)return console.warn(\"[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first.\"),null;let s=o.length;return tA(e,s),e.state.update({stack:[...o,n]}),r}function Id(){let t=qs(this);!t||!t.state?.stack?.length||t.state.update({stack:[]})}function Ld(t){let e=typeof t==\"string\"?{message:t}:t||{};return this.call(\"openModal\",{...e,template:\"confirm\"})}function $d(t){let e=typeof t==\"string\"?{message:t}:t||{};return this.call(\"openModal\",{...e,template:\"alert\"})}function Md(t){let e=typeof t==\"string\"?{message:t}:t||{};return this.call(\"openModal\",{...e,template:\"prompt\"})}var Pr={openModal:Dd,closeModal:Pd,closeAllModals:Id,confirmDialog:Ld,alertDialog:$d,promptDialog:Md,getLayer:Rd};var qL=[\"a[href]\",\"button:not([disabled])\",\"input:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\",'[tabindex]:not([tabindex=\"-1\"])'].join(\",\"),eA=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(qL),r=[];for(let n=0;n<e.length;n++){let o=e[n];(o.offsetParent!==null||o===document.activeElement)&&r.push(o)}return r},rA=t=>{let e=t.state?.stack||[];if(!e.length)return null;let r=t[\"ModalLayer_\"+(e.length-1)];return r?.node||r?.__ref?.node||null},Fd={tag:\"div\",position:\"fixed\",inset:\"0\",zIndex:\"2000\",pointerEvents:\"none\",state:{stack:[]},subscribeTo:[\"stack\"],ModalLayer_0:{__slotIndex:0,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_1:{__slotIndex:1,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_2:{__slotIndex:2,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_3:{__slotIndex:3,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},ModalLayer_4:{__slotIndex:4,subscribeTo:[\"stack\"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?\"1\":\"0\",visibility:t=>t.layer?\"visible\":\"hidden\",pointerEvents:t=>t.layer?\"auto\":\"none\"},onInit:(t,e)=>{if(typeof window>\"u\")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let r=t.context;if(r){r.functions||(r.functions={});for(let a in Pr)a in r.functions||(r.functions[a]=Pr[a])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let n=()=>{let a=t.state?.stack||[];if(!a.length)return;let c=a.length-1,l=a[c];t.state.update({stack:a.slice(0,-1)});let f=t[\"ModalLayer_\"+c],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty(\"display\",\"none\",\"important\"),u.style.setProperty(\"opacity\",\"0\",\"important\"),u.style.setProperty(\"visibility\",\"hidden\",\"important\"),u.style.setProperty(\"pointer-events\",\"none\",\"important\")),typeof l?.onClose==\"function\")try{l.onClose()}catch(d){console.warn(\"[windows] onClose threw:\",d)}},o=a=>{let c=t.state?.stack;if(c?.length){if(a.key===\"Tab\"){let l=rA(t);if(!l)return;let f=eA(l);if(!f.length){a.preventDefault();let p=l.querySelector?.('[role=\"dialog\"]')||l;try{p.focus?.()}catch{}return}let u=f[0],d=f[f.length-1],h=document.activeElement;if(!l.contains(h)){a.preventDefault();try{u.focus()}catch{}return}if(a.shiftKey&&h===u){a.preventDefault();try{d.focus()}catch{}}else if(!a.shiftKey&&h===d){a.preventDefault();try{u.focus()}catch{}}return}a.key!==\"Escape\"||a.defaultPrevented||c[c.length-1]?.dismissOnBackdrop!==!1&&(a.preventDefault(),n())}};window.addEventListener(\"keydown\",o),t.__escHandler=o;let s=a=>{let c=t.state?.stack||[];if(a<0||a>=c.length)return;let l=c[a];t.state.update({stack:c.filter((d,h)=>h!==a)});let f=t[\"ModalLayer_\"+a],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty(\"display\",\"none\",\"important\"),u.style.setProperty(\"opacity\",\"0\",\"important\"),u.style.setProperty(\"visibility\",\"hidden\",\"important\"),u.style.setProperty(\"pointer-events\",\"none\",\"important\")),typeof l?.onClose==\"function\")try{l.onClose()}catch(d){console.warn(\"[windows] onClose threw:\",d)}},i=a=>{let c=t.state?.stack||[];if(!c.length)return;let l=a.target?.closest?.('[data-key=\"Close\"]');if(l){for(let f=c.length-1;f>=0;f--){let u=t[\"ModalLayer_\"+f],d=u?.node||u?.__ref?.node;if(d&&d.contains(l)){a.preventDefault(),a.stopPropagation(),s(f);return}}return}for(let f=c.length-1;f>=0;f--){let u=t[\"ModalLayer_\"+f];if((u?.node||u?.__ref?.node)===a.target){if(c[f]?.dismissOnBackdrop===!1)return;a.preventDefault(),a.stopPropagation(),s(f);return}}};document.addEventListener(\"click\",i,!0),t.__clickDelegate=i},onUpdate:t=>{if(typeof window>\"u\")return;let e=(t.state&&t.state.stack||[]).length,r=t.__prevStackLen||0;if(e!==r)if(t.__prevStackLen=e,t.__modalOpeners=t.__modalOpeners||[],e>r)t.__modalOpeners[e]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[e]||null,typeof requestAnimationFrame==\"function\"&&requestAnimationFrame(()=>{let n=rA(t);if(!n)return;let o=eA(n)[0]||n.querySelector&&n.querySelector('[role=\"dialog\"]')||n;try{o.focus&&o.focus()}catch{}});else{let n=null;for(let o=r;o>e;o--)t.__modalOpeners[o]&&(n=n||t.__modalOpeners[o]),t.__modalOpeners[o]=null;if(n&&typeof n.focus==\"function\"&&n.isConnected!==!1)try{n.focus()}catch{}}},onDestroy:t=>{typeof window>\"u\"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener(\"keydown\",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener(\"click\",t.__clickDelegate,!0),delete t.__clickDelegate))}};var Nd={tag:\"div\",position:\"fixed\",inset:\"0\",alignItems:\"center\",justifyContent:\"center\",padding:\"A\",theme:\"backdrop\",transition:\"opacity C defaultBezier\",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?\"flex\":\"none\",opacity:(t,e)=>t.layer?\"1\":\"0\",visibility:(t,e)=>t.layer?\"visible\":\"hidden\",pointerEvents:(t,e)=>t.layer?\"auto\":\"none\",ModalWindow:{attr:{role:\"dialog\",\"aria-modal\":\"true\",tabindex:\"-1\",\"aria-labelledby\":t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}},width:t=>J(t)?.width||\"H\",maxWidth:t=>J(t)?.maxWidth||\"90vw\",flow:\"y\",maxHeight:t=>J(t)?.maxHeight||\"100%\",animation:\"modalIn\",animationDuration:\"D\",animationTimingFunction:\"springBezier\",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:\"none\"},overflow:\"visible\",ConfirmTemplate:{hide:t=>J(t)?.template!==\"confirm\"},AlertTemplate:{hide:t=>J(t)?.template!==\"alert\"},PromptTemplate:{hide:t=>J(t)?.template!==\"prompt\"},CustomTemplate:{hide:t=>J(t)?.template!==\"custom\"}}};var Ks=(t,e,r)=>J(t)?.[e]||r,KL=t=>{let e=J(t)?.icon;return e===null||e===!1},jd={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",ModalHeader:{Hgroup:{H:{text:t=>Ks(t,\"title\",\"Are you sure?\"),attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>KL(t),Indicator:{extends:\"Icon\",opacity:\".7\",icon:t=>Ks(t,\"icon\",\"warning\")}}},ModalBody:{flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",P:{tag:\"p\",margin:\"0\",text:t=>Ks(t,\"message\",\"This action cannot be undone.\"),color:\"dim\"}},ModalFooter:{flow:\"x\",gap:\"Z1\",align:\"center end\",flexShrink:\"0\",CancelBtn:{extends:\"CancelButton\",text:t=>Ks(t,\"cancelText\",\"Cancel\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onCancel)try{n.onCancel()}catch(o){console.warn(\"[windows] confirm.onCancel threw:\",o)}e.call(\"closeModal\",n?.id)}},ConfirmBtn:{extends:\"Button\",theme:t=>Ks(t,\"confirmTheme\",\"primary\"),text:t=>Ks(t,\"confirmText\",\"Confirm\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onConfirm)try{n.onConfirm()}catch(o){console.warn(\"[windows] confirm.onConfirm threw:\",o)}e.call(\"closeModal\",n?.id)}}}};var Jc=(t,e,r)=>J(t)?.[e]||r,Bd={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",ModalHeader:{Hgroup:{H:{text:t=>Jc(t,\"title\",\"Notice\"),attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:\"Icon\",opacity:\".7\",icon:t=>Jc(t,\"icon\",\"info\")}}},ModalBody:{flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",hide:t=>!Jc(t,\"message\",\"\"),P:{tag:\"p\",margin:\"0\",text:t=>Jc(t,\"message\",\"\"),color:\"dim\"}},ModalFooter:{flow:\"x\",align:\"center end\",flexShrink:\"0\",OkBtn:{extends:\"Button\",theme:\"primary\",text:t=>Jc(t,\"okText\",\"OK\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onOk)try{n.onOk()}catch(o){console.warn(\"[windows] alert.onOk threw:\",o)}e.call(\"closeModal\",n?.id)}}}};var Gs=(t,e,r)=>J(t)?.[e]||r,Ud={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",scope:{value:\"\"},onRender:(t,e)=>{let r=J(t);if(!r||t.scope._seededLayerId===r.id)return;t.scope._seededLayerId=r.id,t.scope.value=r.defaultValue||\"\";let n=t.InputRow&&t.InputRow.node;n&&(n.value=t.scope.value)},onUpdate:(t,e)=>{let r=J(t);if(!r||t.scope._seededLayerId===r.id)return;t.scope._seededLayerId=r.id,t.scope.value=r.defaultValue||\"\";let n=t.InputRow&&t.InputRow.node;n&&(n.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>Gs(t,\"title\",\"Enter a value\"),attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",hide:t=>!Gs(t,\"message\",\"\"),P:{tag:\"p\",margin:\"0\",text:t=>Gs(t,\"message\",\"\"),color:\"dim\"}},InputRow:{extends:\"Input\",flexShrink:\"0\",autofocus:!0,placeholder:t=>Gs(t,\"placeholder\",\"\"),value:(t,e)=>t.parent.scope?.value||\"\",onInput:(t,e,r)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,r)=>{if(t.key!==\"Enter\")return;t.preventDefault();let n=J(e),o=e.parent.scope?.value||\"\";if(n?.onConfirm)try{n.onConfirm(o)}catch(s){console.warn(\"[windows] prompt.onConfirm threw:\",s)}e.call(\"closeModal\",n?.id)}},ModalFooter:{flow:\"x\",gap:\"Z1\",align:\"center end\",flexShrink:\"0\",CancelBtn:{extends:\"CancelButton\",text:t=>Gs(t,\"cancelText\",\"Cancel\"),onClick:(t,e,r)=>{let n=J(e);if(n?.onCancel)try{n.onCancel()}catch(o){console.warn(\"[windows] prompt.onCancel threw:\",o)}e.call(\"closeModal\",n?.id)}},ConfirmBtn:{extends:\"Button\",theme:\"primary\",text:t=>Gs(t,\"confirmText\",\"OK\"),onClick:(t,e,r)=>{let n=J(e),o=e.parent.parent.scope?.value||\"\";if(n?.onConfirm)try{n.onConfirm(o)}catch(s){console.warn(\"[windows] prompt.onConfirm threw:\",s)}e.call(\"closeModal\",n?.id)}}}};var Vd={tag:\"div\",flow:\"y\",gap:\"B\",flex:\"1 1 auto\",minHeight:\"0\",Title:{tag:\"h2\",text:t=>J(t)?.title||\"\",hide:t=>!J(t)?.title,position:\"absolute\",width:\"1px\",height:\"1px\",margin:\"-1px\",padding:\"0\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",border:\"0\",attr:{id:t=>{let e=J(t)?.id;return e?\"modal-title-\"+e:null}}},Slot:{tag:\"div\",flex:\"1 1 auto\",minHeight:\"0\",overflowY:\"auto\",overscrollBehavior:\"contain\",onInit:t=>{let e=G(()=>{let r=J(t),n=r?.content||null,o=r?.id||null;if(!n){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(n);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in Pr)i in s.functions||(s.functions[i]=Pr[i])}}catch(s){console.warn(\"[windows] custom.content set failed:\",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var nA={extends:\"Button\",theme:\"tertiary\"};var ex={ModalRoot:Fd,ModalLayer:Nd,ConfirmTemplate:jd,AlertTemplate:Bd,PromptTemplate:Ud,CustomTemplate:Vd,\"smbls.CancelButton\":nA};var cx={};L(cx,{Dropdown:()=>Gd,DropdownList:()=>Yd,DropdownParent:()=>Xd,DropdownParentFocus:()=>Zd,DropdownRoot:()=>qd,DropdownSiblingFocus:()=>Jd,DropdownTrigger:()=>Kd,dropdownComponents:()=>ax});var oA=(t,e,r)=>({bottom:r-t.bottom,top:t.top,right:e-t.right,left:t.left}),GL=(t,e,r,n)=>{let o=oA(t,r,n),s=i=>o[i]>=e.height+8;return s(\"bottom\")?\"bottom\":s(\"top\")?\"top\":o.bottom>=o.top?\"bottom\":\"top\"},YL=(t,e,r,n,o)=>{let s=oA(e,n,o),i=t===\"top\"||t===\"bottom\"?r.height+8:r.width+8;if(s[t]>=i)return t;let a={top:\"bottom\",bottom:\"top\",left:\"right\",right:\"left\"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var nx=(t,e,r)=>{let n;return t===\"bottom\"?n=r-e.bottom-16:t===\"top\"?n=e.top-16:n=r-16,Math.max(40,Math.floor(n))},zd=(t,e,r)=>Math.max(e,Math.min(r,t)),Dr=(t,e,r=\"auto\")=>{if(!t){let p=typeof window<\"u\"?window.innerHeight:768;return{left:0,top:0,side:\"bottom\",align:\"start\",maxHeight:nx(\"center\",null,p)}}let n=typeof window<\"u\"?window.innerWidth:1024,o=typeof window<\"u\"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(r===\"center\"){let p=nx(\"center\",t,o),g=Math.min(s.height,p),m=zd((n-s.width)/2,8,Math.max(8,n-s.width-8)),y=zd((o-g)/2,8,Math.max(8,o-g-8));return{left:m,top:y,side:\"center\",align:\"center\",maxHeight:p}}let i,a;if(r===\"auto\")i=GL(t,s,n,o),a=\"start\";else{let p=r.split(\"-\");i=p[0],a=p[1]||\"start\",i=YL(i,t,s,n,o)}let c=nx(i,t,o),l=Math.min(s.height,c),f,u;i===\"bottom\"||i===\"top\"?(a===\"start\"?f=t.left:a===\"end\"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i===\"bottom\"?t.bottom+8:t.top-l-8):(a===\"start\"?u=t.top:a===\"end\"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i===\"right\"?t.right+8:t.left-s.width-8);let d=Math.max(8,n-s.width-8),h=Math.max(8,o-l-8);return f=zd(f,8,d),u=zd(u,8,h),{left:f,top:u,side:i,align:a,maxHeight:c}},Ys=t=>{switch(t){case\"bottom\":return\"translateY(-6px)\";case\"top\":return\"translateY(6px)\";case\"left\":return\"translateX(6px)\";case\"right\":return\"translateX(-6px)\";case\"center\":return\"translateY(0px)\";default:return\"translateY(-6px)\"}};var yn={placement:\"auto\",trigger:\"click\",offset:8,minWidth:\"180px\",maxWidth:\"90vw\",maxHeight:null},XL=t=>{if(!t||typeof t.getBoundingClientRect!=\"function\")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},ox=t=>t?.getRoot?.()?.DropdownRoot||null,ZL=0,JL=()=>`dropdown_${++ZL}_${Date.now().toString(36)}`;function Hd(t={}){let e=ox(this);if(!e)return console.warn(\"[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context.\"),null;let r=t.anchorEl?.node||t.anchorEl,n=t.anchorRect||XL(r);if(!n)return console.warn(\"[dropdown] openDropdown: no anchor element/rect provided \\u2014 pass anchorEl or anchorRect.\"),null;let o=t.id||JL(),s=t.restoreEl?.node||t.restoreEl||r||(typeof document<\"u\"?document.activeElement:null),i={id:o,content:t.content||null,anchor:n,placement:t.placement||yn.placement,trigger:t.trigger||yn.trigger,offset:t.offset??yn.offset,minWidth:t.minWidth||yn.minWidth,maxWidth:t.maxWidth||yn.maxWidth,maxHeight:t.maxHeight||yn.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:s},a=e.state?.layer;if(a?.onClose)try{a.onClose(a)}catch(c){console.warn(\"[dropdown] prev onClose threw:\",c)}if(e.state.update({layer:i}),typeof i.onOpen==\"function\")try{i.onOpen(i)}catch(c){console.warn(\"[dropdown] onOpen threw:\",c)}return o}function Wd(t){let e=ox(this);if(!e)return;let r=e.state?.layer;r&&e.state.update({layer:{...r,inert:!!t}})}function po(t){let e=ox(this);if(!e)return;let r=e.state?.layer;if(!r)return;let n=typeof t==\"string\"?t:t?.id;if(n&&r.id&&n!==r.id)return;let o=r.onClose,s=r.restoreEl,i=typeof document<\"u\"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown=\"panel\"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus==\"function\")try{s.focus()}catch(d){console.warn(\"[dropdown] focus restore threw:\",d)}if(typeof o==\"function\")try{o(r)}catch(d){console.warn(\"[dropdown] onClose threw:\",d)}}var sx=(t,e)=>{let r=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${r})`:r},sA=t=>{let e=t.getBoundingClientRect();return{width:e.width,height:Math.max(e.height,t.scrollHeight||0)}},QL=`\n@keyframes smbls-dropdown-fade-in {\n from { opacity: 0; transform: var(--smbls-dropdown-from, translateY(-6px)) scale(0.98); }\n to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }\n}\n[data-smbls-dropdown=\"panel\"][data-smbls-open=\"true\"] {\n /* The one place the keyframe is declared \\u2014 name and fill only. Duration\n and curve are the design system's motion tokens, carried by the Panel's\n own animationDuration ('B') and animationTimingFunction\n ('defaultBezier') props as atomic classes; an animation shorthand here\n would reset both. The content-mount effect owns the data-smbls-open\n flag and toggles it off and on to restart the keyframe per layer\n (FW-DROPDOWN-ROOT-OVERLAY-DEFAULTS-ROLE-FOCUS-1). */\n animation-name: smbls-dropdown-fade-in;\n animation-fill-mode: both;\n transform-origin: top center;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-smbls-dropdown=\"panel\"] {\n animation: none !important;\n }\n}\n[data-smbls-dropdown=\"panel\"][data-smbls-surface] {\n background: var(--smbls-dropdown-surface) !important;\n}\n[data-smbls-dropdown=\"panel\"] {\n /* The panel is a pure positioning shell \\u2014 menu BODIES own their card\n chrome (padding/round/border via e.g. CanvasCreateMenuBody), so the\n panel itself stays chromeless. !important for the same reason as the\n surface rule above: the theme prop re-emits border longhands inline\n on every re-render and would beat any declarative zero\n (2026-06-10 per Nika \"remove Panel border and padding\"). */\n border-width: 0 !important;\n padding: 0 !important;\n}\n[data-smbls-dropdown=\"panel\"]:not([data-smbls-themed]):not([data-smbls-surface]) {\n /* Chromeless guarantee for the REUSED panel node: css-in-props'\n reactive effect applies styles only when its resolver returns a\n result (element/src/create.js \"if (cssResult && element.node)\") \\u2014\n it never CLEARS, so a previously themed layer's inline\n background/color/box-shadow would survive into the next unthemed\n layer. _applyChrome flags opt-in chrome with data-smbls-themed /\n data-smbls-shadowed; these :not() rules neutralise the stale paint\n channels for everyone else. Background keeps :not([data-smbls-surface])\n so the caller surface-override rule above still wins on ties. */\n background: transparent !important;\n}\n[data-smbls-dropdown=\"panel\"]:not([data-smbls-themed]) {\n color: inherit !important;\n}\n[data-smbls-dropdown=\"panel\"]:not([data-smbls-shadowed]) {\n box-shadow: none !important;\n}\n`,t$=()=>{if(typeof document>\"u\"||document.getElementById(\"smbls-dropdown-css\"))return;let t=document.createElement(\"style\");t.id=\"smbls-dropdown-css\",t.textContent=QL,document.head.appendChild(t)},iA=(t,e)=>{if(!t.node)return;let r=e?.background;if(!r)t.node.removeAttribute(\"data-smbls-surface\");else{let n=/^[a-z][\\w.+-]*$/i.test(r)?`var(--color-${r})`:r;t.node.style.setProperty(\"--smbls-dropdown-surface\",n),t.node.setAttribute(\"data-smbls-surface\",\"\")}e?.theme?t.node.setAttribute(\"data-smbls-themed\",\"\"):t.node.removeAttribute(\"data-smbls-themed\"),e?.shadow?t.node.setAttribute(\"data-smbls-shadowed\",\"\"):t.node.removeAttribute(\"data-smbls-shadowed\")},e$=t=>{t.node&&(t.node.removeAttribute(\"data-smbls-open\"),t.node.offsetWidth,t.node.setAttribute(\"data-smbls-open\",\"true\"))},r$=[[\"role\",\"role\"],[\"aria-label\",\"ariaLabel\"],[\"aria-labelledby\",\"ariaLabelledby\"]],aA=(t,e)=>{if(!t.node)return;let r=new Set;for(let[n,o]of r$){let s=e?.[o];s&&(t.node.setAttribute(n,s),r.add(n))}if(t.__a11yAttrs)for(let n of t.__a11yAttrs)r.has(n)||t.node.removeAttribute(n);t.__a11yAttrs=r,t.__panelTabindex&&(t.node.removeAttribute(\"tabindex\"),t.__panelTabindex=!1)},n$='a[href], button, input:not([type=\"hidden\"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable=\"false\"])',o$=t=>{let e=t.node;if(e){for(let r of e.querySelectorAll(n$)){if(r.matches(\":disabled\"))continue;let n=r.getAttribute(\"tabindex\");if(!(n!==null&&parseInt(n,10)<0)&&(r.focus({preventScroll:!0}),e.ownerDocument.activeElement===r))return}e.setAttribute(\"tabindex\",\"-1\"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},qd={tag:\"div\",attr:{\"data-smbls-dropdown-root\":\"true\"},position:\"fixed\",inset:\"0\",zIndex:\"1500\",pointerEvents:\"none\",state:{layer:null},onInit:t=>{if(t$(),typeof window>\"u\")return;let e=n=>{n.key!==\"Escape\"||n.defaultPrevented||t.state?.layer&&(n.preventDefault(),po.call(t))};window.addEventListener(\"keydown\",e),t.__dropdownEscHandler=e;let r=n=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown=\"panel\"]');if(s&&s.contains(n.target))return;let i=o.anchor;if(i){let a=n.clientX,c=n.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}po.call(t)};document.addEventListener(\"mousedown\",r,!0),t.__dropdownClickHandler=r},onRemove:t=>{typeof window>\"u\"||(t.__dropdownEscHandler&&window.removeEventListener(\"keydown\",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener(\"mousedown\",t.__dropdownClickHandler,!0))},PanelHost:{tag:\"div\",position:\"fixed\",inset:\"0\",pointerEvents:\"none\",subscribeTo:[\"layer\"],layer:(t,e)=>e?.layer||null,Panel:{tag:\"div\",attr:{\"data-smbls-dropdown\":\"panel\"},position:\"fixed\",subscribeTo:[\"layer\"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return\"-9999px\";let r=t._lastSize||{width:280,height:200};return Dr(e.anchor,r,e.placement).left+\"px\"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return\"-9999px\";let r=t._lastSize||{width:280,height:200};return Dr(e.anchor,r,e.placement).top+\"px\"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let r=t._lastSize||{width:280,height:200};return{\"--smbls-dropdown-from\":Ys(Dr(e.anchor,r,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||\"180px\",maxWidth:t=>t.parent?.layer?.maxWidth||\"90vw\",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return\"none\";let r=t._lastSize||{width:280,height:200};return sx(e,Dr(e.anchor,r,e.placement))},overflow:\"auto\",overscrollBehavior:\"contain\",padding:\"0\",round:t=>t.parent?.layer?.round||\"radiusCard\",theme:t=>t.parent?.layer?.theme||null,border:\"none\",borderWidth:\"0\",shadow:t=>t.parent?.layer?.shadow||null,animationDuration:\"B\",animationTimingFunction:\"defaultBezier\",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?\"none\":\"auto\":\"none\"},opacity:t=>t.parent?.layer?\"0.999\":\"0\",onClick:t=>t.stopPropagation(),onInit:t=>{let e=G(()=>{let r=t.parent?.layer,n=r?.content||null,o=r?.id||null;if(!n){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,aA(t,null),t.node?.removeAttribute(\"data-smbls-open\")}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(n)}catch(s){console.warn(\"[dropdown] content set failed:\",s)}iA(t,r),aA(t,r),e$(t),r.focusIn&&o$(t),!(typeof requestAnimationFrame>\"u\")&&requestAnimationFrame(()=>{if(!t.node)return;iA(t,r);let s=t.parent?.layer;if(!s?.anchor)return;let i=sA(t.node);t._lastSize=i;let a=Dr(s.anchor,i,s.placement);t.node.style.maxHeight=sx(s,a),t.node.style.left=a.left+\"px\",t.node.style.top=a.top+\"px\",t.node.style.setProperty(\"--smbls-dropdown-from\",Ys(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let r=sA(t.node),n=t._lastSize;(!n||Math.abs(n.width-r.width)>1||Math.abs(n.height-r.height)>1)&&(t._lastSize=r);let o=Dr(e.anchor,r,e.placement);t.node.style.maxHeight=sx(e,o),t.node.style.left=o.left+\"px\",t.node.style.top=o.top+\"px\",t.node.style.setProperty(\"--smbls-dropdown-from\",Ys(o.side))}}}};var ix=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call(\"closeDropdown\");return}let r={anchorEl:t,trigger:t.dropdownTrigger||\"click\",placement:t.dropdownPlacement||\"auto\",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let n in r)r[n]===void 0&&delete r[n];t.call(\"openDropdown\",r)},Kd={position:\"relative\",onClick:(t,e)=>{(e.dropdownTrigger||\"click\")===\"click\"&&(t.preventDefault(),t.stopPropagation(),ix(e))},onFocus:(t,e)=>{e.dropdownTrigger===\"focus\"&&ix(e)},onMouseenter:(t,e)=>{e.dropdownTrigger===\"hover\"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>ix(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger===\"hover\"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call(\"closeDropdown\"),250))}};var Gd={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\"},Yd={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\"}}},Xd={position:\"relative\",zIndex:999,\":hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}},Zd={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()}}},Jd={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 ax={DropdownRoot:qd,DropdownTrigger:Kd,Dropdown:Gd,DropdownList:Yd,DropdownParent:Xd,DropdownParentFocus:Zd,DropdownSiblingFocus:Jd};var fx={};L(fx,{DROPDOWN_DEFAULTS:()=>yn,closeDropdown:()=>po,computePosition:()=>Dr,dropdownFunctions:()=>lx,fadeInTransform:()=>Ys,openDropdown:()=>Hd,setDropdownInert:()=>Wd});var lx={openDropdown:Hd,closeDropdown:po,setDropdownInert:Wd};var s$=(t,e,r)=>({bottom:r-t.bottom,top:t.top,right:e-t.right,left:t.left}),i$=(t,e,r,n,o)=>{let s=s$(e,n,o),i=t===\"top\"||t===\"bottom\"?r.height+6:r.width+6;if(s[t]>=i)return t;let a={top:\"bottom\",bottom:\"top\",left:\"right\",right:\"left\"}[t];return a&&s[a]>=i?a:t},cA=(t,e,r)=>Math.max(e,Math.min(r,t)),lA=(t,e,r=\"bottom\")=>{if(!t)return{left:0,top:0,side:\"bottom\"};let n=typeof window<\"u\"?window.innerWidth:1024,o=typeof window<\"u\"?window.innerHeight:768,s=i$(r,t,e,n,o),i,a;return s===\"bottom\"||s===\"top\"?(i=t.left+(t.width-e.width)/2,a=s===\"bottom\"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s===\"right\"?t.right+6:t.left-e.width-6),i=cA(i,6,n-e.width-6),a=cA(a,6,o-e.height-6),{left:i,top:a,side:s}},fA=t=>{switch(t){case\"bottom\":return\"translate3d(0, -10%, 0)\";case\"top\":return\"translate3d(0, 10%, 0)\";case\"left\":return\"translate3d(10%, 0, 0)\";case\"right\":return\"translate3d(-10%, 0, 0)\";default:return\"translate3d(0, -10%, 0)\"}};var Qd={placement:\"bottom\",theme:\"dialog\",delay:250,hideDelay:100},a$=t=>{if(!t||typeof t.getBoundingClientRect!=\"function\")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},uA=t=>t?.getRoot?.()?.TooltipRoot||null,dA=t=>{let e=t?.state?.tip;return e?typeof e.$parse==\"function\"?e.$parse():{...e}:null},pA=(t,e,r=0)=>{let n=dA(t);if(!n||n.id!==e||n.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!=\"function\")return;if(o.textContent!==(n.text||\"\")){r<3&&setTimeout(()=>pA(t,e,r+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...n,size:{width:s.width,height:s.height}}})},c$=t=>{typeof queueMicrotask==\"function\"?queueMicrotask(t):Promise.resolve().then(t)},l$=0,f$=()=>`tooltip_${++l$}_${Date.now().toString(36)}`;function hA(t={}){let e=uA(this);if(!e)return console.warn(\"[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context.\"),null;let r=t.anchorEl?.node||t.anchorEl,n=t.anchorRect||a$(r);if(!n)return console.warn(\"[tooltip] openTooltip: no anchor element/rect provided.\"),null;let o=t.id||f$(),s={id:o,text:t.text||\"\",anchor:n,placement:t.placement||Qd.placement,theme:t.theme||Qd.theme,open:!0,size:null};return e.state.update({tip:s}),c$(()=>pA(e,o)),o}function gA(t){let e=uA(this);if(!e)return;let r=dA(e);if(!r||r.open===!1)return;let n=typeof t==\"string\"?t:t?.id;n&&r.id&&n!==r.id||e.state.update({tip:{...r,open:!1}})}var ux=t=>{let e=t.tip;return e?.anchor?lA(e.anchor,e.size||{width:0,height:0},e.placement):null},tp=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},mA={tag:\"div\",attr:{\"data-smbls-tooltip-root\":\"true\"},position:\"fixed\",inset:\"0\",zIndex:\"2500\",pointerEvents:\"none\",state:{tip:null},Panel:{tag:\"div\",attr:{\"data-smbls-tooltip\":\"panel\"},role:\"tooltip\",position:\"fixed\",tip:(t,e)=>e?.tip||null,left:t=>{let e=ux(t);return e?e.left+\"px\":\"-9999px\"},top:t=>{let e=ux(t);return e?e.top+\"px\":\"-9999px\"},text:t=>t.tip?.text||\"\",theme:t=>t.tip?.theme||Qd.theme,width:\"max-content\",maxWidth:\"280px\",padding:\"Y2 Z\",round:\"Z\",fontSize:\"Y2\",lineHeight:\"1.35\",whiteSpace:\"normal\",pointerEvents:\"none\",opacity:t=>tp(t)?\"1\":\"0\",visibility:t=>tp(t)?\"visible\":\"hidden\",transform:t=>{if(tp(t))return\"none\";let e=ux(t);return fA(e?e.side:\"bottom\")},transition:t=>{let e=tp(t)?\"A\":\"Z\";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var dx=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute(\"title\")&&e.removeAttribute(\"title\")},u$=t=>{t.tooltipText&&(dx(t),t.call(\"openTooltip\",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||\"bottom\",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},yA=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,u$(t)},t.tooltipDelay??250))},bA=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call(\"closeTooltip\",t.tooltipId||t.key)},t.tooltipHideDelay??100))},_A={onMouseenter:(t,e)=>yA(e),onMouseleave:(t,e)=>bA(e),onFocus:(t,e)=>yA(e),onBlur:(t,e)=>bA(e),onMouseover:(t,e)=>dx(e),onFocusin:(t,e)=>dx(e)};var xA={display:\"flex\",theme:\"dialog\",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=>t.call(\"isDefined\",t.parent.title)||t.parent.title,width:\"fit-content\",fontWeight:500,color:\"currentColor\",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:\"currentColor\",fontWeight:\"400\",text:(t,e)=>t.call(\"exec\",t.parent.description,t)}},wA={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)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:\"\",visibility:\"\",transform:\"\"};let e=t.shapeDirection;return{opacity:\"1\",visibility:\"visible\",transform:e===\"left\"||e===\"right\"?\"translate3d(0%,-50%,0)\":\"translate3d(-50%,0,0)\"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},SA={position:\"relative\",zIndex:999,scope:{tooltipOpen:!1},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\"}}})},onPointerdown:(t,e)=>{t.pointerType!==\"touch\"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!==\"Escape\"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var kA={TooltipRoot:mA,TooltipTrigger:_A,Tooltip:xA,TooltipHidden:wA,TooltipParent:SA};var vA={openTooltip:hA,closeTooltip:gA};var CA=t=>!!(t&&typeof t==\"object\"&&t.__isStub===!0),EA=t=>tr(t)?t.library!==void 0?t.library:t.key??t.name:t,d$=(t,e)=>{let r=e?.sharedLibraries,n=Array.isArray(r)?r.map(i=>typeof i==\"string\"?i:i?.key||i?.name):r&&typeof r==\"object\"?Object.keys(r):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey==\"string\"&&i.__libraryKey)return i.__libraryKey;if(n&&n[a])return n[a];if(typeof i.__stubId==\"string\"){let c=i.__stubId.match(/^@symbo[-.]ls\\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=EA(i);if(!CA(a))return i;let c=s(a);return c?tr(i)?{...i,library:c}:c:null}).filter(Boolean)},hx=new WeakMap,p$={lazy:!0,window:globalThis},px=t=>{let e=hx.get(t);e&&(hx.delete(t),Y1(e))},h$=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||Rs,e.cssPropsRegistry=xt,e.window=z1(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>{let g=EA(p);return typeof g==\"string\"||CA(g)})){e.sharedLibraries=d$(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(P(),Vo));e.sharedLibraries=await p(e.sharedLibraries,{apiBaseUrl:T_()})}F1(e.sharedLibraries),rE(e)}Zc(e,e.designSystem);let[s,i]=Q1(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Dc.prepareContext(e);let a=tE(t,e);if(e.state=a,Qi(a),e.pages=eE(t,e),e.components=H1(e),e.utils=W1(e),Ur[e.packageManager]){let h=G1(e);h&&h.deferred?(h.blocking&&await M_({...e,dependencies:h.blocking}),hx.set(e,h.deferred)):e.dependencies=await M_(e)}if(e.methods=q1(e),e.routerOptions=RC(t,e),e.defaultExtends=[Nu],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!=\"object\")){let h=e.plugins.filter(p=>!p||typeof p!=\"object\");e.plugins=e.plugins.filter(p=>p&&typeof p==\"object\"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?\"y\":\"ies\"} (${h.map(p=>JSON.stringify(p)).join(\", \")}) \\u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}e.globalScope&&v(e.globalScope)&&(e.globalScope=bi(e.globalScope));let c=(h,p)=>{let g=p?h[p]:h;if(!v(g))return;let m=_e(g,{},p$);try{Object.assign(g,m)}catch(y){if(p)h[p]=m;else throw y}};c(t),c(e,\"components\"),c(e,\"pages\"),c(e,\"functions\"),c(e,\"methods\"),c(e,\"snippets\"),c(e,\"app\");let l=h=>h&&typeof h.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=h=>e.plugins.some(p=>p&&p.name===h);if(e.polyglot&&!f(\"polyglot\")){e.plugins.push(Ds);for(let h in Uc)typeof e.functions[h]!=\"function\"&&(e.functions[h]=Uc[h])}if(f(\"helmet\")||e.plugins.push(t_),e.fetch&&!f(\"fetch\")&&e.plugins.push(pg),e.designSystem?.typography?.useCapsize!==!1&&!f(\"capsize\")&&(e.plugins.push(Ju),e.cssPropsRegistry.useCapsize=o_),e.shorthand&&!f(\"shorthand\")&&e.plugins.push(Dc),e.analyze&&!f(\"analyze\")){let h=e.analyze===!0?{}:e.analyze;e.analyze=ld(h),e.plugins.push(Ls)}e.sync!==!1&&!f(\"sync\")&&e.plugins.push(JE),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(QE);let d=(h,p,g)=>{if(e[h]!==!1){for(let m in p)v(e.components[m])||(e.components[m]=p[m]);for(let m in g)typeof e.functions[m]!=\"function\"&&(e.functions[m]=g[m])}};return d(\"windows\",ex,Pr),d(\"dropdown\",ax,lx),d(\"tooltip\",kA,vA),e},gx=async(t,e)=>{v(e)||(e={}),dr(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):v(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 h$(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&&v(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=VC(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await X1({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 px(e),t;let i=e.parent||s.body;if(n){let c=g$(he,t,i,e,r,o);return px(e),c}let a=he(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return px(e),typeof window<\"u\"&&!e.document&&(window.__smblsApp=a),a},g$=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 m$(o),c},m$=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var mx=(t,e)=>nt(t,v(e)?e:{}),y$=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},b$=()=>{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}},AA=t=>{let e=b$();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e===\"runner\"&&typeof t.editor.livesync>\"u\"&&(t.editor.livesync=!0))},yx=(t,e=ln,r)=>{let n={...ln,...mx(e,r)};return AA(n),y$(n),gx(t,n).then(s=>{if(Jb(s,n),s.destroy=()=>Sc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=wc(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})},_$=(t,e=ln,r)=>{let n=yx(t,e,r),o={...ln,...mx(e,r)},s=o.key;return LC(n,s,{utils:xc,...o}),n},x$=async(t,e=ln,r)=>{let n={...ln,...mx(e,r)};AA(n);let o=e.key;await IC(o,n);let s=await gx(t,n);return Jb(s,n),s.destroy=()=>Sc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=wc(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},w$=(t={},e=ln,r)=>yx({deps:{isUndefined:Pt},...t},nt({domqlOptions:{onlyResolveExtends:!0}},e),r);Hu(nc);I1(void 0,{smbls:bx});L1(void 0,{\"@symbo.ls/windows\":()=>({...rx,...tx}),\"@symbo.ls/dropdown\":()=>({...cx,...fx})});return LA(bx);})();\n";
|