smbls 3.14.839 → 3.14.841

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +28 -4
  3. package/dist/smbls.cjs +45 -44
  4. package/dist/smbls.cjs.map +3 -3
  5. package/dist/smbls.core.chunk-LBCOGPQA.esm.js +38 -0
  6. package/dist/smbls.core.chunk-LBCOGPQA.esm.js.map +6 -0
  7. package/dist/smbls.core.chunk-MCONKV7B.esm.js +4 -0
  8. package/dist/smbls.core.chunk-MCONKV7B.esm.js.map +6 -0
  9. package/dist/{smbls.core.chunk-7JOJ6YVP.esm.js → smbls.core.chunk-TCG3IHHN.esm.js} +2 -2
  10. package/dist/smbls.core.chunk-TCG3IHHN.esm.js.map +6 -0
  11. package/dist/smbls.core.chunk-ZHQLDZRA.esm.js +36 -0
  12. package/dist/smbls.core.chunk-ZHQLDZRA.esm.js.map +6 -0
  13. package/dist/{smbls.core.dropdown-6BUJ7B4T.esm.js → smbls.core.dropdown-3KQXEVA7.esm.js} +2 -2
  14. package/dist/smbls.core.esm.js +1 -1
  15. package/dist/smbls.core.fetch-L2MDZV25.esm.js +2 -0
  16. package/dist/smbls.core.fetch-L2MDZV25.esm.js.map +6 -0
  17. package/dist/{smbls.core.fetchOnCreate-QRFDUMYQ.esm.js → smbls.core.fetchOnCreate-GJOL6VHT.esm.js} +2 -2
  18. package/dist/{smbls.core.inspect-LT4KISKW.esm.js → smbls.core.inspect-RK43N6ZS.esm.js} +2 -2
  19. package/dist/{smbls.core.sync-MZGPA246.esm.js → smbls.core.sync-EGQBZXO4.esm.js} +2 -2
  20. package/dist/{smbls.core.windows-NGKITYP7.esm.js → smbls.core.windows-J5KM6ECG.esm.js} +2 -2
  21. package/dist/smbls.embed.iife.js +1 -1
  22. package/dist/smbls.embed.iife.js.map +1 -1
  23. package/dist/smbls.esm.js +45 -44
  24. package/dist/smbls.esm.js.map +3 -3
  25. package/dist/smbls.iife-string.js +2 -2
  26. package/dist/smbls.iife.js +2 -2
  27. package/dist/smbls.iife.js.map +1 -1
  28. package/package.json +9 -9
  29. package/dist/smbls.core.chunk-22BLOP75.esm.js +0 -36
  30. package/dist/smbls.core.chunk-22BLOP75.esm.js.map +0 -6
  31. package/dist/smbls.core.chunk-7JOJ6YVP.esm.js.map +0 -6
  32. package/dist/smbls.core.chunk-NJZRPU6B.esm.js +0 -3
  33. package/dist/smbls.core.chunk-NJZRPU6B.esm.js.map +0 -6
  34. package/dist/smbls.core.chunk-PAAPLH2M.esm.js +0 -38
  35. package/dist/smbls.core.chunk-PAAPLH2M.esm.js.map +0 -6
  36. package/dist/smbls.core.fetch-CCNEQJHY.esm.js +0 -2
  37. package/dist/smbls.core.fetch-CCNEQJHY.esm.js.map +0 -6
  38. /package/dist/{smbls.core.dropdown-6BUJ7B4T.esm.js.map → smbls.core.dropdown-3KQXEVA7.esm.js.map} +0 -0
  39. /package/dist/{smbls.core.fetchOnCreate-QRFDUMYQ.esm.js.map → smbls.core.fetchOnCreate-GJOL6VHT.esm.js.map} +0 -0
  40. /package/dist/{smbls.core.inspect-LT4KISKW.esm.js.map → smbls.core.inspect-RK43N6ZS.esm.js.map} +0 -0
  41. /package/dist/{smbls.core.sync-MZGPA246.esm.js.map → smbls.core.sync-EGQBZXO4.esm.js.map} +0 -0
  42. /package/dist/{smbls.core.windows-NGKITYP7.esm.js.map → smbls.core.windows-J5KM6ECG.esm.js.map} +0 -0
package/dist/smbls.cjs CHANGED
@@ -1,39 +1,40 @@
1
- "use strict";var RF=Object.create;var sd=Object.defineProperty;var PF=Object.getOwnPropertyDescriptor;var DF=Object.getOwnPropertyNames;var LF=Object.getPrototypeOf,IF=Object.prototype.hasOwnProperty;var L=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(r){throw n=[r],r}};var Sy=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},F=(t,e)=>{for(var n in e)sd(t,n,{get:e[n],enumerable:!0})},kA=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of DF(e))!IF.call(t,o)&&o!==n&&sd(t,o,{get:()=>e[o],enumerable:!(r=PF(e,o))||r.enumerable});return t};var MF=(t,e,n)=>(n=t!=null?RF(LF(t)):{},kA(e||!t||!t.__esModule?sd(n,"default",{value:t,enumerable:!0}):n,t)),$F=t=>kA(sd({},"__esModule",{value:!0}),t);var Oy={};F(Oy,{WRITE_JOURNAL:()=>ac,batch:()=>fc,countUntrackedReads:()=>jF,createComputed:()=>BF,createEffect:()=>UF,createSignal:()=>wn,getObserver:()=>Ay,journalWrite:()=>lc,noteUntrackedRead:()=>Ce,setObserver:()=>NF,settled:()=>Ty,untrack:()=>FF});function FF(t){let e=Xt;if(!e)return t();Xt=null;try{return t()}finally{Xt=e}}function Ce(){xy!==0&&id++}function jF(t){let e=id;xy++;let n;try{t()}finally{n=id-e,--xy===0&&(id=0)}return n}function wn(t){let e=new Set;function n(){return Xt&&(e.add(Xt),Xt._sources.add(s)),t}function r(i){i!==t&&(t=i,GF(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function BF(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){Ey(o);let s=Xt;Xt=o;try{e=t(),n=!1}finally{Xt=s}},_notify(){n=!0,r.size>0&&CA(r)},get(){return Xt&&(r.add(Xt),Xt._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function lc(t){ac.push(t),ac.length>32&&ac.shift()}function UF(t,e){let n=e?.depth??0,r={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(r._disposed)return;Ey(r);let o=Xt;Xt=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Xt=o}},_notify(){r._disposed||(sc>0?ic.push(r):ad>0?ky.push(r):Cy(r))},dispose(){r._disposed=!0,Ey(r)}};return r._execute(),r}function fc(t){sc++;try{t()}finally{sc--,sc===0&&KF()}}function EA(){return typeof performance<"u"?performance.now():Date.now()}function Cy(t){Fe.add(t),!ld&&(cd||(cd=!0,queueMicrotask(AA)))}function WF(){if(Fe.size===1){let[e]=Fe;return Fe.clear(),e._disposed?0:(e._execute(),1)}Zs.length=0;for(let e of Fe)Zs.push(e);Fe.clear(),Zs.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<Zs.length;e++){let n=Zs[e];n._disposed||(n._execute(),t++)}return Zs.length=0,t}function AA(t=0,e=0){if(cd=!1,Fe.size===0){cc.length&&vy();return}ld=!0;let n=EA(),r=!1;try{for(;Fe.size>0;){if(++t>vA){let o=new Map;for(let c of Fe){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 ac)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",vA,"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>"),Fe.clear();break}if(e+=WF(),Fe.size>0&&(e>=HF||t>=zF)&&EA()-n>VF){r=!0,setTimeout(()=>AA(t,e),0);break}}}finally{r||(ld=!1,cc.length&&vy())}}function qF(){return Fe.size===0&&!cd&&!ld&&ic.length===0&&sc===0}function vy(){if(cc.length===0||!qF())return;let t=cc.splice(0);for(let e=0;e<t.length;e++)t[e]()}function Ty(){return new Promise(t=>{cc.push(t),queueMicrotask(vy)})}function KF(){for(let t=0;t<ic.length;t++)Cy(ic[t]);ic.length=0}function CA(t){ad++;try{for(let e of t)e._notify()}finally{if(ad--,ad===0&&ky.length>0){let e=ky.splice(0);for(let n=0;n<e.length;n++)Cy(e[n])}}}function GF(t){CA(t)}function Ey(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Xt,sc,ic,Ay,NF,xy,id,ad,ky,Fe,cd,ac,ld,vA,VF,HF,zF,Zs,cc,Ry=L(()=>{Xt=null,sc=0,ic=[],Ay=()=>Xt,NF=t=>{Xt=t};xy=0,id=0;ad=0,ky=[];Fe=new Set,cd=!1,ac=[];ld=!1,vA=1e3,VF=8,HF=256,zF=4;Zs=[];cc=[]});var $y={};F($y,{RESERVED_STORE_METHODS:()=>uc,STORE_METHOD_NAMES:()=>My,__resetStateShadowWarnings:()=>YF,createScopeStore:()=>QF,createStore:()=>ud,getSignals:()=>JF,isStore:()=>ZF,warnStateKeyShadowsMethod:()=>Iy});function Iy(t,e){let n=(e||"")+"::"+t;if(Ly.has(n))return;Ly.add(n);let r=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${r}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${r}.${t}(\u2026)" no longer reaches the store method on this node. Use "${r}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${My.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function YF(){Ly.clear()}function hd(t,e,n){if(t===e)return!0;if(n>XF)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!hd(t[r],e[r],n+1))return!1;return!0}if(pd(t)&&pd(e)){let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s of r)if(!Object.prototype.hasOwnProperty.call(e,s)||!hd(t[s],e[s],n+1))return!1;return!0}return!1}function ud(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=w=>Object.prototype.hasOwnProperty.call(o,w)&&Object.prototype.hasOwnProperty.call(s,w),a=w=>{if(!r||!e||typeof e.isDataOnlyKey!="function")return!1;let b=r.indexOf(".");return!!e.isDataOnlyKey(b===-1?r:r.slice(0,b),w)},c=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let w in t){if(w==="__proto__"||!Object.prototype.hasOwnProperty.call(t,w))continue;if(w.startsWith("__")){s[w]=t[w];continue}uc.has(w)&&!a(w)&&Iy(w,r);let b=t[w];n<c&&b&&typeof b=="object"&&!Dy(b)?(s[w]=b,o[w]=wn(ud(b,e,n+1,Py(r,w)))):(s[w]=b,o[w]=wn(b))}let l=new Proxy(s,{get(w,b){if(b===en)return!0;if(b===dd)return o;if(b==="__raw")return w;if(b==="$update")return u;if(b==="$parse")return g;if(b==="$clean")return h;if(b==="$keys")return m;if(b==="$values")return y;if(b==="$replace")return _;if(b==="$add")return S;if(b==="$remove")return v;if(b==="$destroy")return x;if(b==="$quietUpdate")return d;if(b==="$settled")return p;if(uc.has(b)&&!Object.prototype.hasOwnProperty.call(o,b))switch(b){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return _;case"add":return S;case"remove":return v;case"destroy":return x;case"quietUpdate":return d}if(b==="__element")return w.__element;if(b==="parent")return w.parent;if(b==="root")return w.root;if(Object.prototype.hasOwnProperty.call(o,b)){let C=o[b].get();if(C!==void 0||!(b!=="root"&&w.root&&w.root!==l))return C}if(w[b]!==void 0)return typeof b=="string"&&Ce(),w[b];let k=typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Ay()!=null;if(b!=="root"&&w.root&&w.root!==l){let C=w.root[b];return k&&!Object.prototype.hasOwnProperty.call(o,b)&&(o[b]=wn(void 0),o[b].get()),C}if(k)return o[b]=wn(void 0),o[b].get();typeof b=="string"&&b.charCodeAt(0)===95&&b.charCodeAt(1)===95&&Ce()},set(w,b,k){if(b==="__proto__")return!1;if(b==="__element"||b==="parent"||b==="root"||typeof b=="string"&&b.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,b))return w[b]=k,!0;uc.has(b)&&!a(b)&&Iy(b,r);let C=Py(r,b);if(Object.prototype.hasOwnProperty.call(o,b))if(k&&typeof k=="object"&&!Dy(k)){if(k===w[b])return!0;let D=o[b].peek(),R=D&&D[en]?D.$parse():D;if(hd(k,R,0))return!0;w[b]=k,lc(C),o[b].set(ud(k,e,n+1,C))}else{if(Array.isArray(k)&&k!==w[b]&&Array.isArray(o[b].peek())&&hd(k,o[b].peek(),0))return!0;o[b].peek()!==k&&lc(C),w[b]=k,o[b].set(k)}else w[b]=k,k&&typeof k=="object"&&!Dy(k)?o[b]=wn(ud(k,e,n+1,C)):o[b]=wn(k);return!0},has(w,b){return Ce(),typeof b=="string"&&b.charCodeAt(0)===36&&uc.has(b.slice(1))?!0:b in w},ownKeys(w){return Ce(),Object.keys(o).filter(i)},getOwnPropertyDescriptor(w,b){return Ce(),i(b)?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(w,b)},deleteProperty(w,b){if(Object.prototype.hasOwnProperty.call(o,b)){let k=o[b];k.peek()!==void 0&&lc(Py(r,b)),k.set(void 0),k._subscribers.size===0&&delete o[b]}return delete w[b],!0}});function f(w,b){let k=s.__element;return!k||typeof k.onBeforeStateUpdate!="function"||b?.preventBeforeStateUpdateListener?!0:k.onBeforeStateUpdate(k,l,k.context,{changes:w,options:b})!==!1}function u(w,b){if(w&&typeof w=="object"&&!f(w,b))return l;fc(()=>{for(let C in w)C!=="__proto__"&&(l[C]=w[C])});let k=s.__element;return k&&k.onUpdate&&!b?.quiet&&k.onUpdate(k,l,k.context),l}function d(w){return u(w,{quiet:!0})}function p(){return Ty().then(()=>l)}function g(w){if(Ce(),w||(w=new Set),w.has(l))return"[Circular]";w.add(l);let b={};for(let k in o){if(k==="parent"||k==="root"||k.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,k))continue;let C=o[k].peek();C&&C[en]?b[k]=C.$parse(w):b[k]=C}return b}function h(){return fc(()=>{for(let w in o)delete l[w]}),l}function m(){return Ce(),Object.keys(o).filter(i)}function y(){return Ce(),Object.keys(o).filter(i).map(w=>o[w].peek())}function _(w,b){return w&&typeof w=="object"&&!f(w,b)||fc(()=>{for(let k in o)k in w||delete l[k];for(let k in w)k!=="__proto__"&&(l[k]=w[k])}),l}function S(w,b){let k=Object.prototype.hasOwnProperty.call(o,w)?o[w].peek():s[w];if(Array.isArray(k))return l[w]=[...k,b],l;if(k&&typeof k=="object"&&!Array.isArray(k)){if(pd(b))k[en]?k.$update(b):l[w]={...k,...b};else{let C=String(Object.keys(k).length);k[en]?k.$update({[C]:b}):l[w]={...k,[C]:b}}return l}return l[w]=b,l}function v(w){return delete l[w],l}function x(){h(),s.__element=null,s.parent=null}return l}function ZF(t){return t&&t[en]===!0}function JF(t){return t[dd]}function QF(t,e){let n={},r={};if(t&&typeof t=="object")for(let a in t)r[a]=t[a],n[a]=wn(t[a]);let o=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[dd];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[en]?c[fd]:null}return null},s=()=>{let a=e;for(;a&&a[en];)a=a[fd];return a&&typeof a=="object"?a:null};return new Proxy(r,{get(a,c){return c===en?!0:c===dd?n:c===fd?e:c==="__raw"?a:Object.prototype.hasOwnProperty.call(n,c)?n[c].get():e&&c!=="then"&&c!=="constructor"?e[c]:a[c]},set(a,c,l){let f=o(c);if(f)return f===n&&(a[c]=l),f[c].set(l),!0;let u=s();return u&&Object.prototype.hasOwnProperty.call(u,c)?(u[c]=l,!0):(a[c]=l,n[c]=wn(l),!0)},has(a,c){if(Ce(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[en]?l[fd]:null}return!1},ownKeys(){return Ce(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return Ce(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var en,dd,My,uc,Ly,Py,Dy,XF,pd,fd,TA=L(()=>{Ry();en=Symbol("store"),dd=Symbol("signals"),My=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],uc=new Set(My),Ly=new Set,Py=(t,e)=>t?t+"."+e:String(e);Dy=t=>!t||typeof t!="object"||Array.isArray(t)||t[en]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!pd(t),XF=12,pd=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};fd=Symbol("scope.parent")});var wo,gd=L(()=>{wo="3.14.789"});var Js,Qs,Ny,Fy=L(()=>{gd();Js="__SMBLS_SIGNAL_INSTANCES__",Qs=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[Js]||(r[Js]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||wo),n||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},Ny=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Js]}});var ti,OA,jy,RA=L(()=>{gd();Fy();ti="__SMBLS_SIGNAL_ENGINE__",OA=(t,e,n)=>{let r=e||wo,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[ti];return s&&s.engine&&s.version===r?(Qs(r,o,!0),s.engine):(s||(o[ti]={version:r,engine:t}),Qs(r,o,!1),t)},jy=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[ti]}});var Mt,nn,PA,z,md,Te,dc,ei,yd,bd,Hn,_d,wt,DA,LA,IA,wd,MA,$A,NA=L(()=>{Ry();TA();RA();gd();Fy();Mt=OA({...Oy,...$y,VERSION:wo},wo),nn=Mt.createSignal,PA=Mt.createComputed,z=Mt.createEffect,md=Mt.batch,Te=Mt.getObserver,dc=Mt.setObserver,ei=Mt.untrack||(t=>{let e=Mt.getObserver();if(!e)return t();Mt.setObserver(null);try{return t()}finally{Mt.setObserver(e)}}),yd=Mt.settled||(()=>Promise.resolve()),bd=Mt.countUntrackedReads||(t=>(t(),0)),Hn=Mt.createStore,_d=Mt.createScopeStore,wt=Mt.isStore,DA=Mt.getSignals,LA=Mt.STORE_METHOD_NAMES,IA=Mt.RESERVED_STORE_METHODS,wd=Mt.warnStateKeyShadowsMethod,MA=Mt.__resetStateShadowWarnings,$A=Mt.VERSION});var pc={};F(pc,{RESERVED_STORE_METHODS:()=>IA,SIGNAL_ENGINE_KEY:()=>ti,SIGNAL_INSTANCES_KEY:()=>Js,STORE_METHOD_NAMES:()=>LA,VERSION:()=>$A,__resetSignalEngine:()=>jy,__resetSignalInstances:()=>Ny,__resetStateShadowWarnings:()=>MA,batch:()=>md,countUntrackedReads:()=>bd,createComputed:()=>PA,createEffect:()=>z,createScopeStore:()=>_d,createSignal:()=>nn,createStore:()=>Hn,getObserver:()=>Te,getSignals:()=>DA,isStore:()=>wt,registerSignalInstance:()=>Qs,setObserver:()=>dc,settled:()=>yd,untrack:()=>ei,warnStateKeyShadowsMethod:()=>wd});var Rt=L(()=>{NA()});var Uy,Vy,T,yt,gc=L(()=>{"use strict";Uy=globalThis,Vy=globalThis,T=globalThis,yt=T.document});var qn,mc,de,yc=L(()=>{"use strict";gc();qn=t=>(typeof Node=="object"?t instanceof T.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,mc=t=>(typeof HTMLElement=="object"?t instanceof T.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,de=t=>typeof T<"u"&&(T.Node&&t instanceof T.Node||T.Window&&t instanceof T.Window||t===T||yt!==void 0&&t===yt)});var A,E,pe,P,Sd,xd,I,kd,V,jt,Wt,bc,he,Hy,qt=L(()=>{"use strict";yc();A=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,E=t=>typeof t=="string",pe=t=>typeof t=="number",P=t=>typeof t=="function",Sd=t=>t===!0||t===!1,xd=t=>t===null,I=t=>Array.isArray(t),kd=t=>t instanceof Date,V=t=>t===null?!1:typeof t=="object",jt=t=>t!==void 0,Wt=t=>t===void 0,bc={boolean:Sd,array:I,object:A,string:E,date:kd,number:pe,null:xd,function:P,objectLike:V,node:qn,htmlElement:mc,defined:jt},he=t=>(...e)=>e.some(n=>bc[n](t)),Hy=t=>(...e)=>!e.some(n=>bc[n](t))});var zy,Wy,qy,Ky,oi,_c,Gy,Yy,wc,Xy,Zy,Jy,Qy,tb,eb,nb,si,Sc,ii=L(()=>{"use strict";Sn();qt();zy=(t,e)=>e.every(n=>t.includes(n)),Wy=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},qy=(t,e)=>{if(E(e)&&(e=parseInt(e)),pe(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},Ky=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},oi=(...t)=>[].concat(...t),_c=(t,e=[])=>t.reduce((n,r)=>dt(n,pt(r,{exclude:e}),e),{}),Gy=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},Yy=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},wc=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},Xy=(t,e)=>t.filter(n=>n!==e),Zy=(t,e)=>{let n=[];for(let r=0;r<t.length;r++)n.push(t[r]),r<t.length-1&&n.push(e);return n},Jy=(t,e,n)=>{let r=[...t],o=r.indexOf(e),s=r.indexOf(n);if(o!==-1&&s!==-1){let i=r.splice(o,1)[0],a=s<o?s:s+1;r.splice(a,0,i)}return r},Qy=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},tb=(t,e)=>t.filter(n=>!e.includes(n)),eb=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},nb=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},si=t=>I(t)?[...new Set(t)]:t,Sc=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function Kt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!rj(this,t))return t;let i=nj[r],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=xc(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=xc(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let S=xc(y,p);if(S!=null&&typeof S!="object")return String(S);for(let v in y){let x=y[v];if(x&&typeof x=="object"&&!Array.isArray(x)){let w=xc(x,p);if(w!=null&&typeof w!="object")return String(w)}}}let _=xc(h.translations,p);if(_!=null&&typeof _!="object")return String(_)}return""}})}var rb,kc,ob,nj,xc,rj,xo,sb,oj,ib,ab,cb,sj,lb,fb,vc=L(()=>{"use strict";rb=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),kc=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},ob=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},nj={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},xc=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),rj=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let r=n.__ref&&n.__ref.__authoredTemplates;if(r&&r.has(e))return!0;n=n.parent}return!1};xo=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,sb=(t,e)=>{let n=t.split(`
2
- `),r=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,r=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){o=r,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){o=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:r,endLineNumber:o}},oj=/\\([0-7]{1,3})/g,ib=t=>t.replace(oj,(e,n)=>String.fromCharCode(parseInt(n,8))),ab=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),cb=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),sj=/[^a-zA-Z0-9\s]/g,lb=t=>t.replace(sj,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),fb=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Cr,Ec,ub,ko,Tr,Or,db,ai,vo,Ac,pb,Eo=L(()=>{"use strict";Cr=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"]),Ec=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),ub=["ref","parent","__element","__depends","__ref","__children","root"],ko=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"]),Tr=new Set(["update","__element"]),Or=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","whenConnected","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"]),db=t=>Or.has(t),ai=new Set(["log","warn","error","verbose"]),vo=t=>Or.has(t)&&!ai.has(t),Ac=new Set(["node","context","extends","__element","__ref",...Or,...ko,...Tr]),pb=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var gb,mb,ij,yb,hb,aj,cj,lj,ci,vd,Cc,bb=L(()=>{"use strict";gb=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],mb=(t,e)=>t.split("$R").join(e),ij=gb.map(t=>[mb(t,"this"),t]),yb=t=>mb(gb[gb.length-1],t),hb="const __scope = ",aj=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,cj=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,lj=/^[A-Za-z_$][\w$]*$/,ci=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),vd=(t,e)=>{if(t.length>=2&&ci(t[0],"el"))return t[0];if(t.length>=2&&ci(t[1],"el"))return t[1];if(t.length>=1&&ci(t[0],"el")||ci(t[0],"element")||ci(t[0],"node"))return t[0];if(typeof e=="function"){let n=e();if(n&&t.includes(n))return n}return t.find(n=>ci(n,"element"))||null},Cc=t=>{if(typeof t!="string"||t.indexOf(hb)===-1||t.indexOf("this")===-1)return t;let e=cj.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(hb,n))return t;n+=hb.length;let r=aj.exec(t.slice(n,n+400));r&&(n+=r[0].length);let o=ij.find(([l])=>t.startsWith(l,n));if(!o)return t;let s=n+o[0].length;if(t[s]!==(r?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!lj.test(l)))return t;let c=vd(a);return c?t.slice(0,n)+mb(o[1],c)+t.slice(s):t}});function vj(){let t=Ao.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var FA,Co,St,wb,Tt,dt,qA,Sb,pt,Oc,fj,uj,jA,Rc,dj,pj,hj,se,KA,gj,Ed,GA,_b,Ao,mj,yj,bj,_j,wj,BA,Sj,UA,xj,VA,Ad,kj,Ej,Aj,Cj,HA,xb,Oe,To,Tj,Oj,ge,YA,XA,ZA,JA,QA,tC,eC,Pc,Dc,li,Oo,zA,Tc,WA,Ro,kb,vb,Cd,Eb,Ab,Lc,Po,ie,Td,Rj,Cb,Tb,Od,Ob,Rb,Pb,Db,Lb,Ib,Mb,Sn=L(()=>{"use strict";gc();qt();ii();vc();yc();Eo();bb();FA="production",Co=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,St=(t,e,n,r)=>{if(P(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,r||e.context):void 0;if(t!=null&&e?.context?.plugins&&(I(t)||A(t)&&!de(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 St(i,e,n,r)}}return t},wb=(t,e,n)=>{for(let r in e)t[r]=St(e[r],n)},Tt=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Co(o)||(r?n.has(o):n.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},dt=(t,e,n=Ac)=>qA(t,e,n,null),qA=(t,e,n,r)=>{if(t===e)return t;if(r){for(let s=0;s<r.length;s+=2)if(r[s]===t&&r[s+1]===e)return t}let o=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Co(s)||s==="constructor"||s==="prototype"||(o?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(V(i)&&V(a)){let c=r||[];c.push(t,e),qA(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Sb=(t,e=[])=>{let n=e instanceof Set,r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Co(o)||(n?e.has(o):e.includes(o))||(r[o]=t[o]));return r},pt=(t,e={})=>{let{exclude:n=[],cleanUndefined:r=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!V(t)||de(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=I(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||Co(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(r&&g===void 0)&&!(o&&g===null)){if(de(g)){d[p]=g;continue}if(i&&p==="extends"&&I(g)){d[p]=_c(g,n);continue}if(P(g)){d[p]=g;continue}if(V(g))if(s.has(g))d[p]=s.get(g);else{let h=I(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},Oc=(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 n in t){let r=t[n];if(P(r))e[n]=r.toString();else if(A(r))e[n]={},Oc(r,e[n]);else if(I(r)){let o=e[n]=[];for(let s=0;s<r.length;s++){let i=r[s];A(i)?(o[s]={},Oc(i,o[s])):P(i)?o[s]=i.toString():o[s]=i}}else e[n]=r}return e},fj=/^[A-Za-z_$][A-Za-z0-9_$]*$/,uj=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,jA=t=>{let e=String(t);return kc(e,[`
4
- `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},Rc=(t={},e=0)=>{if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let r=" ".repeat(e),o=`{
5
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=fj.test(s)?s:uj(s);if(o+=`${r} ${a}: `,i instanceof RegExp)o+=String(i);else if(I(i)){o+=`[
1
+ "use strict";var Nj=Object.create;var Ad=Object.defineProperty;var Fj=Object.getOwnPropertyDescriptor;var jj=Object.getOwnPropertyNames;var Bj=Object.getPrototypeOf,Uj=Object.prototype.hasOwnProperty;var L=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(r){throw n=[r],r}};var Jy=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},$=(t,e)=>{for(var n in e)Ad(t,n,{get:e[n],enumerable:!0})},dC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of jj(e))!Uj.call(t,o)&&o!==n&&Ad(t,o,{get:()=>e[o],enumerable:!(r=Fj(e,o))||r.enumerable});return t};var Vj=(t,e,n)=>(n=t!=null?Nj(Bj(t)):{},dC(e||!t||!t.__esModule?Ad(n,"default",{value:t,enumerable:!0}):n,t)),Hj=t=>dC(Ad({},"__esModule",{value:!0}),t);var sb={};$(sb,{WRITE_JOURNAL:()=>vc,batch:()=>Cc,countUntrackedReads:()=>Kj,createComputed:()=>qj,createEffect:()=>Gj,createSignal:()=>En,getObserver:()=>nb,journalWrite:()=>Ac,noteUntrackedRead:()=>Re,setObserver:()=>zj,settled:()=>ob,untrack:()=>Wj});function Wj(t){let e=Xt;if(!e)return t();Xt=null;try{return t()}finally{Xt=e}}function Re(){Zy!==0&&Cd++}function Kj(t){let e=Cd;Zy++;let n;try{t()}finally{n=Cd-e,--Zy===0&&(Cd=0)}return n}function En(t){let e=new Set;function n(){return Xt&&(e.add(Xt),Xt._sources.add(s)),t}function r(i){i!==t&&(t=i,eB(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function qj(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){eb(o);let s=Xt;Xt=o;try{e=t(),n=!1}finally{Xt=s}},_notify(){n=!0,r.size>0&&mC(r)},get(){return Xt&&(r.add(Xt),Xt._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function Ac(t){vc.push(t),vc.length>32&&vc.shift()}function Gj(t,e){let n=e?.depth??0,r={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(r._disposed)return;eb(r);let o=Xt;Xt=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Xt=o}},_notify(){r._disposed||(xc>0?kc.push(r):Td>0?Qy.push(r):rb(r))},dispose(){r._disposed=!0,eb(r)}};return r._execute(),r}function Cc(t){xc++;try{t()}finally{xc--,xc===0&&tB()}}function hC(){return typeof performance<"u"?performance.now():Date.now()}function rb(t){Ue.add(t),!Rd&&(Od||(Od=!0,queueMicrotask(gC)))}function Zj(){if(Ue.size===1){let[e]=Ue;return Ue.clear(),e._disposed?0:(e._execute(),1)}pi.length=0;for(let e of Ue)pi.push(e);Ue.clear(),pi.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<pi.length;e++){let n=pi[e];n._disposed||(n._execute(),t++)}return pi.length=0,t}function gC(t=0,e=0){if(Od=!1,Ue.size===0){Ec.length&&tb();return}Rd=!0;let n=hC(),r=!1;try{for(;Ue.size>0;){if(++t>pC){let o=new Map;for(let c of Ue){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 vc)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",pC,"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>"),Ue.clear();break}if(e+=Zj(),Ue.size>0&&(e>=Xj||t>=Jj)&&hC()-n>Yj){r=!0,setTimeout(()=>gC(t,e),0);break}}}finally{r||(Rd=!1,Ec.length&&tb())}}function Qj(){return Ue.size===0&&!Od&&!Rd&&kc.length===0&&xc===0}function tb(){if(Ec.length===0||!Qj())return;let t=Ec.splice(0);for(let e=0;e<t.length;e++)t[e]()}function ob(){return new Promise(t=>{Ec.push(t),queueMicrotask(tb)})}function tB(){for(let t=0;t<kc.length;t++)rb(kc[t]);kc.length=0}function mC(t){Td++;try{for(let e of t)e._notify()}finally{if(Td--,Td===0&&Qy.length>0){let e=Qy.splice(0);for(let n=0;n<e.length;n++)rb(e[n])}}}function eB(t){mC(t)}function eb(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Xt,xc,kc,nb,zj,Zy,Cd,Td,Qy,Ue,Od,vc,Rd,pC,Yj,Xj,Jj,pi,Ec,ib=L(()=>{Xt=null,xc=0,kc=[],nb=()=>Xt,zj=t=>{Xt=t};Zy=0,Cd=0;Td=0,Qy=[];Ue=new Set,Od=!1,vc=[];Rd=!1,pC=1e3,Yj=8,Xj=256,Jj=4;pi=[];Ec=[]});var db={};$(db,{RESERVED_STORE_METHODS:()=>Tc,STORE_METHOD_NAMES:()=>ub,__resetStateShadowWarnings:()=>nB,createScopeStore:()=>iB,createStore:()=>Dd,getSignals:()=>sB,isStore:()=>oB,warnStateKeyShadowsMethod:()=>fb});function fb(t,e){let n=(e||"")+"::"+t;if(lb.has(n))return;lb.add(n);let r=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${r}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${r}.${t}(\u2026)" no longer reaches the store method on this node. Use "${r}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${ub.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function nB(){lb.clear()}function Md(t,e,n){if(t===e)return!0;if(n>rB)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!Md(t[r],e[r],n+1))return!1;return!0}if(Id(t)&&Id(e)){let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s of r)if(!Object.prototype.hasOwnProperty.call(e,s)||!Md(t[s],e[s],n+1))return!1;return!0}return!1}function Dd(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=_=>Object.prototype.hasOwnProperty.call(o,_)&&Object.prototype.hasOwnProperty.call(s,_),a=_=>{if(!r||!e||typeof e.isDataOnlyKey!="function")return!1;let b=r.indexOf(".");return!!e.isDataOnlyKey(b===-1?r:r.slice(0,b),_)},c=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}Tc.has(_)&&!a(_)&&fb(_,r);let b=t[_];n<c&&b&&typeof b=="object"&&!cb(b)?(s[_]=b,o[_]=En(Dd(b,e,n+1,ab(r,_)))):(s[_]=b,o[_]=En(b))}let l=new Proxy(s,{get(_,b){if(b===an)return!0;if(b===Ld)return o;if(b==="__raw")return _;if(b==="$update")return u;if(b==="$parse")return g;if(b==="$clean")return h;if(b==="$keys")return m;if(b==="$values")return y;if(b==="$replace")return k;if(b==="$add")return v;if(b==="$remove")return S;if(b==="$destroy")return w;if(b==="$quietUpdate")return d;if(b==="$settled")return p;if(Tc.has(b)&&!Object.prototype.hasOwnProperty.call(o,b))switch(b){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return k;case"add":return v;case"remove":return S;case"destroy":return w;case"quietUpdate":return d}if(b==="__element")return _.__element;if(b==="parent")return _.parent;if(b==="root")return _.root;if(Object.prototype.hasOwnProperty.call(o,b)){let C=o[b].get();if(C!==void 0||!(b!=="root"&&_.root&&_.root!==l))return C}if(_[b]!==void 0)return typeof b=="string"&&Re(),_[b];let x=typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&nb()!=null;if(b!=="root"&&_.root&&_.root!==l){let C=_.root[b];return x&&!Object.prototype.hasOwnProperty.call(o,b)&&(o[b]=En(void 0),o[b].get()),C}if(x)return o[b]=En(void 0),o[b].get();typeof b=="string"&&b.charCodeAt(0)===95&&b.charCodeAt(1)===95&&Re()},set(_,b,x){if(b==="__proto__")return!1;if(b==="__element"||b==="parent"||b==="root"||typeof b=="string"&&b.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,b))return _[b]=x,!0;Tc.has(b)&&!a(b)&&fb(b,r);let C=ab(r,b);if(Object.prototype.hasOwnProperty.call(o,b))if(x&&typeof x=="object"&&!cb(x)){if(x===_[b])return!0;let P=o[b].peek(),R=P&&P[an]?P.$parse():P;if(Md(x,R,0))return!0;_[b]=x,Ac(C),o[b].set(Dd(x,e,n+1,C))}else{if(Array.isArray(x)&&x!==_[b]&&Array.isArray(o[b].peek())&&Md(x,o[b].peek(),0))return!0;o[b].peek()!==x&&Ac(C),_[b]=x,o[b].set(x)}else _[b]=x,x&&typeof x=="object"&&!cb(x)?o[b]=En(Dd(x,e,n+1,C)):o[b]=En(x);return!0},has(_,b){return Re(),typeof b=="string"&&b.charCodeAt(0)===36&&Tc.has(b.slice(1))?!0:b in _},ownKeys(_){return Re(),Object.keys(o).filter(i)},getOwnPropertyDescriptor(_,b){return Re(),i(b)?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(_,b)},deleteProperty(_,b){if(Object.prototype.hasOwnProperty.call(o,b)){let x=o[b];x.peek()!==void 0&&Ac(ab(r,b)),x.set(void 0),x._subscribers.size===0&&delete o[b]}return delete _[b],!0}});function f(_,b){let x=s.__element;return!x||typeof x.onBeforeStateUpdate!="function"||b?.preventBeforeStateUpdateListener?!0:x.onBeforeStateUpdate(x,l,x.context,{changes:_,options:b})!==!1}function u(_,b){if(_&&typeof _=="object"&&!f(_,b))return l;Cc(()=>{for(let C in _)C!=="__proto__"&&(l[C]=_[C])});let x=s.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,l,x.context),l}function d(_){return u(_,{quiet:!0})}function p(){return ob().then(()=>l)}function g(_){if(Re(),_||(_=new Set),_.has(l))return"[Circular]";_.add(l);let b={};for(let x in o){if(x==="parent"||x==="root"||x.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,x))continue;let C=o[x].peek();C&&C[an]?b[x]=C.$parse(_):b[x]=C}return b}function h(){return Cc(()=>{for(let _ in o)delete l[_]}),l}function m(){return Re(),Object.keys(o).filter(i)}function y(){return Re(),Object.keys(o).filter(i).map(_=>o[_].peek())}function k(_,b){return _&&typeof _=="object"&&!f(_,b)||Cc(()=>{for(let x in o)x in _||delete l[x];for(let x in _)x!=="__proto__"&&(l[x]=_[x])}),l}function v(_,b){let x=Object.prototype.hasOwnProperty.call(o,_)?o[_].peek():s[_];if(Array.isArray(x))return l[_]=[...x,b],l;if(x&&typeof x=="object"&&!Array.isArray(x)){if(Id(b))x[an]?x.$update(b):l[_]={...x,...b};else{let C=String(Object.keys(x).length);x[an]?x.$update({[C]:b}):l[_]={...x,[C]:b}}return l}return l[_]=b,l}function S(_){return delete l[_],l}function w(){h(),s.__element=null,s.parent=null}return l}function oB(t){return t&&t[an]===!0}function sB(t){return t[Ld]}function iB(t,e){let n={},r={};if(t&&typeof t=="object")for(let a in t)r[a]=t[a],n[a]=En(t[a]);let o=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[Ld];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[an]?c[Pd]:null}return null},s=()=>{let a=e;for(;a&&a[an];)a=a[Pd];return a&&typeof a=="object"?a:null};return new Proxy(r,{get(a,c){return c===an?!0:c===Ld?n:c===Pd?e:c==="__raw"?a:Object.prototype.hasOwnProperty.call(n,c)?n[c].get():e&&c!=="then"&&c!=="constructor"?e[c]:a[c]},set(a,c,l){let f=o(c);if(f)return f===n&&(a[c]=l),f[c].set(l),!0;let u=s();return u&&Object.prototype.hasOwnProperty.call(u,c)?(u[c]=l,!0):(a[c]=l,n[c]=En(l),!0)},has(a,c){if(Re(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[an]?l[Pd]:null}return!1},ownKeys(){return Re(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return Re(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var an,Ld,ub,Tc,lb,ab,cb,rB,Id,Pd,yC=L(()=>{ib();an=Symbol("store"),Ld=Symbol("signals"),ub=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],Tc=new Set(ub),lb=new Set,ab=(t,e)=>t?t+"."+e:String(e);cb=t=>!t||typeof t!="object"||Array.isArray(t)||t[an]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Id(t),rB=12,Id=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};Pd=Symbol("scope.parent")});var Po,$d=L(()=>{Po="3.14.789"});var hi,gi,pb,hb=L(()=>{$d();hi="__SMBLS_SIGNAL_INSTANCES__",gi=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[hi]||(r[hi]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||Po),n||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},pb=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[hi]}});var mi,bC,gb,_C=L(()=>{$d();hb();mi="__SMBLS_SIGNAL_ENGINE__",bC=(t,e,n)=>{let r=e||Po,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[mi];return s&&s.engine&&s.version===r?(gi(r,o,!0),s.engine):(s||(o[mi]={version:r,engine:t}),gi(r,o,!1),t)},gb=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[mi]}});var $t,cn,wC,W,Nd,Pe,Oc,yi,Fd,jd,Yn,Bd,kt,SC,xC,kC,Ud,vC,EC,AC=L(()=>{ib();yC();_C();$d();hb();$t=bC({...sb,...db,VERSION:Po},Po),cn=$t.createSignal,wC=$t.createComputed,W=$t.createEffect,Nd=$t.batch,Pe=$t.getObserver,Oc=$t.setObserver,yi=$t.untrack||(t=>{let e=$t.getObserver();if(!e)return t();$t.setObserver(null);try{return t()}finally{$t.setObserver(e)}}),Fd=$t.settled||(()=>Promise.resolve()),jd=$t.countUntrackedReads||(t=>(t(),0)),Yn=$t.createStore,Bd=$t.createScopeStore,kt=$t.isStore,SC=$t.getSignals,xC=$t.STORE_METHOD_NAMES,kC=$t.RESERVED_STORE_METHODS,Ud=$t.warnStateKeyShadowsMethod,vC=$t.__resetStateShadowWarnings,EC=$t.VERSION});var Rc={};$(Rc,{RESERVED_STORE_METHODS:()=>kC,SIGNAL_ENGINE_KEY:()=>mi,SIGNAL_INSTANCES_KEY:()=>hi,STORE_METHOD_NAMES:()=>xC,VERSION:()=>EC,__resetSignalEngine:()=>gb,__resetSignalInstances:()=>pb,__resetStateShadowWarnings:()=>vC,batch:()=>Nd,countUntrackedReads:()=>jd,createComputed:()=>wC,createEffect:()=>W,createScopeStore:()=>Bd,createSignal:()=>cn,createStore:()=>Yn,getObserver:()=>Pe,getSignals:()=>SC,isStore:()=>kt,registerSignalInstance:()=>gi,setObserver:()=>Oc,settled:()=>Fd,untrack:()=>yi,warnStateKeyShadowsMethod:()=>Ud});var Lt=L(()=>{AC()});var yb,bb,T,St,Dc=L(()=>{"use strict";yb=globalThis,bb=globalThis,T=globalThis,St=T.document});var Zn,Lc,pe,Ic=L(()=>{"use strict";Dc();Zn=t=>(typeof Node=="object"?t instanceof T.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Lc=t=>(typeof HTMLElement=="object"?t instanceof T.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,pe=t=>t===null||typeof t!="object"?!1:typeof T<"u"&&(T.Node&&t instanceof T.Node||T.Window&&t instanceof T.Window||t===T||St!==void 0&&t===St)});var A,E,he,D,Vd,Hd,I,zd,H,jt,Wt,Mc,ge,_b,Kt=L(()=>{"use strict";Ic();A=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,E=t=>typeof t=="string",he=t=>typeof t=="number",D=t=>typeof t=="function",Vd=t=>t===!0||t===!1,Hd=t=>t===null,I=t=>Array.isArray(t),zd=t=>t instanceof Date,H=t=>t===null?!1:typeof t=="object",jt=t=>t!==void 0,Wt=t=>t===void 0,Mc={boolean:Vd,array:I,object:A,string:E,date:zd,number:he,null:Hd,function:D,objectLike:H,node:Zn,htmlElement:Lc,defined:jt},ge=t=>(...e)=>e.some(n=>Mc[n](t)),_b=t=>(...e)=>!e.some(n=>Mc[n](t))});var wb,Sb,xb,kb,wi,$c,vb,Eb,Nc,Ab,Cb,Tb,Ob,Rb,Pb,Db,Si,Fc,xi=L(()=>{"use strict";An();Kt();wb=(t,e)=>e.every(n=>t.includes(n)),Sb=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},xb=(t,e)=>{if(E(e)&&(e=parseInt(e)),he(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},kb=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},wi=(...t)=>[].concat(...t),$c=(t,e=[])=>t.reduce((n,r)=>ft(n,ut(r,{exclude:e}),e),{}),vb=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},Eb=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},Nc=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},Ab=(t,e)=>t.filter(n=>n!==e),Cb=(t,e)=>{let n=[];for(let r=0;r<t.length;r++)n.push(t[r]),r<t.length-1&&n.push(e);return n},Tb=(t,e,n)=>{let r=[...t],o=r.indexOf(e),s=r.indexOf(n);if(o!==-1&&s!==-1){let i=r.splice(o,1)[0],a=s<o?s:s+1;r.splice(a,0,i)}return r},Ob=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},Rb=(t,e)=>t.filter(n=>!e.includes(n)),Pb=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},Db=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},Si=t=>I(t)?[...new Set(t)]:t,Fc=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function qt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!fB(this,t))return t;let i=lB[r],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=jc(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=jc(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let v=jc(y,p);if(v!=null&&typeof v!="object")return String(v);for(let S in y){let w=y[S];if(w&&typeof w=="object"&&!Array.isArray(w)){let _=jc(w,p);if(_!=null&&typeof _!="object")return String(_)}}}let k=jc(h.translations,p);if(k!=null&&typeof k!="object")return String(k)}return""}})}var Lb,Bc,Ib,lB,jc,fB,Lo,Mb,uB,$b,Nb,Fb,dB,jb,Bb,Uc=L(()=>{"use strict";Lb=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Bc=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},Ib=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},lB={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},jc=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),fB=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let r=n.__ref&&n.__ref.__authoredTemplates;if(r&&r.has(e))return!0;n=n.parent}return!1};Lo=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Mb=(t,e)=>{let n=t.split(`
2
+ `),r=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,r=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){o=r,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){o=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:r,endLineNumber:o}},uB=/\\([0-7]{1,3})/g,$b=t=>t.replace(uB,(e,n)=>String.fromCharCode(parseInt(n,8))),Nb=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Fb=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),dB=/[^a-zA-Z0-9\s]/g,jb=t=>t.replace(dB,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Bb=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Mr,Vc,Ub,Io,$r,Nr,Vb,ki,Mo,Hc,Hb,$o=L(()=>{"use strict";Mr=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"]),Vc=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Ub=["ref","parent","__element","__depends","__ref","__children","root"],Io=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"]),Nr=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","whenConnected","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"]),Vb=t=>Nr.has(t),ki=new Set(["log","warn","error","verbose"]),Mo=t=>Nr.has(t)&&!ki.has(t),Hc=new Set(["node","context","extends","__element","__ref",...Nr,...Io,...$r]),Hb=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Wb,Kb,pB,qb,zb,hB,gB,mB,vi,Wd,zc,Gb=L(()=>{"use strict";Wb=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],Kb=(t,e)=>t.split("$R").join(e),pB=Wb.map(t=>[Kb(t,"this"),t]),qb=t=>Kb(Wb[Wb.length-1],t),zb="const __scope = ",hB=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,gB=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,mB=/^[A-Za-z_$][\w$]*$/,vi=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),Wd=(t,e)=>{if(t.length>=2&&vi(t[0],"el"))return t[0];if(t.length>=2&&vi(t[1],"el"))return t[1];if(t.length>=1&&vi(t[0],"el")||vi(t[0],"element")||vi(t[0],"node"))return t[0];if(typeof e=="function"){let n=e();if(n&&t.includes(n))return n}return t.find(n=>vi(n,"element"))||null},zc=t=>{if(typeof t!="string"||t.indexOf(zb)===-1||t.indexOf("this")===-1)return t;let e=gB.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(zb,n))return t;n+=zb.length;let r=hB.exec(t.slice(n,n+400));r&&(n+=r[0].length);let o=pB.find(([l])=>t.startsWith(l,n));if(!o)return t;let s=n+o[0].length;if(t[s]!==(r?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!mB.test(l)))return t;let c=Wd(a);return c?t.slice(0,n)+Kb(o[1],c)+t.slice(s):t}});function PB(){let t=No.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var CC,Fo,vt,Xb,Rt,ft,MC,Jb,ut,Kc,yB,bB,TC,qc,_B,wB,SB,oe,$C,xB,Kd,NC,Yb,No,kB,vB,EB,AB,CB,OC,TB,RC,OB,PC,qd,RB,DB,LB,IB,DC,Zb,De,jo,MB,$B,me,FC,jC,BC,UC,VC,HC,zC,Gc,Yc,Ei,Bo,LC,Wc,IC,Uo,Qb,t_,Gd,e_,n_,Xc,Vo,se,Yd,NB,r_,o_,Xd,s_,i_,a_,c_,l_,f_,u_,An=L(()=>{"use strict";Dc();Kt();xi();Uc();Ic();$o();Gb();CC="production",Fo=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,vt=(t,e,n,r)=>{if(D(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,r||e.context):void 0;if(t!=null&&e?.context?.plugins&&(I(t)||A(t)&&!pe(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 vt(i,e,n,r)}}return t},Xb=(t,e,n)=>{for(let r in e)t[r]=vt(e[r],n)},Rt=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Fo(o)||(r?n.has(o):n.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},ft=(t,e,n=Hc)=>MC(t,e,n,null),MC=(t,e,n,r)=>{if(t===e)return t;if(r){for(let s=0;s<r.length;s+=2)if(r[s]===t&&r[s+1]===e)return t}let o=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Fo(s)||s==="constructor"||s==="prototype"||(o?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(H(i)&&H(a)){let c=r||[];c.push(t,e),MC(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Jb=(t,e=[])=>{let n=e instanceof Set,r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Fo(o)||(n?e.has(o):e.includes(o))||(r[o]=t[o]));return r},ut=(t,e={})=>{let{exclude:n=[],cleanUndefined:r=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!H(t)||pe(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=I(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||Fo(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(r&&g===void 0)&&!(o&&g===null)){if(pe(g)){d[p]=g;continue}if(i&&p==="extends"&&I(g)){d[p]=$c(g,n);continue}if(D(g)){d[p]=g;continue}if(H(g))if(s.has(g))d[p]=s.get(g);else{let h=I(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},Kc=(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 n in t){let r=t[n];if(D(r))e[n]=r.toString();else if(A(r))e[n]={},Kc(r,e[n]);else if(I(r)){let o=e[n]=[];for(let s=0;s<r.length;s++){let i=r[s];A(i)?(o[s]={},Kc(i,o[s])):D(i)?o[s]=i.toString():o[s]=i}}else e[n]=r}return e},yB=/^[A-Za-z_$][A-Za-z0-9_$]*$/,bB=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,TC=t=>{let e=String(t);return Bc(e,[`
4
+ `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},qc=(t={},e=0)=>{if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let r=" ".repeat(e),o=`{
5
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=yB.test(s)?s:bB(s);if(o+=`${r} ${a}: `,i instanceof RegExp)o+=String(i);else if(I(i)){o+=`[
6
6
  `;for(let c of i)c instanceof RegExp?o+=`${r} ${String(c)},
7
- `:V(c)&&c!==null?o+=`${r} ${Rc(c,e+2)},
8
- `:E(c)?o+=`${r} ${jA(c)},
7
+ `:H(c)&&c!==null?o+=`${r} ${qc(c,e+2)},
8
+ `:E(c)?o+=`${r} ${TC(c)},
9
9
  `:o+=`${r} ${c},
10
- `;o+=`${r} ]`}else V(i)?o+=Rc(i,e+1):E(i)?o+=jA(i):o+=i;o+=`,
11
- `}return o+=`${r}}`,o},dj=[/^\(\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]*\}$/],pj=/^["[{]/,hj=/^(export|import)\s/,se=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||hj.test(e)||!dj.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!n||o===91||pj.test(e)&&!n)},KA=t=>(0,eval)(t),gj=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let r=n[0].length,o=[],s=r,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(`
10
+ `;o+=`${r} ]`}else H(i)?o+=qc(i,e+1):E(i)?o+=TC(i):o+=i;o+=`,
11
+ `}return o+=`${r}}`,o},_B=[/^\(\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]*\}$/],wB=/^["[{]/,SB=/^(export|import)\s/,oe=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||SB.test(e)||!_B.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!n||o===91||wB.test(e)&&!n)},$C=t=>(0,eval)(t),xB=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let r=n[0].length,o=[],s=r,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(`
12
12
  `,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 p=1;for(;s<c&&p>0;)t[s]==="{"?p++:t[s]==="}"&&p--,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,p=0,g=s;for(;g<c;){let h=t[g];if(h==='"'||h==="'"||h==="`"){let m=h;for(g++;g<c;){if(t[g]==="\\"){g+=2;continue}if(t[g]===m){g++;break}g++}continue}if(h==="("||h==="["||h==="{"){p++,g++;continue}if(h===")"||h==="]"||h==="}"){if(p===0)break;p--,g++;continue}if(p===0&&(h===";"||h===`
13
- `)){g++;break}g++}o.push([d,g]),s=g;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},Ed=(t,e,n,r)=>{let o=String(t).trimStart();if(/^(export|import)\s/.test(o))return t;t=Cc(t);try{return n.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=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=gj(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.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 `+(r?"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+`.
14
- First 200 chars of source: `+String(t).slice(0,200)),t)}},GA=1,_b=2,Ao=new WeakMap,mj=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,yj=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,bj=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,_j=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,wj=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"]),BA=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,Sj=(t,e,n)=>{let r=t.indexOf(e,n);for(;r!==-1;){let o=r+e.length;if((r===0||!BA(t.charCodeAt(r-1)))&&(o>=t.length||!BA(t.charCodeAt(o))))return!0;r=t.indexOf(e,o)}return!1},UA=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},xj=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let r=mj.exec(e);if(r){if(r[2]||UA(e)!==125)return null;let o=r[3]||"";return o&&Sj(e,o,r[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:o,kind:r[1]?_b:GA,async:!!r[1],fn:void 0}}return r=yj.exec(e)||bj.exec(e),r?{src:t,name:"",kind:_b,async:!!r[1],fn:void 0}:(r=_j.exec(e),r&&!wj.has(r[2])&&UA(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:r[2],kind:_b,async:!!r[1],fn:void 0}:null)},VA=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,Ad=t=>{let e=Ed(t.src,VA(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${VA(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
- First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},kj=(t,e,n)=>Reflect.construct(t,e,n);Ej={length:{get(){let t=Ao.get(this);if(!t)return 0;let e=t.fn===void 0?Ad(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=Ao.get(this);return t?t.name:""},configurable:!0},toString:{value:vj,writable:!0,configurable:!0}},Aj=Object.getPrototypeOf(async function(){}),Cj=t=>{let e;return t.kind===GA?e=function(){let n=t.fn===void 0?Ad(t):t.fn;return n===null?t.value:new.target?kj(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?Ad(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,Ao.set(e,t),Object.defineProperties(e,Ej),t.async&&Object.setPrototypeOf(e,Aj),e},HA=(t,e,n,r)=>{let o=xj(t);return o?(o.key=e,o.index=n,o.opts=r,Cj(o)):Ed(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,r)},xb=t=>typeof t=="function"&&Ao.has(t),Oe=t=>{let e=Ao.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},To=t=>{let e=typeof t=="function"?Ao.get(t):void 0;return e?(e.fn===void 0?Ad(e):e.fn)===null:!1},Tj=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),Oj={window:{eval:KA}},ge=(t,e={},n=Oj)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:KA}});let r=n.lazy===!0,o=n.lazy==="context",s=(a,c,l)=>r||o&&(a===t?Tj.has(c):l),i=[[t,e,r]];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(E(u))se(u)?c[f]=l?HA(u,f,-1,n):Ed(u,`"${f}"`,n):c[f]=u;else if(I(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(E(h))d.push(se(h)?p?HA(h,f,g,n):Ed(h,`array index ${g} (prop "${f}")`,n):h);else if(A(h)){let m=WA(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(A(u)){let d=WA(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!I(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return li(e)},YA="Set",XA="Map",ZA="RegExp",JA="WeakMap",QA="WeakSet",tC="String",eC=t=>{if(!t||typeof t!="object"||t.__type!==tC||!E(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},Pc=eC,Dc=Symbol.for("smbls.revived"),li=t=>{if(t&&typeof t=="object")try{t[Dc]=!0}catch{}return t},Oo=t=>!!(t&&typeof t=="object"&&t[Dc]===!0),zA=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},Tc=(t,e)=>{if(!t||typeof t!="object")return t;if(eC(t))return t.value;let n=s=>Tc(s,e||(e=new WeakMap));if(t.__type===YA&&I(t.values))return new Set(t.values.map(n));if(t.__type===XA&&I(t.entries))return new Map(t.entries.map(s=>I(s)?[n(s[0]),n(s[1])]:s));if(t.__type===JA&&zA(t))return new WeakMap;if(t.__type===QA&&zA(t))return new WeakSet;if(t.__type===ZA&&E(t.source))try{return new RegExp(t.source,E(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let r=!1;if(I(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=Tc(t[i],e),s[i]!==t[i]&&(r=!0);return r||e.set(t,t),r?s:t}let o={};e.set(t,o);for(let s of Object.keys(t))o[s]=Tc(t[s],e),o[s]!==t[s]&&(r=!0);return r||e.set(t,t),r?o:t},WA=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==ZA&&e!==YA&&e!==XA&&e!==JA&&e!==QA&&e!==tC)return null;let n=Tc(t);return n===t?null:n},Ro=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){let a=t[i];E(a)&&se(a)?n.push([i,a]):e[i]=Tc(a)}if(n.length===0)return e;let r=i=>/^[A-Za-z_$][\w$]*$/.test(i),o=n.filter(([i])=>r(i)),s=Object.keys(e).filter(r).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
13
+ `)){g++;break}g++}o.push([d,g]),s=g;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},Kd=(t,e,n,r)=>{let o=String(t).trimStart();if(/^(export|import)\s/.test(o))return t;t=zc(t);try{return n.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=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=xB(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.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 `+(r?"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+`.
14
+ First 200 chars of source: `+String(t).slice(0,200)),t)}},NC=1,Yb=2,No=new WeakMap,kB=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,vB=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,EB=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,AB=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,CB=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"]),OC=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,TB=(t,e,n)=>{let r=t.indexOf(e,n);for(;r!==-1;){let o=r+e.length;if((r===0||!OC(t.charCodeAt(r-1)))&&(o>=t.length||!OC(t.charCodeAt(o))))return!0;r=t.indexOf(e,o)}return!1},RC=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},OB=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let r=kB.exec(e);if(r){if(r[2]||RC(e)!==125)return null;let o=r[3]||"";return o&&TB(e,o,r[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:o,kind:r[1]?Yb:NC,async:!!r[1],fn:void 0}}return r=vB.exec(e)||EB.exec(e),r?{src:t,name:"",kind:Yb,async:!!r[1],fn:void 0}:(r=AB.exec(e),r&&!CB.has(r[2])&&RC(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:r[2],kind:Yb,async:!!r[1],fn:void 0}:null)},PC=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,qd=t=>{let e=Kd(t.src,PC(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${PC(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
+ First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},RB=(t,e,n)=>Reflect.construct(t,e,n);DB={length:{get(){let t=No.get(this);if(!t)return 0;let e=t.fn===void 0?qd(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=No.get(this);return t?t.name:""},configurable:!0},toString:{value:PB,writable:!0,configurable:!0}},LB=Object.getPrototypeOf(async function(){}),IB=t=>{let e;return t.kind===NC?e=function(){let n=t.fn===void 0?qd(t):t.fn;return n===null?t.value:new.target?RB(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?qd(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,No.set(e,t),Object.defineProperties(e,DB),t.async&&Object.setPrototypeOf(e,LB),e},DC=(t,e,n,r)=>{let o=OB(t);return o?(o.key=e,o.index=n,o.opts=r,IB(o)):Kd(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,r)},Zb=t=>typeof t=="function"&&No.has(t),De=t=>{let e=No.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},jo=t=>{let e=typeof t=="function"?No.get(t):void 0;return e?(e.fn===void 0?qd(e):e.fn)===null:!1},MB=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),$B={window:{eval:$C}},me=(t,e={},n=$B)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:$C}});let r=n.lazy===!0,o=n.lazy==="context",s=(a,c,l)=>r||o&&(a===t?MB.has(c):l),i=[[t,e,r]];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(E(u))oe(u)?c[f]=l?DC(u,f,-1,n):Kd(u,`"${f}"`,n):c[f]=u;else if(I(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(E(h))d.push(oe(h)?p?DC(h,f,g,n):Kd(h,`array index ${g} (prop "${f}")`,n):h);else if(A(h)){let m=IC(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(A(u)){let d=IC(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!I(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return Ei(e)},FC="Set",jC="Map",BC="RegExp",UC="WeakMap",VC="WeakSet",HC="String",zC=t=>{if(!t||typeof t!="object"||t.__type!==HC||!E(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},Gc=zC,Yc=Symbol.for("smbls.revived"),Ei=t=>{if(t&&typeof t=="object")try{t[Yc]=!0}catch{}return t},Bo=t=>!!(t&&typeof t=="object"&&t[Yc]===!0),LC=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},Wc=(t,e)=>{if(!t||typeof t!="object")return t;if(zC(t))return t.value;let n=s=>Wc(s,e||(e=new WeakMap));if(t.__type===FC&&I(t.values))return new Set(t.values.map(n));if(t.__type===jC&&I(t.entries))return new Map(t.entries.map(s=>I(s)?[n(s[0]),n(s[1])]:s));if(t.__type===UC&&LC(t))return new WeakMap;if(t.__type===VC&&LC(t))return new WeakSet;if(t.__type===BC&&E(t.source))try{return new RegExp(t.source,E(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let r=!1;if(I(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=Wc(t[i],e),s[i]!==t[i]&&(r=!0);return r||e.set(t,t),r?s:t}let o={};e.set(t,o);for(let s of Object.keys(t))o[s]=Wc(t[s],e),o[s]!==t[s]&&(r=!0);return r||e.set(t,t),r?o:t},IC=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==BC&&e!==FC&&e!==jC&&e!==UC&&e!==VC&&e!==HC)return null;let n=Wc(t);return n===t?null:n},Uo=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){let a=t[i];E(a)&&oe(a)?n.push([i,a]):e[i]=Wc(a)}if(n.length===0)return e;let r=i=>/^[A-Za-z_$][\w$]*$/.test(i),o=n.filter(([i])=>r(i)),s=Object.keys(e).filter(r).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
16
16
  `);try{let i=o.map(([l,f])=>`var ${l} = (${f});`).join(`
17
17
  `),a="{ "+o.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(", ")+" }",c=T.eval(`(function(__gs__) { ${s}
18
18
  ${i}
19
19
  return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of o)try{let l=Object.keys(e).filter(r).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`
20
20
  `);e[a]=T.eval(`(function(__gs__) { ${l}
21
- return (${c}); })`)(e)}catch{try{e[a]=T.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=T.eval(`(${a})`)}catch{e[i]=a}return e},kb=(t,e={verbose:!0})=>{try{return t?T.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},vb=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Cd=t=>{for(let e in t)return!1;return!0},Eb=t=>A(t)&&Cd(t),Ab=()=>Object.create(null),Lc=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&Co(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Po=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Co(o)||o==="constructor"||o==="prototype"||(r?n.has(o):n.includes(o))||(t[o]=e[o]);return t},ie=(t,e,n={},r=new WeakMap)=>{if(!V(t)||!V(e)||de(t)||de(e))return e;if(r.has(t))return r.get(t);r.set(t,t);let o=n.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Co(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];de(l)?t[a]=l:V(c)&&V(l)?t[a]=ie(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Td=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++){let i=r[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Td(t[i],e[i],n))return!1}return!0},Rj=new Set(["node","__ref"]),Cb=(t,e,n=Rj)=>{if(t===e)return!0;if(!V(t)||!V(e)||de(t)||de(e))return t===e;let r=n instanceof Set?n:new Set(n),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)||r.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(de(l)||de(f)){if(l!==f)return!1}else if(V(l)&&V(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Tb=(t,e)=>{if(e==null)return t;if(he(e)("string","number"))delete t[e];else if(I(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Od=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Od(t[n]));return e},Ob=(t,e)=>{if(t.length===0)return e;let n={},r=n;for(let o=0;o<t.length;o++)o===t.length-1&&e?r[t[o]]=e:(r[t[o]]={},r=r[t[o]]);return n},Rb=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++){if(n[e[o]]===void 0)return;n=n[e[o]]}let r=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,r)&&delete n[r]},Pb=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++)(!r[e[o]]||typeof r[e[o]]!="object")&&(r[e[o]]={}),r=r[e[o]];return r[e[e.length-1]]=n,t},Db=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length;r++){if(n==null)return;n=n[e[r]]}return n},Lb=t=>{let n=[],r=0;for(let o=0;o<t.length;o++)if(n.length<2)n.push(t[o]);else if(t[o]===n[o%2]?r++:(n=[t[o-1],t[o]],r=1),r>=20)return(FA==="test"||FA==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},Ib=t=>{let e=new WeakSet;function n(r){if(r&&typeof r=="object"){if(e.has(r))return!0;e.add(r);for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n(r[o]))return console.log(r,"cycle at "+o),!0}return!1}return n(t)},Mb=(t,e)=>{let n=e instanceof Set?e:new Set(e),r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!n.has(o)&&(r[o]=t[o]);return r}});var Ic,Mc,$c,Rd=L(()=>{"use strict";Sn();Ic=(function(){let t=0;function e(){return t++,t}return e})(),Mc=Ic,$c=(t,e,n)=>(St(n,t)||n||t.key||Ic()).toString()});var rn,$b,Rr,Pd,Nb,Fb,jb,Pr,Bb,Kn,tt,Dd=L(()=>{"use strict";rn="production",$b=rn,Rr=(t=rn)=>t==="production",Pd=(t=rn)=>t==="testing"||t==="test",Nb=Pd,Fb=(t=rn)=>t==="staging",jb=(t=rn)=>t==="local",Pr=(t=rn)=>t==="development"||t==="dev"||t==="local",Bb=(t,e=rn)=>e[t],Kn=(t=rn)=>!Rr(t),tt=t=>{let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1}});function Nc(t,e,n){let r;return function(){let o=this,s=arguments,i=function(){r=null,n||t.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(i,e),a&&t.apply(o,s)}}function Hb(t,e=window){let n=function(){return t.apply(e,arguments)};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var Ub,Vb,Pj,fi,ui,di,Dr,pi=L(()=>{"use strict";Ub=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},Vb=t=>{let e={};return(...n)=>{let r=n[0];if(r in e)return e[r];{let o=t(r);return e[r]=o,o}}},Pj=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,fi=t=>Pj.test(t),ui=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},di=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let r of n)if(r.resolveHandler){let o=r.resolveHandler(t,e);if(typeof o=="function")return o}return t},Dr=(t,e,...n)=>{let r=e?.context?.plugins;if(!r)return!1;let o=!1;for(let s of r)typeof s[t]=="function"&&(s[t](e,...n),o=!0);return o}});var zb,nC=L(()=>{"use strict";qt();Sn();zb=(t,e)=>{let{__ref:n}=t,r=t.if;if(P(r)){let o;try{o=r(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}o?n.__if=!0:delete n.__if}else r!=null&&typeof r=="object"?St(r,t)?n.__if=!0:delete n.__if:n.__if=!0}});var Wb,qb,rC=L(()=>{"use strict";Wb=(t,...e)=>{t&&e.map(n=>console.log(n))},qb=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function Zb(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 Jb(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var Kb,Gb,Yb,Xb,oC=L(()=>{"use strict";qt();gc();Kb=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Gb=(t,e,n=365)=>{if(Wt(yt)||Wt(yt.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;yt.cookie=`${t}=${e};${o};path=/`},Yb=t=>{if(Wt(yt)||Wt(yt.cookie))return;let e=`${t}=`,r=decodeURIComponent(yt.cookie).split(";");for(let o=0;o<r.length;o++){let s=r[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},Xb=t=>{Wt(yt)||Wt(yt.cookie)||(yt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var hi,sC,Qb,t_=L(()=>{"use strict";hi={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"])},sC=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"]),Qb=t=>hi.body.has(t)});var e_,iC,gi,je,mi,Bc,xn,n_,Ld,Uc,r_,Vc,Id,Md,Hc,$d,yi,Dj,kn,aC,Fc,zc,o_,jc,s_,i_,Nd,Fd,jd,Bd,Ud,Vd,cC,Hd=L(()=>{"use strict";ii();a_();Sn();qt();e_="production",iC=t=>t.sourcemap!==!1&&e_!=="production",gi=t=>{if(!t)return[];let e=[],n=t.extends;n&&(I(n)?e.push(...n):e.push(n));let r=t.extend;return r&&(I(r)?e.push(...r):e.push(r)),e},je=t=>{if(!I(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let r=t[n];e.push(I(r)?je(r):r)}return e},mi=t=>{if(t.includes("+"))return t.split("+").filter(vn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!vn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Bc=(t,e,n)=>{let r=[],o=mi(n);o&&(r=[...o]);let s=je(gi(t));return s.length&&(r=[...r,...s]),r},xn=(t,e)=>{let{__ref:n}=e,{__extends:r}=n;if(!t)return r;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 r.includes(t)||(r=Array.isArray(t)?[...r,...t]:[...r,t],n.__extends=r),r},n_=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:oi(o,r)}},Ld=()=>Math.random().toString(36).substring(2),Uc={},r_={},Vc=t=>Uc[t.__hash],Id=(t,e)=>{let n=Ld();return E(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(Uc[n]=e),e},Md=(t,e)=>t.__hash?e.concat(Vc(t)):Id(t,e),Hc=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?Hc(i,e,n,r,o,s):yi(i,e,n,r,o,void 0,s);return e},$d=(t,e,n,r=new Set,o,s,i)=>{let a=gi(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&&yi(je(a),e,n,r,o,s,i),e},yi=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return Hc(t,e,n,r,o,i);let a=s;return E(t)?(a=t,t=zc(t,n)):i&&A(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?$d(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},Dj=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),kn=(t,e,n,r,o)=>{e=pt(e);for(let s in e){if(Dj.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,n&&r?A(a)&&!I(a)?(n[s]=n[s]||{},aC(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(A(i)&&A(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];vn(s)?t[s]=kn(i,a,c,r,l):kn(i,a,c,r,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(I(i)&&I(a))t[s]=i.concat(a);else if(I(i)&&A(a)){let c=kn({},i);t[s]=kn(c,a)}}}}return t},aC=(t,e,n,r)=>{if(r||(r=new WeakSet),!r.has(e)){r.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];A(s)&&!I(s)?(t[o]=t[o]||{},aC(t[o],s,n,r)):t[o]=n}}},Fc=(t,e,n)=>t.reduce((r,o,s)=>{let i=pt(o),a=n?n[s]:void 0;return kn(r,i,e,a)},{}),zc=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(E(t)){let i=o&&(o[t+"."+r]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(e_==="test"||e_==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},o_=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),jc=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return Vc(t)||[];let s=yi(t,[],e,new Set,n,void 0,r);return n?s:Md(t,s)},s_=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return oi(n,e)},i_=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(vn(o)&&e.push(o),o==="extends"&&(typeof r[o]=="string"?e.push(r[o]):Array.isArray(r[o])&&(e=e.concat(r[o]))),typeof r[o]=="object"&&r[o]!==null&&n(r[o]))}return n(t),e},Nd=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=gi(t);if(i.length){let a=je(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?xn([f,...l],t):xn(a,t)}return Fd(t,e,n),jd(t,e,n),Bd(t,e,n),t.component&&xn(je(St(t.component,t)),t),o.defaultExtends&&xn(je(o.defaultExtends),t),si(r.__extends)},Fd=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&xn(je(e.childProps.extends),t),r.__extends},jd=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&xn(je(s),t),r.__extends},Bd=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&xn(je(o),t),r.__extends},Ud=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=iC(n),a=i?[...r.__extends]:null,c=si(r.__extends.map((l,f)=>zc(l,o,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&A(p)&&E(g)&&l.set(p,g)}let f=[],u=jc(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=jc(c,o);r.__extendsStack=l}return r.__extendsStack},Vd=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(iC(n)){let s={},i=r.__extendsNames||[],a=Fc(o,s,i),c={};kn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=Fc(o);kn(t,s)}return t},cC=(t,e,n={})=>(Nd(t,e,n),Ud(t,e,n),Vd(t,e,n),t)});function c_(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function l_(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function f_(t,e,n){let{context:r}=e||{},[o]=mi(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var vn,a_=L(()=>{"use strict";Hd();qt();vn=t=>{if(!E(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function lC(t,e){let{props:n,on:r}=e,o=xo(t.split("on")[1]),s=r[o],i=n[t];P(s)?r[o]=(...a)=>{if(s(...a)!==!1&&P(i))return i(...a)}:r[o]=i}var fC=L(()=>{"use strict";vc();qt()});function zd(t,e={}){let n=e.cachedKeys||[];for(let r in t){let o=t[r];if(r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r[2]===r[2].toUpperCase()&&(P(o)||o!=null&&ui(this.context))){let g=xo(r.slice(2));t.on&&(t.on[g]=o),delete t[r];continue}if(r==="childProps"){t.props[r]=o,delete t[r],n.push(r);continue}let a=this.define?.[r],c=this.context?.define?.[r],l=A(a)||P(a),f=A(c)||P(c);if(l||f)continue;let u=r.charAt(0);if(dC.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=u_.test(r)||uC.test(r)||Ij(o),p=Cr.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function Wd(t=this,e){let n=e.cachedKeys||[];for(let r in t.props){let o=t.props[r],s=r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110,i=P(o)||o!=null&&ui(this.context);if(s&&i){lC(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if(dC.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=A(c)||P(c),u=A(l)||P(l),d=u_.test(r)||uC.test(r),p=Cr.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function qd(t=this){let e=[];return zd.call(this,t,{cachedKeys:e}),Wd.call(this,t,{cachedKeys:e}),t}function d_(t={}){return t.on||(t.on={}),t.props||(t.props={}),qd.call(this,t)}function h_(t,e){this.__element.update({props:t},e)}function Yc(t){let e={update:h_.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var u_,uC,dC,Lj,Ij,Kc,Wc,p_,Gc,Xc,Zc,Kd,qc,g_,m_,y_=L(()=>{"use strict";Eo();fC();Sn();qt();vc();pi();u_=/^[A-Z]/,uC=/^\d+$/,dC=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Lj=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Ij=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(Lj.has(e)||u_.test(e))return!0;return!1},Kc=(t,e,n)=>{let{props:r,__ref:o}=t;if(o.__propsStack=[],r)o.__initialProps=r;else return{};return V(r)?{...r}:(o.__propsStack.push(r),{})};Wc=t=>he(t)("string","number")?{inheritedString:t}:t,p_=(t,e)=>!t||!e.length?!1:e.includes(t),Gc=(t,e)=>{let{__ref:n}=t,r=n.__propsStack||[],o=e.props;if(!o)return r;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Wc(i);r.unshift(c)}if(s){let c=Wc(s);r.unshift(c)}return r};Xc=t=>{let e=new Set;return t.filter(n=>!n||Tr.has(n)||e.has(n)?!1:(e.add(n),!0))},Zc=(t,e,n)=>(e.props=t.reduce((r,o)=>{if(Tr.has(o))return r;for(;P(o);)o=St(o,e);return dt(r,pt(o,{exclude:Tr}))},{}),Yc(e),e.props),Kd=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...Gc(t,e)]),A(n)?o.push(n):n==="inherit"&&e?.props?o.push(e.props):n&&o.push(n),I(r.__extendsStack))for(let s=0;s<r.__extendsStack.length;s++){let i=r.__extendsStack[s];i.props&&i.props!==n&&o.push(i.props)}return r.__propsStack=Xc(o),r.__propsStack},qc=(t,e)=>{let{__ref:n}=t,r=Kd(t,e);r.length?Zc(r,t):(n.__propsStack=[],t.props={})},g_=function(t,e,n){let{__ref:r}=t;if(r.__if)qc(t,e);else try{qc(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return Yc(t),t},m_=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=Gc(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=Xc(s),r.__propsStack.length&&Zc(r.__propsStack,e),e}});var pC,Gd,Yd,Xd,Zd,b_,Jd,Qd,tp,__,hC=L(()=>{"use strict";Hd();Rd();yc();y_();t_();qt();pC="production",Gd=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=hi.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},Yd=(t,e,n)=>{if(t===void 0)return(pC==="test"||pC==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:he(t)("string","number")?Gd(t,e,n):P(t)?{props:t}:t},Xd=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},Zd=(t,e,n,r,o)=>{if(!e)return o;if(qn(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},b_=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},Jd=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},Qd=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),tp=(t,e,n)=>{let r=Xd(t,e);return t.__ref=r,r.__defineCache||(r.__defineCache={}),r.__exec||(r.__exec={}),r.__execProps||(r.__execProps={}),r.__class||(r.__class={}),r.__classNames||(r.__classNames={}),r.__attr||(r.__attr={}),r.__changes||(r.__changes=[]),r.__children||(r.__children=[]),r.__extends=Bc(t,e,n),r.path=Jd(t,e,n),r},__=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:Yd(t,e,n);if(!i)return;let a=Zd(i,e,n,r,o),c=$c(i,a,n);tp(i,a,c);let l=Kc(i,a,c),f=Qd(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var w_,ep,np,rp,op,S_,sp,x_,k_,v_,E_,gC,Lr,Do,mC,yC,bC,Jc,En,_C=L(()=>{"use strict";ii();Eo();Sn();qt();w_=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return he(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},ep=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},np=(t,e)=>{if(!t.includes("../"))return;let r=t.split("../").length-1;for(let o=0;o<r;o++){if(!e.parent)return null;e=e.parent}return e},rp=(t,e,n={})=>{let r=E(t)?t.split("/"):[t],o=r.length-1;for(let s=0;s<o;s++){let i=r[s],a=r[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 n.returnParent?e:e[t]},op=(t,e,n={})=>{let o=t.__ref.__state;if(!sp(t))return;let s=ep(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=np(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return rp(o,i,n)},S_=(t,e)=>{let n=t.__ref,r=op(t,e);if(r===void 0)return t.state;if(he(r)("object","array"))return pt(r);if(he(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},sp=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&he(n)("number","string","boolean"))},x_=function(t){return V(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},k_=(t,e)=>{if(!t)return e||{};let n=t.split("/"),r={},o=r,s=n.length-1;for(let i=0;i<=s;i++)o[n[i]]=i===s?e||{}:{},o=o[n[i]];return r},v_=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=pt(r,ko),s={[t.key]:o},i=A(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?Sc(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},E_=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){dt(t,e,ko);return}(o?Po:ie)(t,e,ko)},gC="__polyglotSeededKeys",Lr=t=>{if(!A(t))return new Set;let e=t[gC];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,gC,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Do=(t,e,n)=>Lr(t).has(e)?!0:!A(n)||n[e]===void 0,mC="__polyglotSeededValues",yC=t=>{if(!A(t))return new Map;let e=t[mC];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,mC,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},bC=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},Jc=(t,e,n)=>{if(!Lr(t).has(e))return!1;let r=yC(t);if(!r.has(e))return!0;let o=A(n)||Array.isArray(n)?n[e]:void 0,s=bC(o);return s!==null&&s===r.get(e)},En=(t,e,...n)=>(Lr(t).add(e),n.length&&yC(t).set(e,bC(n[0])),e)});var Mj,A_,wC=L(()=>{"use strict";Mj=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},A_=(t,e)=>{let{__ref:n}=t,r=t.context||e.context||n.root?.context;r&&!r.globalScope&&(r.globalScope={});let o=e.scope||n.root?.scope,s=r?.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&&!Mj(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var SC,ip,Gn,ap,C_,T_=L(()=>{"use strict";qt();pi();SC=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},ip=(t,e,n,r,o)=>{if(t=di(t,e),!!P(t))try{let s=t.call(e,e,n||e.state,r||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}},Gn=(t,e,n)=>{if(!e)throw new Error("Element is required");Dr(t,e,n);let r=SC(t,e);if(r){let{state:o,context:s}=e;return ip(r,e,o,s,n)}},ap=(t,e,n,r,o,s)=>{if(t=di(t,n),!!P(t))try{let i=t.call(n,e,n,r||n.state,o||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},C_=(t,e,n,r)=>{Dr(t,n,e,r);let o=SC(t,n);if(o){let{state:s,context:i}=n;return ap(o,e,n,s,i,r)}}});var O_,Qc,R_=L(()=>{"use strict";O_={},Qc={}});var cp,P_,bi,xC,lp,D_,kC,vC,L_,EC,AC,I_,CC,$j,TC,fp=L(()=>{"use strict";M();cp="@symbo.ls/fetch:EARLY",P_=3e4,bi=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},xC=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let r=t[n];if(!(r===void 0||typeof r=="string"||typeof r=="boolean")&&!(typeof r=="number"&&isFinite(r)))return!1}return!0},lp=()=>Symbol.for(cp),D_=(t,e)=>{let n=[];for(let r in t||{}){let o=r.toLowerCase(),s={name:r,header:o,param:t[r],found:!1,value:void 0};for(let i in e||{})i.toLowerCase()===o&&(s.found=!0,s.value=e[i]);n.push(s)}return n},kC=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},vC=(t,e)=>{let n=lp();if($j(),!t||typeof t!="object"){let s=globalThis[n];return s&&s.seeded?{carried:{},rpc:!1,maxAge:P_,seeded:!0}:null}globalThis[n]||(globalThis[n]={entries:{}});let r={};for(let{header:s,found:i,value:a}of D_(t.query,e))i&&(r[s]=a);let o=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:P_;return{carried:r,rpc:t.rpc==="get",maxAge:o,seeded:!!globalThis[n].seeded}},L_=(t,e=P_)=>{let n=globalThis[lp()],r=n&&n.entries&&n.entries[t];return!r||(delete n.entries[t],!(Date.now()-r.time<=e))?null:r.seeded?Promise.resolve(r.seeded):Promise.resolve(r.answer).then(o=>o&&o.ok&&!o.bodyUsed?o:null,()=>null)},EC=()=>{let t=globalThis[lp()];t&&t.entries&&(t.entries={})},AC=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:bi(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),I_='script[type="application/json"][data-fetch-seed]',CC=t=>{let e=AC(t);return e.length?'<script type="application/json" data-fetch-seed>'+Lo(e)+"<\/script>":""},$j=()=>{let t=Io(globalThis.document,I_,{remove:!0}),e=t&&t.value;if(!Array.isArray(e)||!e.length)return;let n=lp(),r=globalThis[n]||(globalThis[n]={entries:{}});r.entries||(r.entries={}),r.seeded=!0;let o=Date.now();for(let s of e)!s||typeof s.k!="string"||typeof s.b!="string"||r.entries[s.k]||(r.entries[s.k]={time:o,seeded:{seeded:!0,status:s.s||200,type:s.t||"application/json",body:s.b}})},TC=t=>{let e=AC(t);if(!e.length)return"";let n=Lo(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(cp)+"),r=globalThis[k]||(globalThis[k]={entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'}});var OC,up,RC,PC,DC,LC,M_=L(()=>{"use strict";OC=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),up=()=>globalThis[OC]||(globalThis[OC]={count:0,waiters:[]}),RC=()=>{up().count++},PC=()=>{let t=up();if(t.count=t.count>0?t.count-1:0,t.count===0&&t.waiters.length){let e=t.waiters;t.waiters=[];for(let n of e)n()}},DC=()=>up().count,LC=()=>{let t=up();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})}});var j_={};F(j_,{buildUrl:()=>N_,headerEntries:()=>FC,restAdapter:()=>jC,selectQuery:()=>$C,setup:()=>Gj,withQuery:()=>F_});var N_,$C,NC,IC,Nj,Fj,jj,MC,Bj,on,Uj,Vj,Hj,FC,$_,zj,Wj,qj,Kj,F_,Gj,jC,BC=L(()=>{"use strict";fp();M_();N_=(t,e,n)=>{let r=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${r}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},$C=({params:t,select:e,limit:n,offset:r,order:o,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),r&&(i.offset=r),s&&(i.single=!0),o&&(typeof o=="string"?i.order=o:Array.isArray(o)?i.order=o.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):o.by&&(i.order=`${o.by}:${o.asc===!1?"desc":"asc"}`)),i},NC=t=>Object.prototype.toString.call(t).slice(8,-1),IC=["auto","json","text","blob","arrayBuffer","stream","response"],Nj={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},Fj=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},jj=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},MC=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,Bj=(t,e)=>{let n=t.body,r=e==="json"||e==="auto"&&/json/i.test(t.type);if(!r&&e!=="auto"&&e!=="text")return null;let o;try{o=r?n?JSON.parse(n):null:n}catch{return!1}return{data:o,error:null,status:t.status}},on=async(t,e,n,r)=>{let o=n??"auto";if(!IC.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${IC.join(", ")}`);RC();try{return await Uj(t,e,o,r)}finally{PC()}},Uj=async(t,e,n,r)=>{let o=r?await r:null;if(o&&o.seeded===!0){let i=Bj(o,n);if(i)return i;o=i===!1?null:new Response(o.body,{status:o.status,headers:{"content-type":o.type}})}let s=o||await globalThis.fetch(t,e);if(n==="auto"){let i=await Fj(s);return{data:i,error:s.ok?null:MC(i,s),status:s.status}}if(!s.ok){let i=await jj(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:MC(i,s),status:s.status}}return{data:await Nj[n](s),error:null,status:s.status}},Vj=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],Hj=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||Vj.includes(NC(t))),FC=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),$_=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of FC(r)){let i=o.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,o),e[o]=s}return e},zj={"Content-Type":"application/json"},Wj={"Content-Type":void 0},qj=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:r}of D_(t.query))e[n]=r;return{params:e,rpc:t.rpc==="get"}},Kj="content-type",F_=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let r=new URL(t);for(let o of n)r.searchParams.set(o,e[o]);return r.toString()},Gj=async({url:t,headers:e,auth:n,fetchOptions:r,early:o,reads:s})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return jC(t,e,n,r,o,s)},jC=(t,e={},n,r={},o,s)=>{let i=n?.token||null,a=vC(kC(o,s),e),c=qj(s),l=_=>{if(!c)return null;let S={},v={},x={};for(let w in _){let b=w.toLowerCase();if(b==="authorization")return null;if(b===Kj)continue;v[w]=_[w];let k=c.params[b];k?x[k]=_[w]:S[w]=_[w]}return{headers:S,adoptHeaders:v,query:x}},f=(_,S)=>{if(!a)return null;let v="";for(let x in S){let w=x.toLowerCase();if(w==="accept-language")v=String(S[x]);else if(a.carried[w]!==S[x])return null}try{return L_(bi(_(),v),a.maxAge)}catch{return null}},u=(_,S)=>{if(!a||!a.seeded)return null;let v="";for(let x in S){let w=x.toLowerCase();if(w==="accept-language")v=String(S[x]);else if(w!=="accept")return null}try{return L_(bi(_,v),a.maxAge)}catch{return null}},d=()=>i?{Authorization:`Bearer ${i}`}:null,p=_=>$_(e,d(),_),g=_=>({...r,..._}),h=(_,S,v)=>{if(!Hj(S))return g({method:_,headers:$_(e,d(),zj,v),body:JSON.stringify(S)});let x={method:_,headers:$_(e,d(),Wj,v),body:S};return NC(S)==="ReadableStream"&&(x.duplex="half"),g(x)},m=(_,S)=>{let v=S||t;if(_&&(_.startsWith("http://")||_.startsWith("https://")))return _;let x=_&&!_.startsWith("/")?"/":"";return`${v}${x}${_||""}`};return{name:"rest",setToken:_=>{i=_},getSession:async()=>{if(!n?.sessionUrl)return i?{token:i}:null;let _=await on(m(n.sessionUrl,n.baseUrl),g({headers:p()}));return _.error?null:_.data},signIn:async _=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let S=await on(m(n.signInUrl,n.baseUrl),h("POST",_));return S.data?.token&&(i=S.data.token),S},signOut:async()=>(n?.signOutUrl&&await on(m(n.signOutUrl,n.baseUrl),g({method:"POST",headers:p()})),i=null,{error:null}),select:({from:_,params:S,select:v,limit:x,offset:w,order:b,single:k,headers:C,baseUrl:D,responseType:R})=>{let $=N_(D||t,_||"",$C({params:S,select:v,limit:x,offset:w,order:b,single:k})),N=p(C),B=l(N);if(B){let X=g({headers:B.headers}),st=F_($,B.query);return on(st,X,R,u(st,B.headers)||f(()=>$,B.adoptHeaders))}let et=g({headers:N});return on($,et,R,u($,et.headers)||f(()=>$,et.headers))},rpc:async({from:_,params:S,headers:v,baseUrl:x,responseType:w,read:b})=>{let k=xC(S),C=()=>N_(x||t,`rpc/${_}`,S),D=st=>on(m(`rpc/${_}`,x),h("POST",S,v),w,st),R=p(v),$=b===!0&&c&&c.rpc&&k?l(R):null,N=null;if($)try{N=C()}catch{N=null}if(!N)return D(a&&a.rpc&&k?f(C,R):null);let B=g({method:"GET",headers:$.headers}),et=F_(N,$.query),X=await on(et,B,w,u(et,$.headers)||f(()=>N,$.adoptHeaders));return X.status===405?D(null):X},insert:({from:_,data:S,headers:v,baseUrl:x,responseType:w})=>on(m(_,x),h("POST",S,v),w),update:({from:_,data:S,params:v,method:x,headers:w,baseUrl:b,responseType:k})=>{let C=v?.id||S?.id,D=C?`${_}/${C}`:_;return on(m(D,b),h(x||"PATCH",S,w),k)},upsert:({from:_,data:S,params:v,method:x,headers:w,baseUrl:b,responseType:k})=>{let C=v?.id||S?.id,D=C?`${_}/${C}`:_;return on(m(D,b),h(x||"PUT",S,w),k)},delete:({from:_,params:S,headers:v,baseUrl:x,responseType:w})=>{let b=S?.id,k=b?`${_}/${b}`:_;return on(m(k,x),g({method:"DELETE",headers:p(v)}),w)}}}});var VC={};F(VC,{localAdapter:()=>UC,setup:()=>Xj});var dp,Yj,Xj,UC,HC=L(()=>{"use strict";dp=(t,e)=>{if(!e)return!0;for(let n in e){let r=e[n];if(r===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(r)){if(!r.includes(t[n]))return!1}else if(typeof r=="object"){for(let o in r)if(o==="gt"&&!(t[n]>r[o])||o==="gte"&&!(t[n]>=r[o])||o==="lt"&&!(t[n]<r[o])||o==="lte"&&!(t[n]<=r[o])||o==="neq"&&t[n]===r[o]||o==="like"&&!String(t[n]).includes(r[o]))return!1}else if(t[n]!==r)return!1}return!0},Yj=(t,{order:e,limit:n,offset:r,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 r&&(s=s.slice(r)),n&&(s=s.slice(0,n)),o?{data:s[0]||null,error:null}:{data:s,error:null}},Xj=async({data:t,...e})=>UC(t,e),UC=(t={},e={})=>{let n={},r={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(o)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=r[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>dp(h,u));return Yj(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(dp(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),_=y?p.findIndex(S=>dp(S,y)):-1;if(_>-1){let S={...p[_]};Object.assign(p[_],m),h.push(p[_]),c(f,"UPDATE",p[_],S)}else{let S={id:m.id||++l,...m};p.push(S),h.push(S),c(f,"INSERT",S,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)dp(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{r[f]||(r[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return r[f].push(p),()=>{let g=r[f].indexOf(p);g>-1&&r[f].splice(g,1)}}}}});var Si={};F(Si,{EARLY_KEY:()=>cp,SEED_BLOCK:()=>I_,createAdapter:()=>nB,createEarlySeedBlock:()=>CC,createEarlySeedScript:()=>TC,default:()=>bB,earlyKey:()=>bi,executeFetch:()=>nw,fetchFunctions:()=>mB,fetchPlugin:()=>yB,hasAdapter:()=>eB,initAdapterAuth:()=>yp,parseDuration:()=>tl,queryClient:()=>gB,registerAdapter:()=>tB,requestsInFlight:()=>DC,resolveDb:()=>ZC,whenRequestsIdle:()=>LC});var Zj,XC,pp,wi,hp,H_,Jj,Qj,tB,eB,nB,ZC,tl,JC,QC,An,zC,sn,wp,B_,X_,rl,el,mp,z_,bp,tT,Z_,eT,rB,gp,oB,WC,U_,nT,rT,_i,qC,sB,KC,iB,oT,J_,ol,_p,Sp,sl,Q_,yp,tw,Cn,Yn,nl,xp,aB,W_,Ir,q_,K_,Mr,GC,Xn,cB,lB,fB,uB,V_,il,dB,ew,sT,G_,Y_,iT,aT,pB,hB,nw,gB,YC,mB,yB,bB,kp=L(()=>{"use strict";M();Rt();fp();BC();fp();M_();Zj=["select","rpc","insert","update","upsert","delete","subscribe"],XC={rest:()=>Promise.resolve(j_),local:()=>Promise.resolve().then(()=>(HC(),VC))},pp=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),wi=(()=>{if(typeof globalThis<"u"&&globalThis[pp])return globalThis[pp];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,pp,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[pp]}catch{}return t})(),hp=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),H_=(()=>{if(typeof globalThis<"u"&&globalThis[hp])return globalThis[hp];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,hp,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[hp]}catch{}return t})(),Jj=5e3,Qj=t=>new Promise(e=>{if(wi[t])return e(wi[t]);let n=H_[t]||=[],r=!1,o=()=>{r||(r=!0,e(wi[t]||null))};n.push(o),setTimeout(o,Jj)}),tB=(t,e)=>{wi[t]=e;let n=H_[t];if(n&&n.length){H_[t]=[];for(let r of n)r()}},eB=t=>typeof t=="string"&&!!(wi[t]||XC[t]),nB=t=>{let e={};for(let n of Zj)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},ZC=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,r=typeof e=="string"?e:typeof t=="string"?t:null;if(!r)return null;let o=wi[r]||XC[r];if(!o&&(o=await Qj(r),!o))throw new Error(`Unknown db adapter: "${r}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${r}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},tl=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 n=parseInt(e[1]),r=e[2];return r==="ms"?n:r==="s"?n*1e3:r==="m"?n*6e4:r==="h"?n*36e5:0},JC=t=>!!t&&!!t.isolateFetchCache,QC=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),An=QC(),zC=new WeakMap,sn=t=>{if(!JC(t))return An;let e=zC.get(t);return e||zC.set(t,e=QC()),e},wp=0,B_=new WeakMap,X_=(t,e,n,r,o=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=r?`:${r}`:"",u=o?":p"+JSON.stringify(o):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},rl=(t,e)=>t.cache.get(e)||null,el=(t,e,n,r,o=++wp,s=!1)=>{let i={data:n,error:r,time:Date.now(),stale:s,seq:o};t.cache.set(e,i);let a=t.subscribers.get(e);if(a)for(let c of a)P(c)&&c(i);return i},mp=(t,e,n)=>{let r=e?t.cache.get(e):null;return r&&!r.error&&r.seq>n?r:null},z_=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,bp=(t,e)=>{t.invalidatedAt.set(e,++wp)},tT=(t,e)=>{t.cache.delete(e),bp(t,e)},Z_=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)}:E(t)?{staleTime:tl(t),gcTime:3e5}:{staleTime:tl(t.stale||t.staleTime)||6e4,gcTime:tl(t.gc||t.gcTime||t.expire)||3e5,key:t.key},eT=t=>!!t.ref&&t.element.__ref===t.ref,rB=({config:t,element:e,context:n})=>{try{return Q_(t,e,n)}catch{return null}},gp=null,oB=()=>{gp||(gp=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:r,invalidatedAt:o,mounted:s}=An;for(let[i,a]of e){let c=n.get(i);!(c&&c.size>0)&&t-a.time>(a.gcTime||3e5)&&e.delete(i)}for(let[i]of o)!e.has(i)&&!r.has(i)&&o.delete(i);for(let i of s)eT(i)||s.delete(i)},3e4),gp.unref&&gp.unref())};oB();WC=3,U_=t=>Math.min(1e3*2**t,3e4),nT=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:WC,delay:U_}:typeof n=="number"?{count:n,delay:U_}:{count:n.count??WC,delay:P(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:U_}},rT=async(t,e)=>{let{count:n,delay:r}=e,o;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(o=i.error,s<n){let a=P(r)?r(s,o):r;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<n){let a=P(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},_i={focus:new Set,online:new Set},qC=!1,sB=()=>{if(qC||typeof window>"u")return;qC=!0;let t=()=>{for(let n of _i.focus)n()},e=()=>{for(let n of _i.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},KC=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(E(t))return{from:t,method:"select",query:!0,on:"create"};if(A(t)){let r={...t};return r.from=r.from||n.__state||e.key,r.method=r.method||"select",r.on=r.on||"create",r.query===void 0&&(r.query=!0),r}return null},iB=["insert","update","upsert","delete"],oT=t=>iB.includes(t),J_=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,ol=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},_p=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},Sp=(t,e,n)=>{let r;if(!t)r=void 0;else if(P(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=P(s)?s(e,e.state):s}}return r},sl=(t,e)=>P(t)?t(e,e.state):t,Q_=(t,e,n)=>X_(t,Sp(t.params,e,n),_p(e,n),ol(e,n),sl(t.page,e),sl(t.cursor,e)),yp=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(r,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:r,session:o,loading:!1}})};try{let r=await t.getSession();n(r?.user||null,r)}catch(r){console.warn("[fetch] Failed to restore auth session:",r.message)}t.onAuthStateChange&&t.onAuthStateChange((r,o)=>{n(o?.user||null,o)})},tw=async(t,e)=>{if(P(t.select))return t.auth!==!1&&await yp(t,e),t;if(t.__resolved)return t.auth!==!1&&await yp(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=ZC(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await yp(n,e),n):null},Cn=(t,e,...n)=>{let r=P(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},Yn=(t,e,n,...r)=>{let o=t&&P(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},nl=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let o=new FormData(n);for(let[s,i]of o.entries())e[s]=i;return e}let r=n.querySelectorAll("input, textarea, select");for(let o=0;o<r.length;o++){let s=r[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},xp=t=>t.responseType==="stream"||t.responseType==="response",aB=["Blob","File","ArrayBuffer","ReadableStream","Response"],W_=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||aB.includes(Object.prototype.toString.call(t).slice(8,-1))),Ir=(t,e,n,r={})=>{if(!n&&W_(e))return;let o=n&&n.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!W_(e)&&i in e?s.update(e,{preventFetch:!0,...r}):s.update({[i]:e},{preventFetch:!0,...r})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...r})}},q_=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),K_=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),Mr=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},GC=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];P(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),P(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},Xn=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=_p(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&_p(e,n)===i;if(t.enabled===!1||P(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||P(t.skip)&&t.skip(e,e.state))return;let l=await tw(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:_,as:S,limit:v,offset:x,order:w,headers:b,baseUrl:k,responseType:C,page:D,cursor:R,infinite:$,placeholderData:N,initialData:B,select:et,keepPreviousData:X}=t,st=H=>(P(et)&&(H=et(H,e,e.state)),h&&(H=h(H,e,e.state)),H),Dt=H=>{Mr(e,K_(H)),Cn(e,"onFetchError",H),Yn(t,e,"onFetchError",H)},Lt=E(et)?et:void 0;if(d&&P(e.getQuery)){let H=e.getQuery(l.name||"paths");H&&(Lt=H.select||H.length&&H.join(",")||Lt)}let it=Sp(p,e,n),q=sl(D,e),G=sl(R,e),nt=J_(t),J=xp(t)||nt?null:Z_(g),ft=nT(t,nt||oT(u)),Y=ol(e,n),Q=J?X_(t,it,i,Y,q,G):null,Ct=sn(n);if(!s.__fetchInitialized&&Q&&(s.__fetchInitialized=!0,B!==void 0)){let H=P(B)?B():B;el(Ct,Q,H,null)}if((u==="select"||u==="rpc")&&Q&&J&&!r.refresh&&!r.force){let H=rl(Ct,Q);if(H&&!H.error){let K=Date.now()-H.time,ut=H.stale||K>(J.staleTime||0);$&&I(H.data)&&!s.__pages&&(s.__pages=[H.data],GC(s,t,H.data));let _t=st(H.data);if(!c())return;if(!ut){Mr(e,q_),Ir(e,_t,S);return}Ir(e,_t,S)}else if(N!==void 0){let K=P(N)?N(e,e.state):N;K!==void 0&&Ir(e,K,S)}}let ct=Q&&!r.force?Ct.active.get(Q):null;if(ct&&!z_(Ct,Q,B_.get(ct)||0)){try{let H=await Promise.race([ct,new Promise((K,ut)=>setTimeout(()=>ut("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(H?.error)Dt(H.error);else if(H?.data!==void 0){let K=!$&&mp(Ct,Q,B_.get(ct)||0),ut=st(K?K.data:H.data);if(!c())return;Ir(e,ut,S),Cn(e,"onFetchComplete",ut),Yn(t,e,"onFetchComplete",ut)}}catch(H){if(!c())return;H!=="DEDUP_TIMEOUT"&&Dt(H)}return}let yn=!rl(Ct,Q)?.data;Mr(e,{isFetching:!0,isLoading:yn,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Cn(e,"onFetchStart"),Yn(t,e,"onFetchStart");let re=n?.analyze?.emitNetwork,Ot=re?typeof performance<"u"?performance.now():Date.now():0;re&&re({phase:"start",mode:"query",from:f,method:u,cacheKey:Q,lang:Y});let bn=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let _t=await l.getSession();if(!c())return;if(y===!0&&!_t){let It={message:"Not authenticated"};return Dt(It),{data:null,error:It}}}let H=l[u];if(!P(H))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let K={from:f,select:Lt,params:it,single:m,limit:v,offset:x,order:w,headers:b,baseUrl:k};C!==void 0&&(K.responseType=C);let ut=ol(e,n);if(ut&&(K.headers={...K.headers,"Accept-Language":ut}),q!==void 0){if(A(q))q.offset!==void 0&&(K.offset=q.offset),q.limit!==void 0&&(K.limit=q.limit),q.cursor!==void 0&&(K.params={...K.params,cursor:q.cursor});else if(typeof q=="number"){let _t=t.pageSize||v||20;K.offset=(q-1)*_t,K.limit=_t}}if(G!==void 0&&(K.params={...K.params,cursor:G}),u==="insert"||u==="update"||u==="upsert"){let _t;if(_===!0||t.on==="submit")_t=nl(e);else if(I(_)){let It=nl(e);_t={};for(let _o of _)_t[_o]=It[_o]}else e.state?.parse?_t=e.state.parse():A(e.state)&&(_t={...e.state});h&&(_t=h(_t,e,e.state)),K.data=_t}if(u==="rpc"){let _t=it;if(t.on==="submit"){let It=nl(e);_t=t.transformParams?t.transformParams(It,e,e.state):It}K.params=_t,K.read=!nt&&t.read!==!1}if(u==="subscribe"){if(P(s.__unsubscribe)){let It=s.__unsubscribe;s.__unsubscribe=null;try{It()}catch{}}let _t=l.subscribe({from:f,params:it,on:t.subscribeOn},(It,_o,xA)=>{c()&&(Ir(e,It,S),Cn(e,"onFetchComplete",It),Yn(t,e,"onFetchComplete",It))});return c()?(s.__unsubscribe=_t,{data:null,error:null,subscribed:!0}):(P(_t)&&_t(),{data:null,error:null,subscribed:!0})}return H(K)},oe=++wp,_n=rT(bn,ft);B_.set(_n,oe),Q&&Ct.active.set(Q,_n);try{let H=await _n;if(nt&&t.invalidates&&H&&!H.error&&!H.subscribed&&sT(Ct,t.invalidates,f),!c()||H?.subscribed)return;let{data:K,error:ut}=H||{};if(ut){Q&&!mp(Ct,Q,oe)&&el(Ct,Q,null,ut,oe),Dt(ut),re&&re({phase:"error",mode:"query",from:f,method:u,cacheKey:Q,error:ut.message||ut,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ot});return}if(K!==void 0){let _t=K;if((u==="select"||u==="rpc")&&Q){let _o=!$&&mp(Ct,Q,oe);if(_o)_t=_o.data;else{let xA=el(Ct,Q,K,null,oe,z_(Ct,Q,oe));xA.gcTime=J?.gcTime||3e5}}let It=_t;if($&&I(K)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(K):s.__pages.push(K),It=s.__pages.flat(),GC(s,t,K)),It=st(It),!c())return;Mr(e,q_),(!X||It!==void 0)&&Ir(e,It,S),Cn(e,"onFetchComplete",It),Yn(t,e,"onFetchComplete",It),re&&re({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:Q,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ot})}}catch(H){if(!c())return;Dt(H),re&&re({phase:"error",mode:"query",from:f,method:u,cacheKey:Q,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-Ot})}finally{Q&&Ct.active.get(Q)===_n&&Ct.active.delete(Q)}},cB=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Xn;if(r==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(r==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else r==="stateChange"&&lB(t,e,n,s)},lB=(t,e,n,r)=>{let o=e.__ref,s,i=z(()=>{let a;try{a=JSON.stringify([Sp(t.params,e,n)??null,P(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,P(t.skip)?!!t.skip(e,e.state):t.skip===!0,sl(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,queueMicrotask(()=>r(t,e,n)))});Array.isArray(o.__effects)?o.__effects.push(i):o.__fetchListeners.push(()=>i.dispose())},fB=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),sB();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:tl(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Xn(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=xp(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=Q_(t,e,n),f=rl(sn(n),l),u=Z_(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&Xn(t,e,n,{force:!0})};_i.focus.add(c),r.__fetchCleanups.push(()=>_i.focus.delete(c))}if(a){let c=()=>Xn(t,e,n,{force:!0});_i.online.add(c),r.__fetchCleanups.push(()=>_i.online.delete(c))}},uB=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():A(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=P(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&Ir(t,i,o),s},V_=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let r=n.__optimisticSnapshot;r!==void 0&&(Ir(t,r,e.as),delete n.__optimisticSnapshot)},il=t=>{if(!t)return()=>!0;if(E(t))return e=>e.includes(t);if(I(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):P(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},dB=(t,e)=>{let n=[];for(let r of t.mounted){if(!eT(r)){t.mounted.delete(r);continue}let o=rB(r);o&&e(o)&&n.push(Xn(r.config,r.element,r.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},ew=(t,e)=>{EC();for(let[n,r]of t.cache)e(n)&&(r.stale=!0,bp(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&bp(t,n);return dB(t,e)},sT=(t,e,n)=>{let r=(I(e)?e:[e]).map(o=>o===!0||o==="*"?s=>s.startsWith(n+":"):o?il(o):()=>!1);return ew(t,o=>r.some(s=>s(o)))},G_=(t,e)=>{for(let[n]of t.cache)e(n)&&tT(t,n);for(let[n]of t.active)e(n)&&bp(t,n)},Y_=()=>!0,iT=(t,e)=>rl(t,e)?.data??void 0,aT=(t,e,n)=>{let r=rl(t,e),o=P(n)?n(r?.data):n;el(t,e,o,null)},pB=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await tw(r,n);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:_,onSuccess:S,onError:v,onSettled:x}=t,w;if(c===!0||u==="submit")w=nl(e);else if(I(c)){let D=nl(e);w={};for(let R of c)w[R]=D[R]}else e.state?.parse?w=e.state.parse():A(e.state)&&(w={...e.state});l&&(w=l(w,e,e.state)),P(_)&&_(w,e,e.state);let b=y?uB(e,t,w):null;Mr(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Cn(e,"onFetchStart"),Yn(t,e,"onFetchStart");let k=n?.analyze?.emitNetwork,C=k?typeof performance<"u"?performance.now():Date.now():0;k&&k({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let st=await o.getSession();if(d===!0&&!st){b!==void 0&&V_(e,t);let Dt={message:"Not authenticated"};Cn(e,"onFetchError",Dt),Yn(t,e,"onFetchError",Dt);return}}let D=o[i];if(!P(D))return;let R={from:a,data:w,headers:p,baseUrl:g};h!==void 0&&(R.responseType=h),t.params&&(R.params=Sp(t.params,e,n));let $=ol(e,n);$&&(R.headers={...R.headers,"Accept-Language":$});let N=nT(t,!0),B=await rT(()=>D(R),N),{data:et,error:X}=B||{};if(X){b!==void 0&&V_(e,t),Mr(e,K_(X)),Cn(e,"onFetchError",X),P(v)&&v(X,w,e),P(x)&&x(null,X,w,e),k&&k({phase:"error",mode:"mutation",from:a,method:i,error:X.message||String(X),durationMs:(typeof performance<"u"?performance.now():Date.now())-C});return}if(delete s.__optimisticSnapshot,Mr(e,q_),et!==void 0&&(f||!W_(et))){let st=f?{[f]:et}:et;e.state?.update&&e.state.update(st,{preventFetch:!0})}Cn(e,"onFetchComplete",et),Yn(t,e,"onFetchComplete",et),P(S)&&S(et,w,e),P(x)&&x(et,null,w,e),k&&k({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-C}),m&&sT(sn(n),m,a)}catch(D){b!==void 0&&V_(e,t),Mr(e,K_(D)),Cn(e,"onFetchError",D),Yn(t,e,"onFetchError",D),P(v)&&v(D,w,e),P(x)&&x(null,D,w,e),k&&k({phase:"error",mode:"mutation",from:a,method:i,error:D.message||String(D),durationMs:(typeof performance<"u"?performance.now():Date.now())-C})}finally{s.__fetching=!1}},hB=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);P(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])sn(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},nw=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=St(t,e);if(!s)return;let i=I(s)?s.map(f=>KC(St(f,e),e)).filter(Boolean):[KC(s,e)].filter(Boolean),a=e.__ref,c=sn(r);if(a.__fetchMounted)for(let f of a.__fetchMounted)c.mounted.delete(f);a.__fetchMounted=[],!a.__fetchDisposer&&I(a.__effects)&&(a.__fetchDisposer={dispose:()=>hB(a)},a.__effects.push(a.__fetchDisposer));let l=!JC(r);for(let f of i){let u=oT(f.method),d=u?pB:Xn,p=!u&&!J_(f)&&f.method!=="subscribe";if(f.on==="create"?d(f,e,r):queueMicrotask(()=>cB({...f,__runner:d},e,r)),p&&f.on==="create"&&(l&&(f.refetchInterval||f.refetchOnWindowFocus!==!1||f.refetchOnReconnect!==!1)&&fB(f,e,r),!xp(f))){let g={element:e,ref:a,config:f,context:r};c.mounted.add(g),a.__fetchMounted.push(g)}}a.refetch=f=>{for(let u of i)Xn(u,e,r,{force:!0,...f})},a.fetchNextPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__nextPageParam;if(u==null)return;let d={...f,cursor:u};Xn(d,e,r,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__prevPageParam;if(u==null)return;let d={...f,cursor:u};Xn(d,e,r,{direction:"previous",force:!0})}},gB={invalidateQueries:t=>ew(An,il(t)),removeQueries:t=>{G_(An,t?il(t):Y_)},getQueryData:t=>iT(An,t),setQueryData:(t,e)=>{aT(An,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=sn(e),o=await tw(n,e);if(!o)return;let s=t.method||"select",i=_p(null,e),a=ol(null,e),c=X_({...t,method:s},t.params,i,a),l=o[s];if(!P(l))return;let f={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};a&&(f.headers={...f.headers,"Accept-Language":a}),t.responseType!==void 0&&(f.responseType=t.responseType),s==="rpc"&&(f.read=!J_(t)&&t.read!==!1);let u=++wp,d=await l(f);if(d?.data!==void 0&&!d?.error&&!xp(t)&&!mp(r,c,u)){let p=el(r,c,d.data,null,u,z_(r,c,u));p.gcTime=Z_(t.cache)?.gcTime||3e5}return d},getCache:()=>An.cache,clear:()=>G_(An,Y_),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of An.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||tT(An,n))}},YC=(t,e)=>A(t)?Q_({method:"select",...t},e,e?.context):t,mB={invalidateQueries(t){return ew(sn(this?.context),il(t))},removeQueries(t){G_(sn(this?.context),t?il(t):Y_)},getQueryData(t){return iT(sn(this?.context),YC(t,this))},setQueryData(t,e){aT(sn(this?.context),YC(t,this),e)}},yB={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||sn(t.context).active.clear(),nw(e,t,t.state,t.context))}},bB=nw});function cl(t){let e=this,{__ref:n}=e,r=[].concat(t),o=n.root[r[0]];if(!r||!r.length)return console.log(r,"on",e.key,"is undefined");for(;o.key===r[0]&&(r.shift(),!!r.length);)if(o=o[r[0]],!o)return;return o}function ow(t){let e=this,{parent:n}=e;if(P(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function sw(t){let e=this,{__ref:n}=e,r=n?.__children;if(r)for(let o=0;o<r.length;o++){let s=r[o],i=e[s];if(s===t)return i;if(P(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 iw(t,e=[]){let n=this,{__ref:r}=n,o=r?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=n[i];if(i===t)e.push(a);else if(P(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 Ap(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(A(r)&&o)Ap.call(o,r);else if(r!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(r).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function lT(t){let e=this;if(Gn("beforeRemove",e,t)===!1)return e;P(e.node.remove)?e.node.remove():Rr()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=wc(e.parent.__ref.__children,e.key)),Gn("remove",e,t)}function aw(t){return this[t]}function cw(t,e){let n=this;if(t)return n.update(t,e),n}function lw(t){return t?this.__ref&&this.__ref[t]:this.__ref}function fw(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function ll(){return this.getRef().path}function ul(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=cT();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=P(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=cT()),t?e?.[t]:e}function dl(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 pl(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function hl(t){let e=this.getRoot()?.context;return t?e[t]:e}function gl(t){let e=this.context;return t?e[t]:e}function Cp(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||Cr.has(n)&&!Ec.has(n)||e.push(n);return e}function Tp(t=[]){let e=this,n={},r=Cp.call(e),o=r.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<r.length;i++){let a=r[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=P(c&&c.parse)?c.parse():c;n[a]=P(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else jt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function al(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=Tp.call(n,t),o=t.length?new Set(t):null;for(let s in r){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=r[s];Array.isArray(i)?r[s]=i.map(a=>V(a)?al.call(a,t,e):a):V(i)&&(r[s]=al.call(i,t,e))}return r}function ki(...t){if($r!=="test"&&$r!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(r=>console.log(`%c${r}:
22
- `,"font-weight: bold",e[r])):(console.log(n.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function dw(...t){($r==="test"||$r==="development")&&console.log(...t)}function ml(...t){($r==="test"||$r==="development")&&console.warn(...t)}function Mo(...t){if($r==="test"||$r==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&ki.call(this),new Error(...t)}}function yl(){let t=this,{key:e,parent:n}=t,{__children:r}=n.__ref,o=r.indexOf(e),s=r[o+1];return n[s]}function bl(t){let e=t||this,{key:n,parent:r}=e,{__children:o}=r.__ref;if(!o)return;let s=o.indexOf(n);return r[o[s-1]]}function _l(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,r={},o;for(let s in t)t[s]!==n[s]&&(o=!0,r[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(r,pt(n));for(let a in r)n[a]=r[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(r),clearTimeout(a)},i)}}}function pw(t,...e){let n=this.context,r=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(r&&!To(r))try{let o=r.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{Mo.call(this,s)}),o}catch(o){if(Mo.call(this,o),n?.strictMode)throw o}}async function wl(){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 vp();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await vp();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=vp().then(({resolveDb:o})=>o(e));e.__resolving=n;let r=await n;if(e.__resolved=r,t.context.fetch=r,delete e.__resolving,r?.getSession){let{initAdapterAuth:o}=await vp();await o(r,t.context)}return r}function Sl(t){let e=this,n=t||Qc.useStateQuery||e.context?.useStateQuery;if(!n)return null;let r={};if(rw(e,r),n===!0)return r;let o=AB[n];return o?o(r):r}function hw(t,e){return!!(Or.has(t)||e?.context?.methods?.[t])}var $r,Ep,fl,xi,cT,uw,_B,vp,rw,wB,fT,SB,xB,kB,vB,EB,AB,uT=L(()=>{"use strict";T_();Eo();qt();Sn();Dd();ii();R_();$r="production";Ep=null,fl=t=>{Ep=t||null},xi=(t,e)=>{t&&e&&Ep===t&&(Ep=e)},cT=()=>Ep||null;uw=(t,e,n,r)=>Object.defineProperty(t,e,{get:n,set:r});_B="[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.",vp=()=>Promise.resolve().then(()=>(kp(),Si)).catch(t=>{throw new Error(_B,{cause:t})});rw=(t,e)=>{let n=t.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&wB(e,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&rw(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&rw(i,e)},wB=(t,e)=>{let r=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<r.length;s++){let i=r[s];s===r.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},fT=(t,e=0)=>{let n=" ".repeat(e),r=Object.entries(t);return r.length?r.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
- ${fT(i,e+1)}
21
+ return (${c}); })`)(e)}catch{try{e[a]=T.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=T.eval(`(${a})`)}catch{e[i]=a}return e},Qb=(t,e={verbose:!0})=>{try{return t?T.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},t_=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Gd=t=>{for(let e in t)return!1;return!0},e_=t=>A(t)&&Gd(t),n_=()=>Object.create(null),Xc=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&Fo(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Vo=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Fo(o)||o==="constructor"||o==="prototype"||(r?n.has(o):n.includes(o))||(t[o]=e[o]);return t},se=(t,e,n={},r=new WeakMap)=>{if(!H(t)||!H(e)||pe(t)||pe(e))return e;if(r.has(t))return r.get(t);r.set(t,t);let o=n.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Fo(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];pe(l)?t[a]=l:H(c)&&H(l)?t[a]=se(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Yd=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++){let i=r[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Yd(t[i],e[i],n))return!1}return!0},NB=new Set(["node","__ref"]),r_=(t,e,n=NB)=>{if(t===e)return!0;if(!H(t)||!H(e)||pe(t)||pe(e))return t===e;let r=n instanceof Set?n:new Set(n),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)||r.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(pe(l)||pe(f)){if(l!==f)return!1}else if(H(l)&&H(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},o_=(t,e)=>{if(e==null)return t;if(ge(e)("string","number"))delete t[e];else if(I(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Xd=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Xd(t[n]));return e},s_=(t,e)=>{if(t.length===0)return e;let n={},r=n;for(let o=0;o<t.length;o++)o===t.length-1&&e?r[t[o]]=e:(r[t[o]]={},r=r[t[o]]);return n},i_=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++){if(n[e[o]]===void 0)return;n=n[e[o]]}let r=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,r)&&delete n[r]},a_=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++)(!r[e[o]]||typeof r[e[o]]!="object")&&(r[e[o]]={}),r=r[e[o]];return r[e[e.length-1]]=n,t},c_=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length;r++){if(n==null)return;n=n[e[r]]}return n},l_=t=>{let n=[],r=0;for(let o=0;o<t.length;o++)if(n.length<2)n.push(t[o]);else if(t[o]===n[o%2]?r++:(n=[t[o-1],t[o]],r=1),r>=20)return(CC==="test"||CC==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},f_=t=>{let e=new WeakSet;function n(r){if(r&&typeof r=="object"){if(e.has(r))return!0;e.add(r);for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n(r[o]))return console.log(r,"cycle at "+o),!0}return!1}return n(t)},u_=(t,e)=>{let n=e instanceof Set?e:new Set(e),r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!n.has(o)&&(r[o]=t[o]);return r}});var Jc,Zc,Qc,Jd=L(()=>{"use strict";An();Jc=(function(){let t=0;function e(){return t++,t}return e})(),Zc=Jc,Qc=(t,e,n)=>(vt(n,t)||n||t.key||Jc()).toString()});var ln,d_,Fr,Zd,p_,h_,g_,jr,m_,Qn,tt,Qd=L(()=>{"use strict";ln="production",d_=ln,Fr=(t=ln)=>t==="production",Zd=(t=ln)=>t==="testing"||t==="test",p_=Zd,h_=(t=ln)=>t==="staging",g_=(t=ln)=>t==="local",jr=(t=ln)=>t==="development"||t==="dev"||t==="local",m_=(t,e=ln)=>e[t],Qn=(t=ln)=>!Fr(t),tt=t=>{let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1}});function tl(t,e,n){let r;return function(){let o=this,s=arguments,i=function(){r=null,n||t.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(i,e),a&&t.apply(o,s)}}function __(t,e=window){let n=function(){return t.apply(e,arguments)};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var y_,b_,FB,Ai,Ci,Ti,Br,Oi=L(()=>{"use strict";y_=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},b_=t=>{let e={};return(...n)=>{let r=n[0];if(r in e)return e[r];{let o=t(r);return e[r]=o,o}}},FB=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,Ai=t=>FB.test(t),Ci=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},Ti=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let r of n)if(r.resolveHandler){let o=r.resolveHandler(t,e);if(typeof o=="function")return o}return t},Br=(t,e,...n)=>{let r=e?.context?.plugins;if(!r)return!1;let o=!1;for(let s of r)typeof s[t]=="function"&&(s[t](e,...n),o=!0);return o}});var w_,WC=L(()=>{"use strict";Kt();An();w_=(t,e)=>{let{__ref:n}=t,r=t.if;if(D(r)){let o;try{o=r(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}o?n.__if=!0:delete n.__if}else r!=null&&typeof r=="object"?vt(r,t)?n.__if=!0:delete n.__if:n.__if=!0}});var S_,x_,KC=L(()=>{"use strict";S_=(t,...e)=>{t&&e.map(n=>console.log(n))},x_=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function C_(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 T_(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var k_,v_,E_,A_,qC=L(()=>{"use strict";Kt();Dc();k_=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),v_=(t,e,n=365)=>{if(Wt(St)||Wt(St.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;St.cookie=`${t}=${e};${o};path=/`},E_=t=>{if(Wt(St)||Wt(St.cookie))return;let e=`${t}=`,r=decodeURIComponent(St.cookie).split(";");for(let o=0;o<r.length;o++){let s=r[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},A_=t=>{Wt(St)||Wt(St.cookie)||(St.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Ri,GC,O_,R_=L(()=>{"use strict";Ri={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"])},GC=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"]),O_=t=>Ri.body.has(t)});var P_,YC,Pi,Ve,Di,rl,Cn,D_,tp,ol,L_,sl,ep,np,il,rp,Li,jB,Tn,XC,el,al,I_,nl,M_,$_,op,sp,ip,ap,cp,lp,JC,fp=L(()=>{"use strict";xi();N_();An();Kt();P_="production",YC=t=>t.sourcemap!==!1&&P_!=="production",Pi=t=>{if(!t)return[];let e=[],n=t.extends;n&&(I(n)?e.push(...n):e.push(n));let r=t.extend;return r&&(I(r)?e.push(...r):e.push(r)),e},Ve=t=>{if(!I(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let r=t[n];e.push(I(r)?Ve(r):r)}return e},Di=t=>{if(t.includes("+"))return t.split("+").filter(On);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!On(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},rl=(t,e,n)=>{let r=[],o=Di(n);o&&(r=[...o]);let s=Ve(Pi(t));return s.length&&(r=[...r,...s]),r},Cn=(t,e)=>{let{__ref:n}=e,{__extends:r}=n;if(!t)return r;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 r.includes(t)||(r=Array.isArray(t)?[...r,...t]:[...r,t],n.__extends=r),r},D_=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:wi(o,r)}},tp=()=>Math.random().toString(36).substring(2),ol={},L_={},sl=t=>ol[t.__hash],ep=(t,e)=>{let n=tp();return E(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(ol[n]=e),e},np=(t,e)=>t.__hash?e.concat(sl(t)):ep(t,e),il=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?il(i,e,n,r,o,s):Li(i,e,n,r,o,void 0,s);return e},rp=(t,e,n,r=new Set,o,s,i)=>{let a=Pi(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&&Li(Ve(a),e,n,r,o,s,i),e},Li=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return il(t,e,n,r,o,i);let a=s;return E(t)?(a=t,t=al(t,n)):i&&A(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?rp(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},jB=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),Tn=(t,e,n,r,o)=>{e=ut(e);for(let s in e){if(jB.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,n&&r?A(a)&&!I(a)?(n[s]=n[s]||{},XC(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(A(i)&&A(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];On(s)?t[s]=Tn(i,a,c,r,l):Tn(i,a,c,r,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(I(i)&&I(a))t[s]=i.concat(a);else if(I(i)&&A(a)){let c=Tn({},i);t[s]=Tn(c,a)}}}}return t},XC=(t,e,n,r)=>{if(r||(r=new WeakSet),!r.has(e)){r.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];A(s)&&!I(s)?(t[o]=t[o]||{},XC(t[o],s,n,r)):t[o]=n}}},el=(t,e,n)=>t.reduce((r,o,s)=>{let i=ut(o),a=n?n[s]:void 0;return Tn(r,i,e,a)},{}),al=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(E(t)){let i=o&&(o[t+"."+r]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(P_==="test"||P_==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},I_=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),nl=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return sl(t)||[];let s=Li(t,[],e,new Set,n,void 0,r);return n?s:np(t,s)},M_=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return wi(n,e)},$_=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(On(o)&&e.push(o),o==="extends"&&(typeof r[o]=="string"?e.push(r[o]):Array.isArray(r[o])&&(e=e.concat(r[o]))),typeof r[o]=="object"&&r[o]!==null&&n(r[o]))}return n(t),e},op=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=Pi(t);if(i.length){let a=Ve(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?Cn([f,...l],t):Cn(a,t)}return sp(t,e,n),ip(t,e,n),ap(t,e,n),t.component&&Cn(Ve(vt(t.component,t)),t),o.defaultExtends&&Cn(Ve(o.defaultExtends),t),Si(r.__extends)},sp=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Cn(Ve(e.childProps.extends),t),r.__extends},ip=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Cn(Ve(s),t),r.__extends},ap=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Cn(Ve(o),t),r.__extends},cp=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=YC(n),a=i?[...r.__extends]:null,c=Si(r.__extends.map((l,f)=>al(l,o,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&A(p)&&E(g)&&l.set(p,g)}let f=[],u=nl(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=nl(c,o);r.__extendsStack=l}return r.__extendsStack},lp=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(YC(n)){let s={},i=r.__extendsNames||[],a=el(o,s,i),c={};Tn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=el(o);Tn(t,s)}return t},JC=(t,e,n={})=>(op(t,e,n),cp(t,e,n),lp(t,e,n),t)});function F_(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function j_(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function B_(t,e,n){let{context:r}=e||{},[o]=Di(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var On,N_=L(()=>{"use strict";fp();Kt();On=t=>{if(!E(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function ZC(t,e){let{props:n,on:r}=e,o=Lo(t.split("on")[1]),s=r[o],i=n[t];D(s)?r[o]=(...a)=>{if(s(...a)!==!1&&D(i))return i(...a)}:r[o]=i}var QC=L(()=>{"use strict";Uc();Kt()});function up(t,e={}){let n=e.cachedKeys||[];for(let r in t){let o=t[r];if(r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r[2]===r[2].toUpperCase()&&(D(o)||o!=null&&Ci(this.context))){let g=Lo(r.slice(2));t.on&&(t.on[g]=o),delete t[r];continue}if(r==="childProps"){t.props[r]=o,delete t[r],n.push(r);continue}let a=this.define?.[r],c=this.context?.define?.[r],l=A(a)||D(a),f=A(c)||D(c);if(l||f)continue;let u=r.charAt(0);if(eT.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=U_.test(r)||tT.test(r)||UB(o),p=Mr.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function dp(t=this,e){let n=e.cachedKeys||[];for(let r in t.props){let o=t.props[r],s=r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110,i=D(o)||o!=null&&Ci(this.context);if(s&&i){ZC(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if(eT.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=A(c)||D(c),u=A(l)||D(l),d=U_.test(r)||tT.test(r),p=Mr.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function pp(t=this){let e=[];return up.call(this,t,{cachedKeys:e}),dp.call(this,t,{cachedKeys:e}),t}function V_(t={}){return t.on||(t.on={}),t.props||(t.props={}),pp.call(this,t)}function z_(t,e){this.__element.update({props:t},e)}function dl(t){let e={update:z_.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var U_,tT,eT,BB,UB,fl,cl,H_,ul,pl,hl,hp,ll,W_,K_,q_=L(()=>{"use strict";$o();QC();An();Kt();Uc();Oi();U_=/^[A-Z]/,tT=/^\d+$/,eT=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),BB=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),UB=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(BB.has(e)||U_.test(e))return!0;return!1},fl=(t,e,n)=>{let{props:r,__ref:o}=t;if(o.__propsStack=[],r)o.__initialProps=r;else return{};return H(r)?{...r}:(o.__propsStack.push(r),{})};cl=t=>ge(t)("string","number")?{inheritedString:t}:t,H_=(t,e)=>!t||!e.length?!1:e.includes(t),ul=(t,e)=>{let{__ref:n}=t,r=n.__propsStack||[],o=e.props;if(!o)return r;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=cl(i);r.unshift(c)}if(s){let c=cl(s);r.unshift(c)}return r};pl=t=>{let e=new Set;return t.filter(n=>!n||$r.has(n)||e.has(n)?!1:(e.add(n),!0))},hl=(t,e,n)=>(e.props=t.reduce((r,o)=>{if($r.has(o))return r;for(;D(o);)o=vt(o,e);return ft(r,ut(o,{exclude:$r}))},{}),dl(e),e.props),hp=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...ul(t,e)]),A(n)?o.push(n):n==="inherit"&&e?.props?o.push(e.props):n&&o.push(n),I(r.__extendsStack))for(let s=0;s<r.__extendsStack.length;s++){let i=r.__extendsStack[s];i.props&&i.props!==n&&o.push(i.props)}return r.__propsStack=pl(o),r.__propsStack},ll=(t,e)=>{let{__ref:n}=t,r=hp(t,e);r.length?hl(r,t):(n.__propsStack=[],t.props={})},W_=function(t,e,n){let{__ref:r}=t;if(r.__if)ll(t,e);else try{ll(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return dl(t),t},K_=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=ul(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=pl(s),r.__propsStack.length&&hl(r.__propsStack,e),e}});var nT,gp,mp,yp,bp,G_,_p,wp,Sp,Y_,rT=L(()=>{"use strict";fp();Jd();Ic();q_();R_();Kt();nT="production",gp=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=Ri.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},mp=(t,e,n)=>{if(t===void 0)return(nT==="test"||nT==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:ge(t)("string","number")?gp(t,e,n):D(t)?{props:t}:t},yp=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},bp=(t,e,n,r,o)=>{if(!e)return o;if(Zn(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},G_=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},_p=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},wp=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),Sp=(t,e,n)=>{let r=yp(t,e);return t.__ref=r,r.__defineCache||(r.__defineCache={}),r.__exec||(r.__exec={}),r.__execProps||(r.__execProps={}),r.__class||(r.__class={}),r.__classNames||(r.__classNames={}),r.__attr||(r.__attr={}),r.__changes||(r.__changes=[]),r.__children||(r.__children=[]),r.__extends=rl(t,e,n),r.path=_p(t,e,n),r},Y_=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:mp(t,e,n);if(!i)return;let a=bp(i,e,n,r,o),c=Qc(i,a,n);Sp(i,a,c);let l=fl(i,a,c),f=wp(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var X_,xp,kp,vp,Ep,J_,Ap,Z_,Q_,tw,ew,oT,Ur,Ho,sT,iT,aT,gl,Rn,cT=L(()=>{"use strict";xi();$o();An();Kt();X_=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return ge(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},xp=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},kp=(t,e)=>{if(!t.includes("../"))return;let r=t.split("../").length-1;for(let o=0;o<r;o++){if(!e.parent)return null;e=e.parent}return e},vp=(t,e,n={})=>{let r=E(t)?t.split("/"):[t],o=r.length-1;for(let s=0;s<o;s++){let i=r[s],a=r[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 n.returnParent?e:e[t]},Ep=(t,e,n={})=>{let o=t.__ref.__state;if(!Ap(t))return;let s=xp(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=kp(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return vp(o,i,n)},J_=(t,e)=>{let n=t.__ref,r=Ep(t,e);if(r===void 0)return t.state;if(ge(r)("object","array"))return ut(r);if(ge(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},Ap=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&ge(n)("number","string","boolean"))},Z_=function(t){return H(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},Q_=(t,e)=>{if(!t)return e||{};let n=t.split("/"),r={},o=r,s=n.length-1;for(let i=0;i<=s;i++)o[n[i]]=i===s?e||{}:{},o=o[n[i]];return r},tw=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=ut(r,Io),s={[t.key]:o},i=A(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?Fc(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},ew=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){ft(t,e,Io);return}(o?Vo:se)(t,e,Io)},oT="__polyglotSeededKeys",Ur=t=>{if(!A(t))return new Set;let e=t[oT];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,oT,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Ho=(t,e,n)=>Ur(t).has(e)?!0:!A(n)||n[e]===void 0,sT="__polyglotSeededValues",iT=t=>{if(!A(t))return new Map;let e=t[sT];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,sT,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},aT=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},gl=(t,e,n)=>{if(!Ur(t).has(e))return!1;let r=iT(t);if(!r.has(e))return!0;let o=A(n)||Array.isArray(n)?n[e]:void 0,s=aT(o);return s!==null&&s===r.get(e)},Rn=(t,e,...n)=>(Ur(t).add(e),n.length&&iT(t).set(e,aT(n[0])),e)});var VB,nw,lT=L(()=>{"use strict";VB=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},nw=(t,e)=>{let{__ref:n}=t,r=t.context||e.context||n.root?.context;r&&!r.globalScope&&(r.globalScope={});let o=e.scope||n.root?.scope,s=r?.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&&!VB(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var fT,Cp,tr,Tp,rw,ow=L(()=>{"use strict";Kt();Oi();fT=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},Cp=(t,e,n,r,o)=>{if(t=Ti(t,e),!!D(t))try{let s=t.call(e,e,n||e.state,r||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}},tr=(t,e,n)=>{if(!e)throw new Error("Element is required");Br(t,e,n);let r=fT(t,e);if(r){let{state:o,context:s}=e;return Cp(r,e,o,s,n)}},Tp=(t,e,n,r,o,s)=>{if(t=Ti(t,n),!!D(t))try{let i=t.call(n,e,n,r||n.state,o||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},rw=(t,e,n,r)=>{Br(t,n,e,r);let o=fT(t,n);if(o){let{state:s,context:i}=n;return Tp(o,e,n,s,i,r)}}});var sw,ml,iw=L(()=>{"use strict";sw={},ml={}});var Vr,aw=L(()=>{"use strict";Vr=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 n=parseInt(e[1]),r=e[2];return r==="ms"?n:r==="s"?n*1e3:r==="m"?n*6e4:r==="h"?n*36e5:0}});var Op,cw,Ii,uT,Hr,lw,dT,pT,fw,uw,hT,dw,gT,HB,pw,zB,WB,mT,yT,bT,_T,wT,Rp=L(()=>{"use strict";M();aw();Op="@symbo.ls/fetch:EARLY",cw=3e4,Ii=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},uT=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let r=t[n];if(!(r===void 0||typeof r=="string"||typeof r=="boolean")&&!(typeof r=="number"&&isFinite(r)))return!1}return!0},Hr=()=>Symbol.for(Op),lw=(t,e)=>{let n=[];for(let r in t||{}){let o=r.toLowerCase(),s={name:r,header:o,param:t[r],found:!1,value:void 0};for(let i in e||{})i.toLowerCase()===o&&(s.found=!0,s.value=e[i]);n.push(s)}return n},dT=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},pT=(t,e,n)=>{let r=Hr();if(HB(n),!t||typeof t!="object"){let i=globalThis[r];return i&&i.seeded?{carried:{},rpc:!1,maxAge:cw,seeded:!0}:null}globalThis[r]||(globalThis[r]={entries:{}});let o={};for(let{header:i,found:a,value:c}of lw(t.query,e))a&&(o[i]=c);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:cw;return{carried:o,rpc:t.rpc==="get",maxAge:s,seeded:!!globalThis[r].seeded}},fw=(t,e=cw,n)=>{let r=globalThis[Hr()],o=r&&r.entries&&r.entries[t];return!o||(delete r.entries[t],!(Date.now()-o.time<=e))?null:o.seeded?(r.stale&&n&&(o.seeded.taken=WB(r,t,n())),Promise.resolve(o.seeded)):Promise.resolve(o.answer).then(s=>s&&s.ok&&!s.bodyUsed?s:null,()=>null)},uw=()=>{let t=globalThis[Hr()];t&&t.entries&&(t.entries={})},hT=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:Ii(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),dw='script[type="application/json"][data-fetch-seed]',gT=t=>{let e=hT(t);return e.length?'<script type="application/json" data-fetch-seed>'+zr(e)+"<\/script>":""},HB=t=>{let e=er(globalThis.document,dw,{remove:!0});if(t===!1)return;let n=e&&e.value;if(!Array.isArray(n)||!n.length)return;let r=Hr(),o=globalThis[r]||(globalThis[r]={entries:{}});o.entries||(o.entries={}),o.seeded=!0;let s=Date.now();for(let c of n)!c||typeof c.k!="string"||typeof c.b!="string"||o.entries[c.k]||(o.entries[c.k]={time:s,seeded:{seeded:!0,status:c.s||200,type:c.t||"application/json",body:c.b}});let i=zo(globalThis.document)||{stamp:null,time:null},a=zB(t,i.stamp,i.time);a&&(o.stale=a,o.seedConfig=t&&typeof t=="object"?t:null)},pw="data-smbls-stale",zB=(t,e,n)=>{let r=globalThis.document&&globalThis.document.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute(pw))return!0;if(!t||typeof t!="object")return!1;if(t.maxAge!=null&&n!==null){let o=Vr(t.maxAge);if(o>0&&Date.now()-n>o)return!0}if(typeof t.isStale!="function")return!1;try{let o=t.isStale(e,{time:n});return o&&typeof o.then=="function"?Promise.resolve(o).then(Boolean,()=>!1):!!o}catch{return!1}},WB=(t,e,n)=>{let r={key:e,again:n,result:null,cacheKey:null};return(t.taken||(t.taken=[])).push(r),r},mT=(t,e)=>{let n=globalThis[Hr()];!n||!t||typeof t!="object"||(e.result=t,(n.results||(n.results=new WeakMap)).set(t,e))},yT=(t,e)=>{let n=globalThis[Hr()],r=n&&n.results&&t?n.results.get(t):null;r&&(r.cacheKey=e)},bT=()=>{let t=globalThis[Hr()];return!!(t&&t.stale&&!t.revalidated)},_T=async()=>{let t=globalThis[Hr()];if(!t||!t.stale||t.revalidated)return null;t.revalidated=!0;let e=await t.stale,n=t.taken||[];return t.taken=[],t.results=null,e?{taken:n,config:t.seedConfig||{}}:null},wT=t=>{let e=hT(t);if(!e.length)return"";let n=zr(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(Op)+"),r=globalThis[k]||(globalThis[k]={entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'}});var ST,Pp,xT,kT,vT,ET,hw=L(()=>{"use strict";ST=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),Pp=()=>globalThis[ST]||(globalThis[ST]={count:0,waiters:[]}),xT=()=>{Pp().count++},kT=()=>{let t=Pp();if(t.count=t.count>0?t.count-1:0,t.count===0&&t.waiters.length){let e=t.waiters;t.waiters=[];for(let n of e)n()}},vT=()=>Pp().count,ET=()=>{let t=Pp();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})}});var bw={};$(bw,{buildUrl:()=>mw,headerEntries:()=>PT,restAdapter:()=>DT,selectQuery:()=>TT,setup:()=>n3,withQuery:()=>yw});var mw,TT,OT,AT,KB,qB,GB,CT,YB,He,RT,XB,JB,PT,gw,ZB,QB,t3,e3,yw,n3,DT,LT=L(()=>{"use strict";Rp();hw();mw=(t,e,n)=>{let r=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${r}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},TT=({params:t,select:e,limit:n,offset:r,order:o,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),r&&(i.offset=r),s&&(i.single=!0),o&&(typeof o=="string"?i.order=o:Array.isArray(o)?i.order=o.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):o.by&&(i.order=`${o.by}:${o.asc===!1?"desc":"asc"}`)),i},OT=t=>Object.prototype.toString.call(t).slice(8,-1),AT=["auto","json","text","blob","arrayBuffer","stream","response"],KB={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},qB=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},GB=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},CT=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,YB=(t,e)=>{let n=t.body,r=e==="json"||e==="auto"&&/json/i.test(t.type);if(!r&&e!=="auto"&&e!=="text")return null;let o;try{o=r?n?JSON.parse(n):null:n}catch{return!1}return{data:o,error:null,status:t.status}},He=async(t,e,n,r)=>{let o=n??"auto";if(!AT.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${AT.join(", ")}`);xT();try{return await RT(t,e,o,r)}finally{kT()}},RT=async(t,e,n,r)=>{let o=r?await r:null;if(o&&o.seeded===!0){let i=YB(o,n);if(o.taken&&i!==!1){let a=i||await RT(t,e,n,Promise.resolve(new Response(o.body,{status:o.status,headers:{"content-type":o.type}})));return mT(a,o.taken),a}if(i)return i;o=i===!1?null:new Response(o.body,{status:o.status,headers:{"content-type":o.type}})}let s=o||await globalThis.fetch(t,e);if(n==="auto"){let i=await qB(s);return{data:i,error:s.ok?null:CT(i,s),status:s.status}}if(!s.ok){let i=await GB(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:CT(i,s),status:s.status}}return{data:await KB[n](s),error:null,status:s.status}},XB=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],JB=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||XB.includes(OT(t))),PT=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),gw=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of PT(r)){let i=o.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,o),e[o]=s}return e},ZB={"Content-Type":"application/json"},QB={"Content-Type":void 0},t3=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:r}of lw(t.query))e[n]=r;return{params:e,rpc:t.rpc==="get"}},e3="content-type",yw=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let r=new URL(t);for(let o of n)r.searchParams.set(o,e[o]);return r.toString()},n3=async({url:t,headers:e,auth:n,fetchOptions:r,early:o,reads:s,seed:i})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return DT(t,e,n,r,o,s,i)},DT=(t,e={},n,r={},o,s,i)=>{let a=n?.token||null,c=pT(dT(o,s),e,i),l=t3(s),f=S=>{if(!l)return null;let w={},_={},b={};for(let x in S){let C=x.toLowerCase();if(C==="authorization")return null;if(C===e3)continue;_[x]=S[x];let P=l.params[C];P?b[P]=S[x]:w[x]=S[x]}return{headers:w,adoptHeaders:_,query:b}},u=(S,w)=>{if(!c)return null;let _="";for(let b in w){let x=b.toLowerCase();if(x==="accept-language")_=String(w[b]);else if(c.carried[x]!==w[b])return null}try{return fw(Ii(S(),_),c.maxAge)}catch{return null}},d=(S,w,_,b,x,C,P)=>{if(!c||!c.seeded)return null;let R="";for(let j in w){let F=j.toLowerCase();if(F==="accept-language")R=String(w[j]);else if(F!=="accept")return null}try{return fw(Ii(S,R),c.maxAge,()=>p(_,b,x,S,C,P))}catch{return null}},p=(S,w,_,b,x,C)=>({method:S,from:w,params:_,send:()=>He(b,x,C,null)}),g=()=>a?{Authorization:`Bearer ${a}`}:null,h=S=>gw(e,g(),S),m=S=>({...r,...S}),y=(S,w,_)=>{if(!JB(w))return m({method:S,headers:gw(e,g(),ZB,_),body:JSON.stringify(w)});let b={method:S,headers:gw(e,g(),QB,_),body:w};return OT(w)==="ReadableStream"&&(b.duplex="half"),m(b)},k=(S,w)=>{let _=w||t;if(S&&(S.startsWith("http://")||S.startsWith("https://")))return S;let b=S&&!S.startsWith("/")?"/":"";return`${_}${b}${S||""}`};return{name:"rest",setToken:S=>{a=S},getSession:async()=>{if(!n?.sessionUrl)return a?{token:a}:null;let S=await He(k(n.sessionUrl,n.baseUrl),m({headers:h()}));return S.error?null:S.data},signIn:async S=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let w=await He(k(n.signInUrl,n.baseUrl),y("POST",S));return w.data?.token&&(a=w.data.token),w},signOut:async()=>(n?.signOutUrl&&await He(k(n.signOutUrl,n.baseUrl),m({method:"POST",headers:h()})),a=null,{error:null}),select:({from:S,params:w,select:_,limit:b,offset:x,order:C,single:P,headers:R,baseUrl:j,responseType:F})=>{let U=mw(j||t,S||"",TT({params:w,select:_,limit:b,offset:x,order:C,single:P})),et=h(R),Y=f(et);if(Y){let _t=m({headers:Y.headers}),wt=yw(U,Y.query);return He(wt,_t,F,d(wt,Y.headers,"select",S,w,_t,F)||u(()=>U,Y.adoptHeaders))}let rt=m({headers:et});return He(U,rt,F,d(U,rt.headers,"select",S,w,rt,F)||u(()=>U,rt.headers))},rpc:async({from:S,params:w,headers:_,baseUrl:b,responseType:x,read:C})=>{let P=uT(w),R=()=>mw(b||t,`rpc/${S}`,w),j=wt=>He(k(`rpc/${S}`,b),y("POST",w,_),x,wt),F=h(_),U=C===!0&&l&&l.rpc&&P?f(F):null,et=null;if(U)try{et=R()}catch{et=null}if(!et)return j(c&&c.rpc&&P?u(R,F):null);let Y=m({method:"GET",headers:U.headers}),rt=yw(et,U.query),_t=await He(rt,Y,x,d(rt,U.headers,"rpc",S,w,Y,x)||u(()=>et,U.adoptHeaders));return _t.status===405?j(null):_t},insert:({from:S,data:w,headers:_,baseUrl:b,responseType:x})=>He(k(S,b),y("POST",w,_),x),update:({from:S,data:w,params:_,method:b,headers:x,baseUrl:C,responseType:P})=>{let R=_?.id||w?.id,j=R?`${S}/${R}`:S;return He(k(j,C),y(b||"PATCH",w,x),P)},upsert:({from:S,data:w,params:_,method:b,headers:x,baseUrl:C,responseType:P})=>{let R=_?.id||w?.id,j=R?`${S}/${R}`:S;return He(k(j,C),y(b||"PUT",w,x),P)},delete:({from:S,params:w,headers:_,baseUrl:b,responseType:x})=>{let C=w?.id,P=C?`${S}/${C}`:S;return He(k(P,b),m({method:"DELETE",headers:h(_)}),x)}}}});var MT={};$(MT,{localAdapter:()=>IT,setup:()=>o3});var Dp,r3,o3,IT,$T=L(()=>{"use strict";Dp=(t,e)=>{if(!e)return!0;for(let n in e){let r=e[n];if(r===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(r)){if(!r.includes(t[n]))return!1}else if(typeof r=="object"){for(let o in r)if(o==="gt"&&!(t[n]>r[o])||o==="gte"&&!(t[n]>=r[o])||o==="lt"&&!(t[n]<r[o])||o==="lte"&&!(t[n]<=r[o])||o==="neq"&&t[n]===r[o]||o==="like"&&!String(t[n]).includes(r[o]))return!1}else if(t[n]!==r)return!1}return!0},r3=(t,{order:e,limit:n,offset:r,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 r&&(s=s.slice(r)),n&&(s=s.slice(0,n)),o?{data:s[0]||null,error:null}:{data:s,error:null}},o3=async({data:t,...e})=>IT(t,e),IT=(t={},e={})=>{let n={},r={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(o)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=r[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>Dp(h,u));return r3(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(Dp(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),k=y?p.findIndex(v=>Dp(v,y)):-1;if(k>-1){let v={...p[k]};Object.assign(p[k],m),h.push(p[k]),c(f,"UPDATE",p[k],v)}else{let v={id:m.id||++l,...m};p.push(v),h.push(v),c(f,"INSERT",v,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)Dp(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{r[f]||(r[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return r[f].push(p),()=>{let g=r[f].indexOf(p);g>-1&&r[f].splice(g,1)}}}}});var Ni={};$(Ni,{EARLY_KEY:()=>Op,SEED_BLOCK:()=>dw,STALE_ATTRIBUTE:()=>pw,createAdapter:()=>f3,createEarlySeedBlock:()=>gT,createEarlySeedScript:()=>wT,default:()=>T3,earlyKey:()=>Ii,executeFetch:()=>Iw,fetchFunctions:()=>v3,fetchPlugin:()=>C3,hasAdapter:()=>l3,initAdapterAuth:()=>Np,parseDuration:()=>Vr,queryClient:()=>k3,registerAdapter:()=>c3,requestsInFlight:()=>vT,resolveDb:()=>zT,revalidateSeed:()=>E3,seedIsStale:()=>bT,whenRequestsIdle:()=>ET});var s3,HT,Lp,$i,Ip,xw,i3,a3,c3,l3,f3,zT,WT,KT,fn,NT,un,Bp,_w,Ow,_l,yl,$p,kw,Fp,qT,Rw,GT,u3,Mp,d3,FT,ww,YT,XT,Mi,jT,p3,BT,h3,JT,Pw,wl,jp,Up,Sl,Dw,Np,Lw,Pn,nr,bl,Vp,g3,vw,Wr,Ew,Aw,Kr,UT,rr,m3,y3,b3,_3,Sw,xl,w3,Hp,ZT,Cw,Tw,QT,t1,S3,x3,Iw,k3,VT,v3,E3,A3,C3,T3,zp=L(()=>{"use strict";M();Lt();Rp();aw();LT();Rp();hw();s3=["select","rpc","insert","update","upsert","delete","subscribe"],HT={rest:()=>Promise.resolve(bw),local:()=>Promise.resolve().then(()=>($T(),MT))},Lp=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),$i=(()=>{if(typeof globalThis<"u"&&globalThis[Lp])return globalThis[Lp];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Lp,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Lp]}catch{}return t})(),Ip=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),xw=(()=>{if(typeof globalThis<"u"&&globalThis[Ip])return globalThis[Ip];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ip,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ip]}catch{}return t})(),i3=5e3,a3=t=>new Promise(e=>{if($i[t])return e($i[t]);let n=xw[t]||=[],r=!1,o=()=>{r||(r=!0,e($i[t]||null))};n.push(o),setTimeout(o,i3)}),c3=(t,e)=>{$i[t]=e;let n=xw[t];if(n&&n.length){xw[t]=[];for(let r of n)r()}},l3=t=>typeof t=="string"&&!!($i[t]||HT[t]),f3=t=>{let e={};for(let n of s3)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},zT=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,r=typeof e=="string"?e:typeof t=="string"?t:null;if(!r)return null;let o=$i[r]||HT[r];if(!o&&(o=await a3(r),!o))throw new Error(`Unknown db adapter: "${r}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${r}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},WT=t=>!!t&&!!t.isolateFetchCache,KT=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),fn=KT(),NT=new WeakMap,un=t=>{if(!WT(t))return fn;let e=NT.get(t);return e||NT.set(t,e=KT()),e},Bp=0,_w=new WeakMap,Ow=(t,e,n,r,o=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=r?`:${r}`:"",u=o?":p"+JSON.stringify(o):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},_l=(t,e)=>t.cache.get(e)||null,yl=(t,e,n,r,o=++Bp,s=!1)=>{let i={data:n,error:r,time:Date.now(),stale:s,seq:o};t.cache.set(e,i);let a=t.subscribers.get(e);if(a)for(let c of a)D(c)&&c(i);return i},$p=(t,e,n)=>{let r=e?t.cache.get(e):null;return r&&!r.error&&r.seq>n?r:null},kw=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,Fp=(t,e)=>{t.invalidatedAt.set(e,++Bp)},qT=(t,e)=>{t.cache.delete(e),Fp(t,e)},Rw=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)}:E(t)?{staleTime:Vr(t),gcTime:3e5}:{staleTime:Vr(t.stale||t.staleTime)||6e4,gcTime:Vr(t.gc||t.gcTime||t.expire)||3e5,key:t.key},GT=t=>!!t.ref&&t.element.__ref===t.ref,u3=({config:t,element:e,context:n})=>{try{return Dw(t,e,n)}catch{return null}},Mp=null,d3=()=>{Mp||(Mp=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:r,invalidatedAt:o,mounted:s}=fn;for(let[i,a]of e){let c=n.get(i);!(c&&c.size>0)&&t-a.time>(a.gcTime||3e5)&&e.delete(i)}for(let[i]of o)!e.has(i)&&!r.has(i)&&o.delete(i);for(let i of s)GT(i)||s.delete(i)},3e4),Mp.unref&&Mp.unref())};d3();FT=3,ww=t=>Math.min(1e3*2**t,3e4),YT=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:FT,delay:ww}:typeof n=="number"?{count:n,delay:ww}:{count:n.count??FT,delay:D(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:ww}},XT=async(t,e)=>{let{count:n,delay:r}=e,o;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(o=i.error,s<n){let a=D(r)?r(s,o):r;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<n){let a=D(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Mi={focus:new Set,online:new Set},jT=!1,p3=()=>{if(jT||typeof window>"u")return;jT=!0;let t=()=>{for(let n of Mi.focus)n()},e=()=>{for(let n of Mi.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},BT=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(E(t))return{from:t,method:"select",query:!0,on:"create"};if(A(t)){let r={...t};return r.from=r.from||n.__state||e.key,r.method=r.method||"select",r.on=r.on||"create",r.query===void 0&&(r.query=!0),r}return null},h3=["insert","update","upsert","delete"],JT=t=>h3.includes(t),Pw=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,wl=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},jp=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},Up=(t,e,n)=>{let r;if(!t)r=void 0;else if(D(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=D(s)?s(e,e.state):s}}return r},Sl=(t,e)=>D(t)?t(e,e.state):t,Dw=(t,e,n)=>Ow(t,Up(t.params,e,n),jp(e,n),wl(e,n),Sl(t.page,e),Sl(t.cursor,e)),Np=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(r,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:r,session:o,loading:!1}})};try{let r=await t.getSession();n(r?.user||null,r)}catch(r){console.warn("[fetch] Failed to restore auth session:",r.message)}t.onAuthStateChange&&t.onAuthStateChange((r,o)=>{n(o?.user||null,o)})},Lw=async(t,e)=>{if(D(t.select))return t.auth!==!1&&await Np(t,e),t;if(t.__resolved)return t.auth!==!1&&await Np(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=zT(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await Np(n,e),n):null},Pn=(t,e,...n)=>{let r=D(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},nr=(t,e,n,...r)=>{let o=t&&D(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},bl=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let o=new FormData(n);for(let[s,i]of o.entries())e[s]=i;return e}let r=n.querySelectorAll("input, textarea, select");for(let o=0;o<r.length;o++){let s=r[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},Vp=t=>t.responseType==="stream"||t.responseType==="response",g3=["Blob","File","ArrayBuffer","ReadableStream","Response"],vw=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||g3.includes(Object.prototype.toString.call(t).slice(8,-1))),Wr=(t,e,n,r={})=>{if(!n&&vw(e))return;let o=n&&n.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!vw(e)&&i in e?s.update(e,{preventFetch:!0,...r}):s.update({[i]:e},{preventFetch:!0,...r})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...r})}},Ew=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Aw=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),Kr=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},UT=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];D(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),D(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},rr=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=jp(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&jp(e,n)===i;if(t.enabled===!1||D(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||D(t.skip)&&t.skip(e,e.state))return;let l=await Lw(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:k,as:v,limit:S,offset:w,order:_,headers:b,baseUrl:x,responseType:C,page:P,cursor:R,infinite:j,placeholderData:F,initialData:U,select:et,keepPreviousData:Y}=t,rt=V=>(D(et)&&(V=et(V,e,e.state)),h&&(V=h(V,e,e.state)),V),_t=V=>{Kr(e,Aw(V)),Pn(e,"onFetchError",V),nr(t,e,"onFetchError",V)},wt=E(et)?et:void 0;if(d&&D(e.getQuery)){let V=e.getQuery(l.name||"paths");V&&(wt=V.select||V.length&&V.join(",")||wt)}let it=Up(p,e,n),K=Sl(P,e),G=Sl(R,e),nt=Pw(t),Q=Vp(t)||nt?null:Rw(g),ht=YT(t,nt||JT(u)),X=wl(e,n),J=Q?Ow(t,it,i,X,K,G):null,Ot=un(n);if(!s.__fetchInitialized&&J&&(s.__fetchInitialized=!0,U!==void 0)){let V=D(U)?U():U;yl(Ot,J,V,null)}if((u==="select"||u==="rpc")&&J&&Q&&!r.refresh&&!r.force){let V=_l(Ot,J);if(V&&!V.error){let q=Date.now()-V.time,gt=V.stale||q>(Q.staleTime||0);j&&I(V.data)&&!s.__pages&&(s.__pages=[V.data],UT(s,t,V.data));let xt=rt(V.data);if(!c())return;if(!gt){Kr(e,Ew),Wr(e,xt,v);return}Wr(e,xt,v)}else if(F!==void 0){let q=D(F)?F(e,e.state):F;q!==void 0&&Wr(e,q,v)}}let lt=J&&!r.force?Ot.active.get(J):null;if(lt&&!kw(Ot,J,_w.get(lt)||0)){try{let V=await Promise.race([lt,new Promise((q,gt)=>setTimeout(()=>gt("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(V?.error)_t(V.error);else if(V?.data!==void 0){let q=!j&&$p(Ot,J,_w.get(lt)||0),gt=rt(q?q.data:V.data);if(!c())return;Wr(e,gt,v),Pn(e,"onFetchComplete",gt),nr(t,e,"onFetchComplete",gt)}}catch(V){if(!c())return;V!=="DEDUP_TIMEOUT"&&_t(V)}return}let xn=!_l(Ot,J)?.data;Kr(e,{isFetching:!0,isLoading:xn,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pn(e,"onFetchStart"),nr(t,e,"onFetchStart");let ne=n?.analyze?.emitNetwork,Dt=ne?typeof performance<"u"?performance.now():Date.now():0;ne&&ne({phase:"start",mode:"query",from:f,method:u,cacheKey:J,lang:X});let kn=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let xt=await l.getSession();if(!c())return;if(y===!0&&!xt){let Mt={message:"Not authenticated"};return _t(Mt),{data:null,error:Mt}}}let V=l[u];if(!D(V))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let q={from:f,select:wt,params:it,single:m,limit:S,offset:w,order:_,headers:b,baseUrl:x};C!==void 0&&(q.responseType=C);let gt=wl(e,n);if(gt&&(q.headers={...q.headers,"Accept-Language":gt}),K!==void 0){if(A(K))K.offset!==void 0&&(q.offset=K.offset),K.limit!==void 0&&(q.limit=K.limit),K.cursor!==void 0&&(q.params={...q.params,cursor:K.cursor});else if(typeof K=="number"){let xt=t.pageSize||S||20;q.offset=(K-1)*xt,q.limit=xt}}if(G!==void 0&&(q.params={...q.params,cursor:G}),u==="insert"||u==="update"||u==="upsert"){let xt;if(k===!0||t.on==="submit")xt=bl(e);else if(I(k)){let Mt=bl(e);xt={};for(let Ro of k)xt[Ro]=Mt[Ro]}else e.state?.parse?xt=e.state.parse():A(e.state)&&(xt={...e.state});h&&(xt=h(xt,e,e.state)),q.data=xt}if(u==="rpc"){let xt=it;if(t.on==="submit"){let Mt=bl(e);xt=t.transformParams?t.transformParams(Mt,e,e.state):Mt}q.params=xt,q.read=!nt&&t.read!==!1}if(u==="subscribe"){if(D(s.__unsubscribe)){let Mt=s.__unsubscribe;s.__unsubscribe=null;try{Mt()}catch{}}let xt=l.subscribe({from:f,params:it,on:t.subscribeOn},(Mt,Ro,uC)=>{c()&&(Wr(e,Mt,v),Pn(e,"onFetchComplete",Mt),nr(t,e,"onFetchComplete",Mt))});return c()?(s.__unsubscribe=xt,{data:null,error:null,subscribed:!0}):(D(xt)&&xt(),{data:null,error:null,subscribed:!0})}return V(q)},re=++Bp,vn=XT(kn,ht);_w.set(vn,re),J&&Ot.active.set(J,vn);try{let V=await vn;if(J&&V&&!nt&&yT(V,J),nt&&t.invalidates&&V&&!V.error&&!V.subscribed&&ZT(Ot,t.invalidates,f),!c()||V?.subscribed)return;let{data:q,error:gt}=V||{};if(gt){J&&!$p(Ot,J,re)&&yl(Ot,J,null,gt,re),_t(gt),ne&&ne({phase:"error",mode:"query",from:f,method:u,cacheKey:J,error:gt.message||gt,durationMs:(typeof performance<"u"?performance.now():Date.now())-Dt});return}if(q!==void 0){let xt=q;if((u==="select"||u==="rpc")&&J){let Ro=!j&&$p(Ot,J,re);if(Ro)xt=Ro.data;else{let uC=yl(Ot,J,q,null,re,kw(Ot,J,re));uC.gcTime=Q?.gcTime||3e5}}let Mt=xt;if(j&&I(q)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(q):s.__pages.push(q),Mt=s.__pages.flat(),UT(s,t,q)),Mt=rt(Mt),!c())return;Kr(e,Ew),(!Y||Mt!==void 0)&&Wr(e,Mt,v),Pn(e,"onFetchComplete",Mt),nr(t,e,"onFetchComplete",Mt),ne&&ne({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:J,durationMs:(typeof performance<"u"?performance.now():Date.now())-Dt})}}catch(V){if(!c())return;_t(V),ne&&ne({phase:"error",mode:"query",from:f,method:u,cacheKey:J,error:V.message||String(V),durationMs:(typeof performance<"u"?performance.now():Date.now())-Dt})}finally{J&&Ot.active.get(J)===vn&&Ot.active.delete(J)}},m3=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||rr;if(r==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(r==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else r==="stateChange"&&y3(t,e,n,s)},y3=(t,e,n,r)=>{let o=e.__ref,s,i=W(()=>{let a;try{a=JSON.stringify([Up(t.params,e,n)??null,D(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,D(t.skip)?!!t.skip(e,e.state):t.skip===!0,Sl(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,queueMicrotask(()=>r(t,e,n)))});Array.isArray(o.__effects)?o.__effects.push(i):o.__fetchListeners.push(()=>i.dispose())},b3=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),p3();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:Vr(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&rr(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=Vp(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=Dw(t,e,n),f=_l(un(n),l),u=Rw(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&rr(t,e,n,{force:!0})};Mi.focus.add(c),r.__fetchCleanups.push(()=>Mi.focus.delete(c))}if(a){let c=()=>rr(t,e,n,{force:!0});Mi.online.add(c),r.__fetchCleanups.push(()=>Mi.online.delete(c))}},_3=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():A(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=D(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&Wr(t,i,o),s},Sw=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let r=n.__optimisticSnapshot;r!==void 0&&(Wr(t,r,e.as),delete n.__optimisticSnapshot)},xl=t=>{if(!t)return()=>!0;if(E(t))return e=>e.includes(t);if(I(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):D(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},w3=(t,e)=>{let n=[];for(let r of t.mounted){if(!GT(r)){t.mounted.delete(r);continue}let o=u3(r);o&&e(o)&&n.push(rr(r.config,r.element,r.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},Hp=(t,e)=>{uw();for(let[n,r]of t.cache)e(n)&&(r.stale=!0,Fp(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&Fp(t,n);return w3(t,e)},ZT=(t,e,n)=>{let r=(I(e)?e:[e]).map(o=>o===!0||o==="*"?s=>s.startsWith(n+":"):o?xl(o):()=>!1);return Hp(t,o=>r.some(s=>s(o)))},Cw=(t,e)=>{for(let[n]of t.cache)e(n)&&qT(t,n);for(let[n]of t.active)e(n)&&Fp(t,n)},Tw=()=>!0,QT=(t,e)=>_l(t,e)?.data??void 0,t1=(t,e,n)=>{let r=_l(t,e),o=D(n)?n(r?.data):n;yl(t,e,o,null)},S3=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await Lw(r,n);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:k,onSuccess:v,onError:S,onSettled:w}=t,_;if(c===!0||u==="submit")_=bl(e);else if(I(c)){let P=bl(e);_={};for(let R of c)_[R]=P[R]}else e.state?.parse?_=e.state.parse():A(e.state)&&(_={...e.state});l&&(_=l(_,e,e.state)),D(k)&&k(_,e,e.state);let b=y?_3(e,t,_):null;Kr(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pn(e,"onFetchStart"),nr(t,e,"onFetchStart");let x=n?.analyze?.emitNetwork,C=x?typeof performance<"u"?performance.now():Date.now():0;x&&x({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let rt=await o.getSession();if(d===!0&&!rt){b!==void 0&&Sw(e,t);let _t={message:"Not authenticated"};Pn(e,"onFetchError",_t),nr(t,e,"onFetchError",_t);return}}let P=o[i];if(!D(P))return;let R={from:a,data:_,headers:p,baseUrl:g};h!==void 0&&(R.responseType=h),t.params&&(R.params=Up(t.params,e,n));let j=wl(e,n);j&&(R.headers={...R.headers,"Accept-Language":j});let F=YT(t,!0),U=await XT(()=>P(R),F),{data:et,error:Y}=U||{};if(Y){b!==void 0&&Sw(e,t),Kr(e,Aw(Y)),Pn(e,"onFetchError",Y),D(S)&&S(Y,_,e),D(w)&&w(null,Y,_,e),x&&x({phase:"error",mode:"mutation",from:a,method:i,error:Y.message||String(Y),durationMs:(typeof performance<"u"?performance.now():Date.now())-C});return}if(delete s.__optimisticSnapshot,Kr(e,Ew),et!==void 0&&(f||!vw(et))){let rt=f?{[f]:et}:et;e.state?.update&&e.state.update(rt,{preventFetch:!0})}Pn(e,"onFetchComplete",et),nr(t,e,"onFetchComplete",et),D(v)&&v(et,_,e),D(w)&&w(et,null,_,e),x&&x({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-C}),m&&ZT(un(n),m,a)}catch(P){b!==void 0&&Sw(e,t),Kr(e,Aw(P)),Pn(e,"onFetchError",P),nr(t,e,"onFetchError",P),D(S)&&S(P,_,e),D(w)&&w(null,P,_,e),x&&x({phase:"error",mode:"mutation",from:a,method:i,error:P.message||String(P),durationMs:(typeof performance<"u"?performance.now():Date.now())-C})}finally{s.__fetching=!1}},x3=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);D(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])un(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},Iw=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=vt(t,e);if(!s)return;let i=I(s)?s.map(f=>BT(vt(f,e),e)).filter(Boolean):[BT(s,e)].filter(Boolean),a=e.__ref,c=un(r);if(a.__fetchMounted)for(let f of a.__fetchMounted)c.mounted.delete(f);a.__fetchMounted=[],!a.__fetchDisposer&&I(a.__effects)&&(a.__fetchDisposer={dispose:()=>x3(a)},a.__effects.push(a.__fetchDisposer));let l=!WT(r);for(let f of i){let u=JT(f.method),d=u?S3:rr,p=!u&&!Pw(f)&&f.method!=="subscribe";if(f.on==="create"?d(f,e,r):queueMicrotask(()=>m3({...f,__runner:d},e,r)),p&&f.on==="create"&&(l&&(f.refetchInterval||f.refetchOnWindowFocus!==!1||f.refetchOnReconnect!==!1)&&b3(f,e,r),!Vp(f))){let g={element:e,ref:a,config:f,context:r};c.mounted.add(g),a.__fetchMounted.push(g)}}a.refetch=f=>{for(let u of i)rr(u,e,r,{force:!0,...f})},a.fetchNextPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__nextPageParam;if(u==null)return;let d={...f,cursor:u};rr(d,e,r,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let f=i[0];if(!f||!f.infinite)return;let u=a.__prevPageParam;if(u==null)return;let d={...f,cursor:u};rr(d,e,r,{direction:"previous",force:!0})}},k3={invalidateQueries:t=>Hp(fn,xl(t)),removeQueries:t=>{Cw(fn,t?xl(t):Tw)},getQueryData:t=>QT(fn,t),setQueryData:(t,e)=>{t1(fn,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=un(e),o=await Lw(n,e);if(!o)return;let s=t.method||"select",i=jp(null,e),a=wl(null,e),c=Ow({...t,method:s},t.params,i,a),l=o[s];if(!D(l))return;let f={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};a&&(f.headers={...f.headers,"Accept-Language":a}),t.responseType!==void 0&&(f.responseType=t.responseType),s==="rpc"&&(f.read=!Pw(t)&&t.read!==!1);let u=++Bp,d=await l(f);if(d?.data!==void 0&&!d?.error&&!Vp(t)&&!$p(r,c,u)){let p=yl(r,c,d.data,null,u,kw(r,c,u));p.gcTime=Rw(t.cache)?.gcTime||3e5}return d},getCache:()=>fn.cache,clear:()=>Cw(fn,Tw),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of fn.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||qT(fn,n))}},VT=(t,e)=>A(t)?Dw({method:"select",...t},e,e?.context):t,v3={invalidateQueries(t){return Hp(un(this?.context),xl(t))},removeQueries(t){Cw(un(this?.context),t?xl(t):Tw)},getQueryData(t){return QT(un(this?.context),VT(t,this))},setQueryData(t,e){t1(un(this?.context),VT(t,this),e)}},E3=async t=>{let e=await _T();if(!e)return null;let{taken:n,config:r}=e,o=new Set,s=[];for(let c of n)c.cacheKey?o.add(c.cacheKey):s.push(c);uw();let i=[],a=async c=>{try{let l=await c.again.send();if(!l||l.error)return;let f=c.result?c.result.data:void 0;if(A3(l.data,f))return;let{method:u,from:d,params:p}=c.again;i.push({method:u,from:d,params:p,data:l.data,previous:f})}catch{}};if(await Promise.all([o.size?Hp(fn,c=>o.has(c)):null,...s.map(a)]),i.length&&D(r.onRefresh))try{r.onRefresh(i,t)}catch(c){console.error("[@symbo.ls/fetch] seed.onRefresh failed:",c)}return{queries:o.size,reads:s.length,changed:i.length}},A3=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return!1}},C3={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||un(t.context).active.clear(),Iw(e,t,t.state,t.context))}},T3=Iw});function vl(t){let e=this,{__ref:n}=e,r=[].concat(t),o=n.root[r[0]];if(!r||!r.length)return console.log(r,"on",e.key,"is undefined");for(;o.key===r[0]&&(r.shift(),!!r.length);)if(o=o[r[0]],!o)return;return o}function $w(t){let e=this,{parent:n}=e;if(D(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function Nw(t){let e=this,{__ref:n}=e,r=n?.__children;if(r)for(let o=0;o<r.length;o++){let s=r[o],i=e[s];if(s===t)return i;if(D(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 Fw(t,e=[]){let n=this,{__ref:r}=n,o=r?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=n[i];if(i===t)e.push(a);else if(D(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 qp(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(A(r)&&o)qp.call(o,r);else if(r!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(r).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function n1(t){let e=this;if(tr("beforeRemove",e,t)===!1)return e;D(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=Nc(e.parent.__ref.__children,e.key)),tr("remove",e,t)}function jw(t){return this[t]}function Bw(t,e){let n=this;if(t)return n.update(t,e),n}function Uw(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Vw(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function El(){return this.getRef().path}function Cl(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=e1();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=D(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=e1()),t?e?.[t]:e}function Tl(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 Ol(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Rl(t){let e=this.getRoot()?.context;return t?e[t]:e}function Pl(t){let e=this.context;return t?e[t]:e}function Gp(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||Mr.has(n)&&!Vc.has(n)||e.push(n);return e}function Yp(t=[]){let e=this,n={},r=Gp.call(e),o=r.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<r.length;i++){let a=r[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=D(c&&c.parse)?c.parse():c;n[a]=D(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else jt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function kl(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=Yp.call(n,t),o=t.length?new Set(t):null;for(let s in r){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=r[s];Array.isArray(i)?r[s]=i.map(a=>H(a)?kl.call(a,t,e):a):H(i)&&(r[s]=kl.call(i,t,e))}return r}function ji(...t){if(qr!=="test"&&qr!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(r=>console.log(`%c${r}:
22
+ `,"font-weight: bold",e[r])):(console.log(n.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function zw(...t){(qr==="test"||qr==="development")&&console.log(...t)}function Dl(...t){(qr==="test"||qr==="development")&&console.warn(...t)}function Wo(...t){if(qr==="test"||qr==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&ji.call(this),new Error(...t)}}function Ll(){let t=this,{key:e,parent:n}=t,{__children:r}=n.__ref,o=r.indexOf(e),s=r[o+1];return n[s]}function Il(t){let e=t||this,{key:n,parent:r}=e,{__children:o}=r.__ref;if(!o)return;let s=o.indexOf(n);return r[o[s-1]]}function Ml(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,r={},o;for(let s in t)t[s]!==n[s]&&(o=!0,r[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(r,ut(n));for(let a in r)n[a]=r[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(r),clearTimeout(a)},i)}}}function Ww(t,...e){let n=this.context,r=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(r&&!jo(r))try{let o=r.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{Wo.call(this,s)}),o}catch(o){if(Wo.call(this,o),n?.strictMode)throw o}}async function $l(){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 Wp();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Wp();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=Wp().then(({resolveDb:o})=>o(e));e.__resolving=n;let r=await n;if(e.__resolved=r,t.context.fetch=r,delete e.__resolving,r?.getSession){let{initAdapterAuth:o}=await Wp();await o(r,t.context)}return r}function Nl(t){let e=this,n=t||ml.useStateQuery||e.context?.useStateQuery;if(!n)return null;let r={};if(Mw(e,r),n===!0)return r;let o=$3[n];return o?o(r):r}function Kw(t,e){return!!(Nr.has(t)||e?.context?.methods?.[t])}var qr,Kp,Al,Fi,e1,Hw,O3,Wp,Mw,R3,r1,P3,D3,L3,I3,M3,$3,o1=L(()=>{"use strict";ow();$o();Kt();An();Qd();xi();iw();qr="production";Kp=null,Al=t=>{Kp=t||null},Fi=(t,e)=>{t&&e&&Kp===t&&(Kp=e)},e1=()=>Kp||null;Hw=(t,e,n,r)=>Object.defineProperty(t,e,{get:n,set:r});O3="[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.",Wp=()=>Promise.resolve().then(()=>(zp(),Ni)).catch(t=>{throw new Error(O3,{cause:t})});Mw=(t,e)=>{let n=t.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&R3(e,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Mw(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&Mw(i,e)},R3=(t,e)=>{let r=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<r.length;s++){let i=r[s];s===r.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},r1=(t,e=0)=>{let n=" ".repeat(e),r=Object.entries(t);return r.length?r.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
+ ${r1(i,e+1)}
24
24
  ${n}}`).join(`
25
- `):""},SB=t=>`{
26
- ${fT(t,1)}
27
- }`,xB=t=>{let e={fields:{},include:[]},n=(r,o)=>{let s=[];for(let i in r)if(r[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),n(r[i],a)}s.length&&(e.fields[o||"_root"]=s)};return n(t,""),e},kB=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:n,expand:r}=e(t),o=[];return n&&o.push(`$select=${n}`),r&&o.push(`$expand=${r}`),o.join("&")},vB=(t,e)=>{let n=[],r=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&r.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,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=n.length?n.join(", "):"*",l=r.length?`
25
+ `):""},P3=t=>`{
26
+ ${r1(t,1)}
27
+ }`,D3=t=>{let e={fields:{},include:[]},n=(r,o)=>{let s=[];for(let i in r)if(r[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),n(r[i],a)}s.length&&(e.fields[o||"_root"]=s)};return n(t,""),e},L3=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:n,expand:r}=e(t),o=[];return n&&o.push(`$select=${n}`),r&&o.push(`$expand=${r}`),o.join("&")},I3=(t,e)=>{let n=[],r=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&r.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,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=n.length?n.join(", "):"*",l=r.length?`
28
28
  `+r.join(`
29
29
  `):"";return`SELECT ${c}
30
- FROM ${a}${l}`},EB=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;r[s]===!0?e.push(i):n(r[s],i)}};return n(t,""),e},AB={graphql:SB,"json-api":xB,odata:kB,sql:vB,paths:EB}});var CB,gw,dT=L(()=>{"use strict";Rd();CB={snapshotId:Mc},gw=(t,e)=>{let n=t.__ref,{currentSnapshot:r,calleeElement:o}=e;if(!o||o===t){let a=CB.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return r<i?[i,o,!0]:[i,o]}});var Op,mw,pT=L(()=>{Op=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),mw=t=>typeof t=="string"&&Op.has(t)});var Rp,vi,xl,hT=L(()=>{"use strict";Rp="smbls_lang",vi=t=>t&&t.storageLangKey||Rp,xl=(t,e)=>t||e&&e.defaultLang||"en"});async function yw(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 gT=L(()=>{"use strict"});var Ei,Ai,kl,Be,Nr,Ci,vl,an,Pp,TB,Fr,OB,$o,No,bw,mT=L(()=>{"use strict";Ei=t=>t!=="latest"?`@${t}`:"",Ai=t=>t?`/${t}`:"",kl=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),r=e.startsWith("@")?2:1;return{name:n.slice(0,r).join("/"),subpath:n.slice(r).join("/")}},Be={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${Be.skypack.url}/${t}${Ei(e)}${Ai(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${Be.esmsh.url}/${t}${Ei(e)}${Ai(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${Be.unpkg.url}/${t}${Ei(e)}${Ai(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${Be.jsdelivr.url}/${t}${Ei(e)}${Ai(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${Be.symbols.url}/${t}${Ei(e)}${Ai(n)}/+esm`}},Nr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Ci=(t={})=>{let{packageManager:e}=t;return Nr[e]||null},vl=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},an=(t,e="latest",n="esmsh")=>{let r=Be[n]||Be.esmsh,{name:o,subpath:s}=kl(t);return r.formatUrl(o||t,vl(e),s)},Pp=(t,e="latest",n="esmsh")=>{let r=Be[n]||Be.esmsh,o=vl(e),{name:s,subpath:i}=kl(t);return`${r.url}/${s||t}${Ei(o)}${Ai(i)}/`},TB=/^node:|^@symbo-ls\//,Fr=t=>typeof t=="string"&&TB.test(t),OB=/[<>…]/,$o=t=>typeof t=="string"&&OB.test(t),No=t=>!!t&&typeof t=="object"&&!Array.isArray(t),bw=(t,e="skypack",n={})=>{let r=t.dependencies;if(!No(r))return"";let o=Object.keys(r);if(!o.length)return"";let s=n.pin||{},i={};for(let f of o){if(Fr(f)||$o(f))continue;let u=s[f]||r[f]||"latest";i[f]=an(f,u,e),f.endsWith("/")||(i[f+"/"]=Pp(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
30
+ FROM ${a}${l}`},M3=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;r[s]===!0?e.push(i):n(r[s],i)}};return n(t,""),e},$3={graphql:P3,"json-api":D3,odata:L3,sql:I3,paths:M3}});var N3,qw,s1=L(()=>{"use strict";Jd();N3={snapshotId:Zc},qw=(t,e)=>{let n=t.__ref,{currentSnapshot:r,calleeElement:o}=e;if(!o||o===t){let a=N3.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return r<i?[i,o,!0]:[i,o]}});var Xp,Gw,i1=L(()=>{Xp=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Gw=t=>typeof t=="string"&&Xp.has(t)});var Jp,Bi,or,Zp,Qp,th,Ko,qo,Yw,a1=L(()=>{"use strict";Jp="smbls_lang",Bi=t=>t&&t.storageLangKey||Jp,or=(t,e)=>t||e&&e.defaultLang||"en",Zp=(t,e)=>{if(!e)return null;let n=Array.isArray(e.languages)&&e.languages.length?e.languages:Object.keys(e.translations||{}),r=/^\/([^/?#]+)/.exec(String(t||""));if(!r)return null;let o=r[1].toLowerCase();for(let s of n)if(typeof s=="string"&&s.toLowerCase()===o)return s;return null},Qp=(t,e)=>{let n=t&&Array.isArray(t.languages)&&t.languages.length?t.languages.filter(o=>typeof o=="string"):Object.keys(t&&t.translations||{}),r=t&&t.addressLang;return{languages:n,address:r===!1?!1:r==="fallback"?"fallback":!0,fallback:or(e,t)}},th=(t,e,n)=>{let r=null;if(t&&t.address!==!1){let o=/^\/([^/?#]+)/.exec(String(e||"")),s=t&&t.languages||[];if(o){let i=o[1].toLowerCase();for(let a=0;a<s.length&&!r;a++)String(s[a]).toLowerCase()===i&&(r=s[a])}}return r&&(t.address!=="fallback"||!n)?r:n||t&&t.fallback||""},Ko=({polyglot:t,pathname:e,stored:n,stateLang:r}={})=>th(Qp(t,r),e,n),qo=t=>{try{let e=t&&t.location||typeof globalThis<"u"&&globalThis.location;return e&&typeof e.pathname=="string"?e.pathname:""}catch{return""}},Yw=({polyglot:t,translations:e,lang:n,pathname:r,attrs:o=""}={})=>{if(!e||typeof e!="object")return"";let s=t&&t.storagePrefix||"",i=t&&t.storageLangKey||"",a=[];for(let c in e){let l=e[c];l&&typeof l=="object"&&a.push(`localStorage.setItem(${JSON.stringify(s+c)},${JSON.stringify(JSON.stringify(l))})`)}if(i){let c=n||Zp(r,t)||or(void 0,t);a.push(`if(!localStorage.getItem(${JSON.stringify(i)}))localStorage.setItem(${JSON.stringify(i)},${JSON.stringify(c)})`)}return a.length?`<script${o}>try{${a.join(";")}}catch(e){}<\/script>`:""}});async function Xw(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 c1=L(()=>{"use strict"});var Ui,Vi,Fl,ze,Gr,Hi,jl,dn,eh,F3,Yr,j3,Go,Yo,Jw,l1=L(()=>{"use strict";Ui=t=>t!=="latest"?`@${t}`:"",Vi=t=>t?`/${t}`:"",Fl=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),r=e.startsWith("@")?2:1;return{name:n.slice(0,r).join("/"),subpath:n.slice(r).join("/")}},ze={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${ze.skypack.url}/${t}${Ui(e)}${Vi(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${ze.esmsh.url}/${t}${Ui(e)}${Vi(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${ze.unpkg.url}/${t}${Ui(e)}${Vi(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${ze.jsdelivr.url}/${t}${Ui(e)}${Vi(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${ze.symbols.url}/${t}${Ui(e)}${Vi(n)}/+esm`}},Gr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Hi=(t={})=>{let{packageManager:e}=t;return Gr[e]||null},jl=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},dn=(t,e="latest",n="esmsh")=>{let r=ze[n]||ze.esmsh,{name:o,subpath:s}=Fl(t);return r.formatUrl(o||t,jl(e),s)},eh=(t,e="latest",n="esmsh")=>{let r=ze[n]||ze.esmsh,o=jl(e),{name:s,subpath:i}=Fl(t);return`${r.url}/${s||t}${Ui(o)}${Vi(i)}/`},F3=/^node:|^@symbo-ls\//,Yr=t=>typeof t=="string"&&F3.test(t),j3=/[<>…]/,Go=t=>typeof t=="string"&&j3.test(t),Yo=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Jw=(t,e="skypack",n={})=>{let r=t.dependencies;if(!Yo(r))return"";let o=Object.keys(r);if(!o.length)return"";let s=n.pin||{},i={};for(let f of o){if(Yr(f)||Go(f))continue;let u=s[f]||r[f]||"latest";i[f]=dn(f,u,e),f.endsWith("/")||(i[f+"/"]=eh(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
31
31
  "imports": ${JSON.stringify(i,null,2)}
32
- }`;return`${a}${l}${c}`}});var _w,yT=L(()=>{"use strict";_w=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),r=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${r}, ${n}`}});var ww,bT=L(()=>{"use strict";ww=(t,e)=>{let n=setTimeout(()=>{let{props:r}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(r.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(n)})}});var Sw,_T=L(()=>{"use strict";Sw=function(e){let n=[0,1];for(let r=2;r<=e;r++)n[r]=n[r-1]+n[r-2];return n[e]}});var xw,wT=L(()=>{"use strict";xw=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Ti(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}async function Tw(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}var kw,vw,Ew,Aw,Cw,ST=L(()=>{"use strict";kw=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("script");i.type=r,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}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),vw=(t,e=document,n="text/javascript")=>new Promise((r,o)=>{let s=e.createElement("script");s.type=n,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),r()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),Ew=(t,e=document,n,r="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=r,s.text=o.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},Aw=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),Cw=(t,e=!1,n=document,r="text/javascript",o="smbls-script")=>{try{let s=n.createElement("script");s.type=r,s.async=e,s.id=o,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}}});function jo(t,e){if(!e||typeof e!="object")return t;let n=o=>!IB(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:Dp(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function Rw(t,e){if(!t||!e)return;let n=e.split("."),r=t;for(let o of n){if(r==null||typeof r!="object")return;r=r[o]}return r}function MB(t,e){let n=Rw(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!fi(n))return n}function $B(t,e,n){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=MB(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??Rw(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??Rw(a,m)??p}));return f}function xT(t){if(!A(t))return{};let e={...t};for(let[n,r]of Object.entries(e))if(typeof r=="function"){let o=r.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof r=="string"){let o=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[n]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(r.includes("=>")&&r.includes("s.")){let i=r.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}fi(r)&&delete e[n]}return e}function Lw(t,e,n,{isProduction:r=!1,channel:o="production"}={}){let s=t.pages?.[e],i=A(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=xT(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=xT(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?r?d.title=m:o==="development"?d.title=`${m} / dev:symbo.ls`:o==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=$B(d,t,n),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 p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=jo(d,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let _=y.replace(/\{\{[^}]*\}\}/g,"").trim();_?d[m]=_:m==="title"?d[m]=h:delete d[m]}return d}var W,Lo,Io,El,Pw,RB,Tn,PB,Oi,Fo,jr,DB,LB,Dw,IB,Ow,Dp,kT=L(()=>{"use strict";qt();pi();W=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},Lo=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),Io=(t,e,{remove:n=!1,warn:r}={})=>{if(!t||typeof t.querySelector!="function")return null;let o=null;try{o=t.querySelector(e)}catch{return null}if(!o)return null;n&&o.parentNode&&o.parentNode.removeChild(o);let s;try{s=JSON.parse(o.textContent||"")}catch(i){r&&r(i)}return{value:s,block:o}},El='script[type="application/json"][data-brender="registry"]',Pw=t=>'<script type="application/json" data-brender="registry">'+Lo(t)+"<\/script>",RB=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${W(n)}"`).join(" "),Tn=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},PB=new Set(["jsonLd","styles","scripts"]),Oi=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let r=typeof n=="string"?n:JSON.stringify(n),o=String(r).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Tn(r)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let r=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Tn(r)}">${r}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let r=typeof n=="string",o=r?n:n.src;if(!o&&!n.body)continue;let s=[];o&&s.push(`src="${W(o)}"`),r||(n.type&&s.push(`type="${W(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${W(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${W(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${W(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${W(o||Tn(n.body||""))}"`;if(!r&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Fo=t=>`${t.hreflang||""}|${t.href||""}`,jr=t=>A(t)?Tn(JSON.stringify(t)):String(t),DB=(t,e,n)=>t==="favicons"?Array.isArray(e)&&(typeof n=="string"||A(n))?` data-smbls-favicon="${W(jr(n))}"`:"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${W(e)}"`:"",LB=t=>A(t)?` data-smbls-alternate="${W(Fo(t))}"`:"",Dw=(t,e)=>{e||(t={...t,robots:"noindex"});let n=Object.entries(t).reduce((r,[o,s])=>{if(!s&&s!==0&&s!==!1||PB.has(o))return r;if(o==="title")return r.push(`<title>${W(s)}</title>`),r;if(o==="canonical")return r.push(`<link rel="canonical" href="${W(s)}">`),r;if(o==="manifest")return r.push(`<link rel="manifest" href="${W(s)}">`),r;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{let u=DB(o,s,f);if(typeof f=="string")r.push(`<link rel="icon" href="${W(f)}"${u}>`);else if(typeof f=="object"){let d=RB(f);/rel=/.test(d)?r.push(`<link ${d}${u}>`):r.push(`<link rel="icon" ${d}${u}>`)}}),r;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(f&&typeof f=="object"){let u=Object.entries(f).filter(([d,p])=>p!==void 0).map(([d,p])=>`${d}="${W(p)}"`).join(" ");r.push(`<link rel="alternate" ${u}${LB(f)}>`)}}),r;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")r.push(`<meta ${u}="${W(l)}" content="${W(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")r.push(`<meta ${u}="${W(l)}" content="${W(d)}">`);else if(typeof d=="object"){let p=Object.entries(d).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${W(h)}"`).join(" ");r.push(`<meta ${p}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${W(g)}"`).join(" ");r.push(`<meta ${d}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),r}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),r}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"),r}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"),r}return i(o,s),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">']);return n.push(...Oi(t)),n.join(`
33
- `)},IB=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),Ow=t=>typeof t=="string"&&t.length>0,Dp=t=>{if(!t||typeof t!="object")return null;if(Ow(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:Ow(e.src)?e.src:Ow(e.storageUrl)?e.storageUrl:null}});var Lp,Iw,vT=L(()=>{"use strict";qt();Lp=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),Iw=(t,e)=>(t=parseFloat(t),A(e)&&(e=Object.values(e)),Lp(t,e))});function Uo(t){let e=String(t||"").trim();if(!e)return{owner:Mw,key:"",full:""};let n=null,r=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),r=e.slice(s+1)}r=r.replace(/\.symbo\.ls$/iu,""),n||(n=Mw);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function Fp(t,e={}){if((e.provider||"kv")==="api")return MT(t,e);let r=await h3(t,e);return r||MT(t,e)}async function h3(t,e={}){let n=e.kvBaseUrl||NB,r=e.env||"production",o=`${n}/kv/${encodeURIComponent(t)}?env=${r}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function MT(t,e={}){let n=e.apiBaseUrl||FB,{key:r}=Uo(t);try{let o=`${n}/core/projects/libraries/available?search=${encodeURIComponent(r)}&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(p=>{let{key:g}=Uo(p?.key);return g.toLowerCase()===r.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/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 $T(t,e={}){if(A(t))return t;if(E(t)){let{full:n}=Uo(t);if(!n)return null;try{let r=await Fp(n,e);return r||console.warn(`[smbls] Shared library "${n}" not found`),r}catch(r){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,r.message),null}}return null}async function Ll(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async r=>{if(cn(r)){let o=await $T(BT(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return $T(r,e)}))).filter(Boolean)}var Mw,NB,FB,Ri,NT,jB,BB,ET,FT,AT,jT,UB,Tl,Fw,cn,BT,$w,jw,VB,HB,UT,Bw,VT,CT,Bo,Uw,zB,Br,WB,HT,zT,TT,qB,KB,GB,YB,OT,Ip,XB,WT,Nw,qT,ZB,RT,JB,QB,t3,e3,Mp,Vw,n3,r3,o3,PT,Ol,s3,Cl,$p,Pi,Di,DT,Np,Al,i3,a3,LT,IT,Rl,c3,l3,f3,u3,d3,p3,KT,Pl,Dl,GT=L(()=>{"use strict";qt();Eo();Dd();Sn();Mw="system",NB="https://smbls-kv.nika-980.workers.dev",FB="https://api.symbols.app";Ri=(t,e,n,r)=>{for(let o in e){let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?A(t[o])&&A(e[o])&&Ri(t[o],e[o],n,s):t[o]=e[o])}},NT=(t,e,n)=>{if(!A(t)||!e.size)return t;let r=`${n}/`,o=!1;for(let i of e)if(i.startsWith(r)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=NT(t[i],e,a))}return s},jB=new Set,BB=new Set(["components","pages","functions","snippets","methods"]),ET=(t,e)=>e===""&&BB.has(t),FT=["fontFamily","fontfamily","font_family","FONT_FAMILY"],AT=t=>{let e=new Map;if(!A(t))return e;for(let n of FT){let r=t[n];if(A(r))for(let o in r)!A(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},jT=(t,e)=>{for(let n of FT){let r=t[n];if(!A(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!A(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},UB=t=>t.replace(/\.js$/iu,""),Tl=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!E(n))continue;let r=n.split("/").map(o=>UB(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},Fw=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),cn=t=>A(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),BT=t=>t.library!==void 0?t.library:t.key??t.name,$w=new Set,jw=()=>{$w.clear()},VB=(t,e)=>{let n=e.filter(r=>!$w.has(r));if(n.length){for(let r of n)$w.add(r);tt()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(r=>`methods.${r}`).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.`)}},HB=(t,e,n)=>{let r=null;for(let o in t)if(vo(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)vo(s)||(r[s]=t[s])}return r||t},UT=(t,e)=>{let n=Tl(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},Bw=["functions","methods","snippets"],VT=["components","pages"],CT=Symbol.for("smbls.libraryScope"),Bo="__libraryScopes",Uw=new Map,zB=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),Br=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),WB=/const __scope = |const __peers_* = |const _s = el\?\.scope|\?\.context\?\.globalScope\?\./,HT=t=>{try{return Oe(t)}catch{return null}},zT=t=>{if(typeof t!="function")return null;let e=HT(t);return E(e)&&WB.test(e)&&se(e)?e:null},TT=t=>E(t)&&se(t)||zT(t)!==null,qB=t=>{let e=t.globalScope;return A(e)&&Object.keys(e).some(n=>TT(e[n]))?!0:Bw.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>TT(r[o]))})},KB=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!A(r)||!A(o)||!qB(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||Br(r,i)&&s++;return s},GB=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const _s = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const _s = $RESOLVE($1);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],YB=t=>{let e=t.split(""),n=[],r=0,o=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
32
+ }`;return`${a}${l}${c}`}});var Zw,f1=L(()=>{"use strict";Zw=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),r=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${r}, ${n}`}});var Qw,u1=L(()=>{"use strict";Qw=(t,e)=>{let n=setTimeout(()=>{let{props:r}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(r.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(n)})}});var tS,d1=L(()=>{"use strict";tS=function(e){let n=[0,1];for(let r=2;r<=e;r++)n[r]=n[r-1]+n[r-2];return n[e]}});var eS,p1=L(()=>{"use strict";eS=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function zi(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}async function aS(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}var nS,rS,oS,sS,iS,h1=L(()=>{"use strict";nS=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("script");i.type=r,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}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),rS=(t,e=document,n="text/javascript")=>new Promise((r,o)=>{let s=e.createElement("script");s.type=n,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),r()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),oS=(t,e=document,n,r="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=r,s.text=o.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},sS=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),iS=(t,e=!1,n=document,r="text/javascript",o="smbls-script")=>{try{let s=n.createElement("script");s.type=r,s.async=e,s.id=o,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}}});function Jo(t,e){if(!e||typeof e!="object")return t;let n=o=>!q3(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:rh(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function lS(t,e){if(!t||!e)return;let n=e.split("."),r=t;for(let o of n){if(r==null||typeof r!="object")return;r=r[o]}return r}function G3(t,e){let n=lS(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!Ai(n))return n}function Y3(t,e,n){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=G3(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??lS(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??lS(a,m)??p}));return f}function g1(t){if(!A(t))return{};let e={...t};for(let[n,r]of Object.entries(e))if(typeof r=="function"){let o=r.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof r=="string"){let o=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[n]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(r.includes("=>")&&r.includes("s.")){let i=r.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}Ai(r)&&delete e[n]}return e}function mS(t,e,n,{isProduction:r=!1,channel:o="production"}={}){let s=t.pages?.[e],i=A(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=g1(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=g1(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?r?d.title=m:o==="development"?d.title=`${m} / dev:symbo.ls`:o==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=Y3(d,t,n),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 p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=Jo(d,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let k=y.replace(/\{\{[^}]*\}\}/g,"").trim();k?d[m]=k:m==="title"?d[m]=h:delete d[m]}return d}var z,zr,er,Bl,fS,Ul,Vl,B3,uS,dS,nh,pS,zo,U3,hS,V3,Dn,H3,z3,Wi,Xo,Xr,W3,K3,gS,q3,cS,rh,m1=L(()=>{"use strict";Kt();Oi();z=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},zr=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),er=(t,e,{remove:n=!1,warn:r}={})=>{if(!t||typeof t.querySelector!="function")return null;let o=null;try{o=t.querySelector(e)}catch{return null}if(!o)return null;n&&o.parentNode&&o.parentNode.removeChild(o);let s;try{s=JSON.parse(o.textContent||"")}catch(i){r&&r(i)}return{value:s,block:o}},Bl='script[type="application/json"][data-brender="registry"]',fS=t=>'<script type="application/json" data-brender="registry">'+zr(t)+"<\/script>",Ul='link[rel="preload"][data-smbls="design-system"]',Vl='script[type="application/json"][data-smbls="design-system"]',B3=t=>A(t)&&A(t.config)&&Array.isArray(t.rules),uS=t=>'<link rel="preload" href="'+z(t)+'" as="fetch" crossorigin="anonymous" data-smbls="design-system">',dS=t=>B3(t)?'<script type="application/json" data-smbls="design-system">'+zr(t)+"<\/script>":"",nh='meta[name="brender-stamp"]',pS=({stamp:t,time:e}={})=>'<meta name="brender-stamp" content="'+z(t)+'" data-time="'+(typeof e=="number"&&isFinite(e)?Math.round(e):"")+'">',zo=t=>{if(!t||typeof t.querySelector!="function")return null;let e=null;try{e=t.querySelector(nh)}catch{return null}if(!e)return null;let n=parseInt(e.getAttribute("data-time"),10);return{stamp:e.getAttribute("content")||"",time:isFinite(n)?n:null}},U3=/<script\b(?:[^>"']|"[^"]*"|'[^']*')*\btype\s*=\s*["']?importmap["']?(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/script\s*>/gi,hS=(t,e)=>{let n=-1;for(let r of String(t).matchAll(U3))n=r.index+r[0].length;return n===-1?null:t.slice(0,n)+`
33
+ `+e+t.slice(n)},V3=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${z(n)}"`).join(" "),Dn=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},H3=new Set(["jsonLd","styles","scripts"]),z3=new Set(["source"]),Wi=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let r=typeof n=="string"?n:JSON.stringify(n),o=String(r).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Dn(r)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let r=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Dn(r)}">${r}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let r=typeof n=="string",o=r?n:n.src;if(!o&&!n.body)continue;let s=[];o&&s.push(`src="${z(o)}"`),r||(n.type&&s.push(`type="${z(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${z(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${z(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${z(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${z(o||Dn(n.body||""))}"`;if(!r&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Xo=t=>`${t.hreflang||""}|${t.href||""}`,Xr=t=>A(t)?Dn(JSON.stringify(t)):String(t),W3=(t,e,n)=>t==="favicons"?Array.isArray(e)&&(typeof n=="string"||A(n))?` data-smbls-favicon="${z(Xr(n))}"`:"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${z(e)}"`:"",K3=t=>A(t)?` data-smbls-alternate="${z(Xo(t))}"`:"",gS=(t,e)=>{e||(t={...t,robots:"noindex"});let n=Object.entries(t).reduce((r,[o,s])=>{if(!s&&s!==0&&s!==!1||H3.has(o)||z3.has(o))return r;if(o==="title")return r.push(`<title>${z(s)}</title>`),r;if(o==="canonical")return r.push(`<link rel="canonical" href="${z(s)}">`),r;if(o==="manifest")return r.push(`<link rel="manifest" href="${z(s)}">`),r;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{let u=W3(o,s,f);if(typeof f=="string")r.push(`<link rel="icon" href="${z(f)}"${u}>`);else if(typeof f=="object"){let d=V3(f);/rel=/.test(d)?r.push(`<link ${d}${u}>`):r.push(`<link rel="icon" ${d}${u}>`)}}),r;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(f&&typeof f=="object"){let u=Object.entries(f).filter(([d,p])=>p!==void 0).map(([d,p])=>`${d}="${z(p)}"`).join(" ");r.push(`<link rel="alternate" ${u}${K3(f)}>`)}}),r;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")r.push(`<meta ${u}="${z(l)}" content="${z(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")r.push(`<meta ${u}="${z(l)}" content="${z(d)}">`);else if(typeof d=="object"){let p=Object.entries(d).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${z(h)}"`).join(" ");r.push(`<meta ${p}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${z(g)}"`).join(" ");r.push(`<meta ${d}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),r}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),r}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"),r}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"),r}return i(o,s),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">']);return n.push(...Wi(t)),n.join(`
34
+ `)},q3=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),cS=t=>typeof t=="string"&&t.length>0,rh=t=>{if(!t||typeof t!="object")return null;if(cS(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:cS(e.src)?e.src:cS(e.storageUrl)?e.storageUrl:null}});var oh,yS,y1=L(()=>{"use strict";Kt();oh=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),yS=(t,e)=>(t=parseFloat(t),A(e)&&(e=Object.values(e)),oh(t,e))});function Qo(t){let e=String(t||"").trim();if(!e)return{owner:bS,key:"",full:""};let n=null,r=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),r=e.slice(s+1)}r=r.replace(/\.symbo\.ls$/iu,""),n||(n=bS);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function lh(t,e={}){if((e.provider||"kv")==="api")return T1(t,e);let r=await C5(t,e);return r||T1(t,e)}async function C5(t,e={}){let n=e.kvBaseUrl||X3,r=e.env||"production",o=`${n}/kv/${encodeURIComponent(t)}?env=${r}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function T1(t,e={}){let n=e.apiBaseUrl||J3,{key:r}=Qo(t);try{let o=`${n}/core/projects/libraries/available?search=${encodeURIComponent(r)}&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(p=>{let{key:g}=Qo(p?.key);return g.toLowerCase()===r.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/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 O1(t,e={}){if(A(t))return t;if(E(t)){let{full:n}=Qo(t);if(!n)return null;try{let r=await lh(n,e);return r||console.warn(`[smbls] Shared library "${n}" not found`),r}catch(r){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,r.message),null}}return null}async function Xl(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async r=>{if(pn(r)){let o=await O1(L1(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return O1(r,e)}))).filter(Boolean)}var bS,X3,J3,Ki,R1,Z3,Q3,b1,P1,_1,D1,t5,Wl,SS,pn,L1,_S,xS,e5,n5,I1,kS,M1,w1,Zo,vS,r5,Jr,o5,$1,N1,S1,s5,i5,a5,c5,x1,sh,l5,F1,wS,j1,f5,k1,u5,d5,p5,h5,ih,ES,g5,m5,y5,v1,Kl,b5,zl,ah,qi,Gi,E1,ch,Hl,_5,w5,A1,C1,ql,S5,x5,k5,v5,E5,A5,B1,Gl,Yl,U1=L(()=>{"use strict";Kt();$o();Qd();An();bS="system",X3="https://smbls-kv.nika-980.workers.dev",J3="https://api.symbols.app";Ki=(t,e,n,r)=>{for(let o in e){let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?A(t[o])&&A(e[o])&&Ki(t[o],e[o],n,s):t[o]=e[o])}},R1=(t,e,n)=>{if(!A(t)||!e.size)return t;let r=`${n}/`,o=!1;for(let i of e)if(i.startsWith(r)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=R1(t[i],e,a))}return s},Z3=new Set,Q3=new Set(["components","pages","functions","snippets","methods"]),b1=(t,e)=>e===""&&Q3.has(t),P1=["fontFamily","fontfamily","font_family","FONT_FAMILY"],_1=t=>{let e=new Map;if(!A(t))return e;for(let n of P1){let r=t[n];if(A(r))for(let o in r)!A(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},D1=(t,e)=>{for(let n of P1){let r=t[n];if(!A(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!A(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},t5=t=>t.replace(/\.js$/iu,""),Wl=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!E(n))continue;let r=n.split("/").map(o=>t5(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},SS=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),pn=t=>A(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),L1=t=>t.library!==void 0?t.library:t.key??t.name,_S=new Set,xS=()=>{_S.clear()},e5=(t,e)=>{let n=e.filter(r=>!_S.has(r));if(n.length){for(let r of n)_S.add(r);tt()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(r=>`methods.${r}`).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.`)}},n5=(t,e,n)=>{let r=null;for(let o in t)if(Mo(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)Mo(s)||(r[s]=t[s])}return r||t},I1=(t,e)=>{let n=Wl(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},kS=["functions","methods","snippets"],M1=["components","pages"],w1=Symbol.for("smbls.libraryScope"),Zo="__libraryScopes",vS=new Map,r5=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),Jr=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o5=/const __scope = |const __peers_* = |const _s = el\?\.scope|\?\.context\?\.globalScope\?\./,$1=t=>{try{return De(t)}catch{return null}},N1=t=>{if(typeof t!="function")return null;let e=$1(t);return E(e)&&o5.test(e)&&oe(e)?e:null},S1=t=>E(t)&&oe(t)||N1(t)!==null,s5=t=>{let e=t.globalScope;return A(e)&&Object.keys(e).some(n=>S1(e[n]))?!0:kS.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>S1(r[o]))})},i5=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!A(r)||!A(o)||!s5(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||Jr(r,i)&&s++;return s},a5=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const _s = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const _s = $RESOLVE($1);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],c5=t=>{let e=t.split(""),n=[],r=0,o=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
34
35
  `&&(e[l]="~")},i=()=>{let a=r;for(;r<t.length;){let c=t[r];if(c==="\\"){r+=2;continue}if(c==="`"){s(a,r),r++;return}if(c==="$"&&t[r+1]==="{"){s(a,r),r+=2,n.push(o),o++;return}r++}s(a,r)};for(;r<t.length;){let a=t[r];if(a==="/"&&t[r+1]==="/"){let c=t.indexOf(`
35
36
  `,r),l=c===-1?t.length:c;s(r,l),r=l;continue}if(a==="/"&&t[r+1]==="*"){let c=t.indexOf("*/",r+2),l=c===-1?t.length:c+2;s(r,l),r=l;continue}if(a==='"'||a==="'"){let c=a,l=++r;for(;r<t.length&&t[r]!==c&&t[r]!==`
36
- `;)t[r]==="\\"&&r++,r++;s(l,r),r++;continue}if(a==="`"){r++,i();continue}if(a==="{"){o++,r++;continue}if(a==="}"){if(o--,n.length&&o===n[n.length-1]){n.pop(),r++,i();continue}r++;continue}r++}return e.join("")},OT=(t,e)=>{if(!E(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!t.includes("const _s = ")&&!t.includes("?.context?.globalScope?.")||!se(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,r=t;for(let[o,s]of GB){let i=YB(r);r=r.replace(o,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==r[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return r},Ip=(t,e)=>{if(E(t))return OT(t,e);let n=zT(t);return n===null?t:OT(n,e)},XB={lazy:!0,window:globalThis},WT=(t,e)=>{let n=Ip(t,e);if(n===t||!E(n))return n;try{let r=ge({v:n},{},XB).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},Nw=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},qT=(t,e,n=new WeakMap)=>{if(E(t)||typeof t=="function")return WT(t,e);if(Pc(t)||!Nw(t))return t;if(n.has(t))return n.get(t);let r=Array.isArray(t)?[]:Object.getPrototypeOf(t)===null?Object.create(null):{};n.set(t,r);for(let o of Object.keys(t))r[o]=qT(t[o],e,n);return r},ZB=(t,e)=>{let n={...t},r={};for(let o of Object.keys(t.globalScope))r[o]=Ip(t.globalScope[o],e);n.globalScope=r;for(let o of Bw){let s=t[o];if(!Nw(s))continue;let i={};for(let a of Object.keys(s))i[a]=WT(s[a],e);n[o]=i}for(let o of VT)Nw(t[o])&&(n[o]=qT(t[o],e));return n},RT=new WeakMap,JB=(t,e,n)=>{let r=RT.get(t);r||RT.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>Br(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||Br(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return Br(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!Br(i,a)&&Br(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),r.set(e,o),o},QB=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",t3=(t,e)=>{let n=Uw.get(t);return n?e===n.consumerGs?n.libGs:QB(e)?JB(e,n.libGs,n.consumerGs):e:e},e3=()=>{typeof globalThis[CT]!="function"&&Object.defineProperty(globalThis,CT,{value:t3,configurable:!0})},Mp=t=>{let e=t[Bo];return Array.isArray(e)?e:null},Vw=t=>cn(t)?t.library:t,n3=(t,e,n)=>{let r=Mp(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&E(o.id)&&r3(t,o.id))},r3=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(E(s))return s.includes(n);if(!s||typeof s!="object"||r.has(s))return!1;r.add(s);for(let i in s)if(o(s[i]))return!0;return!1};for(let s of["globalScope",...Bw,...VT])if(o(t[s]))return!0;return!1},o3=(t,e)=>{let n={};for(let r of Object.keys(t))n[r]=Ip(t[r],e);return n},PT=new WeakMap,Ol=(t,e=null)=>{let n=t&&Mp(t);if(!n||!n.length)return 0;let r=t.globalScope;if(!A(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=PT.get(r);s||PT.set(r,s=new Set),e3();let i=0;for(let a of n){if(!a||!E(a.id)||s.has(a.id))continue;let c=Vw(o[a.index]);if(!c||!A(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?HT(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return E(h)||E(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=A(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>E(p)&&Br(c.globalScope,p)&&Br(e,p)&&f(e[p],Ip(c.globalScope[p],a.id))):[],d=Ro(o3(c.globalScope,a.id));Object.setPrototypeOf(d,r),Uw.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},s3=/^@symbo[-.]ls\//,Cl=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,$p=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],Pi=(t,e)=>{let n=[];if(!Array.isArray(t))return n;let r=new Map,o=(i,a,c)=>{for(let l of $p(i)){let f=r.get(l);if(f===void 0){r.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=Vw(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!s3.test(f))continue;let u=Cl(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&Cl(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},Di=({spec:t,kept:e,refused:n})=>{typeof console>"u"||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},DT=["functions","methods","snippets"],Np=Symbol.for("smbls.libraryPackages"),Al=new WeakMap,i3=t=>!!t&&typeof t=="object"&&!Array.isArray(t),a3=t=>({get globalScope(){return t()}}),LT=(t,e,n)=>{let r={};for(let o of Object.keys(t))r[o]=t[o];return Object.defineProperty(r,"context",{configurable:!0,enumerable:!1,writable:!0,value:a3(e)}),Al.set(r,n),r},IT=t=>!i3(t)||!Al.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),Rl=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of DT){let o=t[r];IT(o)||Al.get(o)===t||(t[r]=LT(o,e,t))}if(Array.isArray(t.sharedLibraries)){let r=Mp(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=cn(o)&&o&&"library"in o,a=Vw(o);if(!a||typeof a!="object"||a.__isStub||Al.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&Uw.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of DT)IT(a[u])||(f[u]=LT(a[u],l,t));return Al.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of Pi(t.sharedLibraries,Di))r[o]=s;try{Object.defineProperty(n,Np,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},c3=(t,e,n,r="library",o=-1)=>{let s=UT(e,n),i=!n3(t,o,e)&&KB(t,e,s)>0?`${r}#${zB()}`:null,a=i?ZB(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==Bo&&!f.startsWith("__")&&f!=="app"&&!s.has(f)){if(A(a[f])&&A(t[f])){if(f==="designSystem")Ri(t[f],a[f],s,f);else for(let u in a[f])if(!s.has(`${f}/${u}`)){if(f==="methods"&&vo(u)){u in t[f]||l.push(u);continue}u in t[f]?ET(f,t[f][u])&&!ET(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?HB(u,s,l):u;t[f]=NT(d,s,f)}}i&&(Mp(t)||(t[Bo]=[]),t[Bo].push({id:i,index:o,key:E(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&VB(r,l)},l3=(t,e,n)=>{if(t!==e){let r=BT(t);if(E(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},f3=`${Mw}/default`,u3=t=>E(t)&&t!==""&&Uo(t).full===f3,d3=(t,e)=>{if(E(e.key)&&e.key)return e.key;if(t!==e){if(E(t.key)&&t.key)return t.key;if(E(t.name)&&t.name)return t.name}return null},p3=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=jB;if(cn(s)&&(i=Tl(s.ignoreList),s=s.library),!A(s))continue;let a={entry:o,lib:s,ignore:i,index:r};u3(d3(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},KT=(t,e,n)=>{let r=AT(e()),{linked:o,bases:s}=p3(t);for(let a of o)n(a);let i=!r.size&&s.length?AT(e()):null;for(let a of s)n(a);return r.size?r:i&&i.size?i:null},Pl=(t,e)=>{if(!e||!e.length)return;let n=t.designSystem,r=KT(e,()=>t.designSystem,({entry:o,lib:s,ignore:i,index:a})=>c3(t,s,i,l3(o,s,a),a));r&&(t.designSystem!==n&&(t.designSystem={...t.designSystem}),jT(t.designSystem,r))},Dl=(t,e,n=Ri)=>{if(!A(t)||!Array.isArray(e)||!e.length)return t;let r=KT(e,()=>t,({lib:o,ignore:s})=>{let i=o.designSystem;if(!i||typeof i!="object")return;let a=UT(o,s);a.has("designSystem")||n(t,i,a,"designSystem")});return r&&jT(t,r),t}});var Hw,zw,Ww,Vo,qw,Il,Kw,Ho,YT=L(()=>{"use strict";qt();Hw=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},zw=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Ww=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Vo=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),qw=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Il=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Kw=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Ho=t=>{if(I(t))return t;if(E(t))return t.split(" ");if(A(t))return Object.values(t);if(pe(t))return[t]}});var Gw,XT=L(()=>{"use strict";Gw=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let r=0;r<n.length;r++)e+=n[r].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var me,Li,Ml,$l,ZT=L(()=>{"use strict";me=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let r=n.assets&&n.assets[e]||n.files&&n.files[e];if(!r)return null;if(typeof r=="string")return{src:r,type:null,variants:null};if(typeof r=="object"){if(typeof r.src=="string")return r;let o=r.content,s=o&&o.src;if(typeof s=="string")return{...r,src:s,type:r.type??o.type??null,variants:r.variants??o.variants??null}}return null},Li=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(o=>typeof o.width=="number"),r=[];for(let o of t)n&&typeof o.width=="number"?r.push(`${o.src} ${o.width}w`):n||(o.scale===1&&e?r.push(o.src):o.scale&&o.scale!==1&&r.push(`${o.src} ${o.scale}x`));return r.join(", ")},Ml=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return Li(e,{keepOneX:!1})},$l=(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 n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let r=[];for(let[a,c]of n)a!==t.type&&r.push({tag:"source",attr:{type:a,srcset:Li(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=Li(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var Nl={};F(Nl,{BRENDER_REGISTRY_BLOCK:()=>El,CDN_PROVIDERS:()=>Be,DOMQL_EVENTS:()=>pb,DOMQ_PROPERTIES:()=>Cr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ai,ENV:()=>$b,HTML_TAGS:()=>hi,LIBRARY_PACKAGES:()=>Np,LIBRARY_SCOPES_KEY:()=>Bo,METHODS:()=>Or,METHODS_EXL:()=>Ac,NODE_ENV:()=>rn,OPTIONS:()=>Qc,PACKAGE_MANAGER_TO_CDN:()=>Nr,PARSED_DOMQ_PROPERTIES:()=>Ec,POLYGLOT_LANG_STORAGE_KEY:()=>Rp,PROPS_METHODS:()=>Tr,REVIVED_MARK:()=>Dc,STATE_METHODS:()=>ko,STATE_PROPERTIES:()=>ub,SVG_TAGS:()=>sC,TYPES:()=>bc,UNIVERSAL_RESERVED_KEYS:()=>Op,__resetBuiltinMethodWarnings:()=>jw,addCaching:()=>tp,addContext:()=>Qd,addExtend:()=>s_,addExtends:()=>xn,addItemAfterEveryElement:()=>Zy,addProtoToArray:()=>Sc,addRef:()=>Xd,alternateLinkKey:()=>Fo,applyDependentState:()=>v_,applyEvent:()=>ip,applyEventUpdate:()=>ap,applyExtends:()=>cC,applyProps:()=>qc,arrayContainsOtherArray:()=>zy,arraysEqual:()=>Qy,arrayzeValue:()=>Ho,bareLibraryKey:()=>Cl,bindLibraryGlobalScopes:()=>Ol,brenderRegistryBlock:()=>Pw,buildImgSrcset:()=>Ml,buildSourcesAndImg:()=>$l,cache:()=>O_,call:()=>pw,captureSnapshot:()=>gw,checkForStateTypes:()=>w_,checkIfInherits:()=>sp,checkIfStringIsInArray:()=>nb,clone:()=>Sb,cloneAndMergeArrayExtend:()=>Fc,cloneFunction:()=>Hb,collectExtendsList:()=>gi,concatAddExtends:()=>n_,copyJavaScriptToClipboard:()=>zw,copyStringToClipboard:()=>Hw,createBasedOnType:()=>Yd,createElement:()=>__,createElementExtends:()=>Nd,createExtends:()=>Bc,createExtendsFromKeys:()=>mi,createExtendsStack:()=>Ud,createIfConditionFlag:()=>zb,createInheritedState:()=>S_,createKey:()=>$c,createNestedObject:()=>Ob,createNestedObjectByKeyPath:()=>k_,createObjectWithoutPrototype:()=>Od,createParent:()=>Zd,createPath:()=>Jd,createProps:()=>Kc,createPropsStack:()=>Kd,createRoot:()=>b_,createScope:()=>A_,createSnapshotId:()=>Mc,customDecodeURIComponent:()=>fb,customEncodeURIComponent:()=>lb,cutArrayAfterValue:()=>Yy,cutArrayBeforeValue:()=>Gy,debounce:()=>Nc,debounceOnContext:()=>Ub,decodeNewlines:()=>cb,deepClone:()=>pt,deepContains:()=>Cb,deepDefaults:()=>Ri,deepDestringifyFunctions:()=>ge,deepExtend:()=>$d,deepMerge:()=>dt,deepMergeExtends:()=>kn,deepStringifyFunctions:()=>Oc,defineSetter:()=>uw,destringifyGlobalScope:()=>Ro,detectHeightOnInit:()=>ww,detectInfiniteLoop:()=>Lb,document:()=>yt,encodeNewlines:()=>ab,error:()=>Mo,escapeHtml:()=>W,escapeRegExp:()=>rb,excludeKeysFromObject:()=>Mb,exec:()=>St,exposeBagGlobalScopes:()=>Rl,extendCachedRegistry:()=>r_,extendStackRegistry:()=>Uc,extractArrayExtend:()=>Hc,faviconLinkKey:()=>jr,fetchLibraryData:()=>Fp,fibonacciNumberByIndex:()=>Sw,fileEntryUrl:()=>Dp,filterArrays:()=>tb,filterArraysFast:()=>eb,finalizeExtends:()=>Vd,findClosestNumber:()=>Lp,findClosestNumberInFactory:()=>Iw,findInheritedState:()=>op,findKeyPosition:()=>sb,flattenExtend:()=>yi,formatDate:()=>_w,generateHash:()=>Ld,generateHeadArrayTags:()=>Oi,generateKey:()=>Ic,generateMetaTags:()=>Dw,get:()=>aw,getCDNDirUrl:()=>Pp,getCDNUrl:()=>an,getCapitalCaseKeys:()=>c_,getCdnProviderFromConfig:()=>Ci,getChildStateInKey:()=>rp,getChildren:()=>fw,getContext:()=>gl,getCookie:()=>Yb,getDB:()=>wl,getEmotionStylesheet:()=>Gw,getExtendsInElement:()=>i_,getExtendsStack:()=>jc,getExtendsStackRegistry:()=>Md,getFrequencyInArray:()=>Wy,getFunctionSource:()=>Oe,getHashedExtend:()=>Vc,getImportMapScript:()=>bw,getInObjectByPath:()=>Db,getLocalStorage:()=>Zb,getNev:()=>Bb,getPageMetadata:()=>Lw,getParentStateInKey:()=>np,getPath:()=>ll,getQuery:()=>Sl,getRef:()=>lw,getRoot:()=>dl,getRootContext:()=>hl,getRootData:()=>pl,getRootState:()=>ul,getRootStateInKey:()=>ep,getSpreadChildren:()=>l_,global:()=>Uy,hasFunction:()=>se,hasHandlerPlugin:()=>ui,hasOwnProperty:()=>vb,hashContent:()=>Tn,inheritChildExtends:()=>jd,inheritChildPropsExtends:()=>Fd,inheritParentProps:()=>Gc,inheritRecursiveChildExtends:()=>Bd,initProps:()=>g_,is:()=>he,isArray:()=>I,isBoolean:()=>Sd,isBuiltinElementMethod:()=>db,isContextComponent:()=>f_,isCyclic:()=>Ib,isDOMNode:()=>de,isDate:()=>kd,isDefined:()=>jt,isDevelopment:()=>Pr,isEmpty:()=>Cd,isEmptyObject:()=>Eb,isEqualDeep:()=>Td,isFailedRevival:()=>To,isFunction:()=>P,isHtmlElement:()=>mc,isLazyFunction:()=>xb,isLocal:()=>jb,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>$o,isMethod:()=>hw,isMobile:()=>Kb,isNode:()=>qn,isNot:()=>Hy,isNotProduction:()=>Kn,isNull:()=>xd,isNumber:()=>pe,isObject:()=>A,isObjectLike:()=>V,isPhoto:()=>xw,isPolyglotRetranslatableKey:()=>Jc,isPolyglotWritableKey:()=>Do,isProduction:()=>Rr,isProtectedElementMethod:()=>vo,isRevived:()=>Oo,isStaging:()=>Fb,isState:()=>x_,isString:()=>E,isStringFunction:()=>fi,isStringTag:()=>Pc,isTest:()=>Pd,isTesting:()=>Nb,isUndefined:()=>Wt,isUniversallyReservedKey:()=>mw,isUnresolvableDependency:()=>Fr,isValidDependencyMap:()=>No,isValidHtmlTag:()=>Qb,isWrappedLibrary:()=>cn,joinArrays:()=>oi,jointStacks:()=>o_,jsonForScript:()=>Lo,keys:()=>Cp,libraryPackageSpecs:()=>Pi,librarySpecsFor:()=>$p,loadCssFile:()=>Aw,loadJavascript:()=>Cw,loadJavascriptFile:()=>kw,loadJavascriptFileEmbedSync:()=>Ew,loadJavascriptFileSync:()=>vw,loadRemoteCSS:()=>Tw,loadRemoteScript:()=>Ti,log:()=>dw,logGroupIf:()=>qb,logIf:()=>Wb,lookdown:()=>sw,lookdownAll:()=>iw,lookup:()=>ow,lowercaseFirstLetter:()=>xo,makeObjectWithoutPrototype:()=>Ab,map:()=>wb,mapStringsWithContextComponents:()=>zc,markPolyglotSeeded:()=>En,markRevived:()=>li,matchesComponentNaming:()=>vn,memoize:()=>Vb,merge:()=>Tt,mergeSharedLibraries:()=>Pl,mergeSharedLibraryDesignSystems:()=>Dl,nextElement:()=>yl,normalizeIgnoreList:()=>Tl,normalizeLibraryKey:()=>Uo,objectToString:()=>Rc,objectizeStringProperty:()=>Wc,overwrite:()=>Lc,overwriteDeep:()=>ie,overwriteShallow:()=>Po,overwriteState:()=>E_,parse:()=>Tp,parseDeep:()=>al,pickupElementFromProps:()=>Wd,pickupPropsFromElement:()=>zd,polyglotFallbackLang:()=>xl,polyglotLangStorageKey:()=>vi,polyglotSeededKeys:()=>Lr,previousElement:()=>bl,promoteActiveRootState:()=>xi,propExists:()=>p_,propertizeElement:()=>qd,propertizeUpdate:()=>d_,readJsonDataBlock:()=>Io,remove:()=>lT,removeChars:()=>Ww,removeCookie:()=>Xb,removeDuplicateProps:()=>Xc,removeDuplicatesInArray:()=>si,removeFromArray:()=>qy,removeFromObject:()=>Tb,removeNestedKeyByPath:()=>Rb,removeValueFromArray:()=>wc,removeValueFromArrayAll:()=>Xy,reorderArrayByValues:()=>Jy,repairLegacyArrowScopePreamble:()=>Cc,replaceLiteralsWithObjectFields:()=>Kt,replaceOctalEscapeSequences:()=>ib,resolveAsset:()=>me,resolveFileReferences:()=>jo,resolveHandler:()=>di,resolveSharedLibraries:()=>Ll,returnValueAsText:()=>Gd,runPluginHook:()=>Dr,scopeElementParam:()=>vd,scopeReceiverExpression:()=>yb,self:()=>Vy,setActiveRootState:()=>fl,setCookie:()=>Gb,setHashedExtend:()=>Id,setInObjectByPath:()=>Pb,setLocalStorage:()=>Jb,setNodeStyles:()=>Ap,setProps:()=>cw,setPropsPrototype:()=>Yc,sharedLibrary:()=>Fw,splitPackageSpecifier:()=>kl,spotByPath:()=>cl,srcsetFor:()=>Li,stringIncludesAny:()=>kc,stringToObject:()=>kb,stripVersionRangePrefix:()=>vl,swapItemsInArray:()=>Ky,syncProps:()=>Zc,toCamelCase:()=>Vo,toDashCase:()=>Il,toDescriptionCase:()=>Kw,toPriorityOrder:()=>je,toTitleCase:()=>qw,toggleFullscreen:()=>yw,triggerEventOn:()=>Gn,triggerEventOnUpdate:()=>C_,trimStringFromSymbols:()=>ob,unstackArrayOfObjects:()=>_c,update:()=>h_,updateProps:()=>m_,variables:()=>_l,verbose:()=>ki,warn:()=>ml,warnLibraryAliasCollision:()=>Di,window:()=>T});var M=L(()=>{"use strict";Rd();Dd();qt();Sn();pi();ii();yc();nC();rC();vc();gc();oC();t_();a_();y_();Hd();hC();_C();Eo();wC();uT();R_();dT();T_();pT();bb();hT();gT();mT();yT();bT();_T();wT();ST();kT();vT();GT();YT();XT();ZT()});var mn,Pu,Du,Um=L(()=>{mn=Object.create(null);mn.open="0";mn.close="1";mn.ping="2";mn.pong="3";mn.message="4";mn.upgrade="5";mn.noop="6";Pu=Object.create(null);Object.keys(mn).forEach(t=>{Pu[mn[t]]=t});Du={type:"error",data:"parser error"}});function Y2(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function Q2(t,e){if(X2&&t.data instanceof Blob)return t.data.arrayBuffer().then(Y2).then(e);if(Z2&&(t.data instanceof ArrayBuffer||J2(t.data)))return e(Y2(t.data));Lu(t,!1,n=>{gE||(gE=new TextEncoder),e(gE.encode(n))})}var X2,Z2,J2,Lu,G2,gE,t$=L(()=>{Um();X2=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Z2=typeof ArrayBuffer=="function",J2=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Lu=({type:t,data:e},n,r)=>X2&&e instanceof Blob?n?r(e):G2(e,r):Z2&&(e instanceof ArrayBuffer||J2(e))?n?r(e):G2(new Blob([e]),r):r(mn[t]+(e||"")),G2=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var e$,Iu,n$,r$=L(()=>{e$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Iu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<e$.length;t++)Iu[e$.charCodeAt(t)]=t;n$=t=>{let e=t.length*.75,n=t.length,r,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(r=0;r<n;r+=4)s=Iu[t.charCodeAt(r)],i=Iu[t.charCodeAt(r+1)],a=Iu[t.charCodeAt(r+2)],c=Iu[t.charCodeAt(r+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l}});var n8,Mu,r8,o$,s$=L(()=>{Um();r$();n8=typeof ArrayBuffer=="function",Mu=(t,e)=>{if(typeof t!="string")return{type:"message",data:o$(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:r8(t.substring(1),e)}:Pu[n]?t.length>1?{type:Pu[n],data:t.substring(1)}:{type:Pu[n]}:Du},r8=(t,e)=>{if(n8){let n=n$(t);return o$(n,e)}else return{base64:!0,data:t}},o$=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function l$(){return new TransformStream({transform(t,e){Q2(t,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}function Vm(t){return t.reduce((e,n)=>e+n.length,0)}function Hm(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let o=0;o<e;o++)n[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function f$(t,e){mE||(mE=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(Vm(n)<1)break;let c=Hm(n,1);s=(c[0]&128)===128,o=c[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(Vm(n)<2)break;let c=Hm(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Vm(n)<8)break;let c=Hm(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Du);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(Vm(n)<o)break;let c=Hm(n,o);a.enqueue(Mu(s?c:mE.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(Du);break}}}})}var i$,a$,c$,mE,yE,Ka=L(()=>{t$();s$();Um();i$="",a$=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{Lu(s,!1,a=>{r[i]=a,++o===n&&e(r.join(i$))})})},c$=(t,e)=>{let n=t.split(i$),r=[];for(let o=0;o<n.length;o++){let s=Mu(n[o],e);if(r.push(s),s.type==="error")break}return r};yE=4});function vt(t){if(t)return o8(t)}function o8(t){for(var e in vt.prototype)t[e]=vt.prototype[e];return t}var Us=L(()=>{vt.prototype.on=vt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};vt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};vt.prototype.off=vt.prototype.removeListener=vt.prototype.removeAllListeners=vt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};vt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this};vt.prototype.emitReserved=vt.prototype.emit;vt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};vt.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var _r,ue,u$,Vs=L(()=>{_r=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ue=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),u$="arraybuffer"});function zm(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function wr(t,e){e.useNativeTimers?(t.setTimeoutFn=s8.bind(ue),t.clearTimeoutFn=i8.bind(ue)):(t.setTimeoutFn=ue.setTimeout.bind(ue),t.clearTimeoutFn=ue.clearTimeout.bind(ue))}function d$(t){return typeof t=="string"?c8(t):Math.ceil((t.byteLength||t.size)*a8)}function c8(t){let e=0,n=0;for(let r=0,o=t.length;r<o;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function Wm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var s8,i8,a8,Hs=L(()=>{Vs();s8=ue.setTimeout,i8=ue.clearTimeout;a8=1.33});function p$(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function h$(t){let e={},n=t.split("&");for(let r=0,o=n.length;r<o;r++){let s=n[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var bE=L(()=>{});var qm,Sr,$u=L(()=>{Ka();Us();Hs();bE();qm=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},Sr=class extends vt{constructor(e){super(),this.writable=!1,wr(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,r){return super.emitReserved("error",new qm(e,n,r)),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 n=Mu(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_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 n=p$(e);return n.length?"?"+n:""}}});var Ga,_E=L(()=>{$u();Hs();Ka();Ga=class extends Sr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};c$(e,this.socket.binaryType).forEach(n),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,a$(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Wm()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var g$,m$,y$=L(()=>{g$=!1;try{g$=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}m$=g$});function l8(){}function b$(){for(let t in ho.requests)ho.requests.hasOwnProperty(t)&&ho.requests[t].abort()}function _$(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||m$))return new XMLHttpRequest}catch{}if(!e)try{return new ue[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var wE,ho,f8,xr,Km=L(()=>{_E();Us();Hs();Vs();y$();wE=class extends Ga{constructor(e){if(super(e),typeof location<"u"){let n=location.protocol==="https:",r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.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",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},ho=class t extends vt{constructor(e,n,r){super(),this.createRequest=e,wr(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;let n=zm(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.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=l8,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()}};ho.requestsCount=0;ho.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",b$);else if(typeof addEventListener=="function"){let t="onpagehide"in ue?"pagehide":"unload";addEventListener(t,b$,!1)}}f8=(function(){let t=_$({xdomain:!1});return t&&t.responseType!==null})(),xr=class extends wE{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=f8&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ho(_$,this.uri(),e)}}});var w$,xE,SE,kr,Gm=L(()=>{$u();Hs();Ka();Vs();w$=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",xE=class extends Sr{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=w$?{}:zm(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,r)}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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;Lu(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&_r(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Wm()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},SE=ue.WebSocket||ue.MozWebSocket,kr=class extends xE{createSocket(e,n,r){return w$?new SE(e,n,r):n?new SE(e,n):new SE(e)}doWrite(e,n){this.ws.send(n)}}});var zs,kE=L(()=>{$u();Vs();Ka();zs=class extends Sr{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 n=f$(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=l$();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{r.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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;this._writer.write(r).then(()=>{o&&_r(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var vE,EE=L(()=>{Km();Gm();kE();vE={websocket:kr,webtransport:zs,polling:xr}});function Ya(t){if(t.length>8e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let o=u8.exec(t||""),s={},i=14;for(;i--;)s[d8[i]]=o[i]||"";return n!=-1&&r!=-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=p8(s,s.path),s.queryKey=h8(s,s.query),s}function p8(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function h8(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var u8,d8,AE=L(()=>{u8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,d8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var CE,Ym,Ws,Xm,Xa,TE=L(()=>{EE();Hs();bE();AE();Us();Ka();Vs();CE=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ym=[];CE&&addEventListener("offline",()=>{Ym.forEach(t=>t())},!1);Ws=class t extends vt{constructor(e,n){if(super(),this.binaryType=u$,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){let r=Ya(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Ya(n.host).host);wr(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=h$(this.opts.query)),CE&&(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"})},Ym.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=yE,n.transport=e,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_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 n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=d$(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_r(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let s={type:e,data:n,options:r};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()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():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,n){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(),CE&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=Ym.indexOf(this._offlineEventListener);r!==-1&&Ym.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};Ws.protocol=yE;Xm=class extends Ws{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 n=this.createTransport(e),r=!1;Ws.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ws.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function s(){r||(r=!0,f(),n.close(),n=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=n.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){n&&u.name!==n.name&&s()}let f=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let n=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}},Xa=class extends Xm{constructor(e,n={}){let r=typeof e=="object"?e:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>vE[o]).filter(o=>!!o)),super(e,r)}}});var Nu,S$=L(()=>{_E();Nu=class extends Ga{doPoll(){this._fetch().then(e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then(n=>this.onData(n))}).catch(e=>{this.onError("fetch read error",e)})}doWrite(e,n){this._fetch(e).then(r=>{if(!r.ok)return this.onError("fetch write error",r.status,r);n()}).catch(r=>{this.onError("fetch write error",r)})}_fetch(e){var n;let r=e!==void 0,o=new Headers(this.opts.extraHeaders);return r&&o.set("content-type","text/plain;charset=UTF-8"),(n=this.socket._cookieJar)===null||n===void 0||n.appendCookies(o),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:o,credentials:this.opts.withCredentials?"include":"omit"}).then(s=>{var i;return(i=this.socket._cookieJar)===null||i===void 0||i.parseCookies(s.headers.getSetCookie()),s})}}});var cct,Zm=L(()=>{TE();TE();$u();EE();Hs();AE();Vs();S$();Km();Km();Gm();Gm();kE();cct=Xa.protocol});function x$(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=Ya(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var k$=L(()=>{Zm()});function ju(t){return g8&&(t instanceof ArrayBuffer||m8(t))||y8&&t instanceof Blob||b8&&t instanceof File}function Fu(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(Fu(t[n]))return!0;return!1}if(ju(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Fu(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Fu(t[n]))return!0;return!1}var g8,m8,v$,y8,b8,OE=L(()=>{g8=typeof ArrayBuffer=="function",m8=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,v$=Object.prototype.toString,y8=typeof Blob=="function"||typeof Blob<"u"&&v$.call(Blob)==="[object BlobConstructor]",b8=typeof File=="function"||typeof File<"u"&&v$.call(File)==="[object FileConstructor]"});function E$(t){let e=[],n=t.data,r=t;return r.data=RE(n,e),r.attachments=e.length,{packet:r,buffers:e}}function RE(t,e){if(!t)return t;if(ju(t)){let n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){let n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=RE(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){let n={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=RE(t[r],e));return n}return t}function A$(t,e){return t.data=PE(t.data,e),delete t.attachments,t}function PE(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 n=0;n<t.length;n++)t[n]=PE(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=PE(t[n],e));return t}var C$=L(()=>{OE()});var O$=Sy((Cct,T$)=>{var Za=1e3,Ja=Za*60,Qa=Ja*60,qs=Qa*24,_8=qs*7,w8=qs*365.25;T$.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return S8(t);if(n==="number"&&isFinite(t))return e.long?k8(t):x8(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function S8(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 n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*w8;case"weeks":case"week":case"w":return n*_8;case"days":case"day":case"d":return n*qs;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Qa;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ja;case"seconds":case"second":case"secs":case"sec":case"s":return n*Za;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function x8(t){var e=Math.abs(t);return e>=qs?Math.round(t/qs)+"d":e>=Qa?Math.round(t/Qa)+"h":e>=Ja?Math.round(t/Ja)+"m":e>=Za?Math.round(t/Za)+"s":t+"ms"}function k8(t){var e=Math.abs(t);return e>=qs?Jm(t,e,qs,"day"):e>=Qa?Jm(t,e,Qa,"hour"):e>=Ja?Jm(t,e,Ja,"minute"):e>=Za?Jm(t,e,Za,"second"):t+" ms"}function Jm(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var P$=Sy((Tct,R$)=>{function v8(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=O$(),n.destroy=l,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.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 n.colors[Math.abs(u)%n.colors.length]}n.selectColor=e;function n(f){let u,d=null,p,g;function h(...m){if(!h.enabled)return;let y=h,_=Number(new Date),S=_-(u||_);y.diff=S,y.prev=u,y.curr=_,u=_,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let v=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(w,b)=>{if(w==="%%")return"%";v++;let k=n.formatters[b];if(typeof k=="function"){let C=m[v];w=k.call(y,C),m.splice(v,1),v--}return w}),n.formatArgs.call(y,m),(y.log||n.log).apply(y,m)}return h.namespace=f,h.useColors=n.useColors(),h.color=n.selectColor(f),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==n.namespaces&&(p=n.namespaces,g=n.enabled(f)),g),set:m=>{d=m}}),typeof n.init=="function"&&n.init(h),h}function r(f,u){let d=n(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function s(f,u){let d=0,p=0,g=-1,h=0;for(;d<f.length;)if(p<u.length&&(u[p]===f[d]||u[p]==="*"))u[p]==="*"?(g=p,h=d,p++):(d++,p++);else if(g!==-1)p=g+1,h++,d=h;else return!1;for(;p<u.length&&u[p]==="*";)p++;return p===u.length}function i(){let f=[...n.names,...n.skips.map(u=>"-"+u)].join(",");return n.enable(""),f}function a(f){for(let u of n.skips)if(s(f,u))return!1;for(let u of n.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 n.enable(n.load()),n}R$.exports=v8});var D$=Sy((Ee,Qm)=>{Ee.formatArgs=A8;Ee.save=C8;Ee.load=T8;Ee.useColors=E8;Ee.storage=O8();Ee.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`."))}})();Ee.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 E8(){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 A8(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Qm.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}Ee.log=console.debug||console.log||(()=>{});function C8(t){try{t?Ee.storage.setItem("debug",t):Ee.storage.removeItem("debug")}catch{}}function T8(){let t;try{t=Ee.storage.getItem("debug")||Ee.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function O8(){try{return localStorage}catch{}}Qm.exports=P$()(Ee);var{formatters:R8}=Qm.exports;R8.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var NE={};F(NE,{Decoder:()=>IE,Encoder:()=>LE,PacketType:()=>Z,isPacketValid:()=>I8,protocol:()=>$E});function P8(t){return typeof t=="string"}function D8(t){return t===void 0||M$(t)}function ty(t){return Object.prototype.toString.call(t)==="[object Object]"}function L8(t,e){switch(t){case Z.CONNECT:return e===void 0||ty(e);case Z.DISCONNECT:return e===void 0;case Z.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&I$.indexOf(e[0])===-1);case Z.ACK:return Array.isArray(e);case Z.CONNECT_ERROR:return typeof e=="string"||ty(e);default:return!1}}function I8(t){return P8(t.nsp)&&D8(t.id)&&L8(t.type,t.data)}var L$,DE,I$,$E,Z,LE,IE,ME,M$,ey=L(()=>{Us();C$();OE();L$=MF(D$(),1),DE=(0,L$.default)("socket.io-parser"),I$=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],$E=5;(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={}));LE=class{constructor(e){this.replacer=e}encode(e){return DE("encoding packet %j",e),(e.type===Z.EVENT||e.type===Z.ACK)&&Fu(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 n=""+e.type;return(e.type===Z.BINARY_EVENT||e.type===Z.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),DE("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=E$(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},IE=class t extends vt{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);let r=n.type===Z.BINARY_EVENT;r||n.type===Z.BINARY_ACK?(n.type=r?Z.EVENT:Z.ACK,this.reconstructor=new ME(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ju(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0,r={type:Number(e.charAt(0))};if(Z[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Z.BINARY_EVENT||r.type===Z.BINARY_ACK){let s=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);let i=e.substring(s,n);if(i!=Number(i)||e.charAt(n)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!M$(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=a}if(e.charAt(n+1)==="/"){let s=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(s,n)}else r.nsp="/";let o=e.charAt(n+1);if(o!==""&&Number(o)==o){let s=n+1;for(;++n;){let i=e.charAt(n);if(i==null||Number(i)!=i){--n;break}if(n===e.length)break}r.id=Number(e.substring(s,n+1))}if(e.charAt(++n)){let s=this.tryParse(e.substr(n));if(t.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return DE("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Z.CONNECT:return ty(n);case Z.DISCONNECT:return n===void 0;case Z.CONNECT_ERROR:return typeof n=="string"||ty(n);case Z.EVENT:case Z.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&I$.indexOf(n[0])===-1);case Z.ACK:case Z.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ME=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 n=A$(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};M$=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function Ne(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var FE=L(()=>{});var M8,Ks,jE=L(()=>{ey();FE();Us();M8=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ks=class extends vt{constructor(e,n,r){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=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Ne(e,"open",this.onopen.bind(this)),Ne(e,"packet",this.onpacket.bind(this)),Ne(e,"error",this.onerror.bind(this)),Ne(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,...n){var r,o,s;if(M8.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let i={type:Z.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let f=this.ids++,u=n.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.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,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;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);n.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...n){return new Promise((r,o)=>{let s=(i,a)=>i?o(i):r(a);s.withError=!0,n.push(s),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={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?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){let r=this.acks[e];delete this.acks[e],r.withError&&r.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 r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.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 n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:Z.ACK,id:e,data:o}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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 n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,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 n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,e.data)}}}});function Gs(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}var $$=L(()=>{Gs.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Gs.prototype.reset=function(){this.attempts=0};Gs.prototype.setMin=function(t){this.ms=t};Gs.prototype.setMax=function(t){this.max=t};Gs.prototype.setJitter=function(t){this.jitter=t}});var Ys,N$=L(()=>{Zm();jE();ey();FE();$$();Us();Ys=class extends vt{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,wr(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Gs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let o=n.parser||NE;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 Xa(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Ne(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Ne(n,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.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(Ne(e,"ping",this.onping.bind(this)),Ne(e,"data",this.ondata.bind(this)),Ne(e,"error",this.onerror.bind(this)),Ne(e,"close",this.onclose.bind(this)),Ne(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){_r(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Ks(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],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,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;let r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}});var F$={};F(F$,{Fetch:()=>Nu,Manager:()=>Ys,NodeWebSocket:()=>kr,NodeXHR:()=>xr,Socket:()=>Ks,WebSocket:()=>kr,WebTransport:()=>zs,XHR:()=>xr,connect:()=>ny,default:()=>ny,io:()=>ny,protocol:()=>$E});function ny(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=x$(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=Bu[o]&&s in Bu[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Ys(r,e):(Bu[o]||(Bu[o]=new Ys(r,e)),c=Bu[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var Bu,j$=L(()=>{k$();N$();jE();ey();Zm();Bu={};Object.assign(ny,{Manager:Ys,Socket:Ks,io:ny,connect:ny})});var SA={};F(SA,{ANIMATION_PROPS:()=>Tx,ARIA_ROLES:()=>C6,ATTR_TRANSFORMS:()=>gs,BARE_SEQUENCE_TOKEN_RE:()=>Pn,BLOCK_PROPS:()=>Ox,BRENDER_REGISTRY_BLOCK:()=>El,CDN_PROVIDERS:()=>Be,COMPOUND_CSS_KEYWORDS:()=>Wo,CONFIG:()=>Yo,CONFIG_MERGE_EXL:()=>Pe,CSS_LONGHAND_SHORTHANDS:()=>qe,CSS_NAMED_COLOR_HEX:()=>Mi,CSS_NATIVE_COLOR_REGEX:()=>Ur,CSS_PROPS_REGISTRY:()=>kt,CSS_SHORTHAND_LONGHANDS:()=>xt,CSS_UNITS:()=>ri,DEFAULT_CONFIG:()=>iu,DEFAULT_CSS_PROPERTIES_LIST:()=>Nt,DELEGATED_EVENTS:()=>ca,DESIGN_SYSTEM_OPTIONS:()=>JE,DOMQL_EVENTS:()=>pb,DOMQ_PROPERTIES:()=>Cr,DOM_EVENTS:()=>xR,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ai,ENV:()=>$b,FACTORY:()=>Re,FLEX_PROPS:()=>Ix,FONT_PROPS:()=>Rx,GRID_PROPS:()=>Mx,HOST_REGISTERED_PACKAGES:()=>gF,HTML_ATTRIBUTES:()=>fr,HTML_TAGS:()=>hi,LIBRARY_PACKAGES:()=>Np,LIBRARY_SCOPES_KEY:()=>Bo,LIFECYCLE_EVENTS:()=>Ln,METHODS:()=>Or,METHODS_EXL:()=>Ac,MISC_PROPS:()=>Px,MIXINS:()=>Lh,NODE_ENV:()=>rn,OPTIONS:()=>Qc,PACKAGE_MANAGER_TO_CDN:()=>Nr,PARSED_DOMQ_PROPERTIES:()=>Ec,POLYGLOT_LANG_STORAGE_KEY:()=>Rp,POSITION_PROPS:()=>Dx,PROPS_METHODS:()=>Tr,REGISTRY:()=>Ht,RESERVED_STORE_METHODS:()=>IA,REVIVED_MARK:()=>Dc,ROUTER_OPTIONS:()=>fy,SIGNAL_ENGINE_KEY:()=>ti,SIGNAL_INSTANCES_KEY:()=>Js,STANDARD_SCHEME_QUERIES:()=>ch,STATE_PROPERTIES:()=>ub,STORE_METHOD_NAMES:()=>LA,SVG_TAGS:()=>ga,THEME_PROPS:()=>Lx,TIMING_PROPS:()=>If,TYPES:()=>bc,UNIVERSAL_RESERVED_KEYS:()=>Op,VALUE_TRANSFORMERS:()=>Sh,VERSION:()=>$A,__resetBuiltinMethodWarnings:()=>jw,__resetSignalEngine:()=>jy,__resetSignalInstances:()=>Ny,__resetSkinWarnings:()=>qS,__resetStateShadowWarnings:()=>MA,activateConfig:()=>n1,addCaching:()=>tp,addContext:()=>Qd,addDelegatedEvent:()=>Rf,addExtend:()=>s_,addExtends:()=>xn,addItemAfterEveryElement:()=>Zy,addMethods:()=>_a,addProtoToArray:()=>Sc,addRef:()=>Xd,aliasCaseVariants:()=>Wi,alternateLinkKey:()=>Fo,animation:()=>_S,appendSVGSprite:()=>wf,appendSvgIconsSprite:()=>rs,applyAttrTransforms:()=>i0,applyCSS:()=>kv,applyDependentState:()=>v_,applyDocument:()=>_f,applyEvent:()=>ip,applyEventUpdate:()=>ap,applyExtends:()=>da,applyHeadings:()=>ph,applyInitialState:()=>Qh,applyMediaSequenceVars:()=>Hr,applyProps:()=>qc,applyReset:()=>Sf,applySequenceGlobalVars:()=>ef,applySequenceVars:()=>nr,applySkins:()=>xf,applySpacingSequence:()=>af,applyStateMethods:()=>ke,applyTimingSequence:()=>bf,applyTrueProps:()=>Bx,applyTypographySequence:()=>gf,arrayContainsOtherArray:()=>zy,arraysEqual:()=>Qy,arrayzeValue:()=>Ho,assertEmitIntegrity:()=>px,atSchemes:()=>Kr,bareLibraryKey:()=>Cl,batch:()=>md,bindLibraryGlobalScopes:()=>Ol,breakpoints:()=>yS,brenderRegistryBlock:()=>Pw,buildImgSrcset:()=>Ml,buildSkinVarStyles:()=>os,buildSourcesAndImg:()=>$l,buildThemeVarStyles:()=>Zg,cache:()=>O_,cacheNode:()=>Xr,call:()=>pw,callStateMethod:()=>jf,camelToAttr:()=>ur,camelToLowerAttr:()=>AR,captureSnapshot:()=>gw,changeGlobalTheme:()=>xh,changeLightness:()=>tS,checkAttributeByTagName:()=>Xe,checkEventFunctions:()=>s0,checkForStateTypes:()=>w_,checkIfBoxSize:()=>sf,checkIfInherits:()=>sp,checkIfStringIsInArray:()=>nb,class:()=>vS,clone:()=>Sb,cloneAndMergeArrayExtend:()=>Fc,cloneFunction:()=>Hb,collectExtendsList:()=>gi,color:()=>fS,colorPairSchemes:()=>of,colorStringToRgbaArray:()=>Ue,components:()=>Fa,compositeOverBackdrop:()=>Ko,compoundLayers:()=>Ni,concatAddExtends:()=>n_,contrastRatio:()=>ji,convertSvgToSymbol:()=>rf,copyJavaScriptToClipboard:()=>zw,copyStringToClipboard:()=>Hw,countUntrackedReads:()=>bd,create:()=>yA,createAsync:()=>$7,createBasedOnType:()=>Yd,createComputed:()=>PA,createConfig:()=>Gl,createDefine:()=>bN,createDomqlElement:()=>td,createEffect:()=>z,createElement:()=>__,createElementExtends:()=>Nd,createExtends:()=>Bc,createExtendsFromKeys:()=>mi,createExtendsStack:()=>Ud,createHTMLNode:()=>ha,createIfConditionFlag:()=>zb,createInheritedState:()=>S_,createKey:()=>$c,createNestedObject:()=>Ob,createNestedObjectByKeyPath:()=>k_,createObjectWithoutPrototype:()=>Od,createParent:()=>Zd,createPath:()=>Jd,createPristineConfig:()=>oh,createProps:()=>Kc,createPropsStack:()=>Kd,createRoot:()=>b_,createScope:()=>A_,createScopeStore:()=>_d,createSignal:()=>nn,createSkeleton:()=>F7,createSnapshotId:()=>Mc,createState:()=>Qx,createStore:()=>Hn,createSync:()=>N7,css:()=>Ie,cssCamelName:()=>Of,cssMediaVars:()=>nh,cssPropName:()=>Se,cssShorthandDepth:()=>ea,cssShorthandStatesLonghand:()=>na,cssShorthandStatesThemeLonghand:()=>Af,cssVars:()=>eh,customDecodeURIComponent:()=>fb,customEncodeURIComponent:()=>lb,cutArrayAfterValue:()=>Yy,cutArrayBeforeValue:()=>Gy,debounce:()=>Nc,debounceOnContext:()=>Ub,decodeNewlines:()=>cb,deepClone:()=>pt,deepContains:()=>Cb,deepDefaults:()=>Ri,deepDestringifyFunctions:()=>ge,deepExtend:()=>$d,deepMerge:()=>dt,deepMergeExtends:()=>kn,deepStringifyFunctions:()=>Oc,defaultDefine:()=>ec,defineResolvedThemeSignal:()=>zi,defineSetter:()=>uw,defineThemeSignal:()=>Hi,destringifyGlobalScope:()=>Ro,destroy:()=>Vu,detectHeightOnInit:()=>ww,detectInfiniteLoop:()=>Lb,detectTag:()=>Mn,devices:()=>bS,dispose:()=>Fn,encodeNewlines:()=>ab,error:()=>Mo,escapeHtml:()=>W,escapeRegExp:()=>rb,excludeKeysFromObject:()=>Mb,exec:()=>St,executeAttr:()=>$6,exetuteClassPerComponent:()=>s6,exposeBagGlobalScopes:()=>Rl,extendCachedRegistry:()=>r_,extendStackRegistry:()=>Uc,extractArrayExtend:()=>Hc,extractConditionalAttrs:()=>a0,faviconLinkKey:()=>jr,fetchLibraryData:()=>Fp,fibonacciNumberByIndex:()=>Sw,fileEntryUrl:()=>Dp,filterArrays:()=>tb,filterArraysFast:()=>eb,filterAttributesByTagName:()=>M6,finalizeExtends:()=>Vd,findClosestNumber:()=>Lp,findClosestNumberInFactory:()=>Iw,findHeadingLetter:()=>ih,findHeadings:()=>tf,findInheritedState:()=>op,findKeyPosition:()=>sb,flattenExtend:()=>yi,font:()=>oS,fontFace:()=>aS,fontFamily:()=>sS,fontFamilyTypes:()=>iS,forcedScheme:()=>Qo,formatDate:()=>_w,generateHash:()=>Ld,generateHeadArrayTags:()=>Oi,generateKey:()=>Ic,generateMetaTags:()=>Dw,generateSequence:()=>ye,generateSequencePosition:()=>DS,generateSprite:()=>nf,generateSubSequence:()=>Jl,get:()=>aw,getActiveConfig:()=>O,getActiveDocument:()=>cr,getActiveLang:()=>yo,getCDNDirUrl:()=>Pp,getCDNUrl:()=>an,getCacheSize:()=>yx,getCapitalCaseKeys:()=>c_,getCdnProviderFromConfig:()=>Ci,getChildStateInKey:()=>rp,getChildren:()=>fw,getColor:()=>at,getColorShade:()=>Hp,getContext:()=>gl,getCookie:()=>Yb,getDB:()=>wl,getDefaultOrFirstKey:()=>Qn,getEmitStats:()=>Ph,getEmotionStylesheet:()=>Gw,getExtendsInElement:()=>i_,getExtendsStack:()=>jc,getExtendsStackRegistry:()=>Md,getFnPrefixAndValue:()=>er,getFontFace:()=>nS,getFontFaceEach:()=>Go,getFontFaceEachString:()=>Jp,getFontFaceString:()=>Hl,getFontFamily:()=>hf,getFontFormat:()=>Xp,getFontSizeByKey:()=>mf,getFrequencyInArray:()=>Wy,getFunctionSource:()=>Oe,getHashedExtend:()=>Vc,getImportMapScript:()=>bw,getInObjectByPath:()=>Db,getLanguages:()=>qu,getLocalStateLang:()=>Zu,getLocalStorage:()=>Zb,getMediaBorder:()=>ff,getMediaColor:()=>Vt,getMediaTheme:()=>We,getNev:()=>Bb,getObserver:()=>Te,getPageMetadata:()=>Lw,getParentStateInKey:()=>np,getPath:()=>ll,getPendingLang:()=>Wu,getQuery:()=>Sl,getRef:()=>lw,getResolvedThemeSignal:()=>e1,getRgbTone:()=>On,getRoot:()=>dl,getRootContext:()=>hl,getRootData:()=>pl,getRootState:()=>ul,getRootStateInKey:()=>ep,getSafeInk:()=>uh,getSafeInkInfo:()=>$S,getSequenceValue:()=>Xo,getSequenceValueBySymbols:()=>Ql,getSequenceValuePropertyPair:()=>Dn,getShadow:()=>lf,getShapeByKey:()=>yf,getSignals:()=>DA,getSizeValue:()=>qi,getSpacingBasedOnRatio:()=>ze,getSpacingByKey:()=>Bt,getSpreadChildren:()=>l_,getSubratio:()=>Zl,getSubratioDifference:()=>Xl,getSystemGlobalTheme:()=>le,getTheme:()=>BS,getThemeSignal:()=>t1,getTimingByKey:()=>be,getTimingFunction:()=>De,global:()=>Uy,gradient:()=>uS,grid:()=>kS,hasFunction:()=>se,hasHandlerPlugin:()=>ui,hasOwnProperty:()=>vb,hashContent:()=>Tn,hexToRgb:()=>Xw,hexToRgbArray:()=>jp,hexToRgba:()=>Jw,hslToRgb:()=>Vp,icons:()=>hS,inheritChildExtends:()=>jd,inheritChildPropsExtends:()=>Fd,inheritParentProps:()=>Gc,inheritRecursiveChildExtends:()=>Bd,init:()=>Vn,initPolyglot:()=>dy,initProps:()=>g_,injectGlobal:()=>Et,is:()=>he,isArray:()=>I,isBoolean:()=>Sd,isBuiltinElementMethod:()=>db,isCSSVar:()=>$t,isContextComponent:()=>f_,isCyclic:()=>Ib,isDOMNode:()=>de,isDate:()=>kd,isDefined:()=>jt,isDevelopment:()=>Pr,isDomDocument:()=>zn,isEmpty:()=>Cd,isEmptyObject:()=>Eb,isEnumeratedTrueFalseAttr:()=>ms,isEqualDeep:()=>Td,isFailedRevival:()=>To,isFunction:()=>P,isGoogleFontsUrl:()=>Bi,isHostObject:()=>Wn,isHtmlElement:()=>mc,isInertCompoundValue:()=>Wp,isLazyFunction:()=>xb,isLocal:()=>jb,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>$o,isMethod:()=>hw,isMobile:()=>Kb,isNativeColorToken:()=>qo,isNode:()=>qn,isNot:()=>Hy,isNotProduction:()=>Kn,isNull:()=>xd,isNumber:()=>pe,isObject:()=>A,isObjectLike:()=>V,isPhoto:()=>xw,isPlainColor:()=>qr,isPolyglotRetranslatableKey:()=>Jc,isPolyglotWritableKey:()=>Do,isProduction:()=>Rr,isProtectedElementMethod:()=>vo,isRawUnitValue:()=>hc,isResolvedColor:()=>ln,isRevived:()=>Oo,isScalingUnit:()=>So,isStaging:()=>Fb,isState:()=>x_,isStore:()=>wt,isString:()=>E,isStringFunction:()=>fi,isStringTag:()=>Pc,isSvgTag:()=>lr,isTest:()=>Pd,isTesting:()=>Nb,isTracking:()=>e0,isUndefined:()=>Wt,isUniversallyReservedKey:()=>mw,isUnresolvableDependency:()=>Fr,isValidDependencyMap:()=>No,isValidHtmlTag:()=>Qb,isValidTag:()=>pa,isWasmLoaded:()=>UM,isWrappedLibrary:()=>cn,isWritableFamilyBucket:()=>By,joinArrays:()=>oi,joinCompoundLayers:()=>Fi,jointStacks:()=>o_,jsonForScript:()=>Lo,keyframes:()=>aa,keys:()=>Cp,libraryPackageSpecs:()=>Pi,librarySpecsFor:()=>$p,linearChannelToSrgb:()=>Kp,literalPairCompound:()=>ts,literalSchemeMap:()=>rr,loadCssFile:()=>Aw,loadJavascript:()=>Cw,loadJavascriptFile:()=>kw,loadJavascriptFileEmbedSync:()=>Ew,loadJavascriptFileSync:()=>vw,loadRemoteCSS:()=>Tw,loadRemoteScript:()=>Ti,loadTranslations:()=>Gu,loadWasm:()=>BM,log:()=>dw,logGroupIf:()=>qb,logIf:()=>Wb,lookdown:()=>sw,lookdownAll:()=>iw,lookup:()=>ow,lowercaseFirstLetter:()=>xo,makeObjectWithoutPrototype:()=>Ab,map:()=>wb,mapStringsWithContextComponents:()=>zc,markPolyglotSeeded:()=>En,markRevived:()=>li,matchesComponentNaming:()=>vn,media:()=>cS,memoize:()=>Vb,merge:()=>Tt,mergeSharedLibraries:()=>Pl,mergeSharedLibraryDesignSystems:()=>Dl,mixTwoColors:()=>Yw,mixTwoRgb:()=>Qw,mixTwoRgba:()=>zp,nextElement:()=>yl,normalizeIgnoreList:()=>Tl,normalizeLibraryKey:()=>Uo,numToLetterMap:()=>Rn,objectToString:()=>Rc,objectizeStringProperty:()=>Wc,oklabToLinearSrgb:()=>Gp,oklabToOklch:()=>Bl,oklchToGamutSafeSrgb:()=>Ul,oklchToOklab:()=>Yp,opacify:()=>$i,overwrite:()=>Lc,overwriteDeep:()=>ie,overwriteShallow:()=>Po,overwriteState:()=>E_,parkHostObject:()=>Ar,parse:()=>Tp,parseColorToken:()=>Zt,parseDeep:()=>al,pickupElementFromProps:()=>Wd,pickupPropsFromElement:()=>zd,polyglotFallbackLang:()=>xl,polyglotFunctions:()=>Ju,polyglotLangStorageKey:()=>vi,polyglotPlugin:()=>oc,polyglotSeededKeys:()=>Lr,popConfig:()=>mt,popStaticCssPass:()=>Wh,prepareContext:()=>gA,previousElement:()=>bl,promoteActiveRootState:()=>xi,propExists:()=>p_,propertizeElement:()=>qd,propertizeUpdate:()=>d_,pushConfig:()=>bt,pushStaticCssPass:()=>zh,quietColorProbe:()=>Zo,readJsonDataBlock:()=>Io,refreshContextProto:()=>wa,registerEvent:()=>fa,registerHostPackages:()=>mF,registerSignalInstance:()=>Qs,reinit:()=>xv,relativeLuminance:()=>zo,remove:()=>ba,removeChars:()=>Ww,removeCookie:()=>Xb,removeDelegatedEvent:()=>Pf,removeDuplicateProps:()=>Xc,removeDuplicatesInArray:()=>si,removeFromArray:()=>qy,removeFromObject:()=>Tb,removeNestedKeyByPath:()=>Rb,removeValueFromArray:()=>wc,removeValueFromArrayAll:()=>Xy,reorderArrayByValues:()=>Jy,repairLegacyArrowScopePreamble:()=>Cc,replaceLiteralsWithObjectFields:()=>Kt,replaceOctalEscapeSequences:()=>ib,resetEmitStats:()=>dx,resolveAsset:()=>me,resolveBorderValue:()=>ae,resolveColorRgb:()=>Jo,resolveColorsInGradient:()=>vf,resolveCompoundWords:()=>Zn,resolveConfigDocument:()=>ni,resolveDesignSystemClass:()=>UO,resolveFileReferences:()=>jo,resolveFileSource:()=>o0,resolveFileUrl:()=>Ve,resolveGridTracks:()=>MO,resolveHandler:()=>di,resolvePropValue:()=>Zr,resolveShadowNonColorWord:()=>Gi,resolveShadowValue:()=>es,resolveSharedLibraries:()=>Ll,resolveStyleBlockTokens:()=>Vx,returnSubThemeOrDefault:()=>eS,returnValueAsText:()=>Gd,rgbArrayToHex:()=>Bp,rgbToHSL:()=>Up,rgbToHex:()=>Zw,runPluginHook:()=>Dr,runThroughMedia:()=>dh,schemeGuardSelector:()=>fh,schemeMediaQuery:()=>lh,scopeElementParam:()=>vd,scopeReceiverExpression:()=>yb,scratchDefaultConfig:()=>Vi,scratchSystem:()=>Ji,scratchUtils:()=>zr,self:()=>Vy,semanticIcons:()=>gS,sequence:()=>tr,serializeAttrValue:()=>jn,set:()=>ss,setActiveConfig:()=>rh,setActiveDocument:()=>ux,setActiveRootState:()=>fl,setAdaptiveSchemeVar:()=>Gr,setClass:()=>PH,setClassname:()=>i6,setColor:()=>Wr,setCookie:()=>Gb,setCssEngineHook:()=>Xg,setCustomFont:()=>Vl,setCustomFontMedia:()=>Vr,setEach:()=>XS,setFont:()=>pf,setFontFamily:()=>Xi,setFontImport:()=>Ui,setGradient:()=>Ki,setHashedExtend:()=>Id,setInCustomFontMedia:()=>Zp,setInObjectByPath:()=>Pb,setLang:()=>Yu,setLocalStorage:()=>Jb,setMediaTheme:()=>Yi,setNodeStyles:()=>Ap,setObserver:()=>dc,setProps:()=>cw,setPropsPrototype:()=>Yc,setSVG:()=>Zi,setScalingVar:()=>Yl,setShadow:()=>Yr,setSubScalingVar:()=>sh,setSvgIcon:()=>ns,setTheme:()=>uf,setValue:()=>YS,setVariables:()=>LS,setWasmEngine:()=>Tf,settled:()=>yd,shadow:()=>pS,shape:()=>CS,sharedLibrary:()=>Fw,sizes:()=>AS,skins:()=>TS,spacing:()=>lS,splitCompoundWords:()=>Fl,splitPackageSpecifier:()=>kl,splitSpacedValue:()=>cf,splitTopLevelCommas:()=>Jn,splitTopLevelSpaces:()=>lt,splitTransition:()=>wh,spotByPath:()=>cl,srcsetFor:()=>Li,srgbChannelToLinear:()=>qp,srgbToOklab:()=>jl,stringIncludesAny:()=>kc,stringToObject:()=>kb,stripVersionRangePrefix:()=>vl,svg:()=>wS,svgData:()=>SS,swapItemsInArray:()=>Ky,syncProps:()=>Zc,templates:()=>xS,theme:()=>dS,timing:()=>mS,toCamel:()=>Kl,toCamelCase:()=>Vo,toDashCase:()=>Il,toDescriptionCase:()=>Kw,toLinearChannel:()=>Ii,toPriorityOrder:()=>je,toTitleCase:()=>qw,toggleFullscreen:()=>yw,transformBackgroundImage:()=>yh,transformBorder:()=>hh,transformBorderRadius:()=>or,transformBoxShadow:()=>kf,transformClassname:()=>HO,transformDuration:()=>Ef,transformGridTemplate:()=>_h,transformShadow:()=>mh,transformSize:()=>Pt,transformSizeRatio:()=>j,transformTextStroke:()=>gh,transformTransition:()=>GS,transformersByPrefix:()=>Ux,transfromGap:()=>bh,translate:()=>Ku,triggerEventOn:()=>Gn,triggerEventOnUpdate:()=>C_,trimStringFromSymbols:()=>ob,typography:()=>zl,unit:()=>rS,unstackArrayOfObjects:()=>_c,untrack:()=>ei,update:()=>ya,updateProps:()=>m_,updateVars:()=>RH,upsertTranslation:()=>Xu,useCssInProps:()=>ne,useHostState:()=>t0,usePropsAsCSS:()=>BO,useSelectorsAsCSS:()=>VO,variables:()=>_l,vars:()=>ES,verbose:()=>ki,viewTransition:()=>OS,warn:()=>ml,warnLibraryAliasCollision:()=>Di,warnStateKeyShadowsMethod:()=>wd,window:()=>T,wrapHoverRule:()=>ar});module.exports=$F(SA);Rt();var Dh={};F(Dh,{CSS_LONGHAND_SHORTHANDS:()=>qe,CSS_SHORTHAND_LONGHANDS:()=>xt,assertEmitIntegrity:()=>px,css:()=>Ie,cssCamelName:()=>Of,cssPropName:()=>Se,cssShorthandDepth:()=>ea,cssShorthandStatesLonghand:()=>na,cssShorthandStatesThemeLonghand:()=>Af,getActiveDocument:()=>cr,getCacheSize:()=>yx,getEmitStats:()=>Ph,injectGlobal:()=>Et,keyframes:()=>aa,reset:()=>uO,resetEmitStats:()=>dx,setActiveDocument:()=>ux,setWasmEngine:()=>Tf,wrapHoverRule:()=>ar});var ZS={};F(ZS,{BARE_SEQUENCE_TOKEN_RE:()=>Pn,COMPOUND_CSS_KEYWORDS:()=>Wo,CONFIG:()=>Yo,CONFIG_MERGE_EXL:()=>Pe,CSS_NAMED_COLOR_HEX:()=>Mi,CSS_NATIVE_COLOR_REGEX:()=>Ur,CSS_UNITS:()=>ri,FACTORY:()=>Re,STANDARD_SCHEME_QUERIES:()=>ch,VALUE_TRANSFORMERS:()=>Sh,__resetSkinWarnings:()=>qS,activateConfig:()=>n1,aliasCaseVariants:()=>Wi,animation:()=>_S,appendSVGSprite:()=>wf,appendSvgIconsSprite:()=>rs,applyDocument:()=>_f,applyHeadings:()=>ph,applyMediaSequenceVars:()=>Hr,applyReset:()=>Sf,applySequenceGlobalVars:()=>ef,applySequenceVars:()=>nr,applySkins:()=>xf,applySpacingSequence:()=>af,applyTimingSequence:()=>bf,applyTypographySequence:()=>gf,atSchemes:()=>Kr,breakpoints:()=>yS,buildSkinVarStyles:()=>os,changeGlobalTheme:()=>xh,changeLightness:()=>tS,checkIfBoxSize:()=>sf,class:()=>vS,color:()=>fS,colorPairSchemes:()=>of,colorStringToRgbaArray:()=>Ue,compositeOverBackdrop:()=>Ko,compoundLayers:()=>Ni,contrastRatio:()=>ji,convertSvgToSymbol:()=>rf,createConfig:()=>Gl,createPristineConfig:()=>oh,cssMediaVars:()=>nh,cssVars:()=>eh,defineResolvedThemeSignal:()=>zi,defineThemeSignal:()=>Hi,devices:()=>bS,document:()=>JT,findHeadingLetter:()=>ih,findHeadings:()=>tf,font:()=>oS,fontFace:()=>aS,fontFamily:()=>sS,fontFamilyTypes:()=>iS,forcedScheme:()=>Qo,generateSequence:()=>ye,generateSequencePosition:()=>DS,generateSprite:()=>nf,generateSubSequence:()=>Jl,getActiveConfig:()=>O,getColor:()=>at,getColorShade:()=>Hp,getDefaultOrFirstKey:()=>Qn,getFnPrefixAndValue:()=>er,getFontFace:()=>nS,getFontFaceEach:()=>Go,getFontFaceEachString:()=>Jp,getFontFaceString:()=>Hl,getFontFamily:()=>hf,getFontFormat:()=>Xp,getFontSizeByKey:()=>mf,getMediaBorder:()=>ff,getMediaColor:()=>Vt,getMediaTheme:()=>We,getResolvedThemeSignal:()=>e1,getRgbTone:()=>On,getSafeInk:()=>uh,getSafeInkInfo:()=>$S,getSequenceValue:()=>Xo,getSequenceValueBySymbols:()=>Ql,getSequenceValuePropertyPair:()=>Dn,getShadow:()=>lf,getShapeByKey:()=>yf,getSizeValue:()=>qi,getSpacingBasedOnRatio:()=>ze,getSpacingByKey:()=>Bt,getSubratio:()=>Zl,getSubratioDifference:()=>Xl,getTheme:()=>BS,getThemeSignal:()=>t1,getTimingByKey:()=>be,getTimingFunction:()=>De,gradient:()=>uS,grid:()=>kS,hexToRgb:()=>Xw,hexToRgbArray:()=>jp,hexToRgba:()=>Jw,hslToRgb:()=>Vp,icons:()=>hS,isCSSVar:()=>$t,isDomDocument:()=>zn,isGoogleFontsUrl:()=>Bi,isHostObject:()=>Wn,isInertCompoundValue:()=>Wp,isNativeColorToken:()=>qo,isPlainColor:()=>qr,isRawUnitValue:()=>hc,isResolvedColor:()=>ln,isScalingUnit:()=>So,isWritableFamilyBucket:()=>By,joinCompoundLayers:()=>Fi,linearChannelToSrgb:()=>Kp,literalPairCompound:()=>ts,literalSchemeMap:()=>rr,media:()=>cS,mixTwoColors:()=>Yw,mixTwoRgb:()=>Qw,mixTwoRgba:()=>zp,numToLetterMap:()=>Rn,oklabToLinearSrgb:()=>Gp,oklabToOklch:()=>Bl,oklchToGamutSafeSrgb:()=>Ul,oklchToOklab:()=>Yp,opacify:()=>$i,parkHostObject:()=>Ar,parseColorToken:()=>Zt,popConfig:()=>mt,pushConfig:()=>bt,quietColorProbe:()=>Zo,relativeLuminance:()=>zo,reset:()=>QT,resolveBorderValue:()=>ae,resolveColorRgb:()=>Jo,resolveColorsInGradient:()=>vf,resolveCompoundWords:()=>Zn,resolveConfigDocument:()=>ni,resolveFileUrl:()=>Ve,resolveShadowNonColorWord:()=>Gi,resolveShadowValue:()=>es,returnSubThemeOrDefault:()=>eS,rgbArrayToHex:()=>Bp,rgbToHSL:()=>Up,rgbToHex:()=>Zw,runThroughMedia:()=>dh,schemeGuardSelector:()=>fh,schemeMediaQuery:()=>lh,scratchDefaultConfig:()=>Vi,scratchSystem:()=>Ji,scratchUtils:()=>zr,semanticIcons:()=>gS,sequence:()=>tr,set:()=>ss,setActiveConfig:()=>rh,setAdaptiveSchemeVar:()=>Gr,setColor:()=>Wr,setCustomFont:()=>Vl,setCustomFontMedia:()=>Vr,setEach:()=>XS,setFont:()=>pf,setFontFamily:()=>Xi,setFontImport:()=>Ui,setGradient:()=>Ki,setInCustomFontMedia:()=>Zp,setMediaTheme:()=>Yi,setSVG:()=>Zi,setScalingVar:()=>Yl,setShadow:()=>Yr,setSubScalingVar:()=>sh,setSvgIcon:()=>ns,setTheme:()=>uf,setValue:()=>YS,setVariables:()=>LS,shadow:()=>pS,shape:()=>CS,sizes:()=>AS,skins:()=>TS,spacing:()=>lS,splitCompoundWords:()=>Fl,splitSpacedValue:()=>cf,splitTopLevelCommas:()=>Jn,splitTopLevelSpaces:()=>lt,splitTransition:()=>wh,srgbChannelToLinear:()=>qp,srgbToOklab:()=>jl,svg:()=>wS,svgData:()=>SS,templates:()=>xS,theme:()=>dS,timing:()=>mS,toCamel:()=>Kl,toLinearChannel:()=>Ii,transformBackgroundImage:()=>yh,transformBorder:()=>hh,transformBorderRadius:()=>or,transformBoxShadow:()=>kf,transformDuration:()=>Ef,transformGridTemplate:()=>_h,transformShadow:()=>mh,transformSize:()=>Pt,transformSizeRatio:()=>j,transformTextStroke:()=>gh,transformTransition:()=>GS,transfromGap:()=>bh,typography:()=>zl,unit:()=>rS,vars:()=>ES,viewTransition:()=>OS});var zr={};F(zr,{BARE_SEQUENCE_TOKEN_RE:()=>Pn,COMPOUND_CSS_KEYWORDS:()=>Wo,CSS_NAMED_COLOR_HEX:()=>Mi,CSS_NATIVE_COLOR_REGEX:()=>Ur,CSS_UNITS:()=>ri,applyMediaSequenceVars:()=>Hr,applySequenceGlobalVars:()=>ef,applySequenceVars:()=>nr,changeLightness:()=>tS,colorStringToRgbaArray:()=>Ue,compositeOverBackdrop:()=>Ko,compoundLayers:()=>Ni,contrastRatio:()=>ji,convertSvgToSymbol:()=>rf,findHeadingLetter:()=>ih,findHeadings:()=>tf,generateSequence:()=>ye,generateSequencePosition:()=>DS,generateSprite:()=>nf,generateSubSequence:()=>Jl,getColorShade:()=>Hp,getDefaultOrFirstKey:()=>Qn,getFnPrefixAndValue:()=>er,getFontFace:()=>nS,getFontFaceEach:()=>Go,getFontFaceEachString:()=>Jp,getFontFaceString:()=>Hl,getFontFormat:()=>Xp,getRgbTone:()=>On,getSequenceValue:()=>Xo,getSequenceValueBySymbols:()=>Ql,getSequenceValuePropertyPair:()=>Dn,getSizeValue:()=>qi,getSubratio:()=>Zl,getSubratioDifference:()=>Xl,hexToRgb:()=>Xw,hexToRgbArray:()=>jp,hexToRgba:()=>Jw,hslToRgb:()=>Vp,isCSSVar:()=>$t,isDomDocument:()=>zn,isGoogleFontsUrl:()=>Bi,isHostObject:()=>Wn,isInertCompoundValue:()=>Wp,isNativeColorToken:()=>qo,isRawUnitValue:()=>hc,isResolvedColor:()=>ln,isScalingUnit:()=>So,isWritableFamilyBucket:()=>By,joinCompoundLayers:()=>Fi,linearChannelToSrgb:()=>Kp,mixTwoColors:()=>Yw,mixTwoRgb:()=>Qw,mixTwoRgba:()=>zp,numToLetterMap:()=>Rn,oklabToLinearSrgb:()=>Gp,oklabToOklch:()=>Bl,oklchToGamutSafeSrgb:()=>Ul,oklchToOklab:()=>Yp,opacify:()=>$i,parkHostObject:()=>Ar,parseColorToken:()=>Zt,relativeLuminance:()=>zo,resolveCompoundWords:()=>Zn,resolveConfigDocument:()=>ni,resolveFileUrl:()=>Ve,returnSubThemeOrDefault:()=>eS,rgbArrayToHex:()=>Bp,rgbToHSL:()=>Up,rgbToHex:()=>Zw,setCustomFont:()=>Vl,setCustomFontMedia:()=>Vr,setFontImport:()=>Ui,setInCustomFontMedia:()=>Zp,setScalingVar:()=>Yl,setSubScalingVar:()=>sh,setVariables:()=>LS,splitCompoundWords:()=>Fl,splitTopLevelCommas:()=>Jn,splitTopLevelSpaces:()=>lt,srgbChannelToLinear:()=>qp,srgbToOklab:()=>jl,toLinearChannel:()=>Ii});var zn=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),Wn=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)},By=t=>t!==null&&typeof t=="object"&&!Wn(t),Ar=(t,e,n)=>{if(!t)return;if(zn(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},ni=t=>t?zn(t.__domDocument)?t.__domDocument:zn(t.document)?t.document:null:null;var So=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",ri=["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"],tj=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),ej=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${ri.filter(t=>t!=="auto").map(tj).join("|")})$`),hc=t=>ej.test(String(t).trim());M();var Mi={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"},Ue=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=Mi[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&&yt&&T){let n=yt.body.appendChild(yt.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){yt.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return yt.body.removeChild(n),[0,0,0,0];t=T.getComputedStyle(n).color,yt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},Yw=(t,e,n=.5)=>(t=Ue(t),e=Ue(e),zp(t,e,n)),Xw=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},jp=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},Zw=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),Bp=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),Jw=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},Qw=(t,e,n=.5)=>{let r=[];for(let o=0;o<3;o++)r[o]=~~(t[o]+(e[o]-t[o])*n);return`rgb(${r})`},tS=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},Up=(t,e,n)=>{let r=Math.max(t,e,n),o=r-Math.min(t,e,n),s=1-Math.abs(r+r-o-1),i=o&&(r==t?(e-n)/o:r==e?2+(n-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(r+r-o)/2]},Vp=(t,e,n,r=e*Math.min(n,1-n),o=(s,i=(s+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Hp=(t,e)=>{let n=parseInt(t,16),r=(n>>16)+e;r>255?r=255:r<0&&(r=0);let o=(n>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|r<<16)+16777216).toString(16).slice(1)},zp=(t,e,n=.5)=>{let r=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;r[o]=s(t[o]+(e[o]-t[o])*n)}return`rgba(${r})`},$i=(t,e)=>{let n=Ue(t);if(!n){Kn()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},$t=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Wo=new Set(["currentcolor","transparent","thin","medium","thick"]),Ur=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,g3=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,qo=t=>g3.test(t),Fl=t=>t.indexOf("(")===-1?t.split(/\s+/):lt(t),Wp=(t,e)=>{let n=t.length,r=0,o=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){r++;continue}if(i===41){r>0&&r--;continue}if(!(r>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>o&&!m3(t,o,s,e))return!1;o=s+1}}return!0},m3=(t,e,n,r)=>{let o=t.charCodeAt(e);if(o>=48&&o<=57)return!0;let s=t.slice(e,n);return qo(s)||r!==void 0&&r.has(s)},Ni=(t,e)=>e?Jn(t).map(n=>Fl(n.trim())):[Fl(t)],Fi=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},Zn=(t,e,{commas:n,keywords:r},o,s)=>{let i=Ur.test(t);if(i&&Wp(t,r))return t;let a=Ni(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=y3(u,e,r,o,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:Fi(a)},y3=(t,e,n,r,o)=>t?$t(t)?`var(${t})`:qo(t)||n!==void 0&&n.has(t)?t:e(t,r,o):"",b3=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Zt=t=>{if(!E(t))return null;if(Ur.test(t))return{passthrough:t};if($t(t))return{cssVar:t};let e=t.match(b3);if(!e)return null;let[,n,r,o]=e,s=r!==void 0?`0.${r}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:n,alpha:s,tone:i}},ln=t=>E(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Jn=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),o===","&&r===0){e.push(n),n="";continue}n+=o}return(n.length||!e.length)&&e.push(n),e},lt=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),r===0&&/\s/.test(o)){n.length&&e.push(n),n="";continue}n+=o}return n.length&&e.push(n),e},Ii=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),zo=t=>.2126*Ii(t[0])+.7152*Ii(t[1])+.0722*Ii(t[2]),ji=(t,e)=>{let n=zo(t)+.05,r=zo(e)+.05;return n>r?n/r:r/n},qp=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Kp=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,jl=([t,e,n])=>{let[r,o,s]=[t,e,n].map(qp),i=.4122214708*r+.5363325363*o+.0514459929*s,a=.2119034982*r+.6806995451*o+.1073969566*s,c=.0883024619*r+.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]},Gp=([t,e,n])=>{let r=t+.3963377774*e+.2158037573*n,o=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=r**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]},Bl=([t,e,n])=>{let r=Math.atan2(n,e)*180/Math.PI;return r<0&&(r+=360),[t,Math.sqrt(e*e+n*n),r]},Yp=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},Ul=(t,e,n,r=24)=>{let o=a=>Gp(Yp([t,a,n])),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<r;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>Kp(Math.max(0,Math.min(1,a))))},Ko=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),On=(t,e)=>{E(t)&&t.includes("rgb")&&(t=Ue(t).join(", ")),E(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),pe(e)&&(e+="");let n=Bp(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=Hp(n,parseFloat(e));return jp(o).join(", ")}else{let[o,s,i]=t,[a,c]=Up(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return Vp(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var eS=(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 n=e[t];return n?n.content&&n.content.src:null},Qn=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let r=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback);if(t.default){let s=t[t.default];if(s&&s.isSystemFallback){let i=r();if(i)return t[i].value}if(s)return s.value}let o=r()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return o&&t[o]&&t[o].value},Xp=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},Bi=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Ui=t=>`@import url('${t}');`,Zp=t=>`@font-face { ${t} }`,Vl=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Xp(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
37
+ `;)t[r]==="\\"&&r++,r++;s(l,r),r++;continue}if(a==="`"){r++,i();continue}if(a==="{"){o++,r++;continue}if(a==="}"){if(o--,n.length&&o===n[n.length-1]){n.pop(),r++,i();continue}r++;continue}r++}return e.join("")},x1=(t,e)=>{if(!E(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!t.includes("const _s = ")&&!t.includes("?.context?.globalScope?.")||!oe(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,r=t;for(let[o,s]of a5){let i=c5(r);r=r.replace(o,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==r[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return r},sh=(t,e)=>{if(E(t))return x1(t,e);let n=N1(t);return n===null?t:x1(n,e)},l5={lazy:!0,window:globalThis},F1=(t,e)=>{let n=sh(t,e);if(n===t||!E(n))return n;try{let r=me({v:n},{},l5).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},wS=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},j1=(t,e,n=new WeakMap)=>{if(E(t)||typeof t=="function")return F1(t,e);if(Gc(t)||!wS(t))return t;if(n.has(t))return n.get(t);let r=Array.isArray(t)?[]:Object.getPrototypeOf(t)===null?Object.create(null):{};n.set(t,r);for(let o of Object.keys(t))r[o]=j1(t[o],e,n);return r},f5=(t,e)=>{let n={...t},r={};for(let o of Object.keys(t.globalScope))r[o]=sh(t.globalScope[o],e);n.globalScope=r;for(let o of kS){let s=t[o];if(!wS(s))continue;let i={};for(let a of Object.keys(s))i[a]=F1(s[a],e);n[o]=i}for(let o of M1)wS(t[o])&&(n[o]=j1(t[o],e));return n},k1=new WeakMap,u5=(t,e,n)=>{let r=k1.get(t);r||k1.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>Jr(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||Jr(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return Jr(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!Jr(i,a)&&Jr(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),r.set(e,o),o},d5=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",p5=(t,e)=>{let n=vS.get(t);return n?e===n.consumerGs?n.libGs:d5(e)?u5(e,n.libGs,n.consumerGs):e:e},h5=()=>{typeof globalThis[w1]!="function"&&Object.defineProperty(globalThis,w1,{value:p5,configurable:!0})},ih=t=>{let e=t[Zo];return Array.isArray(e)?e:null},ES=t=>pn(t)?t.library:t,g5=(t,e,n)=>{let r=ih(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&E(o.id)&&m5(t,o.id))},m5=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(E(s))return s.includes(n);if(!s||typeof s!="object"||r.has(s))return!1;r.add(s);for(let i in s)if(o(s[i]))return!0;return!1};for(let s of["globalScope",...kS,...M1])if(o(t[s]))return!0;return!1},y5=(t,e)=>{let n={};for(let r of Object.keys(t))n[r]=sh(t[r],e);return n},v1=new WeakMap,Kl=(t,e=null)=>{let n=t&&ih(t);if(!n||!n.length)return 0;let r=t.globalScope;if(!A(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=v1.get(r);s||v1.set(r,s=new Set),h5();let i=0;for(let a of n){if(!a||!E(a.id)||s.has(a.id))continue;let c=ES(o[a.index]);if(!c||!A(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?$1(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return E(h)||E(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=A(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>E(p)&&Jr(c.globalScope,p)&&Jr(e,p)&&f(e[p],sh(c.globalScope[p],a.id))):[],d=Uo(y5(c.globalScope,a.id));Object.setPrototypeOf(d,r),vS.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},b5=/^@symbo[-.]ls\//,zl=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,ah=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],qi=(t,e)=>{let n=[];if(!Array.isArray(t))return n;let r=new Map,o=(i,a,c)=>{for(let l of ah(i)){let f=r.get(l);if(f===void 0){r.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=ES(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!b5.test(f))continue;let u=zl(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&zl(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},Gi=({spec:t,kept:e,refused:n})=>{typeof console>"u"||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},E1=["functions","methods","snippets"],ch=Symbol.for("smbls.libraryPackages"),Hl=new WeakMap,_5=t=>!!t&&typeof t=="object"&&!Array.isArray(t),w5=t=>({get globalScope(){return t()}}),A1=(t,e,n)=>{let r={};for(let o of Object.keys(t))r[o]=t[o];return Object.defineProperty(r,"context",{configurable:!0,enumerable:!1,writable:!0,value:w5(e)}),Hl.set(r,n),r},C1=t=>!_5(t)||!Hl.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),ql=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of E1){let o=t[r];C1(o)||Hl.get(o)===t||(t[r]=A1(o,e,t))}if(Array.isArray(t.sharedLibraries)){let r=ih(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=pn(o)&&o&&"library"in o,a=ES(o);if(!a||typeof a!="object"||a.__isStub||Hl.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&vS.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of E1)C1(a[u])||(f[u]=A1(a[u],l,t));return Hl.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of qi(t.sharedLibraries,Gi))r[o]=s;try{Object.defineProperty(n,ch,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},S5=(t,e,n,r="library",o=-1)=>{let s=I1(e,n),i=!g5(t,o,e)&&i5(t,e,s)>0?`${r}#${r5()}`:null,a=i?f5(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==Zo&&!f.startsWith("__")&&f!=="app"&&!s.has(f)){if(A(a[f])&&A(t[f])){if(f==="designSystem")Ki(t[f],a[f],s,f);else for(let u in a[f])if(!s.has(`${f}/${u}`)){if(f==="methods"&&Mo(u)){u in t[f]||l.push(u);continue}u in t[f]?b1(f,t[f][u])&&!b1(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?n5(u,s,l):u;t[f]=R1(d,s,f)}}i&&(ih(t)||(t[Zo]=[]),t[Zo].push({id:i,index:o,key:E(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&e5(r,l)},x5=(t,e,n)=>{if(t!==e){let r=L1(t);if(E(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},k5=`${bS}/default`,v5=t=>E(t)&&t!==""&&Qo(t).full===k5,E5=(t,e)=>{if(E(e.key)&&e.key)return e.key;if(t!==e){if(E(t.key)&&t.key)return t.key;if(E(t.name)&&t.name)return t.name}return null},A5=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=Z3;if(pn(s)&&(i=Wl(s.ignoreList),s=s.library),!A(s))continue;let a={entry:o,lib:s,ignore:i,index:r};v5(E5(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},B1=(t,e,n)=>{let r=_1(e()),{linked:o,bases:s}=A5(t);for(let a of o)n(a);let i=!r.size&&s.length?_1(e()):null;for(let a of s)n(a);return r.size?r:i&&i.size?i:null},Gl=(t,e)=>{if(!e||!e.length)return;let n=t.designSystem,r=B1(e,()=>t.designSystem,({entry:o,lib:s,ignore:i,index:a})=>S5(t,s,i,x5(o,s,a),a));r&&(t.designSystem!==n&&(t.designSystem={...t.designSystem}),D1(t.designSystem,r))},Yl=(t,e,n=Ki)=>{if(!A(t)||!Array.isArray(e)||!e.length)return t;let r=B1(e,()=>t,({lib:o,ignore:s})=>{let i=o.designSystem;if(!i||typeof i!="object")return;let a=I1(o,s);a.has("designSystem")||n(t,i,a,"designSystem")});return r&&D1(t,r),t}});var AS,CS,TS,ts,OS,Jl,RS,es,V1=L(()=>{"use strict";Kt();AS=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},CS=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},TS=t=>t.replace(/[^a-zA-Z0-9_]/g,""),ts=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),OS=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Jl=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),RS=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},es=t=>{if(I(t))return t;if(E(t))return t.split(" ");if(A(t))return Object.values(t);if(he(t))return[t]}});var PS,H1=L(()=>{"use strict";PS=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let r=0;r<n.length;r++)e+=n[r].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var ye,Yi,Zl,Ql,z1=L(()=>{"use strict";ye=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let r=n.assets&&n.assets[e]||n.files&&n.files[e];if(!r)return null;if(typeof r=="string")return{src:r,type:null,variants:null};if(typeof r=="object"){if(typeof r.src=="string")return r;let o=r.content,s=o&&o.src;if(typeof s=="string")return{...r,src:s,type:r.type??o.type??null,variants:r.variants??o.variants??null}}return null},Yi=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(o=>typeof o.width=="number"),r=[];for(let o of t)n&&typeof o.width=="number"?r.push(`${o.src} ${o.width}w`):n||(o.scale===1&&e?r.push(o.src):o.scale&&o.scale!==1&&r.push(`${o.src} ${o.scale}x`));return r.join(", ")},Zl=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return Yi(e,{keepOneX:!1})},Ql=(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 n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let r=[];for(let[a,c]of n)a!==t.type&&r.push({tag:"source",attr:{type:a,srcset:Yi(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=Yi(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var tf={};$(tf,{BRENDER_REGISTRY_BLOCK:()=>Bl,BRENDER_STAMP_META:()=>nh,CDN_PROVIDERS:()=>ze,DESIGN_SYSTEM_BLOCK:()=>Vl,DESIGN_SYSTEM_LINK:()=>Ul,DOMQL_EVENTS:()=>Hb,DOMQ_PROPERTIES:()=>Mr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ki,ENV:()=>d_,HTML_TAGS:()=>Ri,LIBRARY_PACKAGES:()=>ch,LIBRARY_SCOPES_KEY:()=>Zo,METHODS:()=>Nr,METHODS_EXL:()=>Hc,NODE_ENV:()=>ln,OPTIONS:()=>ml,PACKAGE_MANAGER_TO_CDN:()=>Gr,PARSED_DOMQ_PROPERTIES:()=>Vc,POLYGLOT_LANG_STORAGE_KEY:()=>Jp,PROPS_METHODS:()=>$r,REVIVED_MARK:()=>Yc,STATE_METHODS:()=>Io,STATE_PROPERTIES:()=>Ub,SVG_TAGS:()=>GC,TYPES:()=>Mc,UNIVERSAL_RESERVED_KEYS:()=>Xp,__resetBuiltinMethodWarnings:()=>xS,addCaching:()=>Sp,addContext:()=>wp,addExtend:()=>M_,addExtends:()=>Cn,addItemAfterEveryElement:()=>Cb,addProtoToArray:()=>Fc,addRef:()=>yp,alternateLinkKey:()=>Xo,applyDependentState:()=>tw,applyEvent:()=>Cp,applyEventUpdate:()=>Tp,applyExtends:()=>JC,applyProps:()=>ll,arrayContainsOtherArray:()=>wb,arraysEqual:()=>Ob,arrayzeValue:()=>es,bareLibraryKey:()=>zl,bindLibraryGlobalScopes:()=>Kl,brenderRegistryBlock:()=>fS,brenderStampMeta:()=>pS,buildImgSrcset:()=>Zl,buildSourcesAndImg:()=>Ql,cache:()=>sw,call:()=>Ww,captureSnapshot:()=>qw,checkForStateTypes:()=>X_,checkIfInherits:()=>Ap,checkIfStringIsInArray:()=>Db,clone:()=>Jb,cloneAndMergeArrayExtend:()=>el,cloneFunction:()=>__,collectExtendsList:()=>Pi,concatAddExtends:()=>D_,copyJavaScriptToClipboard:()=>CS,copyStringToClipboard:()=>AS,createBasedOnType:()=>mp,createElement:()=>Y_,createElementExtends:()=>op,createExtends:()=>rl,createExtendsFromKeys:()=>Di,createExtendsStack:()=>cp,createIfConditionFlag:()=>w_,createInheritedState:()=>J_,createKey:()=>Qc,createNestedObject:()=>s_,createNestedObjectByKeyPath:()=>Q_,createObjectWithoutPrototype:()=>Xd,createParent:()=>bp,createPath:()=>_p,createProps:()=>fl,createPropsStack:()=>hp,createRoot:()=>G_,createScope:()=>nw,createSnapshotId:()=>Zc,currentPathname:()=>qo,customDecodeURIComponent:()=>Bb,customEncodeURIComponent:()=>jb,cutArrayAfterValue:()=>Eb,cutArrayBeforeValue:()=>vb,debounce:()=>tl,debounceOnContext:()=>y_,decodeNewlines:()=>Fb,deepClone:()=>ut,deepContains:()=>r_,deepDefaults:()=>Ki,deepDestringifyFunctions:()=>me,deepExtend:()=>rp,deepMerge:()=>ft,deepMergeExtends:()=>Tn,deepStringifyFunctions:()=>Kc,defineSetter:()=>Hw,designSystemBlock:()=>dS,designSystemLink:()=>uS,destringifyGlobalScope:()=>Uo,detectHeightOnInit:()=>Qw,detectInfiniteLoop:()=>l_,document:()=>St,encodeNewlines:()=>Nb,error:()=>Wo,escapeHtml:()=>z,escapeRegExp:()=>Lb,excludeKeysFromObject:()=>u_,exec:()=>vt,exposeBagGlobalScopes:()=>ql,extendCachedRegistry:()=>L_,extendStackRegistry:()=>ol,extractArrayExtend:()=>il,faviconLinkKey:()=>Xr,fetchLibraryData:()=>lh,fibonacciNumberByIndex:()=>tS,fileEntryUrl:()=>rh,filterArrays:()=>Rb,filterArraysFast:()=>Pb,finalizeExtends:()=>lp,findClosestNumber:()=>oh,findClosestNumberInFactory:()=>yS,findInheritedState:()=>Ep,findKeyPosition:()=>Mb,flattenExtend:()=>Li,formatDate:()=>Zw,generateHash:()=>tp,generateHeadArrayTags:()=>Wi,generateKey:()=>Jc,generateMetaTags:()=>gS,get:()=>jw,getCDNDirUrl:()=>eh,getCDNUrl:()=>dn,getCapitalCaseKeys:()=>F_,getCdnProviderFromConfig:()=>Hi,getChildStateInKey:()=>vp,getChildren:()=>Vw,getContext:()=>Pl,getCookie:()=>E_,getDB:()=>$l,getEmotionStylesheet:()=>PS,getExtendsInElement:()=>$_,getExtendsStack:()=>nl,getExtendsStackRegistry:()=>np,getFrequencyInArray:()=>Sb,getFunctionSource:()=>De,getHashedExtend:()=>sl,getImportMapScript:()=>Jw,getInObjectByPath:()=>c_,getLocalStorage:()=>C_,getNev:()=>m_,getPageMetadata:()=>mS,getParentStateInKey:()=>kp,getPath:()=>El,getQuery:()=>Nl,getRef:()=>Uw,getRoot:()=>Tl,getRootContext:()=>Rl,getRootData:()=>Ol,getRootState:()=>Cl,getRootStateInKey:()=>xp,getSpreadChildren:()=>j_,global:()=>yb,hasFunction:()=>oe,hasHandlerPlugin:()=>Ci,hasOwnProperty:()=>t_,hashContent:()=>Dn,inheritChildExtends:()=>ip,inheritChildPropsExtends:()=>sp,inheritParentProps:()=>ul,inheritRecursiveChildExtends:()=>ap,initProps:()=>W_,insertAfterImportMap:()=>hS,is:()=>ge,isArray:()=>I,isBoolean:()=>Vd,isBuiltinElementMethod:()=>Vb,isContextComponent:()=>B_,isCyclic:()=>f_,isDOMNode:()=>pe,isDate:()=>zd,isDefined:()=>jt,isDevelopment:()=>jr,isEmpty:()=>Gd,isEmptyObject:()=>e_,isEqualDeep:()=>Yd,isFailedRevival:()=>jo,isFunction:()=>D,isHtmlElement:()=>Lc,isLazyFunction:()=>Zb,isLocal:()=>g_,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>Go,isMethod:()=>Kw,isMobile:()=>k_,isNode:()=>Zn,isNot:()=>_b,isNotProduction:()=>Qn,isNull:()=>Hd,isNumber:()=>he,isObject:()=>A,isObjectLike:()=>H,isPhoto:()=>eS,isPolyglotRetranslatableKey:()=>gl,isPolyglotWritableKey:()=>Ho,isProduction:()=>Fr,isProtectedElementMethod:()=>Mo,isRevived:()=>Bo,isStaging:()=>h_,isState:()=>Z_,isString:()=>E,isStringFunction:()=>Ai,isStringTag:()=>Gc,isTest:()=>Zd,isTesting:()=>p_,isUndefined:()=>Wt,isUniversallyReservedKey:()=>Gw,isUnresolvableDependency:()=>Yr,isValidDependencyMap:()=>Yo,isValidHtmlTag:()=>O_,isWrappedLibrary:()=>pn,joinArrays:()=>wi,jointStacks:()=>I_,jsonForScript:()=>zr,keys:()=>Gp,libraryPackageSpecs:()=>qi,librarySpecsFor:()=>ah,loadCssFile:()=>sS,loadJavascript:()=>iS,loadJavascriptFile:()=>nS,loadJavascriptFileEmbedSync:()=>oS,loadJavascriptFileSync:()=>rS,loadRemoteCSS:()=>aS,loadRemoteScript:()=>zi,log:()=>zw,logGroupIf:()=>x_,logIf:()=>S_,lookdown:()=>Nw,lookdownAll:()=>Fw,lookup:()=>$w,lowercaseFirstLetter:()=>Lo,makeObjectWithoutPrototype:()=>n_,map:()=>Xb,mapStringsWithContextComponents:()=>al,markPolyglotSeeded:()=>Rn,markRevived:()=>Ei,matchesComponentNaming:()=>On,memoize:()=>b_,merge:()=>Rt,mergeSharedLibraries:()=>Gl,mergeSharedLibraryDesignSystems:()=>Yl,nextElement:()=>Ll,normalizeIgnoreList:()=>Wl,normalizeLibraryKey:()=>Qo,objectToString:()=>qc,objectizeStringProperty:()=>cl,overwrite:()=>Xc,overwriteDeep:()=>se,overwriteShallow:()=>Vo,overwriteState:()=>ew,parse:()=>Yp,parseDeep:()=>kl,pickStartLang:()=>th,pickupElementFromProps:()=>dp,pickupPropsFromElement:()=>up,polyglotAddressLang:()=>Zp,polyglotFallbackLang:()=>or,polyglotLangStorageKey:()=>Bi,polyglotSeededKeys:()=>Ur,polyglotStartLang:()=>Ko,polyglotStartRule:()=>Qp,polyglotStartupScript:()=>Yw,previousElement:()=>Il,promoteActiveRootState:()=>Fi,propExists:()=>H_,propertizeElement:()=>pp,propertizeUpdate:()=>V_,readBrenderStamp:()=>zo,readJsonDataBlock:()=>er,remove:()=>n1,removeChars:()=>TS,removeCookie:()=>A_,removeDuplicateProps:()=>pl,removeDuplicatesInArray:()=>Si,removeFromArray:()=>xb,removeFromObject:()=>o_,removeNestedKeyByPath:()=>i_,removeValueFromArray:()=>Nc,removeValueFromArrayAll:()=>Ab,reorderArrayByValues:()=>Tb,repairLegacyArrowScopePreamble:()=>zc,replaceLiteralsWithObjectFields:()=>qt,replaceOctalEscapeSequences:()=>$b,resolveAsset:()=>ye,resolveFileReferences:()=>Jo,resolveHandler:()=>Ti,resolveSharedLibraries:()=>Xl,returnValueAsText:()=>gp,runPluginHook:()=>Br,scopeElementParam:()=>Wd,scopeReceiverExpression:()=>qb,self:()=>bb,setActiveRootState:()=>Al,setCookie:()=>v_,setHashedExtend:()=>ep,setInObjectByPath:()=>a_,setLocalStorage:()=>T_,setNodeStyles:()=>qp,setProps:()=>Bw,setPropsPrototype:()=>dl,sharedLibrary:()=>SS,splitPackageSpecifier:()=>Fl,spotByPath:()=>vl,srcsetFor:()=>Yi,stringIncludesAny:()=>Bc,stringToObject:()=>Qb,stripVersionRangePrefix:()=>jl,swapItemsInArray:()=>kb,syncProps:()=>hl,toCamelCase:()=>ts,toDashCase:()=>Jl,toDescriptionCase:()=>RS,toPriorityOrder:()=>Ve,toTitleCase:()=>OS,toggleFullscreen:()=>Xw,triggerEventOn:()=>tr,triggerEventOnUpdate:()=>rw,trimStringFromSymbols:()=>Ib,unstackArrayOfObjects:()=>$c,update:()=>z_,updateProps:()=>K_,variables:()=>Ml,verbose:()=>ji,warn:()=>Dl,warnLibraryAliasCollision:()=>Gi,window:()=>T});var M=L(()=>{"use strict";Jd();Qd();Kt();An();Oi();xi();Ic();WC();KC();Uc();Dc();qC();R_();N_();q_();fp();rT();cT();$o();lT();o1();iw();s1();ow();i1();Gb();a1();c1();l1();f1();u1();d1();p1();h1();m1();y1();U1();V1();H1();z1()});var Sn,td,ed,by=L(()=>{Sn=Object.create(null);Sn.open="0";Sn.close="1";Sn.ping="2";Sn.pong="3";Sn.message="4";Sn.upgrade="5";Sn.noop="6";td=Object.create(null);Object.keys(Sn).forEach(t=>{td[Sn[t]]=t});ed={type:"error",data:"parser error"}});function W2(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function Y2(t,e){if(K2&&t.data instanceof Blob)return t.data.arrayBuffer().then(W2).then(e);if(q2&&(t.data instanceof ArrayBuffer||G2(t.data)))return e(W2(t.data));nd(t,!1,n=>{nA||(nA=new TextEncoder),e(nA.encode(n))})}var K2,q2,G2,nd,z2,nA,X2=L(()=>{by();K2=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",q2=typeof ArrayBuffer=="function",G2=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,nd=({type:t,data:e},n,r)=>K2&&e instanceof Blob?n?r(e):z2(e,r):q2&&(e instanceof ArrayBuffer||G2(e))?n?r(e):z2(new Blob([e]),r):r(Sn[t]+(e||"")),z2=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var J2,rd,Z2,Q2=L(()=>{J2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<J2.length;t++)rd[J2.charCodeAt(t)]=t;Z2=t=>{let e=t.length*.75,n=t.length,r,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(r=0;r<n;r+=4)s=rd[t.charCodeAt(r)],i=rd[t.charCodeAt(r+1)],a=rd[t.charCodeAt(r+2)],c=rd[t.charCodeAt(r+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l}});var v8,od,E8,tN,eN=L(()=>{by();Q2();v8=typeof ArrayBuffer=="function",od=(t,e)=>{if(typeof t!="string")return{type:"message",data:tN(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:E8(t.substring(1),e)}:td[n]?t.length>1?{type:td[n],data:t.substring(1)}:{type:td[n]}:ed},E8=(t,e)=>{if(v8){let n=Z2(t);return tN(n,e)}else return{base64:!0,data:t}},tN=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function sN(){return new TransformStream({transform(t,e){Y2(t,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}function _y(t){return t.reduce((e,n)=>e+n.length,0)}function wy(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let o=0;o<e;o++)n[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function iN(t,e){rA||(rA=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(_y(n)<1)break;let c=wy(n,1);s=(c[0]&128)===128,o=c[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(_y(n)<2)break;let c=wy(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(_y(n)<8)break;let c=wy(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(ed);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(_y(n)<o)break;let c=wy(n,o);a.enqueue(od(s?c:rA.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(ed);break}}}})}var nN,rN,oN,rA,oA,lc=L(()=>{X2();eN();by();nN="",rN=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{nd(s,!1,a=>{r[i]=a,++o===n&&e(r.join(nN))})})},oN=(t,e)=>{let n=t.split(nN),r=[];for(let o=0;o<n.length;o++){let s=od(n[o],e);if(r.push(s),s.type==="error")break}return r};oA=4});function Ct(t){if(t)return A8(t)}function A8(t){for(var e in Ct.prototype)t[e]=Ct.prototype[e];return t}var ei=L(()=>{Ct.prototype.on=Ct.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Ct.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};Ct.prototype.off=Ct.prototype.removeListener=Ct.prototype.removeAllListeners=Ct.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};Ct.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this};Ct.prototype.emitReserved=Ct.prototype.emit;Ct.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Ct.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var Cr,ue,aN,ni=L(()=>{Cr=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ue=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),aN="arraybuffer"});function Sy(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function Tr(t,e){e.useNativeTimers?(t.setTimeoutFn=C8.bind(ue),t.clearTimeoutFn=T8.bind(ue)):(t.setTimeoutFn=ue.setTimeout.bind(ue),t.clearTimeoutFn=ue.clearTimeout.bind(ue))}function cN(t){return typeof t=="string"?R8(t):Math.ceil((t.byteLength||t.size)*O8)}function R8(t){let e=0,n=0;for(let r=0,o=t.length;r<o;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function xy(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var C8,T8,O8,ri=L(()=>{ni();C8=ue.setTimeout,T8=ue.clearTimeout;O8=1.33});function lN(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function fN(t){let e={},n=t.split("&");for(let r=0,o=n.length;r<o;r++){let s=n[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var sA=L(()=>{});var ky,Or,sd=L(()=>{lc();ei();ri();sA();ky=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},Or=class extends Ct{constructor(e){super(),this.writable=!1,Tr(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,r){return super.emitReserved("error",new ky(e,n,r)),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 n=od(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_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 n=lN(e);return n.length?"?"+n:""}}});var fc,iA=L(()=>{sd();ri();lc();fc=class extends Or{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};oN(e,this.socket.binaryType).forEach(n),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,rN(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=xy()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var uN,dN,pN=L(()=>{uN=!1;try{uN=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}dN=uN});function P8(){}function hN(){for(let t in Ao.requests)Ao.requests.hasOwnProperty(t)&&Ao.requests[t].abort()}function gN(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||dN))return new XMLHttpRequest}catch{}if(!e)try{return new ue[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var aA,Ao,D8,Rr,vy=L(()=>{iA();ei();ri();ni();pN();aA=class extends fc{constructor(e){if(super(e),typeof location<"u"){let n=location.protocol==="https:",r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.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",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},Ao=class t extends Ct{constructor(e,n,r){super(),this.createRequest=e,Tr(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;let n=Sy(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.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=P8,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()}};Ao.requestsCount=0;Ao.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",hN);else if(typeof addEventListener=="function"){let t="onpagehide"in ue?"pagehide":"unload";addEventListener(t,hN,!1)}}D8=(function(){let t=gN({xdomain:!1});return t&&t.responseType!==null})(),Rr=class extends aA{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=D8&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ao(gN,this.uri(),e)}}});var mN,lA,cA,Pr,Ey=L(()=>{sd();ri();lc();ni();mN=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",lA=class extends Or{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=mN?{}:Sy(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,r)}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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;nd(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&Cr(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=xy()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},cA=ue.WebSocket||ue.MozWebSocket,Pr=class extends lA{createSocket(e,n,r){return mN?new cA(e,n,r):n?new cA(e,n):new cA(e)}doWrite(e,n){this.ws.send(n)}}});var oi,fA=L(()=>{sd();ni();lc();oi=class extends Or{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 n=iN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=sN();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{r.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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;this._writer.write(r).then(()=>{o&&Cr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var uA,dA=L(()=>{vy();Ey();fA();uA={websocket:Pr,webtransport:oi,polling:Rr}});function uc(t){if(t.length>8e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let o=L8.exec(t||""),s={},i=14;for(;i--;)s[I8[i]]=o[i]||"";return n!=-1&&r!=-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=M8(s,s.path),s.queryKey=$8(s,s.query),s}function M8(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function $8(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var L8,I8,pA=L(()=>{L8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,I8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var hA,Ay,si,Cy,dc,gA=L(()=>{dA();ri();sA();pA();ei();lc();ni();hA=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ay=[];hA&&addEventListener("offline",()=>{Ay.forEach(t=>t())},!1);si=class t extends Ct{constructor(e,n){if(super(),this.binaryType=aN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){let r=uc(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=uc(n.host).host);Tr(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=fN(this.opts.query)),hA&&(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"})},Ay.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=oA,n.transport=e,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_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 n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=cN(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Cr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let s={type:e,data:n,options:r};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()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():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,n){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(),hA&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=Ay.indexOf(this._offlineEventListener);r!==-1&&Ay.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};si.protocol=oA;Cy=class extends si{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 n=this.createTransport(e),r=!1;si.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;si.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function s(){r||(r=!0,f(),n.close(),n=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=n.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){n&&u.name!==n.name&&s()}let f=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let n=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}},dc=class extends Cy{constructor(e,n={}){let r=typeof e=="object"?e:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>uA[o]).filter(o=>!!o)),super(e,r)}}});var id,yN=L(()=>{iA();id=class extends fc{doPoll(){this._fetch().then(e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then(n=>this.onData(n))}).catch(e=>{this.onError("fetch read error",e)})}doWrite(e,n){this._fetch(e).then(r=>{if(!r.ok)return this.onError("fetch write error",r.status,r);n()}).catch(r=>{this.onError("fetch write error",r)})}_fetch(e){var n;let r=e!==void 0,o=new Headers(this.opts.extraHeaders);return r&&o.set("content-type","text/plain;charset=UTF-8"),(n=this.socket._cookieJar)===null||n===void 0||n.appendCookies(o),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:o,credentials:this.opts.withCredentials?"include":"omit"}).then(s=>{var i;return(i=this.socket._cookieJar)===null||i===void 0||i.parseCookies(s.headers.getSetCookie()),s})}}});var Glt,Ty=L(()=>{gA();gA();sd();dA();ri();pA();ni();yN();vy();vy();Ey();Ey();fA();Glt=dc.protocol});function bN(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=uc(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var _N=L(()=>{Ty()});function cd(t){return N8&&(t instanceof ArrayBuffer||F8(t))||j8&&t instanceof Blob||B8&&t instanceof File}function ad(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(ad(t[n]))return!0;return!1}if(cd(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return ad(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&ad(t[n]))return!0;return!1}var N8,F8,wN,j8,B8,mA=L(()=>{N8=typeof ArrayBuffer=="function",F8=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,wN=Object.prototype.toString,j8=typeof Blob=="function"||typeof Blob<"u"&&wN.call(Blob)==="[object BlobConstructor]",B8=typeof File=="function"||typeof File<"u"&&wN.call(File)==="[object FileConstructor]"});function SN(t){let e=[],n=t.data,r=t;return r.data=yA(n,e),r.attachments=e.length,{packet:r,buffers:e}}function yA(t,e){if(!t)return t;if(cd(t)){let n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){let n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=yA(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){let n={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=yA(t[r],e));return n}return t}function xN(t,e){return t.data=bA(t.data,e),delete t.attachments,t}function bA(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 n=0;n<t.length;n++)t[n]=bA(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=bA(t[n],e));return t}var kN=L(()=>{mA()});var EN=Jy((pft,vN)=>{var pc=1e3,hc=pc*60,gc=hc*60,ii=gc*24,U8=ii*7,V8=ii*365.25;vN.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return H8(t);if(n==="number"&&isFinite(t))return e.long?W8(t):z8(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function H8(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 n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*V8;case"weeks":case"week":case"w":return n*U8;case"days":case"day":case"d":return n*ii;case"hours":case"hour":case"hrs":case"hr":case"h":return n*gc;case"minutes":case"minute":case"mins":case"min":case"m":return n*hc;case"seconds":case"second":case"secs":case"sec":case"s":return n*pc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function z8(t){var e=Math.abs(t);return e>=ii?Math.round(t/ii)+"d":e>=gc?Math.round(t/gc)+"h":e>=hc?Math.round(t/hc)+"m":e>=pc?Math.round(t/pc)+"s":t+"ms"}function W8(t){var e=Math.abs(t);return e>=ii?Oy(t,e,ii,"day"):e>=gc?Oy(t,e,gc,"hour"):e>=hc?Oy(t,e,hc,"minute"):e>=pc?Oy(t,e,pc,"second"):t+" ms"}function Oy(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var CN=Jy((hft,AN)=>{function K8(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=EN(),n.destroy=l,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.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 n.colors[Math.abs(u)%n.colors.length]}n.selectColor=e;function n(f){let u,d=null,p,g;function h(...m){if(!h.enabled)return;let y=h,k=Number(new Date),v=k-(u||k);y.diff=v,y.prev=u,y.curr=k,u=k,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(_,b)=>{if(_==="%%")return"%";S++;let x=n.formatters[b];if(typeof x=="function"){let C=m[S];_=x.call(y,C),m.splice(S,1),S--}return _}),n.formatArgs.call(y,m),(y.log||n.log).apply(y,m)}return h.namespace=f,h.useColors=n.useColors(),h.color=n.selectColor(f),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==n.namespaces&&(p=n.namespaces,g=n.enabled(f)),g),set:m=>{d=m}}),typeof n.init=="function"&&n.init(h),h}function r(f,u){let d=n(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function s(f,u){let d=0,p=0,g=-1,h=0;for(;d<f.length;)if(p<u.length&&(u[p]===f[d]||u[p]==="*"))u[p]==="*"?(g=p,h=d,p++):(d++,p++);else if(g!==-1)p=g+1,h++,d=h;else return!1;for(;p<u.length&&u[p]==="*";)p++;return p===u.length}function i(){let f=[...n.names,...n.skips.map(u=>"-"+u)].join(",");return n.enable(""),f}function a(f){for(let u of n.skips)if(s(f,u))return!1;for(let u of n.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 n.enable(n.load()),n}AN.exports=K8});var TN=Jy((Te,Ry)=>{Te.formatArgs=G8;Te.save=Y8;Te.load=X8;Te.useColors=q8;Te.storage=J8();Te.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`."))}})();Te.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 q8(){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 G8(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ry.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}Te.log=console.debug||console.log||(()=>{});function Y8(t){try{t?Te.storage.setItem("debug",t):Te.storage.removeItem("debug")}catch{}}function X8(){let t;try{t=Te.storage.getItem("debug")||Te.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function J8(){try{return localStorage}catch{}}Ry.exports=CN()(Te);var{formatters:Z8}=Ry.exports;Z8.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var vA={};$(vA,{Decoder:()=>SA,Encoder:()=>wA,PacketType:()=>Z,isPacketValid:()=>n7,protocol:()=>kA});function Q8(t){return typeof t=="string"}function t7(t){return t===void 0||PN(t)}function Py(t){return Object.prototype.toString.call(t)==="[object Object]"}function e7(t,e){switch(t){case Z.CONNECT:return e===void 0||Py(e);case Z.DISCONNECT:return e===void 0;case Z.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&RN.indexOf(e[0])===-1);case Z.ACK:return Array.isArray(e);case Z.CONNECT_ERROR:return typeof e=="string"||Py(e);default:return!1}}function n7(t){return Q8(t.nsp)&&t7(t.id)&&e7(t.type,t.data)}var ON,_A,RN,kA,Z,wA,SA,xA,PN,Dy=L(()=>{ei();kN();mA();ON=Vj(TN(),1),_A=(0,ON.default)("socket.io-parser"),RN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],kA=5;(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={}));wA=class{constructor(e){this.replacer=e}encode(e){return _A("encoding packet %j",e),(e.type===Z.EVENT||e.type===Z.ACK)&&ad(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 n=""+e.type;return(e.type===Z.BINARY_EVENT||e.type===Z.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),_A("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=SN(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},SA=class t extends Ct{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);let r=n.type===Z.BINARY_EVENT;r||n.type===Z.BINARY_ACK?(n.type=r?Z.EVENT:Z.ACK,this.reconstructor=new xA(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(cd(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0,r={type:Number(e.charAt(0))};if(Z[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Z.BINARY_EVENT||r.type===Z.BINARY_ACK){let s=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);let i=e.substring(s,n);if(i!=Number(i)||e.charAt(n)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!PN(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=a}if(e.charAt(n+1)==="/"){let s=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(s,n)}else r.nsp="/";let o=e.charAt(n+1);if(o!==""&&Number(o)==o){let s=n+1;for(;++n;){let i=e.charAt(n);if(i==null||Number(i)!=i){--n;break}if(n===e.length)break}r.id=Number(e.substring(s,n+1))}if(e.charAt(++n)){let s=this.tryParse(e.substr(n));if(t.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return _A("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case Z.CONNECT:return Py(n);case Z.DISCONNECT:return n===void 0;case Z.CONNECT_ERROR:return typeof n=="string"||Py(n);case Z.EVENT:case Z.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&RN.indexOf(n[0])===-1);case Z.ACK:case Z.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},xA=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 n=xN(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};PN=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function je(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var EA=L(()=>{});var r7,ai,AA=L(()=>{Dy();EA();ei();r7=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),ai=class extends Ct{constructor(e,n,r){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=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[je(e,"open",this.onopen.bind(this)),je(e,"packet",this.onpacket.bind(this)),je(e,"error",this.onerror.bind(this)),je(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,...n){var r,o,s;if(r7.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let i={type:Z.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let f=this.ids++,u=n.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.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,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;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);n.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...n){return new Promise((r,o)=>{let s=(i,a)=>i?o(i):r(a);s.withError=!0,n.push(s),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={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?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){let r=this.acks[e];delete this.acks[e],r.withError&&r.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 r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.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 n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:Z.ACK,id:e,data:o}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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 n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,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 n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,e.data)}}}});function ci(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}var DN=L(()=>{ci.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};ci.prototype.reset=function(){this.attempts=0};ci.prototype.setMin=function(t){this.ms=t};ci.prototype.setMax=function(t){this.max=t};ci.prototype.setJitter=function(t){this.jitter=t}});var li,LN=L(()=>{Ty();AA();Dy();EA();DN();ei();li=class extends Ct{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tr(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ci({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let o=n.parser||vA;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 dc(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=je(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=je(n,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.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(je(e,"ping",this.onping.bind(this)),je(e,"data",this.ondata.bind(this)),je(e,"error",this.onerror.bind(this)),je(e,"close",this.onclose.bind(this)),je(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Cr(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new ai(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],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,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;let r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}});var IN={};$(IN,{Fetch:()=>id,Manager:()=>li,NodeWebSocket:()=>Pr,NodeXHR:()=>Rr,Socket:()=>ai,WebSocket:()=>Pr,WebTransport:()=>oi,XHR:()=>Rr,connect:()=>Ly,default:()=>Ly,io:()=>Ly,protocol:()=>kA});function Ly(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=bN(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=ld[o]&&s in ld[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new li(r,e):(ld[o]||(ld[o]=new li(r,e)),c=ld[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var ld,MN=L(()=>{_N();LN();AA();Dy();Ty();ld={};Object.assign(Ly,{Manager:li,Socket:ai,io:Ly,connect:Ly})});var fC={};$(fC,{ANIMATION_PROPS:()=>p0,ARIA_ROLES:()=>HU,ATTR_TRANSFORMS:()=>Cs,BARE_SEQUENCE_TOKEN_RE:()=>Mn,BLOCK_PROPS:()=>h0,BRENDER_REGISTRY_BLOCK:()=>Bl,BRENDER_STAMP_META:()=>nh,CDN_PROVIDERS:()=>ze,COMPOUND_CSS_KEYWORDS:()=>rs,CONFIG:()=>as,CONFIG_MERGE_EXL:()=>ie,CSS_LONGHAND_SHORTHANDS:()=>Xe,CSS_NAMED_COLOR_HEX:()=>Ji,CSS_NATIVE_COLOR_REGEX:()=>Zr,CSS_PROPS_REGISTRY:()=>At,CSS_SHORTHAND_LONGHANDS:()=>Et,CSS_UNITS:()=>_i,DEFAULT_CONFIG:()=>$s,DEFAULT_CSS_PROPERTIES_LIST:()=>Ft,DELEGATED_EVENTS:()=>va,DESIGN_SYSTEM_BLOCK:()=>Vl,DESIGN_SYSTEM_LINK:()=>Ul,DESIGN_SYSTEM_OPTIONS:()=>jA,DOMQL_EVENTS:()=>Hb,DOMQ_PROPERTIES:()=>Mr,DOM_EVENTS:()=>pP,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ki,ENV:()=>d_,FACTORY:()=>Le,FLEX_PROPS:()=>_0,FONT_PROPS:()=>g0,GRID_PROPS:()=>w0,HOST_REGISTERED_PACKAGES:()=>xj,HTML_ATTRIBUTES:()=>br,HTML_TAGS:()=>Ri,LIBRARY_PACKAGES:()=>ch,LIBRARY_SCOPES_KEY:()=>Zo,LIFECYCLE_EVENTS:()=>Nn,LIVE_KEYS:()=>Lx,METHODS:()=>Nr,METHODS_EXL:()=>Hc,MISC_PROPS:()=>m0,MIXINS:()=>ag,NODE_ENV:()=>ln,OPTIONS:()=>ml,PACKAGE_MANAGER_TO_CDN:()=>Gr,PARSED_DOMQ_PROPERTIES:()=>Vc,POLYGLOT_LANG_STORAGE_KEY:()=>Jp,POSITION_PROPS:()=>y0,PREPARED_FORMAT:()=>ma,PROPS_METHODS:()=>$r,REGISTRY:()=>Ht,RESERVED_STORE_METHODS:()=>kC,REVIVED_MARK:()=>Yc,ROUTER_OPTIONS:()=>By,SIGNAL_ENGINE_KEY:()=>mi,SIGNAL_INSTANCES_KEY:()=>hi,STANDARD_SCHEME_QUERIES:()=>Lh,STATE_PROPERTIES:()=>Ub,STORE_METHOD_NAMES:()=>xC,SVG_TAGS:()=>Pa,THEME_PROPS:()=>b0,TIMING_PROPS:()=>nu,TYPES:()=>Mc,UNIVERSAL_RESERVED_KEYS:()=>Xp,VALUE_TRANSFORMERS:()=>Kh,VERSION:()=>EC,__resetBuiltinMethodWarnings:()=>xS,__resetSignalEngine:()=>gb,__resetSignalInstances:()=>pb,__resetSkinWarnings:()=>Ox,__resetStateShadowWarnings:()=>vC,activateConfig:()=>Y1,addCaching:()=>Sp,addContext:()=>wp,addDelegatedEvent:()=>Zf,addExtend:()=>M_,addExtends:()=>Cn,addItemAfterEveryElement:()=>Cb,addMethods:()=>Ma,addProtoToArray:()=>Fc,addRef:()=>yp,adoptPrepared:()=>sE,aliasCaseVariants:()=>sa,alternateLinkKey:()=>Xo,animation:()=>nx,appendSVGSprite:()=>Nf,appendSvgIconsSprite:()=>gs,applyAttrTransforms:()=>W0,applyCSS:()=>aE,applyDependentState:()=>tw,applyDocument:()=>$f,applyEvent:()=>Cp,applyEventUpdate:()=>Tp,applyExtends:()=>Ta,applyHeadings:()=>Fh,applyInitialState:()=>Eg,applyMediaSequenceVars:()=>no,applyProps:()=>ll,applyReset:()=>Ff,applySequenceGlobalVars:()=>_f,applySequenceVars:()=>fr,applySkins:()=>jf,applySpacingSequence:()=>vf,applyStateMethods:()=>ve,applyThemeRoot:()=>zf,applyTimingSequence:()=>Mf,applyTrueProps:()=>E0,applyTypographySequence:()=>Df,arrayContainsOtherArray:()=>wb,arraysEqual:()=>Ob,arrayzeValue:()=>es,assertEmitIntegrity:()=>Jx,atSchemes:()=>io,bareLibraryKey:()=>zl,batch:()=>Nd,bindLibraryGlobalScopes:()=>Kl,breakpoints:()=>tx,brenderRegistryBlock:()=>fS,brenderStampMeta:()=>pS,buildImgSrcset:()=>Zl,buildSkinVarStyles:()=>ms,buildSourcesAndImg:()=>Ql,buildThemeVarStyles:()=>Cm,cache:()=>sw,cacheNode:()=>fo,call:()=>Ww,callStateMethod:()=>cu,camelToAttr:()=>_r,camelToLowerAttr:()=>yP,captureSnapshot:()=>qw,changeGlobalTheme:()=>qh,changeLightness:()=>NS,checkAttributeByTagName:()=>en,checkEventFunctions:()=>z0,checkForStateTypes:()=>X_,checkIfBoxSize:()=>kf,checkIfInherits:()=>Ap,checkIfStringIsInArray:()=>Db,class:()=>ax,clone:()=>Jb,cloneAndMergeArrayExtend:()=>el,cloneFunction:()=>__,collectExtendsList:()=>Pi,color:()=>qS,colorPairSchemes:()=>xf,colorStringToRgbaArray:()=>We,components:()=>tc,compositeOverBackdrop:()=>ss,compoundLayers:()=>Qi,concatAddExtends:()=>D_,contrastRatio:()=>ea,convertSvgToSymbol:()=>Sf,copyJavaScriptToClipboard:()=>CS,copyStringToClipboard:()=>AS,countUntrackedReads:()=>jd,create:()=>iC,createAsync:()=>gq,createBasedOnType:()=>mp,createComputed:()=>wC,createConfig:()=>df,createDefine:()=>gF,createDomqlElement:()=>Sd,createEffect:()=>W,createElement:()=>Y_,createElementExtends:()=>op,createExtends:()=>rl,createExtendsFromKeys:()=>Di,createExtendsStack:()=>cp,createHTMLNode:()=>Ra,createIfConditionFlag:()=>w_,createInheritedState:()=>J_,createKey:()=>Qc,createNestedObject:()=>s_,createNestedObjectByKeyPath:()=>Q_,createObjectWithoutPrototype:()=>Xd,createParent:()=>bp,createPath:()=>_p,createPristineConfig:()=>Oh,createProps:()=>fl,createPropsStack:()=>hp,createRoot:()=>G_,createScope:()=>nw,createScopeStore:()=>Bd,createSignal:()=>cn,createSkeleton:()=>yq,createSnapshotId:()=>Zc,createState:()=>F0,createStore:()=>Yn,createSync:()=>mq,css:()=>$e,cssCamelName:()=>Yf,cssMediaVars:()=>Ch,cssPropName:()=>xe,cssShorthandDepth:()=>ya,cssShorthandStatesLonghand:()=>ba,cssShorthandStatesThemeLonghand:()=>Wf,cssVars:()=>Ah,currentPathname:()=>qo,customDecodeURIComponent:()=>Bb,customEncodeURIComponent:()=>jb,cutArrayAfterValue:()=>Eb,cutArrayBeforeValue:()=>vb,debounce:()=>tl,debounceOnContext:()=>y_,decodeNewlines:()=>Fb,deepClone:()=>ut,deepContains:()=>r_,deepDefaults:()=>Ki,deepDestringifyFunctions:()=>me,deepExtend:()=>rp,deepMerge:()=>ft,deepMergeExtends:()=>Tn,deepStringifyFunctions:()=>Kc,defaultDefine:()=>bc,defineResolvedThemeSignal:()=>eo,defineSetter:()=>Hw,defineThemeSignal:()=>to,designSystemBlock:()=>dS,designSystemLink:()=>uS,destringifyGlobalScope:()=>Uo,destroy:()=>fi,detectHeightOnInit:()=>Qw,detectInfiniteLoop:()=>l_,detectTag:()=>jn,devices:()=>ex,dispose:()=>Vn,effectiveGlobalTheme:()=>Tm,encodeNewlines:()=>Nb,error:()=>Wo,escapeHtml:()=>z,escapeRegExp:()=>Lb,excludeKeysFromObject:()=>u_,exec:()=>vt,executeAttr:()=>ZU,exetuteClassPerComponent:()=>SU,exposeBagGlobalScopes:()=>ql,extendCachedRegistry:()=>L_,extendStackRegistry:()=>ol,extractArrayExtend:()=>il,extractConditionalAttrs:()=>K0,faviconLinkKey:()=>Xr,fetchLibraryData:()=>lh,fibonacciNumberByIndex:()=>tS,fileEntryUrl:()=>rh,filterArrays:()=>Rb,filterArraysFast:()=>Pb,filterAttributesByTagName:()=>JU,finalizeExtends:()=>lp,findClosestNumber:()=>oh,findClosestNumberInFactory:()=>yS,findHeadingLetter:()=>Ph,findHeadings:()=>bf,findInheritedState:()=>Ep,findKeyPosition:()=>Mb,flattenExtend:()=>Li,font:()=>US,fontFace:()=>zS,fontFamily:()=>VS,fontFamilyTypes:()=>HS,forcedScheme:()=>us,formatDate:()=>Zw,generateHash:()=>tp,generateHeadArrayTags:()=>Wi,generateKey:()=>Jc,generateMetaTags:()=>gS,generateSequence:()=>be,generateSequencePosition:()=>gx,generateSprite:()=>wf,generateSubSequence:()=>mf,get:()=>jw,getActiveConfig:()=>O,getActiveDocument:()=>mr,getActiveLang:()=>di,getCDNDirUrl:()=>eh,getCDNUrl:()=>dn,getCacheSize:()=>n0,getCapitalCaseKeys:()=>F_,getCdnProviderFromConfig:()=>Hi,getChildStateInKey:()=>vp,getChildren:()=>Vw,getColor:()=>at,getColorShade:()=>hh,getContext:()=>Pl,getCookie:()=>E_,getDB:()=>$l,getDefaultOrFirstKey:()=>ar,getEmitStats:()=>sg,getEmotionStylesheet:()=>PS,getExtendsInElement:()=>$_,getExtendsStack:()=>nl,getExtendsStackRegistry:()=>np,getFnPrefixAndValue:()=>lr,getFontFace:()=>jS,getFontFaceEach:()=>is,getFontFaceEachString:()=>kh,getFontFaceString:()=>af,getFontFamily:()=>Pf,getFontFormat:()=>Sh,getFontSizeByKey:()=>Lf,getFrequencyInArray:()=>Sb,getFunctionSource:()=>De,getHashedExtend:()=>sl,getImportMapScript:()=>Jw,getInObjectByPath:()=>c_,getLanguages:()=>pd,getLocalStateLang:()=>bd,getLocalStorage:()=>C_,getMediaBorder:()=>Cf,getMediaColor:()=>Vt,getMediaTheme:()=>Ye,getNev:()=>m_,getObserver:()=>Pe,getPageMetadata:()=>mS,getParentStateInKey:()=>kp,getPath:()=>El,getPendingLang:()=>dd,getQuery:()=>Nl,getRef:()=>Uw,getResolvedThemeSignal:()=>G1,getRgbTone:()=>Ln,getRoot:()=>Tl,getRootContext:()=>Rl,getRootData:()=>Ol,getRootState:()=>Cl,getRootStateInKey:()=>xp,getSafeInk:()=>$h,getSafeInkInfo:()=>_x,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>yf,getSequenceValuePropertyPair:()=>$n,getShadow:()=>Af,getShapeByKey:()=>If,getSignals:()=>SC,getSizeValue:()=>ia,getSpacingBasedOnRatio:()=>Ge,getSpacingByKey:()=>Bt,getSpreadChildren:()=>j_,getSubratio:()=>gf,getSubratioDifference:()=>hf,getSystemGlobalTheme:()=>le,getTheme:()=>kx,getThemeSignal:()=>q1,getTimingByKey:()=>_e,getTimingFunction:()=>Ie,global:()=>yb,gradient:()=>GS,grid:()=>ix,hasFunction:()=>oe,hasHandlerPlugin:()=>Ci,hasOwnProperty:()=>t_,hashContent:()=>Dn,hexToRgb:()=>LS,hexToRgbArray:()=>fh,hexToRgba:()=>MS,hslToRgb:()=>ph,icons:()=>JS,inheritChildExtends:()=>ip,inheritChildPropsExtends:()=>sp,inheritParentProps:()=>ul,inheritRecursiveChildExtends:()=>ap,init:()=>Gn,initPolyglot:()=>Vy,initProps:()=>W_,injectGlobal:()=>Tt,insertAfterImportMap:()=>hS,is:()=>ge,isArray:()=>I,isBoolean:()=>Vd,isBuiltinElementMethod:()=>Vb,isCSSVar:()=>Nt,isContextComponent:()=>B_,isCyclic:()=>f_,isDOMNode:()=>pe,isDate:()=>zd,isDefined:()=>jt,isDevelopment:()=>jr,isDomDocument:()=>Xn,isEmpty:()=>Gd,isEmptyObject:()=>e_,isEnumeratedTrueFalseAttr:()=>Ts,isEqualDeep:()=>Yd,isFailedRevival:()=>jo,isFunction:()=>D,isGoogleFontsUrl:()=>na,isHostObject:()=>Jn,isHtmlElement:()=>Lc,isInertCompoundValue:()=>mh,isLazyFunction:()=>Zb,isLocal:()=>g_,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>Go,isMethod:()=>Kw,isMobile:()=>k_,isNativeColorToken:()=>os,isNode:()=>Zn,isNot:()=>_b,isNotProduction:()=>Qn,isNull:()=>Hd,isNumber:()=>he,isObject:()=>A,isObjectLike:()=>H,isPhoto:()=>eS,isPlainColor:()=>so,isPolyglotRetranslatableKey:()=>gl,isPolyglotWritableKey:()=>Ho,isProduction:()=>Fr,isProtectedElementMethod:()=>Mo,isRawUnitValue:()=>Pc,isResolvedColor:()=>hn,isRevived:()=>Bo,isScalingUnit:()=>Do,isStaging:()=>h_,isState:()=>Z_,isStore:()=>kt,isString:()=>E,isStringFunction:()=>Ai,isStringTag:()=>Gc,isSvgTag:()=>yr,isTest:()=>Zd,isTesting:()=>p_,isTracking:()=>B0,isUndefined:()=>Wt,isUniversallyReservedKey:()=>Gw,isUnresolvableDependency:()=>Yr,isValidDependencyMap:()=>Yo,isValidHtmlTag:()=>O_,isValidTag:()=>Oa,isWasmLoaded:()=>D$,isWrappedLibrary:()=>pn,isWritableFamilyBucket:()=>mb,joinArrays:()=>wi,joinCompoundLayers:()=>ta,jointStacks:()=>I_,jsonForScript:()=>zr,keyframes:()=>ka,keys:()=>Gp,libraryPackageSpecs:()=>qi,librarySpecsFor:()=>ah,linearChannelToSrgb:()=>bh,literalPairCompound:()=>ds,literalSchemeMap:()=>ur,loadCssFile:()=>sS,loadJavascript:()=>iS,loadJavascriptFile:()=>nS,loadJavascriptFileEmbedSync:()=>oS,loadJavascriptFileSync:()=>rS,loadRemoteCSS:()=>aS,loadRemoteScript:()=>zi,loadTranslations:()=>gd,loadWasm:()=>P$,log:()=>zw,logGroupIf:()=>x_,logIf:()=>S_,lookdown:()=>Nw,lookdownAll:()=>Fw,lookup:()=>$w,lowercaseFirstLetter:()=>Lo,makeObjectWithoutPrototype:()=>n_,map:()=>Xb,mapStringsWithContextComponents:()=>al,markPolyglotSeeded:()=>Rn,markRevived:()=>Ei,matchesComponentNaming:()=>On,media:()=>WS,memoize:()=>b_,merge:()=>Rt,mergeSharedLibraries:()=>Gl,mergeSharedLibraryDesignSystems:()=>Yl,mixTwoColors:()=>DS,mixTwoRgb:()=>$S,mixTwoRgba:()=>gh,nextElement:()=>Ll,normalizeIgnoreList:()=>Wl,normalizeLibraryKey:()=>Qo,numToLetterMap:()=>In,objectToString:()=>qc,objectizeStringProperty:()=>cl,oklabToLinearSrgb:()=>_h,oklabToOklch:()=>rf,oklchToGamutSafeSrgb:()=>of,oklchToOklab:()=>wh,opacify:()=>Zi,overwrite:()=>Xc,overwriteDeep:()=>se,overwriteShallow:()=>Vo,overwriteState:()=>ew,parkHostObject:()=>Ir,parse:()=>Yp,parseColorToken:()=>Jt,parseDeep:()=>kl,pickStartLang:()=>th,pickupElementFromProps:()=>dp,pickupPropsFromElement:()=>up,polyglotAddressLang:()=>Zp,polyglotFallbackLang:()=>or,polyglotFunctions:()=>_d,polyglotLangStorageKey:()=>Bi,polyglotPlugin:()=>Sc,polyglotSeededKeys:()=>Ur,polyglotStartLang:()=>Ko,polyglotStartRule:()=>Qp,polyglotStartupScript:()=>Yw,popConfig:()=>pt,popStaticCssPass:()=>bg,prepareContext:()=>oC,previousElement:()=>Il,promoteActiveRootState:()=>Fi,propExists:()=>H_,propertizeElement:()=>pp,propertizeUpdate:()=>V_,pushConfig:()=>mt,pushStaticCssPass:()=>yg,quietColorProbe:()=>ls,readBrenderStamp:()=>zo,readJsonDataBlock:()=>er,recordRules:()=>Xf,refreshContextProto:()=>$a,registerEvent:()=>Aa,registerHostPackages:()=>kj,registerSignalInstance:()=>gi,reinit:()=>iE,relativeLuminance:()=>ns,remove:()=>Ia,removeChars:()=>TS,removeCookie:()=>A_,removeDelegatedEvent:()=>Qf,removeDuplicateProps:()=>pl,removeDuplicatesInArray:()=>Si,removeFromArray:()=>xb,removeFromObject:()=>o_,removeNestedKeyByPath:()=>i_,removeValueFromArray:()=>Nc,removeValueFromArrayAll:()=>Ab,reorderArrayByValues:()=>Tb,repairLegacyArrowScopePreamble:()=>zc,replaceLiteralsWithObjectFields:()=>qt,replaceOctalEscapeSequences:()=>$b,replayRules:()=>Jf,resetEmitStats:()=>Xx,resolveAsset:()=>ye,resolveBorderValue:()=>ae,resolveColorRgb:()=>fs,resolveColorsInGradient:()=>Uf,resolveCompoundWords:()=>sr,resolveConfigDocument:()=>bi,resolveDesignSystemClass:()=>DR,resolveFileReferences:()=>Jo,resolveFileSource:()=>H0,resolveFileUrl:()=>Ke,resolveGridTracks:()=>AR,resolveHandler:()=>Ti,resolvePropValue:()=>uo,resolveShadowNonColorWord:()=>ca,resolveShadowValue:()=>ps,resolveSharedLibraries:()=>Xl,resolveStyleBlockTokens:()=>C0,returnSubThemeOrDefault:()=>FS,returnValueAsText:()=>gp,reviveConfig:()=>Xh,rgbArrayToHex:()=>uh,rgbToHSL:()=>dh,rgbToHex:()=>IS,runPluginHook:()=>Br,runThroughMedia:()=>Nh,schemeGuardSelector:()=>Mh,schemeMediaQuery:()=>Ih,scopeElementParam:()=>Wd,scopeReceiverExpression:()=>qb,scratchDefaultConfig:()=>oa,scratchSystem:()=>da,scratchUtils:()=>ro,self:()=>bb,semanticIcons:()=>ZS,sequence:()=>cr,serializeAttrValue:()=>Hn,serializeConfig:()=>Yh,set:()=>ys,setActiveConfig:()=>Th,setActiveDocument:()=>Yx,setActiveRootState:()=>Al,setAdaptiveSchemeVar:()=>ao,setClass:()=>tW,setClassname:()=>xU,setColor:()=>oo,setCookie:()=>v_,setCssEngineHook:()=>Am,setCustomFont:()=>sf,setCustomFontMedia:()=>Qr,setEach:()=>Hf,setFont:()=>Rf,setFontFamily:()=>fa,setFontImport:()=>ra,setGradient:()=>aa,setHashedExtend:()=>ep,setInCustomFontMedia:()=>xh,setInObjectByPath:()=>a_,setLang:()=>md,setLocalStorage:()=>T_,setMediaTheme:()=>la,setNodeStyles:()=>qp,setObserver:()=>Oc,setProps:()=>Bw,setPropsPrototype:()=>dl,setSVG:()=>ua,setScalingVar:()=>pf,setShadow:()=>co,setSubScalingVar:()=>Rh,setSvgIcon:()=>hs,setTheme:()=>Tf,setValue:()=>Dx,setVariables:()=>mx,setWasmEngine:()=>Gf,settled:()=>Fd,shadow:()=>XS,shape:()=>fx,sharedLibrary:()=>SS,sizes:()=>lx,skins:()=>ux,spacing:()=>KS,splitCompoundWords:()=>ef,splitPackageSpecifier:()=>Fl,splitSpacedValue:()=>Ef,splitTopLevelCommas:()=>ir,splitTopLevelSpaces:()=>dt,splitTransition:()=>Wh,spotByPath:()=>vl,srcsetFor:()=>Yi,srgbChannelToLinear:()=>yh,srgbToOklab:()=>nf,stringIncludesAny:()=>Bc,stringToObject:()=>Qb,stripVersionRangePrefix:()=>jl,svg:()=>rx,svgData:()=>ox,swapItemsInArray:()=>kb,syncProps:()=>hl,templates:()=>sx,theme:()=>YS,timing:()=>QS,toCamel:()=>uf,toCamelCase:()=>ts,toDashCase:()=>Jl,toDescriptionCase:()=>RS,toLinearChannel:()=>Xi,toPriorityOrder:()=>Ve,toTitleCase:()=>OS,toggleFullscreen:()=>Xw,transformBackgroundImage:()=>Vh,transformBorder:()=>jh,transformBorderRadius:()=>dr,transformBoxShadow:()=>Bf,transformClassname:()=>IR,transformDuration:()=>Vf,transformGridTemplate:()=>zh,transformShadow:()=>Uh,transformSize:()=>It,transformSizeRatio:()=>N,transformTextStroke:()=>Bh,transformTransition:()=>Px,transformersByPrefix:()=>A0,transfromGap:()=>Hh,translate:()=>hd,triggerEventOn:()=>tr,triggerEventOnUpdate:()=>rw,trimStringFromSymbols:()=>Ib,typography:()=>cf,unit:()=>BS,unstackArrayOfObjects:()=>$c,untrack:()=>yi,update:()=>La,updateProps:()=>K_,updateVars:()=>Qz,upsertTranslation:()=>yd,useCssInProps:()=>ee,useHostState:()=>j0,usePropsAsCSS:()=>PR,useSelectorsAsCSS:()=>LR,variables:()=>Ml,vars:()=>cx,verbose:()=>ji,viewTransition:()=>dx,warn:()=>Dl,warnLibraryAliasCollision:()=>Gi,warnStateKeyShadowsMethod:()=>Ud,window:()=>T,wrapHoverRule:()=>gr});module.exports=Hj(fC);Lt();var ig={};$(ig,{CSS_LONGHAND_SHORTHANDS:()=>Xe,CSS_SHORTHAND_LONGHANDS:()=>Et,assertEmitIntegrity:()=>Jx,css:()=>$e,cssCamelName:()=>Yf,cssPropName:()=>xe,cssShorthandDepth:()=>ya,cssShorthandStatesLonghand:()=>ba,cssShorthandStatesThemeLonghand:()=>Wf,getActiveDocument:()=>mr,getCacheSize:()=>n0,getEmitStats:()=>sg,injectGlobal:()=>Tt,keyframes:()=>ka,recordRules:()=>Xf,replayRules:()=>Jf,reset:()=>nR,resetEmitStats:()=>Xx,setActiveDocument:()=>Yx,setWasmEngine:()=>Gf,wrapHoverRule:()=>gr});var Ix={};$(Ix,{BARE_SEQUENCE_TOKEN_RE:()=>Mn,COMPOUND_CSS_KEYWORDS:()=>rs,CONFIG:()=>as,CONFIG_MERGE_EXL:()=>ie,CSS_NAMED_COLOR_HEX:()=>Ji,CSS_NATIVE_COLOR_REGEX:()=>Zr,CSS_UNITS:()=>_i,FACTORY:()=>Le,LIVE_KEYS:()=>Lx,PREPARED_FORMAT:()=>ma,STANDARD_SCHEME_QUERIES:()=>Lh,VALUE_TRANSFORMERS:()=>Kh,__resetSkinWarnings:()=>Ox,activateConfig:()=>Y1,aliasCaseVariants:()=>sa,animation:()=>nx,appendSVGSprite:()=>Nf,appendSvgIconsSprite:()=>gs,applyDocument:()=>$f,applyHeadings:()=>Fh,applyMediaSequenceVars:()=>no,applyReset:()=>Ff,applySequenceGlobalVars:()=>_f,applySequenceVars:()=>fr,applySkins:()=>jf,applySpacingSequence:()=>vf,applyThemeRoot:()=>zf,applyTimingSequence:()=>Mf,applyTypographySequence:()=>Df,atSchemes:()=>io,breakpoints:()=>tx,buildSkinVarStyles:()=>ms,changeGlobalTheme:()=>qh,changeLightness:()=>NS,checkIfBoxSize:()=>kf,class:()=>ax,color:()=>qS,colorPairSchemes:()=>xf,colorStringToRgbaArray:()=>We,compositeOverBackdrop:()=>ss,compoundLayers:()=>Qi,contrastRatio:()=>ea,convertSvgToSymbol:()=>Sf,createConfig:()=>df,createPristineConfig:()=>Oh,cssMediaVars:()=>Ch,cssVars:()=>Ah,defineResolvedThemeSignal:()=>eo,defineThemeSignal:()=>to,devices:()=>ex,document:()=>W1,findHeadingLetter:()=>Ph,findHeadings:()=>bf,font:()=>US,fontFace:()=>zS,fontFamily:()=>VS,fontFamilyTypes:()=>HS,forcedScheme:()=>us,generateSequence:()=>be,generateSequencePosition:()=>gx,generateSprite:()=>wf,generateSubSequence:()=>mf,getActiveConfig:()=>O,getColor:()=>at,getColorShade:()=>hh,getDefaultOrFirstKey:()=>ar,getFnPrefixAndValue:()=>lr,getFontFace:()=>jS,getFontFaceEach:()=>is,getFontFaceEachString:()=>kh,getFontFaceString:()=>af,getFontFamily:()=>Pf,getFontFormat:()=>Sh,getFontSizeByKey:()=>Lf,getMediaBorder:()=>Cf,getMediaColor:()=>Vt,getMediaTheme:()=>Ye,getResolvedThemeSignal:()=>G1,getRgbTone:()=>Ln,getSafeInk:()=>$h,getSafeInkInfo:()=>_x,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>yf,getSequenceValuePropertyPair:()=>$n,getShadow:()=>Af,getShapeByKey:()=>If,getSizeValue:()=>ia,getSpacingBasedOnRatio:()=>Ge,getSpacingByKey:()=>Bt,getSubratio:()=>gf,getSubratioDifference:()=>hf,getTheme:()=>kx,getThemeSignal:()=>q1,getTimingByKey:()=>_e,getTimingFunction:()=>Ie,gradient:()=>GS,grid:()=>ix,hexToRgb:()=>LS,hexToRgbArray:()=>fh,hexToRgba:()=>MS,hslToRgb:()=>ph,icons:()=>JS,isCSSVar:()=>Nt,isDomDocument:()=>Xn,isGoogleFontsUrl:()=>na,isHostObject:()=>Jn,isInertCompoundValue:()=>mh,isNativeColorToken:()=>os,isPlainColor:()=>so,isRawUnitValue:()=>Pc,isResolvedColor:()=>hn,isScalingUnit:()=>Do,isWritableFamilyBucket:()=>mb,joinCompoundLayers:()=>ta,linearChannelToSrgb:()=>bh,literalPairCompound:()=>ds,literalSchemeMap:()=>ur,media:()=>WS,mixTwoColors:()=>DS,mixTwoRgb:()=>$S,mixTwoRgba:()=>gh,numToLetterMap:()=>In,oklabToLinearSrgb:()=>_h,oklabToOklch:()=>rf,oklchToGamutSafeSrgb:()=>of,oklchToOklab:()=>wh,opacify:()=>Zi,parkHostObject:()=>Ir,parseColorToken:()=>Jt,popConfig:()=>pt,pushConfig:()=>mt,quietColorProbe:()=>ls,relativeLuminance:()=>ns,reset:()=>K1,resolveBorderValue:()=>ae,resolveColorRgb:()=>fs,resolveColorsInGradient:()=>Uf,resolveCompoundWords:()=>sr,resolveConfigDocument:()=>bi,resolveFileUrl:()=>Ke,resolveShadowNonColorWord:()=>ca,resolveShadowValue:()=>ps,returnSubThemeOrDefault:()=>FS,reviveConfig:()=>Xh,rgbArrayToHex:()=>uh,rgbToHSL:()=>dh,rgbToHex:()=>IS,runThroughMedia:()=>Nh,schemeGuardSelector:()=>Mh,schemeMediaQuery:()=>Ih,scratchDefaultConfig:()=>oa,scratchSystem:()=>da,scratchUtils:()=>ro,semanticIcons:()=>ZS,sequence:()=>cr,serializeConfig:()=>Yh,set:()=>ys,setActiveConfig:()=>Th,setAdaptiveSchemeVar:()=>ao,setColor:()=>oo,setCustomFont:()=>sf,setCustomFontMedia:()=>Qr,setEach:()=>Hf,setFont:()=>Rf,setFontFamily:()=>fa,setFontImport:()=>ra,setGradient:()=>aa,setInCustomFontMedia:()=>xh,setMediaTheme:()=>la,setSVG:()=>ua,setScalingVar:()=>pf,setShadow:()=>co,setSubScalingVar:()=>Rh,setSvgIcon:()=>hs,setTheme:()=>Tf,setValue:()=>Dx,setVariables:()=>mx,shadow:()=>XS,shape:()=>fx,sizes:()=>lx,skins:()=>ux,spacing:()=>KS,splitCompoundWords:()=>ef,splitSpacedValue:()=>Ef,splitTopLevelCommas:()=>ir,splitTopLevelSpaces:()=>dt,splitTransition:()=>Wh,srgbChannelToLinear:()=>yh,srgbToOklab:()=>nf,svg:()=>rx,svgData:()=>ox,templates:()=>sx,theme:()=>YS,timing:()=>QS,toCamel:()=>uf,toLinearChannel:()=>Xi,transformBackgroundImage:()=>Vh,transformBorder:()=>jh,transformBorderRadius:()=>dr,transformBoxShadow:()=>Bf,transformDuration:()=>Vf,transformGridTemplate:()=>zh,transformShadow:()=>Uh,transformSize:()=>It,transformSizeRatio:()=>N,transformTextStroke:()=>Bh,transformTransition:()=>Px,transfromGap:()=>Hh,typography:()=>cf,unit:()=>BS,vars:()=>cx,viewTransition:()=>dx});var ro={};$(ro,{BARE_SEQUENCE_TOKEN_RE:()=>Mn,COMPOUND_CSS_KEYWORDS:()=>rs,CSS_NAMED_COLOR_HEX:()=>Ji,CSS_NATIVE_COLOR_REGEX:()=>Zr,CSS_UNITS:()=>_i,applyMediaSequenceVars:()=>no,applySequenceGlobalVars:()=>_f,applySequenceVars:()=>fr,changeLightness:()=>NS,colorStringToRgbaArray:()=>We,compositeOverBackdrop:()=>ss,compoundLayers:()=>Qi,contrastRatio:()=>ea,convertSvgToSymbol:()=>Sf,findHeadingLetter:()=>Ph,findHeadings:()=>bf,generateSequence:()=>be,generateSequencePosition:()=>gx,generateSprite:()=>wf,generateSubSequence:()=>mf,getColorShade:()=>hh,getDefaultOrFirstKey:()=>ar,getFnPrefixAndValue:()=>lr,getFontFace:()=>jS,getFontFaceEach:()=>is,getFontFaceEachString:()=>kh,getFontFaceString:()=>af,getFontFormat:()=>Sh,getRgbTone:()=>Ln,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>yf,getSequenceValuePropertyPair:()=>$n,getSizeValue:()=>ia,getSubratio:()=>gf,getSubratioDifference:()=>hf,hexToRgb:()=>LS,hexToRgbArray:()=>fh,hexToRgba:()=>MS,hslToRgb:()=>ph,isCSSVar:()=>Nt,isDomDocument:()=>Xn,isGoogleFontsUrl:()=>na,isHostObject:()=>Jn,isInertCompoundValue:()=>mh,isNativeColorToken:()=>os,isRawUnitValue:()=>Pc,isResolvedColor:()=>hn,isScalingUnit:()=>Do,isWritableFamilyBucket:()=>mb,joinCompoundLayers:()=>ta,linearChannelToSrgb:()=>bh,mixTwoColors:()=>DS,mixTwoRgb:()=>$S,mixTwoRgba:()=>gh,numToLetterMap:()=>In,oklabToLinearSrgb:()=>_h,oklabToOklch:()=>rf,oklchToGamutSafeSrgb:()=>of,oklchToOklab:()=>wh,opacify:()=>Zi,parkHostObject:()=>Ir,parseColorToken:()=>Jt,relativeLuminance:()=>ns,resolveCompoundWords:()=>sr,resolveConfigDocument:()=>bi,resolveFileUrl:()=>Ke,returnSubThemeOrDefault:()=>FS,rgbArrayToHex:()=>uh,rgbToHSL:()=>dh,rgbToHex:()=>IS,setCustomFont:()=>sf,setCustomFontMedia:()=>Qr,setFontImport:()=>ra,setInCustomFontMedia:()=>xh,setScalingVar:()=>pf,setSubScalingVar:()=>Rh,setVariables:()=>mx,splitCompoundWords:()=>ef,splitTopLevelCommas:()=>ir,splitTopLevelSpaces:()=>dt,srgbChannelToLinear:()=>yh,srgbToOklab:()=>nf,toLinearChannel:()=>Xi});var Xn=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),Jn=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)},mb=t=>t!==null&&typeof t=="object"&&!Jn(t),Ir=(t,e,n)=>{if(!t)return;if(Xn(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},bi=t=>t?Xn(t.__domDocument)?t.__domDocument:Xn(t.document)?t.document:null:null;var Do=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",_i=["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"],aB=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),cB=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${_i.filter(t=>t!=="auto").map(aB).join("|")})$`),Pc=t=>cB.test(String(t).trim());M();var Ji={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"},We=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=Ji[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&&St&&T){let n=St.body.appendChild(St.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){St.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return St.body.removeChild(n),[0,0,0,0];t=T.getComputedStyle(n).color,St.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},DS=(t,e,n=.5)=>(t=We(t),e=We(e),gh(t,e,n)),LS=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},fh=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},IS=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),uh=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),MS=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},$S=(t,e,n=.5)=>{let r=[];for(let o=0;o<3;o++)r[o]=~~(t[o]+(e[o]-t[o])*n);return`rgb(${r})`},NS=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},dh=(t,e,n)=>{let r=Math.max(t,e,n),o=r-Math.min(t,e,n),s=1-Math.abs(r+r-o-1),i=o&&(r==t?(e-n)/o:r==e?2+(n-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(r+r-o)/2]},ph=(t,e,n,r=e*Math.min(n,1-n),o=(s,i=(s+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],hh=(t,e)=>{let n=parseInt(t,16),r=(n>>16)+e;r>255?r=255:r<0&&(r=0);let o=(n>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|r<<16)+16777216).toString(16).slice(1)},gh=(t,e,n=.5)=>{let r=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;r[o]=s(t[o]+(e[o]-t[o])*n)}return`rgba(${r})`},Zi=(t,e)=>{let n=We(t);if(!n){Qn()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},Nt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,rs=new Set(["currentcolor","transparent","thin","medium","thick"]),Zr=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,T5=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,os=t=>T5.test(t),ef=t=>t.indexOf("(")===-1?t.split(/\s+/):dt(t),mh=(t,e)=>{let n=t.length,r=0,o=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){r++;continue}if(i===41){r>0&&r--;continue}if(!(r>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>o&&!O5(t,o,s,e))return!1;o=s+1}}return!0},O5=(t,e,n,r)=>{let o=t.charCodeAt(e);if(o>=48&&o<=57)return!0;let s=t.slice(e,n);return os(s)||r!==void 0&&r.has(s)},Qi=(t,e)=>e?ir(t).map(n=>ef(n.trim())):[ef(t)],ta=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},sr=(t,e,{commas:n,keywords:r},o,s)=>{let i=Zr.test(t);if(i&&mh(t,r))return t;let a=Qi(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=R5(u,e,r,o,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:ta(a)},R5=(t,e,n,r,o)=>t?Nt(t)?`var(${t})`:os(t)||n!==void 0&&n.has(t)?t:e(t,r,o):"",P5=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Jt=t=>{if(!E(t))return null;if(Zr.test(t))return{passthrough:t};if(Nt(t))return{cssVar:t};let e=t.match(P5);if(!e)return null;let[,n,r,o]=e,s=r!==void 0?`0.${r}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:n,alpha:s,tone:i}},hn=t=>E(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),ir=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),o===","&&r===0){e.push(n),n="";continue}n+=o}return(n.length||!e.length)&&e.push(n),e},dt=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),r===0&&/\s/.test(o)){n.length&&e.push(n),n="";continue}n+=o}return n.length&&e.push(n),e},Xi=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),ns=t=>.2126*Xi(t[0])+.7152*Xi(t[1])+.0722*Xi(t[2]),ea=(t,e)=>{let n=ns(t)+.05,r=ns(e)+.05;return n>r?n/r:r/n},yh=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),bh=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,nf=([t,e,n])=>{let[r,o,s]=[t,e,n].map(yh),i=.4122214708*r+.5363325363*o+.0514459929*s,a=.2119034982*r+.6806995451*o+.1073969566*s,c=.0883024619*r+.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]},_h=([t,e,n])=>{let r=t+.3963377774*e+.2158037573*n,o=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=r**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]},rf=([t,e,n])=>{let r=Math.atan2(n,e)*180/Math.PI;return r<0&&(r+=360),[t,Math.sqrt(e*e+n*n),r]},wh=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},of=(t,e,n,r=24)=>{let o=a=>_h(wh([t,a,n])),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<r;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>bh(Math.max(0,Math.min(1,a))))},ss=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),Ln=(t,e)=>{E(t)&&t.includes("rgb")&&(t=We(t).join(", ")),E(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),he(e)&&(e+="");let n=uh(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=hh(n,parseFloat(e));return fh(o).join(", ")}else{let[o,s,i]=t,[a,c]=dh(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return ph(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var FS=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Ke=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},ar=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let r=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback);if(t.default){let s=t[t.default];if(s&&s.isSystemFallback){let i=r();if(i)return t[i].value}if(s)return s.value}let o=r()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return o&&t[o]&&t[o].value},Sh=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},na=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),ra=t=>`@import url('${t}');`,xh=t=>`@font-face { ${t} }`,sf=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Sh(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
37
38
  `);return`
38
39
  font-family: '${t}';
39
40
  font-style: ${r.fontStyle||"normal"};${n?`
@@ -41,24 +42,24 @@ FROM ${a}${l}`},EB=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
41
42
  font-stretch: ${r.fontStretch};`:""}${r.fontDisplay?`
42
43
  font-display: ${r.fontDisplay};`:""}${r.unicodeRange?`
43
44
  unicode-range: ${r.unicodeRange};`:""}
44
- src: ${i};`},Vr=(t,e,n,r)=>`@font-face {${Vl(t,e,n,r)}
45
- }`,Go=(t,e,n)=>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,n)||d):Ve(s,n)||s;return Vl(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),nS=t=>Object.keys(t).map(n=>Go(n,t[n].value)),Jp=(t,e,n)=>{if(e&&e.isVariable){let s=Ve(e.url,n)||e.url;return Bi(s)?Ui(s):Vr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return Go(t,e,n).map(Zp);let o=Array.isArray(e.url)?e.url.map(s=>Ve(s,n)||s):Ve(e.url,n)||e.url;return Vr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},Hl=(t,e)=>Object.keys(t).map(r=>Jp(r,t[r].value,e));M();M();M();M();Rt();var Vi={};F(Vi,{animation:()=>_S,breakpoints:()=>yS,class:()=>vS,color:()=>fS,devices:()=>bS,document:()=>JT,font:()=>oS,fontFace:()=>aS,fontFamily:()=>sS,fontFamilyTypes:()=>iS,gradient:()=>uS,grid:()=>kS,icons:()=>hS,media:()=>cS,reset:()=>QT,semanticIcons:()=>gS,sequence:()=>tr,shadow:()=>pS,shape:()=>CS,sizes:()=>AS,skins:()=>TS,spacing:()=>lS,svg:()=>wS,svgData:()=>SS,templates:()=>xS,theme:()=>dS,timing:()=>mS,typography:()=>zl,unit:()=>rS,vars:()=>ES,viewTransition:()=>OS});var tr={"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 rS={default:"em"};var _3={browserDefault:16,base:16,type:"font-size",ratio:tr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},zl=_3;var oS={};var sS={},iS={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},aS={};var cS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var w3={base:zl.base,type:"spacing",ratio:tr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},lS=w3;var fS={},uS={};var dS={};var pS={};var hS={},gS={};var S3={default:150,base:150,type:"timing",ratio:tr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},mS=S3;var JT={};var yS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},bS={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 _S={};var wS={},SS={};var xS={};var x3={},kS=x3;var vS={};var QT={},ES={},AS={},CS={},TS={},OS={};var eh={},nh={},Pe=new Set,Qp=Vi,th={},Kl=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in Qp){let e=t.toLowerCase();th[e]=Qp[t];let n=Kl(e);n!==e&&(th[n]=Qp[t]),e!==t&&(th[t]=Qp[t])}var Yo={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:eh,cssMediaVars:nh,CSS_VARS:eh,CSS_MEDIA_VARS:nh,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...th},Hi=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return jt(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=jt(e)?e:t.globalTheme,r=nn(jt(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},t1=t=>t?Hi(t):null,zi=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return jt(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=jt(e)?e:t.resolvedTheme,r=nn(jt(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},e1=t=>t?zi(t):null;Hi(Yo);zi(Yo);var Wl=pt(Yo),Re={active:"0",0:Yo},n1=t=>(jt(t)&&(Re.active=t),Re[t||Re.active]),ql=[],bt=t=>{t&&t._scratchConfig&&ql.push(t)},mt=()=>{ql.pop()},O=t=>ql.length?ql[ql.length-1]:Re[t||Re.active]||Yo,rh=t=>{if(A(t))return Re.active="1",Re[1]=dt(t,pt(Wl),Pe),Wi(Re[1]),Hi(Re[1]),zi(Re[1]),t},k3=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],v3=["useVariable","globalTheme","verbose"],E3=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],Wi=t=>{for(let e of E3){let n;for(let r of e){let o=t[r];A(o)&&(n=n?dt(n,o,Pe):o)}if(n)for(let r of e)A(t[r])&&(t[r]=n)}},r1=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,Wi(t),Hi(t),zi(t),t),oh=()=>r1(pt(Wl)),Gl=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:O(),o=pt(!n&&r&&r._scratchConfig?r:Wl);for(let i of k3)delete o[i];for(let i of v3)Object.prototype.hasOwnProperty.call(Wl,i)?o[i]=Wl[i]:delete o[i];let s=r1(dt(e||{},o,Pe));return t&&(Re[t]=s),s};var Pn=/^-?[A-Z][0-9]?$/,Rn={"-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"},PS=(t,e)=>{let{key:n,variable:r,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:r},e.scales[n]=s;let c=o1.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},er=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),r=e.slice(0,n),o=0,s=-1;for(let i=n;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(r)||e.slice(s+1).trim()!==""?[void 0,t]:[r,e.slice(n+1,s)]},RS="\0",A3=(t,e)=>{let n="",r=0,o="";for(let s of t){if(r===0&&s!=="("){n+=s;continue}o+=s,s==="("?r++:s===")"&&(r--,r===0&&(n+=RS+e.length+RS,e.push(o),o=""))}return n+o},C3=(t,e)=>t.indexOf(RS)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),T3=/^(calc|min|max|clamp)\((.*)\)$/,O3=(t,e)=>{let n=T3.exec(t);return n?`${n[1]}(${Ql(n[2],e)})`:t.indexOf("(")!==-1?t:Xo(t,e)},o1=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Yl=(t,e)=>{let{base:n,type:r,unit:o}=e,s=o1.has(o)?"rem":o,i=(So(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=Rn[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Rn[t+1],u=Math.abs(t),d=Math.pow(s1,2*u),p=Rn[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},sh=(t,e,n,r)=>{let{type:o}=r,i=t===2&&e.length===2?t+1:t,l=`${"--"+(r.varPrefix?r.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},Xl=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},Zl=(t,e)=>Xl(t,e).map(n=>n/t),Jl=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=Xl(o,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/r*1e3)/1e3,y=i+(h+1),_=a+(h+1)/10,S=sh(h+1,f,i,e),v={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:S,index:_};PS(v,e)})},s1=1.618,R3=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let r=Math.abs(t),o=e*Math.pow(n,t),s=e*Math.pow(n,r)/Math.pow(s1,2*r);return Math.max(o,s)},ye=t=>{let{type:e,base:n,ratio:r,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=Rn[f],d=R3(f,n,r),p=~~(d/n*100)/100,g=c+u,h=Yl(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};PS(m,t),s&&Jl(m,t)}return t},DS=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=E(e)?e:Rn[e],a=E(e)?Object.entries(Rn).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=r*Math.pow(o,a),f=~~(l/r*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=Yl(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return PS(h,c),s&&Jl(h,c),c},qi=(t,e)=>{if(!t||!E(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let r=e.slice(1),o=t[r]||t[r.toLowerCase()];if(o!==void 0)return`calc(${o} * -1)`},Xo=(t="A",e)=>{let n=O(),{unit:r}=n;if(E(t)&&$t(t))return`var(${t})`;if(E(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(E(t)){let S=qi(n.sizes,t);if(S!==void 0)return S}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(hc(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+"-":""}${Il(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=S=>a.test(S)?`var(${d}${S}${m})`:S;if(h.includes("+")){let[S,v]=h.split("+"),x=`${y(S)} + ${y(v)}`;return g?`calc((${x}) * -1)`:`calc(${x})`}else if(h.includes("*")){let[S,v]=h.split("*"),x=`${y(S)} * ${y(v)}`;return g?`calc((${x}) * -1)`:`calc(${x})`}else if(h.includes("-")){let[S,v]=h.split("-"),x=`${y(S)} - ${y(v)}`;return g?`calc((${x}) * -1)`:`calc(${x})`}if(!o[h]&&h.length===2&&(n.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||n.useVariable){let S=`var(${d}${h}${m})`;return g?`calc(${S} * -1)`:S}let _=o?o[h]:null;if(!_){if(console.warn("can't find",o,h),tt())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"?g+_.val+s:g+_.scaling+s},Ql=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return A3(t,o).split(r).map(i=>{let a=C3(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:O3(c,e)}).join("")},Dn=(t,e,n,r)=>{if(typeof t!="string")return O().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!r&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=er(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Ql(t,n):t=Xo(t,n),{[e]:r?`${r}(${t})`:t}},ih=(t,e)=>Rn[t-e],tf=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=ih(e,o);return n[s]})};M();var LS=(t,e)=>{let n=O(),{cssVars:r}=n;V(t.value)||(r[t.var]=t.value)},ef=(t,e,n)=>{let r=O(),{unit:o}=r,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,p,g]=Zl(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},i1=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),nr=(t,e={})=>{let n=O(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=i1.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||ef(s,t,e);for(let u in l){let d=l[u],p=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},Hr=(t,e,n={})=>{let r=O(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=i1.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&r.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),ef(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let _=d[y],S=p[y]+f;h[_.variable+"_default"]=S,h[_.variable]=S}return}for(let h in d){let m=d[h],y=(So(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let _=i[`@media ${g}`];_||(_=i[`@media ${g}`]={}),_[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};M();var c1=Kn(),nf=t=>{let e=O(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},P3=t=>{let e=t&&(t.default||t);if(!E(e))return c1&&console.warn("parseRootAttributes:",e,"is not a string"),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let o=n[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},{}):{}},D3=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(n.push(s),o)),!n.length)return t;let r=t;for(let o of n){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;r=r.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 r},a1=new Set,rf=(t,e)=>{let n=e&&e.default?e.default:e;if(!E(n))return c1&&!a1.has(t)&&(a1.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let r=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(r){let u=r[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=P3(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=D3(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=M3(f),f},L3="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",I3=new RegExp(`<(${L3})\\b([^>]*?)\\s*/>`,"g"),M3=t=>t.replace(I3,"<$1$2></$1>");var Ji={};F(Ji,{STANDARD_SCHEME_QUERIES:()=>ch,__resetSkinWarnings:()=>qS,appendSVGSprite:()=>wf,appendSvgIconsSprite:()=>rs,applyDocument:()=>_f,applyHeadings:()=>ph,applyReset:()=>Sf,applySkins:()=>xf,applySpacingSequence:()=>af,applyTimingSequence:()=>bf,applyTypographySequence:()=>gf,atSchemes:()=>Kr,buildSkinVarStyles:()=>os,checkIfBoxSize:()=>sf,colorPairSchemes:()=>of,forcedScheme:()=>Qo,getColor:()=>at,getFontFamily:()=>hf,getFontSizeByKey:()=>mf,getMediaBorder:()=>ff,getMediaColor:()=>Vt,getMediaTheme:()=>We,getSafeInk:()=>uh,getSafeInkInfo:()=>$S,getShadow:()=>lf,getShapeByKey:()=>yf,getSpacingBasedOnRatio:()=>ze,getSpacingByKey:()=>Bt,getTheme:()=>BS,getTimingByKey:()=>be,getTimingFunction:()=>De,isPlainColor:()=>qr,literalPairCompound:()=>ts,literalSchemeMap:()=>rr,quietColorProbe:()=>Zo,resolveBorderValue:()=>ae,resolveColorRgb:()=>Jo,resolveShadowNonColorWord:()=>Gi,resolveShadowValue:()=>es,runThroughMedia:()=>dh,schemeGuardSelector:()=>fh,schemeMediaQuery:()=>lh,setAdaptiveSchemeVar:()=>Gr,setColor:()=>Wr,setFont:()=>pf,setFontFamily:()=>Xi,setGradient:()=>Ki,setMediaTheme:()=>Yi,setSVG:()=>Zi,setShadow:()=>Yr,setSvgIcon:()=>ns,setTheme:()=>uf,splitSpacedValue:()=>cf});M();var ch={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},lh=(t,e)=>{let n=e.media&&e.media[t]||ch[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},fh=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},He=new Set,d1=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"]),$3=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,N3=/gradient\(|url\(|image-set\(|var\(/i,F3=new Set(["transparent","currentColor","currentcolor"]),qr=t=>{if(!E(t))return!1;let e=t.trim();return N3.test(e)?!1:$3.test(e)?!0:d1.has(e)||F3.has(e)},ah=new Set,l1=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(A(e)&&Object.keys(e).length||A(n)&&Object.keys(n).length)},f1=new Set,IS=0,Zo=t=>{IS++;try{return t()}finally{IS--}},j3=(t,e)=>{if(!E(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=Zt(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},MS=(t,e,n)=>{let r=j3(t,n);if(r){if(!f1.has(t)){f1.add(t);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${i} \u2014 did you mean \`${r}\`? 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=Zt(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&l1(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!IS&&!ah.has(t)){ah.add(t);let i=n&&n.name?` (design system \`${n.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=E(e)?e.toLowerCase():"";if(!d1.has(s)||!l1(n))return t;if(!ah.has(s)){ah.add(s);let i=n&&n.name?` (design system \`${n.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.`)}},p1=(t,e,n)=>{let r=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${r})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${r})`}return`hsl(from ${t} h s ${n}% / ${r})`},at=(t,e,n)=>{let r=n||O();if(!E(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if($t(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=Zt(t);if(!u){let{color:d,gradient:p}=r,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),r.useVariable?`var(${g.var})`:g.value):MS(t,t,r)}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}=r,l=a[o]||c[o];if(!l)return MS(t,o,r);if(e)if(l[e]!==void 0)l=l[e];else if(I(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&r.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 r.verbose&&console.warn(t," - does not have ",e);if(E(l)){if(He.has(o))return l;He.add(o);try{return at(l,null,n)}finally{He.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?p1(u,s,i):u}return i&&!l[i]&&(f=On(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})`:r.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},u1=t=>{let e=Ue(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}},B3=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=On(n,e.tone);n=E(o)?o.split(",").map(s=>parseFloat(s.trim())):o}let r=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:r}},Jo=(t,e,n)=>{let r=e||O();if(!E(t))return null;let o=Zt(t);if(o){if(o.passthrough){let d=Ue(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}=r,c=i[s]||a[s];if(!c)return u1(t);if(E(c)){let d;if(He.has(s))d=u1(c);else{He.add(s);try{d=Jo(c,r,n)}finally{He.delete(s)}}return d?B3(d,o):null}if(c.rgb===void 0&&A(c)){let d=`@${n||"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=On(l,o.tone));let f=E(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}},h1=t=>A(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),Kr=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},g1=t=>{if(!A(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!h1(t[n])))return null;let e=Kr(t);return e.length?e:null},U3=t=>E(t&&t.var)&&g1(t)!==null,V3=(t,e,n,r,o)=>{let s=g1(e);if(!s)return;if(E(e.var)){let c=`var(${e.var})`;return n||r?p1(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=at(t,"@light",o),a=at(t,"@dark",o);if(!(!qr(i)||!qr(a)))return i===a?i:`light-dark(${i}, ${a})`},of=(t,e)=>{if(!t)return null;let n=e||O(),r=Zt(t),o=r?r.name:t,s=o&&n.color&&n.color[o];if(I(s))return["light","dark"];if(!A(s)||s.value!==void 0)return null;let i=Kr(s);return i.length?i:null},rr=(t,e,n)=>{let r={},o=fh(e);for(let s of t){let i=n(s);if(i!==void 0&&(r[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=lh(s,e);a&&(r[a]={[o]:i})}}return r},Qo=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),ts=(t,e,n,{commas:r,resolve:o,resolveScheme:s})=>{let i=Ni(t,r),a=null;for(let f of i)for(let u of f){let d=of(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>Fi(i.map(u=>u.map(d=>{if(!of(d,n))return d;let p=f(d);return E(p)?p:d}))),l=Qo(e,n);return l?o(c(f=>Vt(f,l,n)),l):rr(a,n,f=>s(f,c))},Vt=(t,e,n)=>{let r=n||O();if(e=Qo(e,r),!E(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if($t(t))return`var(${t})`;let o,s,i;if(I(t))o=t[0];else{let u=Zt(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}=r,l=a[o]||c[o],f=A(l);if(f&&l.value)return at(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?at(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=V3(t,l,s,i,n);if(u!==void 0)return u}return at(t,`@${e}`,n)}else return rr(Kr(l),r,u=>at(t,"@"+u,n))}else return MS(t,o,r)},Gr=(t,e,n,r)=>{let s=`--${r.varPrefix?r.varPrefix+"-":""}${e}-${n}`,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){r.cssVars[s]=i,r.cssMediaVars||(r.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(r.cssMediaVars[l]||(r.cssMediaVars[l]={}),r.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;r.cssMediaVars[f]||(r.cssMediaVars[f]={}),r.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},Wr=(t,e,n)=>{let r=O();if(h1(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&U3(t))return t;if(E(t)&&$t(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:at(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),_=r.color[y[0]];if(_&&!_.value&&!_.rgb&&(E(_)||I(_)||A(_))&&!He.has(y[0])){He.add(y[0]);try{r.color[y[0]]=Wr(_,y[0])}finally{He.delete(y[0])}_=r.color[y[0]]}if(_&&_.value){let S=_.rgb,v=y[1]!==void 0?y[1]:"1",x=y[2];x&&(S=On(S,x)),t=`rgba(${S}, ${v})`}else{let S=y[2],v=y[1]!==void 0?y[1]:"1";if(S)try{let x=Ue(y[0]);x&&x.length>=3?t=`rgba(${On(x.slice(0,3).join(", "),S)}, ${v})`:t=y[0]}catch{t=y[0]}else t=y[0]}}}if(I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),A(t)){let h={};for(let m in t)m!=="var"&&(h[m]=Wr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&Gr(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(E(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Zt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(E(m)||I(m)||A(m))&&!He.has(h.name)){He.add(h.name);try{r.color[h.name]=Wr(m,h.name)}finally{He.delete(h.name)}}let y=r.color[h.name];if(y&&y.rgb){let _=y.rgb;h.tone&&(_=On(_,h.tone));let S=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${_}, ${S})`}}}let a=Ue(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return r.useVariable&&(r.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},Ki=(t,e,n)=>{let r=O();if(A(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(E(t)&&$t(t)&&(t=at(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),A(t)){let i={};for(let a in t)a!=="var"&&(i[a]=Ki(t[a],e,a.slice(0,1)==="@"?a.slice(1):a));return r.useVariable&&Gr(i,"gradient",e,r),i}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[s]=t.value||t),{var:s,value:t.value||t}};M();var uh=(t,e,n={},r)=>{let o=r||O(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!=="auto"?o.globalTheme:"light"),d=E(e)?e:String(e),p=Zt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(J,ft)=>c?{value:J,...ft}:J;if(g){let J=o.color[`${g}Safe`];if(J){let ft=`${d}@${u}`,Y=J[ft]!==void 0?J[ft]:J[d];if(Y!==void 0){let Q=Y&&Y.rgb!==void 0?o.useVariable&&Y.var?`var(${Y.var})`:Y.value:at(Y,null,o);return h(Q,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=at(t,u?`@${u}`:null,o),y=Jo(t,o,u),_=Jo(e,o,u);if(!y||!_)return o.verbose&&console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged"),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let S=Ko(_.rgb,_.alpha),v=Ko(y.rgb,y.alpha,S),x=ji(v,S);if(x>=f-.02)return h(m,{ratio:x,deviation:0,derived:!1,overridden:!1});let[w,b,k]=jl(y.rgb),[,C,D]=Bl([w,b,k]),R=zo(S)>.5,$=R?w:1-w,N=J=>{let ft=R?w-J:w+J,Y=Math.max(0,Math.min(1,ft));return{rgb:Ul(Y,C,D),L:Y}},B=J=>{let{rgb:ft}=N(J),Y=Ko(ft.map(Q=>Math.round(Q)),y.alpha,S);return ji(Y,S)},et=0,X=$,st=B(X)>=f;if(st)for(let J=0;J<l;J++){let ft=(et+X)/2;B(ft)>=f?X=ft:et=ft}else et=X;let{rgb:Dt,L:Lt}=N(X),it=Dt.map(J=>Math.round(J)),q=B(X),G=y.alpha<1?`rgba(${it.join(", ")}, ${y.alpha})`:`rgb(${it.join(", ")})`,nt=Math.abs(Lt-w)*100;return h(G,{rgb:it,ratio:q,startRatio:x,deviation:nt,derived:!0,overridden:!1,reachable:st})},$S=(t,e,n={},r)=>uh(t,e,{...n,meta:!0},r);M();M();var H3=t=>{let n=O().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return ye(o),o},z3=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Tt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),ye(n),Hr(t,e)}},sf=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},af=()=>{let t=O(),{spacing:e}=t;ye(e),nr(e),z3(e)},W3=t=>{let e=O(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:ye(t)},Bt=(t,e="padding",n,r)=>{let o=W3(n);if(E(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=er(t);r=i[0],t=i[1]}}let s=r?[t]:E(t)&&t.includes("(")?lt(t):Ho(t);if(I(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)=>Dn(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return Dn(t,e,o,r)}},ze=(t,e,n,r)=>{let o=O(),{spacing:s}=o,i=n||t[e];if(!r&&E(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&E(i)&&i.includes("(")){let a=er(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=H3(t);return Bt(i,e,a,r)}return Bt(i,e,s,r)},cf=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=ri.some(i=>t.includes(i));return r||o?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};M();var q3={commas:!0},es=(t,e,n)=>E(t)?Zn(t,K3,q3,e,n):t,K3=(t,e,n)=>{let r=Zo(()=>at(t,e));return ln(r)?r:Gi(t,n)},Gi=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||Wo.has(t.toLowerCase()))return t;e&&e(t);let n=Bt(t,"shadow");return n&&n.shadow?n.shadow:t},Yr=(t,e,n,r)=>{let o=O();if(A(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(I(t)){let a={"@light":Yr(t[0],e,"light"),"@dark":Yr(t[1],e,"dark")};return o.useVariable&&Gr(a,"shadow",e,o),a}if(A(t)){let a={};for(let c in t)a[c]=Yr(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&Gr(a,"shadow",e,o),a}E(t)&&(t=es(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},lf=(t,e)=>{let n=O();if(e=Qo(e,n),!E(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if($t(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=A(s);if(!s)return n.verbose&&console.warn("Can't find color ",r),t;if(i&&!s.value&&n.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;n.verbose&&console.warn(t," - does not have ",e)}return i&&s.value?s.value:i?rr(Kr(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&console.warn("Can't find color",t),t)};M();var G3=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Y3={commas:!1,keywords:G3},ae=(t,e,n)=>{if(t==null)return;let r=t+"",o=r.trim();return o==="none"||o==="0"||o==="initial"||o==="inherit"||o==="unset"?r:Zn(r,X3,Y3,e,n)},X3=(t,e,n)=>{if(/^\d/.test(t))return t;let r=Zo(()=>at(t,e));if(ln(r))return r;if(Wo.has(t.toLowerCase()))return t;n&&n(t);let o=Bt(t,"border");return o&&o.border?o.border:t},ff=(t,e,n)=>{let r=n||O();if(r.useVariable||!E(t))return ae(t);let o=ts(t,e,r,{commas:!1,resolve:s=>ae(s),resolveScheme:s=>ae(t,"@"+s)});return o!==void 0?o:ae(t)};M();var Z3=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"]),m1=["color","Color","background","Background","fill","Fill","stroke","Stroke"],w1=t=>{for(let e=0;e<m1.length;e++)if(t.includes(m1[e]))return!0;return!1},J3={boxShadow:es,textShadow:es,border:ae,borderTop:ae,borderRight:ae,borderBottom:ae,borderLeft:ae,outline:ae,columnRule:ae},Q3=t=>{if(!t)return!1;let e=Zt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},y1=new Set,t5=(t,e,n,r,o,s)=>{if(!tt())return;let i=`${t}::${e}::${n||""}::${r}`;y1.has(i)||(y1.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${r}" -> "${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.`))},jS=(t,e,n,r)=>{let o=J3[e];if(!o)return at(n,r);let s=null,i=o(n,r,a=>{!s&&Q3(a)&&(s=a)});return s&&t5(t,e,r,n,i,s),i},BS=(t,e)=>We(t,e),e5=t=>A(t)&&V(t.value),n5=t=>{for(let e in t){let n=t[e];if(E(n)&&n.startsWith("var(--"))return!0}return!1},uf=(t,e)=>{let n=O();return e5(t)?!n.useVariable&&n5(t)?t:Yi(t.value,e):Yi(t,e)},S1=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&w1(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=at(i,`@${s}`);a!==void 0&&E(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!Z3.has(a)&&n.add(s)}}return n},x1=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),df=(t,e)=>{for(let n in e){let r=e[n];A(r)?df(t[n]||(t[n]={}),r):t[n]=r}return t},b1=(t,e,n,r,o)=>df(t,rr(r,o,s=>({[e]:n[s]}))),k1=(t,e,n,r)=>{let o={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(o[t]=n,o);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(w1(t)&&qr(i)&&qr(a)){o[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");b1(o,t,e,c,r)}else n!==void 0&&(o[t]=n),b1(o,t,e,s,r);return o},r5=new Set(["backdropFilter","WebkitBackdropFilter"]),v1=new WeakSet,E1=(t,e,n,r)=>{let o=n.globalTheme!==void 0?n.globalTheme:"auto",s=o&&o!=="auto"?String(o).replace(/^'|'$/g,""):null,i=new Set(r?Object.keys(r):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=S1(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let S in t)V(t[S]?.[l])&&(m[S]=t[S][l]);let y=r&&V(r[l])?r[l]:void 0;if(!Object.keys(m).length&&!y)continue;let _=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=E1(m,`${e}-${_}`,n,y);continue}let u=r&&!V(r[l])?r[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let m of d){if(a.has(m))continue;let y=t[m]?.[l];if((y===void 0||V(y))&&(y=u),y===void 0)continue;let _=jS(e,l,y,`@${m}`);_!==void 0&&(p[m]=_,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=_))}let h=k1(l,p,g,n);h&&(df(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},NS=(t,e,n,r)=>{let{cssVars:o}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(r?Object.keys(r):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=S1(t,l);for(let u of l){let d=u.slice(0,1),p=V(r?.[u])||Object.values(t).some(g=>V(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)V(t[y]?.[u])&&(h[y]=t[y][u]);let m=V(r?.[u])?r[u]:void 0;c[u]=NS(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)V(t[y]?.[u])&&(h[y]=t[y][u]);let m=V(r?.[u])?r[u]:void 0;c[u]=NS(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=r&&!V(r[u])?r[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let _,S=!1,v={};for(let x of y){if(f.has(x))continue;let w=t[x]?.[u];if((w===void 0||V(w))&&(w=m),w===void 0)continue;let b=jS(e,u,w,`@${x}`);if(b===void 0)continue;S=!0,v[x]=b,(a&&x===a||!a&&(x==="light"||_===void 0))&&(_=b);let k=`[data-theme="${x}"]`;if(s[k]||(s[k]={}),s[k][h]=b,x==="dark"||x==="light"){let C=`@media (prefers-color-scheme: ${x})`;s[C]||(s[C]={}),s[C][h]=b}}if(_!==void 0&&(o[h]=_),!S)continue;if(r5.has(u)){let x=k1(u,v,_,n);x&&(df(c,x),c[`.${u}`]=x);continue}c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let u in c)x1(u)&&V(c[u])&&v1.add(c[u]);return c},Yi=(t,e,n,r)=>{let o=O(),{cssVars:s}=o,i={value:t},a=!n&&!r,c,l;if(V(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?V(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=NS(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?V(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=E1(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 p=u==="@"&&f;i[f]=Yi(d,e,f,r||p)}else if(!a){let p=jS(e,f,d,r),g=[...new Set([r,n].filter(_=>_).map(_=>_.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&V(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&V(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(E(t)&&$t(t)){let u=o.theme[t.slice(2)];return We(u,r)}return i},FS=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(V(t[r]))if(x1(r)&&(e||v1.has(t[r])))n[r]=df({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=FS(t[r],e):o==="."&&(n[`&${r}`]=FS(t[r],e))}else n[r]=t[r]}return n},A1=(t,e)=>{let n=e.shift();return t[n]?A1(t[n],e):t},_1=(t,e)=>I(e)?A1(t,e):E(e)&&t[e]?t[e]:t;var We=(t,e)=>{let n=O();if(E(t)&&$t(t)&&(t=We(t.slice(2))),!t||!E(t)){n.verbose&&console.warn(`${t} - Theme is not a string`);return}let[r,...o]=I(t)?t:t.split(" "),s=n.theme[r];return s&&o.length?s=_1(s,o):s&&e&&(s=_1(s,e)),FS(s,!n.useVariable)};M();M();var pf=(t,e)=>{let n=O(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=Ve(t.url,n.files)||t.url;Bi(s)?o=Ui(s):o=Vr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=Go(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Ve(i,n.files)||i):Ve(t.url,n.files)||t.url;o=Vr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},O1=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),o5=t=>O1.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),C1=new Set,hf=(t,e)=>{let n=O(),{fontFamily:r}=n,o=e||r,s=Qn(o,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!E(t))return Qn(o);if(!o5(t))return Kn()&&!C1.has(t)&&(C1.add(t),console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),Qn(o)},T1=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),r=n.replace(/\s+/g," ").toLowerCase();return n!==e&&O1.has(r)?'"'+r+'"':r},Xi=(t,e)=>{let n=O(),{fontFamily:r,fontFamilyTypes:o}=n;if(A(t)&&E(t.value)&&E(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.default)&&(r.default=e),A(s)&&(s=Ho(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),f=[...s].map(p=>String(p).trim()).filter(l),u=new Set;for(let p of f)for(let g of p.split(","))u.add(T1(g));for(let p of String(o[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=T1(g);u.has(h)||(u.add(h),f.push(g))}let d=f.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback}};M();var dh=t=>{let e=O(),{typography:n,media:r}=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:p,h1Matches:g,unit:h}=t;Tt(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,_=!i.unit&&m.has(h)?"rem":y,S=r[c],v="@media "+(S==="print"?`${S}`:`screen and ${S}`);if(n.templates[v]={fontSize:i.base/n.browserDefault+_},!a){Tt(i,{sequence:{},scales:{},vars:{}}),ye(i),Hr(t,o);continue}Tt(i,{sequence:{},scales:{},templates:{},vars:{}}),ye(i),Hr(t,o)}},ph=t=>{let e=O();if(t.h1Matches){let n=t.unit,r=tf(t),{templates:o}=t;for(let s in r){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${r[s]?.variable})`:`${r[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},gf=()=>{let t=O(),{typography:e}=t;ye(e),ph(e),nr(e),dh(e)},mf=t=>{let e=O(),{typography:n}=e;return Dn(t,"fontSize",n)};M();var yf=t=>{if(!E(t))return;let n=O().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};M();var bf=()=>{let t=O(),{timing:e}=t;ye(e),nr(e)},De=t=>{let e=O(),{timing:n}=e;return n[t]||n[Vo(t)]||t},be=(t,e="timing")=>{let n=O(),{timing:r}=n;return Dn(t,e,r)};M();var _f=()=>{let t=O(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return Wn(o)?(Ar(t,"document",o),o=t.document={}):o||(o=t.document={}),Tt(o,{theme:n.document,fontFamily:Qn(e),fontSize:r.base,lineHeight:r.lineHeight})};M();var HS={document:yt},R1=new WeakMap,P1=new WeakMap,s5=128,D1=1048576,US=8192,zS=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),M1=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),i5=(t,e)=>{let n=1,r=t.ownerDocument;if(r&&typeof r.createTreeWalker=="function"){let s=r.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;o.push(s[i])}}return n},VS=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},a5=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},Zi=(t,e)=>{let n=O();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?rf(e,t):t},wf=(t,e=HS)=>{let n=O(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];N1(r,e)},ns=(t,e)=>{let n=O();return n.useIconSprite&&!n.semanticIcons?.[e]?Zi(t,e):t},rs=(t,e=HS)=>{let n=O(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];N1(r,e)},$1=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},c5=(t,e)=>{let n=typeof DOMParser<"u"?DOMParser:null;if(n){let r=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(r,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},l5=(t,e,n)=>{let r=String(n),o=P1.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=c5(t,r);if(i||(i=$1(t,{isRoot:!1}),i.innerHTML=r),r.length>D1)return i;let a=i5(i,US);if(a>US)return i;for(o||(o={entries:new Map,units:0,nodes:0},P1.set(e,o));o.entries.size>=s5||o.units+r.length>D1||o.nodes+a>US;){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(r,{root:i,nodes:a}),o.units+=r.length,o.nodes+=a,i},L1=t=>{let e=new Map;for(let n of t.children){let r=zS(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},f5=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),I1=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?L1(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${f5(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=L1(n)}return s.get(a)};for(let a of e.childNodes){if(M1(a))continue;let c=zS(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=VS(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=VS(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=VS(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},N1=(t,e=HS)=>{let n=O(),r=e.document||yt;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),nf(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||$1(r);if(!i||!i.nodeType)return;let a=d=>l5(r,i,d),c=a(s),l=R1.get(i);l||R1.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!M1(d)&&!zS(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),I1(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{I1(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||a5(r.body,i);for(let d in t)n.__svgCache[d]=!0};M();var Sf=(t={})=>{let e=O(),n=e.typography||{},r=e.document||{},o=A(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?We("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?We("document"):{};if(o.html&&ie(o.html,a),n.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(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/p+u}}return dt(Tt(o,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:r.fontFamily,lineHeight:r.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:r.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},Pe)};M();var u5=new Set(["fallback"]),WS=new Set,F1=(t,e)=>{WS.has(t)||(WS.add(t),tt()&&console.warn(e))},qS=()=>{WS.clear()},j1=t=>{for(let e in t)delete t[e];return t},xf=()=>{let t=O(),e=A(t.cssSkinVars)?j1(t.cssSkinVars):t.cssSkinVars={},n=A(t.cssSkinFallback)?j1(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!A(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>E(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!A(l))continue;let f={};for(let u in l){if(u5.has(u))continue;let d=l[u];if(A(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&F1(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,E(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(F1(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},B1=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},os=(t,e,n)=>{let r={};if(!A(t))return r;for(let s in t)r[B1(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[B1(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};M();var d5=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),hh=(t,e)=>ff(t,e),gh=t=>{if(E(t))return Ur.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if($t(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=at(e);return ln(n)?n:e}).join(" ")},mh=(t,e)=>lf(t,e),kf=(t,e)=>{if(!E(t))return;let n=O();if(!n.useVariable){let r=p5(t,e,n);if(r!==void 0)return r}return KS(t,e)},p5=(t,e,n)=>ts(t,e==="auto"?null:e,n,{commas:!0,resolve:KS,resolveScheme:(r,o)=>KS(o(s=>at(s,"@"+r,n)),null)}),KS=(t,e)=>Zn(t,g5,h5,e),h5={commas:!0,keywords:new Set(["inset","none"])},g5=(t,e)=>{if(!ln(at(t)))return Gi(t);let n=Vt(t,e);return A(n)?Object.values(n).filter(r=>r.includes(": "+e))[0]:n},vf=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let r=t.slice(0,n+1),o=t.slice(n+1,t.lastIndexOf(")")),s=")",a=Jn(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||d5.has(f)||f==="transparent"||Ur.test(f))return f;let u=at(f);return ln(u)?u:f}).join(" ")));return r+a.join(", ")+s},yh=(t,e)=>{if(!E(t))return;let n=O();return Jn(t).map(r=>{let o=r.trim();if($t(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=Vt(o,e);if(E(s))return s;if(A(s)){for(let i in s)if(E(s[i]))return s[i]}return o}return o.includes("gradient")?vf(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!Zt(o)?`url(${o})`:o}).join(", ")},bh=t=>E(t)&&lt(t).map(e=>Bt(e,"gap").gap).join(" "),_h=t=>{if(!E(t))return t;let e=O();return lt(t).map(n=>Pn.test(n)?Xo(n,e.spacing):n).join(" ")},GS=t=>{if(!E(t))return;let e=t.split(" ");return e.length?e.map(n=>$t(n)?`var(${n})`:n.length<3||n.includes("ms")?be(n).timing||n:De(n)?De(n):n).join(" "):t},Ef=(t,e,n)=>{if(E(t))return t.split(",").map(r=>be(r).timing||r).join(",")},wh=t=>{if(!E(t))return;let e=t.split(",");if(e.length)return e.map(GS).join(",")};function Pt(t,e,n={},r={}){let o=St.call(this,e||n[t]);if(o==null)return;let s;if(E(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=er(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=sf(t);!i&&a&&!r.ratio&&(o=cf(o))}return r.ratio?ze(n,t,o,s):Bt(o,t,void 0,s)}var j=(t,e=null,n)=>Pt(t,e,n,{ratio:!0}),m5=(t,e,n)=>E(t)?lt(t).map(r=>Pn.test(r)?ze(e,n,r)[n]:r).join(" "):t,or=(t,e,n,r="borderRadius")=>{if(E(t))return{[r]:lt(t).map(o=>{let s=yf(o);return s!==void 0?m5(s,e,n):ze(e,n,o)[n]}).join(" ")}};M();var Qi="__smblsThemeRootOwner",ta=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},U1=(t,e,n)=>{if(!(!t||!e)){ta(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},y5=(t,e)=>{let n=O(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},ce=t=>t,b5=(t,e)=>{if(E(t)||pe(t)){let n=O();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},Sh={color:Wr,gradient:Ki,font:pf,fontFamily:Xi,fontfamily:Xi,theme:uf,icons:ns,semanticIcons:ce,semanticicons:ce,svg:Zi,svgData:ce,typography:ce,shadow:Yr,spacing:ce,media:ce,grid:ce,class:ce,timing:ce,reset:ce,unit:ce,animation:ce,vars:y5,sizes:b5,shape:ce,skins:ce,viewTransition:ce},_5=(t,e,n,r)=>{Ar(t,n,e);let o={};for(let s of r)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket"),o},YS=(t,e,n)=>{let r=O(),o=Kl(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=Wn(i)?_5(r,i,s,[o,s,t]):i,c=Sh[o]||Sh[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){r.verbose&&console.warn("Error setting",s,"value",e,n,l)}if(!c){let l=a||(r[s]={});return l[n]=e,l}r.verbose&&console.warn("Can not find",s,"method in scratch")},XS=(t,e)=>{let n=O(),r=t.toLowerCase();return Wn(e)?(Ar(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t]):e==null?(n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t]):(Object.keys(e).sort((s,i)=>{let a=A(e[s])||I(e[s])?1:0,c=A(e[i])||I(e[i])?1:0;return a-c}).forEach(s=>{try{return YS(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t])},xh=(t,e)=>{let n=e||O();n.globalTheme=t;let o=ni(n)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=n.themeRoot||o.documentElement,c=t&&t!=="auto";if(a[Qi]=n,c)ta(n),a.setAttribute("data-theme",t),n.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),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",U1(n,f,l)}else ta(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(o&&n.cssVars){let a=n.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 n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},w5={},ss=(t,e=w5)=>{let n=e.config||O(),{version:r,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:_,...S}=t;e.newConfig&&(n=rh(e.newConfig)),zn(S.document)&&(n.__domDocument=S.document,delete S.document),zn(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),_!==void 0&&(n.assets=_),o!==void 0&&(n.verbose=o),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&console.log(n);let x=ni(n)||(typeof document<"u"?document:null),w=x&&x.defaultView||(typeof window<"u"?window:null),b=x&&(n.themeRoot||x.documentElement);if(b&&typeof b.setAttribute=="function")if(n.globalTheme&&n.globalTheme!=="auto")ta(n),b.setAttribute("data-theme",n.globalTheme),n.resolvedTheme=n.globalTheme,b[Qi]=n,n.globalTheme==="dark"||n.globalTheme==="light"?b.style.colorScheme=n.globalTheme:b.style.colorScheme="light dark";else if(b[Qi]&&b[Qi]!==n&&b.hasAttribute("data-theme"))ta(n),n.resolvedTheme=b.getAttribute("data-theme");else if(w&&w.matchMedia){let N=et=>{let X=et.matches?"dark":"light";b.setAttribute("data-theme",X),n.resolvedTheme=X},B=w.matchMedia("(prefers-color-scheme: dark)");N(B),b.style.colorScheme="light dark",b[Qi]=n,U1(n,B,N)}else ta(n),b.setAttribute("data-theme","light"),n.resolvedTheme="light",b.style.colorScheme="light",b[Qi]=n;n.__svgCache||(n.__svgCache={}),Wi(S);let k=Object.keys(S).filter($=>!$.startsWith("__")),C=new Set(k);k.forEach($=>{let N=$.toLowerCase();N!==$&&C.has(N)&&dt(S[N],S[$],Pe)});let D=new Set;if(k.forEach($=>{let N=$.toLowerCase(),B=N!==$&&C.has(N)?N:$;D.has(B)||(D.add(B),XS(B,S[B]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),S.typography)try{gf()}catch($){n.verbose&&console.warn("Error applying typography sequence",$)}if(S.spacing)try{af()}catch($){n.verbose&&console.warn("Error applying spacing sequence",$)}if(S.timing)try{bf()}catch($){n.verbose&&console.warn("Error applying timing sequence",$)}try{xf()}catch($){n.verbose&&console.warn("Error applying skins",$)}_f();let R=Sf();return R&&(n.reset=R),n};var U=(t,e)=>e.split(" ").map(n=>t+"-"+n),tx="top right bottom left",ex=tx+" block block-start block-end inline inline-start inline-end",_e="start end",ir="width style color",kh=t=>U(t,ex),S5=(()=>{let t=U("border","width style color image");for(let e of ex.split(" "))t.push("border-"+e,...U("border-"+e,ir));return t})(),V1=t=>[...U("border-"+t,ir+" start end"),...U("border-"+t+"-start",ir),...U("border-"+t+"-end",ir)],xt={animation:U("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:U("background","image position position-x position-y size repeat origin clip attachment color"),border:S5};for(let t of["width","style","color"])xt["border-"+t]=ex.split(" ").map(e=>"border-"+e+"-"+t);for(let t of tx.split(" "))xt["border-"+t]=U("border-"+t,ir);xt["border-block"]=V1("block");xt["border-inline"]=V1("inline");Object.assign(xt,{"border-image":U("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:U("column","width count"),"column-rule":U("column-rule",ir),container:U("container","name type"),"contain-intrinsic-size":U("contain-intrinsic","width height"),flex:U("flex","grow shrink basis"),"flex-flow":U("flex","direction wrap"),font:[...U("font","style variant weight stretch size"),"line-height",...U("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:U("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":U("grid-template","rows columns areas"),"grid-area":U("grid","row column row-start row-end column-start column-end"),"grid-row":U("grid-row",_e),"grid-column":U("grid-column",_e),inset:[...tx.split(" "),...U("inset","block block-start block-end inline inline-start inline-end")],"inset-block":U("inset-block",_e),"inset-inline":U("inset-inline",_e),"list-style":U("list-style","type position image"),margin:kh("margin"),"margin-block":U("margin-block",_e),"margin-inline":U("margin-inline",_e),mask:U("mask","image mode repeat position clip origin size composite"),offset:U("offset","position path distance rotate anchor"),outline:U("outline",ir),overflow:U("overflow","x y"),"overscroll-behavior":U("overscroll-behavior","x y"),padding:kh("padding"),"padding-block":U("padding-block",_e),"padding-inline":U("padding-inline",_e)});for(let t of["content","items","self"])xt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(xt,{"scroll-margin":kh("scroll-margin"),"scroll-padding":kh("scroll-padding"),"text-decoration":U("text-decoration","line style color thickness"),"text-emphasis":U("text-emphasis","style color"),transition:U("transition","property duration timing-function delay behavior")});var x5="block-start block-end inline-start inline-end".split(" ");for(let t of x5)xt["border-"+t]=U("border-"+t,ir);for(let t of["block","inline"])for(let e of ir.split(" "))xt["border-"+t+"-"+e]=U("border-"+t,_e.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(xt,{"animation-range":U("animation-range",_e),"background-position":U("background-position","x y"),"font-variant":U("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":U("font-synthesis","weight style small-caps"),marker:U("marker","start mid end"),"position-try":U("position-try","order fallbacks"),"scroll-margin-block":U("scroll-margin-block",_e),"scroll-margin-inline":U("scroll-margin-inline",_e),"scroll-padding-block":U("scroll-padding-block",_e),"scroll-padding-inline":U("scroll-padding-inline",_e),"scroll-timeline":U("scroll-timeline","name axis"),"view-timeline":U("view-timeline","name axis inset"),"text-box":U("text-box","trim edge"),"text-wrap":U("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});xt.font.push("font-language-override");var sr=t=>"corner-"+t+"-shape";xt["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map(sr);Object.assign(xt,{"corner-top-shape":["top-left","top-right"].map(sr),"corner-right-shape":["top-right","bottom-right"].map(sr),"corner-bottom-shape":["bottom-left","bottom-right"].map(sr),"corner-left-shape":["top-left","bottom-left"].map(sr),"corner-block-start-shape":["start-start","start-end"].map(sr),"corner-block-end-shape":["end-start","end-end"].map(sr),"corner-inline-start-shape":["start-start","end-start"].map(sr),"corner-inline-end-shape":["start-end","end-end"].map(sr)});for(let t in xt){let e=xt[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=xt[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var qe={};for(let t in xt)for(let e of xt[t])(qe[e]||(qe[e]=[])).push(t);var JS=new Map,H1=t=>{let e=JS.get(t);if(e!==void 0)return e;JS.set(t,0),e=0;let n=qe[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,H1(n[r])+1);return JS.set(t,e),e};function ea(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(qe,e)?H1(e):0}var k5=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,z1=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,v5=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),QS=t=>lt(String(t).replace(/\s*!important\s*$/,""));function na(t,e,n){let r=xt[t];if(!r||r.indexOf(n)===-1)return!1;if(k5.test(t))return!0;if(!z1.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=QS(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>v5.has(s.toLowerCase()))}var E5=new Set(["thin","medium","thick"]),A5=t=>/^[+-]?\.?\d/.test(t)||E5.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),C5=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(Mi,t),T5=t=>qo(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||C5(t.toLowerCase()),O5=/-(width|style|color)$/;function Af(t,e,n){if(na(t,e,n))return!0;let r=xt[t];if(!r||r.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(z1.test(t)){if(n.indexOf("border-image")===0)return!1;let o=O5.exec(n);if(!o)return!1;let s=QS(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?o[1]!=="color":o[1]==="width"&&s.some(A5)}if(t==="background"&&n==="background-color"){let o=QS(e);return o.length===1&&T5(o[0])}return!1}var sa=new Map,sO=null,nx=null,R5=null;function Tf(t){t.batchAtomicCss&&(nx=t.batchAtomicCss),t.compoundCssClass&&(R5=t.compoundCssClass)}var P5=new Set,q1=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function ux(t){try{let e=O();e&&(e.__domDocument=t)}catch{}t&&P5.add(t)}function cr(){try{let t=O();if(t){if(q1(t.__domDocument))return t.__domDocument;if(q1(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var we={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function Ph(){return{...we}}function dx(){for(let t in we)we[t]=0;Th=!1}var Th=!1,Ah=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function D5(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Ah(n,"day")} ago)`}function L5(){try{let t=W5();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function I5(t,e){if(Th)return!1;Th=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",r="this IS the source",o="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${Ah(we.variable,"variable rule")} and ${Ah(we.atomic,"atomic rule")}, while the design system held ${Ah(e,"CSS variable")}.
45
+ src: ${i};`},Qr=(t,e,n,r)=>`@font-face {${sf(t,e,n,r)}
46
+ }`,is=(t,e,n)=>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=>Ke(d,n)||d):Ke(s,n)||s;return sf(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),jS=t=>Object.keys(t).map(n=>is(n,t[n].value)),kh=(t,e,n)=>{if(e&&e.isVariable){let s=Ke(e.url,n)||e.url;return na(s)?ra(s):Qr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return is(t,e,n).map(xh);let o=Array.isArray(e.url)?e.url.map(s=>Ke(s,n)||s):Ke(e.url,n)||e.url;return Qr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},af=(t,e)=>Object.keys(t).map(r=>kh(r,t[r].value,e));M();M();M();M();Lt();var oa={};$(oa,{animation:()=>nx,breakpoints:()=>tx,class:()=>ax,color:()=>qS,devices:()=>ex,document:()=>W1,font:()=>US,fontFace:()=>zS,fontFamily:()=>VS,fontFamilyTypes:()=>HS,gradient:()=>GS,grid:()=>ix,icons:()=>JS,media:()=>WS,reset:()=>K1,semanticIcons:()=>ZS,sequence:()=>cr,shadow:()=>XS,shape:()=>fx,sizes:()=>lx,skins:()=>ux,spacing:()=>KS,svg:()=>rx,svgData:()=>ox,templates:()=>sx,theme:()=>YS,timing:()=>QS,typography:()=>cf,unit:()=>BS,vars:()=>cx,viewTransition:()=>dx});var cr={"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 BS={default:"em"};var D5={browserDefault:16,base:16,type:"font-size",ratio:cr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},cf=D5;var US={};var VS={},HS={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},zS={};var WS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var L5={base:cf.base,type:"spacing",ratio:cr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},KS=L5;var qS={},GS={};var YS={};var XS={};var JS={},ZS={};var I5={default:150,base:150,type:"timing",ratio:cr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},QS=I5;var W1={};var tx={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},ex={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 nx={};var rx={},ox={};var sx={};var M5={},ix=M5;var ax={};var K1={},cx={},lx={},fx={},ux={},dx={};var Ah={},Ch={},ie=new Set,vh=oa,Eh={},uf=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in vh){let e=t.toLowerCase();Eh[e]=vh[t];let n=uf(e);n!==e&&(Eh[n]=vh[t]),e!==t&&(Eh[t]=vh[t])}var as={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Ah,cssMediaVars:Ch,CSS_VARS:Ah,CSS_MEDIA_VARS:Ch,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Eh},to=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return jt(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=jt(e)?e:t.globalTheme,r=cn(jt(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},q1=t=>t?to(t):null,eo=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return jt(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=jt(e)?e:t.resolvedTheme,r=cn(jt(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},G1=t=>t?eo(t):null;to(as);eo(as);var lf=ut(as),Le={active:"0",0:as},Y1=t=>(jt(t)&&(Le.active=t),Le[t||Le.active]),ff=[],mt=t=>{t&&t._scratchConfig&&ff.push(t)},pt=()=>{ff.pop()},O=t=>ff.length?ff[ff.length-1]:Le[t||Le.active]||as,Th=t=>{if(A(t))return Le.active="1",Le[1]=ft(t,ut(lf),ie),sa(Le[1]),to(Le[1]),eo(Le[1]),t},$5=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],N5=["useVariable","globalTheme","verbose"],F5=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],sa=t=>{for(let e of F5){let n;for(let r of e){let o=t[r];A(o)&&(n=n?ft(n,o,ie):o)}if(n)for(let r of e)A(t[r])&&(t[r]=n)}},X1=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,sa(t),to(t),eo(t),t),Oh=()=>X1(ut(lf)),df=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:O(),o=ut(!n&&r&&r._scratchConfig?r:lf);for(let i of $5)delete o[i];for(let i of N5)Object.prototype.hasOwnProperty.call(lf,i)?o[i]=lf[i]:delete o[i];let s=X1(ft(e||{},o,ie));return t&&(Le[t]=s),s};var Mn=/^-?[A-Z][0-9]?$/,In={"-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"},hx=(t,e)=>{let{key:n,variable:r,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:r},e.scales[n]=s;let c=J1.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},lr=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),r=e.slice(0,n),o=0,s=-1;for(let i=n;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(r)||e.slice(s+1).trim()!==""?[void 0,t]:[r,e.slice(n+1,s)]},px="\0",j5=(t,e)=>{let n="",r=0,o="";for(let s of t){if(r===0&&s!=="("){n+=s;continue}o+=s,s==="("?r++:s===")"&&(r--,r===0&&(n+=px+e.length+px,e.push(o),o=""))}return n+o},B5=(t,e)=>t.indexOf(px)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),U5=/^(calc|min|max|clamp)\((.*)\)$/,V5=(t,e)=>{let n=U5.exec(t);return n?`${n[1]}(${yf(n[2],e)})`:t.indexOf("(")!==-1?t:cs(t,e)},J1=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),pf=(t,e)=>{let{base:n,type:r,unit:o}=e,s=J1.has(o)?"rem":o,i=(Do(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=In[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=In[t+1],u=Math.abs(t),d=Math.pow(Z1,2*u),p=In[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Rh=(t,e,n,r)=>{let{type:o}=r,i=t===2&&e.length===2?t+1:t,l=`${"--"+(r.varPrefix?r.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},hf=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},gf=(t,e)=>hf(t,e).map(n=>n/t),mf=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=hf(o,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/r*1e3)/1e3,y=i+(h+1),k=a+(h+1)/10,v=Rh(h+1,f,i,e),S={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:v,index:k};hx(S,e)})},Z1=1.618,H5=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let r=Math.abs(t),o=e*Math.pow(n,t),s=e*Math.pow(n,r)/Math.pow(Z1,2*r);return Math.max(o,s)},be=t=>{let{type:e,base:n,ratio:r,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=In[f],d=H5(f,n,r),p=~~(d/n*100)/100,g=c+u,h=pf(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};hx(m,t),s&&mf(m,t)}return t},gx=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=E(e)?e:In[e],a=E(e)?Object.entries(In).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=r*Math.pow(o,a),f=~~(l/r*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=pf(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return hx(h,c),s&&mf(h,c),c},ia=(t,e)=>{if(!t||!E(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let r=e.slice(1),o=t[r]||t[r.toLowerCase()];if(o!==void 0)return`calc(${o} * -1)`},cs=(t="A",e)=>{let n=O(),{unit:r}=n;if(E(t)&&Nt(t))return`var(${t})`;if(E(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(E(t)){let v=ia(n.sizes,t);if(v!==void 0)return v}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Pc(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+"-":""}${Jl(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=v=>a.test(v)?`var(${d}${v}${m})`:v;if(h.includes("+")){let[v,S]=h.split("+"),w=`${y(v)} + ${y(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("*")){let[v,S]=h.split("*"),w=`${y(v)} * ${y(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("-")){let[v,S]=h.split("-"),w=`${y(v)} - ${y(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}if(!o[h]&&h.length===2&&(n.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||n.useVariable){let v=`var(${d}${h}${m})`;return g?`calc(${v} * -1)`:v}let k=o?o[h]:null;if(!k){if(console.warn("can't find",o,h),tt())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"?g+k.val+s:g+k.scaling+s},yf=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return j5(t,o).split(r).map(i=>{let a=B5(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:V5(c,e)}).join("")},$n=(t,e,n,r)=>{if(typeof t!="string")return O().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!r&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=lr(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=yf(t,n):t=cs(t,n),{[e]:r?`${r}(${t})`:t}},Ph=(t,e)=>In[t-e],bf=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=Ph(e,o);return n[s]})};M();var mx=(t,e)=>{let n=O(),{cssVars:r}=n;H(t.value)||(r[t.var]=t.value)},_f=(t,e,n)=>{let r=O(),{unit:o}=r,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,p,g]=gf(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},Q1=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),fr=(t,e={})=>{let n=O(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=Q1.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||_f(s,t,e);for(let u in l){let d=l[u],p=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},no=(t,e,n={})=>{let r=O(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=Q1.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&r.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),_f(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let k=d[y],v=p[y]+f;h[k.variable+"_default"]=v,h[k.variable]=v}return}for(let h in d){let m=d[h],y=(Do(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let k=i[`@media ${g}`];k||(k=i[`@media ${g}`]={}),k[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};M();var eO=Qn(),wf=t=>{let e=O(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},z5=t=>{let e=t&&(t.default||t);if(!E(e))return eO&&console.warn("parseRootAttributes:",e,"is not a string"),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let o=n[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},{}):{}},W5=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(n.push(s),o)),!n.length)return t;let r=t;for(let o of n){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;r=r.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 r},tO=new Set,Sf=(t,e)=>{let n=e&&e.default?e.default:e;if(!E(n))return eO&&!tO.has(t)&&(tO.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let r=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(r){let u=r[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=z5(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=W5(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=G5(f),f},K5="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",q5=new RegExp(`<(${K5})\\b([^>]*?)\\s*/>`,"g"),G5=t=>t.replace(q5,"<$1$2></$1>");var da={};$(da,{STANDARD_SCHEME_QUERIES:()=>Lh,__resetSkinWarnings:()=>Ox,appendSVGSprite:()=>Nf,appendSvgIconsSprite:()=>gs,applyDocument:()=>$f,applyHeadings:()=>Fh,applyReset:()=>Ff,applySkins:()=>jf,applySpacingSequence:()=>vf,applyTimingSequence:()=>Mf,applyTypographySequence:()=>Df,atSchemes:()=>io,buildSkinVarStyles:()=>ms,checkIfBoxSize:()=>kf,colorPairSchemes:()=>xf,forcedScheme:()=>us,getColor:()=>at,getFontFamily:()=>Pf,getFontSizeByKey:()=>Lf,getMediaBorder:()=>Cf,getMediaColor:()=>Vt,getMediaTheme:()=>Ye,getSafeInk:()=>$h,getSafeInkInfo:()=>_x,getShadow:()=>Af,getShapeByKey:()=>If,getSpacingBasedOnRatio:()=>Ge,getSpacingByKey:()=>Bt,getTheme:()=>kx,getTimingByKey:()=>_e,getTimingFunction:()=>Ie,isPlainColor:()=>so,literalPairCompound:()=>ds,literalSchemeMap:()=>ur,quietColorProbe:()=>ls,resolveBorderValue:()=>ae,resolveColorRgb:()=>fs,resolveShadowNonColorWord:()=>ca,resolveShadowValue:()=>ps,runThroughMedia:()=>Nh,schemeGuardSelector:()=>Mh,schemeMediaQuery:()=>Ih,setAdaptiveSchemeVar:()=>ao,setColor:()=>oo,setFont:()=>Rf,setFontFamily:()=>fa,setGradient:()=>aa,setMediaTheme:()=>la,setSVG:()=>ua,setShadow:()=>co,setSvgIcon:()=>hs,setTheme:()=>Tf,splitSpacedValue:()=>Ef});M();var Lh={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},Ih=(t,e)=>{let n=e.media&&e.media[t]||Lh[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},Mh=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},qe=new Set,sO=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"]),Y5=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,X5=/gradient\(|url\(|image-set\(|var\(/i,J5=new Set(["transparent","currentColor","currentcolor"]),so=t=>{if(!E(t))return!1;let e=t.trim();return X5.test(e)?!1:Y5.test(e)?!0:sO.has(e)||J5.has(e)},Dh=new Set,nO=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(A(e)&&Object.keys(e).length||A(n)&&Object.keys(n).length)},rO=new Set,yx=0,ls=t=>{yx++;try{return t()}finally{yx--}},Z5=(t,e)=>{if(!E(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=Jt(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},bx=(t,e,n)=>{let r=Z5(t,n);if(r){if(!rO.has(t)){rO.add(t);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${i} \u2014 did you mean \`${r}\`? 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)&&nO(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!yx&&!Dh.has(t)){Dh.add(t);let i=n&&n.name?` (design system \`${n.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=E(e)?e.toLowerCase():"";if(!sO.has(s)||!nO(n))return t;if(!Dh.has(s)){Dh.add(s);let i=n&&n.name?` (design system \`${n.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.`)}},iO=(t,e,n)=>{let r=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${r})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${r})`}return`hsl(from ${t} h s ${n}% / ${r})`},at=(t,e,n)=>{let r=n||O();if(!E(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Nt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=Jt(t);if(!u){let{color:d,gradient:p}=r,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),r.useVariable?`var(${g.var})`:g.value):bx(t,t,r)}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}=r,l=a[o]||c[o];if(!l)return bx(t,o,r);if(e)if(l[e]!==void 0)l=l[e];else if(I(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&r.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 r.verbose&&console.warn(t," - does not have ",e);if(E(l)){if(qe.has(o))return l;qe.add(o);try{return at(l,null,n)}finally{qe.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?iO(u,s,i):u}return i&&!l[i]&&(f=Ln(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})`:r.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},oO=t=>{let e=We(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}},Q5=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=Ln(n,e.tone);n=E(o)?o.split(",").map(s=>parseFloat(s.trim())):o}let r=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:r}},fs=(t,e,n)=>{let r=e||O();if(!E(t))return null;let o=Jt(t);if(o){if(o.passthrough){let d=We(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}=r,c=i[s]||a[s];if(!c)return oO(t);if(E(c)){let d;if(qe.has(s))d=oO(c);else{qe.add(s);try{d=fs(c,r,n)}finally{qe.delete(s)}}return d?Q5(d,o):null}if(c.rgb===void 0&&A(c)){let d=`@${n||"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=Ln(l,o.tone));let f=E(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}},aO=t=>A(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),io=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},cO=t=>{if(!A(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!aO(t[n])))return null;let e=io(t);return e.length?e:null},t4=t=>E(t&&t.var)&&cO(t)!==null,e4=(t,e,n,r,o)=>{let s=cO(e);if(!s)return;if(E(e.var)){let c=`var(${e.var})`;return n||r?iO(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=at(t,"@light",o),a=at(t,"@dark",o);if(!(!so(i)||!so(a)))return i===a?i:`light-dark(${i}, ${a})`},xf=(t,e)=>{if(!t)return null;let n=e||O(),r=Jt(t),o=r?r.name:t,s=o&&n.color&&n.color[o];if(I(s))return["light","dark"];if(!A(s)||s.value!==void 0)return null;let i=io(s);return i.length?i:null},ur=(t,e,n)=>{let r={},o=Mh(e);for(let s of t){let i=n(s);if(i!==void 0&&(r[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=Ih(s,e);a&&(r[a]={[o]:i})}}return r},us=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),ds=(t,e,n,{commas:r,resolve:o,resolveScheme:s})=>{let i=Qi(t,r),a=null;for(let f of i)for(let u of f){let d=xf(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>ta(i.map(u=>u.map(d=>{if(!xf(d,n))return d;let p=f(d);return E(p)?p:d}))),l=us(e,n);return l?o(c(f=>Vt(f,l,n)),l):ur(a,n,f=>s(f,c))},Vt=(t,e,n)=>{let r=n||O();if(e=us(e,r),!E(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Nt(t))return`var(${t})`;let o,s,i;if(I(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}=r,l=a[o]||c[o],f=A(l);if(f&&l.value)return at(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?at(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=e4(t,l,s,i,n);if(u!==void 0)return u}return at(t,`@${e}`,n)}else return ur(io(l),r,u=>at(t,"@"+u,n))}else return bx(t,o,r)},ao=(t,e,n,r)=>{let s=`--${r.varPrefix?r.varPrefix+"-":""}${e}-${n}`,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){r.cssVars[s]=i,r.cssMediaVars||(r.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(r.cssMediaVars[l]||(r.cssMediaVars[l]={}),r.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;r.cssMediaVars[f]||(r.cssMediaVars[f]={}),r.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},oo=(t,e,n)=>{let r=O();if(aO(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&t4(t))return t;if(E(t)&&Nt(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:at(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),k=r.color[y[0]];if(k&&!k.value&&!k.rgb&&(E(k)||I(k)||A(k))&&!qe.has(y[0])){qe.add(y[0]);try{r.color[y[0]]=oo(k,y[0])}finally{qe.delete(y[0])}k=r.color[y[0]]}if(k&&k.value){let v=k.rgb,S=y[1]!==void 0?y[1]:"1",w=y[2];w&&(v=Ln(v,w)),t=`rgba(${v}, ${S})`}else{let v=y[2],S=y[1]!==void 0?y[1]:"1";if(v)try{let w=We(y[0]);w&&w.length>=3?t=`rgba(${Ln(w.slice(0,3).join(", "),v)}, ${S})`:t=y[0]}catch{t=y[0]}else t=y[0]}}}if(I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),A(t)){let h={};for(let m in t)m!=="var"&&(h[m]=oo(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&ao(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(E(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Jt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(E(m)||I(m)||A(m))&&!qe.has(h.name)){qe.add(h.name);try{r.color[h.name]=oo(m,h.name)}finally{qe.delete(h.name)}}let y=r.color[h.name];if(y&&y.rgb){let k=y.rgb;h.tone&&(k=Ln(k,h.tone));let v=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${k}, ${v})`}}}let a=We(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return r.useVariable&&(r.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},aa=(t,e,n)=>{let r=O();if(A(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(E(t)&&Nt(t)&&(t=at(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),A(t)){let i={};for(let a in t)a!=="var"&&(i[a]=aa(t[a],e,a.slice(0,1)==="@"?a.slice(1):a));return r.useVariable&&ao(i,"gradient",e,r),i}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[s]=t.value||t),{var:s,value:t.value||t}};M();var $h=(t,e,n={},r)=>{let o=r||O(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!=="auto"?o.globalTheme:"light"),d=E(e)?e:String(e),p=Jt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(Q,ht)=>c?{value:Q,...ht}:Q;if(g){let Q=o.color[`${g}Safe`];if(Q){let ht=`${d}@${u}`,X=Q[ht]!==void 0?Q[ht]:Q[d];if(X!==void 0){let J=X&&X.rgb!==void 0?o.useVariable&&X.var?`var(${X.var})`:X.value:at(X,null,o);return h(J,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=at(t,u?`@${u}`:null,o),y=fs(t,o,u),k=fs(e,o,u);if(!y||!k)return o.verbose&&console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged"),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let v=ss(k.rgb,k.alpha),S=ss(y.rgb,y.alpha,v),w=ea(S,v);if(w>=f-.02)return h(m,{ratio:w,deviation:0,derived:!1,overridden:!1});let[_,b,x]=nf(y.rgb),[,C,P]=rf([_,b,x]),R=ns(v)>.5,j=R?_:1-_,F=Q=>{let ht=R?_-Q:_+Q,X=Math.max(0,Math.min(1,ht));return{rgb:of(X,C,P),L:X}},U=Q=>{let{rgb:ht}=F(Q),X=ss(ht.map(J=>Math.round(J)),y.alpha,v);return ea(X,v)},et=0,Y=j,rt=U(Y)>=f;if(rt)for(let Q=0;Q<l;Q++){let ht=(et+Y)/2;U(ht)>=f?Y=ht:et=ht}else et=Y;let{rgb:_t,L:wt}=F(Y),it=_t.map(Q=>Math.round(Q)),K=U(Y),G=y.alpha<1?`rgba(${it.join(", ")}, ${y.alpha})`:`rgb(${it.join(", ")})`,nt=Math.abs(wt-_)*100;return h(G,{rgb:it,ratio:K,startRatio:w,deviation:nt,derived:!0,overridden:!1,reachable:rt})},_x=(t,e,n={},r)=>$h(t,e,{...n,meta:!0},r);M();M();var n4=t=>{let n=O().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return be(o),o},r4=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Rt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),be(n),no(t,e)}},kf=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},vf=()=>{let t=O(),{spacing:e}=t;be(e),fr(e),r4(e)},o4=t=>{let e=O(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:be(t)},Bt=(t,e="padding",n,r)=>{let o=o4(n);if(E(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=lr(t);r=i[0],t=i[1]}}let s=r?[t]:E(t)&&t.includes("(")?dt(t):es(t);if(I(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)=>$n(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return $n(t,e,o,r)}},Ge=(t,e,n,r)=>{let o=O(),{spacing:s}=o,i=n||t[e];if(!r&&E(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&E(i)&&i.includes("(")){let a=lr(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=n4(t);return Bt(i,e,a,r)}return Bt(i,e,s,r)},Ef=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=_i.some(i=>t.includes(i));return r||o?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};M();var s4={commas:!0},ps=(t,e,n)=>E(t)?sr(t,i4,s4,e,n):t,i4=(t,e,n)=>{let r=ls(()=>at(t,e));return hn(r)?r:ca(t,n)},ca=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||rs.has(t.toLowerCase()))return t;e&&e(t);let n=Bt(t,"shadow");return n&&n.shadow?n.shadow:t},co=(t,e,n,r)=>{let o=O();if(A(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(I(t)){let a={"@light":co(t[0],e,"light"),"@dark":co(t[1],e,"dark")};return o.useVariable&&ao(a,"shadow",e,o),a}if(A(t)){let a={};for(let c in t)a[c]=co(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&ao(a,"shadow",e,o),a}E(t)&&(t=ps(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Af=(t,e)=>{let n=O();if(e=us(e,n),!E(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(Nt(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=A(s);if(!s)return n.verbose&&console.warn("Can't find color ",r),t;if(i&&!s.value&&n.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;n.verbose&&console.warn(t," - does not have ",e)}return i&&s.value?s.value:i?ur(io(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&console.warn("Can't find color",t),t)};M();var a4=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),c4={commas:!1,keywords:a4},ae=(t,e,n)=>{if(t==null)return;let r=t+"",o=r.trim();return o==="none"||o==="0"||o==="initial"||o==="inherit"||o==="unset"?r:sr(r,l4,c4,e,n)},l4=(t,e,n)=>{if(/^\d/.test(t))return t;let r=ls(()=>at(t,e));if(hn(r))return r;if(rs.has(t.toLowerCase()))return t;n&&n(t);let o=Bt(t,"border");return o&&o.border?o.border:t},Cf=(t,e,n)=>{let r=n||O();if(r.useVariable||!E(t))return ae(t);let o=ds(t,e,r,{commas:!1,resolve:s=>ae(s),resolveScheme:s=>ae(t,"@"+s)});return o!==void 0?o:ae(t)};M();var f4=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"]),lO=["color","Color","background","Background","fill","Fill","stroke","Stroke"],pO=t=>{for(let e=0;e<lO.length;e++)if(t.includes(lO[e]))return!0;return!1},u4={boxShadow:ps,textShadow:ps,border:ae,borderTop:ae,borderRight:ae,borderBottom:ae,borderLeft:ae,outline:ae,columnRule:ae},d4=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},fO=new Set,p4=(t,e,n,r,o,s)=>{if(!tt())return;let i=`${t}::${e}::${n||""}::${r}`;fO.has(i)||(fO.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${r}" -> "${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.`))},xx=(t,e,n,r)=>{let o=u4[e];if(!o)return at(n,r);let s=null,i=o(n,r,a=>{!s&&d4(a)&&(s=a)});return s&&p4(t,e,r,n,i,s),i},kx=(t,e)=>Ye(t,e),h4=t=>A(t)&&H(t.value),g4=t=>{for(let e in t){let n=t[e];if(E(n)&&n.startsWith("var(--"))return!0}return!1},Tf=(t,e)=>{let n=O();return h4(t)?!n.useVariable&&g4(t)?t:la(t.value,e):la(t,e)},hO=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&pO(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=at(i,`@${s}`);a!==void 0&&E(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!f4.has(a)&&n.add(s)}}return n},gO=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),Of=(t,e)=>{for(let n in e){let r=e[n];A(r)?Of(t[n]||(t[n]={}),r):t[n]=r}return t},uO=(t,e,n,r,o)=>Of(t,ur(r,o,s=>({[e]:n[s]}))),mO=(t,e,n,r)=>{let o={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(o[t]=n,o);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(pO(t)&&so(i)&&so(a)){o[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");uO(o,t,e,c,r)}else n!==void 0&&(o[t]=n),uO(o,t,e,s,r);return o},m4=new Set(["backdropFilter","WebkitBackdropFilter"]),yO=new WeakSet,bO=(t,e,n,r)=>{let o=n.globalTheme!==void 0?n.globalTheme:"auto",s=o&&o!=="auto"?String(o).replace(/^'|'$/g,""):null,i=new Set(r?Object.keys(r):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=hO(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let v in t)H(t[v]?.[l])&&(m[v]=t[v][l]);let y=r&&H(r[l])?r[l]:void 0;if(!Object.keys(m).length&&!y)continue;let k=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=bO(m,`${e}-${k}`,n,y);continue}let u=r&&!H(r[l])?r[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let m of d){if(a.has(m))continue;let y=t[m]?.[l];if((y===void 0||H(y))&&(y=u),y===void 0)continue;let k=xx(e,l,y,`@${m}`);k!==void 0&&(p[m]=k,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=k))}let h=mO(l,p,g,n);h&&(Of(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},wx=(t,e,n,r)=>{let{cssVars:o}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(r?Object.keys(r):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=hO(t,l);for(let u of l){let d=u.slice(0,1),p=H(r?.[u])||Object.values(t).some(g=>H(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)H(t[y]?.[u])&&(h[y]=t[y][u]);let m=H(r?.[u])?r[u]:void 0;c[u]=wx(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)H(t[y]?.[u])&&(h[y]=t[y][u]);let m=H(r?.[u])?r[u]:void 0;c[u]=wx(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=r&&!H(r[u])?r[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let k,v=!1,S={};for(let w of y){if(f.has(w))continue;let _=t[w]?.[u];if((_===void 0||H(_))&&(_=m),_===void 0)continue;let b=xx(e,u,_,`@${w}`);if(b===void 0)continue;v=!0,S[w]=b,(a&&w===a||!a&&(w==="light"||k===void 0))&&(k=b);let x=`[data-theme="${w}"]`;if(s[x]||(s[x]={}),s[x][h]=b,w==="dark"||w==="light"){let C=`@media (prefers-color-scheme: ${w})`;s[C]||(s[C]={}),s[C][h]=b}}if(k!==void 0&&(o[h]=k),!v)continue;if(m4.has(u)){let w=mO(u,S,k,n);w&&(Of(c,w),c[`.${u}`]=w);continue}c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let u in c)gO(u)&&H(c[u])&&yO.add(c[u]);return c},la=(t,e,n,r)=>{let o=O(),{cssVars:s}=o,i={value:t},a=!n&&!r,c,l;if(H(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?H(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=wx(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?H(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=bO(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 p=u==="@"&&f;i[f]=la(d,e,f,r||p)}else if(!a){let p=xx(e,f,d,r),g=[...new Set([r,n].filter(k=>k).map(k=>k.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&H(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&H(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(E(t)&&Nt(t)){let u=o.theme[t.slice(2)];return Ye(u,r)}return i},Sx=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(H(t[r]))if(gO(r)&&(e||yO.has(t[r])))n[r]=Of({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=Sx(t[r],e):o==="."&&(n[`&${r}`]=Sx(t[r],e))}else n[r]=t[r]}return n},_O=(t,e)=>{let n=e.shift();return t[n]?_O(t[n],e):t},dO=(t,e)=>I(e)?_O(t,e):E(e)&&t[e]?t[e]:t;var Ye=(t,e)=>{let n=O();if(E(t)&&Nt(t)&&(t=Ye(t.slice(2))),!t||!E(t)){n.verbose&&console.warn(`${t} - Theme is not a string`);return}let[r,...o]=I(t)?t:t.split(" "),s=n.theme[r];return s&&o.length?s=dO(s,o):s&&e&&(s=dO(s,e)),Sx(s,!n.useVariable)};M();M();var Rf=(t,e)=>{let n=O(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=Ke(t.url,n.files)||t.url;na(s)?o=ra(s):o=Qr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=is(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Ke(i,n.files)||i):Ke(t.url,n.files)||t.url;o=Qr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},xO=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),y4=t=>xO.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),wO=new Set,Pf=(t,e)=>{let n=O(),{fontFamily:r}=n,o=e||r,s=ar(o,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!E(t))return ar(o);if(!y4(t))return Qn()&&!wO.has(t)&&(wO.add(t),console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),ar(o)},SO=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),r=n.replace(/\s+/g," ").toLowerCase();return n!==e&&xO.has(r)?'"'+r+'"':r},fa=(t,e)=>{let n=O(),{fontFamily:r,fontFamilyTypes:o}=n;if(A(t)&&E(t.value)&&E(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.default)&&(r.default=e),A(s)&&(s=es(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),f=[...s].map(p=>String(p).trim()).filter(l),u=new Set;for(let p of f)for(let g of p.split(","))u.add(SO(g));for(let p of String(o[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=SO(g);u.has(h)||(u.add(h),f.push(g))}let d=f.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback}};M();var Nh=t=>{let e=O(),{typography:n,media:r}=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:p,h1Matches:g,unit:h}=t;Rt(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,k=!i.unit&&m.has(h)?"rem":y,v=r[c],S="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(n.templates[S]={fontSize:i.base/n.browserDefault+k},!a){Rt(i,{sequence:{},scales:{},vars:{}}),be(i),no(t,o);continue}Rt(i,{sequence:{},scales:{},templates:{},vars:{}}),be(i),no(t,o)}},Fh=t=>{let e=O();if(t.h1Matches){let n=t.unit,r=bf(t),{templates:o}=t;for(let s in r){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${r[s]?.variable})`:`${r[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Df=()=>{let t=O(),{typography:e}=t;be(e),Fh(e),fr(e),Nh(e)},Lf=t=>{let e=O(),{typography:n}=e;return $n(t,"fontSize",n)};M();var If=t=>{if(!E(t))return;let n=O().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};M();var Mf=()=>{let t=O(),{timing:e}=t;be(e),fr(e)},Ie=t=>{let e=O(),{timing:n}=e;return n[t]||n[ts(t)]||t},_e=(t,e="timing")=>{let n=O(),{timing:r}=n;return $n(t,e,r)};M();var $f=()=>{let t=O(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return Jn(o)?(Ir(t,"document",o),o=t.document={}):o||(o=t.document={}),Rt(o,{theme:n.document,fontFamily:ar(e),fontSize:r.base,lineHeight:r.lineHeight})};M();var Ax={document:St},kO=new WeakMap,vO=new WeakMap,b4=128,EO=1048576,vx=8192,Cx=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),TO=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),_4=(t,e)=>{let n=1,r=t.ownerDocument;if(r&&typeof r.createTreeWalker=="function"){let s=r.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;o.push(s[i])}}return n},Ex=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},w4=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},ua=(t,e)=>{let n=O();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?Sf(e,t):t},Nf=(t,e=Ax)=>{let n=O(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];RO(r,e)},hs=(t,e)=>{let n=O();return n.useIconSprite&&!n.semanticIcons?.[e]?ua(t,e):t},gs=(t,e=Ax)=>{let n=O(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];RO(r,e)},OO=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},S4=(t,e)=>{let n=typeof DOMParser<"u"?DOMParser:null;if(n){let r=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(r,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},x4=(t,e,n)=>{let r=String(n),o=vO.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=S4(t,r);if(i||(i=OO(t,{isRoot:!1}),i.innerHTML=r),r.length>EO)return i;let a=_4(i,vx);if(a>vx)return i;for(o||(o={entries:new Map,units:0,nodes:0},vO.set(e,o));o.entries.size>=b4||o.units+r.length>EO||o.nodes+a>vx;){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(r,{root:i,nodes:a}),o.units+=r.length,o.nodes+=a,i},AO=t=>{let e=new Map;for(let n of t.children){let r=Cx(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},k4=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),CO=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?AO(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${k4(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=AO(n)}return s.get(a)};for(let a of e.childNodes){if(TO(a))continue;let c=Cx(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=Ex(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=Ex(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=Ex(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},RO=(t,e=Ax)=>{let n=O(),r=e.document||St;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),wf(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||OO(r);if(!i||!i.nodeType)return;let a=d=>x4(r,i,d),c=a(s),l=kO.get(i);l||kO.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!TO(d)&&!Cx(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),CO(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{CO(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||w4(r.body,i);for(let d in t)n.__svgCache[d]=!0};M();var Ff=(t={})=>{let e=O(),n=e.typography||{},r=e.document||{},o=A(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?Ye("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?Ye("document"):{};if(o.html&&se(o.html,a),n.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(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/p+u}}return ft(Rt(o,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:r.fontFamily,lineHeight:r.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:r.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},ie)};M();var v4=new Set(["fallback"]),Tx=new Set,PO=(t,e)=>{Tx.has(t)||(Tx.add(t),tt()&&console.warn(e))},Ox=()=>{Tx.clear()},DO=t=>{for(let e in t)delete t[e];return t},jf=()=>{let t=O(),e=A(t.cssSkinVars)?DO(t.cssSkinVars):t.cssSkinVars={},n=A(t.cssSkinFallback)?DO(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!A(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>E(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!A(l))continue;let f={};for(let u in l){if(v4.has(u))continue;let d=l[u];if(A(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&PO(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,E(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(PO(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},LO=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},ms=(t,e,n)=>{let r={};if(!A(t))return r;for(let s in t)r[LO(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[LO(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};M();var E4=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),jh=(t,e)=>Cf(t,e),Bh=t=>{if(E(t))return Zr.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(Nt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=at(e);return hn(n)?n:e}).join(" ")},Uh=(t,e)=>Af(t,e),Bf=(t,e)=>{if(!E(t))return;let n=O();if(!n.useVariable){let r=A4(t,e,n);if(r!==void 0)return r}return Rx(t,e)},A4=(t,e,n)=>ds(t,e==="auto"?null:e,n,{commas:!0,resolve:Rx,resolveScheme:(r,o)=>Rx(o(s=>at(s,"@"+r,n)),null)}),Rx=(t,e)=>sr(t,T4,C4,e),C4={commas:!0,keywords:new Set(["inset","none"])},T4=(t,e)=>{if(!hn(at(t)))return ca(t);let n=Vt(t,e);return A(n)?Object.values(n).filter(r=>r.includes(": "+e))[0]:n},Uf=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let r=t.slice(0,n+1),o=t.slice(n+1,t.lastIndexOf(")")),s=")",a=ir(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||E4.has(f)||f==="transparent"||Zr.test(f))return f;let u=at(f);return hn(u)?u:f}).join(" ")));return r+a.join(", ")+s},Vh=(t,e)=>{if(!E(t))return;let n=O();return ir(t).map(r=>{let o=r.trim();if(Nt(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=Vt(o,e);if(E(s))return s;if(A(s)){for(let i in s)if(E(s[i]))return s[i]}return o}return o.includes("gradient")?Uf(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!Jt(o)?`url(${o})`:o}).join(", ")},Hh=t=>E(t)&&dt(t).map(e=>Bt(e,"gap").gap).join(" "),zh=t=>{if(!E(t))return t;let e=O();return dt(t).map(n=>Mn.test(n)?cs(n,e.spacing):n).join(" ")},Px=t=>{if(!E(t))return;let e=t.split(" ");return e.length?e.map(n=>Nt(n)?`var(${n})`:n.length<3||n.includes("ms")?_e(n).timing||n:Ie(n)?Ie(n):n).join(" "):t},Vf=(t,e,n)=>{if(E(t))return t.split(",").map(r=>_e(r).timing||r).join(",")},Wh=t=>{if(!E(t))return;let e=t.split(",");if(e.length)return e.map(Px).join(",")};function It(t,e,n={},r={}){let o=vt.call(this,e||n[t]);if(o==null)return;let s;if(E(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=lr(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=kf(t);!i&&a&&!r.ratio&&(o=Ef(o))}return r.ratio?Ge(n,t,o,s):Bt(o,t,void 0,s)}var N=(t,e=null,n)=>It(t,e,n,{ratio:!0}),O4=(t,e,n)=>E(t)?dt(t).map(r=>Mn.test(r)?Ge(e,n,r)[n]:r).join(" "):t,dr=(t,e,n,r="borderRadius")=>{if(E(t))return{[r]:dt(t).map(o=>{let s=If(o);return s!==void 0?O4(s,e,n):Ge(e,n,o)[n]}).join(" ")}};M();var pa="__smblsThemeRootOwner",ha=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},IO=(t,e,n)=>{if(!(!t||!e)){ha(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},R4=(t,e)=>{let n=O(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},ce=t=>t,P4=(t,e)=>{if(E(t)||he(t)){let n=O();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},Kh={color:oo,gradient:aa,font:Rf,fontFamily:fa,fontfamily:fa,theme:Tf,icons:hs,semanticIcons:ce,semanticicons:ce,svg:ua,svgData:ce,typography:ce,shadow:co,spacing:ce,media:ce,grid:ce,class:ce,timing:ce,reset:ce,unit:ce,animation:ce,vars:R4,sizes:P4,shape:ce,skins:ce,viewTransition:ce},D4=(t,e,n,r)=>{Ir(t,n,e);let o={};for(let s of r)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket"),o},Dx=(t,e,n)=>{let r=O(),o=uf(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=Jn(i)?D4(r,i,s,[o,s,t]):i,c=Kh[o]||Kh[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){r.verbose&&console.warn("Error setting",s,"value",e,n,l)}if(!c){let l=a||(r[s]={});return l[n]=e,l}r.verbose&&console.warn("Can not find",s,"method in scratch")},Hf=(t,e)=>{let n=O(),r=t.toLowerCase();return Jn(e)?(Ir(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t]):e==null?(n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t]):(Object.keys(e).sort((s,i)=>{let a=A(e[s])||I(e[s])?1:0,c=A(e[i])||I(e[i])?1:0;return a-c}).forEach(s=>{try{return Dx(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t])},qh=(t,e)=>{let n=e||O();n.globalTheme=t;let o=bi(n)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=n.themeRoot||o.documentElement,c=t&&t!=="auto";if(a[pa]=n,c)ha(n),a.setAttribute("data-theme",t),n.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),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",IO(n,f,l)}else ha(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(o&&n.cssVars){let a=n.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 n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},zf=t=>{let n=bi(t)||(typeof document<"u"?document:null),r=n&&n.defaultView||(typeof window<"u"?window:null),o=n&&(t.themeRoot||n.documentElement);if(o&&typeof o.setAttribute=="function")if(t.globalTheme&&t.globalTheme!=="auto")ha(t),o.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,o[pa]=t,t.globalTheme==="dark"||t.globalTheme==="light"?o.style.colorScheme=t.globalTheme:o.style.colorScheme="light dark";else if(o[pa]&&o[pa]!==t&&o.hasAttribute("data-theme"))ha(t),t.resolvedTheme=o.getAttribute("data-theme");else if(r&&r.matchMedia){let i=c=>{let l=c.matches?"dark":"light";o.setAttribute("data-theme",l),t.resolvedTheme=l},a=r.matchMedia("(prefers-color-scheme: dark)");i(a),o.style.colorScheme="light dark",o[pa]=t,IO(t,a,i)}else ha(t),o.setAttribute("data-theme","light"),t.resolvedTheme="light",o.style.colorScheme="light",o[pa]=t},L4={},ys=(t,e=L4)=>{let n=e.config||O(),{version:r,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:k,...v}=t;e.newConfig&&(n=Th(e.newConfig)),Xn(v.document)&&(n.__domDocument=v.document,delete v.document),Xn(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),k!==void 0&&(n.assets=k),o!==void 0&&(n.verbose=o),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&console.log(n),zf(n),n.__svgCache||(n.__svgCache={}),sa(v);let S=Object.keys(v).filter(x=>!x.startsWith("__")),w=new Set(S);S.forEach(x=>{let C=x.toLowerCase();C!==x&&w.has(C)&&ft(v[C],v[x],ie)});let _=new Set;if(S.forEach(x=>{let C=x.toLowerCase(),P=C!==x&&w.has(C)?C:x;_.has(P)||(_.add(P),Hf(P,v[P]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),v.typography)try{Df()}catch(x){n.verbose&&console.warn("Error applying typography sequence",x)}if(v.spacing)try{vf()}catch(x){n.verbose&&console.warn("Error applying spacing sequence",x)}if(v.timing)try{Mf()}catch(x){n.verbose&&console.warn("Error applying timing sequence",x)}try{jf()}catch(x){n.verbose&&console.warn("Error applying skins",x)}$f();let b=Ff();return b&&(n.reset=b),n};var ma=1,Lx=["font","files","assets","themeRoot"],I4=new Set(Lx),ga="$smbls",Gh=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},M4=t=>t.startsWith("__")||I4.has(t),Yh=t=>{if(!Gh(t))return null;let e=new Map,n=!1,r=s=>{if(n)return;if(s===void 0)return{[ga]:"u"};if(s===null||typeof s=="string"||typeof s=="boolean")return s;if(typeof s=="number")return Number.isFinite(s)&&!Object.is(s,-0)?s:{[ga]:"n",v:Object.is(s,-0)?"-0":String(s)};if(typeof s!="object"){n=!0;return}let i=e.get(s);if(i!==void 0)return{[ga]:"r",i};if(Array.isArray(s)){e.set(s,e.size);let c=new Array(s.length);for(let l=0;l<s.length;l++){if(!(l in s)){n=!0;return}c[l]=r(s[l])}return c}if(!Gh(s)||Object.prototype.hasOwnProperty.call(s,ga)){n=!0;return}e.set(s,e.size);let a={};for(let c of Object.keys(s))a[c]=r(s[c]);return a},o={};for(let s of Object.keys(t))if(!M4(s)&&(o[s]=r(t[s]),n))return null;return o},$4=(t,e)=>{let n=Object.keys(e),r=0;for(let o in t){if(r===n.length)return!0;if(o!==n[r])return!1;r++}return r===n.length},Xh=(t,e)=>{let n=[],r=(s,i)=>{if(s===null||typeof s!="object")return s;if(Array.isArray(s)){let l=new Array(s.length);n.push(l);for(let f=0;f<s.length;f++)l[f]=r(s[f]);return l}let a=s[ga];if(typeof a=="string"){if(a==="u")return;if(a==="n")return s.v==="-0"?-0:Number(s.v);if(a==="r")return n[s.i]}let c=i;if(c&&!$4(s,c))for(let l of Object.keys(c))delete c[l];else c||(c={});n.push(c);for(let l in s)c[l]=r(s[l]);return c},o=new Set;for(let s in t){let i=t[s],a=e[s],c=Gh(a)&&!o.has(a)&&Gh(i)&&typeof i[ga]!="string"?a:null;c&&o.add(c);let l=r(i,c);l!==a&&(e[s]=l)}return e};var B=(t,e)=>e.split(" ").map(n=>t+"-"+n),Nx="top right bottom left",Fx=Nx+" block block-start block-end inline inline-start inline-end",we="start end",hr="width style color",Jh=t=>B(t,Fx),N4=(()=>{let t=B("border","width style color image");for(let e of Fx.split(" "))t.push("border-"+e,...B("border-"+e,hr));return t})(),MO=t=>[...B("border-"+t,hr+" start end"),...B("border-"+t+"-start",hr),...B("border-"+t+"-end",hr)],Et={animation:B("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:B("background","image position position-x position-y size repeat origin clip attachment color"),border:N4};for(let t of["width","style","color"])Et["border-"+t]=Fx.split(" ").map(e=>"border-"+e+"-"+t);for(let t of Nx.split(" "))Et["border-"+t]=B("border-"+t,hr);Et["border-block"]=MO("block");Et["border-inline"]=MO("inline");Object.assign(Et,{"border-image":B("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:B("column","width count"),"column-rule":B("column-rule",hr),container:B("container","name type"),"contain-intrinsic-size":B("contain-intrinsic","width height"),flex:B("flex","grow shrink basis"),"flex-flow":B("flex","direction wrap"),font:[...B("font","style variant weight stretch size"),"line-height",...B("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:B("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":B("grid-template","rows columns areas"),"grid-area":B("grid","row column row-start row-end column-start column-end"),"grid-row":B("grid-row",we),"grid-column":B("grid-column",we),inset:[...Nx.split(" "),...B("inset","block block-start block-end inline inline-start inline-end")],"inset-block":B("inset-block",we),"inset-inline":B("inset-inline",we),"list-style":B("list-style","type position image"),margin:Jh("margin"),"margin-block":B("margin-block",we),"margin-inline":B("margin-inline",we),mask:B("mask","image mode repeat position clip origin size composite"),offset:B("offset","position path distance rotate anchor"),outline:B("outline",hr),overflow:B("overflow","x y"),"overscroll-behavior":B("overscroll-behavior","x y"),padding:Jh("padding"),"padding-block":B("padding-block",we),"padding-inline":B("padding-inline",we)});for(let t of["content","items","self"])Et["place-"+t]=["align-"+t,"justify-"+t];Object.assign(Et,{"scroll-margin":Jh("scroll-margin"),"scroll-padding":Jh("scroll-padding"),"text-decoration":B("text-decoration","line style color thickness"),"text-emphasis":B("text-emphasis","style color"),transition:B("transition","property duration timing-function delay behavior")});var F4="block-start block-end inline-start inline-end".split(" ");for(let t of F4)Et["border-"+t]=B("border-"+t,hr);for(let t of["block","inline"])for(let e of hr.split(" "))Et["border-"+t+"-"+e]=B("border-"+t,we.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(Et,{"animation-range":B("animation-range",we),"background-position":B("background-position","x y"),"font-variant":B("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":B("font-synthesis","weight style small-caps"),marker:B("marker","start mid end"),"position-try":B("position-try","order fallbacks"),"scroll-margin-block":B("scroll-margin-block",we),"scroll-margin-inline":B("scroll-margin-inline",we),"scroll-padding-block":B("scroll-padding-block",we),"scroll-padding-inline":B("scroll-padding-inline",we),"scroll-timeline":B("scroll-timeline","name axis"),"view-timeline":B("view-timeline","name axis inset"),"text-box":B("text-box","trim edge"),"text-wrap":B("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});Et.font.push("font-language-override");var pr=t=>"corner-"+t+"-shape";Et["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map(pr);Object.assign(Et,{"corner-top-shape":["top-left","top-right"].map(pr),"corner-right-shape":["top-right","bottom-right"].map(pr),"corner-bottom-shape":["bottom-left","bottom-right"].map(pr),"corner-left-shape":["top-left","bottom-left"].map(pr),"corner-block-start-shape":["start-start","start-end"].map(pr),"corner-block-end-shape":["end-start","end-end"].map(pr),"corner-inline-start-shape":["start-start","end-start"].map(pr),"corner-inline-end-shape":["start-end","end-end"].map(pr)});for(let t in Et){let e=Et[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=Et[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var Xe={};for(let t in Et)for(let e of Et[t])(Xe[e]||(Xe[e]=[])).push(t);var Mx=new Map,$O=t=>{let e=Mx.get(t);if(e!==void 0)return e;Mx.set(t,0),e=0;let n=Xe[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,$O(n[r])+1);return Mx.set(t,e),e};function ya(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(Xe,e)?$O(e):0}var j4=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,NO=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,B4=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),$x=t=>dt(String(t).replace(/\s*!important\s*$/,""));function ba(t,e,n){let r=Et[t];if(!r||r.indexOf(n)===-1)return!1;if(j4.test(t))return!0;if(!NO.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=$x(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>B4.has(s.toLowerCase()))}var U4=new Set(["thin","medium","thick"]),V4=t=>/^[+-]?\.?\d/.test(t)||U4.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),H4=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(Ji,t),z4=t=>os(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||H4(t.toLowerCase()),W4=/-(width|style|color)$/;function Wf(t,e,n){if(ba(t,e,n))return!0;let r=Et[t];if(!r||r.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(NO.test(t)){if(n.indexOf("border-image")===0)return!1;let o=W4.exec(n);if(!o)return!1;let s=$x(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?o[1]!=="color":o[1]==="width"&&s.some(V4)}if(t==="background"&&n==="background-color"){let o=$x(e);return o.length===1&&z4(o[0])}return!1}var Sa=new Map,JO=null,jx=null,K4=null;function Gf(t){t.batchAtomicCss&&(jx=t.batchAtomicCss),t.compoundCssClass&&(K4=t.compoundCssClass)}var q4=new Set,jO=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function Yx(t){try{let e=O();e&&(e.__domDocument=t)}catch{}t&&q4.add(t)}function mr(){try{let t=O();if(t){if(jO(t.__domDocument))return t.__domDocument;if(jO(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var Se={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function sg(){return{...Se}}function Xx(){for(let t in Se)Se[t]=0;ng=!1}var ng=!1,tg=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function G4(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${tg(n,"day")} ago)`}function Y4(){try{let t=a6();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function X4(t,e){if(ng)return!1;ng=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",r="this IS the source",o="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${tg(Se.variable,"variable rule")} and ${tg(Se.atomic,"atomic rule")}, while the design system held ${tg(e,"CSS variable")}.
46
47
  The document will render UNSTYLED and nothing else will report an error.
47
48
  This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
48
49
  package : ${o}
49
50
  built : ${n}
50
51
  source : ${r}
51
- emitted : ${JSON.stringify(we)}
52
- sheets : the style[data-smbls] tiers currently hold ${L5()} rule(s)
52
+ emitted : ${JSON.stringify(Se)}
53
+ sheets : the style[data-smbls] tiers currently hold ${Y4()} rule(s)
53
54
  FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
54
55
  then rebuild the listed packages and clear the app's .parcel-cache
55
- Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function iO(){try{let t=O(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function K1(t){Th||we.variable>0||we.atomic>0||aO(Math.max(t,iO()))}function px(t){let e=t&&(t.CSS_VARS||t.cssVars);return aO(e?Object.keys(e).length:iO())}function aO(t){let e=Ph();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!lO())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 n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return I5(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var M5={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 $5(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var oa=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,G1=new Map,Se=t=>{if(oa(t))return t;let e=G1.get(t);return e===void 0&&(e=$5(t),G1.set(t,e)),e},Y1=new Map,Of=t=>{if(oa(t))return t;let e=Y1.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,r)=>r.toUpperCase()),Y1.set(t,e)),e};function Oh(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function N5(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Oh(e)}var F5={"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 is(t,e){let n=F5[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function rx(t){let e="";for(let n in t){let r=t[n];if(typeof r!="object"||r===null)continue;let o="";for(let s in r)r[s]!=null&&(o+=is(Se(s),r[s]));e+=`${n}{${o}}`}return e}function ox(t){return t.charCodeAt(0)===64&&!ia(t)}function X1(t){let e="";for(let n in t){let r=t[n];if(!ox(n)||typeof r!="object"||r===null)continue;let o="";for(let s in r){let i=r[s];i==null||typeof i=="object"||(o+=is(Se(s),i))}e+=`${n}{${o}}`}return e}var j5="@media (hover: hover)",B5=/(?:^|[^\\]):hover(?![\w-])/;function hx(){try{let t=O();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function ar(t,e,n){return n===!1||!B5.test(e)||n===void 0&&!hx()?t:`${j5}{${t}}`}var gx=new Map;function U5(t,e,n,r){let o=sa.get(t);if(!o){let c=M5[e]||Oh(e),l=N5(n);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,sa.set(t,o)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${o}{${is(Se(e),n)}}`,a={className:o,rule:i,tier:i===null?null:mx(i,!0,"atomic")};return gx.set(t,a),a}function Z1(t,e,n){let r=(n?n+"":"")+t+":"+e,o=gx.get(r)||U5(r,t,e,n);return o.rule!==null&&fn(o.rule,void 0,"atomic",!0,o.tier),o.className}var J1=new WeakMap,Q1=new WeakMap;function fn(t,e,n,r,o){let s=z5(e,o||mx(t,r,n));if(!s)return we.dropped++,"dropped";let i=s.sheet,a=s.rules;if(a||(a=J1.get(i),a||(a=new Set,J1.set(i,a)),s.rules=a),a.has(t))return we.duplicate++,we[n||"global"]++,"duplicate";let c=Q1.get(i);if(c&&c.has(t))return we.invalid++,"invalid";try{i.insertRule(t,i.cssRules.length)}catch{return c||(c=new Set,Q1.set(i,c)),c.add(t),we.invalid++,"invalid"}return a.add(t),we[n||"global"]++,"inserted"}var Le="0:0",sx="1:0",cO="0:99",tO=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function mx(t,e,n){if(typeof t!="string"||!t)return Le;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Le;let i=1/0,a=-1/0;tO.lastIndex=0;let c;for(;c=tO.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:sx}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?cO:Le;if(!/^\.[\w-]+\{/.test(t))return sx;if(!e)return Le;let r=t.indexOf("{"),o=t.indexOf(":",r);if(o===-1)return Le;let s=ea(t.slice(r+1,o).trim());return s?"0:"+s:Le}var ra=null,V5=()=>{if(ra)return ra;let t=0;for(let e in qe)t=Math.max(t,ea(e));ra=[Le];for(let e=1;e<=t;e++)ra.push("0:"+e);return ra.push(cO,sx),ra},eO=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},nO=(t,e)=>{let[n,r]=eO(t),[o,s]=eO(e);return n!==o?n<o:r<s},H5=t=>t.getAttribute("data-tier")||Le,ix=new WeakMap,Ch=!1,Cf=null,ax=0;function z5(t,e){if(Ch&&!t){let n=Cf&&ix.get(Cf),r=n&&n.get(e);if(r&&r.epoch===ax)return r;let o=Rh(Cf,e);return o&&(o.epoch=ax),o}return Rh(t||cr(),e)}function lO(t,e){let n=Rh(t||cr(),e);return n?n.sheet:null}function Rh(t,e){if(!t||!t.head)return null;let n=e||Le,r=ix.get(t);r||(r=new Map,ix.set(t,r));let o=r.get(n);if(o&&o.node.parentNode===t.head&&o.node.sheet===o.sheet)return o;if(n!==Le){let c=V5();for(let l=0;l<c.length&&nO(c[l],n);l++)Rh(t,c[l])}let s=n===Le?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==Le&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(nO(n,H5(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;l?t.head.insertBefore(s,l):f?t.head.insertBefore(s,f.nextSibling):t.head.appendChild(s)}let i=s.sheet,a={sheet:i,node:s,rules:null,epoch:0};return r.set(n,a),n===Le&&(sO=i),a}function W5(t){let e=t||cr();if(!e||!e.head)return[];let n=[],r=e.head.querySelectorAll("style[data-smbls]");for(let o=0;o<r.length;o++)r[o].sheet&&n.push(r[o].sheet);return n}var q5=8;function Ie(t,e,n,r){if(!t||typeof t!="object")return"";if(Ch)return rO(t,n,r);Ch=!0,Cf=cr(),ax++;try{return rO(t,n,r)}finally{Ch=!1,Cf=null}}function rO(t,e,n){let r=!!(n&&n.state),o=null,s=0,i=[],a=[],c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):nx&&!oa(u)?(o||(o=[]),o.push(u,String(d)),s++):i.push(Z1(u,String(d),e)))}if(o&&s>=q5){let f=o.join("\0"),u=nx(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
56
- `);for(let m=0;m<h.length;m++)h[m]&&fn(h[m],void 0,"atomic",!0)}i.push(p)}else if(o)for(let f=0;f<o.length;f+=2)i.push(Z1(o[f],o[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push(X5(a[f][0],a[f][1],e,r));return i.concat(l).join(" ").trim()}var oO=new Map,K5=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function ia(t){return/^@(media|supports|container)\b/.test(t)}function G5(t){return typeof t!="string"||!t||ia(t)?!1:t.split(",").every(e=>K5.test(e.trim()))}var fO=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},cx=32,lx=1024,fx=!1;function Eh(t,e,n){if(fx)return;fx=!0;let r=[e,...n],o=r.length>12?[...r.slice(0,6),`\u2026${r.length-9} more\u2026`,...r.slice(-3)]:r;console.warn(`[@symbo.ls/css] ${t} at ${o.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function Y5(t){try{return JSON.stringify(t)}catch{let n=[],r=0;return JSON.stringify(t,function(o,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!fO(s)||n.length>cx||++r>lx)))return n.push(s),s})}}function X5(t,e,n,r){let o=Y5(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&hx(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=sa.get(a);if(c){let x=oO.get(c);if(x)for(let w=0;w<x.length;w+=2)fn(x[w],void 0,"atomic",void 0,x[w+1]);return c}c=n?`_${n}_c${Oh(a)}`:`_c${Oh(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=G5(t)?`${l}.${c}`:l,u="",d=[],p=x=>typeof x=="string"&&(x.indexOf("{")!==-1||x.indexOf("}")!==-1),g=new Set,h=0,m=(x,w)=>{g.add(w);let b="",k=Object.keys(w);for(let C=0;C<k.length;C++){let D=k[C],R=w[D];if(R!=null)if(typeof R=="object"){let $=[...x,D];g.has(R)?Eh("a style value that loops back to one of its own ancestors",t,$):fO(R)?$.length>cx?Eh(`a style block nested more than ${cx} levels deep`,t,$):++h>lx?Eh(`a style object with more than ${lx} nested blocks`,t,$):m($,R):Eh(`a ${Object.prototype.toString.call(R).slice(8,-1)} (not a style block)`,t,$)}else{if(p(R))continue;b+=is(Se(D),R)}}g.delete(w),b&&(x.length===0?u+=b:d.push({chain:x,body:b}))};m([],e);let y=x=>x.startsWith(":")||x.startsWith("["),_=(x,w=!0)=>{let b=w&&x.length===1?f:l;if(!x.length)return b;let k=x[0].split(",").map(C=>C.trim()).map(C=>C.includes("&")?C.replace(/&/g,b):y(C)?`${b}${C}`:`${b} ${C}`);for(let C=1;C<x.length;C++){let D=x[C].split(",").map($=>$.trim()),R=[];for(let $ of k)for(let N of D)N.includes("&")?R.push(N.replace(/&/g,$)):y(N)?R.push($+N):R.push($+" "+N);k=R}return k.join(", ")},S=[],v=(x,w)=>{let b=x.filter(ia),k=_(x.filter(R=>!ia(R)),b.length===0),C=`${k}{${w}}`;for(let R=b.length-1;R>=0;R--)C=`${b[R]}{${C}}`;C=ar(C,k,i);let D=mx(C,void 0,"atomic");S.push(C,D),fn(C,void 0,"atomic",void 0,D)};u&&v([t],u);for(let x of d)v([t,...x.chain],x.body);return oO.set(c,S),sa.set(a,c),c}function Et(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(lO(),typeof t=="string"){let s=t.indexOf("--")!==-1;fn(t,void 0,s?"variable":"global"),s&&K1(1);return}let e=hx(),n=0,r=Object.keys(t),o=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};r.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 r){let i=t[s];if(s.startsWith("@keyframes")){let a=rx(i);a&&fn(`${s}{${a}}`,void 0,"keyframes");continue}if(ia(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=rx(c);l&&fn(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0,u=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(u&&typeof p=="object"||(oa(d)&&f++,l+=is(Se(d),p)))}u&&(l+=X1(c)),n+=f,fn(ar(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=oa(a);l&&n++,fn(`${s}{${is(Se(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,f=s.charCodeAt(0)===64;for(let u in i){let d=i[u];if(d!=null)if(typeof d=="object"){if(f&&ox(u))continue;c=!0}else oa(u)&&l++,a+=is(Se(u),d)}if(f&&(a+=X1(i)),n+=l,a&&fn(ar(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let u=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(f&&ox(p))continue;ia(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=m=>{let y=m.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)Et({[`${s} ${p}`]:i[p]});for(let p of u)Et({[p]:{[s]:i[p]}})}}}n>0&&K1(n)}function aa(t,e){return fn(`@keyframes ${t}{${rx(e)}}`,void 0,"keyframes"),t}function uO(){sa.clear(),gx.clear(),sO=null,fx=!1}function yx(){return sa.size}M();var kg={};F(kg,{DELEGATED_EVENTS:()=>ca,LIFECYCLE_EVENTS:()=>Ln,MIXINS:()=>Lh,MOUNT_YIELD_BUDGET_MS:()=>Ss,NON_BUBBLING_EVENTS:()=>Ih,REGISTRY:()=>Ht,SVG_TAGS:()=>ga,addDelegatedEvent:()=>Rf,addMethods:()=>_a,adoptHydrationNode:()=>B0,applyExtends:()=>da,attachElement:()=>oo,cacheNode:()=>Xr,create:()=>zt,createHTMLNode:()=>ha,detectTag:()=>Mn,dispose:()=>Fn,elementPath:()=>mg,flushMounts:()=>Ea,globalEventKeyInfo:()=>Bh,holdMountFlush:()=>Xf,inertOutsidePlugin:()=>xg,isSvgTag:()=>lr,isValidTag:()=>pa,mountPending:()=>Sg,mountYieldBudget:()=>Bn,refreshContextProto:()=>wa,registerEvent:()=>fa,registerGlobalEvent:()=>Uh,releaseMount:()=>$e,remove:()=>ba,removeDelegatedEvent:()=>Pf,update:()=>ya,whenConnected:()=>la,whenMountIdle:()=>hr,whenMounted:()=>xs,yieldToMain:()=>io});var ht={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};var Ht=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),Lh={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Ln=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","bridgeMount","bridgeUpdate","bridgeDestroy"]),Ih=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"]),Mh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),ca=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"]);M();var as=new Set;function $h(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function la(t,e){let n=t&&t.node,r=t&&t.__ref;if(!(!n||!r||typeof e!="function")){if($h(t)){e(t);return}(r.__onConnected||(r.__onConnected=[])).push(e),as.add(t)}}function Nh(){if(as.size)for(let t of as){let e=t.__ref,n=t.node;if(!e||!n){as.delete(t);continue}if(!$h(t))continue;as.delete(t);let r=e.__onConnected;if(e.__onConnected=null,!!r)for(let o=0;o<r.length;o++)try{r[o](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function dO(t){as.size&&as.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var wx=new WeakMap,Z5={passive:!0},J5={passive:!0,capture:!0},mO=(t,e)=>Mh.has(t)?e?J5:Z5:e||!1;function yO(t){let e=wx.get(t);return e||(e={handlers:new Map,installed:new Set},wx.set(t,e)),e}function Q5(t,e){let n=yO(e);if(n.installed.has(t))return;n.installed.add(t);let r=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=n.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=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},mO(t,r))}function Rf(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=yO(r);Q5(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function Pf(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=wx.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function Ke(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function Fh(t){return t.charAt(2).toLowerCase()+t.slice(3)}var t4=/^[A-Za-z_$][\w$]*$/;function Df(t,e){return typeof e!="string"||!t4.test(e)?e:function(r){return t.call(e,r)}}function e4(t){return ca.has(t)&&!Ln.has(t)}function jh(t,e){let{context:n}=t,r=n?.designSystem;return o=>{r&&bt(r);try{let s=e.call(t,o,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{r&&mt()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&mt()}}var bO=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function n4(t,e){return bO(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:Mh.has(t),once:e.once===!0}:mO(t,!1)}function r4(t,e,n){return r=>{let o=r.target;if(o&&o.nodeType!==1&&(o=o.parentElement),!o||typeof o.closest!="function")return;let s;try{s=o.closest(e)}catch{return}s&&t.contains(s)&&n(r)}}function fa(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=jh(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=r4(o,a,i));let l=!Ih.has(t)&&e4(t)&&!bO(r),f=l?null:n4(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;Rf(t,o,i,u)}else o.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;Pf(t,o,u)}else o.removeEventListener(t,i,f)})}var bx=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function Bh(t){if(typeof t!="string")return null;for(let e=0;e<bx.length;e++){let n=bx[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:bx[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function o4(t,e,n){let r=e,o=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(r=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),r=Df(t,r),typeof r!="function"?null:(s===void 0&&(s=Mh.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function s4(t,e,n){let r=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!r||typeof r.addEventListener!="function")return null;if(e==="document")return r;let o=r.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=n&&n.query;if(typeof s!="string"||!s.trim()||typeof o.matchMedia!="function")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}var _x=/^@media\s+/i,i4=/^[@[.#&:>*~+]/,pO=new Set;function hO(t,e){!tt()||pO.has(t)||(pO.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function a4(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let r=t.context?.designSystem?.media,o=i=>{let a=r&&typeof r=="object"?r[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!_x.test(n)){if(s=o(n.slice(1)),!s)return hO(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return _x.test(s)?s.replace(_x,"").trim()||null:i4.test(s)?(hO(n,`names "${s}", which is not a media query`),null):s}function c4(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function _O(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function Uh(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)gO(t,e,n[o]);return}gO(t,e,n)}}function gO(t,e,n){let r=e.__ref,o=o4(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=a4(e,o.query),!o.query))return;let s=s4(e,t.target,o);if(!s)return;let i=t.target+":"+(o.query?o.query+":":"")+t.eventName+":"+(o.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(i))return;let a=jh(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if($h(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!c4(s,t.eventName,f,u))return;r.__globalEvents||(r.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};r.__globalEvents.set(i,d),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{_O(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&l4(e,i,d,()=>l)}function l4(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||la(t,()=>queueMicrotask(()=>{let s=t.__ref;if(r()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&r()&&_O(i,"load",n.listener,n.options))}))}var Sx=Symbol("handlerChain.none"),f4=new Set(["inView","leaveView"]),u4=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),ua=new WeakMap,wO=new WeakMap,Ex=!1,xx=t=>t!==null&&typeof t=="object"&&t.always===!0;function d4(t){let e=Fh(t);return f4.has(e)?!0:Ln.has(e)&&!u4.has(e)}var SO=new Set;function p4(t){SO.has(t)||!tt()||(SO.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function kx(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Lf(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},r=function(...s){return m4(n,this,s)};return ua.set(r,n),Ex=!0,r}function vx(t){let e=wO.get(t);return e||(e=Lf([kx(t)],null),wO.set(t,e)),e}function h4(t,e){let n=ua.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Lf(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=Lf(n.always,kx(e))),a}let r=n.next||(n.next=new WeakMap),o=r.get(e);if(o)return o;let s=xx(e)?ua.get(vx(e)):typeof e=="function"?ua.get(e):void 0;return o=s?Lf(n.always.concat(s.always),s.own):Lf(n.always,kx(e)),r.set(e,o),o}function g4(t,e,n){let r=xx(e),o=!r&&Ex&&typeof e=="function"&&ua.has(e);if(!r&&!o&&!xx(n))return Sx;if(!d4(t))return p4(t),Sx;let s=r?vx(e):o?e:null;return s?h4(s,n):vx(n)}function xO(t,e,n,r){if(!Ke(e))return!1;let o=g4(e,n,r);return o===Sx?!1:(t[e]=o,!0)}function Ax(t){if(typeof t=="function"){let e=Ex?ua.get(t):void 0;return e?e.list:[{handler:t,options:null}]}return typeof t=="string"?[{handler:t,options:null}]:t&&typeof t=="object"?[{handler:t.handler,options:t}]:[]}function m4(t,e,n){let r=t.list,o,s=!1,i=null,a=!1,c;for(let l=0;l<r.length;l++){let f=r[l].handler;if(typeof f!="function")continue;let u;try{u=f.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}u===!1?s=!0:u&&typeof u.then=="function"&&(i||(i=[])).push(u),o=u}if(a){if(i)for(let l of i)l.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw c}return s?!1:i?i.length===1?i[0]:y4(i):o}function y4(t){return Promise.allSettled(t).then(e=>{let n=null;for(let r of e)r.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",r.reason):n=r);if(n)throw n.reason})}var b4=1e-6,kO=new WeakMap;function _4(t,e,n){let r=t.defaultView,o=r&&r.IntersectionObserver;if(typeof o!="function")return null;let s=kO.get(t);s||kO.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new o(l=>w4(a,l),c)}catch{return null}return s.set(i,a),a}function w4(t,e){for(let n=0;n<e.length;n++){let r=e[n],o=t.targets.get(r.target);if(!o)continue;let s=!!r.isIntersecting&&r.intersectionRatio>=t.threshold-b4;if(s===o.inView)continue;o.inView=s;let i=s?"in":"leave",a=o.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&EO(t,o,l);try{l.run(r)}catch(f){S4(f)}}}}}function S4(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function EO(t,e,n){if(n.dead)return;n.dead=!0;let r=e.subs.indexOf(n);r!==-1&&e.subs.splice(r,1),!e.subs.length&&(t.targets.delete(e.node),t.observer.unobserve(e.node),!t.targets.size&&(t.observer.disconnect(),t.byKey.delete(t.id)))}function vO(t,e,n,r,o){let s=Df(t,o.handler),i=o.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",f=_4(n,c,l);if(!f)return;let u=f.targets.get(e);u||(u={node:e,inView:!1,subs:[]},f.targets.set(e,u),f.observer.observe(e));let d={kind:r,once:!!(i&&i.once===!0),run:jh(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>EO(f,u,d))}function AO(t){let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,r=n&&n.defaultView;if(!r||typeof r.IntersectionObserver!="function")return;let o=Ax(t.onInView);for(let i=0;i<o.length;i++)vO(t,e,n,"in",o[i]);let s=Ax(t.onLeaveView);for(let i=0;i<s.length;i++)vO(t,e,n,"leave",s[i])}Rt();Rt();function Ge(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();bt(n);try{return e()}finally{mt()}}var xe=ei||(t=>{let e=Te();if(!e)return t();dc(null);try{return t()}finally{dc(e)}});M();M();var RO=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],x4=["none","forwards","backwards","both"],k4=["normal","reverse","alternate","alternate-reverse"],v4=["running","paused"],E4=/^(?: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*\))$/,A4=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(r=>E4.test(r.replace(/\s+/g,"")))},CO=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),C4={transform:A4,translate:CO,rotate:t=>CO(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},T4=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},O4=t=>{if(!A(t))return null;let e=null,n=-1;for(let r in t){let o=T4(r);o==null||!A(t[r])||o>=n&&(n=o,e=t[r])}return e},R4=t=>{let e=O4(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=C4[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},P4=(t,e)=>{if(A(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return A(r)?r:null},D4=["reverse","alternate","alternate-reverse"],PO=(t,e,n)=>{let r=n||e.animationDirection;return r&&D4.includes(String(r))?"both":R4(P4(t,e))?"backwards":"both"},L4=0,TO=new Map,Cx=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(A(t)){let o=JSON.stringify(t),s=TO.get(o);if(s)return s;let i=`smbls-anim-${L4++}`,a=aa(i,t);return TO.set(o,a),a}let r=n&&n[t];return A(r)?aa(t,r):t},DO=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,I4=/^(?:\d+(?:\.\d*)?|\.\d+)$/,LO=/^(?:cubic-bezier|steps|linear)\(/,M4=/^(?:calc|min|max|clamp)\(/,$4=t=>t.includes("(")||t.startsWith("--"),N4=(t,e)=>{if(!Pn.test(t))return!1;let n=e&&e.sequence;if(!A(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},F4=t=>{if(!E(t))return!1;let e=t.trim();return RO.includes(e)||LO.test(e)||e.startsWith("var(")},j4=(t,e)=>!!e&&F4(e[t]||e[Vo(t)]),B4=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],U4=t=>lt(String(t)),V4=(t,e,n)=>{let r={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},o=null,s=[],i=[],a=(u,d)=>r[u]!=null?!1:(r[u]=d,!0),c=(u,d)=>{a(u,d)||s.push(d)};for(let u of U4(t))e&&e[u]?o=u:DO.test(u)||N4(u,n)?a("duration",u)||a("delay",u):RO.includes(u)||j4(u,n)?c("timingFunction",u):LO.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):I4.test(u)?a("iterationCount",Number(u)):k4.includes(u)?c("direction",u):x4.includes(u)?c("fillMode",u):v4.includes(u)?c("playState",u):$4(u)?i.push(u):s.push(u);let l=o||s[0]||i.shift()||null,f=new Set;for(let u of i){let d=B4.find(p=>r[p]==null);if(!d)break;r[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...r,opaqueSlots:f}},H4=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=O()||{};return Jn(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>V4(o,n,r))},OO=(t,e)=>DO.test(t)||e&&!M4.test(t)&&!/^(?:var|env)\(/.test(t)?t:be(t).timing||t,z4=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:Cx(t.name,e),animationDuration:t.duration!=null?OO(t.duration,n("duration")):be(e.animationDuration||"A").timing,animationDelay:t.delay!=null?OO(t.delay,n("delay")):be(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:De(t.timingFunction):De(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||PO(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},W4={animationName:"none",animationPlayState:"running",animationDirection:"normal"},q4=(t,e)=>{let n=t.map(o=>z4(o,e));if(n.length===1)return n[0];let r={};for(let o in n[0]){let s=n.map(i=>i[o]);s.every(i=>i==null)||(r[o]=s.map(i=>i??W4[o]).join(", "))}return r},Tx={animation:(t,e)=>{if(t!=null){if(E(t)&&/[\s,]/.test(t)){let n=H4(t,e);if(n.length)return q4(n,e)}return{animationName:Cx(t,e),animationDuration:be(e.animationDuration||"A").timing,animationDelay:be(e.animationDelay||"0s").timing,animationTimingFunction:De(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||PO(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:Cx(t,e)}),animationDuration:t=>({animationDuration:be(t).timing}),animationDelay:t=>({animationDelay:be(t).timing}),animationTimingFunction:t=>({animationTimingFunction:De(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};M();var Vh=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!E(e))return;let[r,o]=lt(e);return{...j(t+"Start",r,n),...j(t+"End",o||r,n)}},Ox={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>Wt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("height",e),...Pt("width",n||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("minWidth",e),...Pt("maxWidth",n||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("minHeight",e),...Pt("maxHeight",n||e)}},size:t=>{if(!E(t))return;let[e,n]=lt(t);return{...j("inlineSize",e),...j("blockSize",n||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("minInlineSize",e),...Pt("minBlockSize",n||e)}},maxSize:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("maxInlineSize",e),...Pt("maxBlockSize",n||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),borderTopWidth:(t,e)=>j("borderTopWidth",t,e),borderRightWidth:(t,e)=>j("borderRightWidth",t,e),borderBottomWidth:(t,e)=>j("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>j("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>j("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>j("textUnderlineOffset",t,e),padding:(t,e)=>j("padding",t,e),paddingInline:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("paddingInlineStart",e),...Pt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("paddingBlockStart",e),...Pt("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("marginInlineStart",e),...Pt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!E(t))return;let[e,n]=lt(t);return{...Pt("marginBlockStart",e),...Pt("marginBlockEnd",n||e)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),scrollMargin:(t,e)=>j("scrollMargin",t,e),scrollMarginTop:(t,e)=>j("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>j("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>j("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>j("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>Vh("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>Vh("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>j("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>j("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>j("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>j("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),scrollPaddingTop:(t,e)=>j("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>j("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>j("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>j("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>Vh("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>Vh("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>j("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>j("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>j("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>j("scrollPaddingInlineEnd",t,e),gap:t=>({gap:bh(t)}),columnGap:(t,e)=>ze(e,"columnGap",t),rowGap:(t,e)=>ze(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!E(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>or(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>or(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>or(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>or(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>or(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>or(t,e,"borderBottomRightRadius","borderBottomRightRadius")};var Rx={fontSize:t=>mf(t)||t,fontFamily:t=>({fontFamily:hf(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 Px={overflow:t=>({overflow:t}),cursor:(t,e,n,r)=>{if(!t)return;let o=r.assets&&r.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=r.files&&r.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 Dx={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:lt(t).map(n=>Bt(n,"k").k).join(" ")}},left:t=>Bt(t,"left"),top:t=>Bt(t,"top"),right:t=>Bt(t,"right"),bottom:t=>Bt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=lt(t).map(n=>Bt(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=lt(t).map(n=>Bt(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};M();var Hh=0,zh=()=>{Hh++},Wh=()=>{Hh>0&&Hh--},le=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:Hh>0?null:n&&n.resolvedTheme||null},fe=(t,e)=>{if(e==null||e==="")return;if(!A(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(A(s)){let i=fe(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},IO=t=>{let e={};for(let n in t){let r=t[n];e[n]=A(r)?IO(r):E(r)?r+" !important":r}return e},cs=t=>(e,n)=>{let r=n&&E(e)&&!O().useVariable,o=hh(e,r?le(n):null);return A(o)?fe(t,o):{[t]:o}},Lx={theme:(t,e)=>{if(t)return e.themeModifier?We(t,`@${e.themeModifier}`):We(t)},color:(t,e)=>{let n=le(e);if(t)return fe("color",Vt(t,n))},background:(t,e)=>{let n=le(e);if(t)return E(t)&&t.includes("gradient")&&t.includes("(")?{background:vf(t,n)}:fe("background",Vt(t,n))},backgroundColor:(t,e)=>{let n=le(e);if(t)return fe("backgroundColor",Vt(t,n))},backgroundImage:(t,e,n,r)=>{let o=le(e);if(!t)return;let s=r.assets&&r.assets[t];if(s&&s.content)t=s.content.src;else{let i=r.files&&r.files[t];i&&i.content&&(t=i.content.src)}return fe("backgroundImage",yh(t,o))},textStroke:t=>{let e=gh(t);if(e!=null)return{WebkitTextStroke:e}},outline:cs("outline"),outlineWidth:(t,e)=>j("outlineWidth",t,e),outlineColor:(t,e)=>{let n=le(e);if(t)return fe("outlineColor",Vt(t,n))},outlineOffset:(t,e)=>j("outlineOffset",t,e),border:cs("border"),borderColor:(t,e)=>{let n=le(e);if(t)return fe("borderColor",Vt(t,n))},borderTopColor:(t,e)=>{let n=le(e);if(t)return fe("borderTopColor",Vt(t,n))},borderBottomColor:(t,e)=>{let n=le(e);if(t)return fe("borderBottomColor",Vt(t,n))},borderLeftColor:(t,e)=>{let n=le(e);if(t)return fe("borderLeftColor",Vt(t,n))},borderRightColor:(t,e)=>{let n=le(e);if(t)return fe("borderRightColor",Vt(t,n))},borderLeft:cs("borderLeft"),borderTop:cs("borderTop"),borderRight:cs("borderRight"),borderBottom:cs("borderBottom"),shadow:(t,e)=>{let n=le(e);if(t)return fe("boxShadow",mh(t,n))},boxShadow:(t,e)=>{if(!E(t))return;let[n,r]=t.split("!importan"),o=le(e),s=r?" !important":"",i=kf(n.trim(),o);return E(i)?{boxShadow:i+s}:fe("boxShadow",s?IO(i):i)},textShadow:(t,e)=>fe("textShadow",kf(t,e?le(e):null)),columnRule:cs("columnRule")};var If={transition:t=>{let e=wh(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:Ef(t)}),transitionDelay:t=>({transitionDelay:Ef(t)}),transitionTimingFunction:t=>({transitionTimingFunction:De(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};M();var Ix={flow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!E(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};M();var K4=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,MO=t=>{if(!E(t))return t;let e=O().sizes;return e?t.replace(K4,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},In=t=>MO(_h(t)),Mx={gridTemplateColumns:t=>({gridTemplateColumns:In(t)}),gridTemplateRows:t=>({gridTemplateRows:In(t)}),gridAutoColumns:t=>({gridAutoColumns:In(t)}),gridAutoRows:t=>({gridAutoRows:In(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:In(t)}),templateColumns:t=>({gridTemplateColumns:In(t)}),autoColumns:t=>({gridAutoColumns:In(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:In(t)}),templateRows:t=>({gridTemplateRows:In(t)}),autoRows:t=>({gridAutoRows:In(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var kt={...Tx,...Ox,...Rx,...Px,...Dx,...Lx,...If,...Ix,...Mx};var Nt=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","fill","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","stroke","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);M();var G4=/^[a-z][0-9]?$/,$O=/var\(\s*(--[A-Za-z0-9-]+)/g,Y4=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let r in t){let o=t[r];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)n.add(s)}}return{knownLetters:e,knownVars:n}},X4=Object.prototype.propertyIsEnumerable,NO=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let r=t[n];if(!r||typeof r!="object")continue;let o=r.sequence;if(o&&typeof o=="object"&&X4.call(o,e))return!0}return!1},$x=/[(),\s]+/,Nx=(t,e)=>{let n=null,r=t.split($x);for(let o=0;o<r.length;o++){let s=r[o];s&&e(s)&&(n||(n=[])).push(s)}return n},Fx=(t,e)=>Pn.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),Z4=(t,e)=>{if(!e.size)return[];let n=o=>e.has(o),r=Nx(t,o=>Fx(o,n));return r?[...new Set(r)]:[]},J4=(t,e)=>{if(!e.size)return[];let n=[];$O.lastIndex=0;let r;for(;r=$O.exec(t);){let o=r[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!G4.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&n.push({varName:o,corrected:a})}return n},qh=new Set,FO=(t,e,n)=>{if(!tt()||!E(e)||!e)return;let r;try{r=O()}catch{return}let{knownLetters:o,knownVars:s}=Y4(r);if(!o.size&&!s.size)return;let i=Z4(e,o),a=J4(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;qh.has(f)||(qh.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}`;qh.has(u)||(qh.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}"`))}};M();var Q4=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,t6=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=ne(e,n);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(Q4),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=r.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},jO=(t,e,n)=>({[t]:ne(e,n)}),Mf=(t,e,n)=>{let r=`&${t}`,o=ne(e,n);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=r.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[r]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[r]:o}},jx=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return P(n)?n.call(e,e):!!n},e6=(t,e,n)=>{let r=t.slice(1),o=jx(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ne(e,n)},n6=(t,e,n)=>({[t]:e}),r6=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=jx(r,n);s!==void 0&&(o=s)}if(o)return ne(e,n)},o6=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=jx(r,n);s!==void 0&&(o=s)}if(!o)return ne(e,n)},Bx=(t,e)=>ne(t,e),Ux={"@":t6,":":Mf,"[":Mf,"*":Mf,"+":Mf,"~":Mf,"&":jO,">":jO,$:e6,"-":n6,".":r6,"!":o6};var Kh=Rr(),BO=(t,e,n)=>{let r=e?.context?.designSystem;r&&bt(r);try{let o={},s={},i=(a,c)=>{if(n.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&E(c)){let l=UO(c,e);l&&(n.unpack?Tt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=St(c,e);Tt(o,Bx(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=P(l)?l(e,e.state,e.context):l;f&&i(a,f),!Kh&&A(o[a])&&(o[a].label=a)}else if(kt[a]){let l=St(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>Tt(u,d),{}));let f=kt[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>Tt(u,d),{})),f&&i(a,f),!Kh&&A(o[a])&&(o[a].label=a)}else if(Nt.has(a)){let l=St(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),Kh||FO(a,l,e),i(a,{[a]:l}),!Kh&&A(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&mt()}},UO=(t,e)=>{if(!E(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let r;for(let o of t.split(" ")){if(!o)continue;let s=n[o];if(!A(s))continue;let i=pt(s);r=r?ie(r,i):i}if(r)return ne(r,e)},VO=(t,e)=>{let n={};for(let r in t){let o=Ux[r.slice(0,1)];if(o){let s=o(r,t[r],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?ie(n[i],s[i]):n[i]=s[i])}}return n},ne=(t,e,n={unpack:!0})=>{let[r,o]=BO(t,e,n),s=VO(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Lc(r,s);r._selectors=s}return r},s6=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};M();var HO=t=>{if(A(t))return ne(t,t)},i6=(t,e)=>{let n=HO(t);return typeof e=="function"?e(n):Ie(n)};M();var zO=/\s*!important\s*$/,a6=()=>{let t;try{t=O()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,r=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=NO(t,s),n.set(s,i)),i},o=s=>qi(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(Fx(s,r)||o(s))}},c6=(t,e)=>{let n=String(t).split($x);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},l6=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Se(t),e)}catch{return!1}},WO=new Set,f6=(t,e,n)=>{if(!tt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;WO.has(o)||(WO.add(o),console.warn(`[smbls/css-in-props] style.${e} on <${r}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},u6=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let r in t){let o=t[r];if(o!=null){if(typeof o=="object"||typeof o=="function")return!1;for(let s of e)if(c6(o,s))return!1;n=!0}}return n},d6=(t,e,n,r)=>{if(!E(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=kt[t];if(!o||!Nt.has(t))return null;let s=zO.test(e),i=s?e.replace(zO,""):e,a=Nx(i,r.isToken);if(!a||l6(t,i))return null;let c;try{c=o(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let f={};for(let u of c)u&&typeof u=="object"&&Object.assign(f,u);c=f}if(!u6(c,a))return f6(n,t,e),null;let l={};for(let f in c){let u=c[f];u!=null&&(l[f]=s?String(u)+" !important":u)}return l},qO=(t,e,n)=>{let r={},o=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=qO(i,e,n);c!==i&&(o=!0),r[s]=c;continue}let a=d6(s,i,e,n);a?(o=!0,Object.assign(r,a)):r[s]=i}return o?r:t},Vx=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:qO(t,e,a6());if(!xt||!qe)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var Gh=xt,ls=qe,Yh=na||(()=>!1),KO=Af||Yh,GO=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,fs=Se||(t=>GO(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),$f=Of||(t=>GO(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function XO(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 da(t,e,n){let r=XO(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=ZO(r[i],s);a&&a!==e&&JO(t,a,n,new Set([e]))}}function ZO(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(o=>o.trim()),r=e[n[0]]||e[`smbls.${n[0]}`];for(let o=1;o<n.length&&r;o++)r=r[n[o]];return r||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function JO(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=XO(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=ZO(o[c],a);l&&JO(t,l,n,r)}}let s=zx(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=ht.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=Me(t[i],a):t[i]=a)}}var Hx=class{constructor(){this.rank=0,this.ranks=null}mark(e){p6(e)&&(this.ranks||(this.ranks=new Map),this.ranks.set(e,this.rank))}get(e){return this.ranks?this.ranks.get(e):void 0}get size(){return this.ranks?this.ranks.size:0}},Xh=new Set;for(let t of[ls,Gh])for(let e in t)Xh.add(e),Xh.add($f(e));var YO=new Map;function p6(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=YO.get(t);return n===void 0&&(n=!!kt[t]||Xh.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&Xh.has(fs(t)),YO.set(t,n)),n}function zx(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new Hx),n.rank++,n}function QO(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let r of e.ranks.values())if(n===void 0)n=r;else if(r!==n)return;e.ranks=null}function Me(t,e){let n={...t},r=ht.chains;for(let o in e){let s=n[o],i=e[o];r!==null&&r(n,o,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[o]=Me(s,i):n[o]=i)}return n}Rt();Rt();Rt();var us="http://www.w3.org/2000/svg",ga=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"]),h6=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 pa(t){return h6.has(t)||ga.has(t)}function lr(t){return ga.has(t)}function Mn(t){let{tag:e,key:n}=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 "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&pa(e))return e;if(!n||typeof n!="string")return"div";let r=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=n.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),pa(o)&&!r.has(o)?o:"div"}var tR={};function ha(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(lr(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===us)return n.createElementNS(us,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function Xr(t){let e=t.tag=Mn(t),r=lr(e)&&(e==="svg"||t.parent?.node?.namespaceURI===us)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=tR[r];if(s||(s=tR[r]=ha(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?ha(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function Zh(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}Rt();pi();var eR=new WeakMap,nR=null,rR=null;function g6(t,e){let n=t===nR?rR:eR.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},eR.set(t,n)),nR=t,rR=n;let r=n.hooks.get(e);if(r===void 0){r=!1;for(let o of t)if(typeof o[e]=="function"){r=!0;break}n.hooks.set(e,r)}return r}function Wx(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&g6(n,e))}function $n(t,e,...n){return Wx(e,t)?Dr(t,e,...n):!1}function Ye(t,e,n){$n("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var m6=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function sR(t,e,n){return xe(()=>Ge(t,()=>e.call(t,n,t,t.state,t.context)))}function y6(t,e){if(!tt())return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function iR(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function"||!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,y6(t,e);let o;try{o=sR(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,Ye(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>oR(t,r,s),s=>{r.failed=!0,Ye(t,"onBridgeMount",s)});return}oR(t,r,o)}function oR(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){cR(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let r=t.__ref;e.effect=z(()=>{e.disposed||Ge(t,()=>{try{let o=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);o&&typeof o.then=="function"&&o.catch(s=>Ye(t,"onBridgeUpdate",s))}catch(o){Ye(t,"onBridgeUpdate",o)}})},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function aR(t){let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&cR(t,e))}function cR(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,m6(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=sR(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>Ye(t,"onBridgeDestroy",o))}catch(r){Ye(t,"onBridgeDestroy",r)}}function ma(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1})}function Nf(t){let e=t.__mount;return e?e.pending:0}Rt();function ya(t={},e={}){let n=this,r=n.__ref;if(!r)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&Jh(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>Nn(r,!1),c=>{Nn(r,!0),$n("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(Nn(r,!1),a===!1)return n}catch(a){throw Nn(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;md(()=>{if(t.state&&wt(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&ds(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!r.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!r.__exec.style){let a=hs(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=fs(c),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];ps(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(Ht.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&zt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)Gx(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)qx(s[c])&&(a=!0);a&&Kx(n)}if(n.node&&o&&r.__effects&&r.__effects.length)for(let a=0;a<r.__effects.length;a++){let c=r.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&r.__conditionalRunners)for(let a of r.__conditionalRunners)a();return $n("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}Rt();function Fn(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&dO(t),Te())return xe(()=>Fn(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(o){console.error("[smbls] onBeforeRemove error:",o)}if(e.__bridge&&aR(t),e.__effects){for(let o=0;o<e.__effects.length;o++)e.__effects[o].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let o=0;o<e.__eventCleanup.length;o++)e.__eventCleanup[o]();e.__eventCleanup.length=0}if(e.__children){let o=e.__children.slice();e.__children.length=0;for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&Fn(i)}}if(e.__ifParked&&e.__ifParked.size){let o=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&i.parent===t&&Fn(i)}}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 o=t.parent.__ref.__children.indexOf(t.key);o!==-1&&t.parent.__ref.__children.splice(o,1),t.parent.__ref.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),delete t.parent[t.key]}if(!n)try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(o){console.error("[smbls] onRemove error:",o)}e.__mount&&e.__mount.tail&&ht.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function ba(){Fn(this)}M();M();function Zx(t,e,n){let r=t?.context?.analyze;if(!r||!r.emit||e==="warn"&&!r.shouldCapture("warnings")||e==="error"&&!r.shouldCapture("errors"))return;let o=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");r.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:n})}var lR=new Set;function fR(t,e,n){let r=String(e);if(lR.has(r))return;lR.add(r);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \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('${r}') at <${s}>: "${r}" ${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.`;Zx(t,"error",[a]),console.error(a)}var dR=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),b6=new Set,pR=t=>dR(Yx,t)&&!(ai||b6).has(t),uR=new Set;function hR(t,e){uR.has(t)||(uR.add(t),tt()&&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 _6(...t){return Zx(this,"warn",t),ml.apply(this,t)}function w6(...t){return Zx(this,"error",t),Mo.apply(this,t)}var Yx={update:ya,remove:ba,getDB:wl,getQuery:Sl,getRootData:pl,getPath:ll,nextElement:yl,previousElement:bl,verbose:ki,warn:_6,error:w6,variables:_l,spotByPath:cl,set(t,e,n){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}let o;try{if(this.removeContent(),t!=null){let s=this.context?.__create;s&&(o=s(t,this,"content",e,n))}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let s=r.__setQueued;s&&(r.__setQueued=null,this.set(s.content,s.options))}}return o},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,r=this.key,o=this.parse();return this.remove(),e(o,n,r,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},whenConnected(t){return la(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let r=this[n];if(!r)continue;if(typeof t=="function"){if(t(r))return r}else if(typeof t=="string"&&r.key===t)return r;let o=r.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let r of n.__children){let o=this[r];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:dl,getRootState:ul,getRootContext:hl,getContext:gl,parse(t){let e={},n=t?new Set(t):null,r=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!n?.has(o)){if(r&&r[o]!==void 0){e[o]=r[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let r of n.__children)this[r]?.parseDeep&&(e[r]=this[r].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];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 n=t[e];if(n==null)continue;let r=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(r,o,"important")}},call(t,...e){let n=this.context,r=pR(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&hR(t,"el.call");let o=r?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof o=="function"){let s=To;if(!s||!s(o))return o.call(this,...e);tt()&&fR(this,t,Oe(o));return}tt()&&fR(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 n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Xx=new WeakMap;function S6(t){if(!t)return Yx;let e=Xx.get(t);if(e)return e;e=Object.create(Yx);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return Xx.set(t,e),e}function _a(t){let e=S6(t.context);Object.setPrototypeOf(t,e)}function wa(t){if(!t)return!1;let e=Xx.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(pR(r)&&!dR(e,r)){hR(r,"refreshContextProto");continue}e[r]=n[r]}return!0}M();M();var n0={};F(n0,{STATE_METHODS:()=>gR,applyInitialState:()=>Qh,applyStateMethods:()=>ke,callStateMethod:()=>jf,createState:()=>Qx,isTracking:()=>e0,useHostState:()=>t0});Rt();Rt();var gR=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"]),Ff=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},un=(t,e,n,{onlyIfAbsent:r}={})=>{Ff(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&Ff(t,e,n)},jf=(t,e,...n)=>{if(!t)return;let r=t["$"+e];if(typeof r=="function")return r.apply(t,n);let o=t[e];if(typeof o=="function")return o.apply(t,n)},ke=(t,e)=>{if(wt(e)){let o=e.__raw||e;un(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),un(o,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),un(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}),un(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}),un(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}),un(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),un(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),un(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),un(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&wt(a.parent);)a=a.parent;return jf(a,"update",s,i)}),un(o,"parentUpdate",function(s,i={}){if(e.parent)return jf(e.parent,"update",s,i)}),un(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 n=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},r={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;n();for(let s in o)e[s]=o[s];return e},replace(o){return e.$set(o)},clean(){return n(),e}};Ff(e,"$settled",function(){return yd().then(()=>e)});for(let o in r)if(Ff(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){wd(o,"");continue}Ff(e,o,r[o])}};var Qx=function(t,e,n){return t.state=Qh(t,e,n),t.state},Qh=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return ke(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",x6(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=Hn({value:o});return s.__element=t,e?.state&&(s.parent=e.state),ke(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!wt(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=Hn({...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)),ke(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return wt(o)?(o.__element=t,o):e?.state||{}};function Jx(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function x6(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let o=t.slice(3),s=n.state?.parent;return o&&s?Jx(s,o):s??n.state??{}}if(t.startsWith("~/")){let o=n.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?Jx(o,s):o??{}}let r=Jx(n.state,t);if(r&&typeof r=="object"&&!wt(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}Rt();var t0=(t,e)=>{if(!t)return yR;let n=v6(t,e);return!n||!n.state?yR:A6(n.state)},e0=()=>Te()!=null,k6=128;function v6(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,r=t,o=null;for(let s=0;s<k6&&r;s++){if(n(r)&&r.state)return r;if(r.state&&!o&&(o=r),!r.parent||r.parent===r)break;r=r.parent}return o}var E6={get(t,e){return t[e]}},mR=new WeakMap,A6=t=>{let e=mR.get(t);return e||(e=new Proxy(t,E6),mR.set(t,e)),e},yR=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var C6=["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"],T6=["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","mask-type","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],O6=["requiredExtensions","systemLanguage"],bR={circle:["cx","cy","r","pathLength"],ellipse:["cx","cy","rx","ry","pathLength"],line:["x1","y1","x2","y2","pathLength"],path:["d","pathLength"],polygon:["points","pathLength"],polyline:["points","pathLength"],rect:["x","y","width","height","rx","ry","pathLength"],g:[],defs:[],switch:[],symbol:["viewBox","preserveAspectRatio","refX","refY","x","y","width","height"],use:["href","xlink:href","x","y","width","height"],image:["href","xlink:href","x","y","width","height","preserveAspectRatio","crossorigin"],foreignObject:["x","y","width","height"],text:["x","y","dx","dy","rotate","textLength","lengthAdjust"],tspan:["x","y","dx","dy","rotate","textLength","lengthAdjust"],textPath:["href","xlink:href","path","startOffset","method","spacing","side","textLength","lengthAdjust"],linearGradient:["x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],radialGradient:["cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],stop:["offset"],pattern:["x","y","width","height","patternUnits","patternContentUnits","patternTransform","viewBox","preserveAspectRatio","href","xlink:href"],clipPath:["clipPathUnits"],mask:["x","y","width","height","maskUnits","maskContentUnits"],marker:["viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],filter:["x","y","width","height","filterUnits","primitiveUnits"]},R6=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),P6=()=>{let t={};for(let e in bR)t[e]=[...bR[e],...R6.has(e)?[]:O6,...T6];return t},fr={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","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","ping","referrerpolicy","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","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","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","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","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"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","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:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],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","loading","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","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"],...P6()},xR=["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"],kR=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,_R=new Map,ur=t=>{let e=_R.get(t);return e===void 0&&(e=kR(t)||AR(t),_R.set(t,e)),e},vR=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),r0=new Set;for(let t in fr)t==="default"||t==="aria"||t==="svg"||fr[t].forEach(e=>{e.startsWith("on")||r0.add(e)});var ER=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());if(r0.has(n))return n;let r=t.toLowerCase();return r0.has(r)?r:null},AR=t=>vR.has(t)?t.toLowerCase():ER(t),D6=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),L6=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),ms=t=>typeof t=="string"&&(D6.has(t)||t.startsWith("aria-")),jn=(t,e)=>{if(e!==!0&&e!==!1)return e;if(ms(t)){let n=L6.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},wR=new Map,Xe=(t,e)=>{let n=fr.default,r=Object.prototype.hasOwnProperty.call(fr,t)?fr[t]:null,o=r?r.length:-1,s=wR.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==r||s.ownLen!==o)&&(s={def:n,defLen:n.length,own:r,ownLen:o,answers:new Map},wR.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=I6(t,e),s.answers.set(e,i)),i},I6=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||kR(e)||vR.has(e)||fr.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(fr,t)){let n=fr[t];if(n.includes(e))return!0;let r=ER(e);return r!==null&&n.includes(r)}return!1},s0=t=>{if(!E(t))return!1;let e=t.toLowerCase();return xR.includes(e)},M6=(t,e,n)=>{let r={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n&&o in n)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])jt(e[o][a])&&(r["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(jt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=Xe(t,o),i=s0(o);if(jt(e[o])&&(s||i)){let a=ur(o)||o;r[a]=e[o]}}return r},$6=(t,e)=>{let n={};if(t.attr)for(let r in t.attr)n[r]=t.attr[r](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let o=t.aria[r];typeof o=="function"&&(n["aria-"+r]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];if(typeof o=="function"){let s=r.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=o(e,e.state,e.context)}}return n},Zr=(t,e)=>{let n=t.call("exec",e,t);if(n)return E(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},o0=(t,e)=>{let n=(t.preSrc||"")+(Zr(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:r}=t;if(!r.files&&!r.assets)return n;if(n.startsWith("/assets/")){let o=n.slice(8),s=r.assets&&(r.assets[n]||r.assets[o]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let o=n.slice(7),s=r.files&&(r.files[n]||r.files[o]);return s&&s.content?s.content.src:n}if(r.assets){let o=r.assets[n];if(o&&o.content)return o.content.src}if(r.files){let o=r.files[n];if(o&&o.content)return o.content.src}return n},gs={src:t=>o0(t,t.src),href:t=>Zr(t,t.href),action:t=>Zr(t,t.action),poster:t=>o0(t,t.poster),data:t=>Zr(t,t.data)},i0=t=>{let e=t.tag||"div",n={};for(let r in gs)if(t[r]!==void 0&&Xe(e,r)){let o=gs[r](t);o!==void 0&&(n[r]=o)}return n},SR=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return P(n)?n.call(e,e):!!n},N6=(t,e,n)=>{if(t==="$"){let o=SR(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=SR(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},F6=new Set(["$",".","!"]),a0=(t,e,n,r=N6)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return P(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!F6.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=Xe(e,f),d=s0(f);if(!u&&!d)continue;let p=ur(f)||f;s(p,c[f],a,l)}}return o};var tg="3.14.805";var CR="__SMBLS_ELEMENT_ID_ENGINE__",TR=(t,e,n)=>{let r=e||tg,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[CR];return s&&s.engine&&s.version===r?s.engine:(s||(o[CR]={version:r,engine:t}),t)};var j6=new Set(["rows","cols","wrap","fill","stroke","offset"]),eg=(t,e)=>j6.has(e)&&Xe(t,e),Jr=(t,e)=>!!(kt[e]||Nt&&Nt.has(e))&&!eg(t,e);var iP=TR({uniqId:1,scopedStyleId:0},tg),xa=[],Qr=new Set,E0=!1,aP=0,va=null,Hf=null;function Ca(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function cP(){return typeof document<"u"&&document.visibilityState==="hidden"}var B6=250,U6=1e3;function V6(){return Hf&&(Hf!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||cP())?!0:Ca()-aP>=U6}function H6(){if(E0=!0,aP=Ca(),Hf=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Ea,0);va=t?()=>t(e):null;return}if(cP()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Ea,B6);va=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;Hf=requestAnimationFrame;let e=requestAnimationFrame(Ea);va=t?()=>t(e):null}}function Yf(){if(E0){if(!V6())return;let t=va;if(va=null,t)try{t()}catch{}}H6()}var lP=300,fP=15e4,b0=0;function Xf(){b0++;let t=!1;return()=>{t||(t=!0,!(--b0>0)&&(xa.length||Qr.size)&&Yf())}}function Ea(){if(E0=!1,va=null,Hf=null,b0>0||(Qr.size&&VU(),!xa.length))return;let t=xa.splice(0,xa.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let r=n.__ref||(n.__ref={});r.__mountAttempts=(r.__mountAttempts||0)+1,r.__mountFirstAttemptAt==null&&(r.__mountFirstAttemptAt=Ca());let o=Ca()-r.__mountFirstAttemptAt;r.__mountAttempts<=lP&&o<fP?(xa.push(n),Yf()):console.warn("[DOMQL] onMounted dropped after",r.__mountAttempts,"attempts /",o,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&iR(n),typeof n.onMounted=="function"&&Gt("Mounted",n,n.__ref?.__mountOptions||{})}}}function _0(t,e){let n=t.__ref?.__autoGrow;n&&n.active&&Gf(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,xa.push(t),Yf())}function ng(t,e){typeof t.onContentUpdate=="function"&&($n("contentUpdate",t,e),Ge(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(Ye(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function z6(t){return t.toLowerCase()}function uP(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function rg(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function dP(t,e,n,r){return cg(r,rg(t)||(e&&typeof e=="object"?rg(e.key):void 0)||String(n))}function cg(t,e){if(!t||typeof e!="string")return e;let n=e;for(;W6(t,n);)n="$"+n;return n!==e&&q6(t,e,n),n}function W6(t,e){if(Ht.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var OR=new Set;function q6(t,e,n){if(!tt())return;let r=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",o=r+"::"+e;OR.has(o)||(OR.add(o),console.warn(`[smbls] a child keyed "${e}" at ${r} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function zt(t,e,n,r={},o){if(Te())return xe(()=>zt(t,e,n,r,o));if(t==null||t===!1)return null;let s=dU(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=rg(n);let i=rg(t.key),a=Object.create(null);a.key=n||(i&&e?cg(e,i):i)||`_${iP.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||r.context||{},a.context.__create||(a.context.__create=zt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=o;o&&(o.holdTail||o.deferAttach)&&(o.holdTail&&ht.mount!==null&&ht.mount.hold(a),o.deferAttach&&(ma(c).attachLater=!0),l=void 0);let f=t;if(t=pP(a,t,n,i,e,r),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let m=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${m} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=X6(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:r}),typeof a.if=="function"&&SP(a,c,a.if),a}a.tag||(a.tag=Mn(a)),Gt("Init",a,r);let u=ht.hydration,d=a.node=u!==null&&u.adopt(a)||Xr(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(Gt("AttachNode",a,r),d.setAttribute&&a.key&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),$P(a,r),_P(a),wP(a);try{FP(a,r)}catch(g){lg(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||ig(a,e,l),p.tail=()=>ht.mount.finish(a,r),a):(Aa(a,!0),(p===null||!p.attachLater)&&ig(a,e,l),A0(a,r),a)}function oo(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(ig(t,t.parent),!0)}function lg(t,e){if(typeof console<"u"&&console.error){let n=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] createChildren failed at ${n}:`,e?.message||e,e?.stack?`
56
+ Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function ZO(){try{let t=O(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function Bx(t){ng||Se.variable>0||Se.atomic>0||QO(Math.max(t,ZO()))}function Jx(t){let e=t&&(t.CSS_VARS||t.cssVars);return QO(e?Object.keys(e).length:ZO())}function QO(t){let e=sg();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!e0())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 n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return X4(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var J4={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 Z4(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var wa=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,BO=new Map,xe=t=>{if(wa(t))return t;let e=BO.get(t);return e===void 0&&(e=Z4(t),BO.set(t,e)),e},UO=new Map,Yf=t=>{if(wa(t))return t;let e=UO.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,r)=>r.toUpperCase()),UO.set(t,e)),e};function rg(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function Q4(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():rg(e)}var t6={"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 bs(t,e){let n=t6[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function Ux(t){let e="";for(let n in t){let r=t[n];if(typeof r!="object"||r===null)continue;let o="";for(let s in r)r[s]!=null&&(o+=bs(xe(s),r[s]));e+=`${n}{${o}}`}return e}function Vx(t){return t.charCodeAt(0)===64&&!xa(t)}function VO(t){let e="";for(let n in t){let r=t[n];if(!Vx(n)||typeof r!="object"||r===null)continue;let o="";for(let s in r){let i=r[s];i==null||typeof i=="object"||(o+=bs(xe(s),i))}e+=`${n}{${o}}`}return e}var e6="@media (hover: hover)",n6=/(?:^|[^\\]):hover(?![\w-])/;function Zx(){try{let t=O();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function gr(t,e,n){return n===!1||!n6.test(e)||n===void 0&&!Zx()?t:`${e6}{${t}}`}var Qx=new Map;function r6(t,e,n,r){let o=Sa.get(t);if(!o){let c=J4[e]||rg(e),l=Q4(n);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,Sa.set(t,o)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${o}{${bs(xe(e),n)}}`,a={className:o,rule:i,tier:i===null?null:t0(i,!0,"atomic")};return Qx.set(t,a),a}function HO(t,e,n){let r=(n?n+"":"")+t+":"+e,o=Qx.get(r)||r6(r,t,e,n);return o.rule!==null&&Je(o.rule,void 0,"atomic",!0,o.tier),o.className}var zO=new WeakMap,WO=new WeakMap;function Je(t,e,n,r,o){let s=o||t0(t,r,n);qf&&!e&&qf.push([t,n||"global",s]);let i=i6(e,s);if(!i)return Se.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=zO.get(a),c||(c=new Set,zO.set(a,c)),i.rules=c),c.has(t))return Se.duplicate++,Se[n||"global"]++,"duplicate";let l=WO.get(a);if(l&&l.has(t))return Se.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,WO.set(a,l)),l.add(t),Se.invalid++,"invalid"}return c.add(t),Se[n||"global"]++,"inserted"}var Me="0:0",Hx="1:0",tR="0:99",KO=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function t0(t,e,n){if(typeof t!="string"||!t)return Me;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Me;let i=1/0,a=-1/0;KO.lastIndex=0;let c;for(;c=KO.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:Hx}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?tR:Me;if(!/^\.[\w-]+\{/.test(t))return Hx;if(!e)return Me;let r=t.indexOf("{"),o=t.indexOf(":",r);if(o===-1)return Me;let s=ya(t.slice(r+1,o).trim());return s?"0:"+s:Me}var _a=null,o6=()=>{if(_a)return _a;let t=0;for(let e in Xe)t=Math.max(t,ya(e));_a=[Me];for(let e=1;e<=t;e++)_a.push("0:"+e);return _a.push(tR,Hx),_a},qO=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},GO=(t,e)=>{let[n,r]=qO(t),[o,s]=qO(e);return n!==o?n<o:r<s},s6=t=>t.getAttribute("data-tier")||Me,zx=new WeakMap,eg=!1,Kf=null,Wx=0;function i6(t,e){if(eg&&!t){let n=Kf&&zx.get(Kf),r=n&&n.get(e);if(r&&r.epoch===Wx)return r;let o=og(Kf,e);return o&&(o.epoch=Wx),o}return og(t||mr(),e)}function e0(t,e){let n=og(t||mr(),e);return n?n.sheet:null}function og(t,e){if(!t||!t.head)return null;let n=e||Me,r=zx.get(t);r||(r=new Map,zx.set(t,r));let o=r.get(n);if(o&&o.node.parentNode===t.head&&o.node.sheet===o.sheet)return o;if(n!==Me){let c=o6();for(let l=0;l<c.length&&GO(c[l],n);l++)og(t,c[l])}let s=n===Me?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==Me&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(GO(n,s6(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;l?t.head.insertBefore(s,l):f?t.head.insertBefore(s,f.nextSibling):t.head.appendChild(s)}let i=s.sheet;if(!i)return r.delete(n),null;let a={sheet:i,node:s,rules:null,epoch:0};return r.set(n,a),n===Me&&(JO=i),a}function a6(t){let e=t||mr();if(!e||!e.head)return[];let n=[],r=e.head.querySelectorAll("style[data-smbls]");for(let o=0;o<r.length;o++)r[o].sheet&&n.push(r[o].sheet);return n}var c6=8;function $e(t,e,n,r){if(!t||typeof t!="object")return"";if(eg)return YO(t,n,r);eg=!0,Kf=mr(),Wx++;try{return YO(t,n,r)}finally{eg=!1,Kf=null}}function YO(t,e,n){let r=!!(n&&n.state),o=null,s=0,i=[],a=[],c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):jx&&!wa(u)?(o||(o=[]),o.push(u,String(d)),s++):i.push(HO(u,String(d),e)))}if(o&&s>=c6){let f=o.join("\0"),u=jx(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
57
+ `);for(let m=0;m<h.length;m++)h[m]&&Je(h[m],void 0,"atomic",!0)}i.push(p)}else if(o)for(let f=0;f<o.length;f+=2)i.push(HO(o[f],o[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push(d6(a[f][0],a[f][1],e,r));return i.concat(l).join(" ").trim()}var XO=new Map,l6=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function xa(t){return/^@(media|supports|container)\b/.test(t)}function f6(t){return typeof t!="string"||!t||xa(t)?!1:t.split(",").every(e=>l6.test(e.trim()))}var eR=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},Kx=32,qx=1024,Gx=!1;function Qh(t,e,n){if(Gx)return;Gx=!0;let r=[e,...n],o=r.length>12?[...r.slice(0,6),`\u2026${r.length-9} more\u2026`,...r.slice(-3)]:r;console.warn(`[@symbo.ls/css] ${t} at ${o.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function u6(t){try{return JSON.stringify(t)}catch{let n=[],r=0;return JSON.stringify(t,function(o,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!eR(s)||n.length>Kx||++r>qx)))return n.push(s),s})}}function d6(t,e,n,r){let o=u6(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&Zx(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=Sa.get(a);if(c){let w=XO.get(c);if(w)for(let _=0;_<w.length;_+=2)Je(w[_],void 0,"atomic",void 0,w[_+1]);return c}c=n?`_${n}_c${rg(a)}`:`_c${rg(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=f6(t)?`${l}.${c}`:l,u="",d=[],p=w=>typeof w=="string"&&(w.indexOf("{")!==-1||w.indexOf("}")!==-1),g=new Set,h=0,m=(w,_)=>{g.add(_);let b="",x=Object.keys(_);for(let C=0;C<x.length;C++){let P=x[C],R=_[P];if(R!=null)if(typeof R=="object"){let j=[...w,P];g.has(R)?Qh("a style value that loops back to one of its own ancestors",t,j):eR(R)?j.length>Kx?Qh(`a style block nested more than ${Kx} levels deep`,t,j):++h>qx?Qh(`a style object with more than ${qx} nested blocks`,t,j):m(j,R):Qh(`a ${Object.prototype.toString.call(R).slice(8,-1)} (not a style block)`,t,j)}else{if(p(R))continue;b+=bs(xe(P),R)}}g.delete(_),b&&(w.length===0?u+=b:d.push({chain:w,body:b}))};m([],e);let y=w=>w.startsWith(":")||w.startsWith("["),k=(w,_=!0)=>{let b=_&&w.length===1?f:l;if(!w.length)return b;let x=w[0].split(",").map(C=>C.trim()).map(C=>C.includes("&")?C.replace(/&/g,b):y(C)?`${b}${C}`:`${b} ${C}`);for(let C=1;C<w.length;C++){let P=w[C].split(",").map(j=>j.trim()),R=[];for(let j of x)for(let F of P)F.includes("&")?R.push(F.replace(/&/g,j)):y(F)?R.push(j+F):R.push(j+" "+F);x=R}return x.join(", ")},v=[],S=(w,_)=>{let b=w.filter(xa),x=k(w.filter(R=>!xa(R)),b.length===0),C=`${x}{${_}}`;for(let R=b.length-1;R>=0;R--)C=`${b[R]}{${C}}`;C=gr(C,x,i);let P=t0(C,void 0,"atomic");v.push(C,P),Je(C,void 0,"atomic",void 0,P)};u&&S([t],u);for(let w of d)S([t,...w.chain],w.body);return XO.set(c,v),Sa.set(a,c),c}var qf=null;function Xf(t){let e=qf,n=[];qf=n;try{t()}finally{qf=e}return n}function Jf(t){if(!Array.isArray(t))return;e0();let e=0;for(let n of t){if(!Array.isArray(n)||typeof n[0]!="string")continue;let r=n[1]||"global";r==="variable"&&e++,Je(n[0],void 0,r,void 0,n[2]||void 0)}e>0&&Bx(e)}function Tt(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(e0(),typeof t=="string"){let s=t.indexOf("--")!==-1;Je(t,void 0,s?"variable":"global"),s&&Bx(1);return}let e=Zx(),n=0,r=Object.keys(t),o=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};r.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 r){let i=t[s];if(s.startsWith("@keyframes")){let a=Ux(i);a&&Je(`${s}{${a}}`,void 0,"keyframes");continue}if(xa(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=Ux(c);l&&Je(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0,u=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(u&&typeof p=="object"||(wa(d)&&f++,l+=bs(xe(d),p)))}u&&(l+=VO(c)),n+=f,Je(gr(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=wa(a);l&&n++,Je(`${s}{${bs(xe(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,f=s.charCodeAt(0)===64;for(let u in i){let d=i[u];if(d!=null)if(typeof d=="object"){if(f&&Vx(u))continue;c=!0}else wa(u)&&l++,a+=bs(xe(u),d)}if(f&&(a+=VO(i)),n+=l,a&&Je(gr(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let u=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(f&&Vx(p))continue;xa(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=m=>{let y=m.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)Tt({[`${s} ${p}`]:i[p]});for(let p of u)Tt({[p]:{[s]:i[p]}})}}}n>0&&Bx(n)}function ka(t,e){return Je(`@keyframes ${t}{${Ux(e)}}`,void 0,"keyframes"),t}function nR(){Sa.clear(),Qx.clear(),JO=null,Gx=!1}function n0(){return Sa.size}M();var Yg={};$(Yg,{DELEGATED_EVENTS:()=>va,LIFECYCLE_EVENTS:()=>Nn,MIXINS:()=>ag,MOUNT_YIELD_BUDGET_MS:()=>Ms,NON_BUBBLING_EVENTS:()=>cg,REGISTRY:()=>Ht,SVG_TAGS:()=>Pa,addDelegatedEvent:()=>Zf,addMethods:()=>Ma,adoptHydrationNode:()=>Ek,applyExtends:()=>Ta,attachElement:()=>bo,cacheNode:()=>fo,create:()=>zt,createHTMLNode:()=>Ra,detectTag:()=>jn,dispose:()=>Vn,elementPath:()=>Ug,flushMounts:()=>Ua,globalEventKeyInfo:()=>pg,holdMountFlush:()=>Ps,inertOutsidePlugin:()=>Gg,isSvgTag:()=>yr,isValidTag:()=>Oa,mountIdle:()=>wo,mountPending:()=>Kg,mountYieldBudget:()=>zn,refreshContextProto:()=>$a,registerEvent:()=>Aa,registerGlobalEvent:()=>hg,releaseMount:()=>Fe,remove:()=>Ia,removeDelegatedEvent:()=>Qf,update:()=>La,whenConnected:()=>lo,whenMountIdle:()=>Ee,whenMounted:()=>kr,yieldToMain:()=>Wn});var ct={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};var Ht=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),ag={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Nn=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","bridgeMount","bridgeUpdate","bridgeDestroy"]),cg=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"]),lg=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),va=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"]);M();var _s=new Set;function Ea(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function lo(t,e){let n=t&&t.node,r=t&&t.__ref;if(!(!n||!r||typeof e!="function")){if(Ea(t)){e(t);return}(r.__onConnected||(r.__onConnected=[])).push(e),_s.add(t)}}function fg(){if(_s.size)for(let t of _s){let e=t.__ref,n=t.node;if(!e||!n){_s.delete(t);continue}if(!Ea(t))continue;_s.delete(t);let r=e.__onConnected;if(e.__onConnected=null,!!r)for(let o=0;o<r.length;o++)try{r[o](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function rR(t){_s.size&&_s.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var s0=new WeakMap,p6={passive:!0},h6={passive:!0,capture:!0},aR=(t,e)=>lg.has(t)?e?h6:p6:e||!1;function cR(t){let e=s0.get(t);return e||(e={handlers:new Map,installed:new Set},s0.set(t,e)),e}function g6(t,e){let n=cR(e);if(n.installed.has(t))return;n.installed.add(t);let r=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=n.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=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},aR(t,r))}function Zf(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=cR(r);g6(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function Qf(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=s0.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function Ze(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function ug(t){return t.charAt(2).toLowerCase()+t.slice(3)}var m6=/^[A-Za-z_$][\w$]*$/;function tu(t,e){return typeof e!="string"||!m6.test(e)?e:function(r){return t.call(e,r)}}function y6(t){return va.has(t)&&!Nn.has(t)}function dg(t,e){let{context:n}=t,r=n?.designSystem;return o=>{r&&mt(r);try{let s=e.call(t,o,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{r&&pt()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&pt()}}var lR=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function b6(t,e){return lR(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:lg.has(t),once:e.once===!0}:aR(t,!1)}function _6(t,e,n){return r=>{let o=r.target;if(o&&o.nodeType!==1&&(o=o.parentElement),!o||typeof o.closest!="function")return;let s;try{s=o.closest(e)}catch{return}s&&t.contains(s)&&n(r)}}function Aa(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=dg(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=_6(o,a,i));let l=!cg.has(t)&&y6(t)&&!lR(r),f=l?null:b6(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;Zf(t,o,i,u)}else o.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;Qf(t,o,u)}else o.removeEventListener(t,i,f)})}var r0=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function pg(t){if(typeof t!="string")return null;for(let e=0;e<r0.length;e++){let n=r0[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:r0[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function w6(t,e,n){let r=e,o=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(r=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),r=tu(t,r),typeof r!="function"?null:(s===void 0&&(s=lg.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function S6(t,e,n){let r=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!r||typeof r.addEventListener!="function")return null;if(e==="document")return r;let o=r.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=n&&n.query;if(typeof s!="string"||!s.trim()||typeof o.matchMedia!="function")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}var o0=/^@media\s+/i,x6=/^[@[.#&:>*~+]/,oR=new Set;function sR(t,e){!tt()||oR.has(t)||(oR.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function k6(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let r=t.context?.designSystem?.media,o=i=>{let a=r&&typeof r=="object"?r[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!o0.test(n)){if(s=o(n.slice(1)),!s)return sR(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return o0.test(s)?s.replace(o0,"").trim()||null:x6.test(s)?(sR(n,`names "${s}", which is not a media query`),null):s}function v6(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function fR(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function hg(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)iR(t,e,n[o]);return}iR(t,e,n)}}function iR(t,e,n){let r=e.__ref,o=w6(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=k6(e,o.query),!o.query))return;let s=S6(e,t.target,o);if(!s)return;let i=t.target+":"+(o.query?o.query+":":"")+t.eventName+":"+(o.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(i))return;let a=dg(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(Ea(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!v6(s,t.eventName,f,u))return;r.__globalEvents||(r.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};r.__globalEvents.set(i,d),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{fR(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&E6(e,i,d,()=>l)}function E6(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||lo(t,()=>queueMicrotask(()=>{let s=t.__ref;if(r()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&r()&&fR(i,"load",n.listener,n.options))}))}var i0=Symbol("handlerChain.none"),A6=new Set(["inView","leaveView"]),C6=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),Ca=new WeakMap,uR=new WeakMap,f0=!1,a0=t=>t!==null&&typeof t=="object"&&t.always===!0;function T6(t){let e=ug(t);return A6.has(e)?!0:Nn.has(e)&&!C6.has(e)}var dR=new Set;function O6(t){dR.has(t)||!tt()||(dR.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function c0(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function eu(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},r=function(...s){return D6(n,this,s)};return Ca.set(r,n),f0=!0,r}function l0(t){let e=uR.get(t);return e||(e=eu([c0(t)],null),uR.set(t,e)),e}function R6(t,e){let n=Ca.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=eu(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=eu(n.always,c0(e))),a}let r=n.next||(n.next=new WeakMap),o=r.get(e);if(o)return o;let s=a0(e)?Ca.get(l0(e)):typeof e=="function"?Ca.get(e):void 0;return o=s?eu(n.always.concat(s.always),s.own):eu(n.always,c0(e)),r.set(e,o),o}function P6(t,e,n){let r=a0(e),o=!r&&f0&&typeof e=="function"&&Ca.has(e);if(!r&&!o&&!a0(n))return i0;if(!T6(t))return O6(t),i0;let s=r?l0(e):o?e:null;return s?R6(s,n):l0(n)}function pR(t,e,n,r){if(!Ze(e))return!1;let o=P6(e,n,r);return o===i0?!1:(t[e]=o,!0)}function u0(t){if(typeof t=="function"){let e=f0?Ca.get(t):void 0;return e?e.list:[{handler:t,options:null}]}return typeof t=="string"?[{handler:t,options:null}]:t&&typeof t=="object"?[{handler:t.handler,options:t}]:[]}function D6(t,e,n){let r=t.list,o,s=!1,i=null,a=!1,c;for(let l=0;l<r.length;l++){let f=r[l].handler;if(typeof f!="function")continue;let u;try{u=f.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}u===!1?s=!0:u&&typeof u.then=="function"&&(i||(i=[])).push(u),o=u}if(a){if(i)for(let l of i)l.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw c}return s?!1:i?i.length===1?i[0]:L6(i):o}function L6(t){return Promise.allSettled(t).then(e=>{let n=null;for(let r of e)r.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",r.reason):n=r);if(n)throw n.reason})}var I6=1e-6,hR=new WeakMap;function M6(t,e,n){let r=t.defaultView,o=r&&r.IntersectionObserver;if(typeof o!="function")return null;let s=hR.get(t);s||hR.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new o(l=>$6(a,l),c)}catch{return null}return s.set(i,a),a}function $6(t,e){for(let n=0;n<e.length;n++){let r=e[n],o=t.targets.get(r.target);if(!o)continue;let s=!!r.isIntersecting&&r.intersectionRatio>=t.threshold-I6;if(s===o.inView)continue;o.inView=s;let i=s?"in":"leave",a=o.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&mR(t,o,l);try{l.run(r)}catch(f){N6(f)}}}}}function N6(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function mR(t,e,n){if(n.dead)return;n.dead=!0;let r=e.subs.indexOf(n);r!==-1&&e.subs.splice(r,1),!e.subs.length&&(t.targets.delete(e.node),t.observer.unobserve(e.node),!t.targets.size&&(t.observer.disconnect(),t.byKey.delete(t.id)))}function gR(t,e,n,r,o){let s=tu(t,o.handler),i=o.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",f=M6(n,c,l);if(!f)return;let u=f.targets.get(e);u||(u={node:e,inView:!1,subs:[]},f.targets.set(e,u),f.observer.observe(e));let d={kind:r,once:!!(i&&i.once===!0),run:dg(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>mR(f,u,d))}function yR(t){let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,r=n&&n.defaultView;if(!r||typeof r.IntersectionObserver!="function")return;let o=u0(t.onInView);for(let i=0;i<o.length;i++)gR(t,e,n,"in",o[i]);let s=u0(t.onLeaveView);for(let i=0;i<s.length;i++)gR(t,e,n,"leave",s[i])}Lt();Lt();function Qe(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();mt(n);try{return e()}finally{pt()}}var ke=yi||(t=>{let e=Pe();if(!e)return t();Oc(null);try{return t()}finally{Oc(e)}});M();M();var SR=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],F6=["none","forwards","backwards","both"],j6=["normal","reverse","alternate","alternate-reverse"],B6=["running","paused"],U6=/^(?: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*\))$/,V6=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(r=>U6.test(r.replace(/\s+/g,"")))},bR=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),H6={transform:V6,translate:bR,rotate:t=>bR(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},z6=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},W6=t=>{if(!A(t))return null;let e=null,n=-1;for(let r in t){let o=z6(r);o==null||!A(t[r])||o>=n&&(n=o,e=t[r])}return e},K6=t=>{let e=W6(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=H6[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},q6=(t,e)=>{if(A(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return A(r)?r:null},G6=["reverse","alternate","alternate-reverse"],xR=(t,e,n)=>{let r=n||e.animationDirection;return r&&G6.includes(String(r))?"both":K6(q6(t,e))?"backwards":"both"},Y6=0,_R=new Map,d0=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(A(t)){let o=JSON.stringify(t),s=_R.get(o);if(s)return s;let i=`smbls-anim-${Y6++}`,a=ka(i,t);return _R.set(o,a),a}let r=n&&n[t];return A(r)?ka(t,r):t},kR=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,X6=/^(?:\d+(?:\.\d*)?|\.\d+)$/,vR=/^(?:cubic-bezier|steps|linear)\(/,J6=/^(?:calc|min|max|clamp)\(/,Z6=t=>t.includes("(")||t.startsWith("--"),Q6=(t,e)=>{if(!Mn.test(t))return!1;let n=e&&e.sequence;if(!A(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},tU=t=>{if(!E(t))return!1;let e=t.trim();return SR.includes(e)||vR.test(e)||e.startsWith("var(")},eU=(t,e)=>!!e&&tU(e[t]||e[ts(t)]),nU=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],rU=t=>dt(String(t)),oU=(t,e,n)=>{let r={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},o=null,s=[],i=[],a=(u,d)=>r[u]!=null?!1:(r[u]=d,!0),c=(u,d)=>{a(u,d)||s.push(d)};for(let u of rU(t))e&&e[u]?o=u:kR.test(u)||Q6(u,n)?a("duration",u)||a("delay",u):SR.includes(u)||eU(u,n)?c("timingFunction",u):vR.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):X6.test(u)?a("iterationCount",Number(u)):j6.includes(u)?c("direction",u):F6.includes(u)?c("fillMode",u):B6.includes(u)?c("playState",u):Z6(u)?i.push(u):s.push(u);let l=o||s[0]||i.shift()||null,f=new Set;for(let u of i){let d=nU.find(p=>r[p]==null);if(!d)break;r[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...r,opaqueSlots:f}},sU=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=O()||{};return ir(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>oU(o,n,r))},wR=(t,e)=>kR.test(t)||e&&!J6.test(t)&&!/^(?:var|env)\(/.test(t)?t:_e(t).timing||t,iU=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:d0(t.name,e),animationDuration:t.duration!=null?wR(t.duration,n("duration")):_e(e.animationDuration||"A").timing,animationDelay:t.delay!=null?wR(t.delay,n("delay")):_e(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:Ie(t.timingFunction):Ie(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||xR(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},aU={animationName:"none",animationPlayState:"running",animationDirection:"normal"},cU=(t,e)=>{let n=t.map(o=>iU(o,e));if(n.length===1)return n[0];let r={};for(let o in n[0]){let s=n.map(i=>i[o]);s.every(i=>i==null)||(r[o]=s.map(i=>i??aU[o]).join(", "))}return r},p0={animation:(t,e)=>{if(t!=null){if(E(t)&&/[\s,]/.test(t)){let n=sU(t,e);if(n.length)return cU(n,e)}return{animationName:d0(t,e),animationDuration:_e(e.animationDuration||"A").timing,animationDelay:_e(e.animationDelay||"0s").timing,animationTimingFunction:Ie(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||xR(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:d0(t,e)}),animationDuration:t=>({animationDuration:_e(t).timing}),animationDelay:t=>({animationDelay:_e(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Ie(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};M();var gg=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!E(e))return;let[r,o]=dt(e);return{...N(t+"Start",r,n),...N(t+"End",o||r,n)}},h0={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>N("height",t,e),width:(t,e)=>N("width",t,e),boxSizing:t=>Wt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("height",e),...It("width",n||e)}},inlineSize:(t,e)=>N("inlineSize",t,e),blockSize:(t,e)=>N("blockSize",t,e),minWidth:(t,e)=>N("minWidth",t,e),maxWidth:(t,e)=>N("maxWidth",t,e),widthRange:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("minWidth",e),...It("maxWidth",n||e)}},minHeight:(t,e)=>N("minHeight",t,e),maxHeight:(t,e)=>N("maxHeight",t,e),heightRange:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("minHeight",e),...It("maxHeight",n||e)}},size:t=>{if(!E(t))return;let[e,n]=dt(t);return{...N("inlineSize",e),...N("blockSize",n||e)}},minBlockSize:(t,e)=>N("minBlockSize",t,e),minInlineSize:(t,e)=>N("minInlineSize",t,e),maxBlockSize:(t,e)=>N("maxBlockSize",t,e),maxInlineSize:(t,e)=>N("maxInlineSize",t,e),minSize:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("minInlineSize",e),...It("minBlockSize",n||e)}},maxSize:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("maxInlineSize",e),...It("maxBlockSize",n||e)}},borderWidth:(t,e)=>N("borderWidth",t,e),borderTopWidth:(t,e)=>N("borderTopWidth",t,e),borderRightWidth:(t,e)=>N("borderRightWidth",t,e),borderBottomWidth:(t,e)=>N("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>N("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>N("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>N("textUnderlineOffset",t,e),padding:(t,e)=>N("padding",t,e),paddingInline:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("paddingInlineStart",e),...It("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("paddingBlockStart",e),...It("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>N("paddingBlockStart",t,e),paddingBottom:(t,e)=>N("paddingBlockEnd",t,e),paddingLeft:(t,e)=>N("paddingInlineStart",t,e),paddingRight:(t,e)=>N("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>N("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>N("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>N("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>N("paddingInlineEnd",t,e),margin:(t,e)=>N("margin",t,e),marginInline:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("marginInlineStart",e),...It("marginInlineEnd",n||e)}},marginBlock:t=>{if(!E(t))return;let[e,n]=dt(t);return{...It("marginBlockStart",e),...It("marginBlockEnd",n||e)}},marginTop:(t,e)=>N("marginBlockStart",t,e),marginBottom:(t,e)=>N("marginBlockEnd",t,e),marginLeft:(t,e)=>N("marginInlineStart",t,e),marginRight:(t,e)=>N("marginInlineEnd",t,e),marginInlineStart:(t,e)=>N("marginInlineStart",t,e),marginInlineEnd:(t,e)=>N("marginInlineEnd",t,e),marginBlockStart:(t,e)=>N("marginBlockStart",t,e),marginBlockEnd:(t,e)=>N("marginBlockEnd",t,e),scrollMargin:(t,e)=>N("scrollMargin",t,e),scrollMarginTop:(t,e)=>N("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>N("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>N("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>N("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>gg("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>gg("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>N("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>N("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>N("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>N("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>N("scrollPadding",t,e),scrollPaddingTop:(t,e)=>N("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>N("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>N("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>N("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>gg("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>gg("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>N("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>N("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>N("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>N("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Hh(t)}),columnGap:(t,e)=>Ge(e,"columnGap",t),rowGap:(t,e)=>Ge(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!E(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>dr(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>dr(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>dr(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>dr(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>dr(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>dr(t,e,"borderBottomRightRadius","borderBottomRightRadius")};var g0={fontSize:t=>Lf(t)||t,fontFamily:t=>({fontFamily:Pf(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 m0={overflow:t=>({overflow:t}),cursor:(t,e,n,r)=>{if(!t)return;let o=r.assets&&r.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=r.files&&r.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 y0={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:dt(t).map(n=>Bt(n,"k").k).join(" ")}},left:t=>Bt(t,"left"),top:t=>Bt(t,"top"),right:t=>Bt(t,"right"),bottom:t=>Bt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=dt(t).map(n=>Bt(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=dt(t).map(n=>Bt(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};M();var mg=0,yg=()=>{mg++},bg=()=>{mg>0&&mg--},le=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:mg>0?null:n&&n.resolvedTheme||null},fe=(t,e)=>{if(e==null||e==="")return;if(!A(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(A(s)){let i=fe(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},ER=t=>{let e={};for(let n in t){let r=t[n];e[n]=A(r)?ER(r):E(r)?r+" !important":r}return e},ws=t=>(e,n)=>{let r=n&&E(e)&&!O().useVariable,o=jh(e,r?le(n):null);return A(o)?fe(t,o):{[t]:o}},b0={theme:(t,e)=>{if(t)return e.themeModifier?Ye(t,`@${e.themeModifier}`):Ye(t)},color:(t,e)=>{let n=le(e);if(t)return fe("color",Vt(t,n))},background:(t,e)=>{let n=le(e);if(t)return E(t)&&t.includes("gradient")&&t.includes("(")?{background:Uf(t,n)}:fe("background",Vt(t,n))},backgroundColor:(t,e)=>{let n=le(e);if(t)return fe("backgroundColor",Vt(t,n))},backgroundImage:(t,e,n,r)=>{let o=le(e);if(!t)return;let s=r.assets&&r.assets[t];if(s&&s.content)t=s.content.src;else{let i=r.files&&r.files[t];i&&i.content&&(t=i.content.src)}return fe("backgroundImage",Vh(t,o))},textStroke:t=>{let e=Bh(t);if(e!=null)return{WebkitTextStroke:e}},outline:ws("outline"),outlineWidth:(t,e)=>N("outlineWidth",t,e),outlineColor:(t,e)=>{let n=le(e);if(t)return fe("outlineColor",Vt(t,n))},outlineOffset:(t,e)=>N("outlineOffset",t,e),border:ws("border"),borderColor:(t,e)=>{let n=le(e);if(t)return fe("borderColor",Vt(t,n))},borderTopColor:(t,e)=>{let n=le(e);if(t)return fe("borderTopColor",Vt(t,n))},borderBottomColor:(t,e)=>{let n=le(e);if(t)return fe("borderBottomColor",Vt(t,n))},borderLeftColor:(t,e)=>{let n=le(e);if(t)return fe("borderLeftColor",Vt(t,n))},borderRightColor:(t,e)=>{let n=le(e);if(t)return fe("borderRightColor",Vt(t,n))},borderLeft:ws("borderLeft"),borderTop:ws("borderTop"),borderRight:ws("borderRight"),borderBottom:ws("borderBottom"),shadow:(t,e)=>{let n=le(e);if(t)return fe("boxShadow",Uh(t,n))},boxShadow:(t,e)=>{if(!E(t))return;let[n,r]=t.split("!importan"),o=le(e),s=r?" !important":"",i=Bf(n.trim(),o);return E(i)?{boxShadow:i+s}:fe("boxShadow",s?ER(i):i)},textShadow:(t,e)=>fe("textShadow",Bf(t,e?le(e):null)),columnRule:ws("columnRule")};var nu={transition:t=>{let e=Wh(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:Vf(t)}),transitionDelay:t=>({transitionDelay:Vf(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Ie(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};M();var _0={flow:(t,e)=>{let n=e.reverse;if(!E(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!E(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};M();var lU=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,AR=t=>{if(!E(t))return t;let e=O().sizes;return e?t.replace(lU,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},Fn=t=>AR(zh(t)),w0={gridTemplateColumns:t=>({gridTemplateColumns:Fn(t)}),gridTemplateRows:t=>({gridTemplateRows:Fn(t)}),gridAutoColumns:t=>({gridAutoColumns:Fn(t)}),gridAutoRows:t=>({gridAutoRows:Fn(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Fn(t)}),templateColumns:t=>({gridTemplateColumns:Fn(t)}),autoColumns:t=>({gridAutoColumns:Fn(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Fn(t)}),templateRows:t=>({gridTemplateRows:Fn(t)}),autoRows:t=>({gridAutoRows:Fn(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var At={...p0,...h0,...g0,...m0,...y0,...b0,...nu,..._0,...w0};var Ft=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","fill","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","stroke","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);M();var fU=/^[a-z][0-9]?$/,CR=/var\(\s*(--[A-Za-z0-9-]+)/g,uU=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let r in t){let o=t[r];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)n.add(s)}}return{knownLetters:e,knownVars:n}},dU=Object.prototype.propertyIsEnumerable,TR=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let r=t[n];if(!r||typeof r!="object")continue;let o=r.sequence;if(o&&typeof o=="object"&&dU.call(o,e))return!0}return!1},S0=/[(),\s]+/,x0=(t,e)=>{let n=null,r=t.split(S0);for(let o=0;o<r.length;o++){let s=r[o];s&&e(s)&&(n||(n=[])).push(s)}return n},k0=(t,e)=>Mn.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),pU=(t,e)=>{if(!e.size)return[];let n=o=>e.has(o),r=x0(t,o=>k0(o,n));return r?[...new Set(r)]:[]},hU=(t,e)=>{if(!e.size)return[];let n=[];CR.lastIndex=0;let r;for(;r=CR.exec(t);){let o=r[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!fU.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&n.push({varName:o,corrected:a})}return n},_g=new Set,OR=(t,e,n)=>{if(!tt()||!E(e)||!e)return;let r;try{r=O()}catch{return}let{knownLetters:o,knownVars:s}=uU(r);if(!o.size&&!s.size)return;let i=pU(e,o),a=hU(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;_g.has(f)||(_g.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}`;_g.has(u)||(_g.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}"`))}};M();var gU=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,mU=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=ee(e,n);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(gU),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=r.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},RR=(t,e,n)=>({[t]:ee(e,n)}),ru=(t,e,n)=>{let r=`&${t}`,o=ee(e,n);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=r.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[r]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[r]:o}},v0=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return D(n)?n.call(e,e):!!n},yU=(t,e,n)=>{let r=t.slice(1),o=v0(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ee(e,n)},bU=(t,e,n)=>({[t]:e}),_U=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=v0(r,n);s!==void 0&&(o=s)}if(o)return ee(e,n)},wU=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=v0(r,n);s!==void 0&&(o=s)}if(!o)return ee(e,n)},E0=(t,e)=>ee(t,e),A0={"@":mU,":":ru,"[":ru,"*":ru,"+":ru,"~":ru,"&":RR,">":RR,$:yU,"-":bU,".":_U,"!":wU};var wg=Fr(),PR=(t,e,n)=>{let r=e?.context?.designSystem;r&&mt(r);try{let o={},s={},i=(a,c)=>{if(n.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&E(c)){let l=DR(c,e);l&&(n.unpack?Rt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=vt(c,e);Rt(o,E0(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=D(l)?l(e,e.state,e.context):l;f&&i(a,f),!wg&&A(o[a])&&(o[a].label=a)}else if(At[a]){let l=vt(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>Rt(u,d),{}));let f=At[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>Rt(u,d),{})),f&&i(a,f),!wg&&A(o[a])&&(o[a].label=a)}else if(Ft.has(a)){let l=vt(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),wg||OR(a,l,e),i(a,{[a]:l}),!wg&&A(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&pt()}},DR=(t,e)=>{if(!E(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let r;for(let o of t.split(" ")){if(!o)continue;let s=n[o];if(!A(s))continue;let i=ut(s);r=r?se(r,i):i}if(r)return ee(r,e)},LR=(t,e)=>{let n={};for(let r in t){let o=A0[r.slice(0,1)];if(o){let s=o(r,t[r],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?se(n[i],s[i]):n[i]=s[i])}}return n},ee=(t,e,n={unpack:!0})=>{let[r,o]=PR(t,e,n),s=LR(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Xc(r,s);r._selectors=s}return r},SU=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};M();var IR=t=>{if(A(t))return ee(t,t)},xU=(t,e)=>{let n=IR(t);return typeof e=="function"?e(n):$e(n)};M();var MR=/\s*!important\s*$/,kU=()=>{let t;try{t=O()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,r=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=TR(t,s),n.set(s,i)),i},o=s=>ia(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(k0(s,r)||o(s))}},vU=(t,e)=>{let n=String(t).split(S0);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},EU=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(xe(t),e)}catch{return!1}},$R=new Set,AU=(t,e,n)=>{if(!tt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;$R.has(o)||($R.add(o),console.warn(`[smbls/css-in-props] style.${e} on <${r}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},CU=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let r in t){let o=t[r];if(o!=null){if(typeof o=="object"||typeof o=="function")return!1;for(let s of e)if(vU(o,s))return!1;n=!0}}return n},TU=(t,e,n,r)=>{if(!E(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=At[t];if(!o||!Ft.has(t))return null;let s=MR.test(e),i=s?e.replace(MR,""):e,a=x0(i,r.isToken);if(!a||EU(t,i))return null;let c;try{c=o(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let f={};for(let u of c)u&&typeof u=="object"&&Object.assign(f,u);c=f}if(!CU(c,a))return AU(n,t,e),null;let l={};for(let f in c){let u=c[f];u!=null&&(l[f]=s?String(u)+" !important":u)}return l},NR=(t,e,n)=>{let r={},o=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=NR(i,e,n);c!==i&&(o=!0),r[s]=c;continue}let a=TU(s,i,e,n);a?(o=!0,Object.assign(r,a)):r[s]=i}return o?r:t},C0=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:NR(t,e,kU());if(!Et||!Xe)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var Sg=Et,Ss=Xe,xg=ba||(()=>!1),FR=Wf||xg,jR=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,xs=xe||(t=>jR(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),ou=Yf||(t=>jR(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function UR(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 Ta(t,e,n){let r=UR(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=VR(r[i],s);a&&a!==e&&HR(t,a,n,new Set([e]))}}function VR(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(o=>o.trim()),r=e[n[0]]||e[`smbls.${n[0]}`];for(let o=1;o<n.length&&r;o++)r=r[n[o]];return r||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function HR(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=UR(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=VR(o[c],a);l&&HR(t,l,n,r)}}let s=O0(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=ct.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=Ne(t[i],a):t[i]=a)}}var T0=class{constructor(){this.rank=0,this.ranks=null}mark(e){OU(e)&&(this.ranks||(this.ranks=new Map),this.ranks.set(e,this.rank))}get(e){return this.ranks?this.ranks.get(e):void 0}get size(){return this.ranks?this.ranks.size:0}},kg=new Set;for(let t of[Ss,Sg])for(let e in t)kg.add(e),kg.add(ou(e));var BR=new Map;function OU(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=BR.get(t);return n===void 0&&(n=!!At[t]||kg.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&kg.has(xs(t)),BR.set(t,n)),n}function O0(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new T0),n.rank++,n}function zR(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let r of e.ranks.values())if(n===void 0)n=r;else if(r!==n)return;e.ranks=null}function Ne(t,e){let n={...t},r=ct.chains;for(let o in e){let s=n[o],i=e[o];r!==null&&r(n,o,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[o]=Ne(s,i):n[o]=i)}return n}Lt();Lt();Lt();var ks="http://www.w3.org/2000/svg",Pa=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"]),RU=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 Oa(t){return RU.has(t)||Pa.has(t)}function yr(t){return Pa.has(t)}function jn(t){let{tag:e,key:n}=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 "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&Oa(e))return e;if(!n||typeof n!="string")return"div";let r=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=n.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),Oa(o)&&!r.has(o)?o:"div"}var WR={};function Ra(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(yr(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===ks)return n.createElementNS(ks,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function fo(t){let e=t.tag=jn(t),r=yr(e)&&(e==="svg"||t.parent?.node?.namespaceURI===ks)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=WR[r];if(s||(s=WR[r]=Ra(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?Ra(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function su(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}Lt();Oi();var KR=new WeakMap,qR=null,GR=null;function PU(t,e){let n=t===qR?GR:KR.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},KR.set(t,n)),qR=t,GR=n;let r=n.hooks.get(e);if(r===void 0){r=!1;for(let o of t)if(typeof o[e]=="function"){r=!0;break}n.hooks.set(e,r)}return r}function R0(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&PU(n,e))}function Bn(t,e,...n){return R0(e,t)?Br(t,e,...n):!1}function tn(t,e,n){Bn("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var DU=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function XR(t,e,n){return ke(()=>Qe(t,()=>e.call(t,n,t,t.state,t.context)))}function LU(t,e){if(!tt())return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function JR(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function"||!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,LU(t,e);let o;try{o=XR(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,tn(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>YR(t,r,s),s=>{r.failed=!0,tn(t,"onBridgeMount",s)});return}YR(t,r,o)}function YR(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){QR(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let r=t.__ref;e.effect=W(()=>{e.disposed||Qe(t,()=>{try{let o=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);o&&typeof o.then=="function"&&o.catch(s=>tn(t,"onBridgeUpdate",s))}catch(o){tn(t,"onBridgeUpdate",o)}})},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function ZR(t){let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&QR(t,e))}function QR(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,DU(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=XR(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>tn(t,"onBridgeDestroy",o))}catch(r){tn(t,"onBridgeDestroy",r)}}function Da(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function iu(t){let e=t.__mount;return e?e.pending:0}Lt();function La(t={},e={}){let n=this,r=n.__ref;if(!r)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&vg(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>Un(r,!1),c=>{Un(r,!0),Bn("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(Un(r,!1),a===!1)return n}catch(a){throw Un(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;Nd(()=>{if(t.state&&kt(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&vs(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!r.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!r.__exec.style){let a=As(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=xs(c),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];Es(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(Ht.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&zt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)L0(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)P0(s[c])&&(a=!0);a&&D0(n)}if(n.node&&o&&r.__effects&&r.__effects.length)for(let a=0;a<r.__effects.length;a++){let c=r.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&r.__conditionalRunners)for(let a of r.__conditionalRunners)a();return Bn("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}Lt();function Vn(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&rR(t),Pe())return ke(()=>Vn(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(o){console.error("[smbls] onBeforeRemove error:",o)}if(e.__bridge&&ZR(t),e.__effects){for(let o=0;o<e.__effects.length;o++)e.__effects[o].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let o=0;o<e.__eventCleanup.length;o++)e.__eventCleanup[o]();e.__eventCleanup.length=0}if(e.__children){let o=e.__children.slice();e.__children.length=0;for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&Vn(i)}}if(e.__ifParked&&e.__ifParked.size){let o=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&i.parent===t&&Vn(i)}}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 o=t.parent.__ref.__children.indexOf(t.key);o!==-1&&t.parent.__ref.__children.splice(o,1),t.parent.__ref.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),delete t.parent[t.key]}if(!n)try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(o){console.error("[smbls] onRemove error:",o)}e.__mount&&e.__mount.tail&&ct.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function Ia(){Vn(this)}M();M();function $0(t,e,n){let r=t?.context?.analyze;if(!r||!r.emit||e==="warn"&&!r.shouldCapture("warnings")||e==="error"&&!r.shouldCapture("errors"))return;let o=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");r.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:n})}var tP=new Set;function eP(t,e,n){let r=String(e);if(tP.has(r))return;tP.add(r);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \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('${r}') at <${s}>: "${r}" ${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.`;$0(t,"error",[a]),console.error(a)}var rP=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),IU=new Set,oP=t=>rP(I0,t)&&!(ki||IU).has(t),nP=new Set;function sP(t,e){nP.has(t)||(nP.add(t),tt()&&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 MU(...t){return $0(this,"warn",t),Dl.apply(this,t)}function $U(...t){return $0(this,"error",t),Wo.apply(this,t)}var I0={update:La,remove:Ia,getDB:$l,getQuery:Nl,getRootData:Ol,getPath:El,nextElement:Ll,previousElement:Il,verbose:ji,warn:MU,error:$U,variables:Ml,spotByPath:vl,set(t,e,n){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}let o;try{if(this.removeContent(),t!=null){let s=this.context?.__create;s&&(o=s(t,this,"content",e,n))}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let s=r.__setQueued;s&&(r.__setQueued=null,this.set(s.content,s.options))}}return o},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,r=this.key,o=this.parse();return this.remove(),e(o,n,r,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},whenConnected(t){return lo(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let r=this[n];if(!r)continue;if(typeof t=="function"){if(t(r))return r}else if(typeof t=="string"&&r.key===t)return r;let o=r.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let r of n.__children){let o=this[r];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:Tl,getRootState:Cl,getRootContext:Rl,getContext:Pl,parse(t){let e={},n=t?new Set(t):null,r=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!n?.has(o)){if(r&&r[o]!==void 0){e[o]=r[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let r of n.__children)this[r]?.parseDeep&&(e[r]=this[r].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];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 n=t[e];if(n==null)continue;let r=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(r,o,"important")}},call(t,...e){let n=this.context,r=oP(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&sP(t,"el.call");let o=r?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof o=="function"){let s=jo;if(!s||!s(o))return o.call(this,...e);tt()&&eP(this,t,De(o));return}tt()&&eP(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 n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},M0=new WeakMap;function NU(t){if(!t)return I0;let e=M0.get(t);if(e)return e;e=Object.create(I0);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return M0.set(t,e),e}function Ma(t){let e=NU(t.context);Object.setPrototypeOf(t,e)}function $a(t){if(!t)return!1;let e=M0.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(oP(r)&&!rP(e,r)){sP(r,"refreshContextProto");continue}e[r]=n[r]}return!0}M();M();var U0={};$(U0,{STATE_METHODS:()=>iP,applyInitialState:()=>Eg,applyStateMethods:()=>ve,callStateMethod:()=>cu,createState:()=>F0,isTracking:()=>B0,useHostState:()=>j0});Lt();Lt();var iP=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"]),au=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},gn=(t,e,n,{onlyIfAbsent:r}={})=>{au(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&au(t,e,n)},cu=(t,e,...n)=>{if(!t)return;let r=t["$"+e];if(typeof r=="function")return r.apply(t,n);let o=t[e];if(typeof o=="function")return o.apply(t,n)},ve=(t,e)=>{if(kt(e)){let o=e.__raw||e;gn(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),gn(o,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),gn(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}),gn(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}),gn(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}),gn(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),gn(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),gn(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),gn(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&kt(a.parent);)a=a.parent;return cu(a,"update",s,i)}),gn(o,"parentUpdate",function(s,i={}){if(e.parent)return cu(e.parent,"update",s,i)}),gn(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=kt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,kt(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},r={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;n();for(let s in o)e[s]=o[s];return e},replace(o){return e.$set(o)},clean(){return n(),e}};au(e,"$settled",function(){return Fd().then(()=>e)});for(let o in r)if(au(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){Ud(o,"");continue}au(e,o,r[o])}};var F0=function(t,e,n){return t.state=Eg(t,e,n),t.state},Eg=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return ve(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",FU(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=Yn({value:o});return s.__element=t,e?.state&&(s.parent=e.state),ve(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!kt(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=Yn({...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)),ve(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return kt(o)?(o.__element=t,o):e?.state||{}};function N0(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function FU(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let o=t.slice(3),s=n.state?.parent;return o&&s?N0(s,o):s??n.state??{}}if(t.startsWith("~/")){let o=n.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?N0(o,s):o??{}}let r=N0(n.state,t);if(r&&typeof r=="object"&&!kt(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}Lt();var j0=(t,e)=>{if(!t)return cP;let n=BU(t,e);return!n||!n.state?cP:VU(n.state)},B0=()=>Pe()!=null,jU=128;function BU(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,r=t,o=null;for(let s=0;s<jU&&r;s++){if(n(r)&&r.state)return r;if(r.state&&!o&&(o=r),!r.parent||r.parent===r)break;r=r.parent}return o}var UU={get(t,e){return t[e]}},aP=new WeakMap,VU=t=>{let e=aP.get(t);return e||(e=new Proxy(t,UU),aP.set(t,e)),e},cP=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var HU=["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"],zU=["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","mask-type","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],WU=["requiredExtensions","systemLanguage"],lP={circle:["cx","cy","r","pathLength"],ellipse:["cx","cy","rx","ry","pathLength"],line:["x1","y1","x2","y2","pathLength"],path:["d","pathLength"],polygon:["points","pathLength"],polyline:["points","pathLength"],rect:["x","y","width","height","rx","ry","pathLength"],g:[],defs:[],switch:[],symbol:["viewBox","preserveAspectRatio","refX","refY","x","y","width","height"],use:["href","xlink:href","x","y","width","height"],image:["href","xlink:href","x","y","width","height","preserveAspectRatio","crossorigin"],foreignObject:["x","y","width","height"],text:["x","y","dx","dy","rotate","textLength","lengthAdjust"],tspan:["x","y","dx","dy","rotate","textLength","lengthAdjust"],textPath:["href","xlink:href","path","startOffset","method","spacing","side","textLength","lengthAdjust"],linearGradient:["x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],radialGradient:["cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],stop:["offset"],pattern:["x","y","width","height","patternUnits","patternContentUnits","patternTransform","viewBox","preserveAspectRatio","href","xlink:href"],clipPath:["clipPathUnits"],mask:["x","y","width","height","maskUnits","maskContentUnits"],marker:["viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],filter:["x","y","width","height","filterUnits","primitiveUnits"]},KU=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),qU=()=>{let t={};for(let e in lP)t[e]=[...lP[e],...KU.has(e)?[]:WU,...zU];return t},br={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","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","ping","referrerpolicy","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","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","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","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","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"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","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:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],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","loading","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","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"],...qU()},pP=["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"],hP=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,fP=new Map,_r=t=>{let e=fP.get(t);return e===void 0&&(e=hP(t)||yP(t),fP.set(t,e)),e},gP=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),V0=new Set;for(let t in br)t==="default"||t==="aria"||t==="svg"||br[t].forEach(e=>{e.startsWith("on")||V0.add(e)});var mP=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());if(V0.has(n))return n;let r=t.toLowerCase();return V0.has(r)?r:null},yP=t=>gP.has(t)?t.toLowerCase():mP(t),GU=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),YU=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),Ts=t=>typeof t=="string"&&(GU.has(t)||t.startsWith("aria-")),Hn=(t,e)=>{if(e!==!0&&e!==!1)return e;if(Ts(t)){let n=YU.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},uP=new Map,en=(t,e)=>{let n=br.default,r=Object.prototype.hasOwnProperty.call(br,t)?br[t]:null,o=r?r.length:-1,s=uP.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==r||s.ownLen!==o)&&(s={def:n,defLen:n.length,own:r,ownLen:o,answers:new Map},uP.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=XU(t,e),s.answers.set(e,i)),i},XU=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||hP(e)||gP.has(e)||br.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(br,t)){let n=br[t];if(n.includes(e))return!0;let r=mP(e);return r!==null&&n.includes(r)}return!1},z0=t=>{if(!E(t))return!1;let e=t.toLowerCase();return pP.includes(e)},JU=(t,e,n)=>{let r={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n&&o in n)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])jt(e[o][a])&&(r["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(jt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=en(t,o),i=z0(o);if(jt(e[o])&&(s||i)){let a=_r(o)||o;r[a]=e[o]}}return r},ZU=(t,e)=>{let n={};if(t.attr)for(let r in t.attr)n[r]=t.attr[r](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let o=t.aria[r];typeof o=="function"&&(n["aria-"+r]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];if(typeof o=="function"){let s=r.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=o(e,e.state,e.context)}}return n},uo=(t,e)=>{let n=t.call("exec",e,t);if(n)return E(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},H0=(t,e)=>{let n=(t.preSrc||"")+(uo(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:r}=t;if(!r.files&&!r.assets)return n;if(n.startsWith("/assets/")){let o=n.slice(8),s=r.assets&&(r.assets[n]||r.assets[o]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let o=n.slice(7),s=r.files&&(r.files[n]||r.files[o]);return s&&s.content?s.content.src:n}if(r.assets){let o=r.assets[n];if(o&&o.content)return o.content.src}if(r.files){let o=r.files[n];if(o&&o.content)return o.content.src}return n},Cs={src:t=>H0(t,t.src),href:t=>uo(t,t.href),action:t=>uo(t,t.action),poster:t=>H0(t,t.poster),data:t=>uo(t,t.data)},W0=t=>{let e=t.tag||"div",n={};for(let r in Cs)if(t[r]!==void 0&&en(e,r)){let o=Cs[r](t);o!==void 0&&(n[r]=o)}return n},dP=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return D(n)?n.call(e,e):!!n},QU=(t,e,n)=>{if(t==="$"){let o=dP(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=dP(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},tV=new Set(["$",".","!"]),K0=(t,e,n,r=QU)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return D(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!tV.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=en(e,f),d=z0(f);if(!u&&!d)continue;let p=_r(f)||f;s(p,c[f],a,l)}}return o};var Ag="3.14.807";var bP="__SMBLS_ELEMENT_ID_ENGINE__",_P=(t,e,n)=>{let r=e||Ag,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[bP];return s&&s.engine&&s.version===r?s.engine:(s||(o[bP]={version:r,engine:t}),t)};var eV=new Set(["rows","cols","wrap","fill","stroke","offset"]),Cg=(t,e)=>eV.has(e)&&en(t,e),po=(t,e)=>!!(At[e]||Ft&&Ft.has(e))&&!Cg(t,e);var JP=_P({uniqId:1,scopedStyleId:0},Ag),Fa=[],ho=new Set,fk=!1,ZP=0,Ba=null,du=null;function Ha(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function QP(){return typeof document<"u"&&document.visibilityState==="hidden"}var nV=250,rV=1e3;function oV(){return du&&(du!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||QP())?!0:Ha()-ZP>=rV}function sV(){if(fk=!0,ZP=Ha(),du=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Ua,0);Ba=t?()=>t(e):null;return}if(QP()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Ua,nV);Ba=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;du=requestAnimationFrame;let e=requestAnimationFrame(Ua);Ba=t?()=>t(e):null}}function bu(){if(fk){if(!oV())return;let t=Ba;if(Ba=null,t)try{t()}catch{}}sV()}var tD=300,eD=15e4,rk=0;function Ps(){rk++;let t=!1;return()=>{t||(t=!0,!(--rk>0)&&(Fa.length||ho.size)&&bu())}}function Ua(){if(fk=!1,Ba=null,du=null,rk>0||(ho.size&&s9(),!Fa.length))return;let t=Fa.splice(0,Fa.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let r=n.__ref||(n.__ref={});r.__mountAttempts=(r.__mountAttempts||0)+1,r.__mountFirstAttemptAt==null&&(r.__mountFirstAttemptAt=Ha());let o=Ha()-r.__mountFirstAttemptAt;r.__mountAttempts<=tD&&o<eD?(Fa.push(n),bu()):console.warn("[DOMQL] onMounted dropped after",r.__mountAttempts,"attempts /",o,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&JR(n),typeof n.onMounted=="function"&&Gt("Mounted",n,n.__ref?.__mountOptions||{})}}}function ok(t,e){let n=t.__ref?.__autoGrow;n&&n.active&&yu(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,Fa.push(t),bu())}function Tg(t,e){typeof t.onContentUpdate=="function"&&(Bn("contentUpdate",t,e),Qe(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(tn(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function iV(t){return t.toLowerCase()}function nD(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function Og(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function rD(t,e,n,r){return Lg(r,Og(t)||(e&&typeof e=="object"?Og(e.key):void 0)||String(n))}function Lg(t,e){if(!t||typeof e!="string")return e;let n=e;for(;aV(t,n);)n="$"+n;return n!==e&&cV(t,e,n),n}function aV(t,e){if(Ht.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var wP=new Set;function cV(t,e,n){if(!tt())return;let r=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",o=r+"::"+e;wP.has(o)||(wP.add(o),console.warn(`[smbls] a child keyed "${e}" at ${r} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function zt(t,e,n,r={},o){if(Pe())return ke(()=>zt(t,e,n,r,o));if(t==null||t===!1)return null;let s=OV(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=Og(n);let i=Og(t.key),a=Object.create(null);a.key=n||(i&&e?Lg(e,i):i)||`_${JP.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||r.context||{},a.context.__create||(a.context.__create=zt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=o;o&&(o.holdTail||o.deferAttach)&&(o.holdTail&&ct.mount!==null&&ct.mount.hold(a),o.deferAttach&&(Da(c).attachLater=!0),l=void 0);let f=t;if(t=sD(a,t,n,i,e,r),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let m=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${m} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=pV(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:r}),typeof a.if=="function"&&pD(a,c,a.if),a}a.tag||(a.tag=jn(a)),Gt("Init",a,r);let u=ct.hydration,d=a.node=u!==null&&u.adopt(a)||fo(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(Gt("AttachNode",a,r),d.setAttribute&&a.key&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),TD(a,r),uD(a),dD(a);try{RD(a,r)}catch(g){Ig(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(r.mountWhole===!0&&!(o&&o.holdTail)&&lV(a,e)?p.held=!0:Wa(a,e,l)),p.tail=()=>ct.mount.finish(a,r),a):(Va(a,!0),(p===null||!p.attachLater)&&Wa(a,e,l),uk(a,r),a)}function bo(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Wa(t,t.parent),!0)}function lV(t,e){if(!e||e.tag==="fragment")return!1;let n=t.node;if(!n||n.nodeType===11)return!1;let r=e.node||(e.nodeType?e:null);return!!r&&n.parentNode!==r}function oD(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held)return;n.held=!1;let r=t.node,o=t.parent;if(!r||!o)return;let s=o.__ref;if(!s){Wa(t,o);return}let i=o.node;if(!i)return;let a=s.__children,c=a?a.lastIndexOf(t.key):-1,l;for(let f=c-1;f>=0;f--){let u=o[a[f]],d=u&&(Sr(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=su(i,s.__textNode)),Wa(t,o,l?{position:"before",node:l}:void 0)}function Ig(t,e){if(typeof console<"u"&&console.error){let n=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] createChildren failed at ${n}:`,e?.message||e,e?.stack?`
57
58
  `+e.stack.split(`
58
59
  `).slice(0,6).join(`
59
- `):"")}}function A0(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&Ge(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),Gt("Create",t,e),Gt("Complete",t,e),Gt("Render",t,e),Gt("RenderRouter",t,e),_0(t,e),typeof t.onFrame=="function"){let n=t.onFrame,r=t.context?.designSystem,o=()=>{if(t.node){if(t.node.isConnected){r&&bt(r);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{r&&mt()}}requestAnimationFrame(o)}};requestAnimationFrame(o)}}function og(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,ht.mount.hold(t))}var K6=new Set(["childProps","attr","style","scope","data","vars"]);function pP(t,e,n,r,o,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),m=n.indexOf("."),y=h>0?h:-1;if(m>0&&(y<0||m<y)&&(y=m),y>0){let _=n.substring(0,y),S=t.context?.components;S&&(S[_]||S["smbls."+_])?e={...e,extends:_}:S&&tt()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${_}" but neither "${_}" nor "smbls.${_}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),da(t,e,s);let i=zx(t),a=t.props&&typeof t.props=="object"?t.props:null;for(let h in e)if(!(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")){if(h==="key"){r&&(t.key=o?cg(o,r):r);continue}i&&i.mark(h),c0(t,h,e[h])}if(a)for(let h in a)c0(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)c0(t,h,c[h]);if(i)for(let h in c)i.mark(h)}QO(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,f=o?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=_d(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=pU(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),_a(t),Z6(t,o,e,s),e}function c0(t,e,n){let r=t[e],o=ht.chains;if(o!==null&&o(t,e,r,n))return;let s=r&&n&&typeof r=="object"&&typeof n=="object"&&!Array.isArray(r)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Me(r,n):s&&K6.has(e)?t[e]={...r,...n}:s&&uP(e)?t[e]=Me(r,n):t[e]=n}var G6=new Set(["key","parent","context","__ref"]);function Y6(t,e){for(let r of Object.keys(t))G6.has(r)||delete t[r];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let r=t.context?.components||{},o=r[e.key]||r["smbls."+e.key];o&&(n={...n,extends:o})}xe(()=>pP(t,n,e.key,e.ownKey,t.parent,e.options))}function X6(t,e,n){let r=n||{},o=a=>!!(r[a]||r["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;o(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;o(f)||s.push(f)}return s}function l0(t,e,n){if(typeof t.onStateInit!="function"&&!Wx(t,"stateInit"))return;let r=t.state;t.state=e;try{Gt("StateInit",t,n)}finally{t.state=r}}var f0=t=>({isDataOnlyKey:e=>Lr(t).has(e)});function Z6(t,e,n,r){let o=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=o&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!wt(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,ke(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,_)=>{p.has(y)||Do(u,y,l)&&(l[y]=_,p.add(y),En(u,y,_))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(f.languages||[]);for(let y in f.translations)m.has(y)||g(y,f.translations[y])}wt(l)||l0(t,l,r),t.state=wt(l)?l:Hn(l,f0(t.context)),t.state.__element=t,t.state.root=t.state,ke(t,t.state),xi?.(c,t.state),Gt("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),ke(t,t.state);return}if(typeof a=="string"){if(t.state=gP(a,e),t.state&&typeof t.state=="object"&&!wt(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}ke(t,t.state),Q6(t,a,e),Gt("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(wt(c))t.state=c;else{let l=c||{};l0(t,l,r),t.state=Hn(l,e?.state?void 0:f0(t.context))}}else if(wt(a))t.state=a;else{let c={...a};l0(t,c,r),t.state=Hn(c,e?.state?void 0:f0(t.context))}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,ke(t,t.state),xi?.(a,t.state),Gt("StateCreated",t,r)}function RR(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function hP(t,e){let n=e.state;return t.startsWith("~/")?[n&&(n.root||n),t.slice(2)]:t.startsWith("../")?[n,t.slice(3)]:[n,t]}function gP(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[o,s]=hP(t,e);return s?RR(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=RR(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let r=e.context?.polyglot;if(r?.translations){let o=e.state?.root?.lang||r.defaultLang||"en",s=r.translations[o];if(s?.[t]!==void 0)return s[t];if(r.translations[t]!==void 0)return r.translations[t]}return{}}function J6(t,e){let[n,r]=hP(t,e);if(!r||!n||typeof n!="object")return;let o=n[r];if(o!==void 0||r.indexOf("/")===-1)return o;let s=n;for(let i of r.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function Q6(t,e,n){let r=t.__ref;if(!r||!n||e==="."||!wt(n.state))return;r.__stateBinding&&r.__stateBinding.dispose();let o=xe(()=>z(()=>{let s=J6(e,n);!s||typeof s!="object"||s===t.state||xe(()=>mP(t,t.state,s,!0))},{depth:r.path?r.path.length:0,label:gt(r,"state")}));o._isStateBinding=!0,r.__stateBinding=o,r.__effects&&r.__effects.push(o)}function mP(t,e,n,r){let o=t.__ref;if(!o)return;if(r||t.state===e){t.state=n,r&&ke(t,n),DR(o);let i=o.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&mP(c,e,n,!1)}return}if(o.__stateBinding){o.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,DR(o))}function PR(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let r of n)e.includes(r)||e.push(r);return e}function DR(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let r=e[n];r&&!r._disposed&&!r._isStateBinding&&!r._isSubscribeToEffect&&typeof r._notify=="function"&&r._notify()}}var tU=new Set(["s","state","ctx","context"]),u0=new WeakMap;function eU(t){if(u0.has(t))return u0.get(t);let e=null;try{let n=typeof Oe=="function"?Oe(t):Function.prototype.toString.call(t);if(typeof n=="string"){let r=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);r&&(e={params:r[1].split(",").map(o=>o.trim())})}}catch{}return u0.set(t,e),e}function nU(t){let e=eU(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var rU=3,oU=/^(is|has)[A-Z0-9_$]/,sU=new Set(["routerOptions"]),LR=new WeakSet;function iU(t,e){if(typeof t!="function"||t.length!==2||e&&(oU.test(e)||sU.has(e))||LR.has(t))return!1;let n=nU(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<rU||tU.has(r)?!1:(LR.add(t),!0)}function aU(t){let e=t.__ref,n=t.tag||"div",r=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"||Ht.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Ke(a)||kt[a]||Nt&&Nt.has(a)||c!==45&&(Xe(n,a)||(tt()&&iU(t[a],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(){r&&bt(r);try{return c(t,t.state,t.context)}catch{return}finally{r&&mt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function cU(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let r=e[n];try{typeof r=="function"?r(t,t.state,t.context):typeof r=="string"&&t.state?.[r]}catch{}}}function Ut(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return cU(t,e),n.apply(this,r)}}function Sa(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function gt(t,e){return()=>t.path.join(".")+"::"+e}var IR=new Set;function Jt(t,e,n){if(!tt())return;let r=gt(t,e)();IR.has(r)||(IR.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var MR=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,$R=new WeakMap,lU=t=>{let e=$R.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){MR.lastIndex=0;let r;for(;(r=MR.exec(n))!==null;)r[2].includes("{{")&&(e||(e=[])).push(r[2])}return $R.set(t,e),e},fU=(t,e)=>{let n=lU(t);if(n)for(let r=0;r<n.length;r++)e.add(n[r])},uU=(t,e)=>!Ke(t)&&!Jr(e,t),d0=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&uU(t,r)&&fU(e,n)},w0=new WeakMap,zf=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Wf=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Me(t,e):t},qf=(t,e)=>t&&e?Me(t,e):t||e||null,yP=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&zf(n,e)},to=(t,e)=>yP(t,e)?Wf(t.__ref.__runtimeSource[e]):null,ys=(t,e)=>(e&&t&&typeof t=="object"&&w0.set(t,e),t),dU=t=>{if(!t||typeof t!="object")return;let e=w0.get(t);return e&&w0.delete(t),e},S0=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let r=0;r<t.length;r++)S0(t[r],e,n);return}if(!t.__ref)for(let r of Object.keys(t)){if(r==="state")continue;let o=Object.getOwnPropertyDescriptor(t,r);o&&"value"in o&&S0(o.value,e,n)}}},pU=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Ht.has(r)||e&&zf(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;S0(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},NR=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let r=n.__ref&&n.__ref.__declaredArrays,o=r&&r.get(e);if(!o)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of o)s.__authoredTemplates.add(i);return}},bP=["attr","aria","data","metadata"],hU=t=>{if(bP.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},gU=(t,e)=>{let n=new Set,r=t.tag||"div";for(let o of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,o),i=s&&s.value,a=!!e&&zf(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!hU(o))continue;let c=a?e[o]:null,l=c&&typeof c=="object"?c:null,f=o.charCodeAt(0)===46||o.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||zf(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&bP.includes(u)){for(let g in p)d0(g,p[g],n,r,d);continue}d0(u,p,n,r,d)}continue}d0(o,i,n,r,a)}return n};function _P(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=gU(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(aU(t),typeof t.text=="function"){let c=t.text,l=Ut(t,t.textDeps,c),f=z(()=>{if(!n.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=Kt.call(t,u,t.state)),ds(t,u))}catch(u){Jt(n,"text",u)}},{depth:n.path.length,label:gt(n,"text")});n.__effects.push(f),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=z(()=>{if(n.contentManaged)return;let f=Kt.call(t,c,t.state);f!=null&&(t.text=f),t.node&&ds(t,f??"")},{depth:n.path.length,label:gt(n,"text")});n.__effects.push(l),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Ht.has(c)&&!Ke(c)&&!n.__exec[c]&&!eg(s,c)){if(kt[c]){let l=t[c],f=Ut(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=z(()=>{let y=t.context?.designSystem;y&&bt(y);try{let _=f(t,t.state,t.context);zh();let S;try{S=kt[u](_,t,t.state,t.context)}finally{Wh()}if(Array.isArray(S)){let x={};for(let w of S)if(w)for(let b in w)x[b]=w[b];S=x}let v=u==="show"||u==="hide";if(S&&t.node&&bU(S)){let x=ka(S);if(x===null||x!==h){h=x;let w=Ie(S,null,t.context?.cssPrefix),b=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let k of g)t.node.classList.remove(k);if(b&&b.length)for(let k of b)t.node.classList.add(k);g=b}}d=void 0,p=null}else if(S&&t.node){if(g){for(let w of g)t.node.classList.remove(w);g=null,h=void 0}let x=ka(S);if(x===null||x!==d||!Vf(t.node,p)){d=x;let w=BR(t,S);p=Uf(t.node,w)}}else t.node&&v&&(d=void 0,p=null,t.node.style.display="")}finally{y&&mt()}},{depth:n.path.length,label:gt(n,u)});n.__effects.push(m),n.__exec[c]=l}else if(Nt&&Nt.has(c)){let l=t[c],f=Ut(t,t[c+"Deps"],l),u=c,d,p=null,g=z(()=>{let h=t.context?.designSystem;h&&bt(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!Vf(t.node,p)){d=y;let _={[u]:m},S=BR(t,_);p=Uf(t.node,S)}}else d=void 0,p=null,t.node.style[u]=""}finally{h&&mt()}},{depth:n.path.length,label:gt(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];EP(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(_U(t),typeof t.html=="function"){let c=t.html,l=Ut(t,t.htmlDeps,c),f=z(()=>{Ge(t,()=>{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&(t.node.innerHTML=u)})},{depth:n.path.length,label:gt(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=Ut(t,t.valueDeps,c),f=z(()=>{try{let u=l(t,t.state,t.context);typeof u=="string"&&u.includes("{{")&&(u=Kt.call(t,u,t.state)),jR(t,u)}catch(u){Jt(n,"value",u)}},{depth:n.path.length,label:gt(n,"value")});n.__effects.push(f),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=z(()=>{try{jR(t,Kt.call(t,c,t.state))}catch(f){Jt(n,"value",f)}},{depth:n.path.length,label:gt(n,"value")});n.__effects.push(l),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=Ut(t,t.styleDeps,c),f,u=null,d,p,g,h,m=z(()=>{let y=l(t,t.state,t.context),_=t.context&&t.context.designSystem,S;if(y&&typeof y=="object"&&y===d&&_===g){let x=ka(y);S=x!==null&&x===p?h:hs(t,y),p=x}else S=hs(t,y),p=void 0;d=y,g=_,h=S;let v=ka(S);(v===null||v!==f||!Vf(t.node,u))&&(f=v,x0(t.node,u,S),eo(t.node,S),u=Uf(t.node,S))},{depth:n.path.length,label:gt(n,"style")});n.__effects.push(m),n.__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,Sa(t.styleDeps,c),l),u,d=null,p=z(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!Vf(t.node,d)){u=h;let m=hs(t,{[c]:g});x0(t.node,d,Object.assign({},m,{[c]:""})),eo(t.node,m),d=Uf(t.node,m)}}}catch(g){Jt(n,"style."+c,g)}},{depth:n.path.length,label:gt(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=Ut(t,Sa(t.attrDeps,c),t.attr[c]),f=c,u=z(()=>{try{let d=l(t,t.state,t.context);typeof d=="string"&&d.includes("{{")&&(d=Kt.call(t,d,t.state)),t.node?.setAttribute&&ps(t.node,f,d)}catch(d){Jt(n,"attr."+f,d)}},{depth:n.path.length,label:gt(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__effects.push(u)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=z(()=>{try{let d=Kt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,jn(f,d??""))}catch(d){Jt(n,"attr."+f,d)}},{depth:n.path.length,label:gt(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__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 p=l,g="aria-"+c.replace(/[A-Z]/g,m=>"-"+m.toLowerCase()),h=z(()=>{try{let m=Kt.call(t,p,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(g,jn(g,m??""))}catch(m){Jt(n,"aria."+c,m)}},{depth:n.path.length,label:gt(n,"aria."+c)});h._attrName=g,n.__effects.push(h);continue}if(typeof l!="function")continue;let f=Ut(t,Sa(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,p=>"-"+p.toLowerCase()),d=z(()=>{try{let p=f(t,t.state,t.context);if(!t.node?.setAttribute)return;ps(t.node,u,p)}catch(p){Jt(n,"aria."+c,p)}},{depth:n.path.length,label:gt(n,"aria."+c)});d._attrName=u,n.__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 g=l,h="data-"+c.replace(/[A-Z]/g,y=>"-"+y.toLowerCase()),m=z(()=>{try{let y=Kt.call(t,g,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,y??"")}catch(y){Jt(n,"data."+c,y)}},{depth:n.path.length,label:gt(n,"data."+c)});m._attrName=h,n.__effects.push(m);continue}if(typeof l!="function")continue;let f=Ut(t,Sa(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),p=z(()=>{try{let g=f(t,t.state,t.context);if(!t.node?.setAttribute)return;g==null||g===!1?t.node.removeAttribute(d):typeof g!="function"&&typeof g!="object"&&t.node.setAttribute(d,g===!0?"":g)}catch(g){Jt(n,"data."+c,g)}},{depth:n.path.length,label:gt(n,"data."+c)});p._attrName=d,n.__effects.push(p)}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,Sa(t.classDeps,c),i[c]),f=z(()=>{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){Jt(n,"class."+c,u)}},{depth:n.path.length,label:gt(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&SP(t,n,t.if);for(let c of Object.keys(t)){if(Ht.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||Ke(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(Xe(u,c)&&!Jr(u,c)){let d=ur(c)||c,p=Ut(t,t[c+"Deps"],f),g=z(()=>{try{let h=p(t,t.state,t.context);typeof h=="string"&&h.includes("{{")&&(h=Kt.call(t,h,t.state)),t.node?.setAttribute&&ps(t.node,d,h,!0)}catch(h){Jt(n,c,h)}},{depth:n.path.length,label:gt(n,c)});g._attrName=d.toLowerCase(),n.__effects.push(g)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Ht.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Ke(c)||Jr(a,c)||gs[c]||!Xe(a,c))continue;let u=ur(c)||c,d=z(()=>{try{let p=Kt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,jn(u,p??""))}catch(p){Jt(n,c,p)}},{depth:n.path.length,label:gt(n,c)});d._attrName=u.toLowerCase(),n.__effects.push(d)}if(AU(t),$U(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=z(()=>{let p=[];for(let m=0;m<l.length;m++){let y=l[m];try{p[m]=typeof y=="function"?y(t,t.state,t.context):t.state?.[y]}catch{p[m]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let m=0;!g&&m<p.length;m++)p[m]!==u[m]&&(g=!0);let h=u;u=p,g&&Ge(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(Ye(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:gt(n,"onStateUpdate")});n.__effects.push(d)}RU(t)}function FR(t){let e=t.parent,n=e?.node;if(!n||!t.node){ig(t,t.parent);return}let r=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===n){r=a.node;break}}r?n.insertBefore(t.node,r):n.appendChild(t.node),Nh()}function wP(t){xP(t),BU(t),PP(t),JU(t),ZU(t)}function SP(t,e,n){let r=Ut(t,t.ifDeps,n),o=z(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,Y6(t,s),r=Ut(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=r(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=Xr(t)),t.node&&(t.node.ref=t),FR(t),xP(t),PP(t),Gt("Render",t,{}),_0(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=Mn(t)),Gt("Init",t,{});let c=ht.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||Xr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let f=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(f),e.__fragmentAnchor=f}Gt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),$P(t,{}),_P(t,{skipIfEffect:!0}),wP(t),FP(t,{}),FR(t),Gt("Create",t,{}),Gt("Complete",t,{}),Gt("Render",t,{}),Gt("RenderRouter",t,{}),_0(t,{})}},{depth:e.path.length,label:gt(e,"if")});e.__effects.push(o)}function ds(t,e){let n=t.node;if(!n)return;let r=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==r&&(n.nodeValue=r);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==r&&(s.nodeValue=r):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(r),n.insertBefore(s,n.firstChild)):(n.textContent=r,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),o&&(o.__textNode=s||null)}function mU(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function yU(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function ps(t,e,n,r){n==null||n===!1&&!ms(e)?sg(t,e,null):typeof n=="function"||typeof n=="object"||(r&&e==="src"&&"src"in t?t.src=n:sg(t,e,jn(e,n)))}function sg(t,e,n){let r=mU(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),yU(t,r)}function jR(t,e){let n=t.node;if(!n||!("value"in n))return;let r=e==null?"":String(e);if(n.value===r)return;let o=typeof document<"u"&&document.activeElement===n,s=o&&typeof n.selectionStart=="number"?n.selectionStart:null,i=o&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,o&&s!=null&&i!=null)try{n.setSelectionRange(s,i)}catch{}let a=t.__ref&&t.__ref.__autoGrow;a&&a.active&&a.resize()}function xP(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&ds(t,t.text),LP(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 n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let r in t.style)if(typeof t.style[r]=="function"){n={};for(let o in t.style)typeof t.style[o]!="function"&&(n[o]=t.style[o]);break}eo(e,hs(t,n))}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let r=t.attr[n];typeof r=="function"||typeof r=="object"||r!=null&&(typeof r=="string"&&r.includes("{{")||r===!1&&!ms(n)||e.setAttribute&&e.setAttribute(n,jn(n,r)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let r=t.data[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||typeof r=="string"&&r.includes("{{")||e.dataset&&(e.dataset[n]=r===!0?"":r)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(r=>r&&e.classList.add(r));else if(typeof n=="object")for(let r in n){let o=typeof n[r]=="function"?n[r](t,t.state,t.context):n[r];o&&e.classList.add(typeof o=="string"?o:r)}}}}function ka(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function bU(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function Uf(t,e){if(!t||!t.style||!e)return null;let n=t.style,r=[];for(let o in e){if(e[o]==null||o.charAt(0)==="&")continue;let i=dr(o);r.push(i,C0(n,i),kP(n,i))}return r}function C0(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function kP(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function dr(t){return fs(t)}function x0(t,e,n){if(!t||!t.style||!e||!e.length)return;let r=t.style,o=new Set;if(n&&typeof n=="object")for(let s in n)n[s]==null||s.charAt(0)==="&"||o.add(dr(s));for(let s=0;s<e.length;s+=3){let i=e[s];o.has(i)||C0(r,i)===e[s+1]&&typeof r.removeProperty=="function"&&r.removeProperty(i)}}function Vf(t,e){if(!e||!t||!t.style)return!1;let n=t.style;for(let r=0;r<e.length;r+=3)if(C0(n,e[r])!==e[r+1]||kP(n,e[r])!==e[r+2])return!1;return!0}var Kf=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,vP=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",fg=t=>Kf(t)?t:"--"+t;function ug(t,e){if(!no(t))return null;let n=null;for(let r of Object.keys(t)){if(!r)continue;let o=t[r];if(typeof o=="function"){if(!e)continue;o=o(e,e.state,e.context)}vP(o)&&(n||(n={}),n[fg(r)]=o)}return n}function EP(t,e,n,r,o){AP(t,o,Ut(t,r,n),s=>vP(s)?{[e]:s}:null)}function AP(t,e,n,r,o){let s=t.__ref,i,a=null,c=z(()=>{Ge(t,()=>{try{let l=r(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=ka(l);(u===null||u!==i||!Vf(f,a))&&(i=u,x0(f,a,l),l&&eo(f,l),a=l?Uf(f,l):null,o&&o(l))}catch(l){Jt(s,e,l)}})},{depth:s.path.length,label:gt(s,e)});s.__effects.push(c)}function _U(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){wU(t,n),e.__exec.vars=n;return}if(no(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||EP(t,fg(r),o,Sa(t.varsDeps,r),"vars."+r)}}function wU(t,e){let n=t.__ref;AP(t,"vars",Ut(t,t.varsDeps,e),r=>ug(r),r=>{n.__varsInline=r?new Set(Object.keys(r)):null})}function k0(t,e){if(typeof t[e]=="function"&&(Jr(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!Kf(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!no(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&fg(r)===e)return!0;return!1}function SU(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(dr(n)));return e}function xU(t,e,n,r){let o=t.__ref;if(!o)return;let s=null;if(n)for(let i of n){if(r&&r.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=dr(i);ls[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function CP(t,e){let n=t.__ref,r=n&&n.__declaredLonghands;if(!r||!e)return null;let o=null;for(let s in r){if(e.has(s))continue;let i=ls[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=r[s])}return o}function BR(t,e){let n=t.node;eo(n,e);let r=SU(e);if(!r)return e;let o=t.__ref;if(o)if(o.__inlineCssKeys)for(let i of r)o.__inlineCssKeys.add(i);else o.__inlineCssKeys=new Set(r);let s=CP(t,r);return s?(eo(n,s),Object.assign({},e,s)):e}function kU(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=CP(t,e.__inlineCssKeys);n&&eo(t.node,n)}function hs(t,e){return!e||typeof e!="object"?e:Ge(t,()=>{try{return Vx(e,t)}catch{return e}})}function eo(t,e){if(!t||!e||!t.style)return;let n=null;for(let r in e){let o=e[r];if(o!=null){if(r.charAt(0)==="&"&&typeof o=="object"){n||(n={}),n[r]=o;continue}try{let s=String(o);if(typeof o=="object"&&s==="[object Object]")continue;let i=fs(r),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}n&&vU(t,n)}function vU(t,e){let n=`_ds${iP.scopedStyleId++}`;t.classList.add(n);let r=t.ownerDocument,o=r.querySelector("style[data-smbls-scoped]");o||(o=r.createElement("style"),o.setAttribute("data-smbls-scoped",""),r.head.appendChild(o));let s="";for(let i in e){let a="."+n,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 p=l[d];if(typeof p=="object"){let g=d.includes("&")?c.split(", ").map(m=>d.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${d}`).join(", "),h="";for(let m in p)h+=`${dr(m)}: ${p[m]};`;u+=ar(`${g} { ${h} }`,g)+`
60
- `}else f+=`${dr(d)}: ${p};`}f&&(s+=ar(`${c} { ${f} }`,c)+`
61
- `),u&&(s+=u)}}s&&(o.textContent+=s)}var UR=new Set;function VR(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function EU(t,e,n){let r=VR(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(VR(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";UR.has(s)||(UR.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.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 core.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 AU(t){let e=t.subscribeTo,n=typeof e=="function",r=e;if(n)try{r=e(t,t.state,t.context)}catch{r=null}if(n&&tt()&&EU(t,e,Array.isArray(r)?r:[]),!Array.isArray(r)||r.length===0)return;let o=t.__ref;for(let s=0;s<r.length;s++){let i=r[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=z(()=>{let d=t.state&&(wt(t.state)?t.state.root:null);if(!d||!wt(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(wt(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&Ge(t,()=>{try{if(Jh(o)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>Nn(o,!1),m=>{Nn(o,!0),$n("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(Nn(o,!1),h===!1&&(g=!0))}}catch(h){Nn(o,!0),$n("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&o.__effects)for(let h=0;h<o.__effects.length;h++){let m=o.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}!g&&typeof t.onUpdate=="function"&&Ge(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){$n("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:o.path.length,label:gt(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function T0(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 O0(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];return n?/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`:t}var HR=new Set;function CU(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;HR.has(r)||(HR.add(r),console.warn(`[smbls/css] "${t}" at ${n} 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.`))}var zR=new Map;function TU(t){let e=zR.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push($f(o))};return n(ls[t]),n(Gh[t]),zR.set(t,e),e}function WR(t,e,n){if(k0(t,e)||n&&n.has(e))return!0;let r=TU(dr(e));for(let o=0;o<r.length;o++){let s=r[o];if(k0(t,s)||n&&n.has(s))return!0}return!1}function Ta(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(kt[a]){let u=kt[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(o,p)}}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")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,WR(e,u,r))}continue}if(a==="vars"){let u=ug(c,e);if(u)for(let d in u)i(d,u[d],k0(e,d)||!!(r&&r.has(d)));continue}if(T0(a,e)){let u=Ta(c,e,!1,r);Object.keys(u).length&&(o[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){tt()&&CU(a,e);continue}let l=O0(a,e),f=Ta(c,e,!1,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,WR(e,a,r))}}if(n)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 no=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function TP(t,e){for(let n in e){let r=e[n];t[n]=no(r)?TP(no(t[n])?t[n]:{},r):r}return t}function OU(t,e){if(!no(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;no(o)&&(n=TP(n||{},o))}return n}function R0(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 n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&R0(t[n],e+1))return!0}return!1}function OP(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(T0(t,n)){let s=Ta(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=O0(t,n),o=Ta(e,n,!1);return Object.keys(o).length?{cssProp:r,block:o}:null}function RU(t){let e=t.__ref;for(let n of Object.keys(t)){if(!uP(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!R0(r))continue;let o=null,s,i=z(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&bt(a);let c,l=!1;try{let f=OP(n,r,t),u=f?ka(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=Ie({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&mt()}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:gt(e,"cssBlock("+n+")")});e.__effects.push(i)}}var PU=()=>!0,DU=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!kt[t]||!!(Nt&&Nt.has(t))||Kf(t)||t==="vars"};function LU(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(DU(a,n[a])||Ht.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=a0({[e]:n},t.tag||"div",r,PU),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function qR(t,e,n,r,o,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in r){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=r[l](t)}catch(g){Jt(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Kt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&RP(i,e,l);continue}let p=d===!1&&!ms(l)?null:String(jn(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),sg(i,l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function RP(t,e,n){t.getAttribute(n)===e.written.get(n)&&sg(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function IU(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&RP(t.node,e,s)}function PP(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let r of e.owners.keys()){let o=e.written.get(r),s=n.getAttribute(r);s!==o&&(e.base.set(r,s),o==null?n.removeAttribute(r):n.setAttribute(r,o))}}var p0,MU=()=>p0===void 0?p0=tt():p0;function KR(t,e){let n=bd;typeof n=="function"?t.untrackedReads+=n(e):e()}function $U(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,r=new Map;for(let o of Object.keys(t)){let s=o.charAt(0);if(s!=="."&&s!=="!")continue;let i=o.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[o];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,probe:!1,untrackedReads:0},f=LU(t,o,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),_=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&_&&typeof _=="object"&&!Array.isArray(_))){if(m==="vars"&&no(_)){for(let S of Object.keys(_))S&&u.add(fg(S));continue}u.add(m)}}let d=()=>{let m,y=l.probe,_;if(y?KR(l,()=>{_=t[i]}):_=t[i],_===void 0){let x=!!t.state&&i in t.state,w=t.state?t.state[i]:void 0;if(x||w!==void 0)m=w;else{let b=t.context?.cases?.[i];if(b===void 0)return;try{m=typeof b=="function"?b.call(t,t):b}catch(k){m=!1,e.__conditionalError=k,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,k?.message||k)}}}else if(typeof _=="function")try{y?KR(l,()=>{m=_(t,t.state,t.context)}):m=_(t,t.state,t.context)}catch(x){m=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}else m=_;y&&(l.probe=!1);let S=c?!m:!!m;if(!t.node)return;let v=t.context?.designSystem;if(S===l.lastMatch){if(S&&f&&t.node.setAttribute){v&&bt(v);try{qR(t,n,o,f,l,!1)}finally{v&&mt()}}return}l.lastMatch=S,v&&bt(v);try{if(S){let x={},w={},b=!1;for(let C in a){if(!Object.prototype.hasOwnProperty.call(a,C))continue;let D=a[C],R=C.charAt(0);if((R===":"||R==="@"||R==="&"||R==="[")&&D&&typeof D=="object"&&!Array.isArray(D)){if(T0(C,t)){let N=Ta(D,t,!1,u);Object.keys(N).length&&(w[`[data-theme="${C.slice(1)}"] &`]=N,b=!0)}else{let N=O0(C,t),B=Ta(D,t,!1,u);Object.keys(B).length&&(w[N]=B,b=!0)}continue}let $=typeof D=="function"?D(t,t.state,t.context):D;if($!=null){if(kt[C]){let N=kt[C]($,t,t.state,t.context);if(N){let B=Array.isArray(N)?N:[N];for(let et of B)et&&Object.assign(x,et)}}else if(Nt&&Nt.has(C))x[C]=$;else if(Kf(C))x[C]=$;else if(C==="vars"){let N=ug($,t);N&&Object.assign(x,N)}}}let k=Object.keys(x);if(k.length){eo(t.node,x);for(let C of k)r.set(C,o);l.appliedKeys=k}else l.appliedKeys=null;if(b){let C=Ie(w,null,t.context?.cssPrefix,{state:!0}),D=C?C.split(" ").filter(Boolean):[];if(D.length&&t.node.classList){for(let R of D)t.node.classList.add(R);l.appliedClasses=D}else l.appliedClasses=null}else if(l.appliedClasses){for(let C of l.appliedClasses)t.node.classList.remove(C);l.appliedClasses=null}f&&t.node.setAttribute&&qR(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&IU(t,n,o,l),l.appliedKeys){for(let x of l.appliedKeys)r.get(x)===o&&(Kf(x)?t.node.style.removeProperty(x):t.node.style[x]="",r.delete(x));l.appliedKeys=null}if(l.appliedClasses){for(let x of l.appliedClasses)t.node.classList.remove(x);l.appliedClasses=null}}}finally{v&&mt()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=Ut(t,p,d);MU()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=z(g,{depth:e.path.length,label:gt(e,"conditional("+o+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`),e.__effects.push(h)}}var h0=new WeakSet,g0=new WeakMap;function NU(t){let e=g0.get(t);if(e==="painted")return!1;if(e===void 0){g0.set(t,"open");let n=t.defaultView,r=()=>{g0.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(r):setTimeout(r,0)}return!0}function FU(t){let e=t.ownerDocument;!e||h0.has(e)||NU(e)||(h0.add(e),queueMicrotask(()=>{h0.delete(e);let n=e.body||e.documentElement;n&&n.offsetWidth}))}var m0=new WeakSet,GR=!1;function YR(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function v0(t,e){let n={...t};for(let r in e){let o=e[r],s=n[r];n[r]=o&&typeof o=="object"&&s&&typeof s=="object"?v0(s,o):o}return n}function DP(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=DP(o,e);Object.keys(s).length&&(n[r]=s)}else e(r)||(n[r]=o)}return n}function XR(t,e,n){let r=P0(t);if(!r)return!1;for(let o=0;o<r.length;o+=3){let s=r[o+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&KO(r[o],i,r[o+2]))return!0}return!1}function jU(t,e,n){let r=1/0,o=-1/0;for(let i of e.values())i<r&&(r=i),i>o&&(o=i);if(n)for(let i of n.values())i>o&&(o=i);if(o<=r)return null;let s=null;for(let[i,a]of e){if(a===o)continue;let c=P0(i);if(c)for(let l=0;l<c.length;l+=3){let f=c[l],u=c[l+1],d=c[l+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&Yh(f,t[u],d),m=!h&&g!==void 0&&g>a&&Yh(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var ZR=new Map;function P0(t){let e=ZR.get(t);if(e!==void 0)return e;let n=dr(t),r=ls[n];if(e=null,Array.isArray(r)){e=[];for(let o of r)e.push(o,$f(o),n)}return ZR.set(t,e),e}function LP(t){let{node:e}=t;if(!e)return;if(GR||(GR=!0,Ie({display:"none"})),m0.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}m0.add(t);let n=t.context?.designSystem;n&&bt(n),zh();try{let r={},o=!1,s=[],i=null,a=null,c=null,l=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=(v,x)=>{if(x&&typeof x=="object"&&YR(v)){c||(c={});let w=c[v];w&&(x=v0(w,x)),c[v]=x}else(x===null||typeof x!="object")&&(l||(l=new Set),l.add(v),u!==void 0&&(d||(d=new Map),d.set(v,u)));r[v]=x};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&kt.theme){let v=kt.theme(t.theme,t,t.state,t.context);if(v){let x=w=>{for(let b in w){let k=w[b];k&&typeof k=="object"?YR(b)&&(i||(i={}),i[b]=k):P0(b)&&(a||(a=[])).push(b),r[b]=k}};if(Array.isArray(v))for(let w of v)w&&x(w);else x(v);o=!0}}let h=(v,x)=>{if(v==="vars"){let w=ug(x);if(w){for(let b in w)g(b,w[b]);o=!0}return}if(kt[v]){let w=kt[v](x,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let b of w)if(b)for(let k in b)g(k,b[k])}else for(let b in w)g(b,w[b]);o=!0}}else if(Nt&&Nt.has(v))x!=null&&typeof x!="object"&&(g(v,x),o=!0);else if(v.charCodeAt(0)===45)x!=null&&typeof x!="object"&&(g(v,x),o=!0);else if((v.charAt(0)==="&"||v.charAt(0)==="@"||v.charAt(0)===":"||v.charAt(0)==="[")&&x&&typeof x=="object"&&!Array.isArray(x)){if(R0(x))return;let w=OP(v,x,t);w&&(g(w.cssProp,w.block),o=!0)}};if(typeof t.class=="string"){let v=OU(t.class,t.context?.designSystem?.class);if(v)for(let x in v)h(x,v[x])}let m=l?new Set(l):null,y=t.tag||"div";for(let v of Object.keys(t)){if(typeof t[v]=="function"){let w=f&&f.get(v);w!==void 0&&Jr(y,v)&&(p||(p=new Map),p.set(dr(v),w));continue}if(u=f?f.get(v):void 0,v==="vars"){h(v,t[v]);continue}if(Ht.has(v)||v==="theme")continue;let x=v.charCodeAt(0);x>=65&&x<=90||Ke(v)||eg(y,v)||h(v,t[v])}u=void 0;let _=d?jU(r,d,p):null;if(a&&l)for(let v of a)l.has(v)||!(v in r)||XR(v,r,l)&&delete r[v];if(i){let v=l?x=>l.has(x)||XR(x,r,l):null;for(let x in i){let w=v?DP(i[x],v):i[x];c&&c[x]&&(w=v0(w,c[x])),Object.keys(w).length?r[x]=w:delete r[x]}}if(xU(t,r,l,_?new Set([...m||[],..._]):m),o){r.display&&String(r.display).includes("!important")&&(e.style.setProperty("display",String(r.display).replace(/\s*!important\s*$/,""),"important"),delete r.display);let v=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof v=="string"&&v!==""&&r.display&&r.display!==v&&(r.display=v);let x=Ie(r,null,t.context?.cssPrefix);if(s=x?x.split(" ").filter(Boolean):[],x&&e.classList){let w=s,b=!1;for(let k of w)e.classList.add(k),b||(k.charCodeAt(0)===95&&k.charCodeAt(1)===99||k.charCodeAt(0)===95&&k.indexOf("_c",1)!==-1)&&(b=!0);b&&FU(e)}}let S=t.__ref;if(S){let v=S.__staticCssClasses;if(v&&e.classList){let x=new Set(s);for(let w of v)x.has(w)||e.classList.remove(w)}S.__staticCssClasses=s}kU(t)}finally{Wh(),n&&mt(),m0.delete(t)}}var qx=t=>!!kt[t]||!!(Nt&&Nt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function Kx(t){t&&t.node&&LP(t)}function BU(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,jn(i,s))}let n=i0(t);for(let o in n){let s=n[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let r=t.tag||"div";for(let o of Object.keys(t)){if(typeof t[o]=="function"||Ht.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Ke(o)&&!Jr(r,o)&&Xe(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!gs[o])continue;i=Kt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!ms(ur(o)||o))continue;let a=ur(o)||o;e.setAttribute(a,jn(a,i))}}}function Gx(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||Ke(e))return;let o=t.tag||"div";if(Jr(o,e)||!Xe(o,e))return;let s=ur(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=gs[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Kt.call(t,l,t.state)),ps(n,s,l)}function UU(t,e){let n=t.node,r=t.__ref,o=r.__autoGrow;if(!e){if(o&&o.active){try{n.removeEventListener("input",o.resize)}catch{}QR(o),Qr.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),eP(n,o,!1),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=r.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){Gf(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,JR(t,o);return}o.awaitingLayout=!1;let i=zU(n),a=WU(i),c=n.style.height;n.style.height="0px",a&&y0(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&y0(n);return}let f=qU(n,i),u=f!=null&&l<f?f:l,d=YU(i),p=d!=null&&u>d;n.style.height=GU(p?d:u,i)+"px",a&&y0(n),eP(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,JR(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}QR(o),Qr.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,HU(t,o));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,o.appliedMax=s),o.resize()}function Gf(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),Qr.add(t),Yf())}function VU(){let t=Array.from(Qr);Qr.clear();for(let e=0;e<t.length;e++){let n=t[e],r=n.node,o=n.__ref?.__autoGrow;if(!(!r||!o||!o.active)){if(!r.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=Ca()),o.attachAttempts+=1,o.attachAttempts<=lP&&Ca()-o.firstAttemptAt<fP&&(Qr.add(n),Yf());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function JR(t,e){if(e.watch)return;let n=t.node;if(!n)return;let r=n.ownerDocument&&n.ownerDocument.defaultView,o=r&&r.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof o!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Gf(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Gf(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function QR(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function HU(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,r=n&&n.fonts&&n.fonts.ready;!r||typeof r.then!="function"||r.then(()=>{e.active&&t.node&&Gf(t,!0)},()=>{})}function zU(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var bs=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,D0=t=>(bs(t.paddingTop)||0)+(bs(t.paddingBottom)||0),IP=t=>(bs(t.borderTopWidth)||0)+(bs(t.borderBottomWidth)||0);function WU(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let r=0;r<e.length;r++){let o=e[r].trim();if(!(o!=="all"&&o!=="height")&&parseFloat(n[r%n.length])>0)return!0}return!1}function y0(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let r=e[n];if(r&&r.transitionProperty==="height")try{r.cancel()}catch{}}}function qU(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let r=bs(e.lineHeight)||KU(t,e);return r>0?n*r+D0(e):null}var Bf=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],tP=new WeakMap;function KU(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=tP.get(n);o||(o=new Map,tP.set(n,o));let s=Bf.map(l=>e[l]||"").join("|");if(o.has(s))return o.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<Bf.length;l++)e[Bf[l]]&&(a[Bf[l]]=e[Bf[l]]);let c=0;try{r.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(o.set(s,c),c):null}function GU(t,e){return e?e.boxSizing==="border-box"?t+IP(e):e.boxSizing==="content-box"?Math.max(0,t-D0(e)):t:t}function YU(t){if(!t)return null;let e=bs(t.maxHeight);if(e==null||!(e>0))return null;let n=D0(t),r=IP(t),o=t.boxSizing==="border-box"?e-r:e+n,s=bs(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function eP(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var nP=["srcObject","muted"],XU=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function ZU(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<nP.length;r++){let o=nP[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=XU(o,a);if(e[o]!==c)try{e[o]=c}catch(l){Jt(n,o,l)}};if(typeof s=="function"){let a=Ut(t,t[o+"Deps"],s),c=z(()=>{try{i(a(t,t.state,t.context))}catch(l){Jt(n,o,l)}},{depth:n.path.length,label:gt(n,o)});n.__effects.push(c),n.__exec[o]=s}else i(s);o==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function JU(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?Ut(t,t.autoGrowDeps,r):null,s=z(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===r&&o?o:i)(t,t.state,t.context)}catch{a=null}UU(t,a)},{depth:n.path.length,label:gt(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var MP=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function $P(t,e){let n=!1;for(let r of Object.keys(t)){if(!Ke(r)||MP.has(r))continue;if(r==="onInView"||r==="onLeaveView"){n=!0;continue}let o=Bh(r);if(o){Uh(o,t,t[r]);continue}let s=t[r],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=Df(t,s),typeof s!="function")continue;let a=Fh(r);Ln.has(a)||fa(z6(a),t,s,i)}QU(t),n&&ht.viewEvents&&ht.viewEvents(t)}function QU(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of MP){let p=t[d];typeof p=="function"&&(n[d]=p,r=!0)}if(!r)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 p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),_=Math.abs(h);if(Math.max(y,_)<o)return;let S;if(y>_*1.2)S=g<0?"left":"right";else if(_>y*1.2)S=h<0?"up":"down";else return;let v="onSwipe"+S.charAt(0).toUpperCase()+S.slice(1),x=n[v],w=n.onSwipe;x&&x.call(t,d,t,t.state,t.context),w&&w.call(t,{direction:S,dx:g,dy:h,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 L0(t,e,n,r,o,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=r;if(typeof r=="function")try{l=r(t,c)}catch{l=null}let f=typeof r=="function"?Wf(l):o;if(a&&!i&&(f=qf(f,Wf(e))),i){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),c=l?{...l,state:u}:{state:u}}else l&&(c=Me(l,c));return c=Zf(c,s),{def:c,key:dP(c?.key,e,n,t),supplied:f,props:l}}function Zf(t,e){if(!e||!t||t.ignoreChildExtends)return t;if(!t.extends)return{...t,extends:e};let n=Array.isArray(t.extends)?t.extends:[t.extends],r=Array.isArray(e)?e:[e];return{...t,extends:[...r,...n]}}var ro=t=>{let e=t&&t.__ref;if(!e||e.__if===!1)return null;let n=t.node;return n&&n.nodeType!==11?n:null},NP=(t,e)=>e?e.nextSibling:Zh(t.node,t.__ref.__textNode),dg=(t,e,n)=>{let r=NP(t,n);return e!==r&&t.node.insertBefore(e,r),e},Jf=(t,e)=>{let n=NP(t,e);return n?{position:"before",node:n}:void 0};function I0(t,e,n){let r=null;for(let o=0;o<e.length;o++){if(n&&n.has(e[o]))continue;let s=ro(t[e[o]]);s&&(r=dg(t,s,r))}}function rP(t,e,n,r){let o=ht.rows,s=o!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?o.track(t):null,i=M0(t,e,n,r,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function M0(t,e,n,r,o,s){if(!e||!t.node)return;let i=t.childExtends,a=to(t,"childProps"),c=t.__ref,l=ht.mount,f=r>0&&t.tag!=="fragment"&&c?r:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let m=L0(t,e[g],g,u,a,i,d,o);s&&s.add(m.key,e[g],m,u,i);try{let y=zt(ys(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),og(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let _=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${_} (initial render, skipping this row):`,y?.message||y)}return null}};if(!f){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=gP(e,t);if(Array.isArray(u))return M0(t,u,n,r,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(Ht.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=o?qf(a,Wf(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Me(t.childProps,h)),h=Zf(h,i);let y=zt(ys(h,m),t,cg(t,p),n,g);return og(t,y),y};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Aa(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let r=n.options;if(!r||!r.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=Kt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<r.length;f++)r[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function FP(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function",i=s||yP(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=Ut(t,t.childrenDeps,u),m=z(()=>{let y=p;p=!0;let _;try{_=h(t,t.state,t.context)}catch(D){if(typeof console<"u"&&console.error){let R=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${R}${y?"":" (initial run, treating as empty)"}:`,D?.message||D)}return}if(!y){g=_;return}if(_===t.children)return;NR(t,_),t.children=_,d.__mount&&d.__mount.chunkGen++;let S=typeof t.onContentUpdate=="function",v=S?[]:null,x=S?[]:null,w=S?[]:null;if(Array.isArray(_)&&t.childrenAs==="state"){let D=t.childProps,R=[],$=new Map;for(let it=0;it<_.length;it++){let q=_[it],G=D;if(typeof D=="function")try{G=D(t,q)}catch{G=null}let nt=dP(G&&G.key,q,it,t);R.push(nt),$.set(nt,{rawChild:q,childProps:G})}let N=new Set(R),B=PR(d,d.__children.slice());for(let it of B)if(!N.has(it)){let q=t[it];q?.remove&&q.remove(),delete t[it],x&&x.push(it)}let et=t.childExtends,st=!(t.tag==="fragment")&&!!t.node,Dt=null,Lt=new Set;for(let it of R){let q=$.get(it),G=q.rawChild,nt=t[it];if(nt&&nt.state){if(G&&typeof G=="object"){let ct=nt.state,yn=ct.$replace||ct.replace,re=ct.$update||ct.update;try{if(typeof yn=="function")yn.call(ct,G);else if(typeof re=="function"){for(let Ot in ct)if(!(Ot==="__element"||Ot==="root"||Ot==="parent"||Ot==="update")&&!Object.prototype.hasOwnProperty.call(G,Ot))try{ct[Ot]=void 0}catch{}re.call(ct,G)}else for(let Ot in G)ct[Ot]=G[Ot]}catch(Ot){if(typeof console<"u"&&console.error){let bn=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${it}" failed to patch at ${bn} (reconcile, keeping its previous data for this pass):`,Ot?.message||Ot)}}}if(w&&w.push(it),st){let ct=ro(nt);ct&&(Dt=dg(t,ct,Dt))}continue}let J=G;(typeof G=="string"||typeof G=="number")&&(J={value:G,text:G});let ft=q.childProps,Y=Zf(ft?{...ft,state:J}:{state:J},et),Q=typeof D=="function"?Wf(ft):to(t,"childProps"),Ct;try{Ct=zt(ys(Y,Q),t,it,e,st?Jf(t,Dt):void 0)}catch(ct){if(typeof console<"u"&&console.error){let yn=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${it}" failed to construct at ${yn} (reconcile, skipping this row):`,ct?.message||ct)}Lt.add(it);continue}if(d.__disposed)return;if(st){let ct=ro(Ct);ct&&(Dt=ct)}v&&v.push(it)}st&&I0(t,R,Lt.size?Lt:null),d.__children=Lt.size?R.filter(it=>!Lt.has(it)):R,S&&(v.length||x.length)&&ng(t,{added:v,removed:x,kept:w}),Aa(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&ht.rows.reconcile(t,d,_,e,S)){Aa(t,!1);return}let C=S?[...d.__children]:null;for(let D of PR(d,[...d.__children])){let R=t[D];R?.remove&&R.remove(),delete t[D]}d.__children=[],rP(t,_,e,0),Aa(t,!1),S&&ng(t,{added:[...d.__children],removed:C,kept:[]})},{depth:d.path.length,label:gt(d,"children")});d.__effects.push(m),n=g,NR(t,n),t.children=n}let a=ht.mount,c=a!==null?a.budgetOf(t,e):0,l=Nf(t.__ref),f=s?rP(t,n,e,c):M0(t,n,e,c,i);if(c&&Nf(t.__ref)>l){a.defer(t,c,()=>oP(t,e,n,r,o,f,c));return}oP(t,e,n,r,o,f,c)}function oP(t,e,n,r,o,s,i){let a=Nf(t.__ref);if(r!=null&&!(r&&r.__ref)){let c=r;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=Me(t.childProps,c)),c=Zf(c,o);let l=qf(to(t,"childProps"),to(t,"content"));og(t,zt(ys(c,l),t,"content",e))}if(!(n&&!s)){if(i&&Nf(t.__ref)>a){ht.mount.defer(t,i,()=>sP(t,e,o,i));return}sP(t,e,o,i)}}function sP(t,e,n,r){let o=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f];if(!u.endsWith("Extends")||typeof t[u]!="string")continue;let d=u.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[u]};delete t[u];for(let g=f+1;g<l.length;g++){let h=l[g],m=h.charCodeAt(0);if(m>=65&&m<=90||Ht.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let y=t[h];y!==void 0&&(p[h]=y,delete t[h],i&&zf(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(Ht.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let f=l.charCodeAt(0);if(f<65||f>90)return!1;let u=t[l];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=o[l]||o[`smbls.${l}`];p&&(u={...u,extends:p})}t.childProps&&(u=Me(t.childProps,u)),u=Zf(u,n);let d=s?qf(to(t,"childProps"),qf(i[l]||null,to(t,l))):null;og(t,zt(ys(u,d),t,l,e))};if(!r){for(let l of a)c(l);return}ht.mount.run(t,a.length,l=>c(a[l]),r)}function ig(t,e,n){let{node:r}=t;if(!r)return;r.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let a=o.parentNode;if(a){if(n?.position==="before"&&n.node)a.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;a.insertBefore(r,c||o)}else a.insertBefore(r,o);Nh();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&ht.hydration!==null){let a=t.context&&t.context.__hydration;if(a&&ht.hydration.place(a,t,e,s,r))return}let i=n?.node;if(i&&i.parentNode!==s)s.appendChild(r);else if(n?.position==="before"&&i)s.insertBefore(r,i);else if(n?.position==="after"&&n.node){let a=n.node.nextSibling;a?s.insertBefore(r,a):s.appendChild(r)}else s.appendChild(r);Nh()}var ag=3;function Jh(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=ag?!1:(t.__inBeforeUpdate=!0,!0)}function Nn(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===ag&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${ag}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Gt(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);$n(r,e,n);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&&bt(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{Ye(e,o,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(Ye(e,o,u),e.context?.strictMode)throw u}finally{l&&mt(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var Qf=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),VP=1e3,HP=24,$0=Object.freeze({}),j0=Object.freeze({}),Oa=0,pg=t=>{if(wt(t)||Qf(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function N0(t,e,n){if(t===null||typeof t!="object")return t;if(--Oa<0||e>HP){Oa=-1;return}if(Array.isArray(t)){let o=new Array(t.length);for(let s=0;s<t.length;s++)o[s]=n?t[s]:N0(t[s],e+1,!1);return o}if(n||!pg(t))return t;let r={};for(let o in t)Qf(t,o)&&(r[o]=N0(t[o],e+1,o==="extends"||o==="childExtends"));return r}function jP(t){Oa=VP;let e;try{e=N0(t,0,!1)}catch{return $0}return Oa<0?$0:e}function F0(t,e,n,r){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Oa<0||n>HP)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(r?t[s]!==e[s]:!F0(t[s],e[s],n+1,!1))return!1;return!0}if(r||Array.isArray(e)||!pg(t)||!pg(e))return!1;let o=0;for(let s in t)if(Qf(t,s)&&(o++,!Qf(e,s)||!F0(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)Qf(e,s)&&o--;return o===0}function BP(t,e){if(e===$0||e===j0)return!1;Oa=VP;try{return F0(t,e,0,!1)}catch{return!1}}var hg=t=>Te()?xe(()=>jP(t)):jP(t),UP=(t,e)=>Te()?xe(()=>BP(t,e)):BP(t,e);function zP(t,e,n,r){let o=t;return o&&typeof o=="object"&&!Array.isArray(o)&&!pg(o)&&(r||n&&!o.ignoreChildExtends)&&(o=r?Me({},o):{...o}),typeof e=="function"?{item:o,props:r}:o}var WP=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),gg=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,r,o,s){this.rows.set(e,hg(zP(n,o,s,r.props)))}failed(e){this.rows.set(e,j0)}none(e){this.rows.delete(e)}},tV=Object.freeze([]);function eV(t,e,n,r,o){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=WP(t),c=UP(a,i),l=t.childProps,f=to(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let b=0;b<n.length;b++){let k=L0(t,n[b],b,l,f,u,!1,!0);if(p.has(k.key))return!1;p.set(k.key,k),d[b]=k}for(let b=0;b<d.length;b++){let k=d[b];k.input=zP(n[b],l,u,k.props);let C=c?s.get(k.key):void 0;if(C===void 0)continue;let D=t[k.key];D&&D.__ref&&D.parent===t&&UP(k.input,C)&&(k.kept=!0,k.snap=C)}let g=o?[]:null;for(let b of s.keys()){let k=p.get(b);if(k&&k.kept)continue;let C=t[b];C?.remove&&C.remove(),delete t[b],g&&g.push(b)}let h=o?[]:null,m=o?[]:null,y=new Map,_=null,S=null;for(let b=0;b<d.length;b++){let k=d[b];if(k.kept){y.set(k.key,k.snap),m&&m.push(k.key);let R=ro(t[k.key]);R&&(S=dg(t,R,S));continue}y.set(k.key,hg(k.input));let C;try{C=zt(ys(k.def,k.supplied),t,k.key,r,Jf(t,S))}catch(R){if(y.set(k.key,j0),_||(_=new Set),_.add(k.key),typeof console<"u"&&console.error){let $=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${k.key}" failed to construct at ${$} (re-run, skipping this row):`,R?.message||R)}continue}if(e.__disposed)return!0;if(!C){y.delete(k.key);continue}let D=ro(C);D&&(S=D),h&&h.push(k.key)}e.__plainRows=new gg(c?i:hg(a),y);let v=Array.from(y.keys());I0(t,v,_);let x=new Set(e.__children),w=[];for(let b=0;b<v.length;b++)x.has(v[b])&&w.push(v[b]);for(let b of e.__children)y.has(b)||w.push(b);return e.__children=w,o&&(h.length||g.length)&&ng(t,{added:h,removed:g,kept:m}),!0}var qP={track:t=>new gg(hg(WP(t)),new Map),reconcile(t,e,n,r,o){let s=Array.isArray(n)?n:n==null||n===!1?tV:null;return!!s&&eV(t,e,s,r,o)}};var mg=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?mg(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o},nV=new Set(["src","srcset"]);function B0(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=Mn(t);if(n==="string"||n==="fragment")return null;let r=mg(t),o=e.registry[r===""?"__root":r],s=o!==void 0?e.nodes[o]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return o!==void 0&&e.misses++,null;let i=lr(n)&&(n==="svg"||t.parent?.node?.namespaceURI===us),a=lr(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===us:s.namespaceURI!==us;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let f=s.parentNode,u=f?(e.pendingIn.get(f)||1)-1:0;u>0?e.pendingIn.set(f,u):f&&e.pendingIn.delete(f)}for(let f of Array.from(s.getAttributeNames?s.getAttributeNames():[]))nV.has(f)||s.removeAttribute(f);if(l)for(let f=s.firstChild;f;){let u=f.nextSibling;l.has(f)||s.removeChild(f),f=u}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&oV(s),s}var rV=500;function oV(t){let e=!1,n=!1,r=o=>{o.isTrusted&&(n?o.stopImmediatePropagation():e=!0,t.removeEventListener("load",r,!0))};t.addEventListener("load",r,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",r,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",r,!0),rV)}},0)}function sV(t,e,n,r,o){let s=t.pendingIn;if(!s||!s.has(r))return!1;if(o.parentNode===r&&t.claimed.has(o))return!0;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let f=l-1;f>=0;f--){let u=n[c[f]],d=u&&u.node;if(d&&d!==o&&d.parentNode===r){i=d.nextSibling;break}}return i===void 0&&(i=Zh(r,a&&a.__textNode)),i===o||r.insertBefore(o,i),!0}var KP={adopt:B0,place:sV};var Ss=50;function Bn(t){return t===!0?Ss:typeof t=="number"&&t>0?t:0}var Ra=[],nu=!1,so=0,pr=Ss,ru=!1,bg=[],_g=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),yg=[],tu=null;function iV(t){if(!tu){let e=new MessageChannel;e.port1.onmessage=()=>{let n=yg.shift();!yg.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},tu=e}yg.push(t),yg.length===1&&typeof tu.port1.ref=="function"&&tu.port1.ref(),tu.port2.postMessage(0)}function z0(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof setImmediate=="function"){setImmediate(t);return}if(typeof MessageChannel=="function"){iV(t);return}setTimeout(t,0)}function io(){return new Promise(t=>z0(t))}var eu=0,V0=0,H0=0,Pa=0;function W0(){eu=0,V0=so,H0=0,Pa=0}function GP(){if(!so)return!1;if(eu++,Pa>0)return Pa--,!1;let t=_g(),e=t-so,n=e/eu,r=(t-V0)/(eu-H0),o=r>n?r:n;V0=t,H0=eu;let s=pr-e-o;return s<=0?(ru=!0,!0):(Pa=o>0?Math.floor(s/o/2):0,!1)}var ws=0;function YP(t=Ss){ws===0&&!so?(so=_g(),ru=!1,pr=t,W0()):t<pr&&(pr=t,Pa=0),ws++}var _s=null,U0=!1,aV=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function q0(){so=0,ru=!1,pr=Ss,W0()}function cV(){U0||(U0=!0,aV(()=>{U0=!1,ws===0&&q0()}))}function XP(){ws>0&&ws--,!(ws!==0||_s!==null)&&(nu?cV():q0())}function K0(t,e=Ss){let n={fn:t,budget:e};_s?_s.push(n):Ra.push(n),nu||(nu=!0,z0(ZP))}function lV(t){let e=_s;_s=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=_s;_s=e,n.length&&Ra.unshift(...n)}}function hr(){return!nu&&!Ra.length?Promise.resolve():new Promise(t=>bg.push(t))}function fV(){if(!bg.length)return;let t=bg;bg=[];for(let e=0;e<t.length;e++)t[e]()}function ZP(){for(so=_g(),ru=!1,pr=1/0,W0();Ra.length;){let t=Ra.shift();if(t.budget<pr&&(pr=t.budget,Pa=0),lV(t),ru||_g()-so>=pr)break}if(ws=0,q0(),Ra.length){z0(ZP);return}nu=!1,fV()}function wg(t){ma(t.__ref).pending++}function $e(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let r=n.tail;r&&(n.tail=null,r())}function Sg(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function xs(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.tail?Promise.resolve(t):new Promise(n=>{(e.waiters||(e.waiters=[])).push(n)})}function G0(t,e=t&&t.__ref){let n=e&&e.__mount,r=n&&n.waiters;if(r){n.waiters=null;for(let o=0;o<r.length;o++)r[o](t)}}function JP(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let r=n.holder;n.holder=null,G0(t,e),r&&$e(r)}function uV(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let r=n?Bn(n):0,o=Bn(t.yieldChildren);return r&&o?r<o?r:o:r||o}function QP(t,e,n,r,o){YP(r);try{tD(t,t.__ref,0,e,n,r,o,!1)}finally{XP()}}function tD(t,e,n,r,o,s,i,a){try{for(let c=n;c<r;c++){let l=e.__mount,f=l?l.pending:0;if(o(c)===!1)continue;if(e.__disposed)break;let u=GP(),d=e.__mount;if(c+1<r&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||wg(t);let p=c+1;K0(()=>dV(t,e,p,r,o,s,i),s);return}}}catch(c){if(!a)throw c;lg(t,c)}a&&$e(t)}function dV(t,e,n,r,o,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){$e(t);return}tD(t,e,n,r,o,s,i,!0)}function pV(t,e,n){wg(t),K0(()=>{try{let r=t.__ref;r&&!r.__disposed&&n()}catch(r){lg(t,r)}finally{$e(t)}},e)}function hV(t,e,n,r){let o=t.__ref,s=ma(o),i=++s.chunkGen,a=t.node,c=[],l=!1;QP(t,e,f=>{let u=n(f,l?Jf(t,mV(a,c)):void 0),d=gV(u);return d&&c.push(d),u},r,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function gV(t){let e=ro(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function mV(t,e){for(let n=e.length-1;n>=0;n--)if(e[n].parentNode===t)return e[n];return null}function yV(t,e){let n=t.__ref;try{Aa(t,!0),A0(t,e)}finally{G0(t,n);let r=n.__mount,o=r&&r.holder;o&&(r.holder=null,$e(o))}}var eD={budgetOf:uV,run:QP,rows:hV,defer:pV,hold:wg,finish:yV,abandon:JP};function nD(){ht.viewEvents=AO,ht.chains=xO,ht.rows=qP,ht.hydration=KP,ht.mount=eD}nD();Rt();var ou="inertOutside",_V=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),wV='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',SV={attributes:!0,attributeFilter:["inert"]},rD=new WeakMap,oD=new WeakMap,su=new Set,sD=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function ks(t){try{return xe(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function iD(t){let e=()=>ks(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function xV(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=rD.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(r=>ks(()=>X0(e,r))),rD.set(t,e),e)}function fD(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function kV(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var aD=t=>!!(t.closest&&t.closest("[inert]"));function vV(t){let e=t.ownerDocument,n=new Set,r=[];for(let o=t;o!==e.body;o=o.parentNode){let s=o.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;r.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==o&&!_V.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function cD(t,e){for(let n=0;n<e.length;n++){let{type:r,target:o}=e[n];r==="attributes"&&t.held.has(o)&&t.held.set(o,!o.hasAttribute("inert"))}}function X0(t,e){let{doc:n,held:r,observer:o}=t;e&&cD(t,e),cD(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=fD(u,n);d&&!u.live&&(i.push(u),u.returnFocus=kV(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?vV(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of r)c.has(u)||(d&&u.removeAttribute("inert"),r.delete(u));for(let u of c)r.has(u)||r.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),r.set(u,!0));o.takeRecords(),o.disconnect();for(let u of l)o.observe(u,{childList:!0});for(let u of r.keys())o.observe(u,SV);if(t.layers.some(u=>!u.live)?su.add(t):su.delete(t),a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),iD(()=>uD(t,a));else if(f){let u=f.returnFocus;iD(()=>EV(t,f,u))}f&&(f.returnFocus=null)}function uD(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let r=t.doc,o=r.activeElement;if(o&&n.contains(o))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),r.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(wV))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function EV(t,e,n){if(e.declared&&e.live)return;let r=t.doc,o=r.activeElement,s=e.element.node;(!o||o===r.body||s&&s.contains(o)||aD(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!aD(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&uD(t,t.top))}function Y0(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let r=n.layers.indexOf(t);r!==-1&&n.layers.splice(r,1)}X0(n)}function dD(t){let e=t[ou];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function lD(t){let e=oD.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=xV(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,returnFocus:null},oD.set(t,e);let s=z(()=>{let i=dD(t);ks(()=>Y0(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+ou});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>ks(()=>Y0(e,!1))),e}function AV(){for(let t of su){if(!t.doc.defaultView){su.delete(t);continue}t.layers.some(e=>!e.live&&fD(e,t.doc))&&X0(t)}}var xg={name:ou,create(t){sD(t,ou)&&ks(()=>lD(t))},render(){su.size&&ks(AV)},update(t){sD(t,ou)&&ks(()=>{let e=lD(t);e&&Y0(e,dD(t))})}};var pD={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["gray-168","gray+168"],caption:["gray-68","gray+68"],paragraph:["gray-42","gray+42"],disabled:["gray-26","gray+26"],line:["gray-16","gray+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"]},hD={"gradient-blue-light":`linear-gradient(to right,
60
+ `):"")}}function uk(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&Qe(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),Gt("Create",t,e),Gt("Complete",t,e),Gt("Render",t,e),Gt("RenderRouter",t,e),ok(t,e),typeof t.onFrame=="function"){let n=t.onFrame,r=t.context?.designSystem,o=()=>{if(t.node){if(t.node.isConnected){r&&mt(r);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{r&&pt()}}requestAnimationFrame(o)}};requestAnimationFrame(o)}}function Rg(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,ct.mount.hold(t))}var fV=new Set(["childProps","attr","style","scope","data","vars"]);function sD(t,e,n,r,o,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),m=n.indexOf("."),y=h>0?h:-1;if(m>0&&(y<0||m<y)&&(y=m),y>0){let k=n.substring(0,y),v=t.context?.components;v&&(v[k]||v["smbls."+k])?e={...e,extends:k}:v&&tt()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${k}" but neither "${k}" nor "smbls.${k}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),Ta(t,e,s);let i=O0(t),a=t.props&&typeof t.props=="object"?t.props:null;for(let h in e)if(!(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")){if(h==="key"){r&&(t.key=o?Lg(o,r):r);continue}i&&i.mark(h),q0(t,h,e[h])}if(a)for(let h in a)q0(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)q0(t,h,c[h]);if(i)for(let h in c)i.mark(h)}zR(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,f=o?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=Bd(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=RV(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),Ma(t),hV(t,o,e,s),e}function q0(t,e,n){let r=t[e],o=ct.chains;if(o!==null&&o(t,e,r,n))return;let s=r&&n&&typeof r=="object"&&typeof n=="object"&&!Array.isArray(r)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Ne(r,n):s&&fV.has(e)?t[e]={...r,...n}:s&&nD(e)?t[e]=Ne(r,n):t[e]=n}var uV=new Set(["key","parent","context","__ref"]);function dV(t,e){for(let r of Object.keys(t))uV.has(r)||delete t[r];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let r=t.context?.components||{},o=r[e.key]||r["smbls."+e.key];o&&(n={...n,extends:o})}ke(()=>sD(t,n,e.key,e.ownKey,t.parent,e.options))}function pV(t,e,n){let r=n||{},o=a=>!!(r[a]||r["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;o(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;o(f)||s.push(f)}return s}function G0(t,e,n){if(typeof t.onStateInit!="function"&&!R0(t,"stateInit"))return;let r=t.state;t.state=e;try{Gt("StateInit",t,n)}finally{t.state=r}}var Y0=t=>({isDataOnlyKey:e=>Ur(t).has(e)});function hV(t,e,n,r){let o=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=o&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!kt(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,ve(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,k)=>{p.has(y)||Ho(u,y,l)&&(l[y]=k,p.add(y),Rn(u,y,k))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(f.languages||[]);for(let y in f.translations)m.has(y)||g(y,f.translations[y])}kt(l)||G0(t,l,r),t.state=kt(l)?l:Yn(l,Y0(t.context)),t.state.__element=t,t.state.root=t.state,ve(t,t.state),Fi?.(c,t.state),Gt("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),ve(t,t.state);return}if(typeof a=="string"){if(t.state=aD(a,e),t.state&&typeof t.state=="object"&&!kt(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}ve(t,t.state),mV(t,a,e),Gt("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(kt(c))t.state=c;else{let l=c||{};G0(t,l,r),t.state=Yn(l,e?.state?void 0:Y0(t.context))}}else if(kt(a))t.state=a;else{let c={...a};G0(t,c,r),t.state=Yn(c,e?.state?void 0:Y0(t.context))}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,ve(t,t.state),Fi?.(a,t.state),Gt("StateCreated",t,r)}function SP(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function iD(t,e){let n=e.state;return t.startsWith("~/")?[n&&(n.root||n),t.slice(2)]:t.startsWith("../")?[n,t.slice(3)]:[n,t]}function aD(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[o,s]=iD(t,e);return s?SP(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=SP(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let r=e.context?.polyglot;if(r?.translations){let o=e.state?.root?.lang||r.defaultLang||"en",s=r.translations[o];if(s?.[t]!==void 0)return s[t];if(r.translations[t]!==void 0)return r.translations[t]}return{}}function gV(t,e){let[n,r]=iD(t,e);if(!r||!n||typeof n!="object")return;let o=n[r];if(o!==void 0||r.indexOf("/")===-1)return o;let s=n;for(let i of r.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function mV(t,e,n){let r=t.__ref;if(!r||!n||e==="."||!kt(n.state))return;r.__stateBinding&&r.__stateBinding.dispose();let o=ke(()=>W(()=>{let s=gV(e,n);!s||typeof s!="object"||s===t.state||ke(()=>cD(t,t.state,s,!0))},{depth:r.path?r.path.length:0,label:yt(r,"state")}));o._isStateBinding=!0,r.__stateBinding=o,r.__effects&&r.__effects.push(o)}function cD(t,e,n,r){let o=t.__ref;if(!o)return;if(r||t.state===e){t.state=n,r&&ve(t,n),kP(o);let i=o.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&cD(c,e,n,!1)}return}if(o.__stateBinding){o.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,kP(o))}function xP(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let r of n)e.includes(r)||e.push(r);return e}function kP(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let r=e[n];r&&!r._disposed&&!r._isStateBinding&&!r._isSubscribeToEffect&&typeof r._notify=="function"&&r._notify()}}var yV=new Set(["s","state","ctx","context"]),X0=new WeakMap;function bV(t){if(X0.has(t))return X0.get(t);let e=null;try{let n=typeof De=="function"?De(t):Function.prototype.toString.call(t);if(typeof n=="string"){let r=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);r&&(e={params:r[1].split(",").map(o=>o.trim())})}}catch{}return X0.set(t,e),e}function _V(t){let e=bV(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var wV=3,SV=/^(is|has)[A-Z0-9_$]/,xV=new Set(["routerOptions"]),vP=new WeakSet;function kV(t,e){if(typeof t!="function"||t.length!==2||e&&(SV.test(e)||xV.has(e))||vP.has(t))return!1;let n=_V(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<wV||yV.has(r)?!1:(vP.add(t),!0)}function vV(t){let e=t.__ref,n=t.tag||"div",r=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"||Ht.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Ze(a)||At[a]||Ft&&Ft.has(a)||c!==45&&(en(n,a)||(tt()&&kV(t[a],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(){r&&mt(r);try{return c(t,t.state,t.context)}catch{return}finally{r&&pt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function EV(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let r=e[n];try{typeof r=="function"?r(t,t.state,t.context):typeof r=="string"&&t.state?.[r]}catch{}}}function Ut(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return EV(t,e),n.apply(this,r)}}function Na(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function yt(t,e){return()=>t.path.join(".")+"::"+e}var EP=new Set;function Zt(t,e,n){if(!tt())return;let r=yt(t,e)();EP.has(r)||(EP.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var AP=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,CP=new WeakMap,AV=t=>{let e=CP.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){AP.lastIndex=0;let r;for(;(r=AP.exec(n))!==null;)r[2].includes("{{")&&(e||(e=[])).push(r[2])}return CP.set(t,e),e},CV=(t,e)=>{let n=AV(t);if(n)for(let r=0;r<n.length;r++)e.add(n[r])},TV=(t,e)=>!Ze(t)&&!po(e,t),J0=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&TV(t,r)&&CV(e,n)},sk=new WeakMap,pu=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),hu=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Ne(t,e):t},gu=(t,e)=>t&&e?Ne(t,e):t||e||null,lD=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&pu(n,e)},go=(t,e)=>lD(t,e)?hu(t.__ref.__runtimeSource[e]):null,Os=(t,e)=>(e&&t&&typeof t=="object"&&sk.set(t,e),t),OV=t=>{if(!t||typeof t!="object")return;let e=sk.get(t);return e&&sk.delete(t),e},ik=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let r=0;r<t.length;r++)ik(t[r],e,n);return}if(!t.__ref)for(let r of Object.keys(t)){if(r==="state")continue;let o=Object.getOwnPropertyDescriptor(t,r);o&&"value"in o&&ik(o.value,e,n)}}},RV=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Ht.has(r)||e&&pu(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;ik(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},TP=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let r=n.__ref&&n.__ref.__declaredArrays,o=r&&r.get(e);if(!o)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of o)s.__authoredTemplates.add(i);return}},fD=["attr","aria","data","metadata"],PV=t=>{if(fD.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},DV=(t,e)=>{let n=new Set,r=t.tag||"div";for(let o of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,o),i=s&&s.value,a=!!e&&pu(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!PV(o))continue;let c=a?e[o]:null,l=c&&typeof c=="object"?c:null,f=o.charCodeAt(0)===46||o.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||pu(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&fD.includes(u)){for(let g in p)J0(g,p[g],n,r,d);continue}J0(u,p,n,r,d)}continue}J0(o,i,n,r,a)}return n};function uD(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=DV(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(vV(t),typeof t.text=="function"){let c=t.text,l=Ut(t,t.textDeps,c),f=W(()=>{if(!n.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=qt.call(t,u,t.state)),vs(t,u))}catch(u){Zt(n,"text",u)}},{depth:n.path.length,label:yt(n,"text")});n.__effects.push(f),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=W(()=>{if(n.contentManaged)return;let f=qt.call(t,c,t.state);f!=null&&(t.text=f),t.node&&vs(t,f??"")},{depth:n.path.length,label:yt(n,"text")});n.__effects.push(l),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Ht.has(c)&&!Ze(c)&&!n.__exec[c]&&!Cg(s,c)){if(At[c]){let l=t[c],f=Ut(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=W(()=>{let y=t.context?.designSystem;y&&mt(y);try{let k=f(t,t.state,t.context);yg();let v;try{v=At[u](k,t,t.state,t.context)}finally{bg()}if(Array.isArray(v)){let w={};for(let _ of v)if(_)for(let b in _)w[b]=_[b];v=w}let S=u==="show"||u==="hide";if(v&&t.node&&MV(v)){let w=ja(v);if(w===null||w!==h){h=w;let _=$e(v,null,t.context?.cssPrefix),b=_?_.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let x of g)t.node.classList.remove(x);if(b&&b.length)for(let x of b)t.node.classList.add(x);g=b}}d=void 0,p=null}else if(v&&t.node){if(g){for(let _ of g)t.node.classList.remove(_);g=null,h=void 0}let w=ja(v);if(w===null||w!==d||!uu(t.node,p)){d=w;let _=PP(t,v);p=fu(t.node,_)}}else t.node&&S&&(d=void 0,p=null,t.node.style.display="")}finally{y&&pt()}},{depth:n.path.length,label:yt(n,u)});n.__effects.push(m),n.__exec[c]=l}else if(Ft&&Ft.has(c)){let l=t[c],f=Ut(t,t[c+"Deps"],l),u=c,d,p=null,g=W(()=>{let h=t.context?.designSystem;h&&mt(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!uu(t.node,p)){d=y;let k={[u]:m},v=PP(t,k);p=fu(t.node,v)}}else d=void 0,p=null,t.node.style[u]=""}finally{h&&pt()}},{depth:n.path.length,label:yt(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];yD(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if($V(t),typeof t.html=="function"){let c=t.html,l=Ut(t,t.htmlDeps,c),f=W(()=>{Qe(t,()=>{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&(t.node.innerHTML=u)})},{depth:n.path.length,label:yt(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=Ut(t,t.valueDeps,c),f=W(()=>{try{let u=l(t,t.state,t.context);typeof u=="string"&&u.includes("{{")&&(u=qt.call(t,u,t.state)),RP(t,u)}catch(u){Zt(n,"value",u)}},{depth:n.path.length,label:yt(n,"value")});n.__effects.push(f),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=W(()=>{try{RP(t,qt.call(t,c,t.state))}catch(f){Zt(n,"value",f)}},{depth:n.path.length,label:yt(n,"value")});n.__effects.push(l),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=Ut(t,t.styleDeps,c),f,u=null,d,p,g,h,m=W(()=>{let y=l(t,t.state,t.context),k=t.context&&t.context.designSystem,v;if(y&&typeof y=="object"&&y===d&&k===g){let w=ja(y);v=w!==null&&w===p?h:As(t,y),p=w}else v=As(t,y),p=void 0;d=y,g=k,h=v;let S=ja(v);(S===null||S!==f||!uu(t.node,u))&&(f=S,ak(t.node,u,v),mo(t.node,v),u=fu(t.node,v))},{depth:n.path.length,label:yt(n,"style")});n.__effects.push(m),n.__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,Na(t.styleDeps,c),l),u,d=null,p=W(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!uu(t.node,d)){u=h;let m=As(t,{[c]:g});ak(t.node,d,Object.assign({},m,{[c]:""})),mo(t.node,m),d=fu(t.node,m)}}}catch(g){Zt(n,"style."+c,g)}},{depth:n.path.length,label:yt(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=Ut(t,Na(t.attrDeps,c),t.attr[c]),f=c,u=W(()=>{try{let d=l(t,t.state,t.context);typeof d=="string"&&d.includes("{{")&&(d=qt.call(t,d,t.state)),t.node?.setAttribute&&Es(t.node,f,d)}catch(d){Zt(n,"attr."+f,d)}},{depth:n.path.length,label:yt(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__effects.push(u)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=W(()=>{try{let d=qt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,Hn(f,d??""))}catch(d){Zt(n,"attr."+f,d)}},{depth:n.path.length,label:yt(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__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 p=l,g="aria-"+c.replace(/[A-Z]/g,m=>"-"+m.toLowerCase()),h=W(()=>{try{let m=qt.call(t,p,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(g,Hn(g,m??""))}catch(m){Zt(n,"aria."+c,m)}},{depth:n.path.length,label:yt(n,"aria."+c)});h._attrName=g,n.__effects.push(h);continue}if(typeof l!="function")continue;let f=Ut(t,Na(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,p=>"-"+p.toLowerCase()),d=W(()=>{try{let p=f(t,t.state,t.context);if(!t.node?.setAttribute)return;Es(t.node,u,p)}catch(p){Zt(n,"aria."+c,p)}},{depth:n.path.length,label:yt(n,"aria."+c)});d._attrName=u,n.__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 g=l,h="data-"+c.replace(/[A-Z]/g,y=>"-"+y.toLowerCase()),m=W(()=>{try{let y=qt.call(t,g,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,y??"")}catch(y){Zt(n,"data."+c,y)}},{depth:n.path.length,label:yt(n,"data."+c)});m._attrName=h,n.__effects.push(m);continue}if(typeof l!="function")continue;let f=Ut(t,Na(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),p=W(()=>{try{let g=f(t,t.state,t.context);if(!t.node?.setAttribute)return;g==null||g===!1?t.node.removeAttribute(d):typeof g!="function"&&typeof g!="object"&&t.node.setAttribute(d,g===!0?"":g)}catch(g){Zt(n,"data."+c,g)}},{depth:n.path.length,label:yt(n,"data."+c)});p._attrName=d,n.__effects.push(p)}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,Na(t.classDeps,c),i[c]),f=W(()=>{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){Zt(n,"class."+c,u)}},{depth:n.path.length,label:yt(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&pD(t,n,t.if);for(let c of Object.keys(t)){if(Ht.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||Ze(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(en(u,c)&&!po(u,c)){let d=_r(c)||c,p=Ut(t,t[c+"Deps"],f),g=W(()=>{try{let h=p(t,t.state,t.context);typeof h=="string"&&h.includes("{{")&&(h=qt.call(t,h,t.state)),t.node?.setAttribute&&Es(t.node,d,h,!0)}catch(h){Zt(n,c,h)}},{depth:n.path.length,label:yt(n,c)});g._attrName=d.toLowerCase(),n.__effects.push(g)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Ht.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Ze(c)||po(a,c)||Cs[c]||!en(a,c))continue;let u=_r(c)||c,d=W(()=>{try{let p=qt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,Hn(u,p??""))}catch(p){Zt(n,c,p)}},{depth:n.path.length,label:yt(n,c)});d._attrName=u.toLowerCase(),n.__effects.push(d)}if(HV(t),QV(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=W(()=>{let p=[];for(let m=0;m<l.length;m++){let y=l[m];try{p[m]=typeof y=="function"?y(t,t.state,t.context):t.state?.[y]}catch{p[m]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let m=0;!g&&m<p.length;m++)p[m]!==u[m]&&(g=!0);let h=u;u=p,g&&Qe(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(tn(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:yt(n,"onStateUpdate")});n.__effects.push(d)}qV(t)}function OP(t){let e=t.parent,n=e?.node;if(!n||!t.node){Wa(t,t.parent);return}let r=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===n){r=a.node;break}}r?n.insertBefore(t.node,r):n.appendChild(t.node),fg()}function dD(t){hD(t),r9(t),kD(t),g9(t),h9(t)}function pD(t,e,n){let r=Ut(t,t.ifDeps,n),o=W(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,dV(t,s),r=Ut(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=r(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=fo(t)),t.node&&(t.node.ref=t),OP(t),hD(t),kD(t),Gt("Render",t,{}),ok(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=jn(t)),Gt("Init",t,{});let c=ct.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||fo(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let f=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(f),e.__fragmentAnchor=f}Gt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),TD(t,{}),uD(t,{skipIfEffect:!0}),dD(t),RD(t,{}),OP(t),Gt("Create",t,{}),Gt("Complete",t,{}),Gt("Render",t,{}),Gt("RenderRouter",t,{}),ok(t,{})}},{depth:e.path.length,label:yt(e,"if")});e.__effects.push(o)}function vs(t,e){let n=t.node;if(!n)return;let r=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==r&&(n.nodeValue=r);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==r&&(s.nodeValue=r):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(r),n.insertBefore(s,n.firstChild)):(n.textContent=r,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),o&&(o.__textNode=s||null)}function LV(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function IV(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function Es(t,e,n,r){n==null||n===!1&&!Ts(e)?Pg(t,e,null):typeof n=="function"||typeof n=="object"||(r&&e==="src"&&"src"in t?t.src=n:Pg(t,e,Hn(e,n)))}function Pg(t,e,n){let r=LV(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),IV(t,r)}function RP(t,e){let n=t.node;if(!n||!("value"in n))return;let r=e==null?"":String(e);if(n.value===r)return;let o=typeof document<"u"&&document.activeElement===n,s=o&&typeof n.selectionStart=="number"?n.selectionStart:null,i=o&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,o&&s!=null&&i!=null)try{n.setSelectionRange(s,i)}catch{}let a=t.__ref&&t.__ref.__autoGrow;a&&a.active&&a.resize()}function hD(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&vs(t,t.text),ED(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 n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let r in t.style)if(typeof t.style[r]=="function"){n={};for(let o in t.style)typeof t.style[o]!="function"&&(n[o]=t.style[o]);break}mo(e,As(t,n))}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let r=t.attr[n];typeof r=="function"||typeof r=="object"||r!=null&&(typeof r=="string"&&r.includes("{{")||r===!1&&!Ts(n)||e.setAttribute&&e.setAttribute(n,Hn(n,r)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let r=t.data[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||typeof r=="string"&&r.includes("{{")||e.dataset&&(e.dataset[n]=r===!0?"":r)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(r=>r&&e.classList.add(r));else if(typeof n=="object")for(let r in n){let o=typeof n[r]=="function"?n[r](t,t.state,t.context):n[r];o&&e.classList.add(typeof o=="string"?o:r)}}}}function ja(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function MV(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function fu(t,e){if(!t||!t.style||!e)return null;let n=t.style,r=[];for(let o in e){if(e[o]==null||o.charAt(0)==="&")continue;let i=wr(o);r.push(i,dk(n,i),gD(n,i))}return r}function dk(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function gD(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function wr(t){return xs(t)}function ak(t,e,n){if(!t||!t.style||!e||!e.length)return;let r=t.style,o=new Set;if(n&&typeof n=="object")for(let s in n)n[s]==null||s.charAt(0)==="&"||o.add(wr(s));for(let s=0;s<e.length;s+=3){let i=e[s];o.has(i)||dk(r,i)===e[s+1]&&typeof r.removeProperty=="function"&&r.removeProperty(i)}}function uu(t,e){if(!e||!t||!t.style)return!1;let n=t.style;for(let r=0;r<e.length;r+=3)if(dk(n,e[r])!==e[r+1]||gD(n,e[r])!==e[r+2])return!1;return!0}var mu=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,mD=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",Mg=t=>mu(t)?t:"--"+t;function $g(t,e){if(!yo(t))return null;let n=null;for(let r of Object.keys(t)){if(!r)continue;let o=t[r];if(typeof o=="function"){if(!e)continue;o=o(e,e.state,e.context)}mD(o)&&(n||(n={}),n[Mg(r)]=o)}return n}function yD(t,e,n,r,o){bD(t,o,Ut(t,r,n),s=>mD(s)?{[e]:s}:null)}function bD(t,e,n,r,o){let s=t.__ref,i,a=null,c=W(()=>{Qe(t,()=>{try{let l=r(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=ja(l);(u===null||u!==i||!uu(f,a))&&(i=u,ak(f,a,l),l&&mo(f,l),a=l?fu(f,l):null,o&&o(l))}catch(l){Zt(s,e,l)}})},{depth:s.path.length,label:yt(s,e)});s.__effects.push(c)}function $V(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){NV(t,n),e.__exec.vars=n;return}if(yo(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||yD(t,Mg(r),o,Na(t.varsDeps,r),"vars."+r)}}function NV(t,e){let n=t.__ref;bD(t,"vars",Ut(t,t.varsDeps,e),r=>$g(r),r=>{n.__varsInline=r?new Set(Object.keys(r)):null})}function ck(t,e){if(typeof t[e]=="function"&&(po(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!mu(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!yo(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&Mg(r)===e)return!0;return!1}function FV(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(wr(n)));return e}function jV(t,e,n,r){let o=t.__ref;if(!o)return;let s=null;if(n)for(let i of n){if(r&&r.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=wr(i);Ss[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function _D(t,e){let n=t.__ref,r=n&&n.__declaredLonghands;if(!r||!e)return null;let o=null;for(let s in r){if(e.has(s))continue;let i=Ss[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=r[s])}return o}function PP(t,e){let n=t.node;mo(n,e);let r=FV(e);if(!r)return e;let o=t.__ref;if(o)if(o.__inlineCssKeys)for(let i of r)o.__inlineCssKeys.add(i);else o.__inlineCssKeys=new Set(r);let s=_D(t,r);return s?(mo(n,s),Object.assign({},e,s)):e}function BV(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=_D(t,e.__inlineCssKeys);n&&mo(t.node,n)}function As(t,e){return!e||typeof e!="object"?e:Qe(t,()=>{try{return C0(e,t)}catch{return e}})}function mo(t,e){if(!t||!e||!t.style)return;let n=null;for(let r in e){let o=e[r];if(o!=null){if(r.charAt(0)==="&"&&typeof o=="object"){n||(n={}),n[r]=o;continue}try{let s=String(o);if(typeof o=="object"&&s==="[object Object]")continue;let i=xs(r),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}n&&UV(t,n)}function UV(t,e){let n=`_ds${JP.scopedStyleId++}`;t.classList.add(n);let r=t.ownerDocument,o=r.querySelector("style[data-smbls-scoped]");o||(o=r.createElement("style"),o.setAttribute("data-smbls-scoped",""),r.head.appendChild(o));let s="";for(let i in e){let a="."+n,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 p=l[d];if(typeof p=="object"){let g=d.includes("&")?c.split(", ").map(m=>d.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${d}`).join(", "),h="";for(let m in p)h+=`${wr(m)}: ${p[m]};`;u+=gr(`${g} { ${h} }`,g)+`
61
+ `}else f+=`${wr(d)}: ${p};`}f&&(s+=gr(`${c} { ${f} }`,c)+`
62
+ `),u&&(s+=u)}}s&&(o.textContent+=s)}var DP=new Set;function LP(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function VV(t,e,n){let r=LP(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(LP(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";DP.has(s)||(DP.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.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 core.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 HV(t){let e=t.subscribeTo,n=typeof e=="function",r=e;if(n)try{r=e(t,t.state,t.context)}catch{r=null}if(n&&tt()&&VV(t,e,Array.isArray(r)?r:[]),!Array.isArray(r)||r.length===0)return;let o=t.__ref;for(let s=0;s<r.length;s++){let i=r[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=W(()=>{let d=t.state&&(kt(t.state)?t.state.root:null);if(!d||!kt(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(kt(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&Qe(t,()=>{try{if(vg(o)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>Un(o,!1),m=>{Un(o,!0),Bn("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(Un(o,!1),h===!1&&(g=!0))}}catch(h){Un(o,!0),Bn("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&o.__effects)for(let h=0;h<o.__effects.length;h++){let m=o.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}!g&&typeof t.onUpdate=="function"&&Qe(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){Bn("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:o.path.length,label:yt(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function pk(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 hk(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];return n?/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`:t}var IP=new Set;function zV(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;IP.has(r)||(IP.add(r),console.warn(`[smbls/css] "${t}" at ${n} 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.`))}var MP=new Map;function WV(t){let e=MP.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push(ou(o))};return n(Ss[t]),n(Sg[t]),MP.set(t,e),e}function $P(t,e,n){if(ck(t,e)||n&&n.has(e))return!0;let r=WV(wr(e));for(let o=0;o<r.length;o++){let s=r[o];if(ck(t,s)||n&&n.has(s))return!0}return!1}function za(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(At[a]){let u=At[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(o,p)}}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")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,$P(e,u,r))}continue}if(a==="vars"){let u=$g(c,e);if(u)for(let d in u)i(d,u[d],ck(e,d)||!!(r&&r.has(d)));continue}if(pk(a,e)){let u=za(c,e,!1,r);Object.keys(u).length&&(o[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){tt()&&zV(a,e);continue}let l=hk(a,e),f=za(c,e,!1,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,$P(e,a,r))}}if(n)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 yo=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function wD(t,e){for(let n in e){let r=e[n];t[n]=yo(r)?wD(yo(t[n])?t[n]:{},r):r}return t}function KV(t,e){if(!yo(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;yo(o)&&(n=wD(n||{},o))}return n}function gk(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 n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&gk(t[n],e+1))return!0}return!1}function SD(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(pk(t,n)){let s=za(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=hk(t,n),o=za(e,n,!1);return Object.keys(o).length?{cssProp:r,block:o}:null}function qV(t){let e=t.__ref;for(let n of Object.keys(t)){if(!nD(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!gk(r))continue;let o=null,s,i=W(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&mt(a);let c,l=!1;try{let f=SD(n,r,t),u=f?ja(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=$e({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&pt()}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:yt(e,"cssBlock("+n+")")});e.__effects.push(i)}}var GV=()=>!0,YV=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!At[t]||!!(Ft&&Ft.has(t))||mu(t)||t==="vars"};function XV(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(YV(a,n[a])||Ht.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=K0({[e]:n},t.tag||"div",r,GV),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function NP(t,e,n,r,o,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in r){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=r[l](t)}catch(g){Zt(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=qt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&xD(i,e,l);continue}let p=d===!1&&!Ts(l)?null:String(Hn(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),Pg(i,l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function xD(t,e,n){t.getAttribute(n)===e.written.get(n)&&Pg(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function JV(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&xD(t.node,e,s)}function kD(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let r of e.owners.keys()){let o=e.written.get(r),s=n.getAttribute(r);s!==o&&(e.base.set(r,s),o==null?n.removeAttribute(r):n.setAttribute(r,o))}}var Z0,ZV=()=>Z0===void 0?Z0=tt():Z0;function FP(t,e){let n=jd;typeof n=="function"?t.untrackedReads+=n(e):e()}function QV(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,r=new Map;for(let o of Object.keys(t)){let s=o.charAt(0);if(s!=="."&&s!=="!")continue;let i=o.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[o];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,probe:!1,untrackedReads:0},f=XV(t,o,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),k=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&k&&typeof k=="object"&&!Array.isArray(k))){if(m==="vars"&&yo(k)){for(let v of Object.keys(k))v&&u.add(Mg(v));continue}u.add(m)}}let d=()=>{let m,y=l.probe,k;if(y?FP(l,()=>{k=t[i]}):k=t[i],k===void 0){let w=!!t.state&&i in t.state,_=t.state?t.state[i]:void 0;if(w||_!==void 0)m=_;else{let b=t.context?.cases?.[i];if(b===void 0)return;try{m=typeof b=="function"?b.call(t,t):b}catch(x){m=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}}}else if(typeof k=="function")try{y?FP(l,()=>{m=k(t,t.state,t.context)}):m=k(t,t.state,t.context)}catch(w){m=!1,e.__conditionalError=w,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,w?.message||w)}else m=k;y&&(l.probe=!1);let v=c?!m:!!m;if(!t.node)return;let S=t.context?.designSystem;if(v===l.lastMatch){if(v&&f&&t.node.setAttribute){S&&mt(S);try{NP(t,n,o,f,l,!1)}finally{S&&pt()}}return}l.lastMatch=v,S&&mt(S);try{if(v){let w={},_={},b=!1;for(let C in a){if(!Object.prototype.hasOwnProperty.call(a,C))continue;let P=a[C],R=C.charAt(0);if((R===":"||R==="@"||R==="&"||R==="[")&&P&&typeof P=="object"&&!Array.isArray(P)){if(pk(C,t)){let F=za(P,t,!1,u);Object.keys(F).length&&(_[`[data-theme="${C.slice(1)}"] &`]=F,b=!0)}else{let F=hk(C,t),U=za(P,t,!1,u);Object.keys(U).length&&(_[F]=U,b=!0)}continue}let j=typeof P=="function"?P(t,t.state,t.context):P;if(j!=null){if(At[C]){let F=At[C](j,t,t.state,t.context);if(F){let U=Array.isArray(F)?F:[F];for(let et of U)et&&Object.assign(w,et)}}else if(Ft&&Ft.has(C))w[C]=j;else if(mu(C))w[C]=j;else if(C==="vars"){let F=$g(j,t);F&&Object.assign(w,F)}}}let x=Object.keys(w);if(x.length){mo(t.node,w);for(let C of x)r.set(C,o);l.appliedKeys=x}else l.appliedKeys=null;if(b){let C=$e(_,null,t.context?.cssPrefix,{state:!0}),P=C?C.split(" ").filter(Boolean):[];if(P.length&&t.node.classList){for(let R of P)t.node.classList.add(R);l.appliedClasses=P}else l.appliedClasses=null}else if(l.appliedClasses){for(let C of l.appliedClasses)t.node.classList.remove(C);l.appliedClasses=null}f&&t.node.setAttribute&&NP(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&JV(t,n,o,l),l.appliedKeys){for(let w of l.appliedKeys)r.get(w)===o&&(mu(w)?t.node.style.removeProperty(w):t.node.style[w]="",r.delete(w));l.appliedKeys=null}if(l.appliedClasses){for(let w of l.appliedClasses)t.node.classList.remove(w);l.appliedClasses=null}}}finally{S&&pt()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=Ut(t,p,d);ZV()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=W(g,{depth:e.path.length,label:yt(e,"conditional("+o+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`),e.__effects.push(h)}}var Q0=new WeakSet,tk=new WeakMap;function t9(t){let e=tk.get(t);if(e==="painted")return!1;if(e===void 0){tk.set(t,"open");let n=t.defaultView,r=()=>{tk.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(r):setTimeout(r,0)}return!0}function e9(t){let e=t.ownerDocument;!e||Q0.has(e)||t9(e)||(Q0.add(e),queueMicrotask(()=>{Q0.delete(e);let n=e.body||e.documentElement;n&&n.offsetWidth}))}var ek=new WeakSet,jP=!1;function BP(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function lk(t,e){let n={...t};for(let r in e){let o=e[r],s=n[r];n[r]=o&&typeof o=="object"&&s&&typeof s=="object"?lk(s,o):o}return n}function vD(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=vD(o,e);Object.keys(s).length&&(n[r]=s)}else e(r)||(n[r]=o)}return n}function UP(t,e,n){let r=mk(t);if(!r)return!1;for(let o=0;o<r.length;o+=3){let s=r[o+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&FR(r[o],i,r[o+2]))return!0}return!1}function n9(t,e,n){let r=1/0,o=-1/0;for(let i of e.values())i<r&&(r=i),i>o&&(o=i);if(n)for(let i of n.values())i>o&&(o=i);if(o<=r)return null;let s=null;for(let[i,a]of e){if(a===o)continue;let c=mk(i);if(c)for(let l=0;l<c.length;l+=3){let f=c[l],u=c[l+1],d=c[l+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&xg(f,t[u],d),m=!h&&g!==void 0&&g>a&&xg(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var VP=new Map;function mk(t){let e=VP.get(t);if(e!==void 0)return e;let n=wr(t),r=Ss[n];if(e=null,Array.isArray(r)){e=[];for(let o of r)e.push(o,ou(o),n)}return VP.set(t,e),e}function ED(t){let{node:e}=t;if(!e)return;if(jP||(jP=!0,$e({display:"none"})),ek.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}ek.add(t);let n=t.context?.designSystem;n&&mt(n),yg();try{let r={},o=!1,s=[],i=null,a=null,c=null,l=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=(S,w)=>{if(w&&typeof w=="object"&&BP(S)){c||(c={});let _=c[S];_&&(w=lk(_,w)),c[S]=w}else(w===null||typeof w!="object")&&(l||(l=new Set),l.add(S),u!==void 0&&(d||(d=new Map),d.set(S,u)));r[S]=w};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&At.theme){let S=At.theme(t.theme,t,t.state,t.context);if(S){let w=_=>{for(let b in _){let x=_[b];x&&typeof x=="object"?BP(b)&&(i||(i={}),i[b]=x):mk(b)&&(a||(a=[])).push(b),r[b]=x}};if(Array.isArray(S))for(let _ of S)_&&w(_);else w(S);o=!0}}let h=(S,w)=>{if(S==="vars"){let _=$g(w);if(_){for(let b in _)g(b,_[b]);o=!0}return}if(At[S]){let _=At[S](w,t,t.state,t.context);if(_){if(Array.isArray(_)){for(let b of _)if(b)for(let x in b)g(x,b[x])}else for(let b in _)g(b,_[b]);o=!0}}else if(Ft&&Ft.has(S))w!=null&&typeof w!="object"&&(g(S,w),o=!0);else if(S.charCodeAt(0)===45)w!=null&&typeof w!="object"&&(g(S,w),o=!0);else if((S.charAt(0)==="&"||S.charAt(0)==="@"||S.charAt(0)===":"||S.charAt(0)==="[")&&w&&typeof w=="object"&&!Array.isArray(w)){if(gk(w))return;let _=SD(S,w,t);_&&(g(_.cssProp,_.block),o=!0)}};if(typeof t.class=="string"){let S=KV(t.class,t.context?.designSystem?.class);if(S)for(let w in S)h(w,S[w])}let m=l?new Set(l):null,y=t.tag||"div";for(let S of Object.keys(t)){if(typeof t[S]=="function"){let _=f&&f.get(S);_!==void 0&&po(y,S)&&(p||(p=new Map),p.set(wr(S),_));continue}if(u=f?f.get(S):void 0,S==="vars"){h(S,t[S]);continue}if(Ht.has(S)||S==="theme")continue;let w=S.charCodeAt(0);w>=65&&w<=90||Ze(S)||Cg(y,S)||h(S,t[S])}u=void 0;let k=d?n9(r,d,p):null;if(a&&l)for(let S of a)l.has(S)||!(S in r)||UP(S,r,l)&&delete r[S];if(i){let S=l?w=>l.has(w)||UP(w,r,l):null;for(let w in i){let _=S?vD(i[w],S):i[w];c&&c[w]&&(_=lk(_,c[w])),Object.keys(_).length?r[w]=_:delete r[w]}}if(jV(t,r,l,k?new Set([...m||[],...k]):m),o){r.display&&String(r.display).includes("!important")&&(e.style.setProperty("display",String(r.display).replace(/\s*!important\s*$/,""),"important"),delete r.display);let S=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof S=="string"&&S!==""&&r.display&&r.display!==S&&(r.display=S);let w=$e(r,null,t.context?.cssPrefix);if(s=w?w.split(" ").filter(Boolean):[],w&&e.classList){let _=s,b=!1;for(let x of _)e.classList.add(x),b||(x.charCodeAt(0)===95&&x.charCodeAt(1)===99||x.charCodeAt(0)===95&&x.indexOf("_c",1)!==-1)&&(b=!0);b&&e9(e)}}let v=t.__ref;if(v){let S=v.__staticCssClasses;if(S&&e.classList){let w=new Set(s);for(let _ of S)w.has(_)||e.classList.remove(_)}v.__staticCssClasses=s}BV(t)}finally{bg(),n&&pt(),ek.delete(t)}}var P0=t=>!!At[t]||!!(Ft&&Ft.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function D0(t){t&&t.node&&ED(t)}function r9(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,Hn(i,s))}let n=W0(t);for(let o in n){let s=n[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let r=t.tag||"div";for(let o of Object.keys(t)){if(typeof t[o]=="function"||Ht.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Ze(o)&&!po(r,o)&&en(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Cs[o])continue;i=qt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!Ts(_r(o)||o))continue;let a=_r(o)||o;e.setAttribute(a,Hn(a,i))}}}function L0(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||Ze(e))return;let o=t.tag||"div";if(po(o,e)||!en(o,e))return;let s=_r(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=Cs[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=qt.call(t,l,t.state)),Es(n,s,l)}function o9(t,e){let n=t.node,r=t.__ref,o=r.__autoGrow;if(!e){if(o&&o.active){try{n.removeEventListener("input",o.resize)}catch{}zP(o),ho.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),KP(n,o,!1),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=r.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){yu(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,HP(t,o);return}o.awaitingLayout=!1;let i=a9(n),a=c9(i),c=n.style.height;n.style.height="0px",a&&nk(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&nk(n);return}let f=l9(n,i),u=f!=null&&l<f?f:l,d=d9(i),p=d!=null&&u>d;n.style.height=u9(p?d:u,i)+"px",a&&nk(n),KP(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,HP(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}zP(o),ho.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,i9(t,o));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,o.appliedMax=s),o.resize()}function yu(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),ho.add(t),bu())}function s9(){let t=Array.from(ho);ho.clear();for(let e=0;e<t.length;e++){let n=t[e],r=n.node,o=n.__ref?.__autoGrow;if(!(!r||!o||!o.active)){if(!r.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=Ha()),o.attachAttempts+=1,o.attachAttempts<=tD&&Ha()-o.firstAttemptAt<eD&&(ho.add(n),bu());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function HP(t,e){if(e.watch)return;let n=t.node;if(!n)return;let r=n.ownerDocument&&n.ownerDocument.defaultView,o=r&&r.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof o!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,yu(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,yu(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function zP(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function i9(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,r=n&&n.fonts&&n.fonts.ready;!r||typeof r.then!="function"||r.then(()=>{e.active&&t.node&&yu(t,!0)},()=>{})}function a9(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var Rs=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,yk=t=>(Rs(t.paddingTop)||0)+(Rs(t.paddingBottom)||0),AD=t=>(Rs(t.borderTopWidth)||0)+(Rs(t.borderBottomWidth)||0);function c9(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let r=0;r<e.length;r++){let o=e[r].trim();if(!(o!=="all"&&o!=="height")&&parseFloat(n[r%n.length])>0)return!0}return!1}function nk(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let r=e[n];if(r&&r.transitionProperty==="height")try{r.cancel()}catch{}}}function l9(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let r=Rs(e.lineHeight)||f9(t,e);return r>0?n*r+yk(e):null}var lu=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],WP=new WeakMap;function f9(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=WP.get(n);o||(o=new Map,WP.set(n,o));let s=lu.map(l=>e[l]||"").join("|");if(o.has(s))return o.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<lu.length;l++)e[lu[l]]&&(a[lu[l]]=e[lu[l]]);let c=0;try{r.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(o.set(s,c),c):null}function u9(t,e){return e?e.boxSizing==="border-box"?t+AD(e):e.boxSizing==="content-box"?Math.max(0,t-yk(e)):t:t}function d9(t){if(!t)return null;let e=Rs(t.maxHeight);if(e==null||!(e>0))return null;let n=yk(t),r=AD(t),o=t.boxSizing==="border-box"?e-r:e+n,s=Rs(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function KP(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var qP=["srcObject","muted"],p9=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function h9(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<qP.length;r++){let o=qP[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=p9(o,a);if(e[o]!==c)try{e[o]=c}catch(l){Zt(n,o,l)}};if(typeof s=="function"){let a=Ut(t,t[o+"Deps"],s),c=W(()=>{try{i(a(t,t.state,t.context))}catch(l){Zt(n,o,l)}},{depth:n.path.length,label:yt(n,o)});n.__effects.push(c),n.__exec[o]=s}else i(s);o==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function g9(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?Ut(t,t.autoGrowDeps,r):null,s=W(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===r&&o?o:i)(t,t.state,t.context)}catch{a=null}o9(t,a)},{depth:n.path.length,label:yt(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var CD=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function TD(t,e){let n=!1;for(let r of Object.keys(t)){if(!Ze(r)||CD.has(r))continue;if(r==="onInView"||r==="onLeaveView"){n=!0;continue}let o=pg(r);if(o){hg(o,t,t[r]);continue}let s=t[r],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=tu(t,s),typeof s!="function")continue;let a=ug(r);Nn.has(a)||Aa(iV(a),t,s,i)}m9(t),n&&ct.viewEvents&&ct.viewEvents(t)}function m9(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of CD){let p=t[d];typeof p=="function"&&(n[d]=p,r=!0)}if(!r)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 p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),k=Math.abs(h);if(Math.max(y,k)<o)return;let v;if(y>k*1.2)v=g<0?"left":"right";else if(k>y*1.2)v=h<0?"up":"down";else return;let S="onSwipe"+v.charAt(0).toUpperCase()+v.slice(1),w=n[S],_=n.onSwipe;w&&w.call(t,d,t,t.state,t.context),_&&_.call(t,{direction:v,dx:g,dy:h,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 bk(t,e,n,r,o,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=r;if(typeof r=="function")try{l=r(t,c)}catch{l=null}let f=typeof r=="function"?hu(l):o;if(a&&!i&&(f=gu(f,hu(e))),i){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),c=l?{...l,state:u}:{state:u}}else l&&(c=Ne(l,c));return c=_u(c,s),{def:c,key:rD(c?.key,e,n,t),supplied:f,props:l}}function _u(t,e){if(!e||!t||t.ignoreChildExtends)return t;if(!t.extends)return{...t,extends:e};let n=Array.isArray(t.extends)?t.extends:[t.extends],r=Array.isArray(e)?e:[e];return{...t,extends:[...r,...n]}}var Sr=t=>{let e=t&&t.__ref;if(!e||e.__if===!1||e.__mount&&e.__mount.held)return null;let n=t.node;return n&&n.nodeType!==11?n:null},OD=(t,e)=>e?e.nextSibling:su(t.node,t.__ref.__textNode),Ng=(t,e,n)=>{let r=OD(t,n);return e!==r&&t.node.insertBefore(e,r),e},wu=(t,e)=>{let n=OD(t,e);return n?{position:"before",node:n}:void 0};function _k(t,e,n){let r=null;for(let o=0;o<e.length;o++){if(n&&n.has(e[o]))continue;let s=Sr(t[e[o]]);s&&(r=Ng(t,s,r))}}function GP(t,e,n,r){let o=ct.rows,s=o!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?o.track(t):null,i=wk(t,e,n,r,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function wk(t,e,n,r,o,s){if(!e||!t.node)return;let i=t.childExtends,a=go(t,"childProps"),c=t.__ref,l=ct.mount,f=r>0&&t.tag!=="fragment"&&c?r:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let m=bk(t,e[g],g,u,a,i,d,o);s&&s.add(m.key,e[g],m,u,i);try{let y=zt(Os(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),Rg(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let k=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${k} (initial render, skipping this row):`,y?.message||y)}return null}};if(!f){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=aD(e,t);if(Array.isArray(u))return wk(t,u,n,r,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(Ht.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=o?gu(a,hu(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Ne(t.childProps,h)),h=_u(h,i);let y=zt(Os(h,m),t,Lg(t,p),n,g);return Rg(t,y),y};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Va(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let r=n.options;if(!r||!r.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=qt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<r.length;f++)r[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function RD(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function",i=s||lD(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=Ut(t,t.childrenDeps,u),m=W(()=>{let y=p;p=!0;let k;try{k=h(t,t.state,t.context)}catch(P){if(typeof console<"u"&&console.error){let R=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${R}${y?"":" (initial run, treating as empty)"}:`,P?.message||P)}return}if(!y){g=k;return}if(k===t.children)return;TP(t,k),t.children=k,d.__mount&&d.__mount.chunkGen++;let v=typeof t.onContentUpdate=="function",S=v?[]:null,w=v?[]:null,_=v?[]:null;if(Array.isArray(k)&&t.childrenAs==="state"){let P=t.childProps,R=[],j=new Map;for(let it=0;it<k.length;it++){let K=k[it],G=P;if(typeof P=="function")try{G=P(t,K)}catch{G=null}let nt=rD(G&&G.key,K,it,t);R.push(nt),j.set(nt,{rawChild:K,childProps:G})}let F=new Set(R),U=xP(d,d.__children.slice());for(let it of U)if(!F.has(it)){let K=t[it];K?.remove&&K.remove(),delete t[it],w&&w.push(it)}let et=t.childExtends,rt=!(t.tag==="fragment")&&!!t.node,_t=null,wt=new Set;for(let it of R){let K=j.get(it),G=K.rawChild,nt=t[it];if(nt&&nt.state){if(G&&typeof G=="object"){let lt=nt.state,xn=lt.$replace||lt.replace,ne=lt.$update||lt.update;try{if(typeof xn=="function")xn.call(lt,G);else if(typeof ne=="function"){for(let Dt in lt)if(!(Dt==="__element"||Dt==="root"||Dt==="parent"||Dt==="update")&&!Object.prototype.hasOwnProperty.call(G,Dt))try{lt[Dt]=void 0}catch{}ne.call(lt,G)}else for(let Dt in G)lt[Dt]=G[Dt]}catch(Dt){if(typeof console<"u"&&console.error){let kn=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${it}" failed to patch at ${kn} (reconcile, keeping its previous data for this pass):`,Dt?.message||Dt)}}}if(_&&_.push(it),rt){let lt=Sr(nt);lt&&(_t=Ng(t,lt,_t))}continue}let Q=G;(typeof G=="string"||typeof G=="number")&&(Q={value:G,text:G});let ht=K.childProps,X=_u(ht?{...ht,state:Q}:{state:Q},et),J=typeof P=="function"?hu(ht):go(t,"childProps"),Ot;try{Ot=zt(Os(X,J),t,it,e,rt?wu(t,_t):void 0)}catch(lt){if(typeof console<"u"&&console.error){let xn=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${it}" failed to construct at ${xn} (reconcile, skipping this row):`,lt?.message||lt)}wt.add(it);continue}if(d.__disposed)return;if(rt){let lt=Sr(Ot);lt&&(_t=lt)}S&&S.push(it)}rt&&_k(t,R,wt.size?wt:null),d.__children=wt.size?R.filter(it=>!wt.has(it)):R,v&&(S.length||w.length)&&Tg(t,{added:S,removed:w,kept:_}),Va(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&ct.rows.reconcile(t,d,k,e,v)){Va(t,!1);return}let C=v?[...d.__children]:null;for(let P of xP(d,[...d.__children])){let R=t[P];R?.remove&&R.remove(),delete t[P]}d.__children=[],GP(t,k,e,0),Va(t,!1),v&&Tg(t,{added:[...d.__children],removed:C,kept:[]})},{depth:d.path.length,label:yt(d,"children")});d.__effects.push(m),n=g,TP(t,n),t.children=n}let a=ct.mount,c=a!==null?a.budgetOf(t,e):0,l=iu(t.__ref),f=s?GP(t,n,e,c):wk(t,n,e,c,i);if(c&&iu(t.__ref)>l){a.defer(t,c,()=>YP(t,e,n,r,o,f,c));return}YP(t,e,n,r,o,f,c)}function YP(t,e,n,r,o,s,i){let a=iu(t.__ref);if(r!=null&&!(r&&r.__ref)){let c=r;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=Ne(t.childProps,c)),c=_u(c,o);let l=gu(go(t,"childProps"),go(t,"content"));Rg(t,zt(Os(c,l),t,"content",e))}if(!(n&&!s)){if(i&&iu(t.__ref)>a){ct.mount.defer(t,i,()=>XP(t,e,o,i));return}XP(t,e,o,i)}}function XP(t,e,n,r){let o=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f];if(!u.endsWith("Extends")||typeof t[u]!="string")continue;let d=u.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[u]};delete t[u];for(let g=f+1;g<l.length;g++){let h=l[g],m=h.charCodeAt(0);if(m>=65&&m<=90||Ht.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let y=t[h];y!==void 0&&(p[h]=y,delete t[h],i&&pu(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(Ht.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let f=l.charCodeAt(0);if(f<65||f>90)return!1;let u=t[l];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=o[l]||o[`smbls.${l}`];p&&(u={...u,extends:p})}t.childProps&&(u=Ne(t.childProps,u)),u=_u(u,n);let d=s?gu(go(t,"childProps"),gu(i[l]||null,go(t,l))):null;Rg(t,zt(Os(u,d),t,l,e))};if(!r){for(let l of a)c(l);return}ct.mount.run(t,a.length,l=>c(a[l]),r)}function Wa(t,e,n){let{node:r}=t;if(!r)return;r.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let a=o.parentNode;if(a){if(n?.position==="before"&&n.node)a.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;a.insertBefore(r,c||o)}else a.insertBefore(r,o);fg();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&ct.hydration!==null){let a=t.context&&t.context.__hydration;if(a&&ct.hydration.place(a,t,e,s,r))return}let i=n?.node;if(i&&i.parentNode!==s)s.appendChild(r);else if(n?.position==="before"&&i)s.insertBefore(r,i);else if(n?.position==="after"&&n.node){let a=n.node.nextSibling;a?s.insertBefore(r,a):s.appendChild(r)}else s.appendChild(r);fg()}var Dg=3;function vg(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Dg?!1:(t.__inBeforeUpdate=!0,!0)}function Un(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Dg&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Dg}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Gt(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);Bn(r,e,n);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&&mt(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{tn(e,o,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(tn(e,o,u),e.context?.strictMode)throw u}finally{l&&pt(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var Su=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ID=1e3,MD=24,Sk=Object.freeze({}),vk=Object.freeze({}),Ka=0,Fg=t=>{if(kt(t)||Su(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function xk(t,e,n){if(t===null||typeof t!="object")return t;if(--Ka<0||e>MD){Ka=-1;return}if(Array.isArray(t)){let o=new Array(t.length);for(let s=0;s<t.length;s++)o[s]=n?t[s]:xk(t[s],e+1,!1);return o}if(n||!Fg(t))return t;let r={};for(let o in t)Su(t,o)&&(r[o]=xk(t[o],e+1,o==="extends"||o==="childExtends"));return r}function PD(t){Ka=ID;let e;try{e=xk(t,0,!1)}catch{return Sk}return Ka<0?Sk:e}function kk(t,e,n,r){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Ka<0||n>MD)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(r?t[s]!==e[s]:!kk(t[s],e[s],n+1,!1))return!1;return!0}if(r||Array.isArray(e)||!Fg(t)||!Fg(e))return!1;let o=0;for(let s in t)if(Su(t,s)&&(o++,!Su(e,s)||!kk(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)Su(e,s)&&o--;return o===0}function DD(t,e){if(e===Sk||e===vk)return!1;Ka=ID;try{return kk(t,e,0,!1)}catch{return!1}}var jg=t=>Pe()?ke(()=>PD(t)):PD(t),LD=(t,e)=>Pe()?ke(()=>DD(t,e)):DD(t,e);function $D(t,e,n,r){let o=t;return o&&typeof o=="object"&&!Array.isArray(o)&&!Fg(o)&&(r||n&&!o.ignoreChildExtends)&&(o=r?Ne({},o):{...o}),typeof e=="function"?{item:o,props:r}:o}var ND=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Bg=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,r,o,s){this.rows.set(e,jg($D(n,o,s,r.props)))}failed(e){this.rows.set(e,vk)}none(e){this.rows.delete(e)}},y9=Object.freeze([]);function b9(t,e,n,r,o){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=ND(t),c=LD(a,i),l=t.childProps,f=go(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let b=0;b<n.length;b++){let x=bk(t,n[b],b,l,f,u,!1,!0);if(p.has(x.key))return!1;p.set(x.key,x),d[b]=x}for(let b=0;b<d.length;b++){let x=d[b];x.input=$D(n[b],l,u,x.props);let C=c?s.get(x.key):void 0;if(C===void 0)continue;let P=t[x.key];P&&P.__ref&&P.parent===t&&LD(x.input,C)&&(x.kept=!0,x.snap=C)}let g=o?[]:null;for(let b of s.keys()){let x=p.get(b);if(x&&x.kept)continue;let C=t[b];C?.remove&&C.remove(),delete t[b],g&&g.push(b)}let h=o?[]:null,m=o?[]:null,y=new Map,k=null,v=null;for(let b=0;b<d.length;b++){let x=d[b];if(x.kept){y.set(x.key,x.snap),m&&m.push(x.key);let R=Sr(t[x.key]);R&&(v=Ng(t,R,v));continue}y.set(x.key,jg(x.input));let C;try{C=zt(Os(x.def,x.supplied),t,x.key,r,wu(t,v))}catch(R){if(y.set(x.key,vk),k||(k=new Set),k.add(x.key),typeof console<"u"&&console.error){let j=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${x.key}" failed to construct at ${j} (re-run, skipping this row):`,R?.message||R)}continue}if(e.__disposed)return!0;if(!C){y.delete(x.key);continue}let P=Sr(C);P&&(v=P),h&&h.push(x.key)}e.__plainRows=new Bg(c?i:jg(a),y);let S=Array.from(y.keys());_k(t,S,k);let w=new Set(e.__children),_=[];for(let b=0;b<S.length;b++)w.has(S[b])&&_.push(S[b]);for(let b of e.__children)y.has(b)||_.push(b);return e.__children=_,o&&(h.length||g.length)&&Tg(t,{added:h,removed:g,kept:m}),!0}var FD={track:t=>new Bg(jg(ND(t)),new Map),reconcile(t,e,n,r,o){let s=Array.isArray(n)?n:n==null||n===!1?y9:null;return!!s&&b9(t,e,s,r,o)}};var Ug=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?Ug(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o},_9=new Set(["src","srcset"]);function Ek(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=jn(t);if(n==="string"||n==="fragment")return null;let r=Ug(t),o=e.registry[r===""?"__root":r],s=o!==void 0?e.nodes[o]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return o!==void 0&&e.misses++,null;let i=yr(n)&&(n==="svg"||t.parent?.node?.namespaceURI===ks),a=yr(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===ks:s.namespaceURI!==ks;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let f=s.parentNode,u=f?(e.pendingIn.get(f)||1)-1:0;u>0?e.pendingIn.set(f,u):f&&e.pendingIn.delete(f)}for(let f of Array.from(s.getAttributeNames?s.getAttributeNames():[]))_9.has(f)||s.removeAttribute(f);if(l){let f=0,u=0;for(let d=s.firstChild;d;){let p=d.nextSibling;l.has(d)||(d.nodeType===3?f++:d.nodeType!==8&&u++,s.removeChild(d)),d=p}(u||f>(t.text!=null?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&S9(s),s}var w9=500;function S9(t){let e=!1,n=!1,r=o=>{o.isTrusted&&(n?o.stopImmediatePropagation():e=!0,t.removeEventListener("load",r,!0))};t.addEventListener("load",r,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",r,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",r,!0),w9)}},0)}function x9(t,e,n,r,o){let s=t.pendingIn;if(!s||!s.has(r))return!1;if(o.parentNode===r&&t.claimed.has(o))return!0;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let f=l-1;f>=0;f--){let u=n[c[f]],d=u&&u.node;if(d&&d!==o&&d.parentNode===r){i=d.nextSibling;break}}return i===void 0&&(i=su(r,a&&a.__textNode)),i===o||r.insertBefore(o,i),!0}function k9(t,e){let n=t.whole;if(!n)return!1;if(n.has(e))return!0;let r=e.parent;return!r||!n.has(r)?!1:(n.add(e),!0)}var jD={adopt:Ek,place:x9,whole:k9};var Ms=50;function zn(t){return t===!0?Ms:typeof t=="number"&&t>0?t:0}var Ls=[],Ga=!1,_o=0,xr=Ms,vu=!1,Hg=[],zg=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Vg=[],xu=null;function v9(t){if(!xu){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Vg.shift();!Vg.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},xu=e}Vg.push(t),Vg.length===1&&typeof xu.port1.ref=="function"&&xu.port1.ref(),xu.port2.postMessage(0)}function Ok(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof setImmediate=="function"){setImmediate(t);return}if(typeof MessageChannel=="function"){v9(t);return}setTimeout(t,0)}function Wn(){return new Promise(t=>Ok(t))}var ku=0,Ck=0,Tk=0,qa=0;function Rk(){ku=0,Ck=_o,Tk=0,qa=0}function BD(){if(!_o)return!1;if(ku++,qa>0)return qa--,!1;let t=zg(),e=t-_o,n=e/ku,r=(t-Ck)/(ku-Tk),o=r>n?r:n;Ck=t,Tk=ku;let s=xr-e-o;return s<=0?(vu=!0,!0):(qa=o>0?Math.floor(s/o/2):0,!1)}var Is=0;function UD(t=Ms){Is===0&&!_o?(_o=zg(),vu=!1,xr=t,Rk()):t<xr&&(xr=t,qa=0),Is++}var Ds=null,Ak=!1,E9=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function Pk(){_o=0,vu=!1,xr=Ms,Rk()}function A9(){Ak||(Ak=!0,E9(()=>{Ak=!1,Is===0&&Pk()}))}function VD(){Is>0&&Is--,!(Is!==0||Ds!==null)&&(Ga?A9():Pk())}function Dk(t,e=Ms){let n={fn:t,budget:e};Ds?Ds.push(n):Ls.push(n),Ga||(Ga=!0,Ok(HD))}function C9(t){let e=Ds;Ds=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=Ds;Ds=e,n.length&&Ls.unshift(...n)}}function Ee(){return!Ga&&!Ls.length?Promise.resolve():new Promise(t=>Hg.push(t))}function wo(){return!Ga&&!Ls.length}function T9(){if(!Hg.length)return;let t=Hg;Hg=[];for(let e=0;e<t.length;e++)t[e]()}function HD(){for(_o=zg(),vu=!1,xr=1/0,Rk();Ls.length;){let t=Ls.shift();if(t.budget<xr&&(xr=t.budget,qa=0),C9(t),vu||zg()-_o>=xr)break}if(Is=0,Pk(),Ls.length){Ok(HD);return}Ga=!1,T9()}function Wg(t){Da(t.__ref).pending++}function Fe(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let r=n.tail;r&&(n.tail=null,r())}function Kg(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function kr(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.tail?Promise.resolve(t):new Promise(n=>{(e.waiters||(e.waiters=[])).push(n)})}function Lk(t,e=t&&t.__ref){let n=e&&e.__mount,r=n&&n.waiters;if(r){n.waiters=null;for(let o=0;o<r.length;o++)r[o](t)}}function zD(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let r=n.holder;n.holder=null,Lk(t,e),r&&Fe(r)}function O9(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let r=ct.hydration!==null&&t.context?t.context.__hydration:null;if(r&&ct.hydration.whole(r,t))return 0;let o=n?zn(n):0,s=zn(t.yieldChildren);return o&&s?o<s?o:s:o||s}function WD(t,e,n,r,o){UD(r);try{KD(t,t.__ref,0,e,n,r,o,!1)}finally{VD()}}function KD(t,e,n,r,o,s,i,a){try{for(let c=n;c<r;c++){let l=e.__mount,f=l?l.pending:0;if(o(c)===!1)continue;if(e.__disposed)break;let u=BD(),d=e.__mount;if(c+1<r&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||Wg(t);let p=c+1;Dk(()=>R9(t,e,p,r,o,s,i),s);return}}}catch(c){if(!a)throw c;Ig(t,c)}a&&Fe(t)}function R9(t,e,n,r,o,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){Fe(t);return}KD(t,e,n,r,o,s,i,!0)}function P9(t,e,n){Wg(t),Dk(()=>{try{let r=t.__ref;r&&!r.__disposed&&n()}catch(r){Ig(t,r)}finally{Fe(t)}},e)}function D9(t,e,n,r){let o=t.__ref,s=Da(o),i=++s.chunkGen,a=t.node,c=[],l=!1;WD(t,e,f=>{let u=n(f,l?wu(t,L9(a,c)):void 0),d=qD(u);return d?c.push(d):u&&u.__ref.__mount&&u.__ref.__mount.held&&c.push(u),u},r,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function qD(t){let e=Sr(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function L9(t,e){for(let n=e.length-1;n>=0;n--){let r=e[n].__ref?qD(e[n]):e[n];if(r&&r.parentNode===t)return r}return null}function I9(t,e){let n=t.__ref;try{Va(t,!0),oD(t),uk(t,e)}finally{Lk(t,n);let r=n.__mount,o=r&&r.holder;o&&(r.holder=null,Fe(o))}}var GD={budgetOf:O9,run:WD,rows:D9,defer:P9,hold:Wg,finish:I9,abandon:zD};function YD(){ct.viewEvents=yR,ct.chains=pR,ct.rows=FD,ct.hydration=jD,ct.mount=GD}YD();Lt();var Eu="inertOutside",$9=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),N9='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',F9={attributes:!0,attributeFilter:["inert"]},XD=new WeakMap,JD=new WeakMap,Au=new Set,ZD=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function So(t){try{return ke(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function QD(t){let e=()=>So(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function j9(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=XD.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(r=>So(()=>qg(e,r))),XD.set(t,e),e)}function Ik(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function B9(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var tL=t=>!!(t.closest&&t.closest("[inert]"));function U9(t){let e=t.ownerDocument,n=new Set,r=[];for(let o=t;o!==e.body;o=o.parentNode){let s=o.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;r.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==o&&!$9.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function eL(t,e){for(let n=0;n<e.length;n++){let{type:r,target:o}=e[n];r==="attributes"&&t.held.has(o)&&t.held.set(o,!o.hasAttribute("inert"))}}function qg(t,e){let{doc:n,held:r,observer:o}=t;e&&eL(t,e),eL(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=Ik(u,n);d&&!u.live&&(i.push(u),u.returnFocus=B9(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?U9(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of r)c.has(u)||(d&&u.removeAttribute("inert"),r.delete(u));for(let u of c)r.has(u)||r.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),r.set(u,!0));o.takeRecords(),o.disconnect();for(let u of l)o.observe(u,{childList:!0});for(let u of r.keys())o.observe(u,F9);t.layers.some(u=>!u.live)?Au.add(t):Au.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!Ea(u.element)&&(u.connecting=!0,lo(u.element,()=>So(()=>{u.connecting=!1,u.declared&&!u.live&&Ik(u,t.doc)&&qg(t)})));if(a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),QD(()=>rL(t,a));else if(f){let u=f.returnFocus;QD(()=>V9(t,f,u))}f&&(f.returnFocus=null)}function rL(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let r=t.doc,o=r.activeElement;if(o&&n.contains(o))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),r.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(N9))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function V9(t,e,n){if(e.declared&&e.live)return;let r=t.doc,o=r.activeElement,s=e.element.node;(!o||o===r.body||s&&s.contains(o)||tL(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!tL(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&rL(t,t.top))}function Mk(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let r=n.layers.indexOf(t);r!==-1&&n.layers.splice(r,1)}qg(n)}function oL(t){let e=t[Eu];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function nL(t){let e=JD.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=j9(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,connecting:!1,returnFocus:null},JD.set(t,e);let s=W(()=>{let i=oL(t);So(()=>Mk(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+Eu});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>So(()=>Mk(e,!1))),e}function H9(){for(let t of Au){if(!t.doc.defaultView){Au.delete(t);continue}t.layers.some(e=>!e.live&&Ik(e,t.doc))&&qg(t)}}var Gg={name:Eu,create(t){ZD(t,Eu)&&So(()=>nL(t))},render(){Au.size&&So(H9)},update(t){ZD(t,Eu)&&So(()=>{let e=nL(t);e&&Mk(e,oL(t))})}};var sL={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["gray-168","gray+168"],caption:["gray-68","gray+68"],paragraph:["gray-42","gray+42"],disabled:["gray-26","gray+26"],line:["gray-16","gray+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"]},iL={"gradient-blue-light":`linear-gradient(to right,
62
63
  rgba(4, 116, 242, 1),
63
64
  rgba(0, 48, 103, 1)
64
65
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -84,12 +85,12 @@ FROM ${a}${l}`},EB=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
84
85
  #1E54F0 36%,
85
86
  #8B4CCA 69%,
86
87
  #C66894 100%
87
- )`};var CV={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"}}}},TV={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},OV={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"}}},gD={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...CV,...TV,...OV,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 mD={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var yD={ratio:1.618,subSequence:!0};var bD={SourceSans:[{url:""}]},_D={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 wD={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 SD={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var xD={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var kD={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var iu={version:"0.0.1",color:pD,gradient:hD,theme:gD,typography:mD,spacing:yD,font:bD,fontFamily:_D,timing:xD,icons:wD,media:SD,sizes:kD,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 Fa={};F(Fa,{A:()=>OI,AssetPicture:()=>UD,Audio:()=>zD,Avatar:()=>QI,B:()=>lL,Block:()=>vD,Box:()=>Cg,Br:()=>pL,Bridge:()=>SL,Button:()=>DI,ButtonSet:()=>$I,COMPONENTS:()=>Ds,Caption:()=>tL,Checkbox:()=>vL,CheckboxHgroup:()=>EL,Circle:()=>FD,CircleButton:()=>II,Clickable:()=>MD,Data:()=>uL,Dialog:()=>UI,DialogFooter:()=>HI,DialogHeader:()=>VI,Dropdown:()=>AM,DropdownList:()=>CM,DropdownParent:()=>TM,DropdownParentFocus:()=>OM,DropdownSiblingFocus:()=>RM,FileIcon:()=>NL,Flex:()=>AD,Focusable:()=>$D,FocusableComponent:()=>ND,Footnote:()=>cL,Form:()=>DD,Grid:()=>TD,Gutter:()=>RD,H1:()=>KD,H2:()=>GD,H3:()=>YD,H4:()=>XD,H5:()=>ZD,H6:()=>JD,Headline:()=>iL,Hgroup:()=>bL,HgroupButton:()=>wL,HgroupRows:()=>_L,Hoverable:()=>ID,Hr:()=>dL,I:()=>fL,Icon:()=>ML,IconButton:()=>NI,IconText:()=>$L,Iframe:()=>LD,Img:()=>PD,Inline:()=>ED,InlineFlex:()=>CD,InlineGrid:()=>OD,Input:()=>xL,Italic:()=>oL,KangorooButton:()=>MI,Li:()=>hL,Link:()=>zk,Notification:()=>PM,NumberInput:()=>kL,Ol:()=>mL,P:()=>QD,Picture:()=>BD,Radio:()=>AL,RadioHgroup:()=>CL,Range:()=>tM,RouteLink:()=>RI,RouterLink:()=>Wk,SHAPES:()=>Eg,Select:()=>PI,Shape:()=>rk,Span:()=>qD,SquareButton:()=>LI,Strong:()=>eL,Subhead:()=>aL,Svg:()=>VD,Text:()=>WD,Textarea:()=>RL,TextareaWithButton:()=>PL,Theme:()=>jD,Title:()=>sL,Toggle:()=>TL,ToggleHgroup:()=>OL,Tooltip:()=>XI,TooltipHidden:()=>ZI,TooltipLayer:()=>ev,TooltipParent:()=>JI,U:()=>nL,Ul:()=>gL,Underline:()=>rL,Video:()=>HD,depth:()=>Ag,focusableRingEnabled:()=>au,focusableRingToken:()=>ek,focusableRingValue:()=>vs,getSystemGlobalTheme:()=>cu});var Z0={};F(Z0,{Block:()=>vD,Flex:()=>AD,Grid:()=>TD,Gutter:()=>RD,Inline:()=>ED,InlineFlex:()=>CD,InlineGrid:()=>OD});var vD={display:"block"},ED={display:"inline"},AD={display:"flex"},CD={display:"inline-flex"},TD={display:"grid"},OD={display:"inline-grid"},RD={boxSize:"C1"};var J0={};F(J0,{Img:()=>PD});M();var PD={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=me(t);return e&&e.src||t.src},srcset:t=>{let e=me(t);return(e?Ml(e):"")||t.srcset||t.srcSet}}};var Q0={};F(Q0,{Form:()=>DD});var DD={tag:"form"};var tk={};F(tk,{Iframe:()=>LD});var LD={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var nk={};F(nk,{Clickable:()=>MD,Focusable:()=>$D,FocusableComponent:()=>ND,Hoverable:()=>ID,focusableRingEnabled:()=>au,focusableRingToken:()=>ek,focusableRingValue:()=>vs});var RV={appearance:"none",fontFamily:"inherit"},ID={transition:"opacity C defaultBezier, transform C defaultBezier",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}}},MD={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function au(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function ek(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let r=n.outline||void 0,o=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return r||o!==void 0?{outline:r,outlineOffset:o}:null}function vs(t,e,n){let r=ek(t);return r&&r[e]!==void 0?r[e]:n}var $D={border:"none",outline:t=>au(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>au(t)?vs(t,"outline","solid X currentColor"):"none",outlineOffset:t=>au(t)?vs(t,"outlineOffset"):void 0}},ND={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:RV};var ik={};F(ik,{Picture:()=>BD});var sk={};F(sk,{Theme:()=>jD,getSystemGlobalTheme:()=>cu});var ok={};F(ok,{Circle:()=>FD,SHAPES:()=>Eg,Shape:()=>rk,default:()=>PV,depth:()=>Ag});M();var Ze=O(),Ag={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Ze.unit.default} 4${Ze.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Ze.unit.default} 6${Ze.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Ze.unit.default} 10${Ze.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Ze.unit.default} 16${Ze.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Ze.unit.default} 26${Ze.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Ze.unit.default} 42${Ze.unit.default}`}},Da=t=>at(t.shapeDirectionColor)||at(t.borderColor)||at(t.backgroundColor)||at(t.background),vg=t=>{let e=If.transition(t.transition,t);return e&&e.transition},Eg={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:Da(t),transition:vg(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:Da(t),transition:vg(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:Da(t),transition:vg(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:vg(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Da(t)} 25%, transparent 25%), linear-gradient(315deg, ${Da(t)} 25%, transparent 25%)`},"&:after":{background:Da(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)"}}}},rk={deps:{exec:St,getSpacingBasedOnRatio:ze,getMediaColor:Vt},classlist:{shape:t=>t.deps.exec(Eg[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Eg[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}}},FD={round:"100%"},PV=rk;M();var cu=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},jD={deps:{depth:Ag},classlist:{depth:t=>!Wt(t.depth)&&t.deps.depth[t.depth]}};var BD={deps:{getSystemGlobalTheme:cu},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:cu},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:r}=t,{media:o}=n.designSystem,s=r.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 ak={};F(ak,{AssetPicture:()=>UD});M();var UD={tag:"picture",children:t=>{let e=me(t);if(e)return $l(e,t.alt)}};var ck={};F(ck,{Svg:()=>VD});var VD={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:n,utils:r}=e,o=n&&n.svg,s=t.spriteId||n&&n.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 p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=r&&r.scratchSystem&&r.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):r&&typeof r.init=="function"&&r.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}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)}`,r.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var lk={};F(lk,{Video:()=>HD});M();var HD={tag:"video",controls:!0,attr:{src:t=>{let e=me(t);return e&&e.src||t.src}},children:t=>{let e=me(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var fk={};F(fk,{Audio:()=>zD});M();var zD={tag:"audio",controls:!0,attr:{src:t=>{let e=me(t);return e&&e.src||t.src}},children:t=>{let e=me(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var uk={};F(uk,{B:()=>lL,Caption:()=>tL,Data:()=>uL,Footnote:()=>cL,H1:()=>KD,H2:()=>GD,H3:()=>YD,H4:()=>XD,H5:()=>ZD,H6:()=>JD,Headline:()=>iL,I:()=>fL,Italic:()=>oL,P:()=>QD,Span:()=>qD,Strong:()=>eL,Subhead:()=>aL,Text:()=>WD,Title:()=>sL,U:()=>nL,Underline:()=>rL});var WD={},qD={tag:"span"},KD={tag:"h1"},GD={tag:"h2"},YD={tag:"h3"},XD={tag:"h4"},ZD={tag:"h5"},JD={tag:"h6"},QD={tag:"p"},tL={tag:"caption"},eL={tag:"strong",fontWeight:"700"},nL={tag:"u"},rL={tag:"u"},oL={tag:"i"},sL={},iL={tag:"h6",fontSize:"B",fontWeight:500},aL={tag:"span",fontSize:"Z1"},cL={tag:"span",fontSize:"Z"},lL={tag:"b"},fL={tag:"i"},uL={tag:"data"};var dk={};F(dk,{Box:()=>Cg,Br:()=>pL,Hr:()=>dL,Li:()=>hL,Ol:()=>mL,Ul:()=>gL});var DV=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ne(e,t,{unpack:!1});n.__class=r},Cg={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:DV},dL={tag:"hr",margin:"C1 0"},pL={tag:"br"},hL={tag:"li"},gL={tag:"ul",childExtends:{extends:"Li"}},mL={tag:"ol",childExtends:{extends:"Li"}};var pk={};F(pk,{Hgroup:()=>bL,HgroupButton:()=>wL,HgroupRows:()=>_L});var yL=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},bL={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:yL,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:yL,margin:"0",color:"paragraph"}},_L={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},wL={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var hk={};F(hk,{Bridge:()=>SL});var SL={tag:"div"};var gk={};F(gk,{Input:()=>xL});var xL={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,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,required:t=>t.required,type:t=>t.type}};var mk={};F(mk,{NumberInput:()=>kL});var kL={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var yk={};F(yk,{Checkbox:()=>vL,CheckboxHgroup:()=>EL});var vL={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:t=>vs(t,"outline","solid X currentColor"),outlineOffset:t=>vs(t,"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"}}},EL={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var bk={};F(bk,{Radio:()=>AL,RadioHgroup:()=>CL});var AL={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}},CL={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var _k={};F(_k,{Toggle:()=>TL,ToggleHgroup:()=>OL});var TL={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}},OL={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var wk={};F(wk,{Textarea:()=>RL,TextareaWithButton:()=>PL});var RL={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"}},PL={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 Sk={};F(Sk,{FileIcon:()=>NL,Icon:()=>ML,IconText:()=>$L});Rt();var DL=new Set,LL=(t,e)=>{if(!DL.has(t)&&(DL.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${r} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},IL=new WeakMap,LV=t=>{let e=IL.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},IL.set(t,e)),e},IV=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},MV=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);bt(t);try{let o=O();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=ns(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&rs(s,{document:r}),Object.keys(s).length>0}finally{mt()}},$V=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=LV(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=()=>i(e,t),f=Promise.resolve().then(l).then(u=>{let d=IV(u,n);return d?MV(s,d,r):!1}).catch(u=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,u),!1)).then(u=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),u||a.failed.add(e),d&&d.forEach(p=>{try{p(u)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,f),!0},ML={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:r}=t,{icons:o,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,m)=>{try{return{value:t.call("exec",h,m)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!c&&typeof console<"u"&&console.warn){c=!0;let _=t.__ref&&t.__ref.path,S=_&&_.length?` at <${_.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${S} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:_}=m&&m.utils,v=_(h).split(/([a-z])([A-Z])/g),x=v[1]?v[0]:h.split(".")[0].split(" ")[0],w=y&&y[x];if(w){let b=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=w[b]||w[h.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${h}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=h=>{let{key:m}=h,y=l(h.name||h.icon||m,h);if(y.threw)return{name:m,threw:!0};let _=y.value;return h.call("isString",_)&&_.includes("{{")&&(_=h.call("replaceLiteralsWithObjectFields",_)),{name:h.call("isString",_)?_:m}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let m=h.name,y=m;if(m.includes(" ")){let N=m.split(" ");m=N[0]+N.slice(1).map(B=>B.charAt(0).toUpperCase()+B.slice(1)).join("")}let _=a(m),S=_.split(/([a-z])([A-Z])/g),v=f(y,n);if(v){Object.assign(t,v);return}let x,w=t[".isActive"];w&&(w.name||w.icon)&&t.isActive&&(x=l(w.name||w.icon,t).value);let b=r&&r[".isActive"];b&&b.icon&&r.isActive&&(x=l(b.icon||b.Icon.name||b.Icon.icon,t).value),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let k;o[x]&&(k=x),o[_]?k=_:o[S[0]+S[1]]?k=S[0]+S[1]:o[S[0]]?k=S[0]:i&&t.warn("Can't find icon:",m,k);let C=o[k],D=r&&r.src||d;!C&&!D&&($V(n,y,_,t,B=>{if(!(p&&p._disposed)){if(!B)return LL(y,t);g()}})||LL(y,t));let R=s&&k,$=C||D||o.noIcon;if(!(t.spriteId===R&&t.src===$&&t.node&&t.node.innerHTML)&&(t.spriteId=R,t.src=$,typeof t.html=="function"&&t.node)){let N=t.context&&t.context.designSystem;N&&bt(N);try{let B=t.html(t,t.state,t.context);B!=null&&typeof B!="function"&&(t.node.innerHTML=B)}finally{N&&mt()}}};p=z(g,{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0}),t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(p))},attr:{viewBox:"0 0 24 24","aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},$L={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},NL={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var qk={};F(qk,{A:()=>OI,Link:()=>zk,RouteLink:()=>RI,RouterLink:()=>Wk});var Ma={};F(Ma,{default:()=>w9,getActiveRoute:()=>Hk,lastLevel:()=>Dg,lastPathname:()=>Ia,loadLazy:()=>Nk,matchRoute:()=>Bk,parseQuery:()=>Uk,parseRoutePattern:()=>jk,resolveRouterElement:()=>gu,router:()=>dn,runGuards:()=>vI,saveScrollPosition:()=>uu});M();var xk="__smblsRouter",kk=new WeakMap,NV=0,vk=()=>Date.now().toString(36)+(++NV).toString(36)+Math.random().toString(36).slice(2,6),Ek=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},gr=t=>{try{return t.state}catch{return}},fu=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},UL=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},VL=t=>{let e=UL(t)?t[xk]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},Ak=(t,e)=>t==null?{[xk]:e}:UL(t)?{...t,[xk]:e}:null,Ck=()=>({key:vk(),index:0,chain:vk()}),La=(t,e)=>{let n=VL(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:fu(t),state:e}},HL=(t,e)=>{let n=VL(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},lu=(t,e,n)=>!!n&&fu(t)===n.url&&HL(e,n),Tk=(t,e,n)=>({...t,url:e,state:n}),Ok=(t,e)=>{let n=gr(e),r=La(t,n);if(r.key)return r;let o=Ck(),s=Ak(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return Tk(o,r.url,s)},FV=(t,e)=>{let n=kk.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},kk.set(t,n)),n||null},zL="smbls.router.scroll",FL=100,jV=1e3,jL=["wheel","touchstart","keydown","pointerdown"],WL=t=>{try{return t.sessionStorage||null}catch{return null}},qL=t=>{try{let e=JSON.parse(t.getItem(zL)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},KL=(t,e)=>{if(!t.positions){t.positions=new Map;let n=WL(e);if(n)for(let[r,o]of qL(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},Rk=(t,e,n,r)=>{let o=KL(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>FL&&o.delete(o.keys().next().value);let s=WL(e);if(s)try{let i=new Map(qL(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem(zL,JSON.stringify(Array.from(i).slice(-FL)))}catch{}},BL=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},BV=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:jV,c=()=>Math.max(0,(Number(o.scrollHeight)||0)-(Number(o.clientHeight)||0)),l=(h,m)=>{typeof o.scrollTo=="function"?o.scrollTo({top:h,left:m,behavior:"instant"}):(o.scrollTop=h,o.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>r.end("visitor");if(r.end=h=>{if(!r.outcome&&(r.outcome=h,f))for(let m of jL)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),r.end("placed");Number(o.scrollTop)>0&&l(0,0);let d=Number(o.scrollTop)||0,p=Date.now();if(f)for(let h of jL)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(r.outcome)return;if(n.seq!==r.seq)return r.end("overtaken");if(Math.abs((Number(o.scrollTop)||0)-d)>1)return r.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return BL(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};BL(t,e,g)},UV=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=La(n,gr(r)),a=o.expect;o.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=o.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&Rk(o,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:o.seq,settled:!1,committed:!1},o.pending=c}return o.pops.set(e,c),c},VV=t=>{let{win:e,history:n,track:r}=t,o=gr(n);if(r.pending&&lu(e,o,r.pending.to)||r.expect&&lu(e,o,r.expect.away))return;let s=r.current;if(s&&(s.key?HL(o,s):lu(e,o,s))){s.url=fu(e),s.state=o;return}r.current=t.restore?Ok(e,n):La(e,o),r.pending=null,r.seq++},GL=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=Ek(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&FV(o,s);if(!i)return null;let a={win:t,history:o,track:i,restore:r,scrollNode:r&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=UV(a,c):VV(a),a},Tg=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},Pk=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:r,track:o}=t;return Tg(o,e),o.seq!==e.seq||!lu(n,gr(r),e.to)?!1:(o.current=t.restore&&!e.to.key?Ok(n,r):e.to,o.seq++,e.committed=!0,!0)},YL=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&Tg(t.track,e)},HV=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},Dk=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;Tg(s,n);let i=n.from;if(!i||s.seq!==n.seq||!lu(r,gr(o),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};HV(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=Ck(),l=Ak(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?Tk(c,i.url,l):La(r,gr(o)),s.seq++},XL=(t,e)=>{let n=fu(e);t&&n!==null&&(t.__routerAddress=n)},ZL=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return Dk(t,!0);r&&!r.settled&&Tg(t.track,r);let o=Ek(n),s=e&&e.__routerAddress;if(!(!o||!s||s===fu(n)))try{o.replaceState(gr(o),null,s)}catch{}},JL=(t,e,n,r,o=t&&t.win)=>{if(!t){try{r?o.history.replaceState(e,null,n):o.history.pushState(e,null,n)}catch{}return}let{history:s,track:i}=t,a=i.current;!r&&a&&a.key&&t.scrollNode&&Rk(i,o,a.key,t.scrollNode);let c=r?La(o,gr(s)):Ok(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:vk(),index:c.index+1,chain:c.chain}:Ck(),f=Ak(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?Tk(l,n,f):La(o,gr(s)),i.pending=null,i.expect=null,i.seq++},QL=(t,e,n,r)=>{if(!t||!t.restore||!e)return!1;let o=t.pop;if(o?o.stay||!o.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&KL(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(o?l.pop===o:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||BV(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},uu=t=>{let e=Ek(t),n=e&&kk.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Rk(n,t,n.current.key,n.scrollNode)};M();var rI=["components","functions","methods","snippets"],oI=new Set(["pages",...rI]),Lk=new Set(["default","__esModule"]),Es=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Yt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Og=new WeakMap,tI=new WeakMap,Mk=new WeakMap,eI=new Set,As=(t,e=console.warn)=>{eI.has(t)||(eI.add(t),e(t))},sI=t=>Yt(t&&t.lazy),du=(t,e)=>{let n=t&&t.lazy;return Yt(n)&&Es(n,e)?n[e]:void 0},$k=(t,e)=>{let n=Og.get(t);n||(Og.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();Og.delete(t)}));let r=n.get(e);return r||(r={status:"idle",promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},iI=(t,e)=>!sI(e)||!Yt(t)||!Es(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,Rg=t=>!!t&&typeof t=="object"&&Mk.has(t),aI=t=>t&&(t.status==="error"||t.status==="reload")?t.status:"loading",zV=(t,e)=>typeof du(t,e)!="function"?"error":aI(Og.get(t)?.get(e)),WV=(t,e)=>{let n=tI.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Yt(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Yt(f)?f:null,lazyStatus:zV(c.context,e)}}:(s.state=o,tt()&&As(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(o)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return tI.set(t,a),Mk.set(s,a),a},qV=t=>t.__ref&&t.__ref.contentElementKey||"content",Pg=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&Rg(n.content)?Mk.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[qV(t)]}},Ik=(t,e,n)=>{let r=Pg(t,e);if(!r||!r.record.hasStatus)return;let o=r.page&&r.page.state;if(!(!o||typeof o.update!="function"||o.lazyStatus===n))try{o.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},KV=t=>Yt(t)?!Object.keys(t).some(n=>oI.has(n))&&Yt(t.default)?t.default:t:{},GV=t=>{let e={};if(!Yt(t))return e;for(let n of Object.keys(t)){if(Lk.has(n))continue;let r=n.charCodeAt(0)===47,o=r?n:"/"+(n==="index"?"":n);(r||!Es(e,o))&&(e[o]=t[n])}return e},cI=(t,e,n,r,o)=>{if(!Yt(t))return 0;let s=0;for(let i of Object.keys(t))iI(t[i],r)===e&&(s++,Es(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Es(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},nI=(t,e,n)=>{let r=t[e];if(!Yt(r)){t[e]={...n};return}try{for(let o in n)r[o]=n[o];if(Object.keys(n).every(o=>r[o]===n[o]))return}catch{}t[e]={...r,...n}},YV=t=>{let e=t.__ref&&t.__ref.origin;if(!Yt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let r=t.key;if(typeof r!="string"||!/^[A-Z]/.test(r))return[];let o=[r.indexOf("_"),r.indexOf(".")].filter(s=>s>0);return[o.length?r.slice(0,Math.min(...o)):r]},XV=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=Pg(i,e);a&&a.page&&o.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||o.has(l)||!l.node)){for(let f of YV(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");As(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},ZV=(t,e,n,r)=>{let o=t.context,s=KV(n),i=tt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))oI.has(p)||Lk.has(p)||As(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of rI){let g=s[p];if(!Yt(g))continue;let h=Yt(o[p])?o[p]:{},m={};for(let _ of Object.keys(g))if(!Lk.has(_)){if(Es(h,_)){h[_]!==g[_]&&a.push(`${p}.${_}`);continue}m[_]=g[_]}let y=Object.keys(m);if(y.length&&(nI(o,p,m),p==="components"&&y.forEach(_=>c.add(_)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Yt(o.utils))){let _={};for(let S of y)Es(o.utils,S)||(_[S]=m[S]);Object.keys(_).length&&nI(o,"utils",_)}}l&&wa(o);let f=GV(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Yt(o.pages)&&d.add(o.pages),u&&Yt(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Yt(p.routes)&&d.add(p.routes);for(let p of d)cI(p,e,f,o,a);i&&a.length&&As(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&XV(u,e,c,r)},lI=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;if(!r||r.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Pg(t,e))return;let o=()=>r.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(o).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},pu=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",JV=(t,e,n)=>!!t&&(pu(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),fI=(t,e)=>{let n=t.context,r=$k(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=du(n,e),s=r.failure;r.status="loading";let i,a=!1,c=()=>i=o(),l=Promise.resolve().then(c).then(f=>{a=!0,r.disposed||ZV(t,e,f,r)}).then(()=>{r.status="loaded",r.failure=null;let f=[...r.waiting];r.waiting.clear();for(let u of f)lI(u,e)},f=>{let u=!a&&JV(s,i,f);if(r.failure=a?null:{returned:i,error:f},r.status=u?"reload":"error",r.promise=null,r.disposed)throw f;u?As(`[smbls/router] lazy group "${e}" cannot load in this page: its loader handed back the import that already failed (the same promise or the same error) and requested nothing \u2014 a bundler that keeps a failed dynamic import (parcel) does this. Its routes show their placeholder with lazyStatus 'reload'; reloading the page loads the group.`,d=>console.error(d,f)):console.error(`[smbls/router] lazy group "${e}" failed to load. Its routes show their placeholder with lazyStatus 'error'; the next navigation to one of them, or loadLazy('${e}'), calls the group's loader again.`,f);for(let d of[...r.waiting])Pg(d,e)?Ik(d,e,r.status):r.waiting.delete(d);throw f});l.catch(()=>{}),r.promise=l;for(let f of r.waiting)Ik(f,e,"loading");return l},uI=(t,e,n)=>{let r=e&&e.context,o=iI(t,r);if(!o)return null;let s=$k(r,o);if(Yt(n)&&s.maps.add(n),s.status==="loaded"&&cI(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof du(r,o)=="function";return i?fI(e,o):As(`[smbls/router] a route names lazy group "${o}", which context.lazy does not declare as a loader (\`lazy: { ${o}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:WV(t,o).definition,group:o,status:i?"loading":"error"}},dI=(t,e,n)=>{if(!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof du(r,e.group)!="function")return;let s=$k(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},Ik(t,e.group,aI(s)),s.status==="loaded"){let i=()=>lI(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function Nk(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));let r=du(n,t);return typeof r!="function"?(r===void 0&&sI(n)&&tt()&&As(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):fI(e,t)}var QV=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),pI=(t,e,n)=>{let r=n.mountOptions;if(!r)return;let o=e.context&&e.context.domqlOptions;for(let s in r)t[s]=o&&s in o?o[s]:void 0},_I=t=>{let e=Bn;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},t9=t=>{let e=Sg;return typeof e!="function"||!e(t)?null:xs(t)},Fk=Object.freeze({holdTail:!0}),e9=t=>typeof t.holdPage=="function"&&typeof $e=="function",wI=(t,e)=>{let n=()=>$e(t);pu(e)?e.then(n,n):n()},n9=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}wI(e,n)},SI=Object.freeze({holdTail:!0,deferAttach:!0}),r9=(t,e,n,r)=>{let o=t.firstView;if(!o||typeof $e!="function"||typeof oo!="function")return null;if(!o.committed)return Fk;if(!_I(r))return null;let s=e.node;return!e[n]&&s&&s.isConnected?SI:(r.mountYield=void 0,null)},o9=(t,e,n,r)=>{if(e===Fk){t.firstView.page=n,wI(n,t.firstView.commit);return}e===SI&&hr().then(()=>{n.__ref&&r()&&oo(n),$e(n)})},xI=/^:(.+)/,kI=/^\*$/,hI=new Map,jk=t=>{let e=hI.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),r=[],o=!1;for(let i=0;i<n.length;i++){let a=n[i].match(xI);a?r.push({index:i,name:a[1]}):kI.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return hI.set(t,s),s},Bk=(t,e,n=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),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=jk(l),u=s9(o,f);u>a&&(a=u,i=l,c=i9(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},s9=(t,e)=>{let{segments:n,hasWildcard:r}=e;if(!r&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let o=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])o+=3;else if(xI.test(n[i]))o+=1;else if(kI.test(n[i]))o+=.5;else return-1;return o},i9=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},Uk=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((r,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(r)):e[o]=r}),e},gI=t=>t===!1||typeof t=="string"?t:void 0,Vk=(t,e,n=0)=>{for(let r=n;r<t.length;r++){let o=t[r](e);if(pu(o))return Promise.resolve(o).then(i=>{let a=gI(i);return a===void 0?Vk(t,e,r+1):a});let s=gI(o);if(s!==void 0)return s}return!0},vI=async(t,e)=>!t||!t.length?!0:Vk(t,e),gu=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},a9=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=gu(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},Hk=(t=0,e)=>{e||(e=typeof T<"u"?T.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},Ia,Dg=0,mI=0,c9=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,l9=t=>t&&(t.scrollingElement||t.documentElement)||null,EI={level:Dg,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},AI=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},CI=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},f9=(t,e,n,r,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(CI(e),!n||!n.node||typeof t.onRouteExit>"u"||!AI(s,i))return null;let c=typeof o=="number"&&o>=0?o:EI.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=Gn("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},hu=new WeakMap,u9=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,d9=(t,e,n,r)=>{let o=u9(t.transition);return!o||!e||Rg(e.content)||!n||typeof n.startViewTransition!="function"||hu.get(n)>0||!AI(n,r)?null:o},p9=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},h9=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},g9=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},m9=100,y9=1e3,yI=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,bI=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},b9=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},_9=(t,e,n,r,o,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:l,previousName:f&&f.name&&c?f.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){u.updating=!0,u.swapStarted=bI(o),hu.set(r,(hu.get(r)||0)+1);try{return i()}finally{hu.set(r,hu.get(r)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=h9(n),h=null;try{h=g.length&&g9(o)?r.startViewTransition({update:d,types:g}):r.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,b9(h.ready);let m=!1,y=null,_=()=>{m=!0,y!==null&&(o.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},S=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(_,_):_();let v=yI(n.swapBudget,m9),x=yI(n.timeout,y9);x!==1/0&&h.ready&&typeof h.ready.then=="function"&&o&&typeof o.setTimeout=="function"&&h.ready.then(()=>{m||(y=o.setTimeout(()=>{y=null,S()},x))},()=>{});let w=h.updateCallbackDone;return!w||typeof w.then!="function"?Promise.resolve():(v!==1/0&&w.then(()=>{u.swapStarted!==void 0&&bI(o)-u.swapStarted>v&&S()},()=>{}),w)},dn=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||T,i=o?.context?.document||yt,a={...EI,...o.context.routerOptions,...r};Dg=a.lastLevel,o=a9(o,a);let c=!(r&&r.render===!1),l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let f=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";t=c9(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:m}=p,y=Uk(h),_=o.node,S=m&&m!==s.location.hash.slice(1),v=g!==Ia,x=Ia,w=++mI;Ia=g;let b=()=>{mI===w&&(Ia=x)},k=l.__routerRendered,C,D,R,$;if(a.useParamsMatching){let Y=Bk(g,o.routes,a.level);C=Y.key,D=Y.routePath,R=Y.content,$=Y.params}else{C=Hk(a.level,g),D=C;let Y=o.routes;R=Y?Y[C||"/"]||Y["/*"]:null,$={}}a.scrollNode===void 0&&(a.scrollNode=l9(i));let N=a.scrollToNode?_:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let B=GL(s,a,N);if(B&&B.pop&&B.pop.echo)return;if(!R){b(),a.onNotFound?a.onNotFound({pathname:g,route:C,element:o}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(o.routes||{})),a.event&&a.event.type==="popstate"&&ZL(B,l,s));return}let et=r&&r.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let Y={pathname:g,route:C,params:$,query:y,hash:m,element:o,state:n},Q=Vk(a.guards,Y);if(pu(Q)&&(Q=await Q,l.__routerStartSeq!==et)){b(),YL(B);return}if(Q===!1){b(),Dk(B);return}if(typeof Q=="string"){let Ct=!!(B&&B.pop);if(Ct&&!Pk(B))return;let ct={...r,guards:[]};return Ct&&(ct.event=void 0),delete ct.render,(Ct||a.initialRender)&&(ct.pushState=!0,ct.replace=!0),dn(Q,e,n,ct)}}let X=c?uI(R,o,o.routes):null;if(X&&X.rematch)return dn(t,o,n,r);X&&(R=X.content,a.lazy={group:X.group,status:X.status});let st=l.__routerNavSeq=(l.__routerNavSeq||0)+1,Dt=!k||k.content!==R||k.route!==C,Lt=!!k&&k.content===R,q=!(!c||a.keepSamePage===!0&&Lt&&a.force!==!0)&&(v||Dt||a.force===!0);if(q&&k&&!Rg(k.content)){let Y=f9(o,l,o[f],{from:k.route,to:C,pathname:g,params:$,query:y,hash:m},a.exitTimeout,i,s);if(Y&&(await Y,l.__routerNavSeq!==st||(l.__routeExit&&l.__routeExit.wait===Y&&(l.__routeExit=null),typeof o?.set!="function")))return}else CI(l);let G=q?d9(a,k,i,s):null;if(q&&p9(l),a.pushState){let Y=g+(h||"")+(m||"");JL(B,n,Y,a.replace,s)}else B&&Pk(B);XL(l,s);let nt=QV(o,a,f),J=()=>{let Y=q?r9(a,o,f,nt):null,Q=(!!k||_I(nt))&&!!N&&N.scrollTop===0&&!N.scrollLeft,ct=v||!S?{route:C,routePath:D,hash:m,params:$,query:y,debugging:!1}:{params:$,query:y};a.updateState&&o.state.update(ct,{preventContentUpdate:!0});let yn=null;if(q){f&&a.removeOldElement&&o[f].remove();let Ot=o.__ref?.origin?.content,bn={};if(Ot)for(let K in Ot){let ut=Ot[K];K==="__ref"||K==="props"||K==="node"||K==="parent"||K==="key"||(typeof ut=="string"||typeof ut=="number"||typeof ut=="boolean"||typeof ut=="object"&&ut!==null&&!ut.node&&!ut.__ref)&&(bn[K]=ut)}let oe={...bn,...typeof R=="object"?R:{extends:R}};a.useFragment&&(oe.tag="fragment");let _n={content:R,route:C},H=l.__routerRendered;try{if(typeof o?.set!="function")return;l.__routerRendered=_n;let K=!Y&&e9(a),ut=o.set(oe,nt,Y||(K?Fk:void 0));ut&&Y?o9(a,Y,ut,()=>l.__routerNavSeq===st):ut&&K&&n9(a,ut),yn=t9(o[f])}catch(K){l.__routerRendered===_n&&(l.__routerRendered=H),console.error("[smbls/router] failed to render route content",g,K)}}else Lt&&k.route!==C&&l.__routerRendered===k&&(l.__routerRendered={content:R,route:C});let re=()=>{let Ot=!v&&S,bn=!c||QL(B,N,a,i);if(!bn&&a.scrollToTop&&!Ot&&!Q&&N?.scrollTo&&N.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!bn&&a.scrollToNode&&R[f]?.node?.scrollTo&&R[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!bn&&m){let oe=i.getElementById(m.slice(1));if(oe&&N?.scrollTo){let _n=s.getComputedStyle?s.getComputedStyle(oe):null,H=_n&&parseFloat(_n.scrollMarginTop)||0,K=oe.getBoundingClientRect().top+N.scrollTop-H-(a.scrollToOffset||0);N.scrollTo({...a.scrollToOptions||{},top:K,left:0})}}X&&dI(o,X,oe=>dn(t,o,n,{...r,...oe})),Gn("routeChanged",o,a)};if(yn)return yn.then(()=>{pI(nt,o,a),l.__routerNavSeq===st&&re()});pI(nt,o,a),re()},ft=G?_9(o,l,G,i,s,st,J):null;if(ft){await ft;return}return J()},w9=dn;var S9=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let r=n.getAttribute("target");return r&&r.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},TI=(t,e,n)=>{let{context:r}=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||S9(t,e))return;let{utils:c,snippets:l,functions:f,routerOptions:u}=r,d=e.__ref.root,p=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&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||dn)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},zk={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Zr(t,t.href)||Zr(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:TI},OI={extends:"Link"},Wk={onClick:TI},RI={extends:[zk,Wk]};var Kk={};F(Kk,{Select:()=>PI});var PI={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 Gk={};F(Gk,{Button:()=>DI,ButtonSet:()=>$I,CircleButton:()=>II,IconButton:()=>NI,KangorooButton:()=>MI,SquareButton:()=>LI});var DI={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"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)},LI={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"},II={extends:"SquareButton",round:"C"},MI={extends:"Button",childExtends:"IconText"},$I={tag:"nav",display:"flex",childExtends:"SquareButton"},NI={extends:["SquareButton","ClickableItem"],round:"Z"};var Xk={};F(Xk,{Dialog:()=>UI,DialogFooter:()=>HI,DialogHeader:()=>VI});Rt();var x9={ok:1,cancel:1},mu=new WeakMap,k9=0,Cs=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},BI=t=>{let e=mu.get(t);return e||(e={id:"smbls-dialog-"+ ++k9,want:void 0,waiting:!1},mu.set(t,e)),e},Yk=(t,e,n,r)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||r!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[r]!==void 0,Lg=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},FI=["methods","functions","utils"],v9=t=>{for(let e=0;e<FI.length;e++){let n=t[FI[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},Ig=(t,e,n)=>{let r=t.context;if(!r||!v9(r))return n;let o=t.call("polyglot",e);return typeof o=="string"&&o&&o!==e?o:n},jI=t=>{let e=mu.get(t),n=Cs(t);if(!e||!n)return!0;if(!n.isConnected)return!1;if(e.want){if(!n.open&&typeof n.showModal=="function")try{n.showModal()}catch{}}else n.open&&typeof n.close=="function"&&n.close();return!0},E9=t=>{queueMicrotask(()=>{if(jI(t))return;let e=mu.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,jI(t)}))})},A9=t=>{let e=t.__ref;if(!e||!Cs(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||Yk(t,"data-dialog"))return;let n=z(()=>{let r=t.modal,o=Cs(t);if(!o)return;if(r==null){Lg(o,"data-dialog",null);return}Lg(o,"data-dialog","modal");let s=BI(t),i=!!r;s.want!==i&&(s.want=i,E9(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},C9=t=>t.dialogTitle===!0,T9=t=>{let e=Cs(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||Yk(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(C9):null,r=Cs(n);if(!r)return;let o=r.getAttribute("id");if(!o){if(Yk(n,"id"))return;o=BI(t).id+"-title",Lg(r,"id",o)}Lg(e,"aria-labelledby",o)},O9=(t,e)=>{let n=Cs(e),r=t.target;if(!n||t.defaultPrevented||!r||typeof r.closest!="function")return;let o=r.closest("[data-dialog-action]");if(!o||!n.contains(o))return;let s=o.getAttribute("data-dialog-action");if(x9[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},R9=t=>{let e=mu.get(t),n=Cs(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},UI={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onComplete:{always:!0,handler:t=>{A9(t),T9(t)}},onClick:(t,e)=>O9(t,e),onBeforeRemove:{always:!0,handler:t=>R9(t)}},VI={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>Ig(t,"dialog.title","Title")},SquareButton:{icon:"x",theme:"transparent",aria:{label:t=>Ig(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},HI={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:t=>Ig(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>Ig(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var nv={};F(nv,{Tooltip:()=>XI,TooltipHidden:()=>ZI,TooltipLayer:()=>ev,TooltipParent:()=>JI});M();var P9='[data-tooltip]:not([data-tooltip=""])',zI={top:1,bottom:1,left:1,right:1},Zk={top:"bottom",bottom:"top",left:"right",right:"left"},Ts=6,WI=new WeakMap,D9=0,ve=t=>{let e=WI.get(t);return e||(e={id:"smbls-tooltip-"+ ++D9,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},WI.set(t,e)),e},Jk=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},L9=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},I9=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},qI=(t,e)=>{let n=L9(t);if(!e||!n)return null;let r;try{r=e.closest(P9)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(I9(o))return null;return r},M9=(t,e)=>!!(e&&t.node&&t.node.contains(e)),$9=t=>{try{return t.matches(":focus-visible")}catch{return!0}},KI=(t,e)=>typeof t=="number"&&t>=0?t:e,Fg=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},Qk=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),N9=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},tv=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let r=n.split(/\s+/).filter(o=>o&&o!==e);r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")},F9=(t,e,n,r,o)=>{let s={top:t.top,bottom:o-t.bottom,left:t.left,right:r-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+Ts;s[n]<i(n)&&s[Zk[n]]>=i(Zk[n])&&(n=Zk[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+Ts:t.top-e.height-Ts):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+Ts:t.left-e.width-Ts);let l=(f,u)=>Math.max(Ts,Math.min(u-Ts,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},j9=t=>{let e=t.ownerDocument,n=e&&e.defaultView,r=e&&e.documentElement;return{width:r&&r.clientWidth||n&&n.innerWidth||0,height:r&&r.clientHeight||n&&n.innerHeight||0}},B9=t=>(t.title||"")+(t.description||""),$g=(t,e=0)=>{let r=ve(t).shown;if(!r||!Qk(t))return;if(!r.isConnected){Ng(t);return}let o=t.node,s=t.state;if(o.textContent!==B9(s)){e<3&&setTimeout(()=>$g(t,e+1),0);return}let i=r.getBoundingClientRect(),a=o.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=j9(o),u=r.getAttribute("data-tooltip-placement"),d=zI[u]?u:zI[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=F9(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},U9=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},GI=(t,e)=>{let n=ve(t);Fg(n),!(!Qk(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&tv(n.shown,n.id),n.shown=e,N9(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),U9(()=>$g(t)))};function Ng(t){let e=ve(t);Fg(e),e.shown&&tv(e.shown,e.id),e.shown=null,Qk(t)&&t.state.open&&t.state.update({open:!1})}var Mg=(t,e)=>{let n=ve(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let r=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(r===n.shown){Fg(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){Ng(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,Ng(t)},KI(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){GI(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,GI(t,r)},KI(t.tooltipDelay,250))},YI=t=>{let e=ve(t);e.shown&&(e.dismissed=e.shown,Ng(t))},ev={role:"tooltip",id:t=>ve(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=ve(e),r=Jk(t.target),o=M9(e,r)?n.shown:qI(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,Mg(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=ve(e);n.hover&&(n.hover=null,Mg(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=ve(e),r=Jk(t.target);n.shown&&r&&n.shown.contains(r)&&YI(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=ve(e),r=Jk(t.target),o=r&&$9(r)?qI(e,r):null;o!==n.focus&&(n.focus=o,Mg(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=ve(e);n.focus&&(n.focus=null,Mg(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&YI(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{ve(e).shown&&$g(e)}},onWindowResize:(t,e)=>{ve(e).shown&&$g(e)},onBeforeRemove:t=>{let e=ve(t);Fg(e),e.shown&&tv(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var XI={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=>jt(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)}},ZI={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)}},JI={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var rv={};F(rv,{Avatar:()=>QI});var V9=t=>{let n=`<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(n)},QI={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 n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=V9(n)},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 ov={};F(ov,{Range:()=>tM});var tM={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,n):n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,n):n.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:$i("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:$i("#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,n)=>{let r=t.call("exec",t[e],t);return(t.call("isFunction",r)?r(t,t.state):r!==void 0?r:n!==void 0?n: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 mv={};F(mv,{Dropdown:()=>AM,DropdownList:()=>CM,DropdownParent:()=>TM,DropdownParentFocus:()=>OM,DropdownSiblingFocus:()=>RM});Rt();var zg="hover",oM="focus",yu="sibling",eM={menu:1,listbox:1,tree:1,grid:1,dialog:1},H9={DIV:1,SPAN:1,LABEL:1,P:1,STRONG:1,B:1,EM:1,SMALL:1,H1:1,H2:1,H3:1,H4:1,H5:1,H6:1},z9={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},W9='button, a[href], [role^="menuitem"], [role="option"]',q9={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},Bg=new WeakMap,Ug=new WeakMap,Vg=new WeakMap,iv=new WeakMap,sM=new WeakSet,K9=0,At=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},$a=(t,e)=>{let n=At(t);return n?n.getAttribute(e):null},Qt=(t,e)=>{let n=At(t);return!!n&&!!e&&(n===e||n.contains(e))},sv=t=>{let e=At(t);return!!e&&e.hasAttribute("dropdown")},iM=t=>{let e=At(t);return!!e&&e.tagName==="BUTTON"},jg=t=>iM(t)||$a(t,"role")==="button",nM=t=>{let e=At(t);return!!e&&H9[e.tagName]===1&&!e.isContentEditable},aM=t=>{let e=At(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},bu=t=>{let e=$a(t,"role");return!!e&&e.indexOf("menuitem")===0&&aM(t)},G9=t=>{let e=At(t);if(!e||!aM(t))return!1;if(z9[e.tagName]===1)return e.getAttribute("type")!=="hidden";if(e.tagName==="A"&&e.hasAttribute("href"))return!0;let n=e.getAttribute("tabindex");return n!==null&&parseInt(n,10)>=0},Os=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],lo=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,cv=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},cM={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},lM=(t,e)=>{if(t[e]!==void 0)return!0;let n=cM[e];if(n!==void 0&&t[n]!==void 0)return!0;let r=t.attr;if(r&&typeof r=="object"&&r[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let o=t.aria;if(o&&typeof o=="object"&&o[e.slice(5)]!==void 0)return!0}return!1},Y9=(t,e)=>{let n=cM[e],r=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!r&&typeof r=="object"&&typeof r[e]=="function"},Un=(t,e,n)=>!e.hasAttribute(n)&&!lM(t,n),ao=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},X9=(t,e)=>{let n=At(t);if(n)for(let r in e)ao(n,r,e[r])},Hg=t=>{let e=At(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},Z9=t=>{let e=Bg.get(t);return e||(e={id:"smbls-dropdown-"+ ++K9,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null},Bg.set(t,e)),e},rM=(t,e)=>!!e&&!!At(e)&&!!t&&t[e.key]===e,J9=(t,e)=>{let n=null,r=null;if(e===yu){let s=t.parent?Os(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(sv(s[i])){n=s[i];break}return(jg(t)||nM(t))&&(r=t),{panel:n,trigger:r}}let o=Os(t);for(let s=0;s<o.length;s++)if(sv(o[s])){n=o[s];break}if(jg(t))return{panel:n,trigger:t};for(let s=0;s<o.length;s++){let i=o[s];if(!(!At(i)||i.key==="Input_trigger"||sv(i))){(jg(i)||nM(i))&&(r=i);break}}return{panel:n,trigger:r}},Q9=t=>{let e=$a(t,"role");if(e&&eM[e]===1)return{el:t,role:e};let n=Os(t);for(let r=0;r<n.length;r++){let o=$a(n[r],"role");if(o&&eM[o]===1)return{el:n[r],role:o}}return null},mr=t=>{let e=lo(t);if(!e||!At(t))return null;let n=Z9(t);if(n.trigger){let p=e===yu?t.parent:t;if((n.trigger===t||rM(t,n.trigger))&&rM(p,n.panel))return n}let{panel:r,trigger:o}=J9(t,e);if(!r||!o)return n.trigger=n.panel=n.popup=null,null;n.trigger=o,n.panel=r;let s=Q9(r);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=At(o),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&Un(o,i,"id")&&(a.id=c=n.id+"-trigger"),jg(o)||(Un(o,i,"role")&&(a.role="button"),Un(o,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&Un(o,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=At(r),f=l.getAttribute("id");if(!f&&Un(r,l,"id")&&(f=n.id+"-panel",ao(l,"id",f)),f&&Un(o,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=Un(o,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=Wg(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),X9(o,a),n.popupRole==="menu"&&c){let p=At(n.popup);Un(n.popup,p,"aria-label")&&Un(n.popup,p,"aria-labelledby")&&ao(p,"aria-labelledby",c)}o!==t&&e===oM&&$a(t,"tabindex")==="0"&&!Y9(t,"tabindex")&&ao(At(t),"tabindex","-1");let u=cv(t),d=At(u);return d&&!d.hasAttribute("tabindex")&&(lM(u,"tabindex")||ao(d,"tabindex","-1"),Un(u,d,"aria-hidden")&&ao(d,"aria-hidden","true")),Rs(t,n),n},fM=t=>{let e=At(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},tH=t=>Qt(t,fM(t)),Wg=(t,e,n)=>e.open!==null?e.open:n||lo(t)===zg?!1:tH(t),Rs=(t,e,n)=>{let r=e.open===null?null:String(e.open);if(e.written.open!==r){e.written.open=r;let s=At(t);s&&ao(s,"data-dropdown-open",r)}if(!e.owns)return;let o=Wg(t,e,n)?"true":"false";if(e.written.expanded!==o){e.written.expanded=o;let s=At(e.trigger);s&&ao(s,"aria-expanded",o)}},Ps=t=>{let e=Ug.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},Ug.set(t,e)),e},uM=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&Vg.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let r=Vg.get(e);r&&r.set(!0)},dM=(t,e)=>{let n=Ps(t);n.chosen=!0,uM(n,e)},pM=t=>{let e=Ps(t);if(e.settling=!1,e.chosen)return;let n=Os(t);for(let r=0;r<n.length;r++)if(bu(n[r])){uM(e,n[r]);return}},eH=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let o=t;o!==e;o=o.parentElement)n.push(o);n.push(e);let r=!1;for(let o=n.length-1;o>=0;o--){let s=typeof n[o].getAnimations=="function"?n[o].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),r=!0)}return r},hM=(t,e)=>{let n=At(t);if(!n)return;let r=n.ownerDocument.activeElement,o=Hg(t);!o&&e&&n.ownerDocument.activeElement===r&&eH(n,At(e))&&(o=Hg(t));let s=t.parent;o&&s&&Ug.has(s)&&dM(s,t)},nH=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?bu:G9)},rH=(t,e,n)=>{if(n==="trigger"){let s=fM(t);(!Qt(t,s)&&!Qt(e.panel,s)||Qt(cv(t),s))&&Hg(e.trigger);return}let r=nH(e);if(!r.length)return;let o=n==="last"?r[r.length-1]:null;if(!o)for(let s=0;s<r.length&&!o;s++)$a(r[s],"aria-checked")==="true"&&(o=r[s]);hM(o||r[0],e.panel)},av=(t,e,n)=>{e.open=!0,Rs(t,e),n&&rH(t,e,n)},co=(t,e,n)=>{e.open=!1,Rs(t,e),n&&Hg(e.trigger)},gM=(t,e,n)=>e.trigger===t?!Qt(e.panel,n):Qt(e.trigger,n)?!0:Qt(cv(t),n),mM=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(W9):null;return!!n&&Qt(t,n)},yM=(t,e,n)=>{let r=t.key;r==="Escape"||r==="Esc"?(t.preventDefault(),co(e,n,!0)):r==="Tab"&&n.popupRole==="menu"&&Qt(n.popup,t.target)&&co(e,n,!1)},lv=t=>{lo(t)===yu&&t.parent&&sM.add(t.parent),mr(t)},fv=(t,e)=>{let n=mr(e);n&&(n.pressedOpen=Wg(e,n))},oH=(t,e)=>{let n=Bg.get(e);!n||!n.trigger||n.open!==!1||lo(e)!==zg||(n.open=null,Rs(e,n))},uv=(t,e)=>{if(t.defaultPrevented)return;let n=mr(e);if(!n)return;let r=t.target;if(Qt(n.panel,r)){if(lo(e)!==zg||!mM(n.panel,r))return;(n.open===!0||t.detail===0)&&co(e,n,!0);return}if(!gM(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?co(e,n,!0):av(e,n,n.popupRole==="menu"?"first":"trigger")},dv=(t,e)=>{if(t.defaultPrevented)return;let n=mr(e);if(!n)return;let r=t.target;if(Qt(n.panel,r)){yM(t,e,n);return}if(!gM(e,n,r))return;let o=t.key;if(o==="ArrowDown"||o==="Down"||o==="ArrowUp"||o==="Up")t.preventDefault(),av(e,n,o==="ArrowUp"||o==="Up"?"last":"first");else if(o==="Escape"||o==="Esc"){if(!Wg(e,n))return;t.preventDefault(),co(e,n,!1)}else(o==="Enter"||o===" "||o==="Spacebar")&&!iM(n.trigger)&&(t.preventDefault(),n.open===!0?co(e,n,!0):av(e,n,n.popupRole==="menu"?"first":"trigger"))},pv=(t,e)=>{let n=mr(e);n&&(n.open===null&&Qt(n.panel,t.target)&&(n.open=!0),Rs(e,n))},qg=(t,e)=>{let n=Bg.get(e);if(!n||!n.trigger)return;let r=t.relatedTarget;if(r&&(Qt(e,r)||Qt(n.panel,r))){n.open===null&&Qt(n.panel,r)&&(n.open=!0,Rs(e,n));return}n.open=null,Rs(e,n,!0)},bM=t=>{let e=t.parent;if(!e||!sM.has(e))return null;let n=Os(e);for(let r=n.indexOf(t)-1;r>=0&&n[r];r--)if(lo(n[r])===yu)return n[r];return null},hv=t=>{let e=bM(t),n=e?mr(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},_M=t=>{let e=bM(t);e&&mr(e)},wM=(t,e)=>{if(t.defaultPrevented)return;let n=hv(e);n&&yM(t,n.ctrl,n.rec)},SM=(t,e)=>{if(t.defaultPrevented||!mM(e,t.target))return;let n=hv(e);n&&co(n.ctrl,n.rec,!0)},xM=(t,e)=>{let n=hv(e);n&&qg(t,n.ctrl)},sH=(t,e)=>{let n=e.parent,r=lo(n)?mr(n):null;if(r&&r.panel===e){co(n,r,!0);return}let o=At(e),s=o&&o.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},kM=(t,e)=>{if(lo(e.parent)&&mr(e.parent))return;let n=At(e);n&&n===n.ownerDocument.activeElement&&n.blur()},iH=(t,e)=>{if(t.defaultPrevented)return;let n=q9[t.key];if(!n)return;let r=typeof e.lookdownAll=="function"?e.lookdownAll(bu):[];if(!r.length)return;let o=-1;for(let i=0;i<r.length&&o===-1;i++)Qt(r[i],t.target)&&(o=i);let s;n==="first"?s=0:n==="last"?s=r.length-1:o===-1?s=n>0?0:r.length-1:s=(o+n+r.length)%r.length,t.preventDefault(),hM(r[s])},aH=(t,e)=>{let n=Os(e);for(let r=0;r<n.length;r++)if(Qt(n[r],t.target)){bu(n[r])&&dM(e,n[r]);return}},cH=t=>{let e=t.parent;if(!e)return"0";let n=Ps(e),r=Vg.get(t);if(!r){n.stop===null&&(n.stop=t.key);let o=n.stop===t.key;o&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>pM(e))),r=nn(o),Vg.set(t,r)}return r.get()?"0":"-1"},lH=t=>{_M(t);let e=Ps(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&bu(e.stopItem))&&pM(t)},fH=t=>{let e=iv.get(t),n=!e;n&&(e={tick:nn(0),seen:0,checked:!1},iv.set(t,e));let r=e.tick.get();return r===e.seen&&(e.checked=!!ei(()=>t.isActive)),e.seen=r,n&&t.parent&&dH(t.parent),e.checked?"true":"false"},uH=(t,e)=>{if(e.checkRows.get(),!t.node){EM(t);return}let n=Os(t);for(let r=0;r<n.length;r++){let o=iv.get(n[r]);if(!o)continue;let s=!!n[r].isActive;s!==o.checked&&(o.checked=s,o.tick.set(o.tick.peek()+1))}},vM=t=>{let e=Ps(t);e.checks||(e.checkRows||(e.checkRows=nn(0)),e.checks=z(()=>uH(t,e),{label:"DropdownList.checks"}))},EM=t=>{let e=Ug.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},dH=t=>{let e=Ps(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||vM(t)},pH=t=>{Ps(t).owned=!0},Na={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},gv={opacity:0,visibility:"hidden"},AM={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden",onComplete:{always:!0,handler:_M},onKeydown:wM,onClick:SM,onFocusout:xM},CM={display:"flex",attr:{dropdown:!0},role:"menu",padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",listStyleType:"none",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",children:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},onKeydown:(t,e)=>{iH(t,e),wM(t,e)},onInit:{always:!0,handler:pH},onComplete:{always:!0,handler:lH},onRender:{always:!0,handler:vM},onBeforeRemove:{always:!0,handler:EM},onFocusin:aH,onClick:SM,onFocusout:xM,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>cH(t),aria:{checked:t=>fH(t)},isActive:(t,e)=>e.active===t.key,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"}}},':where([aria-checked="true"])':{style:{svg:{opacity:"1"}}},Icon:{name:"check",opacity:"0.1"},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},TM={position:"relative",zIndex:999,dropdownMode:zg,":hover":{zIndex:1e3,"& [dropdown]":{...Na}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Na}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...gv}},onComplete:{always:!0,handler:lv},onPointerdown:fv,onPointerenter:oH,onClick:uv,onKeydown:dv,onFocusin:pv,onFocusout:qg},OM={position:"relative",tabindex:"0",dropdownMode:oM,":focus-within":{zIndex:1e3,"& [dropdown]":{...Na}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Na}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...gv}},onComplete:{always:!0,handler:lv},onPointerdown:fv,onClick:uv,onKeydown:dv,onFocusin:pv,onFocusout:qg,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>kM(t,e)},Dropdown:{onClick:(t,e)=>sH(t,e)}},RM={position:"relative",tabindex:"0",dropdownMode:yu,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...Na}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...Na}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...gv}},onComplete:{always:!0,handler:lv},onPointerdown:fv,onClick:uv,onKeydown:dv,onFocusin:pv,onFocusout:qg,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>kM(t,e)}};var yv={};F(yv,{Notification:()=>PM});var PM={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 Ds=Object.assign({},Z0,J0,Q0,tk,nk,ik,ak,ck,ok,lk,fk,sk,uk,dk,pk,hk,gk,mk,yk,bk,_k,wk,Sk,qk,Kk,Gk,Xk,nv,rv,ov,mv,yv);function Kg(t){if(t==null)return 0;if(typeof t!="object")return DM(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^Kg(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^DM(n[r]))*16777619,e=(e^Kg(t[n[r]]))*16777619;return e>>>0}function DM(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function Gg(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(!Gg(t[o],e[o]))return!1;return!0}let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Gg(t[s],e[s]))return!1}return!0}function bv(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 n=!1,r={};for(let o in t)if(o in e){let s=bv(t[o],e[o]);r[o]=s,s!==t[o]&&(n=!0)}else r[o]=t[o];for(let o in e)o in t||(r[o]=e[o],n=!0);return n?r:t}function _v(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let r in e){let o=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?_v(t[r],o,n):t[r]=o}return t}function fo(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function ja(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function _u(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():fo(e)}function LM(t){return t.split(`
88
- `).map(fo).join(`
89
- `)}var IM={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 MM(t,e){let n=IM[t]||fo(t),r=_u(e),o=`_${n}-${r}`,s=ja(t),i=yH[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
90
- ${c}`}var yH={"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"},bH="@media (hover: hover)",_H=/(?:^|[^\\]):hover(?![\w-])/,$M=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function NM(t){let e=t.split("\0"),n=[],r=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||$M(i))continue;let a=IM[s]||fo(s),c=_u(i),l=`_${a}-${c}`,f=ja(s);n.push(l),r.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+r.join(`
91
- `)}function FM(t,e,n){let r=t+e,o=`_c${fo(r)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&($M(u)||(i+=`${ja(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 n!==!1&&_H.test(c)&&(a=`${bH}{${a}}`),`${o}
92
- ${a}`}var wv=null;function Xg(t){wv=t}var pn={structuralHash:Kg,deepEqual:Gg,mergeStructural:bv,overwriteDeep:_v,shortHash:fo,toKebab:ja,sanitizeValue:_u,batchShortHash:LM,atomicCssClass:MM,batchAtomicCss:NM,compoundCssClass:FM},jM=!1,Yg=null;function BM(t){return Yg||(Yg=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(pn.structuralHash=e.structuralHash),e.deepEqual&&(pn.deepEqual=e.deepEqual),e.mergeStructural&&(pn.mergeStructural=e.mergeStructural),e.overwriteDeep&&(pn.overwriteDeep=e.overwriteDeep),e.shortHash&&(pn.shortHash=e.shortHash),e.toKebab&&(pn.toKebab=e.toKebab),e.sanitizeValue&&(pn.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(pn.batchShortHash=e.batchShortHash),e.atomicCssClass&&(pn.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(pn.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(pn.compoundCssClass=e.compoundCssClass),jM=!0,wv&&e.batchAtomicCss&&wv({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Yg)}function UM(){return jM}M();var wu={};F(wu,{BRENDER_REGISTRY_BLOCK:()=>El,CDN_PROVIDERS:()=>Be,DOMQL_EVENTS:()=>pb,DOMQ_PROPERTIES:()=>Cr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ai,ENV:()=>$b,HTML_TAGS:()=>hi,LIBRARY_PACKAGES:()=>Np,LIBRARY_SCOPES_KEY:()=>Bo,METHODS:()=>Or,METHODS_EXL:()=>Ac,NODE_ENV:()=>rn,OPTIONS:()=>Qc,PACKAGE_MANAGER_TO_CDN:()=>Nr,PARSED_DOMQ_PROPERTIES:()=>Ec,POLYGLOT_LANG_STORAGE_KEY:()=>Rp,PROPS_METHODS:()=>Tr,REVIVED_MARK:()=>Dc,STATE_METHODS:()=>ko,STATE_PROPERTIES:()=>ub,SVG_TAGS:()=>sC,TYPES:()=>bc,UNIVERSAL_RESERVED_KEYS:()=>Op,__resetBuiltinMethodWarnings:()=>jw,addCaching:()=>tp,addContext:()=>Qd,addExtend:()=>s_,addExtends:()=>xn,addItemAfterEveryElement:()=>Zy,addProtoToArray:()=>Sc,addRef:()=>Xd,alternateLinkKey:()=>Fo,applyCSS:()=>kv,applyDependentState:()=>v_,applyEvent:()=>ip,applyEventUpdate:()=>ap,applyExtends:()=>cC,applyProps:()=>qc,arrayContainsOtherArray:()=>zy,arraysEqual:()=>Qy,arrayzeValue:()=>Ho,bareLibraryKey:()=>Cl,bindLibraryGlobalScopes:()=>Ol,brenderRegistryBlock:()=>Pw,buildImgSrcset:()=>Ml,buildSourcesAndImg:()=>$l,cache:()=>O_,call:()=>pw,captureSnapshot:()=>gw,checkForStateTypes:()=>w_,checkIfInherits:()=>sp,checkIfStringIsInArray:()=>nb,clone:()=>Sb,cloneAndMergeArrayExtend:()=>Fc,cloneFunction:()=>Hb,collectExtendsList:()=>gi,concatAddExtends:()=>n_,copyJavaScriptToClipboard:()=>zw,copyStringToClipboard:()=>Hw,createBasedOnType:()=>Yd,createElement:()=>__,createElementExtends:()=>Nd,createExtends:()=>Bc,createExtendsFromKeys:()=>mi,createExtendsStack:()=>Ud,createIfConditionFlag:()=>zb,createInheritedState:()=>S_,createKey:()=>$c,createNestedObject:()=>Ob,createNestedObjectByKeyPath:()=>k_,createObjectWithoutPrototype:()=>Od,createParent:()=>Zd,createPath:()=>Jd,createProps:()=>Kc,createPropsStack:()=>Kd,createRoot:()=>b_,createScope:()=>A_,createSnapshotId:()=>Mc,customDecodeURIComponent:()=>fb,customEncodeURIComponent:()=>lb,cutArrayAfterValue:()=>Yy,cutArrayBeforeValue:()=>Gy,debounce:()=>Nc,debounceOnContext:()=>Ub,decodeNewlines:()=>cb,deepClone:()=>pt,deepContains:()=>Cb,deepDefaults:()=>Ri,deepDestringifyFunctions:()=>ge,deepExtend:()=>$d,deepMerge:()=>dt,deepMergeExtends:()=>kn,deepStringifyFunctions:()=>Oc,defineSetter:()=>uw,destringifyGlobalScope:()=>Ro,detectHeightOnInit:()=>ww,detectInfiniteLoop:()=>Lb,document:()=>yt,encodeNewlines:()=>ab,error:()=>Mo,escapeHtml:()=>W,escapeRegExp:()=>rb,excludeKeysFromObject:()=>Mb,exec:()=>St,exposeBagGlobalScopes:()=>Rl,extendCachedRegistry:()=>r_,extendStackRegistry:()=>Uc,extractArrayExtend:()=>Hc,faviconLinkKey:()=>jr,fetchLibraryData:()=>Fp,fibonacciNumberByIndex:()=>Sw,fileEntryUrl:()=>Dp,filterArrays:()=>tb,filterArraysFast:()=>eb,finalizeExtends:()=>Vd,findClosestNumber:()=>Lp,findClosestNumberInFactory:()=>Iw,findInheritedState:()=>op,findKeyPosition:()=>sb,flattenExtend:()=>yi,formatDate:()=>_w,generateHash:()=>Ld,generateHeadArrayTags:()=>Oi,generateKey:()=>Ic,generateMetaTags:()=>Dw,get:()=>aw,getActiveRoute:()=>Hk,getCDNDirUrl:()=>Pp,getCDNUrl:()=>an,getCapitalCaseKeys:()=>c_,getCdnProviderFromConfig:()=>Ci,getChildStateInKey:()=>rp,getChildren:()=>fw,getContext:()=>gl,getCookie:()=>Yb,getDB:()=>wl,getEmotionStylesheet:()=>Gw,getExtendsInElement:()=>i_,getExtendsStack:()=>jc,getExtendsStackRegistry:()=>Md,getFrequencyInArray:()=>Wy,getFunctionSource:()=>Oe,getHashedExtend:()=>Vc,getImportMapScript:()=>bw,getInObjectByPath:()=>Db,getLocalStorage:()=>Zb,getNev:()=>Bb,getPageMetadata:()=>Lw,getParentStateInKey:()=>np,getPath:()=>ll,getQuery:()=>Sl,getRef:()=>lw,getRoot:()=>dl,getRootContext:()=>hl,getRootData:()=>pl,getRootState:()=>ul,getRootStateInKey:()=>ep,getSpreadChildren:()=>l_,global:()=>Uy,hasFunction:()=>se,hasHandlerPlugin:()=>ui,hasOwnProperty:()=>vb,hashContent:()=>Tn,inheritChildExtends:()=>jd,inheritChildPropsExtends:()=>Fd,inheritParentProps:()=>Gc,inheritRecursiveChildExtends:()=>Bd,init:()=>Vn,initProps:()=>g_,is:()=>he,isArray:()=>I,isBoolean:()=>Sd,isBuiltinElementMethod:()=>db,isContextComponent:()=>f_,isCyclic:()=>Ib,isDOMNode:()=>de,isDate:()=>kd,isDefined:()=>jt,isDevelopment:()=>Pr,isEmpty:()=>Cd,isEmptyObject:()=>Eb,isEqualDeep:()=>Td,isFailedRevival:()=>To,isFunction:()=>P,isHtmlElement:()=>mc,isLazyFunction:()=>xb,isLocal:()=>jb,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>$o,isMethod:()=>hw,isMobile:()=>Kb,isNode:()=>qn,isNot:()=>Hy,isNotProduction:()=>Kn,isNull:()=>xd,isNumber:()=>pe,isObject:()=>A,isObjectLike:()=>V,isPhoto:()=>xw,isPolyglotRetranslatableKey:()=>Jc,isPolyglotWritableKey:()=>Do,isProduction:()=>Rr,isProtectedElementMethod:()=>vo,isRevived:()=>Oo,isStaging:()=>Fb,isState:()=>x_,isString:()=>E,isStringFunction:()=>fi,isStringTag:()=>Pc,isTest:()=>Pd,isTesting:()=>Nb,isUndefined:()=>Wt,isUniversallyReservedKey:()=>mw,isUnresolvableDependency:()=>Fr,isValidDependencyMap:()=>No,isValidHtmlTag:()=>Qb,isWrappedLibrary:()=>cn,joinArrays:()=>oi,jointStacks:()=>o_,jsonForScript:()=>Lo,keys:()=>Cp,lastLevel:()=>Dg,lastPathname:()=>Ia,libraryPackageSpecs:()=>Pi,librarySpecsFor:()=>$p,loadCssFile:()=>Aw,loadJavascript:()=>Cw,loadJavascriptFile:()=>kw,loadJavascriptFileEmbedSync:()=>Ew,loadJavascriptFileSync:()=>vw,loadLazy:()=>Nk,loadRemoteCSS:()=>Tw,loadRemoteScript:()=>Ti,log:()=>dw,logGroupIf:()=>qb,logIf:()=>Wb,lookdown:()=>sw,lookdownAll:()=>iw,lookup:()=>ow,lowercaseFirstLetter:()=>xo,makeObjectWithoutPrototype:()=>Ab,map:()=>wb,mapStringsWithContextComponents:()=>zc,markPolyglotSeeded:()=>En,markRevived:()=>li,matchRoute:()=>Bk,matchesComponentNaming:()=>vn,memoize:()=>Vb,merge:()=>Tt,mergeSharedLibraries:()=>Pl,mergeSharedLibraryDesignSystems:()=>Dl,nextElement:()=>yl,normalizeIgnoreList:()=>Tl,normalizeLibraryKey:()=>Uo,objectToString:()=>Rc,objectizeStringProperty:()=>Wc,overwrite:()=>Lc,overwriteDeep:()=>ie,overwriteShallow:()=>Po,overwriteState:()=>E_,parse:()=>Tp,parseDeep:()=>al,parseQuery:()=>Uk,parseRoutePattern:()=>jk,pickupElementFromProps:()=>Wd,pickupPropsFromElement:()=>zd,polyglotFallbackLang:()=>xl,polyglotLangStorageKey:()=>vi,polyglotSeededKeys:()=>Lr,previousElement:()=>bl,promoteActiveRootState:()=>xi,propExists:()=>p_,propertizeElement:()=>qd,propertizeUpdate:()=>d_,readJsonDataBlock:()=>Io,reinit:()=>xv,remove:()=>lT,removeChars:()=>Ww,removeCookie:()=>Xb,removeDuplicateProps:()=>Xc,removeDuplicatesInArray:()=>si,removeFromArray:()=>qy,removeFromObject:()=>Tb,removeNestedKeyByPath:()=>Rb,removeValueFromArray:()=>wc,removeValueFromArrayAll:()=>Xy,reorderArrayByValues:()=>Jy,repairLegacyArrowScopePreamble:()=>Cc,replaceLiteralsWithObjectFields:()=>Kt,replaceOctalEscapeSequences:()=>ib,resolveAsset:()=>me,resolveFileReferences:()=>jo,resolveHandler:()=>di,resolveRouterElement:()=>gu,resolveSharedLibraries:()=>Ll,returnValueAsText:()=>Gd,router:()=>dn,runGuards:()=>vI,runPluginHook:()=>Dr,saveScrollPosition:()=>uu,scopeElementParam:()=>vd,scopeReceiverExpression:()=>yb,scratchSystem:()=>Ji,scratchUtils:()=>zr,self:()=>Vy,set:()=>ss,setActiveRootState:()=>fl,setCookie:()=>Gb,setHashedExtend:()=>Id,setInObjectByPath:()=>Pb,setLocalStorage:()=>Jb,setNodeStyles:()=>Ap,setProps:()=>cw,setPropsPrototype:()=>Yc,sharedLibrary:()=>Fw,splitPackageSpecifier:()=>kl,spotByPath:()=>cl,srcsetFor:()=>Li,stringIncludesAny:()=>kc,stringToObject:()=>kb,stripVersionRangePrefix:()=>vl,swapItemsInArray:()=>Ky,syncProps:()=>Zc,toCamelCase:()=>Vo,toDashCase:()=>Il,toDescriptionCase:()=>Kw,toPriorityOrder:()=>je,toTitleCase:()=>qw,toggleFullscreen:()=>yw,triggerEventOn:()=>Gn,triggerEventOnUpdate:()=>C_,trimStringFromSymbols:()=>ob,unstackArrayOfObjects:()=>_c,update:()=>h_,updateProps:()=>m_,variables:()=>_l,verbose:()=>ki,warn:()=>ml,warnLibraryAliasCollision:()=>Di,window:()=>T});M();M();M();var SH={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},xH=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,kH=/^-?[_a-zA-Z][\w-]*$/,vH=new Set(["root","*"]),EH="@media (prefers-reduced-motion: no-preference)",AH="@media (prefers-reduced-motion: reduce)",CH=(t,e)=>{let n=E(t)?{animation:t}:A(t)?t:null;if(!n)return null;let r;try{r=ne(n,e)}catch{return null}let o={};for(let s in r){let i=r[s];(E(i)||pe(i))&&(o[s]=i)}return Object.keys(o).length?o:null},VM=(t,e,n={})=>{if(!A(t))return null;let r=!n.scope||n.scope===":root",o=l=>{n.verbose!==!1&&console.warn("[smbls] designSystem.viewTransition: "+l)},s={key:"viewTransition",state:{},context:{designSystem:e}},i={},a={},c=(l,f,u)=>{for(let d in f){if(d==="types"&&!u)continue;let p=SH[d];if(!p){o(`${l}.${d} is not a view-transition part (group, imagePair, old, new)`);continue}let g=`${u}::view-transition-${p}(${l})`,h=CH(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(A(f)){if(!xH.test(l)){o(`"${l}" is not a view-transition name`);continue}if(!r&&vH.has(l)){o(`"${l}" belongs to the document's primary app; a scoped app (${n.scope}) emits its own names only`);continue}if(c(l,f,""),A(f.types))for(let u in f.types){if(!kH.test(u)||!A(f.types[u])){o(`${l}.types.${u} is not a view-transition type with parts`);continue}c(l,f.types[u],`:root:active-view-transition-type(${u})`)}}}return Object.keys(i).length?{[EH]:i,[AH]:a}:null};var TH=O(),HM=(t=TH,e)=>{let n=A(e.localFile)?e.localFile:{},r=pt(n.designSystem||{});return dt(t,r,Pe)},OH={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Zg=(t,e)=>{let n=!e||e===":root",r={};for(let o in t)if(o.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;r[o]={[s]:t[o]}}else n?r[o]=t[o]:r[`${e}${o}, ${o} ${e}`]=t[o];return r},Sv=(t,e)=>{t.CSS_MEDIA_VARS&&Et(Zg(t.CSS_MEDIA_VARS,e));let n=os(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&Et(n)},zM=(t,e)=>{let n=VM(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&Et(n)},Vn=(t,e=OH)=>{let n=HM(t||{},e),r=e.scopeSelector||":root",o=e.globalTheme;if(typeof window<"u"&&window.location){let h=new URLSearchParams(window.location.search).get("globalTheme");h&&(o=h)}let s=ss({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,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=r);let i=Hl(s.font,s.files),a=s.useReset,c=s.useVariable,l=s.useFontImport,f=s.useSvgSprite,u=t.svg,d=s.useIconSprite,p=t.icons;l&&Et(i),c&&(Et({[r]:s.CSS_VARS}),Sv(s,r)),a&&Et(s.reset);let g=s.animation;if(g){let h={};for(let m in g)h[`@keyframes ${m}`]=g[m];Et(h)}return zM(s,r),(u||f)&&wf(s.svg,{document:e.document}),(p||d)&&rs(s.icons,{document:e.document}),s},Jg={},xv=(t,e=Jg)=>{let n=HM(t||{},e),r=e.scopeSelector||":root",o=ss({verbose:!1,...n});return e.preventInject||(Et({[r]:o.CSS_VARS}),Sv(o,r),Et(o.reset),zM(o,r)),o},kv=(t,e=Jg)=>{Et(t)},RH=(t,e=Jg)=>{let n=e.scopeSelector||":root";Et({[n]:t.CSS_VARS}),Sv(t,n)};var PH=(t,e=Jg)=>{};M();var WM=10,DH=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},qM=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!DH(t))return null;if(e===void 0||e===!0)return{budget:WM,progressive:!1};if(e&&typeof e=="object"){let r=e.budget===void 0?WM:Bn(e.budget);return r?{budget:r,progressive:e.progressive===!0}:null}let n=Bn(e);return n?{budget:n,progressive:!1}:null},vv=new WeakMap,LH=(t,e)=>(vv.set(t,e),e),IH=t=>{vv.delete(t)},KM=t=>{let e=t&&vv.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},MH=Object.freeze({deferAttach:!0}),GM=async(t,e,n,r,o)=>{await io();let s=r.mountYield;s===void 0&&(r.mountYield=o.budget),o.pageOptions={mountYield:r.mountYield};let i;o.commit=new Promise(l=>{i=l}),o.committed=!1;let a=!o.progressive;LH(n,o);let c=Xf();try{let l=zt(t,e,n.key,r,a?MH:void 0);return await xs(l),o.routeReady&&await o.routeReady,await hr(),a&&oo(l),o.committed=!0,i(),o.page&&await xs(o.page),await hr(),l}finally{o.committed=!0,i(),c(),r.mountYield=s,IH(n)}};var XM=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,$H=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},Av={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},NH=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},Su=(t,e)=>(gu||NH)(t,e),FH=["manual","auto","restore"],Ev=new WeakMap,YM=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},jH=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!FH.includes(n)){if(t.verbose!==!1){let r=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${r} \u2014 the browser default stays`)}return}try{let r=t.window||T,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=Ev.get(o);s||(s={found:o.scrollRestoration,claims:[]},Ev.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),YM(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||Ev.delete(o);try{YM(o,s)}catch{}}})}catch{}}},BH=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=uu,r=t.window||T;if(typeof n!="function"||!r||typeof r.addEventListener!="function")return;let o=t.document||r.document,s=()=>n(r),i=()=>{o.visibilityState==="hidden"&&n(r)};r.addEventListener("pagehide",s);let a=!!o&&typeof o.addEventListener=="function";a&&o.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{r.removeEventListener("pagehide",s),a&&o.removeEventListener("visibilitychange",i)})},ZM=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Av:e.router=Tt(e.router||{},Av);let n=e.router;jH(e,n),BH(e,n);let r=(i,a)=>{let c=i.context?.window||T,l=$H(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=XM(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=Su(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return dn(l,f,{},{initialRender:!0,pushState:!1,...a})},o=async(i,a)=>{let c=KM(i.context);if(c)return UH(i,c,r);await r(i)},s=!Wt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=o(i,a)),VH(e,n),n},UH=(t,e,n)=>{let r;return e.routeReady=new Promise(s=>{r=s}),(async()=>{try{if(await io(),!t.__ref)return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await hr(),r(),await s}finally{r()}})()},Cv=(t,e)=>{if(e.router===!1)return;let n=e.router||Av;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:dn,o=e.window||T,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=XM(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=Su(t,n.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))},VH=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return dt(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var Pv={};F(Pv,{components:()=>Ov,functions:()=>yr});var Rv={};F(Rv,{AlertTemplate:()=>lm,ConfirmTemplate:()=>cm,CustomTemplate:()=>um,ModalLayer:()=>am,ModalRoot:()=>im,PromptTemplate:()=>fm,windowsComponents:()=>Ov});var Tv={};F(Tv,{alertDialog:()=>om,closeAllModals:()=>nm,closeModal:()=>tm,confirmDialog:()=>rm,getLayer:()=>Qg,openModal:()=>em,promptDialog:()=>sm,windowsFunctions:()=>yr});function rt(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function Ba(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 n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Qg(){return rt(this)}var HH=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.setProperty!="function"||(r.style.setProperty("display","none","important"),r.style.setProperty("opacity","0","important"),r.style.setProperty("visibility","hidden","important"),r.style.setProperty("pointer-events","none","important"))},JM=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.removeProperty!="function"||(r.style.removeProperty("display"),r.style.removeProperty("opacity"),r.style.removeProperty("visibility"),r.style.removeProperty("pointer-events"))};function tm(t){let e=Ba(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let r,o,s;if(t){if(s=[],r=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),r.length===n.length)return;o=n.filter(i=>i.id===t)}else r=n.slice(0,-1),o=n.slice(-1),s=[n.length-1];e.state.update({stack:r});for(let i of s)HH(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function em(t={}){let e=Ba(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 n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,r={id:n,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 JM(e,s),e.state.update({stack:[...o,r]}),n}function nm(){let t=Ba(this);!t||!t.state?.stack?.length||t.state.update({stack:[]})}function rm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function om(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function sm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var yr={openModal:em,closeModal:tm,closeAllModals:nm,confirmDialog:rm,alertDialog:om,promptDialog:sm,getLayer:Qg};var zH=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),QM=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(zH),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},t2=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},im={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 n=t.context;if(n){n.functions||(n.functions={});for(let a in yr)a in n.functions||(n.functions[a]=yr[a])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=()=>{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=t2(t);if(!l)return;let f=QM(l);if(!f.length){a.preventDefault();let h=l.querySelector?.('[role="dialog"]')||l;try{h.focus?.()}catch{}return}let u=f[0],d=f[f.length-1],p=document.activeElement;if(!l.contains(p)){a.preventDefault();try{u.focus()}catch{}return}if(a.shiftKey&&p===u){a.preventDefault();try{d.focus()}catch{}}else if(!a.shiftKey&&p===d){a.preventDefault();try{u.focus()}catch{}}return}a.key!=="Escape"||a.defaultPrevented||c[c.length-1]?.dismissOnBackdrop!==!1&&(a.preventDefault(),r())}};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,p)=>p!==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 n=(t.state&&t.state.stack||[]).length,r=t.__prevStackLen||0;if(n!==r)if(t.__prevStackLen=n,t.__modalOpeners=t.__modalOpeners||[],n>r)t.__modalOpeners[n]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[n]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let o=t2(t);if(!o)return;let i=QM(o)[0]||o.querySelector&&o.querySelector('[role="dialog"]')||o;try{i.focus&&i.focus()}catch{}});else{let o=null;for(let s=r;s>n;s--)t.__modalOpeners[s]&&(o=o||t.__modalOpeners[s]),t.__modalOpeners[s]=null;if(o&&typeof o.focus=="function"&&o.isConnected!==!1)try{o.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 am={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=rt(t)?.id;return e?"modal-title-"+e:null}},width:t=>rt(t)?.width||"H",maxWidth:t=>rt(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>rt(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=>rt(t)?.template!=="confirm"},AlertTemplate:{hide:t=>rt(t)?.template!=="alert"},PromptTemplate:{hide:t=>rt(t)?.template!=="prompt"},CustomTemplate:{hide:t=>rt(t)?.template!=="custom"}}};var Ua=(t,e,n)=>rt(t)?.[e]||n,WH=t=>{let e=rt(t)?.icon;return e===null||e===!1},cm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Ua(t,"title","Are you sure?"),attr:{id:t=>{let e=rt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>WH(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>Ua(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>Ua(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Ua(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=rt(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] confirm.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:t=>Ua(t,"confirmTheme","primary"),text:t=>Ua(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=rt(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var xu=(t,e,n)=>rt(t)?.[e]||n,lm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>xu(t,"title","Notice"),attr:{id:t=>{let e=rt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>xu(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!xu(t,"message",""),P:{tag:"p",margin:"0",text:t=>xu(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>xu(t,"okText","OK"),onClick:(t,e,n)=>{let r=rt(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var Va=(t,e,n)=>rt(t)?.[e]||n,fm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=rt(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},onUpdate:(t,e)=>{let n=rt(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>Va(t,"title","Enter a value"),attr:{id:t=>{let e=rt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Va(t,"message",""),P:{tag:"p",margin:"0",text:t=>Va(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>Va(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let r=rt(e),o=e.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Va(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=rt(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] prompt.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>Va(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=rt(e),o=e.parent.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}}}};var um={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>rt(t)?.title||"",hide:t=>!rt(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=rt(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=z(()=>{let n=rt(t),r=n?.content||null,o=n?.id||null;if(!r){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in yr)i in s.functions||(s.functions[i]=yr[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var e2={extends:"Button",theme:"tertiary"};var Ov={ModalRoot:im,ModalLayer:am,ConfirmTemplate:cm,AlertTemplate:lm,PromptTemplate:fm,CustomTemplate:um,"smbls.CancelButton":e2};var Bv={};F(Bv,{components:()=>$v,functions:()=>Fv});var Nv={};F(Nv,{Dropdown:()=>ym,DropdownList:()=>bm,DropdownParent:()=>_m,DropdownParentFocus:()=>wm,DropdownRoot:()=>gm,DropdownSiblingFocus:()=>Sm,DropdownTrigger:()=>mm,dropdownComponents:()=>$v});var n2=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),qH=(t,e,n,r)=>{let o=n2(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},KH=(t,e,n,r,o)=>{let s=n2(e,r,o),i=t==="top"||t==="bottom"?n.height+8:n.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 Dv=(t,e,n)=>{let r;return t==="bottom"?r=n-e.bottom-16:t==="top"?r=e.top-16:r=n-16,Math.max(40,Math.floor(r))},dm=(t,e,n)=>Math.max(e,Math.min(n,t)),br=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:Dv("center",null,g)}}let r=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(n==="center"){let g=Dv("center",t,o),h=Math.min(s.height,g),m=dm((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=dm((o-h)/2,8,Math.max(8,o-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=qH(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=KH(i,t,s,r,o)}let c=Dv(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,r-s.width-8),p=Math.max(8,o-l-8);return f=dm(f,8,d),u=dm(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},Ha=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 uo={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},GH=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}},Lv=t=>t?.getRoot?.()?.DropdownRoot||null,YH=0,XH=()=>`dropdown_${++YH}_${Date.now().toString(36)}`;function pm(t={}){let e=Lv(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 n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||GH(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||XH(),i=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),a={id:o,content:t.content||null,anchor:r,placement:t.placement||uo.placement,trigger:t.trigger||uo.trigger,offset:t.offset??uo.offset,minWidth:t.minWidth||uo.minWidth,maxWidth:t.maxWidth||uo.maxWidth,maxHeight:t.maxHeight||uo.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:i},c=e.state?.layer;if(c?.onClose)try{c.onClose(c)}catch(l){console.warn("[dropdown] prev onClose threw:",l)}if(e.state.update({layer:a}),typeof a.onOpen=="function")try{a.onOpen(a)}catch(l){console.warn("[dropdown] onOpen threw:",l)}return o}function hm(t){let e=Lv(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function Ls(t){let e=Lv(this);if(!e)return;let n=e.state?.layer;if(!n)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=n.onClose,s=n.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(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var Iv=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},r2=t=>{let e=t.getBoundingClientRect();return{width:e.width,height:Math.max(e.height,t.scrollHeight||0)}},ZH=`
88
+ )`};var z9={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"}}}},W9={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},K9={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"}}},aL={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...z9,...W9,...K9,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 cL={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var lL={ratio:1.618,subSequence:!0};var fL={SourceSans:[{url:""}]},uL={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 dL={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 pL={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var hL={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var gL={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var $s={version:"0.0.1",color:sL,gradient:iL,theme:aL,typography:cL,spacing:lL,font:fL,fontFamily:uL,timing:hL,icons:dL,media:pL,sizes:gL,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 tc={};$(tc,{A:()=>SM,AssetPicture:()=>LL,Audio:()=>$L,Avatar:()=>WM,B:()=>eI,Block:()=>mL,Box:()=>Qg,Br:()=>sI,Bridge:()=>pI,Button:()=>vM,ButtonSet:()=>TM,COMPONENTS:()=>Ks,Caption:()=>KL,Checkbox:()=>mI,CheckboxHgroup:()=>yI,Circle:()=>RL,CircleButton:()=>AM,Clickable:()=>CL,Data:()=>rI,Dialog:()=>LM,DialogFooter:()=>MM,DialogHeader:()=>IM,Dropdown:()=>m$,DropdownDisclosure:()=>_$,DropdownList:()=>y$,DropdownParent:()=>b$,DropdownParentFocus:()=>w$,DropdownSiblingFocus:()=>S$,FileIcon:()=>OI,Flex:()=>bL,Focusable:()=>TL,FocusableComponent:()=>OL,Footnote:()=>tI,Form:()=>vL,Grid:()=>wL,Gutter:()=>xL,H1:()=>jL,H2:()=>BL,H3:()=>UL,H4:()=>VL,H5:()=>HL,H6:()=>zL,Headline:()=>ZL,Hgroup:()=>fI,HgroupButton:()=>dI,HgroupRows:()=>uI,Hoverable:()=>AL,Hr:()=>oI,I:()=>nI,Icon:()=>CI,IconButton:()=>OM,IconText:()=>TI,Iframe:()=>EL,Img:()=>kL,Inline:()=>yL,InlineFlex:()=>_L,InlineGrid:()=>SL,Input:()=>hI,Italic:()=>XL,KangorooButton:()=>CM,Li:()=>iI,Link:()=>Ov,Notification:()=>x$,NumberInput:()=>gI,Ol:()=>cI,P:()=>WL,Picture:()=>DL,Radio:()=>bI,RadioHgroup:()=>_I,Range:()=>KM,RouteLink:()=>xM,RouterLink:()=>Rv,SHAPES:()=>Jg,Select:()=>kM,Shape:()=>Vk,Span:()=>FL,SquareButton:()=>EM,Strong:()=>qL,Subhead:()=>QL,Svg:()=>IL,Text:()=>NL,Textarea:()=>xI,TextareaWithButton:()=>kI,Theme:()=>PL,Title:()=>JL,Toggle:()=>wI,ToggleHgroup:()=>SI,Tooltip:()=>VM,TooltipHidden:()=>HM,TooltipLayer:()=>Bv,TooltipParent:()=>zM,U:()=>GL,Ul:()=>aI,Underline:()=>YL,Video:()=>ML,depth:()=>Zg,focusableRingEnabled:()=>Cu,focusableRingToken:()=>Bk,focusableRingValue:()=>Ns,getSystemGlobalTheme:()=>Tu});var $k={};$($k,{Block:()=>mL,Flex:()=>bL,Grid:()=>wL,Gutter:()=>xL,Inline:()=>yL,InlineFlex:()=>_L,InlineGrid:()=>SL});var mL={display:"block"},yL={display:"inline"},bL={display:"flex"},_L={display:"inline-flex"},wL={display:"grid"},SL={display:"inline-grid"},xL={boxSize:"C1"};var Nk={};$(Nk,{Img:()=>kL});M();var kL={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=ye(t);return e&&e.src||t.src},srcset:t=>{let e=ye(t);return(e?Zl(e):"")||t.srcset||t.srcSet}}};var Fk={};$(Fk,{Form:()=>vL});var vL={tag:"form"};var jk={};$(jk,{Iframe:()=>EL});var EL={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Uk={};$(Uk,{Clickable:()=>CL,Focusable:()=>TL,FocusableComponent:()=>OL,Hoverable:()=>AL,focusableRingEnabled:()=>Cu,focusableRingToken:()=>Bk,focusableRingValue:()=>Ns});var q9={appearance:"none",fontFamily:"inherit"},AL={transition:"opacity C defaultBezier, transform C defaultBezier",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}}},CL={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function Cu(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function Bk(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let r=n.outline||void 0,o=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return r||o!==void 0?{outline:r,outlineOffset:o}:null}function Ns(t,e,n){let r=Bk(t);return r&&r[e]!==void 0?r[e]:n}var TL={border:"none",outline:t=>Cu(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>Cu(t)?Ns(t,"outline","solid X currentColor"):"none",outlineOffset:t=>Cu(t)?Ns(t,"outlineOffset"):void 0}},OL={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:q9};var Wk={};$(Wk,{Picture:()=>DL});var zk={};$(zk,{Theme:()=>PL,getSystemGlobalTheme:()=>Tu});var Hk={};$(Hk,{Circle:()=>RL,SHAPES:()=>Jg,Shape:()=>Vk,default:()=>G9,depth:()=>Zg});M();var nn=O(),Zg={4:{boxShadow:`rgba(0,0,0,.10) 0 2${nn.unit.default} 4${nn.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${nn.unit.default} 6${nn.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${nn.unit.default} 10${nn.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${nn.unit.default} 16${nn.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${nn.unit.default} 26${nn.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${nn.unit.default} 42${nn.unit.default}`}},Ya=t=>at(t.shapeDirectionColor)||at(t.borderColor)||at(t.backgroundColor)||at(t.background),Xg=t=>{let e=nu.transition(t.transition,t);return e&&e.transition},Jg={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:Ya(t),transition:Xg(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:Ya(t),transition:Xg(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:Ya(t),transition:Xg(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:Xg(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ya(t)} 25%, transparent 25%), linear-gradient(315deg, ${Ya(t)} 25%, transparent 25%)`},"&:after":{background:Ya(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)"}}}},Vk={deps:{exec:vt,getSpacingBasedOnRatio:Ge,getMediaColor:Vt},classlist:{shape:t=>t.deps.exec(Jg[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Jg[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}}},RL={round:"100%"},G9=Vk;M();var Tu=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},PL={deps:{depth:Zg},classlist:{depth:t=>!Wt(t.depth)&&t.deps.depth[t.depth]}};var DL={deps:{getSystemGlobalTheme:Tu},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Tu},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:r}=t,{media:o}=n.designSystem,s=r.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 Kk={};$(Kk,{AssetPicture:()=>LL});M();var LL={tag:"picture",children:t=>{let e=ye(t);if(e)return Ql(e,t.alt)}};var qk={};$(qk,{Svg:()=>IL});var IL={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:n,utils:r}=e,o=n&&n.svg,s=t.spriteId||n&&n.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 p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=r&&r.scratchSystem&&r.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):r&&typeof r.init=="function"&&r.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}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)}`,r.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Gk={};$(Gk,{Video:()=>ML});M();var ML={tag:"video",controls:!0,attr:{src:t=>{let e=ye(t);return e&&e.src||t.src}},children:t=>{let e=ye(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var Yk={};$(Yk,{Audio:()=>$L});M();var $L={tag:"audio",controls:!0,attr:{src:t=>{let e=ye(t);return e&&e.src||t.src}},children:t=>{let e=ye(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var Xk={};$(Xk,{B:()=>eI,Caption:()=>KL,Data:()=>rI,Footnote:()=>tI,H1:()=>jL,H2:()=>BL,H3:()=>UL,H4:()=>VL,H5:()=>HL,H6:()=>zL,Headline:()=>ZL,I:()=>nI,Italic:()=>XL,P:()=>WL,Span:()=>FL,Strong:()=>qL,Subhead:()=>QL,Text:()=>NL,Title:()=>JL,U:()=>GL,Underline:()=>YL});var NL={},FL={tag:"span"},jL={tag:"h1"},BL={tag:"h2"},UL={tag:"h3"},VL={tag:"h4"},HL={tag:"h5"},zL={tag:"h6"},WL={tag:"p"},KL={tag:"caption"},qL={tag:"strong",fontWeight:"700"},GL={tag:"u"},YL={tag:"u"},XL={tag:"i"},JL={},ZL={tag:"h6",fontSize:"B",fontWeight:500},QL={tag:"span",fontSize:"Z1"},tI={tag:"span",fontSize:"Z"},eI={tag:"b"},nI={tag:"i"},rI={tag:"data"};var Jk={};$(Jk,{Box:()=>Qg,Br:()=>sI,Hr:()=>oI,Li:()=>iI,Ol:()=>cI,Ul:()=>aI});var Y9=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ee(e,t,{unpack:!1});n.__class=r},Qg={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Y9},oI={tag:"hr",margin:"C1 0"},sI={tag:"br"},iI={tag:"li"},aI={tag:"ul",childExtends:{extends:"Li"}},cI={tag:"ol",childExtends:{extends:"Li"}};var Zk={};$(Zk,{Hgroup:()=>fI,HgroupButton:()=>dI,HgroupRows:()=>uI});var lI=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},fI={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:lI,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:lI,margin:"0",color:"paragraph"}},uI={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},dI={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Qk={};$(Qk,{Bridge:()=>pI});var pI={tag:"div"};var tv={};$(tv,{Input:()=>hI});var hI={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,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,required:t=>t.required,type:t=>t.type}};var ev={};$(ev,{NumberInput:()=>gI});var gI={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var nv={};$(nv,{Checkbox:()=>mI,CheckboxHgroup:()=>yI});var mI={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:t=>Ns(t,"outline","solid X currentColor"),outlineOffset:t=>Ns(t,"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"}}},yI={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var rv={};$(rv,{Radio:()=>bI,RadioHgroup:()=>_I});var bI={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}},_I={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var ov={};$(ov,{Toggle:()=>wI,ToggleHgroup:()=>SI});var wI={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}},SI={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var sv={};$(sv,{Textarea:()=>xI,TextareaWithButton:()=>kI});var xI={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"}},kI={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 iv={};$(iv,{FileIcon:()=>OI,Icon:()=>CI,IconText:()=>TI});Lt();var vI=new Set,EI=(t,e)=>{if(!vI.has(t)&&(vI.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${r} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},AI=new WeakMap,X9=t=>{let e=AI.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},AI.set(t,e)),e},J9=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},Z9=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);mt(t);try{let o=O();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=hs(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&gs(s,{document:r}),Object.keys(s).length>0}finally{pt()}},Q9=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=X9(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=()=>i(e,t),f=Promise.resolve().then(l).then(u=>{let d=J9(u,n);return d?Z9(s,d,r):!1}).catch(u=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,u),!1)).then(u=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),u||a.failed.add(e),d&&d.forEach(p=>{try{p(u)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,f),!0},CI={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:r}=t,{icons:o,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,m)=>{try{return{value:t.call("exec",h,m)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!c&&typeof console<"u"&&console.warn){c=!0;let k=t.__ref&&t.__ref.path,v=k&&k.length?` at <${k.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${v} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:k}=m&&m.utils,S=k(h).split(/([a-z])([A-Z])/g),w=S[1]?S[0]:h.split(".")[0].split(" ")[0],_=y&&y[w];if(_){let b=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=_[b]||_[h.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${h}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=h=>{let{key:m}=h,y=l(h.name||h.icon||m,h);if(y.threw)return{name:m,threw:!0};let k=y.value;return h.call("isString",k)&&k.includes("{{")&&(k=h.call("replaceLiteralsWithObjectFields",k)),{name:h.call("isString",k)?k:m}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let m=h.name,y=m;if(m.includes(" ")){let F=m.split(" ");m=F[0]+F.slice(1).map(U=>U.charAt(0).toUpperCase()+U.slice(1)).join("")}let k=a(m),v=k.split(/([a-z])([A-Z])/g),S=f(y,n);if(S){Object.assign(t,S);return}let w,_=t[".isActive"];_&&(_.name||_.icon)&&t.isActive&&(w=l(_.name||_.icon,t).value);let b=r&&r[".isActive"];b&&b.icon&&r.isActive&&(w=l(b.icon||b.Icon.name||b.Icon.icon,t).value),t.call("isString",w)&&w.includes("{{")&&(w=t.call("replaceLiteralsWithObjectFields",w));let x;o[w]&&(x=w),o[k]?x=k:o[v[0]+v[1]]?x=v[0]+v[1]:o[v[0]]?x=v[0]:i&&t.warn("Can't find icon:",m,x);let C=o[x],P=r&&r.src||d;!C&&!P&&(Q9(n,y,k,t,U=>{if(!(p&&p._disposed)){if(!U)return EI(y,t);g()}})||EI(y,t));let R=s&&x,j=C||P||o.noIcon;if(!(t.spriteId===R&&t.src===j&&t.node&&t.node.innerHTML)&&(t.spriteId=R,t.src=j,typeof t.html=="function"&&t.node)){let F=t.context&&t.context.designSystem;F&&mt(F);try{let U=t.html(t,t.state,t.context);U!=null&&typeof U!="function"&&(t.node.innerHTML=U)}finally{F&&pt()}}};p=W(g,{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0}),t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(p))},attr:{viewBox:"0 0 24 24","aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},TI={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},OI={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Pv={};$(Pv,{A:()=>SM,Link:()=>Ov,RouteLink:()=>xM,RouterLink:()=>Rv});var Za={};$(Za,{default:()=>FH,getActiveRoute:()=>Tv,lastLevel:()=>om,lastPathname:()=>Ja,loadLazy:()=>xv,matchRoute:()=>Ev,parseQuery:()=>Av,parseRoutePattern:()=>vv,resolveRouterElement:()=>Mu,router:()=>mn,runGuards:()=>mM,saveScrollPosition:()=>Pu});M();var av="__smblsRouter",cv=new WeakMap,tH=0,lv=()=>Date.now().toString(36)+(++tH).toString(36)+Math.random().toString(36).slice(2,6),fv=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},vr=t=>{try{return t.state}catch{return}},Ru=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},LI=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},II=t=>{let e=LI(t)?t[av]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},uv=(t,e)=>t==null?{[av]:e}:LI(t)?{...t,[av]:e}:null,dv=()=>({key:lv(),index:0,chain:lv()}),Xa=(t,e)=>{let n=II(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Ru(t),state:e}},MI=(t,e)=>{let n=II(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Ou=(t,e,n)=>!!n&&Ru(t)===n.url&&MI(e,n),pv=(t,e,n)=>({...t,url:e,state:n}),hv=(t,e)=>{let n=vr(e),r=Xa(t,n);if(r.key)return r;let o=dv(),s=uv(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return pv(o,r.url,s)},eH=(t,e)=>{let n=cv.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},cv.set(t,n)),n||null},$I="smbls.router.scroll",RI=100,nH=1e3,PI=["wheel","touchstart","keydown","pointerdown"],NI=t=>{try{return t.sessionStorage||null}catch{return null}},FI=t=>{try{let e=JSON.parse(t.getItem($I)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},jI=(t,e)=>{if(!t.positions){t.positions=new Map;let n=NI(e);if(n)for(let[r,o]of FI(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},gv=(t,e,n,r)=>{let o=jI(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>RI&&o.delete(o.keys().next().value);let s=NI(e);if(s)try{let i=new Map(FI(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem($I,JSON.stringify(Array.from(i).slice(-RI)))}catch{}},DI=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},rH=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:nH,c=()=>Math.max(0,(Number(o.scrollHeight)||0)-(Number(o.clientHeight)||0)),l=(h,m)=>{typeof o.scrollTo=="function"?o.scrollTo({top:h,left:m,behavior:"instant"}):(o.scrollTop=h,o.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>r.end("visitor");if(r.end=h=>{if(!r.outcome&&(r.outcome=h,f))for(let m of PI)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),r.end("placed");Number(o.scrollTop)>0&&l(0,0);let d=Number(o.scrollTop)||0,p=Date.now();if(f)for(let h of PI)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(r.outcome)return;if(n.seq!==r.seq)return r.end("overtaken");if(Math.abs((Number(o.scrollTop)||0)-d)>1)return r.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return DI(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};DI(t,e,g)},oH=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=Xa(n,vr(r)),a=o.expect;o.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=o.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&gv(o,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:o.seq,settled:!1,committed:!1},o.pending=c}return o.pops.set(e,c),c},sH=t=>{let{win:e,history:n,track:r}=t,o=vr(n);if(r.pending&&Ou(e,o,r.pending.to)||r.expect&&Ou(e,o,r.expect.away))return;let s=r.current;if(s&&(s.key?MI(o,s):Ou(e,o,s))){s.url=Ru(e),s.state=o;return}r.current=t.restore?hv(e,n):Xa(e,o),r.pending=null,r.seq++},BI=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=fv(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&eH(o,s);if(!i)return null;let a={win:t,history:o,track:i,restore:r,scrollNode:r&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=oH(a,c):sH(a),a},tm=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},mv=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:r,track:o}=t;return tm(o,e),o.seq!==e.seq||!Ou(n,vr(r),e.to)?!1:(o.current=t.restore&&!e.to.key?hv(n,r):e.to,o.seq++,e.committed=!0,!0)},UI=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&tm(t.track,e)},iH=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},yv=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;tm(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Ou(r,vr(o),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};iH(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=dv(),l=uv(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?pv(c,i.url,l):Xa(r,vr(o)),s.seq++},VI=(t,e)=>{let n=Ru(e);t&&n!==null&&(t.__routerAddress=n)},HI=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return yv(t,!0);r&&!r.settled&&tm(t.track,r);let o=fv(n),s=e&&e.__routerAddress;if(!(!o||!s||s===Ru(n)))try{o.replaceState(vr(o),null,s)}catch{}},zI=(t,e,n,r,o=t&&t.win)=>{if(!t){try{r?o.history.replaceState(e,null,n):o.history.pushState(e,null,n)}catch{}return}let{history:s,track:i}=t,a=i.current;!r&&a&&a.key&&t.scrollNode&&gv(i,o,a.key,t.scrollNode);let c=r?Xa(o,vr(s)):hv(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:lv(),index:c.index+1,chain:c.chain}:dv(),f=uv(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?pv(l,n,f):Xa(o,vr(s)),i.pending=null,i.expect=null,i.seq++},WI=(t,e,n,r)=>{if(!t||!t.restore||!e)return!1;let o=t.pop;if(o?o.stay||!o.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&jI(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(o?l.pop===o:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||rH(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Pu=t=>{let e=fv(t),n=e&&cv.get(e);!n||!n.scrollNode||!n.current||!n.current.key||gv(n,t,n.current.key,n.scrollNode)};M();var YI=["components","functions","methods","snippets"],XI=new Set(["pages",...YI]),bv=new Set(["default","__esModule"]),Fs=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Yt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),em=new WeakMap,KI=new WeakMap,wv=new WeakMap,qI=new Set,js=(t,e=console.warn)=>{qI.has(t)||(qI.add(t),e(t))},JI=t=>Yt(t&&t.lazy),Du=(t,e)=>{let n=t&&t.lazy;return Yt(n)&&Fs(n,e)?n[e]:void 0},Sv=(t,e)=>{let n=em.get(t);n||(em.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();em.delete(t)}));let r=n.get(e);return r||(r={status:"idle",promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},ZI=(t,e)=>!JI(e)||!Yt(t)||!Fs(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,nm=t=>!!t&&typeof t=="object"&&wv.has(t),QI=t=>t&&(t.status==="error"||t.status==="reload")?t.status:"loading",aH=(t,e)=>typeof Du(t,e)!="function"?"error":QI(em.get(t)?.get(e)),cH=(t,e)=>{let n=KI.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Yt(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Yt(f)?f:null,lazyStatus:aH(c.context,e)}}:(s.state=o,tt()&&js(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(o)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return KI.set(t,a),wv.set(s,a),a},lH=t=>t.__ref&&t.__ref.contentElementKey||"content",rm=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&nm(n.content)?wv.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[lH(t)]}},_v=(t,e,n)=>{let r=rm(t,e);if(!r||!r.record.hasStatus)return;let o=r.page&&r.page.state;if(!(!o||typeof o.update!="function"||o.lazyStatus===n))try{o.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},fH=t=>Yt(t)?!Object.keys(t).some(n=>XI.has(n))&&Yt(t.default)?t.default:t:{},uH=t=>{let e={};if(!Yt(t))return e;for(let n of Object.keys(t)){if(bv.has(n))continue;let r=n.charCodeAt(0)===47,o=r?n:"/"+(n==="index"?"":n);(r||!Fs(e,o))&&(e[o]=t[n])}return e},tM=(t,e,n,r,o)=>{if(!Yt(t))return 0;let s=0;for(let i of Object.keys(t))ZI(t[i],r)===e&&(s++,Fs(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Fs(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},GI=(t,e,n)=>{let r=t[e];if(!Yt(r)){t[e]={...n};return}try{for(let o in n)r[o]=n[o];if(Object.keys(n).every(o=>r[o]===n[o]))return}catch{}t[e]={...r,...n}},dH=t=>{let e=t.__ref&&t.__ref.origin;if(!Yt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let r=t.key;if(typeof r!="string"||!/^[A-Z]/.test(r))return[];let o=[r.indexOf("_"),r.indexOf(".")].filter(s=>s>0);return[o.length?r.slice(0,Math.min(...o)):r]},pH=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=rm(i,e);a&&a.page&&o.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||o.has(l)||!l.node)){for(let f of dH(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");js(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},hH=(t,e,n,r)=>{let o=t.context,s=fH(n),i=tt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))XI.has(p)||bv.has(p)||js(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of YI){let g=s[p];if(!Yt(g))continue;let h=Yt(o[p])?o[p]:{},m={};for(let k of Object.keys(g))if(!bv.has(k)){if(Fs(h,k)){h[k]!==g[k]&&a.push(`${p}.${k}`);continue}m[k]=g[k]}let y=Object.keys(m);if(y.length&&(GI(o,p,m),p==="components"&&y.forEach(k=>c.add(k)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Yt(o.utils))){let k={};for(let v of y)Fs(o.utils,v)||(k[v]=m[v]);Object.keys(k).length&&GI(o,"utils",k)}}l&&$a(o);let f=uH(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Yt(o.pages)&&d.add(o.pages),u&&Yt(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Yt(p.routes)&&d.add(p.routes);for(let p of d)tM(p,e,f,o,a);i&&a.length&&js(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&pH(u,e,c,r)},eM=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;if(!r||r.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!rm(t,e))return;let o=()=>r.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(o).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},Lu=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",gH=(t,e,n)=>!!t&&(Lu(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),nM=(t,e)=>{let n=t.context,r=Sv(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=Du(n,e),s=r.failure;r.status="loading";let i,a=!1,c=()=>i=o(),l=Promise.resolve().then(c).then(f=>{a=!0,r.disposed||hH(t,e,f,r)}).then(()=>{r.status="loaded",r.failure=null;let f=[...r.waiting];r.waiting.clear();for(let u of f)eM(u,e)},f=>{let u=!a&&gH(s,i,f);if(r.failure=a?null:{returned:i,error:f},r.status=u?"reload":"error",r.promise=null,r.disposed)throw f;u?js(`[smbls/router] lazy group "${e}" cannot load in this page: its loader handed back the import that already failed (the same promise or the same error) and requested nothing \u2014 a bundler that keeps a failed dynamic import (parcel) does this. Its routes show their placeholder with lazyStatus 'reload'; reloading the page loads the group.`,d=>console.error(d,f)):console.error(`[smbls/router] lazy group "${e}" failed to load. Its routes show their placeholder with lazyStatus 'error'; the next navigation to one of them, or loadLazy('${e}'), calls the group's loader again.`,f);for(let d of[...r.waiting])rm(d,e)?_v(d,e,r.status):r.waiting.delete(d);throw f});l.catch(()=>{}),r.promise=l;for(let f of r.waiting)_v(f,e,"loading");return l},rM=(t,e,n)=>{let r=e&&e.context,o=ZI(t,r);if(!o)return null;let s=Sv(r,o);if(Yt(n)&&s.maps.add(n),s.status==="loaded"&&tM(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof Du(r,o)=="function";return i?nM(e,o):js(`[smbls/router] a route names lazy group "${o}", which context.lazy does not declare as a loader (\`lazy: { ${o}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:cH(t,o).definition,group:o,status:i?"loading":"error"}},oM=(t,e,n)=>{if(!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof Du(r,e.group)!="function")return;let s=Sv(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},_v(t,e.group,QI(s)),s.status==="loaded"){let i=()=>eM(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function xv(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));let r=Du(n,t);return typeof r!="function"?(r===void 0&&JI(n)&&tt()&&js(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):nM(e,t)}var mH=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),sM=(t,e,n)=>{let r=n.mountOptions;if(!r)return;let o=e.context&&e.context.domqlOptions;for(let s in r)t[s]=o&&s in o?o[s]:void 0},uM=t=>{let e=zn;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},yH=t=>{let e=Kg;return typeof e!="function"||!e(t)?null:kr(t)},kv=Object.freeze({holdTail:!0}),bH=t=>typeof t.holdPage=="function"&&typeof Fe=="function",dM=(t,e)=>{let n=()=>Fe(t);Lu(e)?e.then(n,n):n()},_H=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}dM(e,n)},pM=Object.freeze({holdTail:!0,deferAttach:!0}),wH=(t,e,n,r)=>{let o=t.firstView;if(!o||typeof Fe!="function"||typeof bo!="function")return null;if(!o.committed)return kv;if(!uM(r))return null;let s=e.node;return!e[n]&&s&&s.isConnected?pM:(r.mountYield=void 0,null)},SH=async()=>{await Ee();let t=wo;if(typeof t=="function")for(;!t();)await Ee()},xH=(t,e,n,r)=>{if(e===kv){t.firstView.page=n,dM(n,t.firstView.commit);return}e===pM&&SH().then(()=>{n.__ref&&r()&&bo(n),Fe(n)})},hM=/^:(.+)/,gM=/^\*$/,iM=new Map,vv=t=>{let e=iM.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),r=[],o=!1;for(let i=0;i<n.length;i++){let a=n[i].match(hM);a?r.push({index:i,name:a[1]}):gM.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return iM.set(t,s),s},Ev=(t,e,n=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),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=vv(l),u=kH(o,f);u>a&&(a=u,i=l,c=vH(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},kH=(t,e)=>{let{segments:n,hasWildcard:r}=e;if(!r&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let o=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])o+=3;else if(hM.test(n[i]))o+=1;else if(gM.test(n[i]))o+=.5;else return-1;return o},vH=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},Av=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((r,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(r)):e[o]=r}),e},aM=t=>t===!1||typeof t=="string"?t:void 0,Cv=(t,e,n=0)=>{for(let r=n;r<t.length;r++){let o=t[r](e);if(Lu(o))return Promise.resolve(o).then(i=>{let a=aM(i);return a===void 0?Cv(t,e,r+1):a});let s=aM(o);if(s!==void 0)return s}return!0},mM=async(t,e)=>!t||!t.length?!0:Cv(t,e),Mu=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},EH=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=Mu(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},Tv=(t=0,e)=>{e||(e=typeof T<"u"?T.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},Ja,om=0,cM=0,AH=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,CH=t=>t&&(t.scrollingElement||t.documentElement)||null,yM={level:om,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},bM=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},_M=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},TH=(t,e,n,r,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(_M(e),!n||!n.node||typeof t.onRouteExit>"u"||!bM(s,i))return null;let c=typeof o=="number"&&o>=0?o:yM.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=tr("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},Iu=new WeakMap,OH=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,RH=(t,e,n,r)=>{let o=OH(t.transition);return!o||!e||nm(e.content)||!n||typeof n.startViewTransition!="function"||Iu.get(n)>0||!bM(n,r)?null:o},PH=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},DH=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},LH=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},IH=100,MH=1e3,lM=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,fM=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},$H=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},NH=(t,e,n,r,o,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:l,previousName:f&&f.name&&c?f.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){u.updating=!0,u.swapStarted=fM(o),Iu.set(r,(Iu.get(r)||0)+1);try{return i()}finally{Iu.set(r,Iu.get(r)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=DH(n),h=null;try{h=g.length&&LH(o)?r.startViewTransition({update:d,types:g}):r.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,$H(h.ready);let m=!1,y=null,k=()=>{m=!0,y!==null&&(o.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},v=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(k,k):k();let S=lM(n.swapBudget,IH),w=lM(n.timeout,MH);w!==1/0&&h.ready&&typeof h.ready.then=="function"&&o&&typeof o.setTimeout=="function"&&h.ready.then(()=>{m||(y=o.setTimeout(()=>{y=null,v()},w))},()=>{});let _=h.updateCallbackDone;return!_||typeof _.then!="function"?Promise.resolve():(S!==1/0&&_.then(()=>{u.swapStarted!==void 0&&fM(o)-u.swapStarted>S&&v()},()=>{}),_)},mn=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||T,i=o?.context?.document||St,a={...yM,...o.context.routerOptions,...r};om=a.lastLevel,o=EH(o,a);let c=!(r&&r.render===!1),l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let f=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";t=AH(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:m}=p,y=Av(h),k=o.node,v=m&&m!==s.location.hash.slice(1),S=g!==Ja,w=Ja,_=++cM;Ja=g;let b=()=>{cM===_&&(Ja=w)},x=l.__routerRendered,C,P,R,j;if(a.useParamsMatching){let X=Ev(g,o.routes,a.level);C=X.key,P=X.routePath,R=X.content,j=X.params}else{C=Tv(a.level,g),P=C;let X=o.routes;R=X?X[C||"/"]||X["/*"]:null,j={}}a.scrollNode===void 0&&(a.scrollNode=CH(i));let F=a.scrollToNode?k:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let U=BI(s,a,F);if(U&&U.pop&&U.pop.echo)return;if(!R){b(),a.onNotFound?a.onNotFound({pathname:g,route:C,element:o}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(o.routes||{})),a.event&&a.event.type==="popstate"&&HI(U,l,s));return}let et=r&&r.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let X={pathname:g,route:C,params:j,query:y,hash:m,element:o,state:n},J=Cv(a.guards,X);if(Lu(J)&&(J=await J,l.__routerStartSeq!==et)){b(),UI(U);return}if(J===!1){b(),yv(U);return}if(typeof J=="string"){let Ot=!!(U&&U.pop);if(Ot&&!mv(U))return;let lt={...r,guards:[]};return Ot&&(lt.event=void 0),delete lt.render,(Ot||a.initialRender)&&(lt.pushState=!0,lt.replace=!0),mn(J,e,n,lt)}}let Y=c?rM(R,o,o.routes):null;if(Y&&Y.rematch)return mn(t,o,n,r);Y&&(R=Y.content,a.lazy={group:Y.group,status:Y.status});let rt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,_t=!x||x.content!==R||x.route!==C,wt=!!x&&x.content===R,K=!(!c||a.keepSamePage===!0&&wt&&a.force!==!0)&&(S||_t||a.force===!0);if(K&&x&&!nm(x.content)){let X=TH(o,l,o[f],{from:x.route,to:C,pathname:g,params:j,query:y,hash:m},a.exitTimeout,i,s);if(X&&(await X,l.__routerNavSeq!==rt||(l.__routeExit&&l.__routeExit.wait===X&&(l.__routeExit=null),typeof o?.set!="function")))return}else _M(l);let G=K?RH(a,x,i,s):null;if(K&&PH(l),a.pushState){let X=g+(h||"")+(m||"");zI(U,n,X,a.replace,s)}else U&&mv(U);VI(l,s);let nt=mH(o,a,f),Q=()=>{let X=K?wH(a,o,f,nt):null,J=(!!x||uM(nt))&&!!F&&F.scrollTop===0&&!F.scrollLeft,lt=S||!v?{route:C,routePath:P,hash:m,params:j,query:y,debugging:!1}:{params:j,query:y};a.updateState&&o.state.update(lt,{preventContentUpdate:!0});let xn=null;if(K){f&&a.removeOldElement&&o[f].remove();let Dt=o.__ref?.origin?.content,kn={};if(Dt)for(let q in Dt){let gt=Dt[q];q==="__ref"||q==="props"||q==="node"||q==="parent"||q==="key"||(typeof gt=="string"||typeof gt=="number"||typeof gt=="boolean"||typeof gt=="object"&&gt!==null&&!gt.node&&!gt.__ref)&&(kn[q]=gt)}let re={...kn,...typeof R=="object"?R:{extends:R}};a.useFragment&&(re.tag="fragment");let vn={content:R,route:C},V=l.__routerRendered;try{if(typeof o?.set!="function")return;l.__routerRendered=vn;let q=!X&&bH(a),gt=o.set(re,nt,X||(q?kv:void 0));gt&&X?xH(a,X,gt,()=>l.__routerNavSeq===rt):gt&&q&&_H(a,gt),xn=yH(o[f])}catch(q){l.__routerRendered===vn&&(l.__routerRendered=V),console.error("[smbls/router] failed to render route content",g,q)}}else wt&&x.route!==C&&l.__routerRendered===x&&(l.__routerRendered={content:R,route:C});let ne=()=>{let Dt=!S&&v,kn=!c||WI(U,F,a,i);if(!kn&&a.scrollToTop&&!Dt&&!J&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!kn&&a.scrollToNode&&R[f]?.node?.scrollTo&&R[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!kn&&m){let re=i.getElementById(m.slice(1));if(re&&F?.scrollTo){let vn=s.getComputedStyle?s.getComputedStyle(re):null,V=vn&&parseFloat(vn.scrollMarginTop)||0,q=re.getBoundingClientRect().top+F.scrollTop-V-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:q,left:0})}}Y&&oM(o,Y,re=>mn(t,o,n,{...r,...re})),tr("routeChanged",o,a)};if(xn)return xn.then(()=>{sM(nt,o,a),l.__routerNavSeq===rt&&ne()});sM(nt,o,a),ne()},ht=G?NH(o,l,G,i,s,rt,Q):null;if(ht){await ht;return}return Q()},FH=mn;var jH=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let r=n.getAttribute("target");return r&&r.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},wM=(t,e,n)=>{let{context:r}=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||jH(t,e))return;let{utils:c,snippets:l,functions:f,routerOptions:u}=r,d=e.__ref.root,p=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&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||mn)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},Ov={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>uo(t,t.href)||uo(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:wM},SM={extends:"Link"},Rv={onClick:wM},xM={extends:[Ov,Rv]};var Dv={};$(Dv,{Select:()=>kM});var kM={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 Lv={};$(Lv,{Button:()=>vM,ButtonSet:()=>TM,CircleButton:()=>AM,IconButton:()=>OM,KangorooButton:()=>CM,SquareButton:()=>EM});var vM={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"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)},EM={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"},AM={extends:"SquareButton",round:"C"},CM={extends:"Button",childExtends:"IconText"},TM={tag:"nav",display:"flex",childExtends:"SquareButton"},OM={extends:["SquareButton","ClickableItem"],round:"Z"};var Mv={};$(Mv,{Dialog:()=>LM,DialogFooter:()=>MM,DialogHeader:()=>IM});Lt();var BH={ok:1,cancel:1},$u=new WeakMap,UH=0,Kn=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},Iv=t=>{let e=$u.get(t);return e||(e={id:"smbls-dialog-"+ ++UH,want:void 0,waiting:!1},$u.set(t,e)),e},sm=(t,e,n,r)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||r!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[r]!==void 0,Nu=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},RM=["methods","functions","utils"],VH=t=>{for(let e=0;e<RM.length;e++){let n=t[RM[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},im=(t,e,n)=>{let r=t.context;if(!r||!VH(r))return n;let o=t.call("polyglot",e);return typeof o=="string"&&o&&o!==e?o:n},PM=t=>{let e=$u.get(t),n=Kn(t);if(!e||!n)return!0;if(!n.isConnected)return!1;if(e.want){if(!n.open&&typeof n.showModal=="function")try{n.showModal()}catch{}}else n.open&&typeof n.close=="function"&&n.close();return!0},HH=t=>{queueMicrotask(()=>{if(PM(t))return;let e=$u.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,PM(t)}))})},zH=t=>{let e=t.__ref;if(!e||!Kn(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||sm(t,"data-dialog"))return;let n=W(()=>{let r=t.modal,o=Kn(t);if(!o)return;if(r==null){Nu(o,"data-dialog",null);return}Nu(o,"data-dialog","modal");let s=Iv(t),i=!!r;s.want!==i&&(s.want=i,HH(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},WH=t=>t.dialogTitle===!0,KH=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},DM=t=>{let e=KH(t);return!e||!e.locked},qH=t=>t.key==="Escape"||t.key==="Esc",GH=t=>{let e=t.__ref,n=Kn(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let r=Iv(t),o=!sm(t,"closedby","closedBy"),s=W(()=>{let l=!!t.locked,f=Kn(t);f&&o&&Nu(f,"closedby",l?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(s);let i=l=>{t.locked&&l.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,c=l=>{let f=Kn(t);f&&f.open&&f.isConnected&&qH(l)&&t.locked&&l.preventDefault()};n.addEventListener("cancel",i),a&&a.addEventListener("keydown",c),r.unlock=()=>{n.removeEventListener("cancel",i),a&&a.removeEventListener("keydown",c)}},YH=t=>{let e=Kn(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||sm(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(WH):null,r=Kn(n);if(!r)return;let o=r.getAttribute("id");if(!o){if(sm(n,"id"))return;o=Iv(t).id+"-title",Nu(r,"id",o)}Nu(e,"aria-labelledby",o)},XH=(t,e)=>{let n=Kn(e),r=t.target;if(!n||t.defaultPrevented||!r||typeof r.closest!="function")return;let o=r.closest("[data-dialog-action]");if(!o||!n.contains(o))return;let s=o.getAttribute("data-dialog-action");if(BH[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},JH=t=>{let e=$u.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=Kn(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},LM={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onComplete:{always:!0,handler:t=>{zH(t),GH(t),YH(t)}},onClick:(t,e)=>XH(t,e),onBeforeRemove:{always:!0,handler:t=>JH(t)}},IM={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>im(t,"dialog.title","Title")},SquareButton:{if:DM,icon:"x",theme:"transparent",aria:{label:t=>im(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},MM={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:{if:DM,text:t=>im(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>im(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var Uv={};$(Uv,{Tooltip:()=>VM,TooltipHidden:()=>HM,TooltipLayer:()=>Bv,TooltipParent:()=>zM});M();var ZH='[data-tooltip]:not([data-tooltip=""])',$M={top:1,bottom:1,left:1,right:1},$v={top:"bottom",bottom:"top",left:"right",right:"left"},Bs=6,NM=new WeakMap,QH=0,Ae=t=>{let e=NM.get(t);return e||(e={id:"smbls-tooltip-"+ ++QH,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},NM.set(t,e)),e},Nv=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},tz=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},ez=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},FM=(t,e)=>{let n=tz(t);if(!e||!n)return null;let r;try{r=e.closest(ZH)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(ez(o))return null;return r},nz=(t,e)=>!!(e&&t.node&&t.node.contains(e)),rz=t=>{try{return t.matches(":focus-visible")}catch{return!0}},jM=(t,e)=>typeof t=="number"&&t>=0?t:e,fm=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},Fv=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),oz=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},jv=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let r=n.split(/\s+/).filter(o=>o&&o!==e);r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")},sz=(t,e,n,r,o)=>{let s={top:t.top,bottom:o-t.bottom,left:t.left,right:r-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+Bs;s[n]<i(n)&&s[$v[n]]>=i($v[n])&&(n=$v[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+Bs:t.top-e.height-Bs):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+Bs:t.left-e.width-Bs);let l=(f,u)=>Math.max(Bs,Math.min(u-Bs,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},iz=t=>{let e=t.ownerDocument,n=e&&e.defaultView,r=e&&e.documentElement;return{width:r&&r.clientWidth||n&&n.innerWidth||0,height:r&&r.clientHeight||n&&n.innerHeight||0}},az=t=>(t.title||"")+(t.description||""),cm=(t,e=0)=>{let r=Ae(t).shown;if(!r||!Fv(t))return;if(!r.isConnected){lm(t);return}let o=t.node,s=t.state;if(o.textContent!==az(s)){e<3&&setTimeout(()=>cm(t,e+1),0);return}let i=r.getBoundingClientRect(),a=o.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=iz(o),u=r.getAttribute("data-tooltip-placement"),d=$M[u]?u:$M[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=sz(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},cz=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},BM=(t,e)=>{let n=Ae(t);fm(n),!(!Fv(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&jv(n.shown,n.id),n.shown=e,oz(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),cz(()=>cm(t)))};function lm(t){let e=Ae(t);fm(e),e.shown&&jv(e.shown,e.id),e.shown=null,Fv(t)&&t.state.open&&t.state.update({open:!1})}var am=(t,e)=>{let n=Ae(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let r=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(r===n.shown){fm(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){lm(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,lm(t)},jM(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){BM(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,BM(t,r)},jM(t.tooltipDelay,250))},UM=t=>{let e=Ae(t);e.shown&&(e.dismissed=e.shown,lm(t))},Bv={role:"tooltip",id:t=>Ae(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=Ae(e),r=Nv(t.target),o=nz(e,r)?n.shown:FM(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,am(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Ae(e);n.hover&&(n.hover=null,am(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Ae(e),r=Nv(t.target);n.shown&&r&&n.shown.contains(r)&&UM(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Ae(e),r=Nv(t.target),o=r&&rz(r)?FM(e,r):null;o!==n.focus&&(n.focus=o,am(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Ae(e);n.focus&&(n.focus=null,am(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&UM(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Ae(e).shown&&cm(e)}},onWindowResize:(t,e)=>{Ae(e).shown&&cm(e)},onBeforeRemove:t=>{let e=Ae(t);fm(e),e.shown&&jv(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var VM={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=>jt(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)}},HM={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},zM={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Vv={};$(Vv,{Avatar:()=>WM});var lz=t=>{let n=`<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(n)},WM={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 n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=lz(n)},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 Hv={};$(Hv,{Range:()=>KM});var KM={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,n):n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,n):n.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:Zi("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Zi("#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,n)=>{let r=t.call("exec",t[e],t);return(t.call("isFunction",r)?r(t,t.state):r!==void 0?r:n!==void 0?n: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 Qv={};$(Qv,{Dropdown:()=>m$,DropdownDisclosure:()=>_$,DropdownList:()=>y$,DropdownParent:()=>b$,DropdownParentFocus:()=>w$,DropdownSiblingFocus:()=>S$});Lt();var mm="hover",XM="focus",ju="sibling",zs="disclosure",qM={menu:1,listbox:1,tree:1,grid:1,dialog:1},fz={DIV:1,SPAN:1,LABEL:1,P:1,STRONG:1,B:1,EM:1,SMALL:1,H1:1,H2:1,H3:1,H4:1,H5:1,H6:1},uz={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},dz='button, a[href], [role^="menuitem"], [role="option"]',pz={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},dm=new WeakMap,pm=new WeakMap,hm=new WeakMap,Wv=new WeakMap,JM=new WeakSet,hz=0,bt=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},Qa=(t,e)=>{let n=bt(t);return n?n.getAttribute(e):null},Pt=(t,e)=>{let n=bt(t);return!!n&&!!e&&(n===e||n.contains(e))},zv=t=>{let e=bt(t);return!!e&&e.hasAttribute("dropdown")},Kv=t=>{let e=bt(t);return!!e&&e.tagName==="BUTTON"},um=t=>Kv(t)||Qa(t,"role")==="button",GM=t=>{let e=bt(t);return!!e&&fz[e.tagName]===1&&!e.isContentEditable},ZM=t=>{let e=bt(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},Bu=t=>{let e=Qa(t,"role");return!!e&&e.indexOf("menuitem")===0&&ZM(t)},gz=t=>{let e=bt(t);if(!e||!ZM(t))return!1;if(uz[e.tagName]===1)return e.getAttribute("type")!=="hidden";if(e.tagName==="A"&&e.hasAttribute("href"))return!0;let n=e.getAttribute("tabindex");return n!==null&&parseInt(n,10)>=0},Us=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],rn=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,qv=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},QM={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},t$=(t,e)=>{if(t[e]!==void 0)return!0;let n=QM[e];if(n!==void 0&&t[n]!==void 0)return!0;let r=t.attr;if(r&&typeof r=="object"&&r[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let o=t.aria;if(o&&typeof o=="object"&&o[e.slice(5)]!==void 0)return!0}return!1},mz=(t,e)=>{let n=QM[e],r=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!r&&typeof r=="object"&&typeof r[e]=="function"},qn=(t,e,n)=>!e.hasAttribute(n)&&!t$(t,n),xo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},yz=(t,e)=>{let n=bt(t);if(n)for(let r in e)xo(n,r,e[r])},gm=t=>{let e=bt(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},bz=t=>{let e=dm.get(t);return e||(e={id:"smbls-dropdown-"+ ++hz,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},dm.set(t,e)),e},YM=(t,e)=>!!e&&!!bt(e)&&!!t&&t[e.key]===e,_z=(t,e)=>{let n=null,r=null;if(e===ju){let s=t.parent?Us(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(zv(s[i])){n=s[i];break}return(um(t)||GM(t))&&(r=t),{panel:n,trigger:r}}let o=Us(t);for(let s=0;s<o.length;s++)if(zv(o[s])){n=o[s];break}if(um(t))return{panel:n,trigger:t};for(let s=0;s<o.length;s++){let i=o[s];if(!(!bt(i)||i.key==="Input_trigger"||zv(i))){(um(i)||GM(i))&&(r=i);break}}return{panel:n,trigger:r}},wz=t=>{let e=Qa(t,"role");if(e&&qM[e]===1)return{el:t,role:e};let n=Us(t);for(let r=0;r<n.length;r++){let o=Qa(n[r],"role");if(o&&qM[o]===1)return{el:n[r],role:o}}return null},yn=t=>{let e=rn(t);if(!e||!bt(t))return null;let n=bz(t);if(n.trigger){let p=e===ju?t.parent:t;if((n.trigger===t||YM(t,n.trigger))&&YM(p,n.panel))return n}let{panel:r,trigger:o}=_z(t,e);if(!r||!o)return n.trigger=n.panel=n.popup=null,null;n.trigger=o,n.panel=r;let s=e===zs?null:wz(r);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=bt(o),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&qn(o,i,"id")&&(a.id=c=n.id+"-trigger"),um(o)||(qn(o,i,"role")&&(a.role="button"),qn(o,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&qn(o,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=bt(r),f=l.getAttribute("id");if(!f&&qn(r,l,"id")&&(f=n.id+"-panel",xo(l,"id",f)),f&&qn(o,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=qn(o,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=ym(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),yz(o,a),n.popupRole==="menu"&&c){let p=bt(n.popup);qn(n.popup,p,"aria-label")&&qn(n.popup,p,"aria-labelledby")&&xo(p,"aria-labelledby",c)}o!==t&&e===XM&&Qa(t,"tabindex")==="0"&&!mz(t,"tabindex")&&xo(bt(t),"tabindex","-1");let u=qv(t),d=bt(u);return d&&!d.hasAttribute("tabindex")&&(t$(u,"tabindex")||xo(d,"tabindex","-1"),qn(u,d,"aria-hidden")&&xo(d,"aria-hidden","true")),Vs(t,n),n},e$=t=>{let e=bt(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},Sz=t=>Pt(t,e$(t)),ym=(t,e,n)=>{if(e.open!==null)return e.open;let r=rn(t);return n||r===mm||r===zs?!1:Sz(t)},Vs=(t,e,n)=>{let r=e.open===null?null:String(e.open);if(e.written.open!==r){e.written.open=r;let s=bt(t);s&&xo(s,"data-dropdown-open",r)}if(!e.owns)return;let o=ym(t,e,n)?"true":"false";if(e.written.expanded!==o){e.written.expanded=o;let s=bt(e.trigger);s&&xo(s,"aria-expanded",o)}},Ws=t=>{let e=pm.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},pm.set(t,e)),e},n$=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&hm.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let r=hm.get(e);r&&r.set(!0)},r$=(t,e)=>{let n=Ws(t);n.chosen=!0,n$(n,e)},o$=t=>{let e=Ws(t);if(e.settling=!1,e.chosen)return;let n=Us(t);for(let r=0;r<n.length;r++)if(Bu(n[r])){n$(e,n[r]);return}},s$=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let o=t;o!==e;o=o.parentElement)n.push(o);n.push(e);let r=!1;for(let o=n.length-1;o>=0;o--){let s=typeof n[o].getAnimations=="function"?n[o].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),r=!0)}return r},i$=(t,e)=>{let n=bt(t);if(!n)return;let r=n.ownerDocument.activeElement,o=gm(t);!o&&e&&n.ownerDocument.activeElement===r&&s$(n,bt(e))&&(o=gm(t));let s=t.parent;o&&s&&pm.has(s)&&r$(s,t)},xz=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?Bu:gz)},kz=(t,e,n)=>{if(n==="trigger"){let s=e$(t);(!Pt(t,s)&&!Pt(e.panel,s)||Pt(qv(t),s))&&gm(e.trigger);return}let r=xz(e);if(!r.length)return;let o=n==="last"?r[r.length-1]:null;if(!o)for(let s=0;s<r.length&&!o;s++)Qa(r[s],"aria-checked")==="true"&&(o=r[s]);i$(o||r[0],e.panel)},Gv=(t,e,n)=>{let r=bt(t),o=r&&r.ownerDocument;n&&!e.outside&&o?(e.outside=s=>{if(!bt(t)||!bt(t).isConnected){Gv(t,e,!1);return}Pt(t,s.target)||Pt(e.panel,s.target)||Ce(t,e,!1)},e.outsideDoc=o,o.addEventListener("pointerdown",e.outside,!0)):!n&&e.outside&&(e.outsideDoc.removeEventListener("pointerdown",e.outside,!0),e.outside=e.outsideDoc=null)},Fu=(t,e,n)=>{if(e.open=!0,Vs(t,e),rn(t)===zs){Gv(t,e,!0);let r=bt(e.panel);r&&s$(r,r)}n&&kz(t,e,n)},Ce=(t,e,n)=>{e.open=!1,Vs(t,e),e.outside&&Gv(t,e,!1),n&&gm(e.trigger)},bm=(t,e,n)=>e.trigger===t?!Pt(e.panel,n):Pt(e.trigger,n)?!0:Pt(qv(t),n),Yv=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(dz):null;return!!n&&Pt(t,n)},a$=(t,e,n)=>{let r=t.key;r==="Escape"||r==="Esc"?(t.preventDefault(),Ce(e,n,!0)):r==="Tab"&&n.popupRole==="menu"&&Pt(n.popup,t.target)&&Ce(e,n,!1)},_m=t=>{rn(t)===ju&&t.parent&&JM.add(t.parent),yn(t)},wm=(t,e)=>{let n=yn(e);n&&(n.pressedOpen=ym(e,n))},vz=(t,e)=>{let n=dm.get(e);!n||!n.trigger||n.open!==!1||rn(e)!==mm||(n.open=null,Vs(e,n))},Sm=(t,e)=>{if(rn(e)===zs){Az(t,e);return}if(t.defaultPrevented)return;let n=yn(e);if(!n)return;let r=t.target;if(Pt(n.panel,r)){if(rn(e)!==mm||!Yv(n.panel,r))return;(n.open===!0||t.detail===0)&&Ce(e,n,!0);return}if(!bm(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?Ce(e,n,!0):Fu(e,n,n.popupRole==="menu"?"first":"trigger")},xm=(t,e)=>{if(t.defaultPrevented)return;if(rn(e)===zs){Cz(t,e);return}let n=yn(e);if(!n)return;let r=t.target;if(Pt(n.panel,r)){a$(t,e,n);return}if(!bm(e,n,r))return;let o=t.key;if(o==="ArrowDown"||o==="Down"||o==="ArrowUp"||o==="Up")t.preventDefault(),Fu(e,n,o==="ArrowUp"||o==="Up"?"last":"first");else if(o==="Escape"||o==="Esc"){if(!ym(e,n))return;t.preventDefault(),Ce(e,n,!1)}else(o==="Enter"||o===" "||o==="Spacebar")&&!Kv(n.trigger)&&(t.preventDefault(),n.open===!0?Ce(e,n,!0):Fu(e,n,n.popupRole==="menu"?"first":"trigger"))},Ez=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),Az=(t,e)=>{let n=yn(e);if(!n)return;let r=t.target;if(Pt(n.panel,r)){n.open===!0&&!Ez(t)&&Yv(n.panel,r)&&Ce(e,n,!0);return}if(t.defaultPrevented||!bm(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?Ce(e,n,!0):Fu(e,n,"trigger")},Cz=(t,e)=>{let n=yn(e);if(!n)return;let r=t.key;if(r==="Escape"||r==="Esc"){if(n.open!==!0)return;t.preventDefault(),Ce(e,n,!0);return}(r==="Enter"||r===" "||r==="Spacebar")&&!Kv(n.trigger)&&!Pt(n.panel,t.target)&&bm(e,n,t.target)&&(t.preventDefault(),n.open===!0?Ce(e,n,!0):Fu(e,n,"trigger"))},Xv=(t,e)=>{let n=yn(e);n&&(n.open===null&&Pt(n.panel,t.target)&&(n.open=!0),Vs(e,n))},Uu=(t,e)=>{let n=dm.get(e);if(!n||!n.trigger)return;let r=t.relatedTarget;if(rn(e)===zs){n.open===!0&&r&&!Pt(e,r)&&!Pt(n.panel,r)&&Ce(e,n,!1);return}if(r&&(Pt(e,r)||Pt(n.panel,r))){n.open===null&&Pt(n.panel,r)&&(n.open=!0,Vs(e,n));return}n.open=null,Vs(e,n,!0)},c$=t=>{let e=t.parent;if(!e||!JM.has(e))return null;let n=Us(e);for(let r=n.indexOf(t)-1;r>=0&&n[r];r--)if(rn(n[r])===ju)return n[r];return null},Jv=t=>{let e=c$(t),n=e?yn(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},l$=t=>{let e=c$(t);e&&yn(e)},f$=(t,e)=>{if(t.defaultPrevented)return;let n=Jv(e);n&&a$(t,n.ctrl,n.rec)},u$=(t,e)=>{if(t.defaultPrevented||!Yv(e,t.target))return;let n=Jv(e);n&&Ce(n.ctrl,n.rec,!0)},d$=(t,e)=>{let n=Jv(e);n&&Uu(t,n.ctrl)},Tz=(t,e)=>{let n=e.parent,r=rn(n)?yn(n):null;if(r&&r.panel===e){Ce(n,r,!0);return}let o=bt(e),s=o&&o.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},p$=(t,e)=>{if(rn(e.parent)&&yn(e.parent))return;let n=bt(e);n&&n===n.ownerDocument.activeElement&&n.blur()},Oz=(t,e)=>{if(t.defaultPrevented)return;let n=pz[t.key];if(!n)return;let r=typeof e.lookdownAll=="function"?e.lookdownAll(Bu):[];if(!r.length)return;let o=-1;for(let i=0;i<r.length&&o===-1;i++)Pt(r[i],t.target)&&(o=i);let s;n==="first"?s=0:n==="last"?s=r.length-1:o===-1?s=n>0?0:r.length-1:s=(o+n+r.length)%r.length,t.preventDefault(),i$(r[s])},Rz=(t,e)=>{let n=Us(e);for(let r=0;r<n.length;r++)if(Pt(n[r],t.target)){Bu(n[r])&&r$(e,n[r]);return}},Pz=t=>{let e=t.parent;if(!e)return"0";let n=Ws(e),r=hm.get(t);if(!r){n.stop===null&&(n.stop=t.key);let o=n.stop===t.key;o&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>o$(e))),r=cn(o),hm.set(t,r)}return r.get()?"0":"-1"},Dz=t=>{l$(t);let e=Ws(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&Bu(e.stopItem))&&o$(t)},Lz=t=>{let e=Wv.get(t),n=!e;n&&(e={tick:cn(0),seen:0,checked:!1},Wv.set(t,e));let r=e.tick.get();return r===e.seen&&(e.checked=!!yi(()=>t.isActive)),e.seen=r,n&&t.parent&&Mz(t.parent),e.checked?"true":"false"},Iz=(t,e)=>{if(e.checkRows.get(),!t.node){g$(t);return}let n=Us(t);for(let r=0;r<n.length;r++){let o=Wv.get(n[r]);if(!o)continue;let s=!!n[r].isActive;s!==o.checked&&(o.checked=s,o.tick.set(o.tick.peek()+1))}},h$=t=>{let e=Ws(t);e.checks||(e.checkRows||(e.checkRows=cn(0)),e.checks=W(()=>Iz(t,e),{label:"DropdownList.checks"}))},g$=t=>{let e=pm.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},Mz=t=>{let e=Ws(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||h$(t)},$z=t=>{Ws(t).owned=!0},Hs={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},Zv={opacity:0,visibility:"hidden"},m$={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden",onComplete:{always:!0,handler:l$},onKeydown:f$,onClick:u$,onFocusout:d$},y$={display:"flex",attr:{dropdown:!0},role:"menu",padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",listStyleType:"none",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",children:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},onKeydown:(t,e)=>{Oz(t,e),f$(t,e)},onInit:{always:!0,handler:$z},onComplete:{always:!0,handler:Dz},onRender:{always:!0,handler:h$},onBeforeRemove:{always:!0,handler:g$},onFocusin:Rz,onClick:u$,onFocusout:d$,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>Pz(t),aria:{checked:t=>Lz(t)},isActive:(t,e)=>e.active===t.key,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"}}},':where([aria-checked="true"])':{style:{svg:{opacity:"1"}}},Icon:{name:"check",opacity:"0.1"},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},b$={position:"relative",zIndex:999,dropdownMode:mm,":hover":{zIndex:1e3,"& [dropdown]":{...Hs}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Hs}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...Zv}},onComplete:{always:!0,handler:_m},onPointerdown:wm,onPointerenter:vz,onClick:Sm,onKeydown:xm,onFocusin:Xv,onFocusout:Uu},_$={position:"relative",dropdownMode:zs,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...Hs}},onComplete:{always:!0,handler:_m},onPointerdown:wm,onClick:Sm,onKeydown:xm,onFocusout:Uu},w$={position:"relative",tabindex:"0",dropdownMode:XM,":focus-within":{zIndex:1e3,"& [dropdown]":{...Hs}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Hs}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...Zv}},onComplete:{always:!0,handler:_m},onPointerdown:wm,onClick:Sm,onKeydown:xm,onFocusin:Xv,onFocusout:Uu,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>p$(t,e)},Dropdown:{onClick:(t,e)=>Tz(t,e)}},S$={position:"relative",tabindex:"0",dropdownMode:ju,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...Hs}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...Hs}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...Zv}},onComplete:{always:!0,handler:_m},onPointerdown:wm,onClick:Sm,onKeydown:xm,onFocusin:Xv,onFocusout:Uu,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>p$(t,e)}};var tE={};$(tE,{Notification:()=>x$});var x$={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 Ks=Object.assign({},$k,Nk,Fk,jk,Uk,Wk,Kk,qk,Hk,Gk,Yk,zk,Xk,Jk,Zk,Qk,tv,ev,nv,rv,ov,sv,iv,Pv,Dv,Lv,Mv,Uv,Vv,Hv,Qv,tE);function km(t){if(t==null)return 0;if(typeof t!="object")return k$(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^km(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^k$(n[r]))*16777619,e=(e^km(t[n[r]]))*16777619;return e>>>0}function k$(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function vm(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(!vm(t[o],e[o]))return!1;return!0}let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!vm(t[s],e[s]))return!1}return!0}function eE(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 n=!1,r={};for(let o in t)if(o in e){let s=eE(t[o],e[o]);r[o]=s,s!==t[o]&&(n=!0)}else r[o]=t[o];for(let o in e)o in t||(r[o]=e[o],n=!0);return n?r:t}function nE(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let r in e){let o=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?nE(t[r],o,n):t[r]=o}return t}function ko(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function ec(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Vu(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ko(e)}function v$(t){return t.split(`
89
+ `).map(ko).join(`
90
+ `)}var E$={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 A$(t,e){let n=E$[t]||ko(t),r=Vu(e),o=`_${n}-${r}`,s=ec(t),i=Bz[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
91
+ ${c}`}var Bz={"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"},Uz="@media (hover: hover)",Vz=/(?:^|[^\\]):hover(?![\w-])/,C$=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function T$(t){let e=t.split("\0"),n=[],r=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||C$(i))continue;let a=E$[s]||ko(s),c=Vu(i),l=`_${a}-${c}`,f=ec(s);n.push(l),r.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+r.join(`
92
+ `)}function O$(t,e,n){let r=t+e,o=`_c${ko(r)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(C$(u)||(i+=`${ec(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 n!==!1&&Vz.test(c)&&(a=`${Uz}{${a}}`),`${o}
93
+ ${a}`}var rE=null;function Am(t){rE=t}var bn={structuralHash:km,deepEqual:vm,mergeStructural:eE,overwriteDeep:nE,shortHash:ko,toKebab:ec,sanitizeValue:Vu,batchShortHash:v$,atomicCssClass:A$,batchAtomicCss:T$,compoundCssClass:O$},R$=!1,Em=null;function P$(t){return Em||(Em=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(bn.structuralHash=e.structuralHash),e.deepEqual&&(bn.deepEqual=e.deepEqual),e.mergeStructural&&(bn.mergeStructural=e.mergeStructural),e.overwriteDeep&&(bn.overwriteDeep=e.overwriteDeep),e.shortHash&&(bn.shortHash=e.shortHash),e.toKebab&&(bn.toKebab=e.toKebab),e.sanitizeValue&&(bn.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(bn.batchShortHash=e.batchShortHash),e.atomicCssClass&&(bn.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(bn.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(bn.compoundCssClass=e.compoundCssClass),R$=!0,rE&&e.batchAtomicCss&&rE({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Em)}function D$(){return R$}M();var Hu={};$(Hu,{BRENDER_REGISTRY_BLOCK:()=>Bl,BRENDER_STAMP_META:()=>nh,CDN_PROVIDERS:()=>ze,DESIGN_SYSTEM_BLOCK:()=>Vl,DESIGN_SYSTEM_LINK:()=>Ul,DOMQL_EVENTS:()=>Hb,DOMQ_PROPERTIES:()=>Mr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ki,ENV:()=>d_,HTML_TAGS:()=>Ri,LIBRARY_PACKAGES:()=>ch,LIBRARY_SCOPES_KEY:()=>Zo,METHODS:()=>Nr,METHODS_EXL:()=>Hc,NODE_ENV:()=>ln,OPTIONS:()=>ml,PACKAGE_MANAGER_TO_CDN:()=>Gr,PARSED_DOMQ_PROPERTIES:()=>Vc,POLYGLOT_LANG_STORAGE_KEY:()=>Jp,PROPS_METHODS:()=>$r,REVIVED_MARK:()=>Yc,STATE_METHODS:()=>Io,STATE_PROPERTIES:()=>Ub,SVG_TAGS:()=>GC,TYPES:()=>Mc,UNIVERSAL_RESERVED_KEYS:()=>Xp,__resetBuiltinMethodWarnings:()=>xS,addCaching:()=>Sp,addContext:()=>wp,addExtend:()=>M_,addExtends:()=>Cn,addItemAfterEveryElement:()=>Cb,addProtoToArray:()=>Fc,addRef:()=>yp,alternateLinkKey:()=>Xo,applyCSS:()=>aE,applyDependentState:()=>tw,applyEvent:()=>Cp,applyEventUpdate:()=>Tp,applyExtends:()=>JC,applyProps:()=>ll,arrayContainsOtherArray:()=>wb,arraysEqual:()=>Ob,arrayzeValue:()=>es,bareLibraryKey:()=>zl,bindLibraryGlobalScopes:()=>Kl,brenderRegistryBlock:()=>fS,brenderStampMeta:()=>pS,buildImgSrcset:()=>Zl,buildSourcesAndImg:()=>Ql,cache:()=>sw,call:()=>Ww,captureSnapshot:()=>qw,checkForStateTypes:()=>X_,checkIfInherits:()=>Ap,checkIfStringIsInArray:()=>Db,clone:()=>Jb,cloneAndMergeArrayExtend:()=>el,cloneFunction:()=>__,collectExtendsList:()=>Pi,concatAddExtends:()=>D_,copyJavaScriptToClipboard:()=>CS,copyStringToClipboard:()=>AS,createBasedOnType:()=>mp,createElement:()=>Y_,createElementExtends:()=>op,createExtends:()=>rl,createExtendsFromKeys:()=>Di,createExtendsStack:()=>cp,createIfConditionFlag:()=>w_,createInheritedState:()=>J_,createKey:()=>Qc,createNestedObject:()=>s_,createNestedObjectByKeyPath:()=>Q_,createObjectWithoutPrototype:()=>Xd,createParent:()=>bp,createPath:()=>_p,createProps:()=>fl,createPropsStack:()=>hp,createRoot:()=>G_,createScope:()=>nw,createSnapshotId:()=>Zc,currentPathname:()=>qo,customDecodeURIComponent:()=>Bb,customEncodeURIComponent:()=>jb,cutArrayAfterValue:()=>Eb,cutArrayBeforeValue:()=>vb,debounce:()=>tl,debounceOnContext:()=>y_,decodeNewlines:()=>Fb,deepClone:()=>ut,deepContains:()=>r_,deepDefaults:()=>Ki,deepDestringifyFunctions:()=>me,deepExtend:()=>rp,deepMerge:()=>ft,deepMergeExtends:()=>Tn,deepStringifyFunctions:()=>Kc,defineSetter:()=>Hw,designSystemBlock:()=>dS,designSystemLink:()=>uS,destringifyGlobalScope:()=>Uo,detectHeightOnInit:()=>Qw,detectInfiniteLoop:()=>l_,document:()=>St,encodeNewlines:()=>Nb,error:()=>Wo,escapeHtml:()=>z,escapeRegExp:()=>Lb,excludeKeysFromObject:()=>u_,exec:()=>vt,exposeBagGlobalScopes:()=>ql,extendCachedRegistry:()=>L_,extendStackRegistry:()=>ol,extractArrayExtend:()=>il,faviconLinkKey:()=>Xr,fetchLibraryData:()=>lh,fibonacciNumberByIndex:()=>tS,fileEntryUrl:()=>rh,filterArrays:()=>Rb,filterArraysFast:()=>Pb,finalizeExtends:()=>lp,findClosestNumber:()=>oh,findClosestNumberInFactory:()=>yS,findInheritedState:()=>Ep,findKeyPosition:()=>Mb,flattenExtend:()=>Li,formatDate:()=>Zw,generateHash:()=>tp,generateHeadArrayTags:()=>Wi,generateKey:()=>Jc,generateMetaTags:()=>gS,get:()=>jw,getActiveRoute:()=>Tv,getCDNDirUrl:()=>eh,getCDNUrl:()=>dn,getCapitalCaseKeys:()=>F_,getCdnProviderFromConfig:()=>Hi,getChildStateInKey:()=>vp,getChildren:()=>Vw,getContext:()=>Pl,getCookie:()=>E_,getDB:()=>$l,getEmotionStylesheet:()=>PS,getExtendsInElement:()=>$_,getExtendsStack:()=>nl,getExtendsStackRegistry:()=>np,getFrequencyInArray:()=>Sb,getFunctionSource:()=>De,getHashedExtend:()=>sl,getImportMapScript:()=>Jw,getInObjectByPath:()=>c_,getLocalStorage:()=>C_,getNev:()=>m_,getPageMetadata:()=>mS,getParentStateInKey:()=>kp,getPath:()=>El,getQuery:()=>Nl,getRef:()=>Uw,getRoot:()=>Tl,getRootContext:()=>Rl,getRootData:()=>Ol,getRootState:()=>Cl,getRootStateInKey:()=>xp,getSpreadChildren:()=>j_,global:()=>yb,hasFunction:()=>oe,hasHandlerPlugin:()=>Ci,hasOwnProperty:()=>t_,hashContent:()=>Dn,inheritChildExtends:()=>ip,inheritChildPropsExtends:()=>sp,inheritParentProps:()=>ul,inheritRecursiveChildExtends:()=>ap,init:()=>Gn,initProps:()=>W_,insertAfterImportMap:()=>hS,is:()=>ge,isArray:()=>I,isBoolean:()=>Vd,isBuiltinElementMethod:()=>Vb,isContextComponent:()=>B_,isCyclic:()=>f_,isDOMNode:()=>pe,isDate:()=>zd,isDefined:()=>jt,isDevelopment:()=>jr,isEmpty:()=>Gd,isEmptyObject:()=>e_,isEqualDeep:()=>Yd,isFailedRevival:()=>jo,isFunction:()=>D,isHtmlElement:()=>Lc,isLazyFunction:()=>Zb,isLocal:()=>g_,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>Go,isMethod:()=>Kw,isMobile:()=>k_,isNode:()=>Zn,isNot:()=>_b,isNotProduction:()=>Qn,isNull:()=>Hd,isNumber:()=>he,isObject:()=>A,isObjectLike:()=>H,isPhoto:()=>eS,isPolyglotRetranslatableKey:()=>gl,isPolyglotWritableKey:()=>Ho,isProduction:()=>Fr,isProtectedElementMethod:()=>Mo,isRevived:()=>Bo,isStaging:()=>h_,isState:()=>Z_,isString:()=>E,isStringFunction:()=>Ai,isStringTag:()=>Gc,isTest:()=>Zd,isTesting:()=>p_,isUndefined:()=>Wt,isUniversallyReservedKey:()=>Gw,isUnresolvableDependency:()=>Yr,isValidDependencyMap:()=>Yo,isValidHtmlTag:()=>O_,isWrappedLibrary:()=>pn,joinArrays:()=>wi,jointStacks:()=>I_,jsonForScript:()=>zr,keys:()=>Gp,lastLevel:()=>om,lastPathname:()=>Ja,libraryPackageSpecs:()=>qi,librarySpecsFor:()=>ah,loadCssFile:()=>sS,loadJavascript:()=>iS,loadJavascriptFile:()=>nS,loadJavascriptFileEmbedSync:()=>oS,loadJavascriptFileSync:()=>rS,loadLazy:()=>xv,loadRemoteCSS:()=>aS,loadRemoteScript:()=>zi,log:()=>zw,logGroupIf:()=>x_,logIf:()=>S_,lookdown:()=>Nw,lookdownAll:()=>Fw,lookup:()=>$w,lowercaseFirstLetter:()=>Lo,makeObjectWithoutPrototype:()=>n_,map:()=>Xb,mapStringsWithContextComponents:()=>al,markPolyglotSeeded:()=>Rn,markRevived:()=>Ei,matchRoute:()=>Ev,matchesComponentNaming:()=>On,memoize:()=>b_,merge:()=>Rt,mergeSharedLibraries:()=>Gl,mergeSharedLibraryDesignSystems:()=>Yl,nextElement:()=>Ll,normalizeIgnoreList:()=>Wl,normalizeLibraryKey:()=>Qo,objectToString:()=>qc,objectizeStringProperty:()=>cl,overwrite:()=>Xc,overwriteDeep:()=>se,overwriteShallow:()=>Vo,overwriteState:()=>ew,parse:()=>Yp,parseDeep:()=>kl,parseQuery:()=>Av,parseRoutePattern:()=>vv,pickStartLang:()=>th,pickupElementFromProps:()=>dp,pickupPropsFromElement:()=>up,polyglotAddressLang:()=>Zp,polyglotFallbackLang:()=>or,polyglotLangStorageKey:()=>Bi,polyglotSeededKeys:()=>Ur,polyglotStartLang:()=>Ko,polyglotStartRule:()=>Qp,polyglotStartupScript:()=>Yw,previousElement:()=>Il,promoteActiveRootState:()=>Fi,propExists:()=>H_,propertizeElement:()=>pp,propertizeUpdate:()=>V_,readBrenderStamp:()=>zo,readJsonDataBlock:()=>er,reinit:()=>iE,remove:()=>n1,removeChars:()=>TS,removeCookie:()=>A_,removeDuplicateProps:()=>pl,removeDuplicatesInArray:()=>Si,removeFromArray:()=>xb,removeFromObject:()=>o_,removeNestedKeyByPath:()=>i_,removeValueFromArray:()=>Nc,removeValueFromArrayAll:()=>Ab,reorderArrayByValues:()=>Tb,repairLegacyArrowScopePreamble:()=>zc,replaceLiteralsWithObjectFields:()=>qt,replaceOctalEscapeSequences:()=>$b,resolveAsset:()=>ye,resolveFileReferences:()=>Jo,resolveHandler:()=>Ti,resolveRouterElement:()=>Mu,resolveSharedLibraries:()=>Xl,returnValueAsText:()=>gp,router:()=>mn,runGuards:()=>mM,runPluginHook:()=>Br,saveScrollPosition:()=>Pu,scopeElementParam:()=>Wd,scopeReceiverExpression:()=>qb,scratchSystem:()=>da,scratchUtils:()=>ro,self:()=>bb,set:()=>ys,setActiveRootState:()=>Al,setCookie:()=>v_,setHashedExtend:()=>ep,setInObjectByPath:()=>a_,setLocalStorage:()=>T_,setNodeStyles:()=>qp,setProps:()=>Bw,setPropsPrototype:()=>dl,sharedLibrary:()=>SS,splitPackageSpecifier:()=>Fl,spotByPath:()=>vl,srcsetFor:()=>Yi,stringIncludesAny:()=>Bc,stringToObject:()=>Qb,stripVersionRangePrefix:()=>jl,swapItemsInArray:()=>kb,syncProps:()=>hl,toCamelCase:()=>ts,toDashCase:()=>Jl,toDescriptionCase:()=>RS,toPriorityOrder:()=>Ve,toTitleCase:()=>OS,toggleFullscreen:()=>Xw,triggerEventOn:()=>tr,triggerEventOnUpdate:()=>rw,trimStringFromSymbols:()=>Ib,unstackArrayOfObjects:()=>$c,update:()=>z_,updateProps:()=>K_,variables:()=>Ml,verbose:()=>ji,warn:()=>Dl,warnLibraryAliasCollision:()=>Gi,window:()=>T});M();M();M();var zz={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},Wz=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,Kz=/^-?[_a-zA-Z][\w-]*$/,qz=new Set(["root","*"]),Gz="@media (prefers-reduced-motion: no-preference)",Yz="@media (prefers-reduced-motion: reduce)",Xz=(t,e)=>{let n=E(t)?{animation:t}:A(t)?t:null;if(!n)return null;let r;try{r=ee(n,e)}catch{return null}let o={};for(let s in r){let i=r[s];(E(i)||he(i))&&(o[s]=i)}return Object.keys(o).length?o:null},L$=(t,e,n={})=>{if(!A(t))return null;let r=!n.scope||n.scope===":root",o=l=>{n.verbose!==!1&&console.warn("[smbls] designSystem.viewTransition: "+l)},s={key:"viewTransition",state:{},context:{designSystem:e}},i={},a={},c=(l,f,u)=>{for(let d in f){if(d==="types"&&!u)continue;let p=zz[d];if(!p){o(`${l}.${d} is not a view-transition part (group, imagePair, old, new)`);continue}let g=`${u}::view-transition-${p}(${l})`,h=Xz(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(A(f)){if(!Wz.test(l)){o(`"${l}" is not a view-transition name`);continue}if(!r&&qz.has(l)){o(`"${l}" belongs to the document's primary app; a scoped app (${n.scope}) emits its own names only`);continue}if(c(l,f,""),A(f.types))for(let u in f.types){if(!Kz.test(u)||!A(f.types[u])){o(`${l}.types.${u} is not a view-transition type with parts`);continue}c(l,f.types[u],`:root:active-view-transition-type(${u})`)}}}return Object.keys(i).length?{[Gz]:i,[Yz]:a}:null};var Jz=O(),M$=(t=Jz,e)=>{let n=A(e.localFile)?e.localFile:{},r=ut(n.designSystem||{});return ft(t,r,ie)},Zz={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Cm=(t,e)=>{let n=!e||e===":root",r={};for(let o in t)if(o.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;r[o]={[s]:t[o]}}else n?r[o]=t[o]:r[`${e}${o}, ${o} ${e}`]=t[o];return r},oE=(t,e)=>{t.CSS_MEDIA_VARS&&Tt(Cm(t.CSS_MEDIA_VARS,e));let n=ms(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&Tt(n)},$$=(t,e)=>{let n=L$(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&Tt(n)},Tm=t=>{if(typeof window<"u"&&window.location)try{let e=new URLSearchParams(window.location.search).get("globalTheme");if(e)return e}catch{}return t},I$=(t,e)=>{t.useVariable&&(Tt({[e]:t.CSS_VARS}),oE(t,e)),t.useReset&&Tt(t.reset);let n=t.animation;if(n){let r={};for(let o in n)r[`@keyframes ${o}`]=n[o];Tt(r)}$$(t,e)},N$=(t,e,n,r,o)=>{t.useFontImport&&Tt(af(t.font,t.files));let s=null;return o?Jf(o):n.recordCss?s=Xf(()=>I$(t,e)):I$(t,e),(r.svg||t.useSvgSprite)&&Nf(t.svg,{document:n.document}),(r.icons||t.useIconSprite)&&gs(t.icons,{document:n.document}),s},Gn=(t,e=Zz)=>{let n=M$(t||{},e),r=e.scopeSelector||":root",o=Tm(e.globalTheme),s=ys({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,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=r);let i={svg:!!t.svg,icons:!!t.icons},a=N$(s,r,e,i);return a&&typeof e.recordCss=="function"&&e.recordCss({rules:a,sprites:i}),s},sE=(t,e,n,r)=>{let o=n.scopeSelector||":root";if(Xh(t.config,e),n.files!==void 0&&(e.files=n.files),n.assets!==void 0&&(e.assets=n.assets),n.themeRoot!==void 0&&(e.themeRoot=n.themeRoot),to(e),eo(e),zf(e),e.__svgCache={},r){mt(e);try{Hf("font",r)}finally{pt()}}mt(e);try{N$(e,o,n,t.sprites||{},t.rules)}finally{pt()}return e},Om={},iE=(t,e=Om)=>{let n=M$(t||{},e),r=e.scopeSelector||":root",o=ys({verbose:!1,...n});return e.preventInject||(Tt({[r]:o.CSS_VARS}),oE(o,r),Tt(o.reset),$$(o,r)),o},aE=(t,e=Om)=>{Tt(t)},Qz=(t,e=Om)=>{let n=e.scopeSelector||":root";Tt({[n]:t.CSS_VARS}),oE(t,n)};var tW=(t,e=Om)=>{};M();var F$=10,eW=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},nW=t=>{try{let e=t.defaultView;return e&&e.frameElement||null}catch{return null}},j$=t=>{let e=t&&t.document||(typeof document<"u"?document:null);if(!e)return()=>!0;let n=!!e.defaultView,r=nW(e);return()=>!(n&&!e.defaultView||r&&!r.isConnected)},B$=new WeakSet,U$=t=>(B$.add(t),t),cE=t=>!!t&&typeof t=="object"&&B$.has(t),V$=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!eW(t))return null;if(e===void 0||e===!0)return{budget:F$,progressive:!1};if(e&&typeof e=="object"){let r=e.budget===void 0?F$:zn(e.budget);return r?{budget:r,progressive:e.progressive===!0}:null}let n=zn(e);return n?{budget:n,progressive:!1}:null},lE=new WeakMap,fE=(t,e)=>(lE.set(t,e),e),uE=t=>{lE.delete(t)},H$=t=>{let e=t&&lE.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},rW=Object.freeze({deferAttach:!0}),z$=async(t,e,n,r,o)=>{await Wn();let s=r.mountYield;s===void 0&&(r.mountYield=o.budget);let i=r.mountWhole;i===void 0&&(r.mountWhole=!o.progressive),o.pageOptions={mountYield:r.mountYield,mountWhole:r.mountWhole};let a;o.commit=new Promise(f=>{a=f}),o.committed=!1;let c=!o.progressive;fE(n,o);let l=Ps();try{let f=zt(t,e,n.key,r,c?rW:void 0);for(await kr(f),o.routeReady&&await o.routeReady,await Ee();!wo();)await Ee();return c&&bo(f),o.committed=!0,a(),o.page&&await kr(o.page),await Ee(),f}finally{o.committed=!0,a(),l(),r.mountYield=s,r.mountWhole=i,uE(n)}};var K$=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,oW=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},pE={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},sW=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},zu=(t,e)=>(Mu||sW)(t,e),iW=["manual","auto","restore"],dE=new WeakMap,W$=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},aW=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!iW.includes(n)){if(t.verbose!==!1){let r=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${r} \u2014 the browser default stays`)}return}try{let r=t.window||T,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=dE.get(o);s||(s={found:o.scrollRestoration,claims:[]},dE.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),W$(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||dE.delete(o);try{W$(o,s)}catch{}}})}catch{}}},cW=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Pu,r=t.window||T;if(typeof n!="function"||!r||typeof r.addEventListener!="function")return;let o=t.document||r.document,s=()=>n(r),i=()=>{o.visibilityState==="hidden"&&n(r)};r.addEventListener("pagehide",s);let a=!!o&&typeof o.addEventListener=="function";a&&o.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{r.removeEventListener("pagehide",s),a&&o.removeEventListener("visibilitychange",i)})},q$=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=pE:e.router=Rt(e.router||{},pE);let n=e.router;aW(e,n),cW(e,n);let r=(i,a)=>{let c=i.context?.window||T,l=oW(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=K$(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=zu(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return mn(l,f,{},{initialRender:!0,pushState:!1,...a})},o=async(i,a)=>{let c=H$(i.context);if(c)return lW(i,c,r);await r(i)},s=!Wt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=o(i,a)),fW(e,n),n},lW=(t,e,n)=>{let r;return e.routeReady=new Promise(s=>{r=s}),(async()=>{try{if(await Wn(),!t.__ref)return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await Ee(),r(),await s}finally{r()}})()},hE=(t,e)=>{if(e.router===!1)return;let n=e.router||pE;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:mn,o=e.window||T,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=K$(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=zu(t,n.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))},fW=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return ft(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var bE={};$(bE,{components:()=>mE,functions:()=>Er});var yE={};$(yE,{AlertTemplate:()=>Bm,ConfirmTemplate:()=>jm,CustomTemplate:()=>Vm,ModalLayer:()=>Fm,ModalRoot:()=>Nm,PromptTemplate:()=>Um,windowsComponents:()=>mE});var gE={};$(gE,{alertDialog:()=>Mm,closeAllModals:()=>Lm,closeModal:()=>Pm,confirmDialog:()=>Im,getLayer:()=>Rm,openModal:()=>Dm,promptDialog:()=>$m,windowsFunctions:()=>Er});function ot(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function nc(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 n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function Rm(){return ot(this)}var uW=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.setProperty!="function"||(r.style.setProperty("display","none","important"),r.style.setProperty("opacity","0","important"),r.style.setProperty("visibility","hidden","important"),r.style.setProperty("pointer-events","none","important"))},G$=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.removeProperty!="function"||(r.style.removeProperty("display"),r.style.removeProperty("opacity"),r.style.removeProperty("visibility"),r.style.removeProperty("pointer-events"))};function Pm(t){let e=nc(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let r,o,s;if(t){if(s=[],r=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),r.length===n.length)return;o=n.filter(i=>i.id===t)}else r=n.slice(0,-1),o=n.slice(-1),s=[n.length-1];e.state.update({stack:r});for(let i of s)uW(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function Dm(t={}){let e=nc(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 n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,r={id:n,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 G$(e,s),e.state.update({stack:[...o,r]}),n}function Lm(){let t=nc(this);!t||!t.state?.stack?.length||t.state.update({stack:[]})}function Im(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function Mm(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function $m(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var Er={openModal:Dm,closeModal:Pm,closeAllModals:Lm,confirmDialog:Im,alertDialog:Mm,promptDialog:$m,getLayer:Rm};var dW=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Y$=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(dW),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},X$=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},Nm={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 n=t.context;if(n){n.functions||(n.functions={});for(let a in Er)a in n.functions||(n.functions[a]=Er[a])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=()=>{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=X$(t);if(!l)return;let f=Y$(l);if(!f.length){a.preventDefault();let h=l.querySelector?.('[role="dialog"]')||l;try{h.focus?.()}catch{}return}let u=f[0],d=f[f.length-1],p=document.activeElement;if(!l.contains(p)){a.preventDefault();try{u.focus()}catch{}return}if(a.shiftKey&&p===u){a.preventDefault();try{d.focus()}catch{}}else if(!a.shiftKey&&p===d){a.preventDefault();try{u.focus()}catch{}}return}a.key!=="Escape"||a.defaultPrevented||c[c.length-1]?.dismissOnBackdrop!==!1&&(a.preventDefault(),r())}};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,p)=>p!==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 n=(t.state&&t.state.stack||[]).length,r=t.__prevStackLen||0;if(n!==r)if(t.__prevStackLen=n,t.__modalOpeners=t.__modalOpeners||[],n>r)t.__modalOpeners[n]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[n]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let o=X$(t);if(!o)return;let i=Y$(o)[0]||o.querySelector&&o.querySelector('[role="dialog"]')||o;try{i.focus&&i.focus()}catch{}});else{let o=null;for(let s=r;s>n;s--)t.__modalOpeners[s]&&(o=o||t.__modalOpeners[s]),t.__modalOpeners[s]=null;if(o&&typeof o.focus=="function"&&o.isConnected!==!1)try{o.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 Fm={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=ot(t)?.id;return e?"modal-title-"+e:null}},width:t=>ot(t)?.width||"H",maxWidth:t=>ot(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>ot(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=>ot(t)?.template!=="confirm"},AlertTemplate:{hide:t=>ot(t)?.template!=="alert"},PromptTemplate:{hide:t=>ot(t)?.template!=="prompt"},CustomTemplate:{hide:t=>ot(t)?.template!=="custom"}}};var rc=(t,e,n)=>ot(t)?.[e]||n,pW=t=>{let e=ot(t)?.icon;return e===null||e===!1},jm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>rc(t,"title","Are you sure?"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>pW(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>rc(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>rc(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>rc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] confirm.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:t=>rc(t,"confirmTheme","primary"),text:t=>rc(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var Wu=(t,e,n)=>ot(t)?.[e]||n,Bm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Wu(t,"title","Notice"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>Wu(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Wu(t,"message",""),P:{tag:"p",margin:"0",text:t=>Wu(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>Wu(t,"okText","OK"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var oc=(t,e,n)=>ot(t)?.[e]||n,Um={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=ot(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},onUpdate:(t,e)=>{let n=ot(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>oc(t,"title","Enter a value"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!oc(t,"message",""),P:{tag:"p",margin:"0",text:t=>oc(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>oc(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let r=ot(e),o=e.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>oc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] prompt.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>oc(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=ot(e),o=e.parent.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}}}};var Vm={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>ot(t)?.title||"",hide:t=>!ot(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=ot(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=W(()=>{let n=ot(t),r=n?.content||null,o=n?.id||null;if(!r){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in Er)i in s.functions||(s.functions[i]=Er[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var J$={extends:"Button",theme:"tertiary"};var mE={ModalRoot:Nm,ModalLayer:Fm,ConfirmTemplate:jm,AlertTemplate:Bm,PromptTemplate:Um,CustomTemplate:Vm,"smbls.CancelButton":J$};var CE={};$(CE,{components:()=>kE,functions:()=>EE});var vE={};$(vE,{Dropdown:()=>Gm,DropdownList:()=>Ym,DropdownParent:()=>Xm,DropdownParentFocus:()=>Jm,DropdownRoot:()=>Km,DropdownSiblingFocus:()=>Zm,DropdownTrigger:()=>qm,dropdownComponents:()=>kE});var Z$=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),hW=(t,e,n,r)=>{let o=Z$(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},gW=(t,e,n,r,o)=>{let s=Z$(e,r,o),i=t==="top"||t==="bottom"?n.height+8:n.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 _E=(t,e,n)=>{let r;return t==="bottom"?r=n-e.bottom-16:t==="top"?r=e.top-16:r=n-16,Math.max(40,Math.floor(r))},Hm=(t,e,n)=>Math.max(e,Math.min(n,t)),Ar=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:_E("center",null,g)}}let r=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(n==="center"){let g=_E("center",t,o),h=Math.min(s.height,g),m=Hm((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=Hm((o-h)/2,8,Math.max(8,o-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=hW(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=gW(i,t,s,r,o)}let c=_E(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,r-s.width-8),p=Math.max(8,o-l-8);return f=Hm(f,8,d),u=Hm(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},sc=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 vo={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},mW=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}},wE=t=>t?.getRoot?.()?.DropdownRoot||null,yW=0,bW=()=>`dropdown_${++yW}_${Date.now().toString(36)}`;function zm(t={}){let e=wE(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 n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||mW(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||bW(),i=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),a={id:o,content:t.content||null,anchor:r,placement:t.placement||vo.placement,trigger:t.trigger||vo.trigger,offset:t.offset??vo.offset,minWidth:t.minWidth||vo.minWidth,maxWidth:t.maxWidth||vo.maxWidth,maxHeight:t.maxHeight||vo.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:i},c=e.state?.layer;if(c?.onClose)try{c.onClose(c)}catch(l){console.warn("[dropdown] prev onClose threw:",l)}if(e.state.update({layer:a}),typeof a.onOpen=="function")try{a.onOpen(a)}catch(l){console.warn("[dropdown] onOpen threw:",l)}return o}function Wm(t){let e=wE(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function qs(t){let e=wE(this);if(!e)return;let n=e.state?.layer;if(!n)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=n.onClose,s=n.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(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var SE=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},Q$=t=>{let e=t.getBoundingClientRect();return{width:e.width,height:Math.max(e.height,t.scrollHeight||0)}},_W=`
93
94
  @keyframes smbls-dropdown-fade-in {
94
95
  from { opacity: 0; transform: var(--smbls-dropdown-from, translateY(-6px)) scale(0.98); }
95
96
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
@@ -156,21 +157,21 @@ ${a}`}var wv=null;function Xg(t){wv=t}var pn={structuralHash:Kg,deepEqual:Gg,mer
156
157
  [data-smbls-dropdown="panel"]:not([data-smbls-shadowed]) {
157
158
  box-shadow: none !important;
158
159
  }
159
- `,JH=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=ZH,document.head.appendChild(t)},o2=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},QH=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},tz=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},ez=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],s2=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of ez){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},nz='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',rz=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(nz)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},gm={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(JH(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),Ls.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}Ls.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},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 n=t._lastSize||{width:280,height:200};return br(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return br(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Ha(br(e.anchor,n,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 n=t._lastSize||{width:280,height:200};return Iv(e,br(e.anchor,n,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||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=z(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,s2(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=QH(t.content)),o2(t,n),s2(t,n),tz(t),n.focusIn&&rz(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;o2(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=r2(t.node);t._lastSize=i;let a=br(s.anchor,i,s.placement);t.node.style.maxHeight=Iv(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Ha(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 n=r2(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let s=br(e.anchor,n,e.placement);t.node.style.maxHeight=Iv(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Ha(s.side))}}}};var Mv=t=>{let r=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(r&&t.dropdownId&&r.id===t.dropdownId){t.call("closeDropdown");return}let o={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 s in o)o[s]===void 0&&delete o[s];t.call("openDropdown",o)},mm={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),Mv(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&Mv(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>Mv(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var ym={extends:"smbls.Dropdown"},bm={extends:"smbls.DropdownList"},_m={extends:"smbls.DropdownParent"},wm={extends:"smbls.DropdownParentFocus"},Sm={extends:"smbls.DropdownSiblingFocus"};var $v={DropdownRoot:gm,DropdownTrigger:mm,Dropdown:ym,DropdownList:bm,DropdownParent:_m,DropdownParentFocus:wm,DropdownSiblingFocus:Sm};var jv={};F(jv,{DROPDOWN_DEFAULTS:()=>uo,closeDropdown:()=>Ls,computePosition:()=>br,dropdownFunctions:()=>Fv,fadeInTransform:()=>Ha,openDropdown:()=>pm,setDropdownInert:()=>hm});var Fv={openDropdown:pm,closeDropdown:Ls,setDropdownInert:hm};var Hv={};F(Hv,{components:()=>S2,functions:()=>x2});var oz=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),sz=(t,e,n,r,o)=>{let s=oz(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.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},i2=(t,e,n)=>Math.max(e,Math.min(n,t)),a2=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=sz(n,t,e,r,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=i2(i,6,r-e.width-6),a=i2(a,6,o-e.height-6),{left:i,top:a,side:s}},c2=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 xm={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},iz=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}},l2=t=>t?.getRoot?.()?.TooltipRoot||null,f2=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},u2=(t,e,n=0)=>{let r=f2(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>u2(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},az=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},cz=0,lz=()=>`tooltip_${++cz}_${Date.now().toString(36)}`;function d2(t={}){let e=l2(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 n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||iz(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||lz(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||xm.placement,theme:t.theme||xm.theme,open:!0,size:null};return e.state.update({tip:s}),az(()=>u2(e,o)),o}function p2(t){let e=l2(this);if(!e)return;let n=f2(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var Uv=t=>{let e=t.tip;return e?.anchor?a2(e.anchor,e.size||{width:0,height:0},e.placement):null},km=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},h2={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=Uv(t);return e?e.left+"px":"-9999px"},top:t=>{let e=Uv(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||xm.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>km(t)?"1":"0",visibility:t=>km(t)?"visible":"hidden",transform:t=>{if(km(t))return"none";let e=Uv(t);return c2(e?e.side:"bottom")},transition:t=>{let e=km(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var Vv=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},fz=t=>{t.tooltipText&&(Vv(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},g2=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,fz(t)},t.tooltipDelay??250))},m2=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))},y2={onMouseenter:(t,e)=>g2(e),onMouseleave:(t,e)=>m2(e),onFocus:(t,e)=>g2(e),onBlur:(t,e)=>m2(e),onMouseover:(t,e)=>Vv(e),onFocusin:(t,e)=>Vv(e)};var b2={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)}},_2={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]},w2={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".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 S2={TooltipRoot:h2,TooltipTrigger:y2,Tooltip:b2,TooltipHidden:_2,TooltipParent:w2};var x2={openTooltip:d2,closeTooltip:p2};var Au={};F(Au,{LEVELS:()=>ku,analyzePlugin:()=>vm,attachBrowserListeners:()=>Lm,attachNetworkListeners:()=>Eu,classifyEvent:()=>Xv,createAnalyzeState:()=>D2,createBeaconSink:()=>Qv,createConsoleSink:()=>Zv,createDedupe:()=>Kv,createEnrich:()=>Wv,createMemorySink:()=>Jv,createPipeline:()=>Tm,createRedact:()=>Cm,createRemoteSink:()=>Rm,createSample:()=>Gv,createSummarize:()=>qv,default:()=>vm,emitFetchEvent:()=>R2,makeEvent:()=>ot,meetsLevel:()=>Em,normalizeLevel:()=>vu,resolveSinks:()=>Dm,summarizeElement:()=>Is});var uz=0,dz=()=>`${Date.now().toString(36)}-${(uz++).toString(36)}`,ot=(t,e,n={})=>({id:dz(),ts:Date.now(),type:t,level:e,...n}),pz=t=>{let e=[],n=t,r=0;for(;n&&r<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,r++;return e.join(" > ")},Is=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:pz(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var za=t=>t?.context?.analyze,hz={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"}},gz=(t,{category:e,type:n,level:r})=>o=>{let s=za(o);!s||!s.shouldCapture(e)||s.emit(ot(n,r,{hook:t,element:Is(o)}))},k2=t=>(e,n)=>{let r=za(e);!r||!r.shouldCapture("state")||r.emit(ot("state","debug",{hook:t,element:Is(e),changedKeys:n?.changedKeys||null}))},vm={name:"analyze",error(t,e){let n=za(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(ot("error","error",{hook:e?.hook||"error",element:Is(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=za(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(ot("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=za(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=za(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(ot("update","debug",{hook:"update",element:Is(t),durationMs:n}))},beforeStateUpdate:k2("beforeStateUpdate"),stateUpdate:k2("stateUpdate")};for(let[t,e]of Object.entries(hz))vm[t]=gz(t,e);M();var ku={error:0,warn:1,info:2,debug:3,trace:4};var Em=(t,e)=>{let n=ku[t],r=ku[e];return n==null||r==null?!0:n<=r},vu=t=>ku[t]!=null?t:"warn";M();var Am=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var mz=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},yz=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,r=String(t);for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},zv=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>zv(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(mz(s,e)||Am.test(s)){let a=yz(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=zv(t[s],e,n,r+1);return o},Cm=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return r=>{if(!r)return r;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=r,h=zv(g,n,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var Wv=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,r=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=T,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:r,route:i},meta:{ua:n,viewport:c}}}},qv=()=>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},Kv=(t=1e3,e=500)=>{let n=new Map;return r=>{if(!r)return r;let o=`${r.type}:${r.level}:${r.message||""}:${r.error?.message||""}`,s=n.get(o),i=r.ts||Date.now();if(s&&i-s<t)return null;if(n.set(o,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return r}},Gv=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},v2={redact:t=>Cm(t.config.redact||[],t.config.maskStrategy),enrich:t=>Wv(t),summarize:()=>qv(),dedupe:t=>Kv(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Gv(t.config.sample||{})},bz=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=v2[t];return n?n(e):null}return null},Tm=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],r=n.findIndex(s=>s==="redact");r>=0&&n.splice(r,1);let o=[];e.redact!==!1&&o.push(v2.redact(t));for(let s of n){let i=bz(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,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};M();M();var Om=typeof T<"u"&&typeof T.document<"u",_z=5e3,wz=50,Sz=3,xz=1500,kz=1e3,Xv=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",vz=t=>{try{return JSON.stringify(t)}catch{return null}},Ez=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Az=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},Cz=()=>{if(!Om)return null;try{let t=T.document?.documentElement?.getAttribute("data-theme")||null,e=typeof T.matchMedia=="function"?T.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}},Tz=()=>{if(!Om)return null;let t=T.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:T.document?.referrer||null,title:T.document?.title||null,ua:e?.userAgent||null,browser:Az(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:Ez(),viewport:T.innerWidth?{w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:Cz()}},Rm=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,r=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)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:Xv,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:_z,y=t.maxBatch||wz,_=t.maxRetries!=null?t.maxRetries:Sz,S=t.backoffMs||xz,v=t.queueLimit||kz,x=t.sampleRate!=null?t.sampleRate:1,w=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,b=t.sessionId||w(),k=[],C=[],D=null,R=null,$=()=>{D||!k.length||(D=setTimeout(X,m))},N=q=>{if(R)return;let G=S*Math.pow(2,Math.max(0,q-1));R=setTimeout(()=>{if(R=null,!C.length)return;let nt=C.shift();et(nt.envelope,nt.attempt)},G)},B=(q,G=!1)=>{let nt=u?Yv(u):null,J={id:b,sentAt:Date.now()};G&&(J.endedAt=Date.now());let ft={v:1,session:J,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:Tz(),user:nt?.user||null,traits:nt?.traits||null,tags:nt?.tags||null,events:q};if((h?Yv(h)===!0:g)&&(ft.app.debug=!0),p)try{return p(ft)||null}catch{return ft}return ft},et=async(q,G=1)=>{if(q)try{let nt=!0;if(n){let J=await n(q);nt=J!==!1&&J?.ok!==!1}else nt=await Oz(e,q,{apiKey:o,getAuth:f});!nt&&G<_&&(C.push({envelope:q,attempt:G+1}),N(G+1))}catch{G<_&&(C.push({envelope:q,attempt:G+1}),N(G+1))}},X=(q=!1,G=!1)=>{if(D&&(clearTimeout(D),D=null),!k.length&&!G)return;let nt=k;k=[];let J=B(nt,G);if(J){if(q&&Om){if(typeof r=="function"&&Yv(()=>r(J)))return;if(navigator.sendBeacon&&e){let ft=vz(J);if(ft)try{navigator.sendBeacon(e,new T.Blob([ft],{type:"application/json"}));return}catch{}}}et(J)}},st=!1,Dt=()=>{st||(st=!0,X(!0,!0))};Om&&(T.addEventListener("pagehide",Dt,{passive:!0}),T.addEventListener("beforeunload",Dt,{passive:!0}),T.addEventListener("visibilitychange",()=>{T.document.visibilityState==="hidden"&&X(!0)},{passive:!0}));let Lt=q=>{if(!q||x<1&&Math.random()>x)return;st&&(st=!1);let G={...q,log_type:d(q)};k.push(G),k.length>v&&(k=k.slice(-v)),k.length>=y?X():$()},it=q=>(X(!1,!0),b=q||w(),st=!1,Lt.sessionId=b,b);return Lt.flush=()=>X(!1),Lt.endSession=Dt,Lt.startNewSession=it,Lt.sessionId=b,Lt},Yv=t=>{try{return t()}catch{return null}},Oz=async(t,e,{apiKey:n,getAuth:r})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(o["X-Analyze-Key"]=n),r)try{let s=await r();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 Rz={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},Pz="\x1B[0m",Pm=typeof T<"u"&&typeof T.document<"u",Zv=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),r=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?r:o,a=`[analyze:${s.type}]`;if(Pm)i(a,s);else{let c=Rz[s.level]||"";i(`${c}${a}${Pz}`,s)}}},Jv=(t,e={})=>{let n=e.max||t.config.cache?.max||500,r=new Array(n),o=0,s=0,i=a=>{r[o]=a,o=(o+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+n)%n;for(let l=0;l<s;l++)a[l]=r[(c+l)%n];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},Qv=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,r=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=Pm?new T.Blob([c],{type:"application/json"}):c;if(Pm&&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(()=>{})};Pm&&(T.addEventListener("pagehide",i,{passive:!0}),T.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=r?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},E2={console:Zv,memory:Jv,beacon:Qv,remote:Rm},A2=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},Dm=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let r of e)if(typeof r=="function")n.push(r);else if(typeof r=="string"){let o=E2[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?A2(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=E2[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?A2(t,r):r))}return n};M();var Dz=typeof T<"u"&&typeof T.document<"u",Lz=new Set(["password","hidden"]),C2=(t,e)=>{let n=0,r=null,o=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(o=s,r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&(t(...o),o=null)},e-(i-n))))}},tE="__analyzeKeyPath",Wa=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[tE])return e[tE];let n=[],r=e,o=0,s=null;for(;r&&o<64;){if(r.getAttribute){let a=r.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}r=r.parentNode,o++}let i;if(n.length)i={selector:null,key:s,path:n.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[tE]=i}catch{}return i},Iz=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,r=String(t||"");for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},Mz=t=>!!(!t||t.tagName==="INPUT"&&Lz.has(t.type)||Am.test(t.name||"")||Am.test(t.id||"")||t.dataset?.analyze==="skip"),Lm=t=>{if(!Dz)return;let e=t.config.capture,n=t.config.throttle,r=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),r.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(T,"error",s=>{t.emit(ot("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(T,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(ot("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(T,"click",i=>{t.emit(ot("pointer","info",{hook:"click",target:Wa(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:T2(i)}))},{passive:!0,capture:!0}),o(T,"dblclick",i=>{t.emit(ot("pointer","info",{hook:"dblclick",target:Wa(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(T,"contextmenu",i=>{t.emit(ot("pointer","info",{hook:"contextmenu",target:Wa(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=C2(i=>{t.emit(ot("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(T,"pointermove",s,{passive:!0})}if(e.keyboard&&o(T,"keydown",s=>{t.emit(ot("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:T2(s),target:Wa(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=Mz(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=Iz(a.value,t.config.maskStrategy)),t.emit(ot("forms","info",{hook:i.type,target:Wa(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(T,"input",s,{passive:!0,capture:!0}),o(T,"change",s,{passive:!0,capture:!0}),o(T,"submit",i=>{t.emit(ot("forms","info",{hook:"submit",target:Wa(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=C2(()=>{t.emit(ot("scroll","trace",{hook:"scroll",x:T.scrollX,y:T.scrollY}))},n.scroll);o(T,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Nc(()=>{t.emit(ot("viewport","info",{hook:"resize",w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}))},n.resize);o(T,"resize",s,{passive:!0}),o(T,"orientationchange",()=>{t.emit(ot("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(T.document,"visibilitychange",()=>{t.emit(ot("viewport","info",{hook:"visibilitychange",hidden:T.document.hidden}))},{passive:!0}),t.emit(ot("viewport","info",{hook:"initial",w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(ot("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(O2)}))}catch{}return i.apply(console,a)},r.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(ot("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{}r.push(()=>s.disconnect())}catch{}},T2=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),$z=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=O2(t.cause)),e},O2=t=>{if(t==null)return t;if(t instanceof Error)return $z(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};M();var Nz=typeof T<"u"&&typeof T.document<"u",R2=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(ot("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},Eu=t=>{if(Nz&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof T.fetch=="function"){let e=T.fetch.bind(T),n=function(r,o){if(o?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(r,o);let s=typeof r=="string"?r:r&&r.url||"",i=(o?.method||typeof r=="object"&&r?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(ot("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(r,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(ot("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(ot("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};T.fetch=n,t.__teardown.push(()=>{T.fetch=e})}if(typeof T.XMLHttpRequest=="function"){let e=T.XMLHttpRequest,n=e.prototype.open,r=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return r.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(ot("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(ot("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(ot("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),r.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=r})}}};var Fz={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},jz={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Bz={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},Uz={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Vz=t=>{let e={...Fz,...t};return e.replay&&Object.assign(e,jz),e.telemetry&&Object.assign(e,Bz),e.remote&&Object.assign(e,Uz),Object.assign(e,t),e},Hz=64,zz=()=>{if(typeof T>"u"||!T.location)return null;try{let e=new URLSearchParams(T.location.search).get("analyze");return e||null}catch{return null}},D2=(t={})=>{let e=t===!0?{}:{...t};e.capture=Vz(e.capture||{});let n=zz();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=vu(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 r={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{r.__pipeline||(r.__pipeline=Tm(r),r.__sinks=Dm(r))};return r.shouldCapture=s=>r.config.enabled===!1?!1:!!r.config.capture[s],r.emit=s=>{if(s&&r.config.enabled!==!1&&!r.__paused&&Em(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<Hz&&r.__preBuffer.push(s);return}o(),P2(r,s)}},r.activate=s=>{if(r.context==null&&(r.context=s||null),r.__ready)return;r.__ready=!0;let i=r.__preBuffer;if(r.__preBuffer=[],i.length){o();for(let a of i)P2(r,a)}try{Lm(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{Eu(r)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of r.__onActivate||[])try{a(r)}catch(c){console.error("[analyze] onActivate error:",c)}},r.pause=()=>{r.__paused=!0},r.resume=()=>{r.__paused=!1},r.setLevel=s=>{r.config.level=vu(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{Eu(r)}catch(a){console.error("[analyze] network attach error:",a)}},r.query=s=>r.__memory?r.__memory.query(s):[],r.snapshot=()=>r.__memory?r.__memory.snapshot():[],r.emitNetwork=s=>{if(!r.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";r.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})},r.flush=()=>{if(r.__sinks)for(let s of r.__sinks)typeof s.flush=="function"&&s.flush()},r.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(r.config.sinks)?r.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(r.__sinks)for(let c of r.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},r.replay=()=>({initialSnapshot:r.__initialSnapshot,events:r.snapshot()}),r.destroy=()=>{for(let s of r.__teardown)try{s()}catch{}r.__teardown=[],r.__ready=!1,r.__paused=!0},r.__onActivate=[],r.onActivate=s=>{r.__onActivate.push(s)},r},P2=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let r=Array.isArray(n)?n:[n];for(let o of r){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 cE={};F(cE,{shorthandPlugin:()=>Mm});var aE={};F(aE,{PRESERVE_VALUE_KEYS:()=>ee,SKIP_INLINE_KEYS:()=>po,abbrToProp:()=>te,decode:()=>N2,encode:()=>I2,expand:()=>$s,isComponentKey:()=>hn,isSelectorKey:()=>gn,parse:()=>Ns,parseFurther:()=>js,propToAbbr:()=>Je,shorten:()=>Cu,shorthandPlugin:()=>Mm,stringify:()=>Ms,stringifyFurther:()=>Fs});var Je={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"},te=Object.create(null);for(let t in Je)te[Je[t]]=t;var eE=Object.create(null);for(let t in Je){let e=Je[t];if(eE[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${eE[e]}"`);eE[e]=t}var ee=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),po=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function hn(t){return/^[A-Z]/.test(t)}function gn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function I2(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let r=t[n];if(typeof r=="function"||r!==null&&typeof r=="object"&&!Array.isArray(r)||r===void 0)continue;let o=Je[n]||n;if(r===!0)e.push(o);else if(r===!1)e.push("!"+o);else if(Array.isArray(r)){let s=r.map(i=>Im(i));e.push(o+":"+s.join(","))}else e.push(o+":"+Im(r))}return e.join(" ")}function Im(t){return String(t).replace(/ /g,"_")}function Cu(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Cu(n):n});let e={};for(let n in t){let r=t[n];if(hn(n)){e[n]=nE(r);continue}if(gn(n)){e[n]=nE(r);continue}let o=Je[n]||n;if(ee.has(n)||ee.has(o)){e[o]=r;continue}e[o]=nE(r)}return e}function nE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Cu(e):e}):typeof t=="object"?Cu(t):t}function Ms(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ms(r):r});let e={},n=[];for(let r in t){let o=t[r];if(hn(r)){e[r]=L2(o);continue}if(gn(r)){e[r]=L2(o);continue}let s=Je[r]||r;if(ee.has(r)||ee.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(po.has(r)||po.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"?Ms(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(Im).join(","));continue}if(typeof o=="object"){e[s]=Ms(o);continue}o===!0?n.push(s):o===!1?n.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:n.push(s+":"+Im(o))}return n.length&&(e.in=n.join(" ")),e}function L2(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ms(e):e}):typeof t=="object"?Ms(t):t}function N2(t){if(!t||typeof t!="string")return{};let e={},n=F2(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=te[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=te[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=te[s]||s;if(i.includes(",")){e[a]=i.split(",").map(M2);continue}e[a]=M2(i)}return e}function F2(t){return t.trim().split(/\s+/).filter(Boolean)}function M2(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function $2(t){return t.replace(/_/g," ")}function Wz(t){if(!t||typeof t!="string")return{};let e={},n=F2(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=te[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=te[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=te[s]||s;if(i.includes(",")){e[a]=i.split(",").map($2);continue}e[a]=$2(i)}return e}function $s(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?$s(n):n});let e={};for(let n in t){let r=t[n];if(hn(n)){e[n]=rE(r);continue}let o=te[n]||n;if(gn(n)&&o===n){e[n]=rE(r);continue}if(ee.has(o)||ee.has(n)){e[o]=r;continue}e[o]=rE(r)}return e}function rE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?$s(e):e}):typeof t=="object"?$s(t):t}function Ns(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ns(n):n});let e={};if(typeof t.in=="string"){let n=Wz(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(hn(n)){e[n]=oE(r);continue}let o=te[n]||n;if(gn(n)&&o===n){e[n]=oE(r);continue}if(ee.has(o)||ee.has(n)){e[o]=r;continue}e[o]=oE(r)}return e}function oE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ns(e):e}):typeof t=="object"?Ns(t):t}function j2(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function qz(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let r=t[n+1];if(r===","||r==="_"||r==="\\"){e+=r,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function Kz(t){let e=[],n="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){n+=t[r]+t[r+1],r+=2;continue}if(t[r]===","){e.push(n),n="",r++;continue}n+=t[r],r++}return e.push(n),e}function B2(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 Fs(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Fs(r):r});let e={},n=[];for(let r in t){let o=t[r];if(hn(r)){let i=U2(o);e[r]=B2(i)?i.in:i;continue}if(gn(r)){let i=U2(o);e[r]=B2(i)?i.in:i;continue}let s=Je[r]||r;if(ee.has(r)||ee.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(po.has(r)||po.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"?Fs(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(j2).join(","));continue}if(typeof o=="object"){e[s]=Fs(o);continue}if(o===!0){n.push(s);continue}if(o===!1){n.push("!"+s);continue}if(typeof o=="number"){n.push(s+":#"+o);continue}n.push(s+":"+j2(o))}return n.length&&(e.in=n.join(" ")),e}function U2(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Fs(e):e}):typeof t=="object"?Fs(t):t}function V2(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):qz(t)}function sE(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let r of n){if(r.startsWith("!")){let l=r.slice(1),f=te[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=te[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=te[s]||s,c=Kz(i);if(c.length>1){e[a]=c.map(V2);continue}e[a]=V2(i)}return e}function js(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?js(n):n});let e={};if(typeof t.in=="string"){let n=sE(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(hn(n)){typeof r=="string"?e[n]=sE(r):e[n]=iE(r);continue}let o=te[n]||n;if(gn(n)&&o===n){typeof r=="string"?e[n]=sE(r):e[n]=iE(r);continue}if(ee.has(o)||ee.has(n)){e[o]=r;continue}e[o]=iE(r)}return e}function iE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?js(e):e}):typeof t=="object"?js(t):t}var Gz={shorten:$s,stringify:Ns,stringifyFurther:js};function Yz(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>e(r));let n={};for(let r in t){let o=t[r];n[r]=o&&typeof o=="object"?e(o):o}return n}var Xz=["components","pages","snippets"],Mm={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=Gz[e===!0?"shorten":e];if(r){for(let o of Xz)t[o]&&(t[o]=Yz(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var Tu={};F(Tu,{Inspect:()=>$m,inspectPlugin:()=>Jz});M();function H2(t){return E(t)?t:I(t)?t.find(e=>E(e)):""}function lE(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&H2(t.extends),r=t.parent&&t.parent.childExtends&&H2(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function Nm(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=lE(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?Nm(t.parent):o&&(e[o]||n[o])?t:Nm(t.parent)}var Zz=(t,e,n)=>{let r=n.window||window;r.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},r.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}))}},$m={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Zz,onMousemove:(t,e,n)=>{let r=t.target.ref,o=Nm(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=lE(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(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let r=t.target.ref,o=Nm(r);if(!o)return;let s=lE(o);if(!s)return;let i=r.context.editor;if(i&&i.onInspect)return i.onInspect(s,r,r.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return r.context.socket?.emit&&r.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(A(e)){let{Content:n,...r}=e;for(let o in r)Fa[o]||(r[o].__ref||(r[o].__ref={}),r[o].__ref.__componentKey||(r[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,n)=>{let{area:r}=n,o=n.area&&n.parent.debugging,s;if(!o)s="display: none !important";else if(r){let{x:i,y:a,width:c,height:l}=r;s=`
160
+ `,wW=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=_W,document.head.appendChild(t)},t2=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},SW=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},xW=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},kW=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],e2=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of kW){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},vW='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',EW=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(vW)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Km={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(wW(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),qs.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}qs.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},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 n=t._lastSize||{width:280,height:200};return Ar(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Ar(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":sc(Ar(e.anchor,n,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 n=t._lastSize||{width:280,height:200};return SE(e,Ar(e.anchor,n,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||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=W(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,e2(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=SW(t.content)),t2(t,n),e2(t,n),xW(t),n.focusIn&&EW(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;t2(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=Q$(t.node);t._lastSize=i;let a=Ar(s.anchor,i,s.placement);t.node.style.maxHeight=SE(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",sc(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 n=Q$(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let s=Ar(e.anchor,n,e.placement);t.node.style.maxHeight=SE(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",sc(s.side))}}}};var xE=t=>{let r=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(r&&t.dropdownId&&r.id===t.dropdownId){t.call("closeDropdown");return}let o={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 s in o)o[s]===void 0&&delete o[s];t.call("openDropdown",o)},qm={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),xE(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&xE(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>xE(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Gm={extends:"smbls.Dropdown"},Ym={extends:"smbls.DropdownList"},Xm={extends:"smbls.DropdownParent"},Jm={extends:"smbls.DropdownParentFocus"},Zm={extends:"smbls.DropdownSiblingFocus"};var kE={DropdownRoot:Km,DropdownTrigger:qm,Dropdown:Gm,DropdownList:Ym,DropdownParent:Xm,DropdownParentFocus:Jm,DropdownSiblingFocus:Zm};var AE={};$(AE,{DROPDOWN_DEFAULTS:()=>vo,closeDropdown:()=>qs,computePosition:()=>Ar,dropdownFunctions:()=>EE,fadeInTransform:()=>sc,openDropdown:()=>zm,setDropdownInert:()=>Wm});var EE={openDropdown:zm,closeDropdown:qs,setDropdownInert:Wm};var RE={};$(RE,{components:()=>y2,functions:()=>b2});var AW=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),CW=(t,e,n,r,o)=>{let s=AW(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.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},n2=(t,e,n)=>Math.max(e,Math.min(n,t)),r2=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=CW(n,t,e,r,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=n2(i,6,r-e.width-6),a=n2(a,6,o-e.height-6),{left:i,top:a,side:s}},o2=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 Qm={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},TW=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}},s2=t=>t?.getRoot?.()?.TooltipRoot||null,i2=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},a2=(t,e,n=0)=>{let r=i2(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>a2(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},OW=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},RW=0,PW=()=>`tooltip_${++RW}_${Date.now().toString(36)}`;function c2(t={}){let e=s2(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 n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||TW(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||PW(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||Qm.placement,theme:t.theme||Qm.theme,open:!0,size:null};return e.state.update({tip:s}),OW(()=>a2(e,o)),o}function l2(t){let e=s2(this);if(!e)return;let n=i2(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var TE=t=>{let e=t.tip;return e?.anchor?r2(e.anchor,e.size||{width:0,height:0},e.placement):null},ty=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},f2={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=TE(t);return e?e.left+"px":"-9999px"},top:t=>{let e=TE(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Qm.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>ty(t)?"1":"0",visibility:t=>ty(t)?"visible":"hidden",transform:t=>{if(ty(t))return"none";let e=TE(t);return o2(e?e.side:"bottom")},transition:t=>{let e=ty(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var OE=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},DW=t=>{t.tooltipText&&(OE(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},u2=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,DW(t)},t.tooltipDelay??250))},d2=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))},p2={onMouseenter:(t,e)=>u2(e),onMouseleave:(t,e)=>d2(e),onFocus:(t,e)=>u2(e),onBlur:(t,e)=>d2(e),onMouseover:(t,e)=>OE(e),onFocusin:(t,e)=>OE(e)};var h2={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)}},g2={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]},m2={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".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 y2={TooltipRoot:f2,TooltipTrigger:p2,Tooltip:h2,TooltipHidden:g2,TooltipParent:m2};var b2={openTooltip:c2,closeTooltip:l2};var Yu={};$(Yu,{LEVELS:()=>Ku,analyzePlugin:()=>ey,attachBrowserListeners:()=>fy,attachNetworkListeners:()=>Gu,classifyEvent:()=>NE,createAnalyzeState:()=>T2,createBeaconSink:()=>BE,createConsoleSink:()=>FE,createDedupe:()=>IE,createEnrich:()=>DE,createMemorySink:()=>jE,createPipeline:()=>sy,createRedact:()=>oy,createRemoteSink:()=>ay,createSample:()=>ME,createSummarize:()=>LE,default:()=>ey,emitFetchEvent:()=>A2,makeEvent:()=>st,meetsLevel:()=>ny,normalizeLevel:()=>qu,resolveSinks:()=>ly,summarizeElement:()=>Gs});var LW=0,IW=()=>`${Date.now().toString(36)}-${(LW++).toString(36)}`,st=(t,e,n={})=>({id:IW(),ts:Date.now(),type:t,level:e,...n}),MW=t=>{let e=[],n=t,r=0;for(;n&&r<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,r++;return e.join(" > ")},Gs=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:MW(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var ic=t=>t?.context?.analyze,$W={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"}},NW=(t,{category:e,type:n,level:r})=>o=>{let s=ic(o);!s||!s.shouldCapture(e)||s.emit(st(n,r,{hook:t,element:Gs(o)}))},_2=t=>(e,n)=>{let r=ic(e);!r||!r.shouldCapture("state")||r.emit(st("state","debug",{hook:t,element:Gs(e),changedKeys:n?.changedKeys||null}))},ey={name:"analyze",error(t,e){let n=ic(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(st("error","error",{hook:e?.hook||"error",element:Gs(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=ic(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(st("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=ic(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=ic(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(st("update","debug",{hook:"update",element:Gs(t),durationMs:n}))},beforeStateUpdate:_2("beforeStateUpdate"),stateUpdate:_2("stateUpdate")};for(let[t,e]of Object.entries($W))ey[t]=NW(t,e);M();var Ku={error:0,warn:1,info:2,debug:3,trace:4};var ny=(t,e)=>{let n=Ku[t],r=Ku[e];return n==null||r==null?!0:n<=r},qu=t=>Ku[t]!=null?t:"warn";M();var ry=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var FW=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},jW=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,r=String(t);for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},PE=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>PE(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(FW(s,e)||ry.test(s)){let a=jW(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=PE(t[s],e,n,r+1);return o},oy=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return r=>{if(!r)return r;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=r,h=PE(g,n,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var DE=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,r=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=T,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:r,route:i},meta:{ua:n,viewport:c}}}},LE=()=>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},IE=(t=1e3,e=500)=>{let n=new Map;return r=>{if(!r)return r;let o=`${r.type}:${r.level}:${r.message||""}:${r.error?.message||""}`,s=n.get(o),i=r.ts||Date.now();if(s&&i-s<t)return null;if(n.set(o,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return r}},ME=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},w2={redact:t=>oy(t.config.redact||[],t.config.maskStrategy),enrich:t=>DE(t),summarize:()=>LE(),dedupe:t=>IE(t.config.cache?.dedupeWindowMs||1e3),sample:t=>ME(t.config.sample||{})},BW=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=w2[t];return n?n(e):null}return null},sy=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],r=n.findIndex(s=>s==="redact");r>=0&&n.splice(r,1);let o=[];e.redact!==!1&&o.push(w2.redact(t));for(let s of n){let i=BW(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,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};M();M();var iy=typeof T<"u"&&typeof T.document<"u",UW=5e3,VW=50,HW=3,zW=1500,WW=1e3,NE=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",KW=t=>{try{return JSON.stringify(t)}catch{return null}},qW=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},GW=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},YW=()=>{if(!iy)return null;try{let t=T.document?.documentElement?.getAttribute("data-theme")||null,e=typeof T.matchMedia=="function"?T.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}},XW=()=>{if(!iy)return null;let t=T.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:T.document?.referrer||null,title:T.document?.title||null,ua:e?.userAgent||null,browser:GW(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:qW(),viewport:T.innerWidth?{w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:YW()}},ay=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,r=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)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:NE,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:UW,y=t.maxBatch||VW,k=t.maxRetries!=null?t.maxRetries:HW,v=t.backoffMs||zW,S=t.queueLimit||WW,w=t.sampleRate!=null?t.sampleRate:1,_=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,b=t.sessionId||_(),x=[],C=[],P=null,R=null,j=()=>{P||!x.length||(P=setTimeout(Y,m))},F=K=>{if(R)return;let G=v*Math.pow(2,Math.max(0,K-1));R=setTimeout(()=>{if(R=null,!C.length)return;let nt=C.shift();et(nt.envelope,nt.attempt)},G)},U=(K,G=!1)=>{let nt=u?$E(u):null,Q={id:b,sentAt:Date.now()};G&&(Q.endedAt=Date.now());let ht={v:1,session:Q,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:XW(),user:nt?.user||null,traits:nt?.traits||null,tags:nt?.tags||null,events:K};if((h?$E(h)===!0:g)&&(ht.app.debug=!0),p)try{return p(ht)||null}catch{return ht}return ht},et=async(K,G=1)=>{if(K)try{let nt=!0;if(n){let Q=await n(K);nt=Q!==!1&&Q?.ok!==!1}else nt=await JW(e,K,{apiKey:o,getAuth:f});!nt&&G<k&&(C.push({envelope:K,attempt:G+1}),F(G+1))}catch{G<k&&(C.push({envelope:K,attempt:G+1}),F(G+1))}},Y=(K=!1,G=!1)=>{if(P&&(clearTimeout(P),P=null),!x.length&&!G)return;let nt=x;x=[];let Q=U(nt,G);if(Q){if(K&&iy){if(typeof r=="function"&&$E(()=>r(Q)))return;if(navigator.sendBeacon&&e){let ht=KW(Q);if(ht)try{navigator.sendBeacon(e,new T.Blob([ht],{type:"application/json"}));return}catch{}}}et(Q)}},rt=!1,_t=()=>{rt||(rt=!0,Y(!0,!0))};iy&&(T.addEventListener("pagehide",_t,{passive:!0}),T.addEventListener("beforeunload",_t,{passive:!0}),T.addEventListener("visibilitychange",()=>{T.document.visibilityState==="hidden"&&Y(!0)},{passive:!0}));let wt=K=>{if(!K||w<1&&Math.random()>w)return;rt&&(rt=!1);let G={...K,log_type:d(K)};x.push(G),x.length>S&&(x=x.slice(-S)),x.length>=y?Y():j()},it=K=>(Y(!1,!0),b=K||_(),rt=!1,wt.sessionId=b,b);return wt.flush=()=>Y(!1),wt.endSession=_t,wt.startNewSession=it,wt.sessionId=b,wt},$E=t=>{try{return t()}catch{return null}},JW=async(t,e,{apiKey:n,getAuth:r})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(o["X-Analyze-Key"]=n),r)try{let s=await r();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 ZW={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},QW="\x1B[0m",cy=typeof T<"u"&&typeof T.document<"u",FE=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),r=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?r:o,a=`[analyze:${s.type}]`;if(cy)i(a,s);else{let c=ZW[s.level]||"";i(`${c}${a}${QW}`,s)}}},jE=(t,e={})=>{let n=e.max||t.config.cache?.max||500,r=new Array(n),o=0,s=0,i=a=>{r[o]=a,o=(o+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+n)%n;for(let l=0;l<s;l++)a[l]=r[(c+l)%n];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},BE=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,r=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=cy?new T.Blob([c],{type:"application/json"}):c;if(cy&&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(()=>{})};cy&&(T.addEventListener("pagehide",i,{passive:!0}),T.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=r?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},S2={console:FE,memory:jE,beacon:BE,remote:ay},x2=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},ly=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let r of e)if(typeof r=="function")n.push(r);else if(typeof r=="string"){let o=S2[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?x2(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=S2[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?x2(t,r):r))}return n};M();var t8=typeof T<"u"&&typeof T.document<"u",e8=new Set(["password","hidden"]),k2=(t,e)=>{let n=0,r=null,o=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(o=s,r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&(t(...o),o=null)},e-(i-n))))}},UE="__analyzeKeyPath",ac=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[UE])return e[UE];let n=[],r=e,o=0,s=null;for(;r&&o<64;){if(r.getAttribute){let a=r.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}r=r.parentNode,o++}let i;if(n.length)i={selector:null,key:s,path:n.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[UE]=i}catch{}return i},n8=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,r=String(t||"");for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},r8=t=>!!(!t||t.tagName==="INPUT"&&e8.has(t.type)||ry.test(t.name||"")||ry.test(t.id||"")||t.dataset?.analyze==="skip"),fy=t=>{if(!t8)return;let e=t.config.capture,n=t.config.throttle,r=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),r.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(T,"error",s=>{t.emit(st("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(T,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(st("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(T,"click",i=>{t.emit(st("pointer","info",{hook:"click",target:ac(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:v2(i)}))},{passive:!0,capture:!0}),o(T,"dblclick",i=>{t.emit(st("pointer","info",{hook:"dblclick",target:ac(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(T,"contextmenu",i=>{t.emit(st("pointer","info",{hook:"contextmenu",target:ac(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=k2(i=>{t.emit(st("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(T,"pointermove",s,{passive:!0})}if(e.keyboard&&o(T,"keydown",s=>{t.emit(st("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:v2(s),target:ac(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=r8(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=n8(a.value,t.config.maskStrategy)),t.emit(st("forms","info",{hook:i.type,target:ac(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(T,"input",s,{passive:!0,capture:!0}),o(T,"change",s,{passive:!0,capture:!0}),o(T,"submit",i=>{t.emit(st("forms","info",{hook:"submit",target:ac(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=k2(()=>{t.emit(st("scroll","trace",{hook:"scroll",x:T.scrollX,y:T.scrollY}))},n.scroll);o(T,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=tl(()=>{t.emit(st("viewport","info",{hook:"resize",w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}))},n.resize);o(T,"resize",s,{passive:!0}),o(T,"orientationchange",()=>{t.emit(st("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(T.document,"visibilitychange",()=>{t.emit(st("viewport","info",{hook:"visibilitychange",hidden:T.document.hidden}))},{passive:!0}),t.emit(st("viewport","info",{hook:"initial",w:T.innerWidth,h:T.innerHeight,dpr:T.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(st("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(E2)}))}catch{}return i.apply(console,a)},r.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(st("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{}r.push(()=>s.disconnect())}catch{}},v2=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),o8=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=E2(t.cause)),e},E2=t=>{if(t==null)return t;if(t instanceof Error)return o8(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};M();var s8=typeof T<"u"&&typeof T.document<"u",A2=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(st("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},Gu=t=>{if(s8&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof T.fetch=="function"){let e=T.fetch.bind(T),n=function(r,o){if(o?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(r,o);let s=typeof r=="string"?r:r&&r.url||"",i=(o?.method||typeof r=="object"&&r?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(st("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(r,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(st("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(st("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};T.fetch=n,t.__teardown.push(()=>{T.fetch=e})}if(typeof T.XMLHttpRequest=="function"){let e=T.XMLHttpRequest,n=e.prototype.open,r=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return r.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(st("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(st("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(st("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),r.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=r})}}};var i8={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},a8={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},c8={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},l8={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},f8=t=>{let e={...i8,...t};return e.replay&&Object.assign(e,a8),e.telemetry&&Object.assign(e,c8),e.remote&&Object.assign(e,l8),Object.assign(e,t),e},u8=64,d8=()=>{if(typeof T>"u"||!T.location)return null;try{let e=new URLSearchParams(T.location.search).get("analyze");return e||null}catch{return null}},T2=(t={})=>{let e=t===!0?{}:{...t};e.capture=f8(e.capture||{});let n=d8();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=qu(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 r={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{r.__pipeline||(r.__pipeline=sy(r),r.__sinks=ly(r))};return r.shouldCapture=s=>r.config.enabled===!1?!1:!!r.config.capture[s],r.emit=s=>{if(s&&r.config.enabled!==!1&&!r.__paused&&ny(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<u8&&r.__preBuffer.push(s);return}o(),C2(r,s)}},r.activate=s=>{if(r.context==null&&(r.context=s||null),r.__ready)return;r.__ready=!0;let i=r.__preBuffer;if(r.__preBuffer=[],i.length){o();for(let a of i)C2(r,a)}try{fy(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{Gu(r)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of r.__onActivate||[])try{a(r)}catch(c){console.error("[analyze] onActivate error:",c)}},r.pause=()=>{r.__paused=!0},r.resume=()=>{r.__paused=!1},r.setLevel=s=>{r.config.level=qu(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{Gu(r)}catch(a){console.error("[analyze] network attach error:",a)}},r.query=s=>r.__memory?r.__memory.query(s):[],r.snapshot=()=>r.__memory?r.__memory.snapshot():[],r.emitNetwork=s=>{if(!r.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";r.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})},r.flush=()=>{if(r.__sinks)for(let s of r.__sinks)typeof s.flush=="function"&&s.flush()},r.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(r.config.sinks)?r.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(r.__sinks)for(let c of r.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},r.replay=()=>({initialSnapshot:r.__initialSnapshot,events:r.snapshot()}),r.destroy=()=>{for(let s of r.__teardown)try{s()}catch{}r.__teardown=[],r.__ready=!1,r.__paused=!0},r.__onActivate=[],r.onActivate=s=>{r.__onActivate.push(s)},r},C2=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let r=Array.isArray(n)?n:[n];for(let o of r){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 YE={};$(YE,{shorthandPlugin:()=>dy});var GE={};$(GE,{PRESERVE_VALUE_KEYS:()=>te,SKIP_INLINE_KEYS:()=>Eo,abbrToProp:()=>Qt,decode:()=>L2,encode:()=>R2,expand:()=>Xs,isComponentKey:()=>_n,isSelectorKey:()=>wn,parse:()=>Js,parseFurther:()=>Qs,propToAbbr:()=>on,shorten:()=>Xu,shorthandPlugin:()=>dy,stringify:()=>Ys,stringifyFurther:()=>Zs});var on={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"},Qt=Object.create(null);for(let t in on)Qt[on[t]]=t;var VE=Object.create(null);for(let t in on){let e=on[t];if(VE[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${VE[e]}"`);VE[e]=t}var te=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Eo=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function _n(t){return/^[A-Z]/.test(t)}function wn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function R2(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let r=t[n];if(typeof r=="function"||r!==null&&typeof r=="object"&&!Array.isArray(r)||r===void 0)continue;let o=on[n]||n;if(r===!0)e.push(o);else if(r===!1)e.push("!"+o);else if(Array.isArray(r)){let s=r.map(i=>uy(i));e.push(o+":"+s.join(","))}else e.push(o+":"+uy(r))}return e.join(" ")}function uy(t){return String(t).replace(/ /g,"_")}function Xu(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Xu(n):n});let e={};for(let n in t){let r=t[n];if(_n(n)){e[n]=HE(r);continue}if(wn(n)){e[n]=HE(r);continue}let o=on[n]||n;if(te.has(n)||te.has(o)){e[o]=r;continue}e[o]=HE(r)}return e}function HE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Xu(e):e}):typeof t=="object"?Xu(t):t}function Ys(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ys(r):r});let e={},n=[];for(let r in t){let o=t[r];if(_n(r)){e[r]=O2(o);continue}if(wn(r)){e[r]=O2(o);continue}let s=on[r]||r;if(te.has(r)||te.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Eo.has(r)||Eo.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"?Ys(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(uy).join(","));continue}if(typeof o=="object"){e[s]=Ys(o);continue}o===!0?n.push(s):o===!1?n.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:n.push(s+":"+uy(o))}return n.length&&(e.in=n.join(" ")),e}function O2(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ys(e):e}):typeof t=="object"?Ys(t):t}function L2(t){if(!t||typeof t!="string")return{};let e={},n=I2(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=Qt[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=Qt[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Qt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(P2);continue}e[a]=P2(i)}return e}function I2(t){return t.trim().split(/\s+/).filter(Boolean)}function P2(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function D2(t){return t.replace(/_/g," ")}function p8(t){if(!t||typeof t!="string")return{};let e={},n=I2(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=Qt[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=Qt[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Qt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(D2);continue}e[a]=D2(i)}return e}function Xs(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Xs(n):n});let e={};for(let n in t){let r=t[n];if(_n(n)){e[n]=zE(r);continue}let o=Qt[n]||n;if(wn(n)&&o===n){e[n]=zE(r);continue}if(te.has(o)||te.has(n)){e[o]=r;continue}e[o]=zE(r)}return e}function zE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Xs(e):e}):typeof t=="object"?Xs(t):t}function Js(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Js(n):n});let e={};if(typeof t.in=="string"){let n=p8(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(_n(n)){e[n]=WE(r);continue}let o=Qt[n]||n;if(wn(n)&&o===n){e[n]=WE(r);continue}if(te.has(o)||te.has(n)){e[o]=r;continue}e[o]=WE(r)}return e}function WE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Js(e):e}):typeof t=="object"?Js(t):t}function M2(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function h8(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let r=t[n+1];if(r===","||r==="_"||r==="\\"){e+=r,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function g8(t){let e=[],n="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){n+=t[r]+t[r+1],r+=2;continue}if(t[r]===","){e.push(n),n="",r++;continue}n+=t[r],r++}return e.push(n),e}function $2(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 Zs(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Zs(r):r});let e={},n=[];for(let r in t){let o=t[r];if(_n(r)){let i=N2(o);e[r]=$2(i)?i.in:i;continue}if(wn(r)){let i=N2(o);e[r]=$2(i)?i.in:i;continue}let s=on[r]||r;if(te.has(r)||te.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Eo.has(r)||Eo.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"?Zs(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(M2).join(","));continue}if(typeof o=="object"){e[s]=Zs(o);continue}if(o===!0){n.push(s);continue}if(o===!1){n.push("!"+s);continue}if(typeof o=="number"){n.push(s+":#"+o);continue}n.push(s+":"+M2(o))}return n.length&&(e.in=n.join(" ")),e}function N2(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Zs(e):e}):typeof t=="object"?Zs(t):t}function F2(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):h8(t)}function KE(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let r of n){if(r.startsWith("!")){let l=r.slice(1),f=Qt[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=Qt[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Qt[s]||s,c=g8(i);if(c.length>1){e[a]=c.map(F2);continue}e[a]=F2(i)}return e}function Qs(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Qs(n):n});let e={};if(typeof t.in=="string"){let n=KE(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(_n(n)){typeof r=="string"?e[n]=KE(r):e[n]=qE(r);continue}let o=Qt[n]||n;if(wn(n)&&o===n){typeof r=="string"?e[n]=KE(r):e[n]=qE(r);continue}if(te.has(o)||te.has(n)){e[o]=r;continue}e[o]=qE(r)}return e}function qE(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Qs(e):e}):typeof t=="object"?Qs(t):t}var m8={shorten:Xs,stringify:Js,stringifyFurther:Qs};function y8(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>e(r));let n={};for(let r in t){let o=t[r];n[r]=o&&typeof o=="object"?e(o):o}return n}var b8=["components","pages","snippets"],dy={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=m8[e===!0?"shorten":e];if(r){for(let o of b8)t[o]&&(t[o]=y8(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var Ju={};$(Ju,{Inspect:()=>py,inspectPlugin:()=>w8});M();function j2(t){return E(t)?t:I(t)?t.find(e=>E(e)):""}function XE(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&j2(t.extends),r=t.parent&&t.parent.childExtends&&j2(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function hy(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=XE(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?hy(t.parent):o&&(e[o]||n[o])?t:hy(t.parent)}var _8=(t,e,n)=>{let r=n.window||window;r.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},r.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}))}},py={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:_8,onMousemove:(t,e,n)=>{let r=t.target.ref,o=hy(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=XE(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(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let r=t.target.ref,o=hy(r);if(!o)return;let s=XE(o);if(!s)return;let i=r.context.editor;if(i&&i.onInspect)return i.onInspect(s,r,r.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return r.context.socket?.emit&&r.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(A(e)){let{Content:n,...r}=e;for(let o in r)tc[o]||(r[o].__ref||(r[o].__ref={}),r[o].__ref.__componentKey||(r[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,n)=>{let{area:r}=n,o=n.area&&n.parent.debugging,s;if(!o)s="display: none !important";else if(r){let{x:i,y:a,width:c,height:l}=r;s=`
160
161
  display: block !important;
161
162
  top: ${a-6}px;
162
163
  left: ${i-6}px;
163
164
  width: ${c+12}px;
164
165
  height: ${l+12}px;
165
- `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},Jz={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push($m):t.extends?t.extends=[t.extends,$m]:t.extends=[$m]}};var VE={};F(VE,{DefaultSyncApp:()=>V8,FORBIDDEN_SEGMENTS:()=>Ou,Notifications:()=>Bm,SyncComponent:()=>UE,applyOpsToCtx:()=>Ru,connectToSocket:()=>U$,deletePath:()=>fE,isSafePath:()=>Fm,liveSyncTransport:()=>jm,notificationsPlugin:()=>q8,onOps:()=>hE,onSnapshot:()=>pE,seedRawDesignSystem:()=>qa,setPath:()=>uE,syncPlugin:()=>W8,wantsLiveSync:()=>Bs});M();M();var Ou=new Set(["__proto__","constructor","prototype"]),Fm=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Ou.has(t[e]))return!1;return!0},fE=(t,e)=>{!t||!Fm(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},uE=(t,e,n,r=!1)=>{!t||!Fm(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&r&&(o[s]={}),o[s];o[s]=n}},t)},Ru=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[r,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(n.add(o[0]),r){case"delete":fE(t,o);break;case"update":case"set":uE(t,o,s,!0);break;default:break}return n},W2=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},r=null;for(let o of Object.keys(e))Ou.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},Qz=()=>typeof T<"u"&&!!T&&!!T.__SYMBOLS_ENV__,t8=()=>{try{if(T.self!==T.top)return!0}catch{return!0}try{return new URLSearchParams(T.location.search).has("liveSync")}catch{return!1}},z2=Object.freeze({mode:null,baseUrl:null}),jm=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?Qz()&&!t8()?z2:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:z2},Bs=t=>jm(t).mode!==null,qa=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},q2=(t,e,n,r="designSystem")=>{for(let o in e){if(Ou.has(o))continue;let s=`${r}/${o}`;if(n.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]={}}q2(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},dE=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Ru(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return Dl(n,r,q2)};M();var pE=(t,e,n)=>{let r=!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(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(qa(n,c),r){let l=dE(n);l&&Vn(l)}}else Po(n[a],c);else n[a]=c}),r=!0,i&&(n.schema=i))}},hE=(t,e,n)=>(r={})=>{let{changes:o}=r;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=Ru(n,i);if(s.length&&a.add("designSystem"),a.has("designSystem")){let c=dE(n,s);c?Vn(c):n.__warnedNoRawDesignSystem||(n.__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=W2(e,n.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}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var e8={success:"green",error:"red",warning:"yellow"},K2=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}},Bm={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:e8[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,r)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,r)=>{delete r.notifications[n.key],n.update({animation:"fadeOutDown"}),r.onClose&&r.onClose(e,n,r)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var $8=!1,N8=()=>$8?"http://localhost:8080":"https://api.symbols.app",BE=null,F8=()=>(BE||(BE=Promise.resolve().then(()=>(j$(),F$)).then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),BE),j8=async t=>{try{let e=t||N8(),n=await T.fetch(`${e}/service-token`,{method:"GET"}),r;try{let o=await n.clone().json();if(o&&typeof o.token=="string")return o.token.trim();r=await n.text()}catch{r=await n.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(e){console.warn("[sync] Failed to fetch service-token",e)}},B$=(t,e,n,r)=>{t.on("snapshot",pE(e,n,r)),t.on("ops",hE(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&K2(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},B8=async(t,e,n,r,o)=>{let s=await j8(r);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await o;if(!c)return null;let l=c(r,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),B$(l,t,e,n),l},U8=async(t,e,n,r)=>{let o=await r;if(!o)return null;let s=o({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),B$(s,t,e,n),s.on("reload",()=>{typeof T<"u"&&T.location&&T.location.reload()}),s},U$=async(t,e,n)=>{let{mode:r,baseUrl:o}=jm(n);if(!r)return null;let s=F8();return r==="collab"?B8(t,e,n,o,s):r==="runner"?U8(t,e,n,s):null},UE={onInit:U$},V8={extends:[UE,Bm]},V$=t=>typeof t>"u",H8=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),z8=t=>t?.editor?.runtime==="runner",H$=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},W8={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!V$(n.liveSync)?n.liveSync:Bs(e))&&(H8(e)&&!z8(e)&&!e?.key||H$(t,UE))}},q8={name:"notifications",beforeCreate(t,e){if(!e)return;let n=V$(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&H$(t,Bm)}};kp();var zE={};F(zE,{fetchAsync:()=>Z8,fetchSync:()=>X8});M();var z$=T&&T.location&&typeof T.location.host=="string"?T.location.host:null,HE=z$!==null?z$.includes("dev."):Pr(),W$=HE?"http://localhost:8080/get":"https://api.symbols.app/get",K8={endpoint:W$},q$=async(t,e=K8)=>{let n=e.endpoint||W$,r=e.serviceRoute?I(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(n+"/?"+r,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(P(e.onError))return e.onError(s);console.error(s)}},G8=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await q$(t,n),o=HE||e.isDevelopment?ge(r):ge(r.releases[0]);n.serviceRoute?I(n.serviceRoute)?n.serviceRoute.forEach(s=>{ie(e[s],o[s.toLowerCase()])}):ie(e[n.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{ie(e[s],o[s.toLowerCase()])})}return e},Y8=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await q$(t,r),s=HE||e.isDevelopment?ge(o):ge(o.releases[0]);n(s)}},X8=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await G8(t,e)}catch(n){console.error(n)}},Z8=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&Y8(e,n,r||(o=>{let s=o.designSystem;A(s)&&n.utils.init(s),A(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var J8={windows:()=>Promise.resolve(Pv),dropdown:()=>Promise.resolve(Bv),tooltip:()=>Promise.resolve(Hv),analyze:()=>Promise.resolve(Au),shorthand:()=>Promise.resolve(cE),inspect:()=>Promise.resolve(Tu),sync:()=>Promise.resolve(VE),fetch:()=>Promise.resolve(Si),fetchOnCreate:()=>Promise.resolve(zE)},Uu={},K$={},Ft=t=>{if(Uu[t])return Uu[t];let e=J8[t];return e?(Uu[t]=e().then(n=>(K$[t]=n,n),n=>(delete Uu[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),Uu[t]):Promise.resolve(null)},ry=t=>K$[t]||null;var Vu=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 n of e.__teardowns)try{n()}catch(r){console.error("[smbls] destroy teardown error:",r)}e.__teardowns.length=0}try{Fn(t)}catch(n){console.error("[smbls] dispose error:",n)}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(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var ZE={};F(ZE,{Helmet:()=>hN,applyElementMetadata:()=>cy,applyMetadata:()=>rW,default:()=>wW,extractMetadata:()=>eW,generateHeadHtml:()=>_W,helmetPlugin:()=>ly,resolveMetadata:()=>sy});M();Rt();var Qe={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"}},vr=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}"]`},G$=t=>ge({v:t}).v,Y$=(t,e,n,r)=>{try{return St(t,e,n)}catch(o){console.warn(`[helmet] metadata factory for "${r}" threw; treating as unset:`,o&&o.message||o);return}},WE=Object.freeze({authored:!0}),sy=(t,e,n,r)=>{if(!t)return{};let o=t;E(o)&&se(o)&&(o=G$(o));let s=P(o),i=!s&&r?.authored===!0,a=s?Y$(o,e,n,"metadata"):A(o)?{...o}:{};if(!A(a))return{};for(let c in a){let l=a[c],f=i&&E(l)&&!se(l);E(l)&&se(l)&&(l=G$(l)),P(l)?l=Y$(l,e,n,c):E(l)&&se(l)&&(l=void 0),E(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,WE):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},Q8=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),tW=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(Q8(t[n]))return t[n]},eW=(t,e="/",n,r)=>{let o=t.pages||{},s=tW(o,e),i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let l=sy(t.app.metadata,n,r,WE);i={...i,...l}}let a=new Set;if(s){let l=s.metadata||s.helmet||{},f=sy(l,n,r,WE);for(let u in f)a.add(u);i={...i,...f},!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"))}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);let c=a.has("og:url")?i["og:url"]:a.has("url")?i.url:void 0;if(c)i["og:url"]=c;else if(i["og:url"]||i.url){let l=(i["og:url"]||i.url||"").replace(/\/$/,"");if(l&&e&&e!=="/"){let f=e.startsWith("/")?e:"/"+e;i["og:url"]=l+f}}return jo(i,t.files)},eN=(t,e)=>jo(sy(t,e,e.state),e.context?.files),nN=t=>t.context?.document||typeof document<"u"&&document,rN=t=>Object.prototype.hasOwnProperty.call(Qe,t),iy=new Map;for(let t in Qe){let e=vr(Qe[t]);iy.has(e)||iy.set(e,Qe[t])}var ay=t=>t.head||t.querySelector("head"),GE=(t,e)=>{let n=ay(t);return n?n.querySelector(e):null},qE=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),YE=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},XE=(t,e)=>{let n=ay(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},tc=(t,e,n,r)=>{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 Map;n.forEach((a,c)=>{i.has(a)||i.set(a,c)});for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=r(a,i.get(a));c&&(c.setAttribute(e,a),o.appendChild(c))}},oN=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>E(s)?s:JSON.stringify(s)),o=r.map(Tn);tc(t,"data-smbls-jsonld",o,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},sN=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Tn);tc(t,"data-smbls-style",r,(o,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},iN=t=>(t||[]).filter(e=>e&&(E(e)?e.trim():e.src)),aN=t=>E(t)?t:String(t.src),cN=(t,e)=>{let n=t.createElement("script");return E(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},nW=(t,e)=>{let n=iN(e),r=n.map(aN);tc(t,"data-smbls-script",r,(o,s)=>cN(t,n[s]))},lN=(t,e)=>{let n=(e||[]).filter(o=>A(o)),r=n.map(Fo);tc(t,"data-smbls-alternate",r,(o,s)=>{let i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},fN=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(jr);tc(t,"data-smbls-favicon",r,(o,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),A(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},uN=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";tc(t,"data-smbls-single-icon",n?[n]:[],o=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",o),r&&s.setAttribute("type",r),s})},rW=(t,e)=>{if(!(!A(t)||!e)){for(let n in t){let r=t[n];if(r==null||!rN(n))continue;let o=Qe[n],s=GE(e,vr(o))||XE(o,e);s&&YE(s,o,r)}Array.isArray(t.jsonLd)&&oN(e,t.jsonLd),Array.isArray(t.styles)&&sN(e,t.styles),Array.isArray(t.scripts)&&nW(e,t.scripts),Array.isArray(t.alternate)&&lN(e,t.alternate),Array.isArray(t.favicons)&&fN(e,t.favicons),(t.icon||t.favicon)&&uN(e,t.icon||t.favicon)}},X$=new WeakMap,KE=new WeakMap,dN=t=>{let e=t.location;return e&&E(e.pathname)?e.pathname:null},oW=t=>{let e=X$.get(t);return e||(e={doc:t,layers:[],servedPath:dN(t),originals:new Map,owned:new Set,lists:new Set},X$.set(t,e)),e},sW=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},Z$=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},iW=t=>{if(!A(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},aW=(t,e)=>{let n=KE.get(t);if(n)return n;let r=oW(e),o={element:t,values:null,signature:Z$(null),disposed:!1,set(i){if(o.disposed)return;let a=Z$(i);o.values=i,!(a!==null&&a===o.signature)&&(o.signature=a,Q$(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);if(i!==-1&&r.layers.splice(i,1),!iW(o.values))try{Q$(r)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=r.layers.length;for(let i=0;i<r.layers.length;i++)if(sW(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),KE.set(t,o),o},pN=(t,e,n,r)=>{let o=aW(t,e),s=z(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},cW=vr(Qe.title),lW=vr(Qe.description),fW=vr(Qe["og:title"]),uW=vr(Qe["og:description"]),dW=vr(Qe["twitter:title"]),pW=vr(Qe["twitter:description"]),J$=(t,e,n,r)=>{let o=t.get(e);if(!o||!o.value)return;let s=t.get(n);(!s||!s.value||s.rank<o.rank)&&t.set(n,o);let i=t.get(r);(!i||!i.value)&&t.set(r,o)},oy={jsonLd:oN,styles:sN,alternate:lN,favicons:fN,icon:uN},hW=Object.keys(oy).filter(t=>t!=="icon"),gW=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!A(s))continue;for(let a in s){let c=s[a];c==null||!rN(a)||e.set(vr(Qe[a]),{value:String(c),rank:o})}for(let a of hW)Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&r.push(...s.scripts)}return J$(e,cW,fW,dW),J$(e,lW,uW,pW),{tags:e,lists:n,scripts:r}},mW=(t,e,n)=>{let{doc:r,originals:o}=t,s=iy.get(e),i=GE(r,e),a=o.get(e);a||(a={value:i?qE(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=XE(s,r)),i&&(qE(i,s)!==n&&YE(i,s,n),t.owned.add(e))},yW=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=iy.get(e),o=GE(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&dN(n)===t.servedPath){let a=o||XE(r,n);a&&qE(a,r)!==s.value&&YE(a,r,s.value)}else o&&o.remove()},bW=(t,e)=>{let n=iN(e);if(!n.length)return;let r=ay(t),o=new Set;for(let s of r.querySelectorAll("[data-smbls-script]"))o.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=aN(s);if(o.has(i))continue;let a=cN(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},Q$=t=>{let{doc:e}=t;if(!ay(e))return;let{tags:n,lists:r,scripts:o}=gW(t.layers);for(let s of[...t.owned])n.has(s)||yW(t,s);for(let[s,{value:i}]of n)mW(t,s,i);for(let s in oy)r[s]!==void 0?(oy[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&oy[s](e,null);bW(e,o)},_W=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),r=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${W(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${W(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${W(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=W(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(A(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${W(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${W(jr(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${W(f)}" data-smbls-favicon="${W(jr(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(A(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${W(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${W(Fo(f))}">`)}});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="${W(f)}" content="${W(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${W(f)}" content="${W(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${W(o)}" content="${W(f)}">`)):e.push(`<meta property="${W(o)}" content="${W(s)}">`):l?e.push(`<meta name="${W(o)}" content="${W(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${W(o)}" content="${W(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${W(o)}" content="${W(s)}">`)}return r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...Oi(t)),e.join(`
166
- `)},hN={define:{metadata:(t,e)=>{cy(t,e,n=>{let r=e.state?.root;A(r)&&(r.$helmet=n)})}}},cy=(t,e,n)=>{let r=nN(e);r&&pN(e,r,()=>eN(t,e),n)},tN=t=>{let e=t.metadata;return e?eN(e,t):null},ly={name:"helmet",create(t){if(!t.metadata)return;let e=nN(t);e&&pN(t,e,()=>tN(t))},update(t){let e=KE.get(t);if(!e)return ly.create(t);e.disposed||e.set(tN(t))}},wW=hN;var gN=(t,e,n,r)=>{if(!t||!r?.fetch)return;let o=ry("fetch");if(o){o.executeFetch(t,e,n,r);return}Ft("fetch").then(s=>{s&&s.executeFetch(t,e,n,r)})},mN=(t,e)=>{t&&cy(t,e)},yN=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},r=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(r):await r(),n},ec={routes:t=>t,metadata:mN,fetch:gN,$router:yN},bN=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=mN),t.fetch!==!1&&(e.fetch=gN),t.router!==!1&&(e.$router=yN),e};var JE={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},fy={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},QE={...JE,router:fy},SW={state:{},pages:{},components:{},router:fy,define:ec},go=SW;M();M();var _N=(t,e)=>V(t.extends)?t.extends:[];M();var wN=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[o,s]of Pi(t,Di))r[o]||(r[o]=s);return r};var eA={};F(eA,{apiUrl:()=>tA,channelByApiUrl:()=>EW,channelNames:()=>kW,channels:()=>Ae,currentChannel:()=>mo,defaultChannel:()=>LW,deployTarget:()=>RW,isKnownChannel:()=>DW,mermaidUrl:()=>OW,normalizeOwnerSegment:()=>IW,normalizeProjectKey:()=>$W,normalizeProjectSlug:()=>MW,parseSymboLsHost:()=>NW,previewProjectUrl:()=>TW,previewUrl:()=>vN,resolveChannel:()=>Xs,screenshotCdnHost:()=>EN,screenshotCdnUrl:()=>PW,setChannel:()=>vW,shellUrl:()=>CW,socketUrl:()=>AW});var Ae={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 kW=Object.keys(Ae.channels),Er=t=>!!(t&&Ae.channels[t]),Xs=t=>Er(t)?Ae.channels[t]:Ae.channels[Ae.defaultChannel],vW=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Er(t)?t:null,nc=void 0)},nc,Hu=t=>typeof process<"u"&&process.env&&process.env[t]||null,mo=()=>{if(nc!==void 0)return nc;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=Hu("SYMBOLS_CHANNEL"),n=Hu("NODE_ENV");return nc=Er(t)&&t||Er(e)&&e||Er(n)&&n||Ae.defaultChannel,nc===Ae.defaultChannel&&!Er(t)&&!Er(e)&&!Er(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${Ae.defaultChannel}". Outbound URLs (shellUrl/apiUrl) will target production; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel.`),nc},SN=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],xN=t=>{let e=SN.indexOf(t);return e===-1?SN.length:e},EW=t=>{if(!t)return null;let e=Object.keys(Ae.channels).filter(n=>Ae.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>xN(n)-xN(r))[0]},tA=(t=mo())=>Hu("SYMBOLS_API_URL")||Xs(t).api,AW=(t=mo())=>Hu("SYMBOLS_SOCKET_URL")||Xs(t).socket,CW=(t=mo())=>Xs(t).shell||null,vN=(t=mo())=>Xs(t).preview||null,TW=({owner:t,key:e,env:n="production"}={},r=mo())=>{let o=vN(r);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!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},OW=({owner:t,key:e,env:n="production"}={},r=mo())=>{let o=Xs(r).mermaidApex;if(!o||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith("localhost")?"http":"https"}://${a}.${o}`},RW=(t=mo())=>Xs(t).deploy||{},EN=()=>Hu("SYMBOLS_SCREENSHOT_CDN")||Ae.screenshotCdn,PW=({owner:t,key:e,page:n="root",componentKey:r,env:o="production",width:s}={})=>{if(!t||!e)return null;let i=r?`component/${encodeURIComponent(r)}`:encodeURIComponent(String(n||"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://${EN()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},DW=Er,LW=Ae.defaultChannel,IW=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",MW=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",$W=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let r=typeof e.owner=="string"?e.owner.trim():"";return r&&n.startsWith(`${r}--`)?n=n.slice(r.length+2):!r&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},kN={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},NW=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=kN[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?kN[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let r=n[1],o=n[0];if(o.includes("--")){let[s,i]=o.split("--",2);return!s||!i?null:{projectKey:s,owner:r,env:i}}return{projectKey:o,owner:r,env:"production"}};M();var AN='meta[name="brender"]',FW=3e3,nA=t=>t.document||(typeof document<"u"?document:null),CN=(t,e)=>{let n=t.parent;return n&&n.nodeType===1?n:n&&n.node&&n.node.nodeType===1?n.node:e?e.body:null},TN=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=nA(t);if(!n||typeof n.querySelector!="function")return!1;let r=n.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute("data-brender")||n.querySelector(AN))return!0;let o=CN(t,n);for(let s=o&&o.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},ON=t=>{let e=nA(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},jW=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},BW=(t,e)=>{let n=Io(e,El,{warn:jW});return n?{map:A(n.value)?n.value:null,block:n.block}:t&&A(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},UW=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||A(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,VW=t=>{let e=A(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:FW},RN=(t,e,n)=>{if(t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__),n&&n.block&&n.block.parentNode&&n.block.remove(),e&&typeof e.querySelector=="function"){let r=e.querySelector(AN);r&&r.remove();let o=e.documentElement;o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")&&o.removeAttribute("data-brender")}},HW=()=>new Promise(t=>{if(typeof MessageChannel=="function"){let e=new MessageChannel;e.port1.onmessage=()=>{e.port1.close(),t()},e.port2.postMessage(null)}else setTimeout(t,0)}),zW=async(t,e)=>{let n=t.__firstNavigation;if(n&&typeof n.then=="function")try{await n}catch{}for(let r=0;r<20&&e.pending.size;r++){let o=ry("fetch"),s=o&&typeof o.whenRequestsIdle=="function"?o.whenRequestsIdle:null;if(s&&await s(),await HW(),!s||!(o.requestsInFlight()>0))return}},WW=["click","keydown"],qW=(t,e,n,r,o,s)=>{let i=!1,a=null,c=()=>f(),l=u=>{let d=u?"addEventListener":"removeEventListener";if(n&&typeof n[d]=="function")for(let p of WW)n[d](p,c,!0);e&&typeof e[d]=="function"&&e[d]("popstate",c)},f=()=>{if(i)return;i=!0,a!==null&&clearTimeout(a),l(!1),t.__hydration===r&&delete t.__hydration;let u=0;for(let d of r.pending)d.parentNode&&(d.remove(),u++);r.pending.clear(),r.pendingIn.clear(),s&&s.forEach(d=>{d.parentNode&&d.remove()}),e&&(e.__BRENDER_HYDRATION__={adopted:r.adopted,misses:r.misses,removed:u}),RN(e,n,o)};if(!r.pending.size)return f();a=setTimeout(f,VW(t)),l(!0),zW(t,r).then(f,f)},KW=(t,e,n,r,o,s,i,a,c,l)=>{if(!r||typeof r.querySelectorAll!="function")return null;let f=_=>{for(let S=_;S&&S!==r;S=S.parentNode)if(S.parentNode===r&&S.localName==="svg"&&S.id)return!0;return!1},u={};for(let _ of r.querySelectorAll("[data-br]")){let S=_.getAttribute("data-br");_.removeAttribute("data-br"),f(_)||(u[S]=_)}let d={},p=new Set,g=new Map,h=a.map;for(let _ in h){let S=h[_],v=u[S];if(!v||d[S])continue;d[S]=v,p.add(v);let x=v.parentNode;x&&g.set(x,(g.get(x)||0)+1)}let m={registry:h,nodes:d,claimed:new Set,pending:p,pendingIn:g,adopted:0,misses:0};o.__hydration=m;let y;try{y=t(e,n,o.key,l)}catch(_){console.error("[smbls] hydration failed, rendering fresh:",_),delete o.__hydration;for(let S of m.claimed)S.parentNode&&S.remove();return null}return qW(o,s,i,m,a,c),y},GW=(t,e,n,r,o,s,i,a,c,l)=>{if(c&&c.forEach(u=>{u.parentNode&&u.remove()}),r){let u=[];for(let d of r.childNodes){if(d.nodeType===1){let p=d.localName;if(p==="script"||p==="link"||p==="style"||p==="svg"&&d.id)continue}u.push(d)}u.forEach(d=>d.remove())}i&&typeof i.querySelectorAll=="function"&&i.querySelectorAll("[data-br]").forEach(u=>u.removeAttribute("data-br"));let f=t(e,n,o.key,l);return RN(s,i,a),f},PN=(t,e,n,r,o,s,i)=>{let a=nA(r),c=n&&n.nodeType?n:n&&n.node||CN(r,a),l=BW(o,a);if(r.prerendered=!0,UW(r,o,l)){let f=KW(t,e,n,c,r,o,a,l,s,i);if(f)return f}return GW(t,e,n,c,r,o,a,l,s,i)};M();var DN=t=>{let e={faces:0,links:0};if(!t)return e;for(let n in t){let r=t[n];if(!r||!r.fontFace)continue;let o=Array.isArray(r.fontFace)?r.fontFace:[r.fontFace];for(let s of o){if(LN(s)){let i=XW(s);i&&ZW(i)&&e.links++;continue}if(YW(s)){Et(s.trim()),e.faces++;continue}typeof s=="string"&&s.includes("font-family")&&(Et(`@font-face { ${s} }`),e.faces++)}}return e},LN=t=>typeof t=="string"&&t.trim().startsWith("@import"),YW=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),XW=t=>{if(!LN(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},ZW=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||cr();if(!n||!n.head)return null;let r="data-smbls-font",o=n.head.querySelectorAll(`link[rel="stylesheet"][${r}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(r)===t)return o[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(r,t),n.head.appendChild(s),s};var NN=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let r=t.window;return r&&r!==e&&typeof r.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=r||e,t.window},IN=(t="smbls")=>{let e={};for(let n in Ds)Object.prototype.hasOwnProperty.call(Ds,n)&&(vn(n)?e[`smbls.${n}`]=Ds[n]:e[n]=Ds[n]);return e},FN=t=>t.components?{...IN(),...t.components}:IN(),jN=t=>({...wu,...Ma,...zr,...t.utils,...t.snippets,...t.functions}),BN=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var UN=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,JW=3e3,QW=(t,e,n=r=>import(r))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(r[t])return Promise.resolve(r[t]);let o=()=>n(e),s=Promise.resolve().then(o).then(a=>(a&&!r[t]&&(r[t]=a),r[t]||null)).catch(()=>null);return new Promise(a=>{let c=setTimeout(()=>a(null),JW);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},MN={},iA=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=QW})=>{if(o||(o=Nr[s]||Ci(i)||"esmsh"),!t)return null;if(!No(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=Pr()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=an(d,p,o)+l;try{await Promise.race([Ti(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${o}:`,h),o!=="symbols")try{let m=an(d,p,"symbols")+l;await Promise.race([Ti(m,{document:n,type:"module"}),new Promise((y,_)=>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 p=t[d];if(!(e&&e[d])&&!MN[d]&&(MN[d]=!0,!Fr(d))){if($o(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}UN(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},$N=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,t7=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof Oe=="function"?Oe(t):Function.prototype.toString.call(t)}catch{return""}return""},e7=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let r=0;r<n.length;r++){let o=n[r];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=t7(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;$N.lastIndex=0;let l;for(;(l=$N.exec(c))!==null;)e.add(l[1])}}return e},n7=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let r=0;r<n.length;r++){let o;try{o=JSON.parse(n[r].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},r7=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},VN=(t,{syncRead:e=e7(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=n7(n)}={})=>{let o=t&&t.dependencies;if(!No(o))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&r7(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},o7=t=>import(t),rA={},s7=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},i7=(t,{importModule:e=o7}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)if(!(Fr(r)||$o(r))&&!UN(r)){if(!rA[r]){let o=()=>e(r);rA[r]=Promise.resolve().then(o).then(s=>(s7(r,s),s||null),()=>null)}n.push(rA[r])}return Promise.all(n)},a7=2e3,c7=3e3,HN=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=c7}={})=>t?new Promise(o=>{let s=()=>{i7(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:a7}):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,r)}else i()}):null,zN=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||Ci(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=r)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&Fr(a))return await u.require(a,c);if(!u.packages[a]){let d=Pr()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=an(a,p,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=an(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=an(a,"latest",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 h=an(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=Tt(n.packages,t):n.packages=t,n.require||(e.utils.require=await o(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},l7=/\s+/g,WN=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,f7=(t,e)=>{let n="";for(let r in t){let o=t[r];typeof o=="boolean"&&o?n+=` ${r}`:typeof o=="string"?n+=` ${o}`:typeof o=="function"&&(n+=` ${WN(o,e)}`)}return n},u7=(t,e,n)=>{if(!t)return;let{key:r}=e;t===!0&&(t=e.classlist={key:r}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=f7(t,e));let o=t.replace(l7," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},d7=()=>(t,e,n)=>{let r=WN(t,e);if(t){let{__ref:o}=e;o.__class.style=r}qN()(e.classlist,e,e.state,!0)},qN=()=>(t,e,n,r)=>{if(e.style&&!r)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=Ie(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&u7(i,e,e.node)}},p7=()=>({style:d7(),classlist:qN()}),h7=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],oA=new WeakSet,sA=!1,g7=t=>!!t&&typeof t=="object",KN=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||p7(),s=e.designSystem?dt(pt(e.designSystem),pt(iu),Pe):pt(iu),i={};for(let m of h7)e[m]!==void 0&&(i[m]=e[m]);let a,c=g7(n),f=c&&oA.has(n)&&!e.skipDesignSystemInit,u=!f&&!sA,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...QE,...i,...r};if(e.skipDesignSystemInit){if(a=O(t)||O(),a&&(a.__domDocument=n),a?.CSS_VARS){bt(a);try{Et({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&Et(Zg(a.CSS_MEDIA_VARS,d));let m=os(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&Et(m)}finally{mt()}}}else if(e.isolateDesignSystem&&!f){let m=oh();m.__domDocument=n,bt(m);try{a=Vn(s,{...p,config:m})}finally{mt()}}else if(u){let m=O();m&&(m.__domDocument=n),a=Vn(s,p),a&&a!==m&&(a.__domDocument=n),c&&oA.add(n),sA=!0}else{let m=Gl(t,s,{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.__domDocument=n,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}bt(m);try{a=Vn(m,p)}finally{mt()}c&&oA.add(n),sA=!0}let g=a?.CONFIG||a,h=g?.font;if(h){bt(g);try{DN(h)}finally{mt()}}return[a,o]},GN=(t,e)=>{let n={};e.state&&dt(n,e.state),t&&t.state&&dt(n,t.state);let r=e.polyglot;if(r?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(r.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||n.lang||r.defaultLang||"en";o&&o!==n.lang&&(n.lang=o);let i=new Set,a=new Set,c=(u,d)=>{if(!a.has(u)){if(!Do(e,u,n)){i.add(u);return}n[u]=d,a.add(u),En(e,u,d)}},l=r.translations[s];if(l&&typeof l=="object")for(let u in l)c(u,l[u]);let f=new Set(r.languages||[]);for(let u in r.translations)f.has(u)||c(u,r.translations[u]);i.size&&r.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 n.isRootState=!0,pt(n)},YN=(t,e)=>{A(t.routes)&&A(e.pages)&&Tt(t.routes,e.pages);let n=t.routes||e.pages||{},r=[];for(let o in n){if(o.charCodeAt(0)===47)continue;let i="/"+(o==="index"?"":o);Object.prototype.hasOwnProperty.call(n,i)?r.push(`${o} -> ${i}`):n[i]=n[o],delete n[o]}return r.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${r.length} explicitly declared route${r.length===1?"":"s"} over a same-named page key (${r.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.`),n},XN=t=>{Pl(t,t.sharedLibraries)};var aA={};F(aA,{default:()=>A7,getActiveLang:()=>yo,getLanguages:()=>qu,getLocalStateLang:()=>Zu,getPendingLang:()=>Wu,initPolyglot:()=>dy,loadTranslations:()=>Gu,polyglotPlugin:()=>oc,setLang:()=>Yu,translate:()=>Ku,upsertTranslation:()=>Xu});M();Rt();var m7="smbls_t_",y7="smbls_tv_",rc={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},zu={},ZN=new WeakMap,eF=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,nF=t=>{let e=ZN.get(t);return e||(e={seq:0,pending:nn(null),wake:null},ZN.set(t,e)),e},JN=(t,e,n)=>new Promise(r=>{let o=null,s=()=>{o!==null&&clearTimeout(o),o=null,t.wake===s&&(t.wake=null),r()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(o=setTimeout(s,n))}),QN=(t,e)=>!!(t?.translations&&t.translations[e]),b7=3e3,_7=2147483647,w7=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,_7):0:b7},S7=new RegExp("\\p{L}","gu"),x7=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(S7);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(r&&typeof r=="object"&&o<8)for(let s in r)n(r[s],o+1)};for(let r=0;r<t.length;r++)n(t[r],0);return Array.from(e).join("")},k7=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let o=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!o)return null;let s="1em "+o;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function yo(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return xl(n?.lang||t?.state?.lang,e)}function Wu(){let t=this?.context,e=eF(t,this?.state?.root||t?.state?.root);return e?nF(e).pending.get():null}function qu(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var uy=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),r=t;for(let o=0;o<n.length;o++){if(r==null)return;r=r[n[o]]}return r},tF=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=uy(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function Ku(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=tF(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=uy(l,t);if(f!==void 0)return f}}let a=(s?.root||n?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=uy(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=tF(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=uy(l,t);if(f!==void 0)return f}}return t}async function Gu(t){let e=this?.context,n=e?.polyglot,r=this?.state?.root||e?.state?.root;if(!n||!r)return;let o=n.storagePrefix||m7,s=n.storageVersionPrefix||(n.storagePrefix?n.storagePrefix.replace(/_$/,"v_"):y7);if(n.translations&&n.translations[t]&&!n.fetch||!n.fetch||n._fetchFailed?.[t])return;if(!r.translations?.[t]){let c=rc.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...r.translations||{}}};f.translations[t]=l,r.update&&r.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(n.storagePrefix||"smbls")+":"+t;if(zu[i])return zu[i];let a=this;return zu[i]=(async()=>{try{let c=n.fetch,l=parseInt(rc.get(s+t),10)||0,f,u,d;if(P(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(A(c)){let g=a.getDB||(()=>e.fetch),h=P(g)?await g.call(a):e.fetch;if(!h)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},_=await h.rpc({from:m,params:y});if(_.error)throw n._fetchFailed||(n._fetchFailed={}),n._fetchFailed[t]=!0,_.error;let S=_.data;if(!S||!S.changed)return;f=S.translations||{},u=S.version||0,d=!0}else return;if(!d||!f)return;rc.set(o+t,JSON.stringify(f)),u&&rc.set(s+t,String(u));let p={translations:{...r.translations||{}}};p.translations[t]=f,r.update&&r.update(p)}catch(c){if(n.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 zu[i]}})(),zu[i]}var v7=(t,e,n)=>{let r=t.__ref;if(!r||r.contentManaged||n==null||typeof n=="object")return;let o=r.__textNode;if(!o||o.parentNode!==e)return;let s=String(n);o.nodeValue!==s&&(o.nodeValue=s)};async function Yu(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!o)return;e?.persist!==!1&&rc.set(vi(r),t);let i=nF(eF(n,o)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(r?.fetch){let f=this.call("loadTranslations",t);if(!QN(o,t)){i.pending.set(t);let u=null;if(await JN(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!QN(o,t)&&!r.translations?.[t])return}}let l=w7(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=k7(s,x7(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await JN(i,f,l),!c()))return}i.pending.set(null),E7(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function E7(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>Jc(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&En(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c])){for(let f in l)n[c][f]=l[f];En(t,c,n[c])}}if(r&&s){let c=r.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{v7(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function Xu(t,e,n){let r=this?.context,o=r?.polyglot,s=this?.state?.root||r?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),o?.translations?.[e]&&(o.translations[e][t]=n),o?.fetch&&A(o.fetch)){let i=this.getDB||(()=>r.fetch),a=P(i)?await i.call(this):r.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function dy(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let o=rc.get(vi(e))||yo.call(this),s=t?.document||globalThis.document;s?.documentElement&&(s.documentElement.lang=o),n.update&&n.lang!==o&&n.update({lang:o}),e.fetch&&!(e.translations&&e.translations[o])&&await this.call("loadTranslations",o)}function Zu(t){try{let e=yo.call(this),n=this?.state;if(!n)return"";let r=t.lastIndexOf(".");if(r===-1)return n[t+e]??"";let o=t.substring(0,r).split("."),s=n;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(r+1)+e]??""}catch{return""}}var oc={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,dy.call(t))}},A7=oc;var Ju={polyglot:Ku,getLocalStateLang:Zu,getActiveLang:yo,getLang:yo,setLang:Yu,getPendingLang:Wu,getLanguages:qu,loadTranslations:Gu,upsertTranslation:Xu};var lA={};F(lA,{SYSTEM_METRICS:()=>Qu,capsizeHandler:()=>cA,capsizePlugin:()=>hy,computeCapsize:()=>rF,default:()=>C7,resolveFontSizePx:()=>oF,resolveMetrics:()=>sF});var Qu={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}},py=t=>parseFloat(t.toFixed(4)),rF=(t,e,n)=>{let{ascent:r,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=r+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(r-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${py(t/16)}rem`,lineHeight:`${py(f)}px`,capHeightTrim:`${py(-p)}em`,baselineTrim:`${py(-g)}em`}},oF=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:r}=n;if(r?.sequence){let s=String(t).toUpperCase(),i=r.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(n.typography?.browserDefault||16):o},sF=(t,e)=>{let r=e?.designSystem?.font_family||{};if(t){let s=r[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Qu[i])return Qu[i]}let o=r.default||Object.keys(r)[0];if(o){let s=r[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(Qu[a])return Qu[a]}}return null},cA=(t,e,n,r)=>{if(!t)return;let o=oF(e.fontSize,r);if(!o)return;let s=sF(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=rF(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},hy={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},C7=hy;var dA=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),pA=t=>cn(t)?t.library!==void 0?t.library:t.key??t.name:t,T7=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[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=pA(i);if(!dA(a))return i;let c=s(a);return c?cn(i)?{...i,library:c}:c:null}).filter(Boolean)},hA=new WeakMap,O7={lazy:!0,window:globalThis},iF=["components","pages","functions","methods","snippets"],R7=iF.filter(t=>t!=="methods"),fA=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let r=n.pop();if(!r||typeof r!="object"||e.has(r))continue;e.add(r);let o;try{o=Object.keys(r)}catch{continue}for(let s of o){let i;try{i=r[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},P7=(t,e)=>{if(Oo(e)||Oo(t))return"boot-revived";if(fA(t))return"local";if(e&&typeof e=="object"){if(fA(e.app))return"local";for(let n of R7)if(fA(e[n]))return"local"}return"raw-json"},aF=(t,e)=>{let n=e?t[e]:t;if(!A(n))return;let r=ge(n,{},O7);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},D7=t=>{if(!A(t)||Oo(t))return t;for(let e of[...iF,"app"])aF(t,e);return li(t)},L7=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=cn(n)?n.library:n;A(r)&&!e.has(r)&&D7(r)}return t},uA=t=>{let e=hA.get(t);e&&(hA.delete(t),HN(e))},tn=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),cF=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,lF=t=>t.sync!==!1&&Bs(t)||cF(t),fF=t=>({shorthand:t.shorthand?Ft("shorthand"):null,analyze:t.analyze&&!tn(t,"analyze")?Ft("analyze"):null,inspect:t.inspect&&!tn(t,"inspect")?Ft("inspect"):null,fetch:t.fetch?Ft("fetch"):null,sync:lF(t)?Ft("sync"):null,windows:t.windows!==!1?Ft("windows"):null,dropdown:t.dropdown!==!1?Ft("dropdown"):null,tooltip:t.tooltip!==!1?Ft("tooltip"):null}),gA=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(E(t)?t:"smblsapp");e.define=e.define||ec,e.cssPropsRegistry=kt,e.window=NN(e);let s=fF(e),i=P7(t,e);if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(y=>{let _=pA(y);return typeof _=="string"||dA(_)})){e.sharedLibraries=T7(e.sharedLibraries,e.symbolsConfig);let y=new Set(e.sharedLibraries.map(S=>pA(S)).filter(S=>A(S)&&!dA(S))),_=await Ll(e.sharedLibraries,{apiBaseUrl:tA()});e.sharedLibraries=i==="raw-json"?_:L7(_,y)}wN(e.sharedLibraries),XN(e)}Bs(e)&&qa(e,e.designSystem);let[a,c]=KN(o,e);if(e.designSystem=a,e.registry=c,e.cases||(e.cases={}),e.shorthand){let m=await(s.shorthand||Ft("shorthand"));m&&m.shorthandPlugin.prepareContext(e)}let l=GN(t,e);if(e.state=l,fl(l),e.pages=YN(t,e),e.components=FN(e),e.utils=jN(e),Nr[e.packageManager]){let m=VN(e);m&&m.deferred?(m.blocking&&await iA({...e,dependencies:m.blocking}),hA.set(e,m.deferred)):e.dependencies=await iA(e)}if(e.methods=BN(e),e.routerOptions=ZM(t,e),e.defaultExtends=[Cg],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(m=>!m||typeof m!="object")){let m=e.plugins.filter(y=>!y||typeof y!="object");e.plugins=e.plugins.filter(y=>y&&typeof y=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${m.length} non-plugin entr${m.length===1?"y":"ies"} (${m.map(y=>JSON.stringify(y)).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.`)}let f=e.globalScope;e.globalScope&&A(e.globalScope)&&(e.globalScope=Ro(e.globalScope));let u=(m,y)=>{i==="raw-json"&&aF(m,y)};u(t),u(e,"components"),u(e,"pages"),u(e,"functions"),u(e,"methods"),u(e,"snippets"),u(e,"app"),Ol(e,f),Rl(e);let d=m=>m&&typeof m.select=="function";if(e.fetch?.__resolved&&!d(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!d(e.db.__resolved)&&delete e.db.__resolved,e.polyglot&&!tn(e,"polyglot")){e.plugins.push(oc);for(let m in Ju)typeof e.functions[m]!="function"&&(e.functions[m]=Ju[m])}if(tn(e,"helmet")||e.plugins.push(ly),tn(e,"inertOutside")||e.plugins.push(xg),e.fetch){let m=await(s.fetch||Ft("fetch"));if(m){tn(e,"fetch")||e.plugins.push(m.fetchPlugin);let{fetchFunctions:y}=m;for(let _ in y)typeof e.functions[_]!="function"&&(e.functions[_]=y[_])}}if(e.designSystem?.typography?.useCapsize!==!1&&!tn(e,"capsize")&&(e.plugins.push(hy),e.cssPropsRegistry.useCapsize=cA),e.shorthand&&!tn(e,"shorthand")){let m=await(s.shorthand||Ft("shorthand"));m&&e.plugins.push(m.shorthandPlugin)}if(e.analyze&&!tn(e,"analyze")){let m=await(s.analyze||Ft("analyze"));if(m){let y=e.analyze===!0?{}:e.analyze;e.analyze=m.createAnalyzeState(y),e.plugins.push(m.analyzePlugin)}}let p=e.sync!==!1&&Bs(e),g=lF(e)?await(s.sync||Ft("sync")):null;if(g&&p&&!tn(e,"sync")&&e.plugins.push(g.syncPlugin),e.inspect&&!tn(e,"inspect")){let m=await(s.inspect||Ft("inspect"));m&&e.plugins.push(m.inspectPlugin)}g&&cF(e)&&!tn(e,"notifications")&&e.plugins.push(g.notificationsPlugin);let h=async m=>{if(e[m]===!1)return;let y=await(s[m]||Ft(m));if(!y)return;let{components:_,functions:S}=y;for(let v in _)A(e.components[v])||(e.components[v]=_[v]);for(let v in S)typeof e.functions[v]!="function"&&(e.functions[v]=S[v])};return await h("windows"),await h("dropdown"),await h("tooltip"),e},td=async(t,e)=>{A(e)||(e={});let n=qM(e);fF(e),n&&await io(),qn(t)?(t={},e.parent=t):E(t)?(t={},e.key=t):A(t)||(t={});let r=e.window||(typeof window<"u"?window:null),o=TN(e,r),s=o?ON(e):null;if(await gA(t,e),e.useReset!==!1){let f=e.document||(typeof document<"u"?document:null);if(f){let u=f.head.querySelector("style[data-smbls]");u||(u=f.createElement("style"),u.setAttribute("data-smbls",""),f.head.appendChild(u));let d=u.sheet;if(d){try{d.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{d.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&A(e.app))for(let f in e.app)t[f]===void 0&&(t[f]=e.app[f]);t.extends=_N(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await zN({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let f of e.plugins)if(typeof f.beforeCreate=="function")try{f.beforeCreate(t,e)}catch(u){console.error(`[smbls] plugin "${f.name||"?"}" beforeCreate error:`,u)}let i=e.document;if(!i||!i.createElement)return uA(e),t;let a=e.parent||i.body,c={verbose:e.verbose,context:e,...e.domqlOptions};if(o){let f=PN(zt,t,a,e,r,s,c);return uA(e),f}let l=n?await GM(t,a,e,c,n):zt(t,a,e.key,c);return uA(e),typeof window<"u"&&!e.document&&(window.__smblsApp=l),l};var mA=(t,e)=>dt(t,A(e)?e:{}),I7=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 n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},M7=()=>{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}},uF=t=>{let e=M7();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},yA=(t,e=go,n)=>{let r={...go,...mA(e,n)};return uF(r),I7(r),td(t,r).then(s=>{if(Cv(s,r),s.destroy=()=>Vu(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Su(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),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})},$7=(t,e=go,n)=>{let r=yA(t,e,n),o={...go,...mA(e,n)},s=o.key;return s&&o.editor&&o.editor.async&&Ft("fetchOnCreate").then(i=>{i&&i.fetchAsync(r,s,{utils:wu,...o})}),r},N7=async(t,e=go,n)=>{let r={...go,...mA(e,n)};uF(r);let o=e.key;if(o&&r.editor){let i=await Ft("fetchOnCreate");i&&await i.fetchSync(o,r)}let s=await td(t,r);return Cv(s,r),s.destroy=()=>Vu(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Su(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s},F7=(t={},e=go,n)=>yA({deps:{isUndefined:Wt},...t},dt({domqlOptions:{onlyResolveExtends:!0}},e),n);Rt();M();kp();var dF={"@symbo.ls/signal":pc,"@symbo.ls/scratch":ZS,"@symbo.ls/element":kg,"@symbo.ls/css":Dh,"@symbo.ls/utils":Nl,"@symbo.ls/state":n0,"@symbo.ls/router":Ma,"@symbo.ls/polyglot":aA,"@symbo.ls/helmet":ZE,"@symbo.ls/fetch":Si,"@symbo.ls/capsize":lA,"@symbo.ls/shorthand":aE,"@symbo.ls/analyze":Au,"@symbo.ls/inspect":Tu,"@symbo.ls/channels":eA},pF=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in dF)r[o]||(r[o]=dF[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},hF=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(r,o))continue;let i=a=>(Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return r},gF=["@symbo.ls/sdk"],mF=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!="object"&&typeof s!="function"||r[o]||(r[o]=s)}return r};var wA={};F(wA,{BUILD_DOMQL_SYSTEM_PROMPT:()=>TF,DEFAULT_MAX_TOKENS:()=>wy,DEFAULT_MODEL:()=>bo,DEFAULT_PROVIDER:()=>rd,DEFAULT_TEMPERATURE:()=>_y,MODEL_TIER_ALIASES:()=>_A,PROVIDER_MODELS:()=>nd,SIMONE_BASE_URL:()=>ed,SIMONE_CHAT_PATH:()=>gy,SIMONE_CODE_PATH:()=>my,SIMONE_CODE_SYMBOLS_PATH:()=>yy,SIMONE_HEALTH_PATH:()=>by,SIMONE_TOOLS_PATH:()=>yF,WORKSPACE_SYSTEM_PROMPT:()=>CF,buildMessages:()=>xF,chat:()=>od,health:()=>SF,parseSimoneResponse:()=>EF,resolveModel:()=>OF,streamChat:()=>od,streamCode:()=>_F,streamCodeSymbols:()=>wF,toLegacyEnvelope:()=>AF});var ed="https://symbols-service-production.up.railway.app",gy="/api/chat",my="/api/code",yy="/api/code-symbols",by="/api/health",yF="/api/tools",nd={"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"]},rd="gemini",bo=nd[rd][0],_y=.7,wy=4096;function j7(t){if(!t)return null;for(let[e,n]of Object.entries(nd))if(n.includes(t))return e;return null}function bF(t,e){return t?t.replace(/\/$/,"")+e:e}function B7(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 od(t,e={},n){let{baseUrl:r=ed,path:o=gy,model:s=bo,provider:i=j7(s)||rd,temperature:a=_y,maxTokens:c=wy,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 p={messages:t,provider:i,model:s,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(bF(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let v=g.statusText;try{let w=await g.text();try{let b=JSON.parse(w);v=b.error||b.detail||v}catch{v=w||v}}catch{}let x=new Error(`simone: HTTP ${g.status} \u2014 ${v}`);throw x.status=g.status,x}if(!g.body||typeof g.body.getReader!="function"){let v=await g.text();return n&&n(v),{text:v,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],_=[],S="";try{for(;;){let{done:v,value:x}=await h.read();if(v)break;S+=m.decode(x,{stream:!0});let w=S.indexOf(`
167
- `);for(;w!==-1;){let b=S.slice(0,w).trim();if(S=S.slice(w+1),b){let k=B7(b);if(k?.done)return{text:y.join(""),errors:_};let C=k?.chunk;C?.delta&&(y.push(C.delta),n&&n(C.delta)),C?.error&&_.push(C.error)}w=S.indexOf(`
168
- `)}}return{text:y.join(""),errors:_}}finally{h.cancel().catch(()=>{})}}function _F(t,e={},n){return od(t,{...e,path:my},n)}function wF(t,e={},n){return od(t,{...e,path:yy},n)}async function SF(t={}){let{baseUrl:e=ed,signal:n,headers:r}=t,o=await fetch(bF(e,by),{method:"GET",headers:r,signal:n});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function xF({system:t,history:e=[],user:n,context:r}){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(n){let s=n;if(r!=null){let i=typeof r=="string"?r:JSON.stringify(r,null,2);s=`${s}
166
+ `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},w8={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(py):t.extends?t.extends=[t.extends,py]:t.extends=[py]}};var OA={};$(OA,{DefaultSyncApp:()=>f7,FORBIDDEN_SEGMENTS:()=>Zu,Notifications:()=>yy,SyncComponent:()=>TA,applyOpsToCtx:()=>Qu,connectToSocket:()=>NN,deletePath:()=>JE,isSafePath:()=>gy,liveSyncTransport:()=>my,notificationsPlugin:()=>h7,onOps:()=>eA,onSnapshot:()=>tA,seedRawDesignSystem:()=>cc,setPath:()=>ZE,syncPlugin:()=>p7,wantsLiveSync:()=>ti});M();M();var Zu=new Set(["__proto__","constructor","prototype"]),gy=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Zu.has(t[e]))return!1;return!0},JE=(t,e)=>{!t||!gy(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},ZE=(t,e,n,r=!1)=>{!t||!gy(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&r&&(o[s]={}),o[s];o[s]=n}},t)},Qu=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[r,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(n.add(o[0]),r){case"delete":JE(t,o);break;case"update":case"set":ZE(t,o,s,!0);break;default:break}return n},U2=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},r=null;for(let o of Object.keys(e))Zu.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},S8=()=>typeof T<"u"&&!!T&&!!T.__SYMBOLS_ENV__,x8=()=>{try{if(T.self!==T.top)return!0}catch{return!0}try{return new URLSearchParams(T.location.search).has("liveSync")}catch{return!1}},B2=Object.freeze({mode:null,baseUrl:null}),my=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?S8()&&!x8()?B2:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:B2},ti=t=>my(t).mode!==null,cc=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},V2=(t,e,n,r="designSystem")=>{for(let o in e){if(Zu.has(o))continue;let s=`${r}/${o}`;if(n.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]={}}V2(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},QE=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Qu(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return Yl(n,r,V2)};M();var tA=(t,e,n)=>{let r=!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(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(cc(n,c),r){let l=QE(n);l&&Gn(l)}}else Vo(n[a],c);else n[a]=c}),r=!0,i&&(n.schema=i))}},eA=(t,e,n)=>(r={})=>{let{changes:o}=r;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=Qu(n,i);if(s.length&&a.add("designSystem"),a.has("designSystem")){let c=QE(n,s);c?Gn(c):n.__warnedNoRawDesignSystem||(n.__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=U2(e,n.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}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var k8={success:"green",error:"red",warning:"yellow"},H2=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}},yy={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:k8[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,r)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,r)=>{delete r.notifications[n.key],n.update({animation:"fadeOutDown"}),r.onClose&&r.onClose(e,n,r)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var o7=!1,s7=()=>o7?"http://localhost:8080":"https://api.symbols.app",CA=null,i7=()=>(CA||(CA=Promise.resolve().then(()=>(MN(),IN)).then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),CA),a7=async t=>{try{let e=t||s7(),n=await T.fetch(`${e}/service-token`,{method:"GET"}),r;try{let o=await n.clone().json();if(o&&typeof o.token=="string")return o.token.trim();r=await n.text()}catch{r=await n.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(e){console.warn("[sync] Failed to fetch service-token",e)}},$N=(t,e,n,r)=>{t.on("snapshot",tA(e,n,r)),t.on("ops",eA(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&H2(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},c7=async(t,e,n,r,o)=>{let s=await a7(r);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await o;if(!c)return null;let l=c(r,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),$N(l,t,e,n),l},l7=async(t,e,n,r)=>{let o=await r;if(!o)return null;let s=o({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),$N(s,t,e,n),s.on("reload",()=>{typeof T<"u"&&T.location&&T.location.reload()}),s},NN=async(t,e,n)=>{let{mode:r,baseUrl:o}=my(n);if(!r)return null;let s=i7();return r==="collab"?c7(t,e,n,o,s):r==="runner"?l7(t,e,n,s):null},TA={onInit:NN},f7={extends:[TA,yy]},FN=t=>typeof t>"u",u7=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),d7=t=>t?.editor?.runtime==="runner",jN=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},p7={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!FN(n.liveSync)?n.liveSync:ti(e))&&(u7(e)&&!d7(e)&&!e?.key||jN(t,TA))}},h7={name:"notifications",beforeCreate(t,e){if(!e)return;let n=FN(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&jN(t,yy)}};zp();var PA={};$(PA,{fetchAsync:()=>_7,fetchSync:()=>b7});M();var BN=T&&T.location&&typeof T.location.host=="string"?T.location.host:null,RA=BN!==null?BN.includes("dev."):jr(),UN=RA?"http://localhost:8080/get":"https://api.symbols.app/get",g7={endpoint:UN},VN=async(t,e=g7)=>{let n=e.endpoint||UN,r=e.serviceRoute?I(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(n+"/?"+r,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(D(e.onError))return e.onError(s);console.error(s)}},m7=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await VN(t,n),o=RA||e.isDevelopment?me(r):me(r.releases[0]);n.serviceRoute?I(n.serviceRoute)?n.serviceRoute.forEach(s=>{se(e[s],o[s.toLowerCase()])}):se(e[n.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{se(e[s],o[s.toLowerCase()])})}return e},y7=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await VN(t,r),s=RA||e.isDevelopment?me(o):me(o.releases[0]);n(s)}},b7=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await m7(t,e)}catch(n){console.error(n)}},_7=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&y7(e,n,r||(o=>{let s=o.designSystem;A(s)&&n.utils.init(s),A(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var w7={windows:()=>Promise.resolve(bE),dropdown:()=>Promise.resolve(CE),tooltip:()=>Promise.resolve(RE),analyze:()=>Promise.resolve(Yu),shorthand:()=>Promise.resolve(YE),inspect:()=>Promise.resolve(Ju),sync:()=>Promise.resolve(OA),fetch:()=>Promise.resolve(Ni),fetchOnCreate:()=>Promise.resolve(PA)},Be=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),HN=t=>{let e=[];return t.shorthand&&e.push("shorthand"),t.analyze&&!Be(t,"analyze")&&e.push("analyze"),t.inspect&&!Be(t,"inspect")&&e.push("inspect"),t.fetch&&e.push("fetch"),t.windows!==!1&&e.push("windows"),t.dropdown!==!1&&e.push("dropdown"),t.tooltip!==!1&&e.push("tooltip"),e},fd={},zN={},de=t=>{if(fd[t])return fd[t];let e=w7[t];return e?(fd[t]=e().then(n=>(zN[t]=n,n),n=>(delete fd[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),fd[t]):Promise.resolve(null)},mc=t=>zN[t]||null;var fi=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 n of e.__teardowns)try{n()}catch(r){console.error("[smbls] destroy teardown error:",r)}e.__teardowns.length=0}try{Vn(t)}catch(n){console.error("[smbls] dispose error:",n)}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(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var FA={};$(FA,{Helmet:()=>uF,applyElementMetadata:()=>Fy,applyMetadata:()=>E7,default:()=>V7,extractMetadata:()=>k7,generateHeadHtml:()=>U7,helmetPlugin:()=>jy,resolveMetadata:()=>My});M();Lt();var sn={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"}},Dr=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}"]`},WN=t=>me({v:t}).v,KN=(t,e,n,r)=>{try{return vt(t,e,n)}catch(o){console.warn(`[helmet] metadata factory for "${r}" threw; treating as unset:`,o&&o.message||o);return}},DA=Object.freeze({authored:!0}),My=(t,e,n,r)=>{if(!t)return{};let o=t;E(o)&&oe(o)&&(o=WN(o));let s=D(o),i=!s&&r?.authored===!0,a=s?KN(o,e,n,"metadata"):A(o)?{...o}:{};if(!A(a))return{};for(let c in a){let l=a[c],f=i&&E(l)&&!oe(l);E(l)&&oe(l)&&(l=WN(l)),D(l)?l=KN(l,e,n,c):E(l)&&oe(l)&&(l=void 0),E(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,DA):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},S7=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),x7=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(S7(t[n]))return t[n]},k7=(t,e="/",n,r)=>{let o=t.pages||{},s=x7(o,e),i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let l=My(t.app.metadata,n,r,DA);i={...i,...l}}let a=new Set;if(s){let l=s.metadata||s.helmet||{},f=My(l,n,r,DA);for(let u in f)a.add(u);i={...i,...f},!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"))}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);let c=a.has("og:url")?i["og:url"]:a.has("url")?i.url:void 0;if(c)i["og:url"]=c;else if(i["og:url"]||i.url){let l=(i["og:url"]||i.url||"").replace(/\/$/,"");if(l&&e&&e!=="/"){let f=e.startsWith("/")?e:"/"+e;i["og:url"]=l+f}}return Jo(i,t.files)},ZN=(t,e)=>Jo(My(t,e,e.state),e.context?.files),QN=t=>t.context?.document||typeof document<"u"&&document,tF=t=>Object.prototype.hasOwnProperty.call(sn,t),$y=new Map;for(let t in sn){let e=Dr(sn[t]);$y.has(e)||$y.set(e,sn[t])}var Ny=t=>t.head||t.querySelector("head"),MA=(t,e)=>{let n=Ny(t);return n?n.querySelector(e):null},LA=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),$A=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},NA=(t,e)=>{let n=Ny(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},yc=(t,e,n,r)=>{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 Map;n.forEach((a,c)=>{i.has(a)||i.set(a,c)});for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=r(a,i.get(a));c&&(c.setAttribute(e,a),o.appendChild(c))}},eF=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>E(s)?s:JSON.stringify(s)),o=r.map(Dn);yc(t,"data-smbls-jsonld",o,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},nF=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Dn);yc(t,"data-smbls-style",r,(o,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},rF=t=>(t||[]).filter(e=>e&&(E(e)?e.trim():e.src)),oF=t=>E(t)?t:String(t.src),sF=(t,e)=>{let n=t.createElement("script");return E(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},v7=(t,e)=>{let n=rF(e),r=n.map(oF);yc(t,"data-smbls-script",r,(o,s)=>sF(t,n[s]))},iF=(t,e)=>{let n=(e||[]).filter(o=>A(o)),r=n.map(Xo);yc(t,"data-smbls-alternate",r,(o,s)=>{let i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},aF=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(Xr);yc(t,"data-smbls-favicon",r,(o,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),A(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},cF=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";yc(t,"data-smbls-single-icon",n?[n]:[],o=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",o),r&&s.setAttribute("type",r),s})},E7=(t,e)=>{if(!(!A(t)||!e)){for(let n in t){let r=t[n];if(r==null||!tF(n))continue;let o=sn[n],s=MA(e,Dr(o))||NA(o,e);s&&$A(s,o,r)}Array.isArray(t.jsonLd)&&eF(e,t.jsonLd),Array.isArray(t.styles)&&nF(e,t.styles),Array.isArray(t.scripts)&&v7(e,t.scripts),Array.isArray(t.alternate)&&iF(e,t.alternate),Array.isArray(t.favicons)&&aF(e,t.favicons),(t.icon||t.favicon)&&cF(e,t.icon||t.favicon)}},qN=new WeakMap,IA=new WeakMap,lF=t=>{let e=t.location;return e&&E(e.pathname)?e.pathname:null},A7=t=>{let e=qN.get(t);return e||(e={doc:t,layers:[],servedPath:lF(t),originals:new Map,owned:new Set,lists:new Set},qN.set(t,e)),e},C7=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},GN=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},T7=t=>{if(!A(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},O7=(t,e)=>{let n=IA.get(t);if(n)return n;let r=A7(e),o={element:t,values:null,signature:GN(null),disposed:!1,set(i){if(o.disposed)return;let a=GN(i);o.values=i,!(a!==null&&a===o.signature)&&(o.signature=a,XN(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);if(i!==-1&&r.layers.splice(i,1),!T7(o.values))try{XN(r)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=r.layers.length;for(let i=0;i<r.layers.length;i++)if(C7(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),IA.set(t,o),o},fF=(t,e,n,r)=>{let o=O7(t,e),s=W(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},R7=Dr(sn.title),P7=Dr(sn.description),D7=Dr(sn["og:title"]),L7=Dr(sn["og:description"]),I7=Dr(sn["twitter:title"]),M7=Dr(sn["twitter:description"]),YN=(t,e,n,r)=>{let o=t.get(e);if(!o||!o.value)return;let s=t.get(n);(!s||!s.value||s.rank<o.rank)&&t.set(n,o);let i=t.get(r);(!i||!i.value)&&t.set(r,o)},Iy={jsonLd:eF,styles:nF,alternate:iF,favicons:aF,icon:cF},$7=Object.keys(Iy).filter(t=>t!=="icon"),N7=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!A(s))continue;for(let a in s){let c=s[a];c==null||!tF(a)||e.set(Dr(sn[a]),{value:String(c),rank:o})}for(let a of $7)Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&r.push(...s.scripts)}return YN(e,R7,D7,I7),YN(e,P7,L7,M7),{tags:e,lists:n,scripts:r}},F7=(t,e,n)=>{let{doc:r,originals:o}=t,s=$y.get(e),i=MA(r,e),a=o.get(e);a||(a={value:i?LA(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=NA(s,r)),i&&(LA(i,s)!==n&&$A(i,s,n),t.owned.add(e))},j7=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=$y.get(e),o=MA(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&lF(n)===t.servedPath){let a=o||NA(r,n);a&&LA(a,r)!==s.value&&$A(a,r,s.value)}else o&&o.remove()},B7=(t,e)=>{let n=rF(e);if(!n.length)return;let r=Ny(t),o=new Set;for(let s of r.querySelectorAll("[data-smbls-script]"))o.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=oF(s);if(o.has(i))continue;let a=sF(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},XN=t=>{let{doc:e}=t;if(!Ny(e))return;let{tags:n,lists:r,scripts:o}=N7(t.layers);for(let s of[...t.owned])n.has(s)||j7(t,s);for(let[s,{value:i}]of n)F7(t,s,i);for(let s in Iy)r[s]!==void 0?(Iy[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&Iy[s](e,null);B7(e,o)},U7=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),r=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${z(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${z(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${z(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=z(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(A(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${z(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${z(Xr(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${z(f)}" data-smbls-favicon="${z(Xr(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(A(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${z(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${z(Xo(f))}">`)}});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="${z(f)}" content="${z(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${z(f)}" content="${z(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${z(o)}" content="${z(f)}">`)):e.push(`<meta property="${z(o)}" content="${z(s)}">`):l?e.push(`<meta name="${z(o)}" content="${z(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${z(o)}" content="${z(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${z(o)}" content="${z(s)}">`)}return r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...Wi(t)),e.join(`
167
+ `)},uF={define:{metadata:(t,e)=>{Fy(t,e,n=>{let r=e.state?.root;A(r)&&(r.$helmet=n)})}}},Fy=(t,e,n)=>{let r=QN(e);r&&fF(e,r,()=>ZN(t,e),n)},JN=t=>{let e=t.metadata;return e?ZN(e,t):null},jy={name:"helmet",create(t){if(!t.metadata)return;let e=QN(t);e&&fF(t,e,()=>JN(t))},update(t){let e=IA.get(t);if(!e)return jy.create(t);e.disposed||e.set(JN(t))}},V7=uF;var dF=(t,e,n,r)=>{if(!t||!r?.fetch)return;let o=mc("fetch");if(o){o.executeFetch(t,e,n,r);return}de("fetch").then(s=>{s&&s.executeFetch(t,e,n,r)})},pF=(t,e)=>{t&&Fy(t,e)},hF=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},r=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(r):await r(),n},bc={routes:t=>t,metadata:pF,fetch:dF,$router:hF},gF=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=pF),t.fetch!==!1&&(e.fetch=dF),t.router!==!1&&(e.$router=hF),e};var jA={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},By={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},BA={...jA,router:By},H7={state:{},pages:{},components:{},router:By,define:bc},Co=H7;M();M();var mF=(t,e)=>H(t.extends)?t.extends:[];M();var yF=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[o,s]of qi(t,Gi))r[o]||(r[o]=s);return r};var VA={};$(VA,{apiUrl:()=>UA,channelByApiUrl:()=>q7,channelNames:()=>W7,channels:()=>Oe,currentChannel:()=>To,defaultChannel:()=>eK,deployTarget:()=>Z7,isKnownChannel:()=>tK,mermaidUrl:()=>J7,normalizeOwnerSegment:()=>nK,normalizeProjectKey:()=>oK,normalizeProjectSlug:()=>rK,parseSymboLsHost:()=>sK,previewProjectUrl:()=>X7,previewUrl:()=>SF,resolveChannel:()=>ui,screenshotCdnHost:()=>xF,screenshotCdnUrl:()=>Q7,setChannel:()=>K7,shellUrl:()=>Y7,socketUrl:()=>G7});var Oe={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 W7=Object.keys(Oe.channels),Lr=t=>!!(t&&Oe.channels[t]),ui=t=>Lr(t)?Oe.channels[t]:Oe.channels[Oe.defaultChannel],K7=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Lr(t)?t:null,_c=void 0)},_c,ud=t=>typeof process<"u"&&process.env&&process.env[t]||null,To=()=>{if(_c!==void 0)return _c;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=ud("SYMBOLS_CHANNEL"),n=ud("NODE_ENV");return _c=Lr(t)&&t||Lr(e)&&e||Lr(n)&&n||Oe.defaultChannel,_c===Oe.defaultChannel&&!Lr(t)&&!Lr(e)&&!Lr(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${Oe.defaultChannel}". Outbound URLs (shellUrl/apiUrl) will target production; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel.`),_c},bF=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],_F=t=>{let e=bF.indexOf(t);return e===-1?bF.length:e},q7=t=>{if(!t)return null;let e=Object.keys(Oe.channels).filter(n=>Oe.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>_F(n)-_F(r))[0]},UA=(t=To())=>ud("SYMBOLS_API_URL")||ui(t).api,G7=(t=To())=>ud("SYMBOLS_SOCKET_URL")||ui(t).socket,Y7=(t=To())=>ui(t).shell||null,SF=(t=To())=>ui(t).preview||null,X7=({owner:t,key:e,env:n="production"}={},r=To())=>{let o=SF(r);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!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},J7=({owner:t,key:e,env:n="production"}={},r=To())=>{let o=ui(r).mermaidApex;if(!o||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith("localhost")?"http":"https"}://${a}.${o}`},Z7=(t=To())=>ui(t).deploy||{},xF=()=>ud("SYMBOLS_SCREENSHOT_CDN")||Oe.screenshotCdn,Q7=({owner:t,key:e,page:n="root",componentKey:r,env:o="production",width:s}={})=>{if(!t||!e)return null;let i=r?`component/${encodeURIComponent(r)}`:encodeURIComponent(String(n||"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://${xF()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},tK=Lr,eK=Oe.defaultChannel,nK=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",rK=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",oK=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let r=typeof e.owner=="string"?e.owner.trim():"";return r&&n.startsWith(`${r}--`)?n=n.slice(r.length+2):!r&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},wF={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},sK=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=wF[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?wF[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let r=n[1],o=n[0];if(o.includes("--")){let[s,i]=o.split("--",2);return!s||!i?null:{projectKey:s,owner:r,env:i}}return{projectKey:o,owner:r,env:"production"}};M();var EF='meta[name="brender"]',iK=3e3,zA=t=>t.document||(typeof document<"u"?document:null),AF=(t,e)=>{let n=t.parent;return n&&n.nodeType===1?n:n&&n.node&&n.node.nodeType===1?n.node:e?e.body:null},CF=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=zA(t);if(!n||typeof n.querySelector!="function")return!1;let r=n.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute("data-brender")||n.querySelector(EF))return!0;let o=AF(t,n);for(let s=o&&o.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},TF=t=>{let e=zA(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},aK=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},cK=(t,e)=>{let n=er(e,Bl,{warn:aK});return n?{map:A(n.value)?n.value:null,block:n.block}:t&&A(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},lK=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||A(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,fK=t=>{let e=A(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:iK},OF=(t,e,n)=>{if(t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__),n&&n.block&&n.block.parentNode&&n.block.remove(),e&&typeof e.querySelector=="function"){let r=e.querySelector(EF);r&&r.remove();let o=e.documentElement;o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")&&o.removeAttribute("data-brender")}},uK=()=>new Promise(t=>{if(typeof MessageChannel=="function"){let e=new MessageChannel;e.port1.onmessage=()=>{e.port1.close(),t()},e.port2.postMessage(null)}else setTimeout(t,0)}),RF=async(t,e)=>{let n=t.__firstNavigation;if(n&&typeof n.then=="function")try{await n}catch{}for(let r=0;r<20&&e.pending.size;r++){let o=mc("fetch"),s=o&&typeof o.whenRequestsIdle=="function"?o.whenRequestsIdle:null;if(s&&await s(),await uK(),!s||!(o.requestsInFlight()>0))return}},dK=["click","keydown"],PF=(t,e,n,r,o,s)=>{let i=!1,a=null,c=()=>f(),l=u=>{let d=u?"addEventListener":"removeEventListener";if(n&&typeof n[d]=="function")for(let p of dK)n[d](p,c,!0);e&&typeof e[d]=="function"&&e[d]("popstate",c)},f=()=>{if(i)return;i=!0,a!==null&&clearTimeout(a),l(!1),t.__hydration===r&&delete t.__hydration;let u=0;for(let d of r.pending)d.parentNode&&(d.remove(),u++);r.pending.clear(),r.pendingIn.clear(),r.whole=null,s&&s.forEach(d=>{d.parentNode&&d.remove()}),e&&(e.__BRENDER_HYDRATION__={adopted:r.adopted,misses:r.misses,removed:u}),OF(e,n,o),HA(e,r.root)};if(!r.pending.size)return f();a=setTimeout(f,fK(t)),l(!0),RF(t,r).then(f,f)},pK=1e3,hK=(t,e)=>{t&&typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:pK}):setTimeout(e,0)},HA=(t,e)=>{let n=mc("fetch");!n||typeof n.seedIsStale!="function"||!n.seedIsStale()||hK(t,()=>{n.revalidateSeed(e).then(r=>{r&&t&&t.__BRENDER_HYDRATION__&&(t.__BRENDER_HYDRATION__.refreshed=r)},r=>console.error("[smbls] refreshing a stale pre-rendered page failed:",r))})},gK=(t,e,n)=>{let r=mc("fetch");!r||typeof r.seedIsStale!="function"||!r.seedIsStale()||RF(t,{pending:{size:1}}).then(()=>HA(e,n),()=>HA(e,n))},mK=t=>({bubbles:!0,cancelable:!0,composed:!0,detail:t.detail,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons}),yK=(t,e,n,r)=>{if(!t||typeof t.addEventListener!="function")return{replay(){}};let o=[],s=a=>{for(let c=a;c&&c!==n;c=c.parentNode)if(r.pending.has(c))return!0;return!1},i=a=>{s(a.target)&&(a.preventDefault(),a.stopImmediatePropagation(),o.push({target:a.target,init:mK(a)}))};return t.addEventListener("click",i,!0),{replay(){t.removeEventListener("click",i,!0);let a=e&&e.MouseEvent||(typeof MouseEvent=="function"?MouseEvent:null);if(a)for(let{target:c,init:l}of o)c.isConnected&&r.claimed.has(bK(c,n,r))&&c.dispatchEvent(new a("click",l))}}},bK=(t,e,n)=>{for(let r=t;r&&r!==e;r=r.parentNode)if(n.claimed.has(r))return r;return null},_K=async()=>{for(await Ee();!wo();)await Ee()},wK=async(t,e,n,r,o,s,i,a,c,l,f,u)=>{let d=f.mountYield,p=f.mountWhole;d===void 0&&(f.mountYield=u.budget),p===void 0&&(f.mountWhole=!0);let g=fE(o,{budget:u.budget,progressive:!0,pageOptions:{mountYield:f.mountYield,mountWhole:f.mountWhole}}),h=Ps(),m=yK(i,s,r,a),y=null;try{try{y=t(e,n,o.key,f)}catch(k){console.error("[smbls] hydration failed, rendering fresh:",k),delete o.__hydration;for(let v of a.claimed)v.parentNode&&v.remove();return null}await kr(y),g.routeReady&&await g.routeReady,await _K()}finally{f.mountYield=d,f.mountWhole=p,uE(o),h(),y||m.replay()}return a.root=y,PF(o,s,i,a,c,l),m.replay(),y},kF=(t,e,n,r,o,s,i,a,c,l,f)=>{if(!r||typeof r.querySelectorAll!="function")return null;let u=v=>{for(let S=v;S&&S!==r;S=S.parentNode)if(S.parentNode===r&&S.localName==="svg"&&S.id)return!0;return!1},d={};for(let v of r.querySelectorAll("[data-br]")){let S=v.getAttribute("data-br");u(v)?v.removeAttribute("data-br"):d[S]=v}let p={},g=new Set,h=new Map,m=a.map;for(let v in m){let S=m[v],w=d[S];if(!w||p[S])continue;p[S]=w,g.add(w);let _=w.parentNode;_&&h.set(_,(h.get(_)||0)+1)}for(let v in d)p[v]||d[v].removeAttribute("data-br");let y={registry:m,nodes:p,claimed:new Set,pending:g,pendingIn:h,adopted:0,misses:0};if(o.__hydration=y,f)return wK(t,e,n,r,o,s,i,y,a,c,l,f);let k;try{k=t(e,n,o.key,l)}catch(v){console.error("[smbls] hydration failed, rendering fresh:",v),delete o.__hydration;for(let S of y.claimed)S.parentNode&&S.remove();return null}return y.root=k,PF(o,s,i,y,a,c),k},vF=(t,e,n,r,o,s,i,a,c,l)=>{if(c&&c.forEach(u=>{u.parentNode&&u.remove()}),r){let u=[];for(let d of r.childNodes){if(d.nodeType===1){let p=d.localName;if(p==="script"||p==="link"||p==="style"||p==="svg"&&d.id)continue}u.push(d)}u.forEach(d=>d.remove())}i&&typeof i.querySelectorAll=="function"&&i.querySelectorAll("[data-br]").forEach(u=>u.removeAttribute("data-br"));let f=t(e,n,o.key,l);return OF(s,i,a),Promise.resolve(f).then(u=>gK(o,s,u),()=>{}),f},DF=(t,e,n,r,o,s,i,a=null)=>{let c=zA(r),l=n&&n.nodeType?n:n&&n.node||AF(r,c),f=cK(o,c);r.prerendered=!0;let u=zo(c);if(u&&(r.prerender=u),lK(r,o,f)){if(a)return Wn().then(()=>kF(t,e,n,l,r,o,c,f,s,i,a)).then(p=>p||vF(t,e,n,l,r,o,c,f,s,i));let d=kF(t,e,n,l,r,o,c,f,s,i,a);if(d)return d}return vF(t,e,n,l,r,o,c,f,s,i)};M();var LF=t=>{let e={faces:0,links:0};if(!t)return e;for(let n in t){let r=t[n];if(!r||!r.fontFace)continue;let o=Array.isArray(r.fontFace)?r.fontFace:[r.fontFace];for(let s of o){if(IF(s)){let i=xK(s);i&&kK(i)&&e.links++;continue}if(SK(s)){Tt(s.trim()),e.faces++;continue}typeof s=="string"&&s.includes("font-family")&&(Tt(`@font-face { ${s} }`),e.faces++)}}return e},IF=t=>typeof t=="string"&&t.trim().startsWith("@import"),SK=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),xK=t=>{if(!IF(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},kK=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||mr();if(!n||!n.head)return null;let r="data-smbls-font",o=n.head.querySelectorAll(`link[rel="stylesheet"][${r}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(r)===t)return o[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(r,t),n.head.appendChild(s),s};var jF=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let r=t.window;return r&&r!==e&&typeof r.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=r||e,t.window},MF=(t="smbls")=>{let e={};for(let n in Ks)Object.prototype.hasOwnProperty.call(Ks,n)&&(On(n)?e[`smbls.${n}`]=Ks[n]:e[n]=Ks[n]);return e},BF=t=>t.components?{...MF(),...t.components}:MF(),UF=t=>({...Hu,...Za,...ro,...t.utils,...t.snippets,...t.functions}),VF=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var HF=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,vK=3e3,EK=(t,e,n=r=>import(r))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(r[t])return Promise.resolve(r[t]);let o=()=>n(e),s=Promise.resolve().then(o).then(a=>(a&&!r[t]&&(r[t]=a),r[t]||null)).catch(()=>null);return new Promise(a=>{let c=setTimeout(()=>a(null),vK);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},$F={},GA=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=EK})=>{if(o||(o=Gr[s]||Hi(i)||"esmsh"),!t)return null;if(!Yo(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=jr()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=dn(d,p,o)+l;try{await Promise.race([zi(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${o}:`,h),o!=="symbols")try{let m=dn(d,p,"symbols")+l;await Promise.race([zi(m,{document:n,type:"module"}),new Promise((y,k)=>setTimeout(()=>k(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 p=t[d];if(!(e&&e[d])&&!$F[d]&&($F[d]=!0,!Yr(d))){if(Go(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}HF(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},NF=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,AK=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof De=="function"?De(t):Function.prototype.toString.call(t)}catch{return""}return""},CK=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let r=0;r<n.length;r++){let o=n[r];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=AK(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;NF.lastIndex=0;let l;for(;(l=NF.exec(c))!==null;)e.add(l[1])}}return e},TK=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let r=0;r<n.length;r++){let o;try{o=JSON.parse(n[r].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},OK=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},zF=(t,{syncRead:e=CK(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=TK(n)}={})=>{let o=t&&t.dependencies;if(!Yo(o))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&OK(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},RK=t=>import(t),WA={},PK=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},DK=(t,{importModule:e=RK}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)if(!(Yr(r)||Go(r))&&!HF(r)){if(!WA[r]){let o=()=>e(r);WA[r]=Promise.resolve().then(o).then(s=>(PK(r,s),s||null),()=>null)}n.push(WA[r])}return Promise.all(n)},LK=2e3,IK=3e3,WF=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=IK}={})=>t?new Promise(o=>{let s=()=>{DK(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:LK}):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,r)}else i()}):null,KF=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||Hi(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=r)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&Yr(a))return await u.require(a,c);if(!u.packages[a]){let d=jr()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=dn(a,p,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=dn(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=dn(a,"latest",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 h=dn(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=Rt(n.packages,t):n.packages=t,n.require||(e.utils.require=await o(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},MK=/\s+/g,qF=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,$K=(t,e)=>{let n="";for(let r in t){let o=t[r];typeof o=="boolean"&&o?n+=` ${r}`:typeof o=="string"?n+=` ${o}`:typeof o=="function"&&(n+=` ${qF(o,e)}`)}return n},NK=(t,e,n)=>{if(!t)return;let{key:r}=e;t===!0&&(t=e.classlist={key:r}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=$K(t,e));let o=t.replace(MK," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},FK=()=>(t,e,n)=>{let r=qF(t,e);if(t){let{__ref:o}=e;o.__class.style=r}GF()(e.classlist,e,e.state,!0)},GF=()=>(t,e,n,r)=>{if(e.style&&!r)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=$e(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&NK(i,e,e.node)}},jK=()=>({style:FK(),classlist:GF()}),BK=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],KA=new WeakSet,qA=!1,UK=t=>!!t&&typeof t=="object",VK=new Set(["key","document","files","assets","themeRoot","config","newConfig","recordCss","router"]),YF=t=>t.toLowerCase()==="font",HK=t=>{let e=2166136261,n=16777619^t.length;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);e=Math.imul(e^o,16777619),n=Math.imul(n^o,1540483477)}return(e>>>0).toString(36)+"."+(n>>>0).toString(36)+"."+t.length.toString(36)},FF=(t,e)=>typeof e=="function"?"fn:"+String(e):e,XF=(t,e)=>{let n={};for(let o in t||{})YF(o)||(n[o]=t[o]);let r={};for(let o in e)VK.has(o)||(r[o]=e[o]);return r.globalTheme=Tm(e.globalTheme)||"auto",HK(1+"|"+JSON.stringify(n,FF)+"|"+JSON.stringify(r,FF))},zK=t=>{let e={};for(let n in t||{})YF(n)&&A(t[n])&&ft(e,ut(t[n]),ie);return A($s.font)&&ft(e,ut($s.font),ie),e},WK=(t,e)=>{if(t.preparedDesignSystem!==void 0){let r=t.preparedDesignSystem;return delete t.preparedDesignSystem,r}let n=er(e,Vl);return n?n.value:null},JF=t=>{if(!t||t.preparedDesignSystem!==void 0)return null;let e=t.document||(typeof document<"u"?document:null);if(!e||typeof e.querySelector!="function"||typeof globalThis.fetch!="function")return null;try{let n=e.querySelector(Ul),r=n&&n.href;return r?globalThis.fetch(r,{credentials:"same-origin"}).then(o=>o&&o.ok?o.json():null).catch(()=>null):null}catch{return null}},KK=t=>A(t)&&t.format===1&&typeof t.fingerprint=="string"&&A(t.config)&&Array.isArray(t.rules),qK=(t,e,n,r)=>{if(r.localFile)return null;let o=Yh(t);return o?{format:1,fingerprint:XF(n.designSystem,r),config:o,rules:e.rules,sprites:e.sprites}:null},ZF=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||jK(),s=()=>e.designSystem?ft(ut(e.designSystem),ut($s),ie):ut($s),i={};for(let m of BK)e[m]!==void 0&&(i[m]=e[m]);let a,c=UK(n),f=c&&KA.has(n)&&!e.skipDesignSystemInit,u=!f&&!qA,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...BA,...i,...r};if(e.skipDesignSystemInit){if(a=O(t)||O(),a&&(a.__domDocument=n),a?.CSS_VARS){mt(a);try{Tt({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&Tt(Cm(a.CSS_MEDIA_VARS,d));let m=ms(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&Tt(m)}finally{pt()}}}else if(e.isolateDesignSystem&&!f){let m=Oh();m.__domDocument=n;let y=null,k=e.captureDesignSystem?v=>{y=v}:void 0;mt(m);try{a=Gn(s(),{...p,config:m,recordCss:k})}finally{pt()}y&&(e.preparedDesignSystem=qK(a,y,e,p))}else if(u){let m=O();m&&(m.__domDocument=n);let y=m&&m._scratchConfig&&!p.localFile?WK(e,n):null;KK(y)&&y.fingerprint===XF(e.designSystem,p)?(a=sE(y,m,p,zK(e.designSystem)),e.designSystemSource="prepared"):(a=Gn(s(),p),e.designSystemSource="processed"),a&&a!==m&&(a.__domDocument=n),c&&KA.add(n),qA=!0}else{let m=df(t,s(),{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.__domDocument=n,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}mt(m);try{a=Gn(m,p)}finally{pt()}c&&KA.add(n),qA=!0}let g=a?.CONFIG||a,h=g?.font;if(h){mt(g);try{LF(h)}finally{pt()}}return[a,o]},QF=(t,e)=>{let n={};e.state&&ft(n,e.state),t&&t.state&&ft(n,t.state);let r=e.polyglot;if(r){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(r.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=Ko({polyglot:r,pathname:qo(e.window),stored:o,stateLang:n.lang});(o||s!==or(n.lang,r))&&s!==n.lang&&(n.lang=s),r.translations&&GK(e,r,n,s)}return n.isRootState=!0,ut(n)},GK=(t,e,n,r)=>{let o=new Set,s=new Set,i=(l,f)=>{if(!s.has(l)){if(!Ho(t,l,n)){o.add(l);return}n[l]=f,s.add(l),Rn(t,l,f)}},a=e.translations[r];if(a&&typeof a=="object")for(let l in a)i(l,a[l]);let c=new Set(e.languages||[]);for(let l in e.translations)c.has(l)||i(l,e.translations[l]);o.size&&e.verbose!==!1&&t.verbose!==!1&&console.warn(`[polyglot] ${o.size} translation key${o.size===1?"":"s"} collide${o.size===1?"s":""} with a declared root-state key (${[...o].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 }}\`.`)},tj=(t,e)=>{A(t.routes)&&A(e.pages)&&Rt(t.routes,e.pages);let n=t.routes||e.pages||{},r=[];for(let o in n){if(o.charCodeAt(0)===47)continue;let i="/"+(o==="index"?"":o);Object.prototype.hasOwnProperty.call(n,i)?r.push(`${o} -> ${i}`):n[i]=n[o],delete n[o]}return r.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${r.length} explicitly declared route${r.length===1?"":"s"} over a same-named page key (${r.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.`),n},ej=t=>{Gl(t,t.sharedLibraries)};var YA={};$(YA,{default:()=>sq,getActiveLang:()=>di,getLanguages:()=>pd,getLocalStateLang:()=>bd,getPendingLang:()=>dd,initPolyglot:()=>Vy,loadTranslations:()=>gd,polyglotPlugin:()=>Sc,setLang:()=>md,translate:()=>hd,upsertTranslation:()=>yd});M();Lt();var YK="smbls_t_",XK="smbls_tv_",wc={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},nj=new WeakMap,rj=t=>{let e=nj.get(t);return e||(e={},nj.set(t,e)),e},oj=new WeakMap,cj=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,lj=t=>{let e=oj.get(t);return e||(e={seq:0,pending:cn(null),wake:null},oj.set(t,e)),e},sj=(t,e,n)=>new Promise(r=>{let o=null,s=()=>{o!==null&&clearTimeout(o),o=null,t.wake===s&&(t.wake=null),r()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(o=setTimeout(s,n))}),ij=(t,e)=>!!(t?.translations&&t.translations[e]),JK=3e3,ZK=2147483647,QK=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,ZK):0:JK},tq=new RegExp("\\p{L}","gu"),eq=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(tq);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(r&&typeof r=="object"&&o<8)for(let s in r)n(r[s],o+1)};for(let r=0;r<t.length;r++)n(t[r],0);return Array.from(e).join("")},nq=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let o=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!o)return null;let s="1em "+o;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function di(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return or(n?.lang||t?.state?.lang,e)}function dd(){let t=this?.context,e=cj(t,this?.state?.root||t?.state?.root);return e?lj(e).pending.get():null}function pd(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Uy=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),r=t;for(let o=0;o<n.length;o++){if(r==null)return;r=r[n[o]]}return r},aj=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=Uy(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function hd(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=aj(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=Uy(l,t);if(f!==void 0)return f}}let a=(s?.root||n?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Uy(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=aj(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=Uy(l,t);if(f!==void 0)return f}}return t}async function gd(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root;if(!r||!o)return;if(e&&e.inFlight===!0)return rj(o)[(r.storagePrefix||"smbls")+":"+t];let s=r.storagePrefix||YK,i=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):XK);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let f=wc.get(s+t);if(f)try{let u=JSON.parse(f),d={translations:{...o.translations||{}}};d.translations[t]=u,o.update&&o.update(d)}catch(u){console.warn("[polyglot] Failed to apply language update:",u.message)}}let a=rj(o),c=(r.storagePrefix||"smbls")+":"+t;if(a[c])return a[c];let l=this;return a[c]=(async()=>{try{let f=r.fetch,u=parseInt(wc.get(i+t),10)||0,d,p,g;if(D(f)){let m=await f(t,u,l);if(!m||m.changed===!1)return;d=m.translations||m.data||m,p=m.version||0,g=!0}else if(A(f)){let m=l.getDB||(()=>n.fetch),y=D(m)?await m.call(l):n.fetch;if(!y)return;let k=f.rpc||f.from||"get_translations_if_changed",v={p_lang:t,p_cached_version:u,...f.params||{}},S=await y.rpc({from:k,params:v});if(S.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,S.error;let w=S.data;if(!w||!w.changed)return;d=w.translations||{},p=w.version||0,g=!0}else return;if(!g||!d)return;wc.set(s+t,JSON.stringify(d)),p&&wc.set(i+t,String(p));let h={translations:{...o.translations||{}}};h.translations[t]=d,o.update&&o.update(h)}catch(f){if(r.verbose!==!1){let u=f?.message||f?.details||(typeof f=="object"?JSON.stringify(f):String(f));console.warn("[polyglot] Failed to load translations for",t,"-",u)}}finally{delete a[c]}})(),a[c]}var rq=(t,e,n)=>{let r=t.__ref;if(!r||r.contentManaged||n==null||typeof n=="object")return;let o=r.__textNode;if(!o||o.parentNode!==e)return;let s=String(n);o.nodeValue!==s&&(o.nodeValue=s)};async function md(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!o)return;e?.persist!==!1&&wc.set(Bi(r),t);let i=lj(cj(n,o)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(r?.fetch){let f=this.call("loadTranslations",t);if(!ij(o,t)){i.pending.set(t);let u=null;if(await sj(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!ij(o,t)&&!r.translations?.[t])return}}let l=QK(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=nq(s,eq(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await sj(i,f,l),!c()))return}i.pending.set(null),oq(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function oq(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>gl(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&Rn(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c])){for(let f in l)n[c][f]=l[f];Rn(t,c,n[c])}}if(r&&s){let c=r.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{rq(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function yd(t,e,n){let r=this?.context,o=r?.polyglot,s=this?.state?.root||r?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),o?.translations?.[e]&&(o.translations[e][t]=n),o?.fetch&&A(o.fetch)){let i=this.getDB||(()=>r.fetch),a=D(i)?await i.call(this):r.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function Vy(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let r=wc.get(Bi(e)),o=Ko({polyglot:e,pathname:qo(t.window),stored:r,stateLang:n.lang||t?.state?.lang}),s=t?.document||globalThis.document;s?.documentElement&&(s.documentElement.lang=o),n.update&&n.lang!==o&&n.update({lang:o}),e.fetch&&!(e.translations&&e.translations[o])&&await this.call("loadTranslations",o)}function bd(t){try{let e=di.call(this),n=this?.state;if(!n)return"";let r=t.lastIndexOf(".");if(r===-1)return n[t+e]??"";let o=t.substring(0,r).split("."),s=n;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(r+1)+e]??""}catch{return""}}var Sc={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Vy.call(t))}},sq=Sc;var _d={polyglot:hd,getLocalStateLang:bd,getActiveLang:di,getLang:di,setLang:md,getPendingLang:dd,getLanguages:pd,loadTranslations:gd,upsertTranslation:yd};var JA={};$(JA,{SYSTEM_METRICS:()=>wd,capsizeHandler:()=>XA,capsizePlugin:()=>zy,computeCapsize:()=>fj,default:()=>iq,resolveFontSizePx:()=>uj,resolveMetrics:()=>dj});var wd={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}},Hy=t=>parseFloat(t.toFixed(4)),fj=(t,e,n)=>{let{ascent:r,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=r+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(r-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${Hy(t/16)}rem`,lineHeight:`${Hy(f)}px`,capHeightTrim:`${Hy(-p)}em`,baselineTrim:`${Hy(-g)}em`}},uj=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:r}=n;if(r?.sequence){let s=String(t).toUpperCase(),i=r.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(n.typography?.browserDefault||16):o},dj=(t,e)=>{let r=e?.designSystem?.font_family||{};if(t){let s=r[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(wd[i])return wd[i]}let o=r.default||Object.keys(r)[0];if(o){let s=r[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(wd[a])return wd[a]}}return null},XA=(t,e,n,r)=>{if(!t)return;let o=uj(e.fontSize,r);if(!o)return;let s=dj(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=fj(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},zy={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},iq=zy;var tC=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),eC=t=>pn(t)?t.library!==void 0?t.library:t.key??t.name:t,aq=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[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=eC(i);if(!tC(a))return i;let c=s(a);return c?pn(i)?{...i,library:c}:c:null}).filter(Boolean)},nC=new WeakMap,cq={lazy:!0,window:globalThis},pj=["components","pages","functions","methods","snippets"],lq=pj.filter(t=>t!=="methods"),ZA=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let r=n.pop();if(!r||typeof r!="object"||e.has(r))continue;e.add(r);let o;try{o=Object.keys(r)}catch{continue}for(let s of o){let i;try{i=r[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},fq=(t,e)=>{if(Bo(e)||Bo(t))return"boot-revived";if(ZA(t))return"local";if(e&&typeof e=="object"){if(ZA(e.app))return"local";for(let n of lq)if(ZA(e[n]))return"local"}return"raw-json"},hj=(t,e)=>{let n=e?t[e]:t;if(!A(n))return;let r=me(n,{},cq);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},uq=t=>{if(!A(t)||Bo(t))return t;for(let e of[...pj,"app"])hj(t,e);return Ei(t)},dq=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=pn(n)?n.library:n;A(r)&&!e.has(r)&&uq(r)}return t},rC=new WeakMap,QA=t=>{let e=nC.get(t);e&&(nC.delete(t),WF(e))},gj=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,mj=t=>t.sync!==!1&&ti(t)||gj(t),yj=t=>{let e={shorthand:null,analyze:null,inspect:null,fetch:null,sync:null,windows:null,dropdown:null,tooltip:null};for(let n of HN(t))e[n]=de(n);return mj(t)&&(e.sync=de("sync")),e},oC=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(E(t)?t:"smblsapp");e.define=e.define||bc,e.cssPropsRegistry=At,e.window=jF(e);let s=yj(e),i=fq(t,e);if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(k=>{let v=eC(k);return typeof v=="string"||tC(v)})){e.sharedLibraries=aq(e.sharedLibraries,e.symbolsConfig);let k=new Set(e.sharedLibraries.map(S=>eC(S)).filter(S=>A(S)&&!tC(S))),v=await Xl(e.sharedLibraries,{apiBaseUrl:UA()});e.sharedLibraries=i==="raw-json"?v:dq(v,k)}yF(e.sharedLibraries),ej(e)}ti(e)&&cc(e,e.designSystem);let a=rC.get(e);a&&(rC.delete(e),e.preparedDesignSystem=await a);let[c,l]=ZF(o,e);if(e.designSystem=c,e.registry=l,e.cases||(e.cases={}),e.shorthand){let y=await(s.shorthand||de("shorthand"));y&&y.shorthandPlugin.prepareContext(e)}let f=QF(t,e);if(e.state=f,Al(f),e.pages=tj(t,e),e.components=BF(e),e.utils=UF(e),Gr[e.packageManager]){let y=zF(e);y&&y.deferred?(y.blocking&&await GA({...e,dependencies:y.blocking}),nC.set(e,y.deferred)):e.dependencies=await GA(e)}if(e.methods=VF(e),e.routerOptions=q$(t,e),e.defaultExtends=[Qg],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(y=>!y||typeof y!="object")){let y=e.plugins.filter(k=>!k||typeof k!="object");e.plugins=e.plugins.filter(k=>k&&typeof k=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${y.length} non-plugin entr${y.length===1?"y":"ies"} (${y.map(k=>JSON.stringify(k)).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.`)}let u=e.globalScope;e.globalScope&&A(e.globalScope)&&(e.globalScope=Uo(e.globalScope));let d=(y,k)=>{i==="raw-json"&&hj(y,k)};d(t),d(e,"components"),d(e,"pages"),d(e,"functions"),d(e,"methods"),d(e,"snippets"),d(e,"app"),Kl(e,u),ql(e);let p=y=>y&&typeof y.select=="function";if(e.fetch?.__resolved&&!p(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!p(e.db.__resolved)&&delete e.db.__resolved,e.polyglot&&!Be(e,"polyglot")){e.plugins.push(Sc);for(let y in _d)typeof e.functions[y]!="function"&&(e.functions[y]=_d[y])}if(Be(e,"helmet")||e.plugins.push(jy),Be(e,"inertOutside")||e.plugins.push(Gg),e.fetch){let y=await(s.fetch||de("fetch"));if(y){Be(e,"fetch")||e.plugins.push(y.fetchPlugin);let{fetchFunctions:k}=y;for(let v in k)typeof e.functions[v]!="function"&&(e.functions[v]=k[v])}}if(e.designSystem?.typography?.useCapsize!==!1&&!Be(e,"capsize")&&(e.plugins.push(zy),e.cssPropsRegistry.useCapsize=XA),e.shorthand&&!Be(e,"shorthand")){let y=await(s.shorthand||de("shorthand"));y&&e.plugins.push(y.shorthandPlugin)}if(e.analyze&&!Be(e,"analyze")){let y=await(s.analyze||de("analyze"));if(y){let k=e.analyze===!0?{}:e.analyze;e.analyze=y.createAnalyzeState(k),e.plugins.push(y.analyzePlugin)}}let g=e.sync!==!1&&ti(e),h=mj(e)?await(s.sync||de("sync")):null;if(h&&g&&!Be(e,"sync")&&e.plugins.push(h.syncPlugin),e.inspect&&!Be(e,"inspect")){let y=await(s.inspect||de("inspect"));y&&e.plugins.push(y.inspectPlugin)}h&&gj(e)&&!Be(e,"notifications")&&e.plugins.push(h.notificationsPlugin);let m=async y=>{if(e[y]===!1)return;let k=await(s[y]||de(y));if(!k)return;let{components:v,functions:S}=k;for(let w in v)A(e.components[w])||(e.components[w]=v[w]);for(let w in S)typeof e.functions[w]!="function"&&(e.functions[w]=S[w])};return await m("windows"),await m("dropdown"),await m("tooltip"),e},Sd=async(t,e)=>{A(e)||(e={});let n=V$(e);yj(e);let r=JF(e);if(r&&rC.set(e,r),n){let u=j$(e);if(await Wn(),!u())return U$(A(t)?t:{})}Zn(t)?(t={},e.parent=t):E(t)?(t={},e.key=t):A(t)||(t={});let o=e.window||(typeof window<"u"?window:null),s=CF(e,o),i=s?TF(e):null;if(await oC(t,e),e.useReset!==!1){let u=e.document||(typeof document<"u"?document:null);if(u){let d=u.head.querySelector("style[data-smbls]");d||(d=u.createElement("style"),d.setAttribute("data-smbls",""),u.head.appendChild(d));let p=d.sheet;if(p){try{p.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{p.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&A(e.app))for(let u in e.app)t[u]===void 0&&(t[u]=e.app[u]);t.extends=mF(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await KF({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let u of e.plugins)if(typeof u.beforeCreate=="function")try{u.beforeCreate(t,e)}catch(d){console.error(`[smbls] plugin "${u.name||"?"}" beforeCreate error:`,d)}let a=e.document;if(!a||!a.createElement)return QA(e),t;let c=e.parent||a.body,l={verbose:e.verbose,context:e,...e.domqlOptions};if(s){let u=await DF(zt,t,c,e,o,i,l,n);return QA(e),u}let f=n?await z$(t,c,e,l,n):zt(t,c,e.key,l);return QA(e),typeof window<"u"&&!e.document&&(window.__smblsApp=f),f};var sC=(t,e)=>ft(t,A(e)?e:{}),pq=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 n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},hq=()=>{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}},bj=t=>{let e=hq();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},iC=(t,e=Co,n)=>{let r={...Co,...sC(e,n)};return bj(r),pq(r),Sd(t,r).then(s=>{if(cE(s))return s.destroy=()=>fi(s),s;if(hE(s,r),s.destroy=()=>fi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=zu(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),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})},gq=(t,e=Co,n)=>{let r=iC(t,e,n),o={...Co,...sC(e,n)},s=o.key;return s&&o.editor&&o.editor.async&&de("fetchOnCreate").then(i=>{i&&i.fetchAsync(r,s,{utils:Hu,...o})}),r},mq=async(t,e=Co,n)=>{let r={...Co,...sC(e,n)};bj(r);let o=e.key;if(o&&r.editor){let i=await de("fetchOnCreate");i&&await i.fetchSync(o,r)}let s=await Sd(t,r);return cE(s)?(s.destroy=()=>fi(s),s):(hE(s,r),s.destroy=()=>fi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=zu(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s)},yq=(t={},e=Co,n)=>iC({deps:{isUndefined:Wt},...t},ft({domqlOptions:{onlyResolveExtends:!0}},e),n);Lt();M();zp();var _j={"@symbo.ls/signal":Rc,"@symbo.ls/scratch":Ix,"@symbo.ls/element":Yg,"@symbo.ls/css":ig,"@symbo.ls/utils":tf,"@symbo.ls/state":U0,"@symbo.ls/router":Za,"@symbo.ls/polyglot":YA,"@symbo.ls/helmet":FA,"@symbo.ls/fetch":Ni,"@symbo.ls/capsize":JA,"@symbo.ls/shorthand":GE,"@symbo.ls/analyze":Yu,"@symbo.ls/inspect":Ju,"@symbo.ls/channels":VA},wj=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in _j)r[o]||(r[o]=_j[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},Sj=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(r,o))continue;let i=a=>(Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return r},xj=["@symbo.ls/sdk"],kj=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!="object"&&typeof s!="function"||r[o]||(r[o]=s)}return r};var lC={};$(lC,{BUILD_DOMQL_SYSTEM_PROMPT:()=>Mj,DEFAULT_MAX_TOKENS:()=>Xy,DEFAULT_MODEL:()=>Oo,DEFAULT_PROVIDER:()=>vd,DEFAULT_TEMPERATURE:()=>Yy,MODEL_TIER_ALIASES:()=>cC,PROVIDER_MODELS:()=>kd,SIMONE_BASE_URL:()=>xd,SIMONE_CHAT_PATH:()=>Wy,SIMONE_CODE_PATH:()=>Ky,SIMONE_CODE_SYMBOLS_PATH:()=>qy,SIMONE_HEALTH_PATH:()=>Gy,SIMONE_TOOLS_PATH:()=>vj,WORKSPACE_SYSTEM_PROMPT:()=>Ij,buildMessages:()=>Oj,chat:()=>Ed,health:()=>Tj,parseSimoneResponse:()=>Dj,resolveModel:()=>$j,streamChat:()=>Ed,streamCode:()=>Aj,streamCodeSymbols:()=>Cj,toLegacyEnvelope:()=>Lj});var xd="https://symbols-service-production.up.railway.app",Wy="/api/chat",Ky="/api/code",qy="/api/code-symbols",Gy="/api/health",vj="/api/tools",kd={"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"]},vd="gemini",Oo=kd[vd][0],Yy=.7,Xy=4096;function bq(t){if(!t)return null;for(let[e,n]of Object.entries(kd))if(n.includes(t))return e;return null}function Ej(t,e){return t?t.replace(/\/$/,"")+e:e}function _q(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 Ed(t,e={},n){let{baseUrl:r=xd,path:o=Wy,model:s=Oo,provider:i=bq(s)||vd,temperature:a=Yy,maxTokens:c=Xy,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 p={messages:t,provider:i,model:s,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(Ej(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let S=g.statusText;try{let _=await g.text();try{let b=JSON.parse(_);S=b.error||b.detail||S}catch{S=_||S}}catch{}let w=new Error(`simone: HTTP ${g.status} \u2014 ${S}`);throw w.status=g.status,w}if(!g.body||typeof g.body.getReader!="function"){let S=await g.text();return n&&n(S),{text:S,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],k=[],v="";try{for(;;){let{done:S,value:w}=await h.read();if(S)break;v+=m.decode(w,{stream:!0});let _=v.indexOf(`
168
+ `);for(;_!==-1;){let b=v.slice(0,_).trim();if(v=v.slice(_+1),b){let x=_q(b);if(x?.done)return{text:y.join(""),errors:k};let C=x?.chunk;C?.delta&&(y.push(C.delta),n&&n(C.delta)),C?.error&&k.push(C.error)}_=v.indexOf(`
169
+ `)}}return{text:y.join(""),errors:k}}finally{h.cancel().catch(()=>{})}}function Aj(t,e={},n){return Ed(t,{...e,path:Ky},n)}function Cj(t,e={},n){return Ed(t,{...e,path:qy},n)}async function Tj(t={}){let{baseUrl:e=xd,signal:n,headers:r}=t,o=await fetch(Ej(e,Gy),{method:"GET",headers:r,signal:n});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function Oj({system:t,history:e=[],user:n,context:r}){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(n){let s=n;if(r!=null){let i=typeof r=="string"?r:JSON.stringify(r,null,2);s=`${s}
169
170
 
170
171
  ---
171
172
  Context:
172
173
  \`\`\`json
173
174
  ${i}
174
- \`\`\``}o.push({role:"user",content:s})}return o}var vF=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,U7=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function V7(t){let e=[];for(let n of t.matchAll(vF))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function H7(t){return t.replace(vF,"").trim()}function bA(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 kF(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&U7.has(t.type)}function EF(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=V7(e),r=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=n.filter(i=>i.lang==="json"),s=H7(e);for(let i of o){let a=bA(i.code);if(kF(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(r.length>0){let i=r[0].code,a=bA("["+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=bA(e);if(kF(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 AF(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 CF=["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(" "),TF=["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(`
175
- `),_A={Starter:bo,Free:bo,Pro:"claude-opus-4-6"};function OF(t){return t?_A[t]||t:bo}Xg(Tf);pF(void 0,{smbls:SA,"@symbo-ls/simone-server":wA});hF(void 0,{"@symbo.ls/windows":()=>({...Rv,...Tv}),"@symbo.ls/dropdown":()=>({...Nv,...jv})});
175
+ \`\`\``}o.push({role:"user",content:s})}return o}var Pj=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,wq=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function Sq(t){let e=[];for(let n of t.matchAll(Pj))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function xq(t){return t.replace(Pj,"").trim()}function aC(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 Rj(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&wq.has(t.type)}function Dj(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=Sq(e),r=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=n.filter(i=>i.lang==="json"),s=xq(e);for(let i of o){let a=aC(i.code);if(Rj(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(r.length>0){let i=r[0].code,a=aC("["+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=aC(e);if(Rj(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 Lj(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 Ij=["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(" "),Mj=["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(`
176
+ `),cC={Starter:Oo,Free:Oo,Pro:"claude-opus-4-6"};function $j(t){return t?cC[t]||t:Oo}Am(Gf);wj(void 0,{smbls:fC,"@symbo-ls/simone-server":lC});Sj(void 0,{"@symbo.ls/windows":()=>({...yE,...gE}),"@symbo.ls/dropdown":()=>({...vE,...AE})});
176
177
  //# sourceMappingURL=smbls.cjs.map