smbls 3.14.855 → 3.14.856
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/smbls.cjs +46 -46
- package/dist/smbls.cjs.map +3 -3
- package/dist/smbls.core.chunk-BHRVYUXM.esm.js +7 -0
- package/dist/smbls.core.chunk-BHRVYUXM.esm.js.map +6 -0
- package/dist/smbls.core.chunk-FPRKFQFJ.esm.js +36 -0
- package/dist/smbls.core.chunk-FPRKFQFJ.esm.js.map +1 -0
- package/dist/{smbls.core.chunk-7RWDIF2S.esm.js → smbls.core.chunk-GC6GDPKF.esm.js} +15 -15
- package/dist/smbls.core.chunk-GC6GDPKF.esm.js.map +1 -0
- package/dist/smbls.core.chunk-J4QHWJGA.esm.js +2 -0
- package/dist/smbls.core.chunk-J4QHWJGA.esm.js.map +1 -0
- package/dist/smbls.core.chunk-VG333WGF.esm.js +22 -0
- package/dist/smbls.core.chunk-VG333WGF.esm.js.map +6 -0
- package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js → smbls.core.dropdown-XABH5ZRW.esm.js} +2 -2
- package/dist/smbls.core.esm.js +1 -1
- package/dist/{smbls.core.fetch-WPTPOQQO.esm.js → smbls.core.fetch-JWDHRWJY.esm.js} +2 -2
- package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js → smbls.core.fetchOnCreate-IYA76D26.esm.js} +2 -2
- package/dist/{smbls.core.inspect-35DHLAA5.esm.js → smbls.core.inspect-LGTX7BS7.esm.js} +2 -2
- package/dist/smbls.core.sync-CN2JST7C.esm.js +2 -0
- package/dist/smbls.core.sync-CN2JST7C.esm.js.map +6 -0
- package/dist/{smbls.core.windows-XMCWCGON.esm.js → smbls.core.windows-MYD3DCHT.esm.js} +2 -2
- package/dist/smbls.embed.iife.js.map +1 -1
- package/dist/smbls.esm.js +46 -46
- package/dist/smbls.esm.js.map +1 -1
- package/dist/smbls.iife-string.js +2 -2
- package/dist/smbls.iife.js +1 -1
- package/dist/smbls.iife.js.map +1 -1
- package/dist/smbls.server-utils.esm.js +9 -9
- package/dist/smbls.server-utils.esm.js.map +3 -3
- package/dist/smbls.socket-io-client.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/smbls.core.chunk-7RWDIF2S.esm.js.map +0 -1
- package/dist/smbls.core.chunk-CCELIELA.esm.js +0 -2
- package/dist/smbls.core.chunk-CCELIELA.esm.js.map +0 -1
- package/dist/smbls.core.chunk-F7PSOVLR.esm.js +0 -36
- package/dist/smbls.core.chunk-F7PSOVLR.esm.js.map +0 -1
- package/dist/smbls.core.chunk-FNPJKVQM.esm.js +0 -22
- package/dist/smbls.core.chunk-FNPJKVQM.esm.js.map +0 -6
- package/dist/smbls.core.chunk-ULA4ERZ5.esm.js +0 -7
- package/dist/smbls.core.chunk-ULA4ERZ5.esm.js.map +0 -6
- package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js +0 -2
- package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js.map +0 -6
- /package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js.map → smbls.core.dropdown-XABH5ZRW.esm.js.map} +0 -0
- /package/dist/{smbls.core.fetch-WPTPOQQO.esm.js.map → smbls.core.fetch-JWDHRWJY.esm.js.map} +0 -0
- /package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js.map → smbls.core.fetchOnCreate-IYA76D26.esm.js.map} +0 -0
- /package/dist/{smbls.core.inspect-35DHLAA5.esm.js.map → smbls.core.inspect-LGTX7BS7.esm.js.map} +0 -0
- /package/dist/{smbls.core.windows-XMCWCGON.esm.js.map → smbls.core.windows-MYD3DCHT.esm.js.map} +0 -0
package/dist/smbls.cjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";var a4=Object.create;var bp=Object.defineProperty;var c4=Object.getOwnPropertyDescriptor;var l4=Object.getOwnPropertyNames;var f4=Object.getPrototypeOf,u4=Object.prototype.hasOwnProperty;var D=(t,e)=>()=>(t&&(e=t(t=0)),e);var n_=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),F=(t,e)=>{for(var n in e)bp(t,n,{get:e[n],enumerable:!0})},UT=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l4(e))!u4.call(t,o)&&o!==n&&bp(t,o,{get:()=>e[o],enumerable:!(r=c4(e,o))||r.enumerable});return t};var VT=(t,e,n)=>(n=t!=null?a4(f4(t)):{},UT(e||!t||!t.__esModule?bp(n,"default",{value:t,enumerable:!0}):n,t)),d4=t=>UT(bp({},"__esModule",{value:!0}),t);var f_={};F(f_,{WRITE_JOURNAL:()=>ll,batch:()=>dl,countUntrackedReads:()=>g4,createComputed:()=>m4,createEffect:()=>y4,createSignal:()=>jn,getObserver:()=>a_,journalWrite:()=>ul,noteUntrackedRead:()=>Ie,setObserver:()=>p4,settled:()=>l_,untrack:()=>h4});function h4(t){let e=Qt;if(!e)return t();Qt=null;try{return t()}finally{Qt=e}}function Ie(){r_!==0&&_p++}function g4(t){let e=_p;r_++;let n;try{t()}finally{n=_p-e,--r_===0&&(_p=0)}return n}function jn(t){let e=new Set;function n(){return Qt&&(e.add(Qt),Qt._sources.add(s)),t}function r(i){i!==t&&(t=i,E4(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function m4(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){i_(o);let s=Qt;Qt=o;try{e=t(),n=!1}finally{Qt=s}},_notify(){n=!0,r.size>0&&KT(r)},get(){return Qt&&(r.add(Qt),Qt._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function ul(t){ll.push(t),ll.length>32&&ll.shift()}function y4(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;i_(r);let o=Qt;Qt=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Qt=o}},_notify(){r._disposed||(al>0?cl.push(r):wp>0?o_.push(r):c_(r))},dispose(){r._disposed=!0,i_(r)}};return r._execute(),r}function dl(t){al++;try{t()}finally{al--,al===0&&k4()}}function HT(){return typeof performance<"u"?performance.now():Date.now()}function c_(t){Xe.add(t),!xp&&(Sp||(Sp=!0,queueMicrotask(WT)))}function S4(){if(Xe.size===1){let[e]=Xe;return Xe.clear(),e._disposed?0:(e._execute(),1)}Hi.length=0;for(let e of Xe)Hi.push(e);Xe.clear(),Hi.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<Hi.length;e++){let n=Hi[e];n._disposed||(n._execute(),t++)}return Hi.length=0,t}function WT(t=0,e=0){if(Sp=!1,Xe.size===0){fl.length&&s_();return}xp=!0;let n=HT(),r=!1;try{for(;Xe.size>0;){if(++t>zT){let o=new Map;for(let c of Xe){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 ll)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",zT,"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>"),Xe.clear();break}if(e+=S4(),Xe.size>0&&(e>=_4||t>=w4)&&HT()-n>b4){r=!0,setTimeout(()=>WT(t,e),0);break}}}finally{r||(xp=!1,fl.length&&s_())}}function x4(){return Xe.size===0&&!Sp&&!xp&&cl.length===0&&al===0}function s_(){if(fl.length===0||!x4())return;let t=fl.splice(0);for(let e=0;e<t.length;e++)t[e]()}function l_(){return new Promise(t=>{fl.push(t),queueMicrotask(s_)})}function k4(){for(let t=0;t<cl.length;t++)c_(cl[t]);cl.length=0}function KT(t){wp++;try{for(let e of t)e._notify()}finally{if(wp--,wp===0&&o_.length>0){let e=o_.splice(0);for(let n=0;n<e.length;n++)c_(e[n])}}}function E4(t){KT(t)}function i_(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Qt,al,cl,a_,p4,r_,_p,wp,o_,Xe,Sp,ll,xp,zT,b4,_4,w4,Hi,fl,u_=D(()=>{Qt=null,al=0,cl=[],a_=()=>Qt,p4=t=>{Qt=t};r_=0,_p=0;wp=0,o_=[];Xe=new Set,Sp=!1,ll=[];xp=!1,zT=1e3,b4=8,_4=256,w4=4;Hi=[];fl=[]});var y_={};F(y_,{RESERVED_STORE_METHODS:()=>pl,STORE_METHOD_NAMES:()=>m_,__resetStateShadowWarnings:()=>v4,createScopeStore:()=>O4,createStore:()=>Ep,getSignals:()=>T4,isStore:()=>C4,warnStateKeyShadowsMethod:()=>g_});function g_(t,e){let n=(e||"")+"::"+t;if(h_.has(n))return;h_.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: ${m_.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function v4(){h_.clear()}function Cp(t,e,n){if(t===e)return!0;if(n>A4)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(!Cp(t[r],e[r],n+1))return!1;return!0}if(Ap(t)&&Ap(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)||!Cp(t[s],e[s],n+1))return!1;return!0}return!1}function Ep(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=b=>Object.prototype.hasOwnProperty.call(o,b)&&Object.prototype.hasOwnProperty.call(s,b),a=b=>{if(!r||!e||typeof e.isDataOnlyKey!="function")return!1;let w=r.indexOf(".");return!!e.isDataOnlyKey(w===-1?r:r.slice(0,w),b)},c=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let b in t){if(b==="__proto__"||!Object.prototype.hasOwnProperty.call(t,b))continue;if(b.startsWith("__")){s[b]=t[b];continue}pl.has(b)&&!a(b)&&g_(b,r);let w=t[b];n<c&&w&&typeof w=="object"&&!p_(w)?(s[b]=w,o[b]=jn(Ep(w,e,n+1,d_(r,b)))):(s[b]=w,o[b]=jn(w))}let l=new Proxy(s,{get(b,w){if(w===wn)return!0;if(w===vp)return o;if(w==="__raw")return b;if(w==="$update")return u;if(w==="$parse")return g;if(w==="$clean")return h;if(w==="$keys")return m;if(w==="$values")return y;if(w==="$replace")return x;if(w==="$add")return k;if(w==="$remove")return C;if(w==="$destroy")return _;if(w==="$quietUpdate")return d;if(w==="$settled")return p;if(pl.has(w)&&!Object.prototype.hasOwnProperty.call(o,w))switch(w){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return x;case"add":return k;case"remove":return C;case"destroy":return _;case"quietUpdate":return d}if(w==="__element")return b.__element;if(w==="parent")return b.parent;if(w==="root")return b.root;if(Object.prototype.hasOwnProperty.call(o,w)){let A=o[w].get();if(A!==void 0||!(w!=="root"&&b.root&&b.root!==l))return A}if(b[w]!==void 0)return typeof w=="string"&&Ie(),b[w];let S=typeof w=="string"&&!w.startsWith("__")&&w!=="then"&&w!=="constructor"&&a_()!=null;if(w!=="root"&&b.root&&b.root!==l){let A=b.root[w];return S&&!Object.prototype.hasOwnProperty.call(o,w)&&(o[w]=jn(void 0),o[w].get()),A}if(S)return o[w]=jn(void 0),o[w].get();typeof w=="string"&&w.charCodeAt(0)===95&&w.charCodeAt(1)===95&&Ie()},set(b,w,S){if(w==="__proto__")return!1;if(w==="__element"||w==="parent"||w==="root"||typeof w=="string"&&w.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,w))return b[w]=S,!0;pl.has(w)&&!a(w)&&g_(w,r);let A=d_(r,w);if(Object.prototype.hasOwnProperty.call(o,w))if(S&&typeof S=="object"&&!p_(S)){if(S===b[w])return!0;let T=o[w].peek(),O=T&&T[wn]?T.$parse():T;if(Cp(S,O,0))return!0;b[w]=S,ul(A),o[w].set(Ep(S,e,n+1,A))}else{if(Array.isArray(S)&&S!==b[w]&&Array.isArray(o[w].peek())&&Cp(S,o[w].peek(),0))return!0;o[w].peek()!==S&&ul(A),b[w]=S,o[w].set(S)}else b[w]=S,S&&typeof S=="object"&&!p_(S)?o[w]=jn(Ep(S,e,n+1,A)):o[w]=jn(S);return!0},has(b,w){return Ie(),typeof w=="string"&&w.charCodeAt(0)===36&&pl.has(w.slice(1))?!0:w in b},ownKeys(b){return Ie(),Object.keys(o).filter(i)},getOwnPropertyDescriptor(b,w){return Ie(),i(w)?{enumerable:!0,configurable:!0,value:o[w].peek()}:Object.getOwnPropertyDescriptor(b,w)},deleteProperty(b,w){if(Object.prototype.hasOwnProperty.call(o,w)){let S=o[w];S.peek()!==void 0&&ul(d_(r,w)),S.set(void 0),S._subscribers.size===0&&delete o[w]}return delete b[w],!0}});function f(b,w){let S=s.__element;return!S||typeof S.onBeforeStateUpdate!="function"||w?.preventBeforeStateUpdateListener?!0:S.onBeforeStateUpdate(S,l,S.context,{changes:b,options:w})!==!1}function u(b,w){if(b&&typeof b=="object"&&!f(b,w))return l;dl(()=>{for(let A in b)A!=="__proto__"&&(l[A]=b[A])});let S=s.__element;return S&&S.onUpdate&&!w?.quiet&&S.onUpdate(S,l,S.context),l}function d(b){return u(b,{quiet:!0})}function p(){return l_().then(()=>l)}function g(b){if(Ie(),b||(b=new Set),b.has(l))return"[Circular]";b.add(l);let w={};for(let S in o){if(S==="parent"||S==="root"||S.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,S))continue;let A=o[S].peek();A&&A[wn]?w[S]=A.$parse(b):w[S]=A}return w}function h(){return dl(()=>{for(let b in o)delete l[b]}),l}function m(){return Ie(),Object.keys(o).filter(i)}function y(){return Ie(),Object.keys(o).filter(i).map(b=>o[b].peek())}function x(b,w){return b&&typeof b=="object"&&!f(b,w)||dl(()=>{for(let S in o)S in b||delete l[S];for(let S in b)S!=="__proto__"&&(l[S]=b[S])}),l}function k(b,w){let S=Object.prototype.hasOwnProperty.call(o,b)?o[b].peek():s[b];if(Array.isArray(S))return l[b]=[...S,w],l;if(S&&typeof S=="object"&&!Array.isArray(S)){if(Ap(w))S[wn]?S.$update(w):l[b]={...S,...w};else{let A=String(Object.keys(S).length);S[wn]?S.$update({[A]:w}):l[b]={...S,[A]:w}}return l}return l[b]=w,l}function C(b){return delete l[b],l}function _(){h(),s.__element=null,s.parent=null}return l}function C4(t){return t&&t[wn]===!0}function T4(t){return t[vp]}function O4(t,e){let n={},r={};if(t&&typeof t=="object")for(let a in t)r[a]=t[a],n[a]=jn(t[a]);let o=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[vp];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[wn]?c[kp]:null}return null},s=()=>{let a=e;for(;a&&a[wn];)a=a[kp];return a&&typeof a=="object"?a:null};return new Proxy(r,{get(a,c){return c===wn?!0:c===vp?n:c===kp?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]=jn(l),!0)},has(a,c){if(Ie(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[wn]?l[kp]:null}return!1},ownKeys(){return Ie(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return Ie(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var wn,vp,m_,pl,h_,d_,p_,A4,Ap,kp,qT=D(()=>{u_();wn=Symbol("store"),vp=Symbol("signals"),m_=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],pl=new Set(m_),h_=new Set,d_=(t,e)=>t?t+"."+e:String(e);p_=t=>!t||typeof t!="object"||Array.isArray(t)||t[wn]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Ap(t),A4=12,Ap=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};kp=Symbol("scope.parent")});var Jo,Tp=D(()=>{Jo="3.14.790"});var Wi,Ki,b_,__=D(()=>{Tp();Wi="__SMBLS_SIGNAL_INSTANCES__",Ki=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[Wi]||(r[Wi]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||Jo),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},b_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Wi]}});var qi,GT,w_,YT=D(()=>{Tp();__();qi="__SMBLS_SIGNAL_ENGINE__",GT=(t,e,n)=>{let r=e||Jo,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[qi];return s&&s.engine&&s.version===r?(Ki(r,o,!0),s.engine):(s||(o[qi]={version:r,engine:t}),Ki(r,o,!1),t)},w_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[qi]}});var $t,Sn,XT,K,Op,Me,hl,Qo,Rp,Pp,ur,Lp,Et,ZT,JT,QT,Dp,tO,R4,eO=D(()=>{u_();qT();YT();Tp();__();$t=GT({...f_,...y_,VERSION:Jo},Jo),Sn=$t.createSignal,XT=$t.createComputed,K=$t.createEffect,Op=$t.batch,Me=$t.getObserver,hl=$t.setObserver,Qo=$t.untrack||(t=>{let e=$t.getObserver();if(!e)return t();$t.setObserver(null);try{return t()}finally{$t.setObserver(e)}}),Rp=$t.settled||(()=>Promise.resolve()),Pp=$t.countUntrackedReads||(t=>(t(),0)),ur=$t.createStore,Lp=$t.createScopeStore,Et=$t.isStore,ZT=$t.getSignals,JT=$t.STORE_METHOD_NAMES,QT=$t.RESERVED_STORE_METHODS,Dp=$t.warnStateKeyShadowsMethod,tO=$t.__resetStateShadowWarnings,R4=$t.VERSION});var gl={};F(gl,{RESERVED_STORE_METHODS:()=>QT,SIGNAL_ENGINE_KEY:()=>qi,SIGNAL_INSTANCES_KEY:()=>Wi,STORE_METHOD_NAMES:()=>JT,VERSION:()=>R4,__resetSignalEngine:()=>w_,__resetSignalInstances:()=>b_,__resetStateShadowWarnings:()=>tO,batch:()=>Op,countUntrackedReads:()=>Pp,createComputed:()=>XT,createEffect:()=>K,createScopeStore:()=>Lp,createSignal:()=>Sn,createStore:()=>ur,getObserver:()=>Me,getSignals:()=>ZT,isStore:()=>Et,registerSignalInstance:()=>Ki,setObserver:()=>hl,settled:()=>Rp,untrack:()=>Qo,warnStateKeyShadowsMethod:()=>Dp});var Mt=D(()=>{eO()});var x_,k_,R,kt,yl=D(()=>{"use strict";x_=globalThis,k_=globalThis,R=globalThis,kt=R.document});var hr,bl,ge,_l=D(()=>{"use strict";yl();hr=t=>(typeof Node=="object"?t instanceof R.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,bl=t=>(typeof HTMLElement=="object"?t instanceof R.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,ge=t=>t===null||typeof t!="object"?!1:typeof R<"u"&&(R.Node&&t instanceof R.Node||R.Window&&t instanceof R.Window||t===R||kt!==void 0&&t===kt)});var E,v,me,L,Ip,Mp,I,Np,V,Ut,Xt,wl,ye,E_,Wt=D(()=>{"use strict";_l();E=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,v=t=>typeof t=="string",me=t=>typeof t=="number",L=t=>typeof t=="function",Ip=t=>t===!0||t===!1,Mp=t=>t===null,I=t=>Array.isArray(t),Np=t=>t instanceof Date,V=t=>t===null?!1:typeof t=="object",Ut=t=>t!==void 0,Xt=t=>t===void 0,wl={boolean:Ip,array:I,object:E,string:v,date:Np,number:me,null:Mp,function:L,objectLike:V,node:hr,htmlElement:bl,defined:Ut},ye=t=>(...e)=>e.some(n=>wl[n](t)),E_=t=>(...e)=>!e.some(n=>wl[n](t))});var v_,A_,C_,T_,Xi,Sl,O_,R_,xl,P_,L_,D_,I_,M_,N_,$_,Zi,kl,Ji=D(()=>{"use strict";Un();Wt();v_=(t,e)=>e.every(n=>t.includes(n)),A_=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},C_=(t,e)=>{if(v(e)&&(e=parseInt(e)),me(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},T_=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},Xi=(...t)=>[].concat(...t),Sl=(t,e=[])=>t.reduce((n,r)=>bt(n,pt(r,{exclude:e}),e),{}),O_=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},R_=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},xl=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},P_=(t,e)=>t.filter(n=>n!==e),L_=(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},D_=(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},I_=(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},M_=(t,e)=>t.filter(n=>!e.includes(n)),N_=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},$_=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},Zi=t=>I(t)?[...new Set(t)]:t,kl=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function Zt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!I4(this,t))return t;let i=D4[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=El(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=El(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 k=El(y,p);if(k!=null&&typeof k!="object")return String(k);for(let C in y){let _=y[C];if(_&&typeof _=="object"&&!Array.isArray(_)){let b=El(_,p);if(b!=null&&typeof b!="object")return String(b)}}}let x=El(h.translations,p);if(x!=null&&typeof x!="object")return String(x)}return""}})}var F_,vl,B_,D4,El,I4,es,j_,M4,U_,V_,z_,N4,H_,W_,Al=D(()=>{"use strict";F_=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),vl=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},B_=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},D4={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},El=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),I4=(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};es=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,j_=(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}},
|
|
3
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),
|
|
4
|
-
`,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},
|
|
5
|
-
`;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=
|
|
1
|
+
"use strict";var b4=Object.create;var xp=Object.defineProperty;var _4=Object.getOwnPropertyDescriptor;var w4=Object.getOwnPropertyNames;var S4=Object.getPrototypeOf,x4=Object.prototype.hasOwnProperty;var D=(t,e)=>()=>(t&&(e=t(t=0)),e);var c_=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),F=(t,e)=>{for(var n in e)xp(t,n,{get:e[n],enumerable:!0})},ZC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of w4(e))!x4.call(t,o)&&o!==n&&xp(t,o,{get:()=>e[o],enumerable:!(r=_4(e,o))||r.enumerable});return t};var JC=(t,e,n)=>(n=t!=null?b4(S4(t)):{},ZC(e||!t||!t.__esModule?xp(n,"default",{value:t,enumerable:!0}):n,t)),k4=t=>ZC(xp({},"__esModule",{value:!0}),t);var m_={};F(m_,{WRITE_JOURNAL:()=>dl,batch:()=>gl,countUntrackedReads:()=>A4,createComputed:()=>T4,createEffect:()=>C4,createSignal:()=>Vn,getObserver:()=>p_,journalWrite:()=>hl,noteUntrackedRead:()=>Ne,setObserver:()=>E4,settled:()=>g_,untrack:()=>v4});function v4(t){let e=te;if(!e)return t();te=null;try{return t()}finally{te=e}}function Ne(){l_!==0&&kp++}function A4(t){let e=kp;l_++;let n;try{t()}finally{n=kp-e,--l_===0&&(kp=0)}return n}function Vn(t){let e=new Set;function n(){return te&&(e.add(te),te._sources.add(s)),t}function r(i){i!==t&&(t=i,M4(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function T4(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){d_(o);let s=te;te=o;try{e=t(),n=!1}finally{te=s}},_notify(){n=!0,r.size>0&&nO(r)},get(){return te&&(r.add(te),te._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function hl(t){dl.push(t),dl.length>32&&dl.shift()}function C4(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;d_(r);let o=te;te=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{te=o}},_notify(){r._disposed||(fl>0?ul.push(r):Ep>0?f_.push(r):h_(r))},dispose(){r._disposed=!0,d_(r)}};return r._execute(),r}function gl(t){fl++;try{t()}finally{fl--,fl===0&&I4()}}function tO(){return typeof performance<"u"?performance.now():Date.now()}function h_(t){Qe.add(t),!Ap&&(vp||(vp=!0,queueMicrotask(eO)))}function L4(){if(Qe.size===1){let[e]=Qe;return Qe.clear(),e._disposed?0:(e._execute(),1)}qi.length=0;for(let e of Qe)qi.push(e);Qe.clear(),qi.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<qi.length;e++){let n=qi[e];n._disposed||(n._execute(),t++)}return qi.length=0,t}function eO(t=0,e=0){if(vp=!1,Qe.size===0){pl.length&&u_();return}Ap=!0;let n=tO(),r=!1;try{for(;Qe.size>0;){if(++t>QC){let o=new Map;for(let c of Qe){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 dl)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",QC,"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>"),Qe.clear();break}if(e+=L4(),Qe.size>0&&(e>=R4||t>=P4)&&tO()-n>O4){r=!0,setTimeout(()=>eO(t,e),0);break}}}finally{r||(Ap=!1,pl.length&&u_())}}function D4(){return Qe.size===0&&!vp&&!Ap&&ul.length===0&&fl===0}function u_(){if(pl.length===0||!D4())return;let t=pl.splice(0);for(let e=0;e<t.length;e++)t[e]()}function g_(){return new Promise(t=>{pl.push(t),queueMicrotask(u_)})}function I4(){for(let t=0;t<ul.length;t++)h_(ul[t]);ul.length=0}function nO(t){Ep++;try{for(let e of t)e._notify()}finally{if(Ep--,Ep===0&&f_.length>0){let e=f_.splice(0);for(let n=0;n<e.length;n++)h_(e[n])}}}function M4(t){nO(t)}function d_(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var te,fl,ul,p_,E4,l_,kp,Ep,f_,Qe,vp,dl,Ap,QC,O4,R4,P4,qi,pl,y_=D(()=>{te=null,fl=0,ul=[],p_=()=>te,E4=t=>{te=t};l_=0,kp=0;Ep=0,f_=[];Qe=new Set,vp=!1,dl=[];Ap=!1,QC=1e3,O4=8,R4=256,P4=4;qi=[];pl=[]});var k_={};F(k_,{RESERVED_STORE_METHODS:()=>ml,STORE_METHOD_NAMES:()=>x_,__resetStateShadowWarnings:()=>N4,createScopeStore:()=>j4,createStore:()=>Cp,getSignals:()=>B4,isStore:()=>F4,warnStateKeyShadowsMethod:()=>S_});function S_(t,e){let n=(e||"")+"::"+t;if(w_.has(n))return;w_.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: ${x_.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function N4(){w_.clear()}function Pp(t,e,n){if(t===e)return!0;if(n>$4)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(!Pp(t[r],e[r],n+1))return!1;return!0}if(Rp(t)&&Rp(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)||!Pp(t[s],e[s],n+1))return!1;return!0}return!1}function Cp(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=b=>Object.prototype.hasOwnProperty.call(o,b)&&Object.prototype.hasOwnProperty.call(s,b),a=b=>{if(!r||!e||typeof e.isDataOnlyKey!="function")return!1;let w=r.indexOf(".");return!!e.isDataOnlyKey(w===-1?r:r.slice(0,w),b)},c=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let b in t){if(b==="__proto__"||!Object.prototype.hasOwnProperty.call(t,b))continue;if(b.startsWith("__")){s[b]=t[b];continue}ml.has(b)&&!a(b)&&S_(b,r);let w=t[b];n<c&&w&&typeof w=="object"&&!__(w)?(s[b]=w,o[b]=Vn(Cp(w,e,n+1,b_(r,b)))):(s[b]=w,o[b]=Vn(w))}let l=new Proxy(s,{get(b,w){if(w===En)return!0;if(w===Op)return o;if(w==="__raw")return b;if(w==="$update")return u;if(w==="$parse")return g;if(w==="$clean")return h;if(w==="$keys")return m;if(w==="$values")return y;if(w==="$replace")return x;if(w==="$add")return E;if(w==="$remove")return T;if(w==="$destroy")return _;if(w==="$quietUpdate")return d;if(w==="$settled")return p;if(ml.has(w)&&!Object.prototype.hasOwnProperty.call(o,w))switch(w){case"update":return u;case"parse":return g;case"clean":return h;case"keys":return m;case"values":return y;case"replace":return x;case"add":return E;case"remove":return T;case"destroy":return _;case"quietUpdate":return d}if(w==="__element")return b.__element;if(w==="parent")return b.parent;if(w==="root")return b.root;if(Object.prototype.hasOwnProperty.call(o,w)){let A=o[w].get();if(A!==void 0||!(w!=="root"&&b.root&&b.root!==l))return A}if(b[w]!==void 0)return typeof w=="string"&&Ne(),b[w];let S=typeof w=="string"&&!w.startsWith("__")&&w!=="then"&&w!=="constructor"&&p_()!=null;if(w!=="root"&&b.root&&b.root!==l){let A=b.root[w];return S&&!Object.prototype.hasOwnProperty.call(o,w)&&(o[w]=Vn(void 0),o[w].get()),A}if(S)return o[w]=Vn(void 0),o[w].get();typeof w=="string"&&w.charCodeAt(0)===95&&w.charCodeAt(1)===95&&Ne()},set(b,w,S){if(w==="__proto__")return!1;if(w==="__element"||w==="parent"||w==="root"||typeof w=="string"&&w.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,w))return b[w]=S,!0;ml.has(w)&&!a(w)&&S_(w,r);let A=b_(r,w);if(Object.prototype.hasOwnProperty.call(o,w))if(S&&typeof S=="object"&&!__(S)){if(S===b[w])return!0;let C=o[w].peek(),O=C&&C[En]?C.$parse():C;if(Pp(S,O,0))return!0;b[w]=S,hl(A),o[w].set(Cp(S,e,n+1,A))}else{if(Array.isArray(S)&&S!==b[w]&&Array.isArray(o[w].peek())&&Pp(S,o[w].peek(),0))return!0;o[w].peek()!==S&&hl(A),b[w]=S,o[w].set(S)}else b[w]=S,S&&typeof S=="object"&&!__(S)?o[w]=Vn(Cp(S,e,n+1,A)):o[w]=Vn(S);return!0},has(b,w){return Ne(),typeof w=="string"&&w.charCodeAt(0)===36&&ml.has(w.slice(1))?!0:w in b},ownKeys(b){return Ne(),Object.keys(o).filter(i)},getOwnPropertyDescriptor(b,w){return Ne(),i(w)?{enumerable:!0,configurable:!0,value:o[w].peek()}:Object.getOwnPropertyDescriptor(b,w)},deleteProperty(b,w){if(Object.prototype.hasOwnProperty.call(o,w)){let S=o[w];S.peek()!==void 0&&hl(b_(r,w)),S.set(void 0),S._subscribers.size===0&&delete o[w]}return delete b[w],!0}});function f(b,w){let S=s.__element;return!S||typeof S.onBeforeStateUpdate!="function"||w?.preventBeforeStateUpdateListener?!0:S.onBeforeStateUpdate(S,l,S.context,{changes:b,options:w})!==!1}function u(b,w){if(b&&typeof b=="object"&&!f(b,w))return l;gl(()=>{for(let A in b)A!=="__proto__"&&(l[A]=b[A])});let S=s.__element;return S&&S.onUpdate&&!w?.quiet&&S.onUpdate(S,l,S.context),l}function d(b){return u(b,{quiet:!0})}function p(){return g_().then(()=>l)}function g(b){if(Ne(),b||(b=new Set),b.has(l))return"[Circular]";b.add(l);let w={};for(let S in o){if(S==="parent"||S==="root"||S.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,S))continue;let A=o[S].peek();A&&A[En]?w[S]=A.$parse(b):w[S]=A}return w}function h(){return gl(()=>{for(let b in o)delete l[b]}),l}function m(){return Ne(),Object.keys(o).filter(i)}function y(){return Ne(),Object.keys(o).filter(i).map(b=>o[b].peek())}function x(b,w){return b&&typeof b=="object"&&!f(b,w)||gl(()=>{for(let S in o)S in b||delete l[S];for(let S in b)S!=="__proto__"&&(l[S]=b[S])}),l}function E(b,w){let S=Object.prototype.hasOwnProperty.call(o,b)?o[b].peek():s[b];if(Array.isArray(S))return l[b]=[...S,w],l;if(S&&typeof S=="object"&&!Array.isArray(S)){if(Rp(w))S[En]?S.$update(w):l[b]={...S,...w};else{let A=String(Object.keys(S).length);S[En]?S.$update({[A]:w}):l[b]={...S,[A]:w}}return l}return l[b]=w,l}function T(b){return delete l[b],l}function _(){h(),s.__element=null,s.parent=null}return l}function F4(t){return t&&t[En]===!0}function B4(t){return t[Op]}function j4(t,e){let n={},r={};if(t&&typeof t=="object")for(let a in t)r[a]=t[a],n[a]=Vn(t[a]);let o=a=>{if(Object.prototype.hasOwnProperty.call(n,a))return n;let c=e;for(;c;){let l=c[Op];if(l&&Object.prototype.hasOwnProperty.call(l,a))return l;c=c[En]?c[Tp]:null}return null},s=()=>{let a=e;for(;a&&a[En];)a=a[Tp];return a&&typeof a=="object"?a:null};return new Proxy(r,{get(a,c){return c===En?!0:c===Op?n:c===Tp?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]=Vn(l),!0)},has(a,c){if(Ne(),c in n||c in a)return!0;let l=e;for(;l;){if(c in l)return!0;l=l[En]?l[Tp]:null}return!1},ownKeys(){return Ne(),Object.keys(n)},getOwnPropertyDescriptor(a,c){return Ne(),c in n?{enumerable:!0,configurable:!0,value:n[c].peek()}:Object.getOwnPropertyDescriptor(a,c)}})}var En,Op,x_,ml,w_,b_,__,$4,Rp,Tp,rO=D(()=>{y_();En=Symbol("store"),Op=Symbol("signals"),x_=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],ml=new Set(x_),w_=new Set,b_=(t,e)=>t?t+"."+e:String(e);__=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||!Rp(t),$4=12,Rp=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};Tp=Symbol("scope.parent")});var ts,Lp=D(()=>{ts="3.14.790"});var Gi,Yi,E_,v_=D(()=>{Lp();Gi="__SMBLS_SIGNAL_INSTANCES__",Yi=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[Gi]||(r[Gi]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||ts),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},E_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Gi]}});var Xi,oO,A_,sO=D(()=>{Lp();v_();Xi="__SMBLS_SIGNAL_ENGINE__",oO=(t,e,n)=>{let r=e||ts,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[Xi];return s&&s.engine&&s.version===r?(Yi(r,o,!0),s.engine):(s||(o[Xi]={version:r,engine:t}),Yi(r,o,!1),t)},A_=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[Xi]}});var $t,vn,iO,K,Dp,$e,yl,es,Ip,Mp,pr,Np,Et,aO,cO,lO,$p,fO,U4,uO=D(()=>{y_();rO();sO();Lp();v_();$t=oO({...m_,...k_,VERSION:ts},ts),vn=$t.createSignal,iO=$t.createComputed,K=$t.createEffect,Dp=$t.batch,$e=$t.getObserver,yl=$t.setObserver,es=$t.untrack||(t=>{let e=$t.getObserver();if(!e)return t();$t.setObserver(null);try{return t()}finally{$t.setObserver(e)}}),Ip=$t.settled||(()=>Promise.resolve()),Mp=$t.countUntrackedReads||(t=>(t(),0)),pr=$t.createStore,Np=$t.createScopeStore,Et=$t.isStore,aO=$t.getSignals,cO=$t.STORE_METHOD_NAMES,lO=$t.RESERVED_STORE_METHODS,$p=$t.warnStateKeyShadowsMethod,fO=$t.__resetStateShadowWarnings,U4=$t.VERSION});var bl={};F(bl,{RESERVED_STORE_METHODS:()=>lO,SIGNAL_ENGINE_KEY:()=>Xi,SIGNAL_INSTANCES_KEY:()=>Gi,STORE_METHOD_NAMES:()=>cO,VERSION:()=>U4,__resetSignalEngine:()=>A_,__resetSignalInstances:()=>E_,__resetStateShadowWarnings:()=>fO,batch:()=>Dp,countUntrackedReads:()=>Mp,createComputed:()=>iO,createEffect:()=>K,createScopeStore:()=>Np,createSignal:()=>vn,createStore:()=>pr,getObserver:()=>$e,getSignals:()=>aO,isStore:()=>Et,registerSignalInstance:()=>Yi,setObserver:()=>yl,settled:()=>Ip,untrack:()=>es,warnStateKeyShadowsMethod:()=>$p});var Mt=D(()=>{uO()});var C_,O_,R,kt,wl=D(()=>{"use strict";C_=globalThis,O_=globalThis,R=globalThis,kt=R.document});var mr,Sl,ye,xl=D(()=>{"use strict";wl();mr=t=>(typeof Node=="object"?t instanceof R.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Sl=t=>(typeof HTMLElement=="object"?t instanceof R.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,ye=t=>t===null||typeof t!="object"?!1:typeof R<"u"&&(R.Node&&t instanceof R.Node||R.Window&&t instanceof R.Window||t===R||kt!==void 0&&t===kt)});var k,v,be,L,Fp,Bp,I,jp,V,Ut,Zt,kl,_e,R_,Kt=D(()=>{"use strict";xl();k=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,v=t=>typeof t=="string",be=t=>typeof t=="number",L=t=>typeof t=="function",Fp=t=>t===!0||t===!1,Bp=t=>t===null,I=t=>Array.isArray(t),jp=t=>t instanceof Date,V=t=>t===null?!1:typeof t=="object",Ut=t=>t!==void 0,Zt=t=>t===void 0,kl={boolean:Fp,array:I,object:k,string:v,date:jp,number:be,null:Bp,function:L,objectLike:V,node:mr,htmlElement:Sl,defined:Ut},_e=t=>(...e)=>e.some(n=>kl[n](t)),R_=t=>(...e)=>!e.some(n=>kl[n](t))});var P_,L_,D_,I_,Qi,El,M_,N_,vl,$_,F_,B_,j_,U_,V_,z_,ta,Al,ea=D(()=>{"use strict";zn();Kt();P_=(t,e)=>e.every(n=>t.includes(n)),L_=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},D_=(t,e)=>{if(v(e)&&(e=parseInt(e)),be(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},I_=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},Qi=(...t)=>[].concat(...t),El=(t,e=[])=>t.reduce((n,r)=>bt(n,pt(r,{exclude:e}),e),{}),M_=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},N_=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},vl=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},$_=(t,e)=>t.filter(n=>n!==e),F_=(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},B_=(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},j_=(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},U_=(t,e)=>t.filter(n=>!e.includes(n)),V_=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},z_=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},ta=t=>I(t)?[...new Set(t)]:t,Al=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function Jt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!W4(this,t))return t;let i=H4[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=Tl(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=Tl(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 E=Tl(y,p);if(E!=null&&typeof E!="object")return String(E);for(let T in y){let _=y[T];if(_&&typeof _=="object"&&!Array.isArray(_)){let b=Tl(_,p);if(b!=null&&typeof b!="object")return String(b)}}}let x=Tl(h.translations,p);if(x!=null&&typeof x!="object")return String(x)}return""}})}var H_,Cl,W_,H4,Tl,W4,rs,K_,K4,q_,G_,Y_,q4,X_,Z_,Ol=D(()=>{"use strict";H_=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Cl=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},W_=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},H4={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Tl=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),W4=(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};rs=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,K_=(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}},K4=/\\([0-7]{1,3})/g,q_=t=>t.replace(K4,(e,n)=>String.fromCharCode(parseInt(n,8))),G_=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Y_=t=>t.replace(/\/\/\/\/\/n/g,`
|
|
3
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),q4=/[^a-zA-Z0-9\s]/g,X_=t=>t.replace(q4,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Z_=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var ro,Rl,J_,os,oo,so,Q_,na,ss,yr,Pl,tw,is=D(()=>{"use strict";ro=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"]),Rl=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),J_=["ref","parent","__element","__depends","__ref","__children","root"],os=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"]),oo=new Set(["update","__element"]),so=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"]),Q_=t=>so.has(t),na=new Set(["log","warn","error","verbose"]),ss=t=>so.has(t)&&!na.has(t),yr=new Set(["__proto__","constructor","prototype"]),Pl=new Set(["node","context","extends","__element","__ref",...so,...os,...oo]),tw=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var nw,rw,G4,ow,ew,Y4,X4,Z4,ra,Up,Ll,sw=D(()=>{"use strict";nw=["$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 : {}); })()"],rw=(t,e)=>t.split("$R").join(e),G4=nw.map(t=>[rw(t,"this"),t]),ow=t=>rw(nw[nw.length-1],t),ew="const __scope = ",Y4=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,X4=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,Z4=/^[A-Za-z_$][\w$]*$/,ra=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),Up=(t,e)=>{if(t.length>=2&&ra(t[0],"el"))return t[0];if(t.length>=2&&ra(t[1],"el"))return t[1];if(t.length>=1&&ra(t[0],"el")||ra(t[0],"element")||ra(t[0],"node"))return t[0];if(typeof e=="function"){let n=e();if(n&&t.includes(n))return n}return t.find(n=>ra(n,"element"))||null},Ll=t=>{if(typeof t!="string"||t.indexOf(ew)===-1||t.indexOf("this")===-1)return t;let e=X4.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(ew,n))return t;n+=ew.length;let r=Y4.exec(t.slice(n,n+400));r&&(n+=r[0].length);let o=G4.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=>!Z4.test(l)))return t;let c=Up(a);return c?t.slice(0,n)+rw(o[1],c)+t.slice(s):t}});var J4,Hn,Dl=D(()=>{"use strict";J4=Symbol.for("smbls.serverUtils"),Hn=(t,e)=>{let n=globalThis[J4];return typeof n!="function"?Promise.reject(new Error(`[smbls] ${t} is server-only in this build and no smbls runtime registered its loader`)):n().then(r=>r[t](...e))}});function p5(){let t=as.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var dO,cs,St,aw,Lt,bt,wO,cw,pt,Ml,Q4,t5,pO,Nl,e5,n5,r5,ie,SO,o5,Vp,xO,iw,as,s5,i5,a5,c5,l5,hO,f5,gO,u5,mO,zp,d5,h5,g5,m5,yO,lw,Fe,ls,y5,b5,we,kO,EO,vO,AO,TO,CO,OO,$l,Fl,oa,fs,bO,Il,_O,us,fw,uw,Hp,dw,pw,Bl,ds,ae,Wp,_5,hw,gw,Kp,mw,yw,bw,_w,ww,Sw,xw,zn=D(()=>{"use strict";wl();Kt();ea();Ol();xl();is();sw();Dl();dO="production",cs=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,St=(t,e,n,r)=>{if(L(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)||k(t)&&!ye(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},aw=(t,e,n)=>{for(let r in e)t[r]=St(e[r],n)},Lt=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(cs(o)||(r?n.has(o):n.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},bt=(t,e,n=Pl)=>wO(t,e,n,null),wO=(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)||cs(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),wO(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},cw=(t,e=[])=>{let n=e instanceof Set,r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(cs(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)||ye(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)||cs(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(r&&g===void 0)&&!(o&&g===null)){if(ye(g)){d[p]=g;continue}if(i&&p==="extends"&&I(g)){d[p]=El(g,n);continue}if(L(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},Ml=(t,e={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Hn("deepStringifyFunctions",[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(L(r))e[n]=r.toString();else if(k(r))e[n]={},Ml(r,e[n]);else if(I(r)){let o=e[n]=[];for(let s=0;s<r.length;s++){let i=r[s];k(i)?(o[s]={},Ml(i,o[s])):L(i)?o[s]=i.toString():o[s]=i}}else e[n]=r}return e},Q4=/^[A-Za-z_$][A-Za-z0-9_$]*$/,t5=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,pO=t=>{let e=String(t);return Cl(e,[`
|
|
4
|
+
`,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},Nl=(t={},e=0)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Hn("objectToString",[t,e]);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=Q4.test(s)?s:t5(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} ${
|
|
8
|
-
`:v(c)?o+=`${r} ${
|
|
7
|
+
`:V(c)&&c!==null?o+=`${r} ${Nl(c,e+2)},
|
|
8
|
+
`:v(c)?o+=`${r} ${pO(c)},
|
|
9
9
|
`:o+=`${r} ${c},
|
|
10
|
-
`;o+=`${r} ]`}else V(i)?o+=
|
|
11
|
-
`}return o+=`${r}}`,o},
|
|
10
|
+
`;o+=`${r} ]`}else V(i)?o+=Nl(i,e+1):v(i)?o+=pO(i):o+=i;o+=`,
|
|
11
|
+
`}return o+=`${r}}`,o},e5=[/^\(\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]*\}$/],n5=/^["[{]/,r5=/^(export|import)\s/,ie=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("("))||r5.test(e)||!e5.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!n||o===91||n5.test(e)&&!n)},SO=t=>(0,eval)(t),o5=(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},
|
|
14
|
-
First 200 chars of source: `+String(t).slice(0,200)),t)}},
|
|
15
|
-
First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},
|
|
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},Vp=(t,e,n,r)=>{let o=String(t).trimStart();if(/^(export|import)\s/.test(o))return t;t=Ll(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=o5(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)}},xO=1,iw=2,as=new WeakMap,s5=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,i5=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,a5=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,c5=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,l5=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"]),hO=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,f5=(t,e,n)=>{let r=t.indexOf(e,n);for(;r!==-1;){let o=r+e.length;if((r===0||!hO(t.charCodeAt(r-1)))&&(o>=t.length||!hO(t.charCodeAt(o))))return!0;r=t.indexOf(e,o)}return!1},gO=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},u5=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let r=s5.exec(e);if(r){if(r[2]||gO(e)!==125)return null;let o=r[3]||"";return o&&f5(e,o,r[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:o,kind:r[1]?iw:xO,async:!!r[1],fn:void 0}}return r=i5.exec(e)||a5.exec(e),r?{src:t,name:"",kind:iw,async:!!r[1],fn:void 0}:(r=c5.exec(e),r&&!l5.has(r[2])&&gO(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:r[2],kind:iw,async:!!r[1],fn:void 0}:null)},mO=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,zp=t=>{let e=Vp(t.src,mO(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: ${mO(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},d5=(t,e,n)=>Reflect.construct(t,e,n);h5={length:{get(){let t=as.get(this);if(!t)return 0;let e=t.fn===void 0?zp(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=as.get(this);return t?t.name:""},configurable:!0},toString:{value:p5,writable:!0,configurable:!0}},g5=Object.getPrototypeOf(async function(){}),m5=t=>{let e;return t.kind===xO?e=function(){let n=t.fn===void 0?zp(t):t.fn;return n===null?t.value:new.target?d5(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?zp(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,as.set(e,t),Object.defineProperties(e,h5),t.async&&Object.setPrototypeOf(e,g5),e},yO=(t,e,n,r)=>{let o=u5(t);return o?(o.key=e,o.index=n,o.opts=r,m5(o)):Vp(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,r)},lw=t=>typeof t=="function"&&as.has(t),Fe=t=>{let e=as.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},ls=t=>{let e=typeof t=="function"?as.get(t):void 0;return e?(e.fn===void 0?zp(e):e.fn)===null:!1},y5=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),b5={window:{eval:SO}},we=(t,e={},n=b5)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:SO}});let r=n.lazy===!0,o=n.lazy==="context",s=(a,c,l)=>r||o&&(a===t?y5.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)||yr.has(f))continue;let u=a[f];if(v(u))ie(u)?c[f]=l?yO(u,f,-1,n):Vp(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(v(h))d.push(ie(h)?p?yO(h,f,g,n):Vp(h,`array index ${g} (prop "${f}")`,n):h);else if(k(h)){let m=_O(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(k(u)){let d=_O(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 oa(e)},kO="Set",EO="Map",vO="RegExp",AO="WeakMap",TO="WeakSet",CO="String",OO=t=>{if(!t||typeof t!="object"||t.__type!==CO||!v(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},$l=OO,Fl=Symbol.for("smbls.revived"),oa=t=>{if(t&&typeof t=="object")try{t[Fl]=!0}catch{}return t},fs=t=>!!(t&&typeof t=="object"&&t[Fl]===!0),bO=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},Il=(t,e)=>{if(!t||typeof t!="object")return t;if(OO(t))return t.value;let n=s=>Il(s,e||(e=new WeakMap));if(t.__type===kO&&I(t.values))return new Set(t.values.map(n));if(t.__type===EO&&I(t.entries))return new Map(t.entries.map(s=>I(s)?[n(s[0]),n(s[1])]:s));if(t.__type===AO&&bO(t))return new WeakMap;if(t.__type===TO&&bO(t))return new WeakSet;if(t.__type===vO&&v(t.source))try{return new RegExp(t.source,v(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]=Il(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)){if(yr.has(s)){r=!0;continue}o[s]=Il(t[s],e),o[s]!==t[s]&&(r=!0)}return r||e.set(t,t),r?o:t},_O=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==vO&&e!==kO&&e!==EO&&e!==AO&&e!==TO&&e!==CO)return null;let n=Il(t);return n===t?null:n},us=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){if(yr.has(i))continue;let a=t[i];v(a)&&ie(a)?n.push([i,a]):e[i]=Il(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=R.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]=R.eval(`(function(__gs__) { ${l}
|
|
21
|
-
return (${c}); })`)(e)}catch{try{e[a]=R.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=R.eval(`(${a})`)}catch{e[i]=a}return e},ow=(t,e={verbose:!0})=>{try{return t?R.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},sw=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),jp=t=>{for(let e in t)return!1;return!0},iw=t=>E(t)&&jp(t),aw=()=>Object.create(null),Nl=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&is(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},fs=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)is(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)||ge(t)||ge(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&&is(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];ge(l)?t[a]=l:V(c)&&V(l)?t[a]=ie(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Up=(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)||!Up(t[i],e[i],n))return!1}return!0},c5=new Set(["node","__ref"]),cw=(t,e,n=c5)=>{if(t===e)return!0;if(!V(t)||!V(e)||ge(t)||ge(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(ge(l)||ge(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)},lw=(t,e)=>{if(e==null)return t;if(ye(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},Vp=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]=Vp(t[n]));return e},fw=(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},uw=(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]},dw=(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},pw=(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},hw=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(nO==="test"||nO==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},gw=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)},mw=(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 $l,Fl,Bl,zp=D(()=>{"use strict";Un();$l=(function(){let t=0;function e(){return t++,t}return e})(),Fl=$l,Bl=(t,e,n)=>(St(n,t)||n||t.key||$l()).toString()});var xn,yw,ro,Hp,bw,_w,ww,oo,Sw,gr,tt,jl=D(()=>{"use strict";xn="production",yw=xn,ro=(t=xn)=>t==="production",Hp=(t=xn)=>t==="testing"||t==="test",bw=Hp,_w=(t=xn)=>t==="staging",ww=(t=xn)=>t==="local",oo=(t=xn)=>t==="development"||t==="dev"||t==="local",Sw=(t,e=xn)=>e[t],gr=(t=xn)=>!ro(t),tt=t=>{if(!t&&globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__===!0)return!1;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 Ul(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 Ew(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 xw,kw,l5,na,ra,oa,so,sa=D(()=>{"use strict";xw=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},kw=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}}},l5=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,na=t=>l5.test(t),ra=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},oa=(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},so=(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 vw,wO=D(()=>{"use strict";Wt();Un();vw=(t,e)=>{let{__ref:n}=t,r=t.if;if(L(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 Aw,Cw,SO=D(()=>{"use strict";Aw=(t,...e)=>{t&&e.map(n=>console.log(n))},Cw=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function Lw(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 Dw(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 Tw,Ow,Rw,Pw,xO=D(()=>{"use strict";Wt();yl();Tw=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Ow=(t,e,n=365)=>{if(Xt(kt)||Xt(kt.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;kt.cookie=`${t}=${e};${o};path=/`},Rw=t=>{if(Xt(kt)||Xt(kt.cookie))return;let e=`${t}=`,r=decodeURIComponent(kt.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""},Pw=t=>{Xt(kt)||Xt(kt.cookie)||(kt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var ia,kO,Iw,Mw=D(()=>{"use strict";ia={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"])},kO=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"]),Iw=t=>ia.body.has(t)});var Nw,EO,aa,Ze,ca,Hl,zn,$w,Wp,Wl,Fw,Kl,Kp,qp,ql,Gp,la,f5,Hn,vO,Vl,Gl,Bw,zl,jw,Uw,Yp,Xp,Zp,Jp,Qp,th,AO,eh=D(()=>{"use strict";Ji();Vw();Un();Wt();Nw="production",EO=t=>t.sourcemap!==!1&&Nw!=="production",aa=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},Ze=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)?Ze(r):r)}return e},ca=t=>{if(t.includes("+"))return t.split("+").filter(Wn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Wn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Hl=(t,e,n)=>{let r=[],o=ca(n);o&&(r=[...o]);let s=Ze(aa(t));return s.length&&(r=[...r,...s]),r},zn=(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},$w=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:Xi(o,r)}},Wp=()=>Math.random().toString(36).substring(2),Wl={},Fw={},Kl=t=>Wl[t.__hash],Kp=(t,e)=>{let n=Wp();return v(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(Wl[n]=e),e},qp=(t,e)=>t.__hash?e.concat(Kl(t)):Kp(t,e),ql=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?ql(i,e,n,r,o,s):la(i,e,n,r,o,void 0,s);return e},Gp=(t,e,n,r=new Set,o,s,i)=>{let a=aa(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&&la(Ze(a),e,n,r,o,s,i),e},la=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return ql(t,e,n,r,o,i);let a=s;return v(t)?(a=t,t=Gl(t,n)):i&&E(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?Gp(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},f5=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),Hn=(t,e,n,r,o)=>{e=pt(e);for(let s in e){if(f5.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?E(a)&&!I(a)?(n[s]=n[s]||{},vO(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(E(i)&&E(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];Wn(s)?t[s]=Hn(i,a,c,r,l):Hn(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)&&E(a)){let c=Hn({},i);t[s]=Hn(c,a)}}}}return t},vO=(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];E(s)&&!I(s)?(t[o]=t[o]||{},vO(t[o],s,n,r)):t[o]=n}}},Vl=(t,e,n)=>t.reduce((r,o,s)=>{let i=pt(o),a=n?n[s]:void 0;return Hn(r,i,e,a)},{}),Gl=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(v(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&&(Nw==="test"||Nw==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Bw=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),zl=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return Kl(t)||[];let s=la(t,[],e,new Set,n,void 0,r);return n?s:qp(t,s)},jw=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return Xi(n,e)},Uw=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(Wn(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},Yp=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=aa(t);if(i.length){let a=Ze(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?zn([f,...l],t):zn(a,t)}return Xp(t,e,n),Zp(t,e,n),Jp(t,e,n),t.component&&zn(Ze(St(t.component,t)),t),o.defaultExtends&&zn(Ze(o.defaultExtends),t),Zi(r.__extends)},Xp=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&zn(Ze(e.childProps.extends),t),r.__extends},Zp=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&zn(Ze(s),t),r.__extends},Jp=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&zn(Ze(o),t),r.__extends},Qp=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=EO(n),a=i?[...r.__extends]:null,c=Zi(r.__extends.map((l,f)=>Gl(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&&E(p)&&v(g)&&l.set(p,g)}let f=[],u=zl(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=zl(c,o);r.__extendsStack=l}return r.__extendsStack},th=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(EO(n)){let s={},i=r.__extendsNames||[],a=Vl(o,s,i),c={};Hn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=Vl(o);Hn(t,s)}return t},AO=(t,e,n={})=>(Yp(t,e,n),Qp(t,e,n),th(t,e,n),t)});function zw(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Hw(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Ww(t,e,n){let{context:r}=e||{},[o]=ca(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var Wn,Vw=D(()=>{"use strict";eh();Wt();Wn=t=>{if(!v(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function CO(t,e){let{props:n,on:r}=e,o=es(t.split("on")[1]),s=r[o],i=n[t];L(s)?r[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:r[o]=i}var TO=D(()=>{"use strict";Al();Wt()});function nh(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()&&(L(o)||o!=null&&ra(this.context))){let g=es(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=E(a)||L(a),f=E(c)||L(c);if(l||f)continue;let u=r.charAt(0);if(RO.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=Kw.test(r)||OO.test(r)||d5(o),p=to.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function rh(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=L(o)||o!=null&&ra(this.context);if(s&&i){CO(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if(RO.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=E(c)||L(c),u=E(l)||L(l),d=Kw.test(r)||OO.test(r),p=to.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function oh(t=this){let e=[];return nh.call(this,t,{cachedKeys:e}),rh.call(this,t,{cachedKeys:e}),t}function qw(t={}){return t.on||(t.on={}),t.props||(t.props={}),oh.call(this,t)}function Yw(t,e){this.__element.update({props:t},e)}function Ql(t){let e={update:Yw.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Kw,OO,RO,u5,d5,Zl,Yl,Gw,Jl,tf,ef,sh,Xl,Xw,Zw,Jw=D(()=>{"use strict";os();TO();Un();Wt();Al();sa();Kw=/^[A-Z]/,OO=/^\d+$/,RO=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),u5=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),d5=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(u5.has(e)||Kw.test(e))return!0;return!1},Zl=(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),{})};Yl=t=>ye(t)("string","number")?{inheritedString:t}:t,Gw=(t,e)=>!t||!e.length?!1:e.includes(t),Jl=(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=Yl(i);r.unshift(c)}if(s){let c=Yl(s);r.unshift(c)}return r};tf=t=>{let e=new Set;return t.filter(n=>!n||eo.has(n)||e.has(n)?!1:(e.add(n),!0))},ef=(t,e,n)=>(e.props=t.reduce((r,o)=>{if(eo.has(o))return r;for(;L(o);)o=St(o,e);return bt(r,pt(o,{exclude:eo}))},{}),Ql(e),e.props),sh=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...Jl(t,e)]),E(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=tf(o),r.__propsStack},Xl=(t,e)=>{let{__ref:n}=t,r=sh(t,e);r.length?ef(r,t):(n.__propsStack=[],t.props={})},Xw=function(t,e,n){let{__ref:r}=t;if(r.__if)Xl(t,e);else try{Xl(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return Ql(t),t},Zw=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=Jl(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=tf(s),r.__propsStack.length&&ef(r.__propsStack,e),e}});var PO,ih,ah,ch,lh,Qw,fh,uh,dh,tS,LO=D(()=>{"use strict";eh();zp();_l();Jw();Mw();Wt();PO="production",ih=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=ia.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},ah=(t,e,n)=>{if(t===void 0)return(PO==="test"||PO==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:ye(t)("string","number")?ih(t,e,n):L(t)?{props:t}:t},ch=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},lh=(t,e,n,r,o)=>{if(!e)return o;if(hr(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},Qw=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},fh=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},uh=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),dh=(t,e,n)=>{let r=ch(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=Hl(t,e,n),r.path=fh(t,e,n),r},tS=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:ah(t,e,n);if(!i)return;let a=lh(i,e,n,r,o),c=Bl(i,a,n);dh(i,a,c);let l=Zl(i,a,c),f=uh(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var eS,ph,hh,gh,mh,nS,yh,rS,oS,sS,bh,DO,p5,NO,io,iS,IO,ao,us,MO,$O,FO,nf,Kn,BO=D(()=>{"use strict";Ji();os();jl();Un();Wt();eS=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return ye(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},ph=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},hh=(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},gh=(t,e,n={})=>{let r=v(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]},mh=(t,e,n={})=>{let o=t.__ref.__state;if(!yh(t))return;let s=ph(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=hh(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return gh(o,i,n)},nS=(t,e)=>{let n=t.__ref,r=mh(t,e);if(r===void 0)return t.state;if(ye(r)("object","array"))return pt(r);if(ye(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},yh=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&ye(n)("number","string","boolean"))},rS=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},oS=(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},sS=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=pt(r,ns),s={[t.key]:o},i=E(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?kl(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},bh=new Set(["parent","root"]),DO=new Set,p5=t=>{DO.has(t)||(DO.add(t),tt()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},NO=(t,e,n,r)=>{if(t===e)return t;for(let o=0;o<r.length;o+=2)if(r[o]===t&&r[o+1]===e)return t;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o.charCodeAt(0)===95&&o.charCodeAt(1)===95||o==="constructor"||o==="prototype")continue;let s=n?n+"."+o:o;if(bh.has(o)){p5(s);continue}let i=t[o],a=e[o];V(i)&&V(a)?(r.push(t,e),NO(i,a,s,r),r.length-=2):i===void 0&&(t[o]=a)}return t},io=(t,e)=>!V(t)||!V(e)?t:NO(t,e,"",[]),iS=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){bt(t,e,ns);return}(o?fs:ie)(t,e,ns)},IO="__polyglotSeededKeys",ao=t=>{if(!E(t))return new Set;let e=t[IO];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,IO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},us=(t,e,n)=>ao(t).has(e)?!0:!E(n)||n[e]===void 0,MO="__polyglotSeededValues",$O=t=>{if(!E(t))return new Map;let e=t[MO];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,MO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},FO=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},nf=(t,e,n)=>{if(!ao(t).has(e))return!1;let r=$O(t);if(!r.has(e))return!0;let o=E(n)||Array.isArray(n)?n[e]:void 0,s=FO(o);return s!==null&&s===r.get(e)},Kn=(t,e,...n)=>(ao(t).add(e),n.length&&$O(t).set(e,FO(n[0])),e)});var h5,aS,jO=D(()=>{"use strict";h5=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},aS=(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&&!h5(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var UO,_h,mr,wh,cS,lS=D(()=>{"use strict";Wt();sa();UO=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},_h=(t,e,n,r,o)=>{if(t=oa(t,e),!!L(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}},mr=(t,e,n)=>{if(!e)throw new Error("Element is required");so(t,e,n);let r=UO(t,e);if(r){let{state:o,context:s}=e;return _h(r,e,o,s,n)}},wh=(t,e,n,r,o,s)=>{if(t=oa(t,n),!!L(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}},cS=(t,e,n,r)=>{so(t,n,e,r);let o=UO(t,n);if(o){let{state:s,context:i}=n;return wh(o,e,n,s,i,r)}}});var fS,rf,uS=D(()=>{"use strict";fS={},rf={}});var co,dS=D(()=>{"use strict";co=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 lo,ps,hs,pS,qn,hS,VO,zO,gS,mS,HO,of,WO,g5,yS,m5,bS,ds,KO,Sh,_S,qO,GO,YO,fa=D(()=>{"use strict";M();dS();lo="@symbo.ls/fetch:EARLY",ps=3e4,hs=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},pS=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},qn=()=>Symbol.for(lo),hS=(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},VO=(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},zO=(t,e,n)=>{let r=qn();if(g5(n),!t||typeof t!="object"){let i=globalThis[r];return i&&i.seeded?{carried:{},rpc:!1,maxAge:ps,seeded:!0}:null}globalThis[r]||(globalThis[r]={entries:{}});let o={};for(let{header:i,found:a,value:c}of hS(t.query,e))a&&(o[i]=c);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:ps;return{carried:o,rpc:t.rpc==="get",maxAge:s,seeded:!!globalThis[r].seeded}},gS=(t,e=ps,n)=>{let r=globalThis[qn()],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=bS(r,t,n())),Promise.resolve(o.seeded)):Promise.resolve(o.answer).then(s=>s&&s.ok&&!s.bodyUsed?s:null,()=>null)},mS=()=>{let t=globalThis[qn()];t&&t.entries&&(t.entries={})},HO=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:hs(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),of='script[type="application/json"][data-fetch-seed]',WO=t=>{let e=HO(t);return e.length?'<script type="application/json" data-fetch-seed>'+gs(e)+"<\/script>":""},g5=t=>{let e=Gn(globalThis.document,of,{remove:!0}),n=t===!1?null:e&&e.value;if(!Array.isArray(n)||!n.length){let c=globalThis[qn()];c&&c.stale||(ds=null);return}let r=qn(),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=ms(globalThis.document)||{stamp:null,time:null},a=m5(t,i.stamp,i.time);a?(o.stale=a,o.seedConfig=t&&typeof t=="object"?t:null):ds=null},yS="data-smbls-stale",m5=(t,e,n)=>{let r=globalThis.document&&globalThis.document.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute(yS))return!0;if(!t||typeof t!="object")return!1;if(t.maxAge!=null&&n!==null){let o=co(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}},bS=(t,e,n)=>{let r={key:e,again:n,result:null,cacheKey:null};if((t.taken||(t.taken=[])).push(r),ds){let o=ds;ds=null;for(let s of o)try{s()}catch{}}return r},ds=null,KO=t=>{let e=globalThis[qn()];return e&&e.seeded&&!e.stale||e&&e.stale&&e.revalidated?!1:e&&e.stale&&e.taken&&e.taken.length?(t(),!0):((ds||(ds=new Set)).add(t),!0)},Sh=(t,e)=>{let n=globalThis[qn()];!n||!t||typeof t!="object"||(e.result=t,(n.results||(n.results=new WeakMap)).set(t,e))},_S=(t,e)=>{let n=globalThis[qn()],r=n&&n.results&&t?n.results.get(t):null;r&&(r.cacheKey=e)},qO=()=>{let t=globalThis[qn()];return!!(t&&t.stale&&!t.revalidated)},GO=async()=>{let t=globalThis[qn()];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},YO=t=>{let e=HO(t);if(!e.length)return"";let n=gs(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(lo)+"),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 XO,ZO,JO,wS=D(()=>{"use strict";fa();XO=()=>globalThis[Symbol.for(lo)],ZO=(t,e=ps,n,r)=>{let o=XO(),s=o&&o.entries&&o.entries[t];if(!s||!s.seeded||!(Date.now()-s.time<=e))return null;let i=r(s.seeded);return i?(delete o.entries[t],o.stale&&n&&Sh(i,bS(o,t,n())),i):null},JO=()=>{let t=XO();if(t&&t.seeded){for(let n in t.entries)if(t.entries[n]&&t.entries[n].seeded)return!0;return!1}let e=globalThis.document;return!!(e&&typeof e.querySelector=="function"&&e.querySelector(of))}});var QO,xh,t1,e1,n1,r1,SS=D(()=>{"use strict";QO=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),xh=()=>globalThis[QO]||(globalThis[QO]={count:0,waiters:[]}),t1=()=>{xh().count++},e1=()=>{let t=xh();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()}},n1=()=>xh().count,r1=()=>{let t=xh();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})}});var y5,o1,s1=D(()=>{"use strict";fa();y5=(t,e)=>{let n=new URL(t);return n.searchParams.delete("limit"),n.searchParams.sort(),n.toString()+" "+(e||"")},o1=(t,e,n,r=ps)=>{let o=globalThis[Symbol.for(lo)],s=o&&o.slices&&o.slices[y5(t,e)];if(!s||!(n>0))return null;for(let i=0;i<s.length;i++){let a=s[i],c=o.entries&&o.entries[a];if(!(!c||!(c.limit>=n)))return s.splice(i,1),delete o.entries[a],Date.now()-c.time<=r?Promise.resolve(c.answer).then(l=>{if(!l||!l.ok||l.bodyUsed)return null;let f=l.headers&&l.headers.get("content-type")||"application/json";return l.json().then(u=>Array.isArray(u)?{seeded:!0,status:l.status,type:f,body:JSON.stringify(u.slice(0,n))}:null)}).catch(()=>null):null}return null}});var vS={};F(vS,{buildUrl:()=>sf,headerEntries:()=>f1,restAdapter:()=>kh,selectQuery:()=>kS,setup:()=>C5,withQuery:()=>af});var sf,kS,a1,ES,b5,_5,w5,i1,c1,Je,l1,S5,x5,f1,xS,k5,E5,v5,A5,af,C5,kh,u1=D(()=>{"use strict";fa();wS();SS();s1();sf=(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()},kS=({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},a1=t=>Object.prototype.toString.call(t).slice(8,-1),ES=["auto","json","text","blob","arrayBuffer","stream","response"],b5={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},_5=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},w5=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},i1=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,c1=(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}},Je=async(t,e,n,r)=>{let o=n??"auto";if(!ES.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${ES.join(", ")}`);t1();try{return await l1(t,e,o,r)}finally{e1()}},l1=async(t,e,n,r)=>{let o=r?await r:null;if(o&&o.seeded===!0){let i=c1(o,n);if(o.taken&&i!==!1){let a=i||await l1(t,e,n,Promise.resolve(new Response(o.body,{status:o.status,headers:{"content-type":o.type}})));return Sh(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 _5(s);return{data:i,error:s.ok?null:i1(i,s),status:s.status}}if(!s.ok){let i=await w5(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:i1(i,s),status:s.status}}return{data:await b5[n](s),error:null,status:s.status}},S5=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],x5=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||S5.includes(a1(t))),f1=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),xS=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of f1(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},k5={"Content-Type":"application/json"},E5={"Content-Type":void 0},v5=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:r}of hS(t.query))e[n]=r;return{params:e,rpc:t.rpc==="get"}},A5="content-type",af=(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()},C5=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 kh(t,e,n,r,o,s,i)},kh=(t,e={},n,r={},o,s,i)=>{let a=n?.token||null,c=zO(VO(o,s),e,i),l=v5(s),f=_=>{if(!l)return null;let b={},w={},S={};for(let A in _){let T=A.toLowerCase();if(T==="authorization")return null;if(T===A5)continue;w[A]=_[A];let O=l.params[T];O?S[O]=_[A]:b[A]=_[A]}return{headers:b,adoptHeaders:w,query:S}},u=(_,b,w)=>{if(!c)return null;let S="";for(let A in b){let T=A.toLowerCase();if(T==="accept-language")S=String(b[A]);else if(c.carried[T]!==b[A])return null}try{let A=_();return gS(hs(A,S),c.maxAge)||(w>0?o1(A,S,w,c.maxAge):null)}catch{return null}},d=(_,b,w,S,A,T,O)=>{if(!c||!c.seeded)return null;let B="";for(let $ in b){let N=$.toLowerCase();if(N==="accept-language")B=String(b[$]);else if(N!=="accept")return null}try{return gS(hs(_,B),c.maxAge,()=>g(w,S,A,_,T,O))}catch{return null}},p=(_,b,w,S,A,T,O)=>{if(!c||!c.seeded)return null;let B="";for(let N in b){let G=N.toLowerCase();if(G==="accept-language")B=String(b[N]);else if(G!=="accept")return null}let $=O??"auto";if(!ES.includes($))return null;try{return ZO(hs(_,B),c.maxAge,()=>g(w,S,A,_,T,O),N=>c1(N,$)||null)}catch{return null}},g=(_,b,w,S,A,T)=>({method:_,from:b,params:w,send:()=>Je(S,A,T,null)}),h=()=>a?{Authorization:`Bearer ${a}`}:null,m=_=>xS(e,h(),_),y=_=>({...r,..._}),x=(_,b,w)=>{if(!x5(b))return y({method:_,headers:xS(e,h(),k5,w),body:JSON.stringify(b)});let S={method:_,headers:xS(e,h(),E5,w),body:b};return a1(b)==="ReadableStream"&&(S.duplex="half"),y(S)},k=(_,b)=>{let w=b||t;if(_&&(_.startsWith("http://")||_.startsWith("https://")))return _;let S=_&&!_.startsWith("/")?"/":"";return`${w}${S}${_||""}`};return{name:"rest",setToken:_=>{a=_},getSession:async()=>{if(!n?.sessionUrl)return a?{token:a}:null;let _=await Je(k(n.sessionUrl,n.baseUrl),y({headers:m()}));return _.error?null:_.data},signIn:async _=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let b=await Je(k(n.signInUrl,n.baseUrl),x("POST",_));return b.data?.token&&(a=b.data.token),b},signOut:async()=>(n?.signOutUrl&&await Je(k(n.signOutUrl,n.baseUrl),y({method:"POST",headers:m()})),a=null,{error:null}),select:({from:_,params:b,select:w,limit:S,offset:A,order:T,single:O,headers:B,baseUrl:$,responseType:N})=>{let G=sf($||t,_||"",kS({params:b,select:w,limit:S,offset:A,order:T,single:O})),Y=!A&&!O&&Number(S)>0?Number(S):0,nt=m(B),ot=f(nt);if(ot){let J=y({headers:ot.headers}),Z=af(G,ot.query);return Je(Z,J,N,d(Z,ot.headers,"select",_,b,J,N)||u(()=>G,ot.adoptHeaders,Y))}let st=y({headers:nt});return Je(G,st,N,d(G,st.headers,"select",_,b,st,N)||u(()=>G,st.headers,Y))},seeded:({method:_,from:b,params:w,select:S,limit:A,offset:T,order:O,single:B,headers:$,baseUrl:N,responseType:G,read:Y})=>{if(!c||!c.seeded)return null;if(_==="select"){let nt=sf(N||t,b||"",kS({params:w,select:S,limit:A,offset:T,order:O,single:B})),ot=m($),st=f(ot);if(st){let Z=y({headers:st.headers});return p(af(nt,st.query),st.headers,"select",b,w,Z,G)}let J=y({headers:ot});return p(nt,J.headers,"select",b,w,J,G)}if(_==="rpc"){if(!(Y===!0&&l&&l.rpc&&pS(w)))return null;let nt=f(m($));if(!nt)return null;let ot;try{ot=sf(N||t,`rpc/${b}`,w)}catch{return null}let st=y({method:"GET",headers:nt.headers});return p(af(ot,nt.query),nt.headers,"rpc",b,w,st,G)}return null},rpc:async({from:_,params:b,headers:w,baseUrl:S,responseType:A,read:T})=>{let O=pS(b),B=()=>sf(S||t,`rpc/${_}`,b),$=J=>Je(k(`rpc/${_}`,S),x("POST",b,w),A,J),N=m(w),G=T===!0&&l&&l.rpc&&O?f(N):null,Y=null;if(G)try{Y=B()}catch{Y=null}if(!Y)return $(c&&c.rpc&&O?u(B,N):null);let nt=y({method:"GET",headers:G.headers}),ot=af(Y,G.query),st=await Je(ot,nt,A,d(ot,G.headers,"rpc",_,b,nt,A)||u(()=>Y,G.adoptHeaders));return st.status===405?$(null):st},insert:({from:_,data:b,headers:w,baseUrl:S,responseType:A})=>Je(k(_,S),x("POST",b,w),A),update:({from:_,data:b,params:w,method:S,headers:A,baseUrl:T,responseType:O})=>{let B=w?.id||b?.id,$=B?`${_}/${B}`:_;return Je(k($,T),x(S||"PATCH",b,A),O)},upsert:({from:_,data:b,params:w,method:S,headers:A,baseUrl:T,responseType:O})=>{let B=w?.id||b?.id,$=B?`${_}/${B}`:_;return Je(k($,T),x(S||"PUT",b,A),O)},delete:({from:_,params:b,headers:w,baseUrl:S,responseType:A})=>{let T=b?.id,O=T?`${_}/${T}`:_;return Je(k(O,S),y({method:"DELETE",headers:m(w)}),A)}}}});var p1={};F(p1,{localAdapter:()=>d1,setup:()=>O5});var Eh,T5,O5,d1,h1=D(()=>{"use strict";Eh=(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},T5=(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}},O5=async({data:t,...e})=>d1(t,e),d1=(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=>Eh(h,u));return T5(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(Eh(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),x=y?p.findIndex(k=>Eh(k,y)):-1;if(x>-1){let k={...p[x]};Object.assign(p[x],m),h.push(p[x]),c(f,"UPDATE",p[x],k)}else{let k={id:m.id||++l,...m};p.push(k),h.push(k),c(f,"INSERT",k,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--)Eh(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 ga={};F(ga,{EARLY_KEY:()=>lo,SEED_BLOCK:()=>of,STALE_ATTRIBUTE:()=>yS,createAdapter:()=>M5,createEarlySeedBlock:()=>WO,createEarlySeedScript:()=>YO,default:()=>n6,earlyKey:()=>hs,executeFetch:()=>BS,fetchFunctions:()=>J5,fetchPlugin:()=>e6,hasAdapter:()=>I5,initAdapterAuth:()=>Oh,parseDuration:()=>co,queryClient:()=>Z5,registerAdapter:()=>D5,requestsInFlight:()=>n1,resolveDb:()=>S1,revalidateSeed:()=>Q5,seedFromPage:()=>L1,seedIsStale:()=>qO,whenRequestsIdle:()=>r1,whenSeedTaken:()=>KO});var R5,w1,vh,ys,Ah,OS,P5,L5,D5,I5,M5,S1,NS,x1,kn,g1,Qe,Lh,AS,Dh,pa,da,Th,RS,Rh,k1,Ih,E1,N5,Ch,$5,m1,CS,v1,A1,ua,y1,F5,PS,B5,C1,Mh,ha,lf,uf,bs,$S,Oh,FS,En,Yn,cf,df,j5,LS,yr,Ph,DS,br,b1,T1,_r,U5,V5,z5,H5,TS,ff,W5,Nh,O1,IS,MS,R1,P1,K5,q5,G5,Y5,L1,X5,BS,Z5,_1,J5,Q5,t6,e6,n6,$h=D(()=>{"use strict";M();Mt();fa();wS();dS();u1();fa();SS();R5=["select","rpc","insert","update","upsert","delete","subscribe"],w1={rest:()=>Promise.resolve(vS),local:()=>Promise.resolve().then(()=>(h1(),p1))},vh=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ys=(()=>{if(typeof globalThis<"u"&&globalThis[vh])return globalThis[vh];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,vh,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[vh]}catch{}return t})(),Ah=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),OS=(()=>{if(typeof globalThis<"u"&&globalThis[Ah])return globalThis[Ah];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ah,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ah]}catch{}return t})(),P5=5e3,L5=t=>new Promise(e=>{if(ys[t])return e(ys[t]);let n=OS[t]||=[],r=!1,o=()=>{r||(r=!0,e(ys[t]||null))};n.push(o),setTimeout(o,P5)}),D5=(t,e)=>{ys[t]=e;let n=OS[t];if(n&&n.length){OS[t]=[];for(let r of n)r()}},I5=t=>typeof t=="string"&&!!(ys[t]||w1[t]),M5=t=>{let e={};for(let n of R5)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},S1=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=ys[r]||w1[r];if(!o&&(o=await L5(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)},NS=t=>!!t&&!!t.isolateFetchCache,x1=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),kn=x1(),g1=new WeakMap,Qe=t=>{if(!NS(t))return kn;let e=g1.get(t);return e||g1.set(t,e=x1()),e},Lh=0,AS=new WeakMap,Dh=(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}`},pa=(t,e)=>t.cache.get(e)||null,da=(t,e,n,r,o=++Lh,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)L(c)&&c(i);return i},Th=(t,e,n)=>{let r=e?t.cache.get(e):null;return r&&!r.error&&r.seq>n?r:null},RS=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,Rh=(t,e)=>{t.invalidatedAt.set(e,++Lh)},k1=(t,e)=>{t.cache.delete(e),Rh(t,e)},Ih=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)}:v(t)?{staleTime:co(t),gcTime:3e5}:{staleTime:co(t.stale||t.staleTime)||6e4,gcTime:co(t.gc||t.gcTime||t.expire)||3e5,key:t.key},E1=t=>!!t.ref&&t.element.__ref===t.ref,N5=({config:t,element:e,context:n})=>{try{return $S(t,e,n)}catch{return null}},Ch=null,$5=()=>{Ch||(Ch=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:r,invalidatedAt:o,mounted:s}=kn;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)E1(i)||s.delete(i)},3e4),Ch.unref&&Ch.unref())};$5();m1=3,CS=t=>Math.min(1e3*2**t,3e4),v1=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:m1,delay:CS}:typeof n=="number"?{count:n,delay:CS}:{count:n.count??m1,delay:L(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:CS}},A1=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=L(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=L(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},ua={focus:new Set,online:new Set},y1=!1,F5=()=>{if(y1||typeof window>"u")return;y1=!0;let t=()=>{for(let n of ua.focus)n()},e=()=>{for(let n of ua.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},PS=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(v(t))return{from:t,method:"select",query:!0,on:"create"};if(E(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},B5=["insert","update","upsert","delete"],C1=t=>B5.includes(t),Mh=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,ha=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},lf=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},uf=(t,e,n)=>{let r;if(!t)r=void 0;else if(L(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=L(s)?s(e,e.state):s}}return r},bs=(t,e)=>L(t)?t(e,e.state):t,$S=(t,e,n)=>Dh(t,uf(t.params,e,n),lf(e,n),ha(e,n),bs(t.page,e),bs(t.cursor,e)),Oh=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)})},FS=async(t,e)=>{if(L(t.select))return t.auth!==!1&&await Oh(t,e),t;if(t.__resolved)return t.auth!==!1&&await Oh(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=S1(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 Oh(n,e),n):null},En=(t,e,...n)=>{let r=L(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},Yn=(t,e,n,...r)=>{let o=t&&L(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},cf=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},df=t=>t.responseType==="stream"||t.responseType==="response",j5=["Blob","File","ArrayBuffer","ReadableStream","Response"],LS=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||j5.includes(Object.prototype.toString.call(t).slice(8,-1))),yr=(t,e,n,r={})=>{if(!n&&LS(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)&&!LS(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})}},Ph=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),DS=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),br=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},b1=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];L(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),L(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},T1=(t,e,n,r,o,s)=>{let{from:i,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d,responseType:p}=t,g={from:i,select:e,params:n,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d};if(p!==void 0&&(g.responseType=p),r&&(g.headers={...g.headers,"Accept-Language":r}),o!==void 0){if(E(o))o.offset!==void 0&&(g.offset=o.offset),o.limit!==void 0&&(g.limit=o.limit),o.cursor!==void 0&&(g.params={...g.params,cursor:o.cursor});else if(typeof o=="number"){let h=t.pageSize||c||20;g.offset=(o-1)*h,g.limit=h}}return s!==void 0&&(g.params={...g.params,cursor:s}),g},_r=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=lf(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&lf(e,n)===i;if(t.enabled===!1||L(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||L(t.skip)&&t.skip(e,e.state))return;let l=await FS(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:x,as:k,limit:C,offset:_,order:b,headers:w,baseUrl:S,responseType:A,page:T,cursor:O,infinite:B,placeholderData:$,initialData:N,select:G,keepPreviousData:Y}=t,nt=H=>(L(G)&&(H=G(H,e,e.state)),h&&(H=h(H,e,e.state)),H),ot=H=>{br(e,DS(H)),En(e,"onFetchError",H),Yn(t,e,"onFetchError",H)},st=v(G)?G:void 0;if(d&&L(e.getQuery)){let H=e.getQuery(l.name||"paths");H&&(st=H.select||H.length&&H.join(",")||st)}let J=uf(p,e,n),Z=bs(T,e),Q=bs(O,e),it=Mh(t),rt=df(t)||it?null:Ih(g),gt=v1(t,it||C1(u)),q=ha(e,n),W=rt?Dh(t,J,i,q,Z,Q):null,Rt=Qe(n);if(!s.__fetchInitialized&&W&&(s.__fetchInitialized=!0,N!==void 0)){let H=L(N)?N():N;da(Rt,W,H,null)}if((u==="select"||u==="rpc")&&W&&rt&&!r.refresh&&!r.force){let H=pa(Rt,W);if(H&&!H.error){let Tt=Date.now()-H.time,X=H.stale||Tt>(rt.staleTime||0);B&&I(H.data)&&!s.__pages&&(s.__pages=[H.data],b1(s,t,H.data));let at=nt(H.data);if(!c())return;if(!X){br(e,Ph),yr(e,at,k),s.__seededOnCreate===W&&(s.__seededOnCreate=null,En(e,"onFetchComplete",at),Yn(t,e,"onFetchComplete",at));return}yr(e,at,k)}else if($!==void 0){let Tt=L($)?$(e,e.state):$;Tt!==void 0&&yr(e,Tt,k)}}let yt=W&&!r.force?Rt.active.get(W):null;if(yt&&!RS(Rt,W,AS.get(yt)||0)){try{let H=await Promise.race([yt,new Promise((Tt,X)=>setTimeout(()=>X("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(H?.error)ot(H.error);else if(H?.data!==void 0){let Tt=!B&&Th(Rt,W,AS.get(yt)||0),X=nt(Tt?Tt.data:H.data);if(!c())return;yr(e,X,k),En(e,"onFetchComplete",X),Yn(t,e,"onFetchComplete",X)}}catch(H){if(!c())return;H!=="DEDUP_TIMEOUT"&&ot(H)}return}let jt=!pa(Rt,W)?.data;br(e,{isFetching:!0,isLoading:jt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),En(e,"onFetchStart"),Yn(t,e,"onFetchStart");let Ct=n?.analyze?.emitNetwork,Pt=Ct?typeof performance<"u"?performance.now():Date.now():0;Ct&&Ct({phase:"start",mode:"query",from:f,method:u,cacheKey:W,lang:q});let Ge=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let X=await l.getSession();if(!c())return;if(y===!0&&!X){let at={message:"Not authenticated"};return ot(at),{data:null,error:at}}}let H=l[u];if(!L(H))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let Tt=T1(t,st,J,ha(e,n),Z,Q);if(u==="insert"||u==="update"||u==="upsert"){let X;if(x===!0||t.on==="submit")X=cf(e);else if(I(x)){let at=cf(e);X={};for(let Ye of x)X[Ye]=at[Ye]}else e.state?.parse?X=e.state.parse():E(e.state)&&(X={...e.state});h&&(X=h(X,e,e.state)),Tt.data=X}if(u==="rpc"){let X=J;if(t.on==="submit"){let at=cf(e);X=t.transformParams?t.transformParams(at,e,e.state):at}Tt.params=X,Tt.read=!it&&t.read!==!1}if(u==="subscribe"){if(L(s.__unsubscribe)){let at=s.__unsubscribe;s.__unsubscribe=null;try{at()}catch{}}let X=l.subscribe({from:f,params:J,on:t.subscribeOn},(at,Ye,e_)=>{c()&&(yr(e,at,k),En(e,"onFetchComplete",at),Yn(t,e,"onFetchComplete",at))});return c()?(s.__unsubscribe=X,{data:null,error:null,subscribed:!0}):(L(X)&&X(),{data:null,error:null,subscribed:!0})}return H(Tt)},It=++Lh,De=A1(Ge,gt);AS.set(De,It),W&&Rt.active.set(W,De);try{let H=await De;if(W&&H&&!it&&_S(H,W),it&&t.invalidates&&H&&!H.error&&!H.subscribed&&O1(Rt,t.invalidates,f),!c()||H?.subscribed)return;let{data:Tt,error:X}=H||{};if(X){W&&!Th(Rt,W,It)&&da(Rt,W,null,X,It),ot(X),Ct&&Ct({phase:"error",mode:"query",from:f,method:u,cacheKey:W,error:X.message||X,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt});return}if(Tt!==void 0){let at=Tt;if((u==="select"||u==="rpc")&&W){let e_=!B&&Th(Rt,W,It);if(e_)at=e_.data;else{let i4=da(Rt,W,Tt,null,It,RS(Rt,W,It));i4.gcTime=rt?.gcTime||3e5}}let Ye=at;if(B&&I(Tt)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(Tt):s.__pages.push(Tt),Ye=s.__pages.flat(),b1(s,t,Tt)),Ye=nt(Ye),!c())return;br(e,Ph),(!Y||Ye!==void 0)&&yr(e,Ye,k),En(e,"onFetchComplete",Ye),Yn(t,e,"onFetchComplete",Ye),Ct&&Ct({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:W,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}}catch(H){if(!c())return;ot(H),Ct&&Ct({phase:"error",mode:"query",from:f,method:u,cacheKey:W,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}finally{W&&Rt.active.get(W)===De&&Rt.active.delete(W)}},U5=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||_r;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"&&V5(t,e,n,s)},V5=(t,e,n,r)=>{let o=e.__ref,s,i=K(()=>{let a;try{a=JSON.stringify([uf(t.params,e,n)??null,L(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,L(t.skip)?!!t.skip(e,e.state):t.skip===!0,bs(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())},z5=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),F5();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:co(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&_r(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=df(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=$S(t,e,n),f=pa(Qe(n),l),u=Ih(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&_r(t,e,n,{force:!0})};ua.focus.add(c),r.__fetchCleanups.push(()=>ua.focus.delete(c))}if(a){let c=()=>_r(t,e,n,{force:!0});ua.online.add(c),r.__fetchCleanups.push(()=>ua.online.delete(c))}},H5=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():E(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=L(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&yr(t,i,o),s},TS=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let r=n.__optimisticSnapshot;r!==void 0&&(yr(t,r,e.as),delete n.__optimisticSnapshot)},ff=t=>{if(!t)return()=>!0;if(v(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)):L(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},W5=(t,e)=>{let n=[];for(let r of t.mounted){if(!E1(r)){t.mounted.delete(r);continue}let o=N5(r);o&&e(o)&&n.push(_r(r.config,r.element,r.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},Nh=(t,e)=>{mS();for(let[n,r]of t.cache)e(n)&&(r.stale=!0,Rh(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&Rh(t,n);return W5(t,e)},O1=(t,e,n)=>{let r=(I(e)?e:[e]).map(o=>o===!0||o==="*"?s=>s.startsWith(n+":"):o?ff(o):()=>!1);return Nh(t,o=>r.some(s=>s(o)))},IS=(t,e)=>{for(let[n]of t.cache)e(n)&&k1(t,n);for(let[n]of t.active)e(n)&&Rh(t,n)},MS=()=>!0,R1=(t,e)=>pa(t,e)?.data??void 0,P1=(t,e,n)=>{let r=pa(t,e),o=L(n)?n(r?.data):n;da(t,e,o,null)},K5=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await FS(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:x,onSuccess:k,onError:C,onSettled:_}=t,b;if(c===!0||u==="submit")b=cf(e);else if(I(c)){let T=cf(e);b={};for(let O of c)b[O]=T[O]}else e.state?.parse?b=e.state.parse():E(e.state)&&(b={...e.state});l&&(b=l(b,e,e.state)),L(x)&&x(b,e,e.state);let w=y?H5(e,t,b):null;br(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),En(e,"onFetchStart"),Yn(t,e,"onFetchStart");let S=n?.analyze?.emitNetwork,A=S?typeof performance<"u"?performance.now():Date.now():0;S&&S({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let nt=await o.getSession();if(d===!0&&!nt){w!==void 0&&TS(e,t);let ot={message:"Not authenticated"};En(e,"onFetchError",ot),Yn(t,e,"onFetchError",ot);return}}let T=o[i];if(!L(T))return;let O={from:a,data:b,headers:p,baseUrl:g};h!==void 0&&(O.responseType=h),t.params&&(O.params=uf(t.params,e,n));let B=ha(e,n);B&&(O.headers={...O.headers,"Accept-Language":B});let $=v1(t,!0),N=await A1(()=>T(O),$),{data:G,error:Y}=N||{};if(Y){w!==void 0&&TS(e,t),br(e,DS(Y)),En(e,"onFetchError",Y),L(C)&&C(Y,b,e),L(_)&&_(null,Y,b,e),S&&S({phase:"error",mode:"mutation",from:a,method:i,error:Y.message||String(Y),durationMs:(typeof performance<"u"?performance.now():Date.now())-A});return}if(delete s.__optimisticSnapshot,br(e,Ph),G!==void 0&&(f||!LS(G))){let nt=f?{[f]:G}:G;e.state?.update&&e.state.update(nt,{preventFetch:!0})}En(e,"onFetchComplete",G),Yn(t,e,"onFetchComplete",G),L(k)&&k(G,b,e),L(_)&&_(G,null,b,e),S&&S({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-A}),m&&O1(Qe(n),m,a)}catch(T){w!==void 0&&TS(e,t),br(e,DS(T)),En(e,"onFetchError",T),Yn(t,e,"onFetchError",T),L(C)&&C(T,b,e),L(_)&&_(null,T,b,e),S&&S({phase:"error",mode:"mutation",from:a,method:i,error:T.message||String(T),durationMs:(typeof performance<"u"?performance.now():Date.now())-A})}finally{s.__fetching=!1}},q5=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);L(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])Qe(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},G5=(t,e)=>{if(!t)return null;if(L(t.select))return t;if(t.__resolved)return t.__resolved;if(t.__resolving)return null;let n=typeof t.adapter=="string"?t.adapter:null;if(n!=="rest"||ys[n]||!t.url)return null;let{adapter:r,...o}=t,s=kh(o.url,o.headers,o.auth,o.fetchOptions,o.early,o.reads,o.seed);return s.auth=t.auth,s.url=t.url,s.key=t.key,t.__resolved=s,e.fetch=s,s},Y5=t=>t.on==="create"&&(t.method==="select"||t.method==="rpc")&&!Mh(t)&&!t.infinite&&!df(t),L1=t=>{let e=t&&t.context;if(!e||!e.fetch||NS(e))return;let n=t.__ref;if(!n||!t.fetch||!JO())return;let r;try{r=St(t.fetch,t)}catch{return}if(!r)return;let o=I(r)?r:[r];for(let s of o){let i;try{i=PS(St(s,t),t)}catch{continue}if(!i||!Y5(i)||i.enabled===!1||i.skip===!0)continue;try{if(L(i.enabled)&&!i.enabled(t,t.state)||L(i.skip)&&i.skip(t,t.state))continue}catch{continue}let a=Ih(i.cache);if(!a)continue;let c=G5(e.fetch,e);if(!c||!L(c.seeded))return;X5(i,a,c,t,e,n)}},X5=(t,e,n,r,o,s)=>{let i=v(t.select)?t.select:void 0,a,c,l,f,u;try{if(t.query&&L(r.getQuery)){let x=r.getQuery(n.name||"paths");x&&(i=x.select||x.length&&x.join(",")||i)}a=uf(t.params,r,o),c=bs(t.page,r),l=bs(t.cursor,r);let y=ha(r,o);f=Dh(t,a,lf(r,o),y,c,l),u=T1(t,i,a,y,c,l)}catch{return}let d=Qe(o),p=pa(d,f);if(p&&!p.error)return;t.method==="rpc"&&(u.read=t.read!==!1);let g=n.seeded({method:t.method,...u});if(!g||g.error||g.data===void 0)return;let h=da(d,f,g.data,null);h.gcTime=e.gcTime||3e5,_S(g,f),s.__fetchInitialized=!0;let m=g.data;try{L(t.select)&&(m=t.select(m,r,r.state)),t.transform&&(m=t.transform(m,r,r.state))}catch{return}br(r,Ph),yr(r,m,t.as),s.__seededOnCreate=f},BS=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=St(t,e);if(!s)return;let i=I(s)?s.map(f=>PS(St(f,e),e)).filter(Boolean):[PS(s,e)].filter(Boolean),a=e.__ref,c=Qe(r);if(a.__fetchMounted)for(let f of a.__fetchMounted)c.mounted.delete(f);a.__fetchMounted=[],!a.__fetchDisposer&&I(a.__effects)&&(a.__fetchDisposer={dispose:()=>q5(a)},a.__effects.push(a.__fetchDisposer));let l=!NS(r);for(let f of i){let u=C1(f.method),d=u?K5:_r,p=!u&&!Mh(f)&&f.method!=="subscribe";if(f.on==="create"?d(f,e,r):queueMicrotask(()=>U5({...f,__runner:d},e,r)),p&&f.on==="create"&&(l&&(f.refetchInterval||f.refetchOnWindowFocus!==!1||f.refetchOnReconnect!==!1)&&z5(f,e,r),!df(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)_r(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};_r(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};_r(d,e,r,{direction:"previous",force:!0})}},Z5={invalidateQueries:t=>Nh(kn,ff(t)),removeQueries:t=>{IS(kn,t?ff(t):MS)},getQueryData:t=>R1(kn,t),setQueryData:(t,e)=>{P1(kn,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=Qe(e),o=await FS(n,e);if(!o)return;let s=t.method||"select",i=lf(null,e),a=ha(null,e),c=Dh({...t,method:s},t.params,i,a),l=o[s];if(!L(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=!Mh(t)&&t.read!==!1);let u=++Lh,d=await l(f);if(d?.data!==void 0&&!d?.error&&!df(t)&&!Th(r,c,u)){let p=da(r,c,d.data,null,u,RS(r,c,u));p.gcTime=Ih(t.cache)?.gcTime||3e5}return d},getCache:()=>kn.cache,clear:()=>IS(kn,MS),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of kn.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||k1(kn,n))}},_1=(t,e)=>E(t)?$S({method:"select",...t},e,e?.context):t,J5={invalidateQueries(t){return Nh(Qe(this?.context),ff(t))},removeQueries(t){IS(Qe(this?.context),t?ff(t):MS)},getQueryData(t){return R1(Qe(this?.context),_1(t,this))},setQueryData(t,e){P1(Qe(this?.context),_1(t,this),e)}},Q5=async t=>{let e=await GO();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);mS();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(t6(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?Nh(kn,c=>o.has(c)):null,...s.map(a)]),i.length&&L(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}},t6=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return!1}},e6={name:"fetch",init(t){t.fetch&&L1(t)},create(t){let e=t.fetch;e&&(t.parent||Qe(t.context).active.clear(),BS(e,t,t.state,t.context))}},n6=BS});function hf(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 US(t){let e=this,{parent:n}=e;if(L(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 VS(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(L(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 zS(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(L(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 jh(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(E(r)&&o)jh.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 I1(t){let e=this;if(mr("beforeRemove",e,t)===!1)return e;L(e.node.remove)?e.node.remove():ro()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=xl(e.parent.__ref.__children,e.key)),mr("remove",e,t)}function HS(t){return this[t]}function WS(t,e){let n=this;if(t)return n.update(t,e),n}function KS(t){return t?this.__ref&&this.__ref[t]:this.__ref}function qS(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function gf(){return this.getRef().path}function yf(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=D1();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=L(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=D1()),t?e?.[t]:e}function bf(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 _f(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function wf(t){let e=this.getRoot()?.context;return t?e[t]:e}function Sf(t){let e=this.context;return t?e[t]:e}function Uh(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||to.has(n)&&!Cl.has(n)||e.push(n);return e}function Vh(t=[]){let e=this,n={},r=Uh.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=L(c&&c.parse)?c.parse():c;n[a]=L(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 Ut(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function pf(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=Vh.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)?pf.call(a,t,e):a):V(i)&&(r[s]=pf.call(i,t,e))}return r}function ya(...t){if(fo!=="test"&&fo!=="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
|
|
23
|
-
${
|
|
21
|
+
return (${c}); })`)(e)}catch{try{e[a]=R.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=R.eval(`(${a})`)}catch{e[i]=a}return e},fw=(t,e={verbose:!0})=>{try{return t?R.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},uw=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Hp=t=>{for(let e in t)return!1;return!0},dw=t=>k(t)&&Hp(t),pw=()=>Object.create(null),Bl=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&cs(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},ds=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)cs(o)||o==="constructor"||o==="prototype"||(r?n.has(o):n.includes(o))||(t[o]=e[o]);return t},ae=(t,e,n={},r=new WeakMap)=>{if(!V(t)||!V(e)||ye(t)||ye(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&&cs(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];ye(l)?t[a]=l:V(c)&&V(l)?t[a]=ae(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Wp=(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)||!Wp(t[i],e[i],n))return!1}return!0},_5=new Set(["node","__ref"]),hw=(t,e,n=_5)=>{if(t===e)return!0;if(!V(t)||!V(e)||ye(t)||ye(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(ye(l)||ye(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)},gw=(t,e)=>{if(e==null)return t;if(_e(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},Kp=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]=Kp(t[n]));return e},mw=(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},yw=(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]},bw=(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},_w=(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},ww=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(dO==="test"||dO==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},Sw=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)},xw=(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 jl,Ul,Vl,qp=D(()=>{"use strict";zn();jl=(function(){let t=0;function e(){return t++,t}return e})(),Ul=jl,Vl=(t,e,n)=>(St(n,t)||n||t.key||jl()).toString()});var An,kw,io,Gp,Ew,vw,Aw,ao,Tw,br,tt,zl=D(()=>{"use strict";An="production",kw=An,io=(t=An)=>t==="production",Gp=(t=An)=>t==="testing"||t==="test",Ew=Gp,vw=(t=An)=>t==="staging",Aw=(t=An)=>t==="local",ao=(t=An)=>t==="development"||t==="dev"||t==="local",Tw=(t,e=An)=>e[t],br=(t=An)=>!io(t),tt=t=>{if(!t&&globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__===!0)return!1;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 Hl(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 Rw(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 Cw,Ow,w5,sa,ia,aa,co,ca=D(()=>{"use strict";Cw=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},Ow=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}}},w5=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,sa=t=>w5.test(t),ia=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},aa=(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},co=(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 Pw,RO=D(()=>{"use strict";Kt();zn();Pw=(t,e)=>{let{__ref:n}=t,r=t.if;if(L(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 Lw,Dw,PO=D(()=>{"use strict";Lw=(t,...e)=>{t&&e.map(n=>console.log(n))},Dw=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function Fw(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 Bw(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 Iw,Mw,Nw,$w,LO=D(()=>{"use strict";Kt();wl();Iw=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Mw=(t,e,n=365)=>{if(Zt(kt)||Zt(kt.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;kt.cookie=`${t}=${e};${o};path=/`},Nw=t=>{if(Zt(kt)||Zt(kt.cookie))return;let e=`${t}=`,r=decodeURIComponent(kt.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""},$w=t=>{Zt(kt)||Zt(kt.cookie)||(kt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var la,DO,jw,Uw=D(()=>{"use strict";la={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"])},DO=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"]),jw=t=>la.body.has(t)});var Vw,IO,fa,tn,ua,ql,Wn,zw,Yp,Gl,Hw,Yl,Xp,Zp,Xl,Jp,da,S5,Kn,MO,Wl,Zl,Ww,Kl,Kw,qw,Qp,th,eh,nh,rh,oh,NO,sh=D(()=>{"use strict";ea();Gw();zn();Kt();Vw="production",IO=t=>t.sourcemap!==!1&&Vw!=="production",fa=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},tn=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)?tn(r):r)}return e},ua=t=>{if(t.includes("+"))return t.split("+").filter(qn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!qn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},ql=(t,e,n)=>{let r=[],o=ua(n);o&&(r=[...o]);let s=tn(fa(t));return s.length&&(r=[...r,...s]),r},Wn=(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},zw=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:Qi(o,r)}},Yp=()=>Math.random().toString(36).substring(2),Gl={},Hw={},Yl=t=>Gl[t.__hash],Xp=(t,e)=>{let n=Yp();return v(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(Gl[n]=e),e},Zp=(t,e)=>t.__hash?e.concat(Yl(t)):Xp(t,e),Xl=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?Xl(i,e,n,r,o,s):da(i,e,n,r,o,void 0,s);return e},Jp=(t,e,n,r=new Set,o,s,i)=>{let a=fa(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&&da(tn(a),e,n,r,o,s,i),e},da=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return Xl(t,e,n,r,o,i);let a=s;return v(t)?(a=t,t=Zl(t,n)):i&&k(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?Jp(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},S5=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(S5.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?k(a)&&!I(a)?(n[s]=n[s]||{},MO(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(k(i)&&k(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];qn(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)&&k(a)){let c=Kn({},i);t[s]=Kn(c,a)}}}}return t},MO=(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];k(s)&&!I(s)?(t[o]=t[o]||{},MO(t[o],s,n,r)):t[o]=n}}},Wl=(t,e,n)=>t.reduce((r,o,s)=>{let i=pt(o),a=n?n[s]:void 0;return Kn(r,i,e,a)},{}),Zl=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(v(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&&(Vw==="test"||Vw==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Ww=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Kl=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return Yl(t)||[];let s=da(t,[],e,new Set,n,void 0,r);return n?s:Zp(t,s)},Kw=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return Qi(n,e)},qw=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(qn(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},Qp=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=fa(t);if(i.length){let a=tn(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?Wn([f,...l],t):Wn(a,t)}return th(t,e,n),eh(t,e,n),nh(t,e,n),t.component&&Wn(tn(St(t.component,t)),t),o.defaultExtends&&Wn(tn(o.defaultExtends),t),ta(r.__extends)},th=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Wn(tn(e.childProps.extends),t),r.__extends},eh=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Wn(tn(s),t),r.__extends},nh=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Wn(tn(o),t),r.__extends},rh=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=IO(n),a=i?[...r.__extends]:null,c=ta(r.__extends.map((l,f)=>Zl(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&&k(p)&&v(g)&&l.set(p,g)}let f=[],u=Kl(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=Kl(c,o);r.__extendsStack=l}return r.__extendsStack},oh=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(IO(n)){let s={},i=r.__extendsNames||[],a=Wl(o,s,i),c={};Kn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=Wl(o);Kn(t,s)}return t},NO=(t,e,n={})=>(Qp(t,e,n),rh(t,e,n),oh(t,e,n),t)});function Yw(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Xw(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Zw(t,e,n){let{context:r}=e||{},[o]=ua(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var qn,Gw=D(()=>{"use strict";sh();Kt();qn=t=>{if(!v(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function $O(t,e){let{props:n,on:r}=e,o=rs(t.split("on")[1]),s=r[o],i=n[t];L(s)?r[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:r[o]=i}var FO=D(()=>{"use strict";Ol();Kt()});function ih(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()&&(L(o)||o!=null&&ia(this.context))){let g=rs(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=k(a)||L(a),f=k(c)||L(c);if(l||f)continue;let u=r.charAt(0);if(jO.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=Jw.test(r)||BO.test(r)||k5(o),p=ro.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function ah(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=L(o)||o!=null&&ia(this.context);if(s&&i){$O(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if(jO.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=k(c)||L(c),u=k(l)||L(l),d=Jw.test(r)||BO.test(r),p=ro.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function ch(t=this){let e=[];return ih.call(this,t,{cachedKeys:e}),ah.call(this,t,{cachedKeys:e}),t}function Qw(t={}){return t.on||(t.on={}),t.props||(t.props={}),ch.call(this,t)}function eS(t,e){this.__element.update({props:t},e)}function nf(t){let e={update:eS.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Jw,BO,jO,x5,k5,tf,Jl,tS,ef,rf,of,lh,Ql,nS,rS,oS=D(()=>{"use strict";is();FO();zn();Kt();Ol();ca();Jw=/^[A-Z]/,BO=/^\d+$/,jO=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),x5=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),k5=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(x5.has(e)||Jw.test(e))return!0;return!1},tf=(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),{})};Jl=t=>_e(t)("string","number")?{inheritedString:t}:t,tS=(t,e)=>!t||!e.length?!1:e.includes(t),ef=(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=Jl(i);r.unshift(c)}if(s){let c=Jl(s);r.unshift(c)}return r};rf=t=>{let e=new Set;return t.filter(n=>!n||oo.has(n)||e.has(n)?!1:(e.add(n),!0))},of=(t,e,n)=>(e.props=t.reduce((r,o)=>{if(oo.has(o))return r;for(;L(o);)o=St(o,e);return bt(r,pt(o,{exclude:oo}))},{}),nf(e),e.props),lh=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...ef(t,e)]),k(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=rf(o),r.__propsStack},Ql=(t,e)=>{let{__ref:n}=t,r=lh(t,e);r.length?of(r,t):(n.__propsStack=[],t.props={})},nS=function(t,e,n){let{__ref:r}=t;if(r.__if)Ql(t,e);else try{Ql(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return nf(t),t},rS=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=ef(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=rf(s),r.__propsStack.length&&of(r.__propsStack,e),e}});var UO,fh,uh,dh,ph,sS,hh,gh,mh,iS,VO=D(()=>{"use strict";sh();qp();xl();oS();Uw();Kt();UO="production",fh=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=la.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},uh=(t,e,n)=>{if(t===void 0)return(UO==="test"||UO==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:_e(t)("string","number")?fh(t,e,n):L(t)?{props:t}:t},dh=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},ph=(t,e,n,r,o)=>{if(!e)return o;if(mr(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},sS=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},hh=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},gh=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),mh=(t,e,n)=>{let r=dh(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=ql(t,e,n),r.path=hh(t,e,n),r},iS=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:uh(t,e,n);if(!i)return;let a=ph(i,e,n,r,o),c=Vl(i,a,n);mh(i,a,c);let l=tf(i,a,c),f=gh(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var aS,yh,bh,_h,wh,cS,Sh,lS,fS,uS,xh,zO,E5,KO,lo,dS,HO,fo,ps,WO,qO,GO,sf,Gn,YO=D(()=>{"use strict";ea();is();zl();zn();Kt();aS=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return _e(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},yh=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},bh=(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},_h=(t,e,n={})=>{let r=v(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]},wh=(t,e,n={})=>{let o=t.__ref.__state;if(!Sh(t))return;let s=yh(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=bh(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return _h(o,i,n)},cS=(t,e)=>{let n=t.__ref,r=wh(t,e);if(r===void 0)return t.state;if(_e(r)("object","array"))return pt(r);if(_e(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},Sh=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&_e(n)("number","string","boolean"))},lS=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},fS=(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},uS=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=pt(r,os),s={[t.key]:o},i=k(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?Al(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},xh=new Set(["parent","root"]),zO=new Set,E5=t=>{zO.has(t)||(zO.add(t),tt()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},KO=(t,e,n,r)=>{if(t===e)return t;for(let o=0;o<r.length;o+=2)if(r[o]===t&&r[o+1]===e)return t;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o.charCodeAt(0)===95&&o.charCodeAt(1)===95||o==="constructor"||o==="prototype")continue;let s=n?n+"."+o:o;if(xh.has(o)){E5(s);continue}let i=t[o],a=e[o];V(i)&&V(a)?(r.push(t,e),KO(i,a,s,r),r.length-=2):i===void 0&&(t[o]=a)}return t},lo=(t,e)=>!V(t)||!V(e)?t:KO(t,e,"",[]),dS=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){bt(t,e,os);return}(o?ds:ae)(t,e,os)},HO="__polyglotSeededKeys",fo=t=>{if(!k(t))return new Set;let e=t[HO];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,HO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},ps=(t,e,n)=>fo(t).has(e)?!0:!k(n)||n[e]===void 0,WO="__polyglotSeededValues",qO=t=>{if(!k(t))return new Map;let e=t[WO];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,WO,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},GO=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},sf=(t,e,n)=>{if(!fo(t).has(e))return!1;let r=qO(t);if(!r.has(e))return!0;let o=k(n)||Array.isArray(n)?n[e]:void 0,s=GO(o);return s!==null&&s===r.get(e)},Gn=(t,e,...n)=>(fo(t).add(e),n.length&&qO(t).set(e,GO(n[0])),e)});var v5,pS,XO=D(()=>{"use strict";v5=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},pS=(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&&!v5(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var ZO,kh,_r,Eh,hS,gS=D(()=>{"use strict";Kt();ca();ZO=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},kh=(t,e,n,r,o)=>{if(t=aa(t,e),!!L(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}},_r=(t,e,n)=>{if(!e)throw new Error("Element is required");co(t,e,n);let r=ZO(t,e);if(r){let{state:o,context:s}=e;return kh(r,e,o,s,n)}},Eh=(t,e,n,r,o,s)=>{if(t=aa(t,n),!!L(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}},hS=(t,e,n,r)=>{co(t,n,e,r);let o=ZO(t,n);if(o){let{state:s,context:i}=n;return Eh(o,e,n,s,i,r)}}});var mS,af,yS=D(()=>{"use strict";mS={},af={}});var uo,bS=D(()=>{"use strict";uo=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 po,gs,ms,_S,Yn,wS,JO,QO,SS,xS,t1,cf,e1,A5,kS,T5,ES,hs,n1,vh,vS,r1,o1,s1,pa=D(()=>{"use strict";M();bS();po="@symbo.ls/fetch:EARLY",gs=3e4,ms=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},_S=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},Yn=()=>Symbol.for(po),wS=(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},JO=(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},QO=(t,e,n)=>{let r=Yn();if(A5(n),!t||typeof t!="object"){let i=globalThis[r];return i&&i.seeded?{carried:{},rpc:!1,maxAge:gs,seeded:!0}:null}globalThis[r]||(globalThis[r]={entries:{}});let o={};for(let{header:i,found:a,value:c}of wS(t.query,e))a&&(o[i]=c);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:gs;return{carried:o,rpc:t.rpc==="get",maxAge:s,seeded:!!globalThis[r].seeded}},SS=(t,e=gs,n)=>{let r=globalThis[Yn()],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=ES(r,t,n())),Promise.resolve(o.seeded)):Promise.resolve(o.answer).then(s=>s&&s.ok&&!s.bodyUsed?s:null,()=>null)},xS=()=>{let t=globalThis[Yn()];t&&t.entries&&(t.entries={})},t1=t=>(Array.isArray(t)?t:[]).filter(e=>e&&typeof e.url=="string"&&typeof e.body=="string").map(e=>({k:ms(e.url,e.lang||""),s:e.status||200,t:e.type||"application/json",b:e.body})),cf='script[type="application/json"][data-fetch-seed]',e1=t=>{let e=t1(t);return e.length?'<script type="application/json" data-fetch-seed>'+ys(e)+"<\/script>":""},A5=t=>{let e=Xn(globalThis.document,cf,{remove:!0}),n=t===!1?null:e&&e.value;if(!Array.isArray(n)||!n.length){let c=globalThis[Yn()];c&&c.stale||(hs=null);return}let r=Yn(),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=bs(globalThis.document)||{stamp:null,time:null},a=T5(t,i.stamp,i.time);a?(o.stale=a,o.seedConfig=t&&typeof t=="object"?t:null):hs=null},kS="data-smbls-stale",T5=(t,e,n)=>{let r=globalThis.document&&globalThis.document.documentElement;if(r&&typeof r.hasAttribute=="function"&&r.hasAttribute(kS))return!0;if(!t||typeof t!="object")return!1;if(t.maxAge!=null&&n!==null){let o=uo(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}},ES=(t,e,n)=>{let r={key:e,again:n,result:null,cacheKey:null};if((t.taken||(t.taken=[])).push(r),hs){let o=hs;hs=null;for(let s of o)try{s()}catch{}}return r},hs=null,n1=t=>{let e=globalThis[Yn()];return e&&e.seeded&&!e.stale||e&&e.stale&&e.revalidated?!1:e&&e.stale&&e.taken&&e.taken.length?(t(),!0):((hs||(hs=new Set)).add(t),!0)},vh=(t,e)=>{let n=globalThis[Yn()];!n||!t||typeof t!="object"||(e.result=t,(n.results||(n.results=new WeakMap)).set(t,e))},vS=(t,e)=>{let n=globalThis[Yn()],r=n&&n.results&&t?n.results.get(t):null;r&&(r.cacheKey=e)},r1=()=>{let t=globalThis[Yn()];return!!(t&&t.stale&&!t.revalidated)},o1=async()=>{let t=globalThis[Yn()];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},s1=t=>{let e=t1(t);if(!e.length)return"";let n=ys(e);return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(po)+"),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 i1,a1,c1,AS=D(()=>{"use strict";pa();i1=()=>globalThis[Symbol.for(po)],a1=(t,e=gs,n,r)=>{let o=i1(),s=o&&o.entries&&o.entries[t];if(!s||!s.seeded||!(Date.now()-s.time<=e))return null;let i=r(s.seeded);return i?(delete o.entries[t],o.stale&&n&&vh(i,ES(o,t,n())),i):null},c1=()=>{let t=i1();if(t&&t.seeded){for(let n in t.entries)if(t.entries[n]&&t.entries[n].seeded)return!0;return!1}let e=globalThis.document;return!!(e&&typeof e.querySelector=="function"&&e.querySelector(cf))}});var l1,Ah,f1,u1,d1,p1,TS=D(()=>{"use strict";l1=Symbol.for("@symbo.ls/fetch:IN_FLIGHT"),Ah=()=>globalThis[l1]||(globalThis[l1]={count:0,waiters:[]}),f1=()=>{Ah().count++},u1=()=>{let t=Ah();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()}},d1=()=>Ah().count,p1=()=>{let t=Ah();return t.count===0?Promise.resolve():new Promise(e=>{t.waiters.push(e)})}});var C5,h1,g1=D(()=>{"use strict";pa();C5=(t,e)=>{let n=new URL(t);return n.searchParams.delete("limit"),n.searchParams.sort(),n.toString()+" "+(e||"")},h1=(t,e,n,r=gs)=>{let o=globalThis[Symbol.for(po)],s=o&&o.slices&&o.slices[C5(t,e)];if(!s||!(n>0))return null;for(let i=0;i<s.length;i++){let a=s[i],c=o.entries&&o.entries[a];if(!(!c||!(c.limit>=n)))return s.splice(i,1),delete o.entries[a],Date.now()-c.time<=r?Promise.resolve(c.answer).then(l=>{if(!l||!l.ok||l.bodyUsed)return null;let f=l.headers&&l.headers.get("content-type")||"application/json";return l.json().then(u=>Array.isArray(u)?{seeded:!0,status:l.status,type:f,body:JSON.stringify(u.slice(0,n))}:null)}).catch(()=>null):null}return null}});var PS={};F(PS,{buildUrl:()=>lf,headerEntries:()=>w1,restAdapter:()=>Th,selectQuery:()=>OS,setup:()=>F5,withQuery:()=>ff});var lf,OS,y1,RS,O5,R5,P5,m1,b1,en,_1,L5,D5,w1,CS,I5,M5,N5,$5,ff,F5,Th,S1=D(()=>{"use strict";pa();AS();TS();g1();lf=(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()},OS=({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},y1=t=>Object.prototype.toString.call(t).slice(8,-1),RS=["auto","json","text","blob","arrayBuffer","stream","response"],O5={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},R5=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},P5=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},m1=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,b1=(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}},en=async(t,e,n,r)=>{let o=n??"auto";if(!RS.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${RS.join(", ")}`);f1();try{return await _1(t,e,o,r)}finally{u1()}},_1=async(t,e,n,r)=>{let o=r?await r:null;if(o&&o.seeded===!0){let i=b1(o,n);if(o.taken&&i!==!1){let a=i||await _1(t,e,n,Promise.resolve(new Response(o.body,{status:o.status,headers:{"content-type":o.type}})));return vh(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 R5(s);return{data:i,error:s.ok?null:m1(i,s),status:s.status}}if(!s.ok){let i=await P5(n==="response"?s.clone():s);return{data:n==="response"?s:i,error:m1(i,s),status:s.status}}return{data:await O5[n](s),error:null,status:s.status}},L5=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],D5=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||L5.includes(y1(t))),w1=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),CS=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of w1(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},I5={"Content-Type":"application/json"},M5={"Content-Type":void 0},N5=t=>{if(!t||typeof t!="object")return null;let e={};for(let{header:n,param:r}of wS(t.query))e[n]=r;return{params:e,rpc:t.rpc==="get"}},$5="content-type",ff=(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()},F5=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 Th(t,e,n,r,o,s,i)},Th=(t,e={},n,r={},o,s,i)=>{let a=n?.token||null,c=QO(JO(o,s),e,i),l=N5(s),f=_=>{if(!l)return null;let b={},w={},S={};for(let A in _){let C=A.toLowerCase();if(C==="authorization")return null;if(C===$5)continue;w[A]=_[A];let O=l.params[C];O?S[O]=_[A]:b[A]=_[A]}return{headers:b,adoptHeaders:w,query:S}},u=(_,b,w)=>{if(!c)return null;let S="";for(let A in b){let C=A.toLowerCase();if(C==="accept-language")S=String(b[A]);else if(c.carried[C]!==b[A])return null}try{let A=_();return SS(ms(A,S),c.maxAge)||(w>0?h1(A,S,w,c.maxAge):null)}catch{return null}},d=(_,b,w,S,A,C,O)=>{if(!c||!c.seeded)return null;let B="";for(let $ in b){let N=$.toLowerCase();if(N==="accept-language")B=String(b[$]);else if(N!=="accept")return null}try{return SS(ms(_,B),c.maxAge,()=>g(w,S,A,_,C,O))}catch{return null}},p=(_,b,w,S,A,C,O)=>{if(!c||!c.seeded)return null;let B="";for(let N in b){let G=N.toLowerCase();if(G==="accept-language")B=String(b[N]);else if(G!=="accept")return null}let $=O??"auto";if(!RS.includes($))return null;try{return a1(ms(_,B),c.maxAge,()=>g(w,S,A,_,C,O),N=>b1(N,$)||null)}catch{return null}},g=(_,b,w,S,A,C)=>({method:_,from:b,params:w,send:()=>en(S,A,C,null)}),h=()=>a?{Authorization:`Bearer ${a}`}:null,m=_=>CS(e,h(),_),y=_=>({...r,..._}),x=(_,b,w)=>{if(!D5(b))return y({method:_,headers:CS(e,h(),I5,w),body:JSON.stringify(b)});let S={method:_,headers:CS(e,h(),M5,w),body:b};return y1(b)==="ReadableStream"&&(S.duplex="half"),y(S)},E=(_,b)=>{let w=b||t;if(_&&(_.startsWith("http://")||_.startsWith("https://")))return _;let S=_&&!_.startsWith("/")?"/":"";return`${w}${S}${_||""}`};return{name:"rest",setToken:_=>{a=_},getSession:async()=>{if(!n?.sessionUrl)return a?{token:a}:null;let _=await en(E(n.sessionUrl,n.baseUrl),y({headers:m()}));return _.error?null:_.data},signIn:async _=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let b=await en(E(n.signInUrl,n.baseUrl),x("POST",_));return b.data?.token&&(a=b.data.token),b},signOut:async()=>(n?.signOutUrl&&await en(E(n.signOutUrl,n.baseUrl),y({method:"POST",headers:m()})),a=null,{error:null}),select:({from:_,params:b,select:w,limit:S,offset:A,order:C,single:O,headers:B,baseUrl:$,responseType:N})=>{let G=lf($||t,_||"",OS({params:b,select:w,limit:S,offset:A,order:C,single:O})),Y=!A&&!O&&Number(S)>0?Number(S):0,nt=m(B),ot=f(nt);if(ot){let J=y({headers:ot.headers}),Z=ff(G,ot.query);return en(Z,J,N,d(Z,ot.headers,"select",_,b,J,N)||u(()=>G,ot.adoptHeaders,Y))}let st=y({headers:nt});return en(G,st,N,d(G,st.headers,"select",_,b,st,N)||u(()=>G,st.headers,Y))},seeded:({method:_,from:b,params:w,select:S,limit:A,offset:C,order:O,single:B,headers:$,baseUrl:N,responseType:G,read:Y})=>{if(!c||!c.seeded)return null;if(_==="select"){let nt=lf(N||t,b||"",OS({params:w,select:S,limit:A,offset:C,order:O,single:B})),ot=m($),st=f(ot);if(st){let Z=y({headers:st.headers});return p(ff(nt,st.query),st.headers,"select",b,w,Z,G)}let J=y({headers:ot});return p(nt,J.headers,"select",b,w,J,G)}if(_==="rpc"){if(!(Y===!0&&l&&l.rpc&&_S(w)))return null;let nt=f(m($));if(!nt)return null;let ot;try{ot=lf(N||t,`rpc/${b}`,w)}catch{return null}let st=y({method:"GET",headers:nt.headers});return p(ff(ot,nt.query),nt.headers,"rpc",b,w,st,G)}return null},rpc:async({from:_,params:b,headers:w,baseUrl:S,responseType:A,read:C})=>{let O=_S(b),B=()=>lf(S||t,`rpc/${_}`,b),$=J=>en(E(`rpc/${_}`,S),x("POST",b,w),A,J),N=m(w),G=C===!0&&l&&l.rpc&&O?f(N):null,Y=null;if(G)try{Y=B()}catch{Y=null}if(!Y)return $(c&&c.rpc&&O?u(B,N):null);let nt=y({method:"GET",headers:G.headers}),ot=ff(Y,G.query),st=await en(ot,nt,A,d(ot,G.headers,"rpc",_,b,nt,A)||u(()=>Y,G.adoptHeaders));return st.status===405?$(null):st},insert:({from:_,data:b,headers:w,baseUrl:S,responseType:A})=>en(E(_,S),x("POST",b,w),A),update:({from:_,data:b,params:w,method:S,headers:A,baseUrl:C,responseType:O})=>{let B=w?.id||b?.id,$=B?`${_}/${B}`:_;return en(E($,C),x(S||"PATCH",b,A),O)},upsert:({from:_,data:b,params:w,method:S,headers:A,baseUrl:C,responseType:O})=>{let B=w?.id||b?.id,$=B?`${_}/${B}`:_;return en(E($,C),x(S||"PUT",b,A),O)},delete:({from:_,params:b,headers:w,baseUrl:S,responseType:A})=>{let C=b?.id,O=C?`${_}/${C}`:_;return en(E(O,S),y({method:"DELETE",headers:m(w)}),A)}}}});var k1={};F(k1,{localAdapter:()=>x1,setup:()=>j5});var Ch,B5,j5,x1,E1=D(()=>{"use strict";Ch=(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},B5=(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}},j5=async({data:t,...e})=>x1(t,e),x1=(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=>Ch(h,u));return B5(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(Ch(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),x=y?p.findIndex(E=>Ch(E,y)):-1;if(x>-1){let E={...p[x]};Object.assign(p[x],m),h.push(p[x]),c(f,"UPDATE",p[x],E)}else{let E={id:m.id||++l,...m};p.push(E),h.push(E),c(f,"INSERT",E,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--)Ch(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 ba={};F(ba,{EARLY_KEY:()=>po,SEED_BLOCK:()=>cf,STALE_ATTRIBUTE:()=>kS,createAdapter:()=>K5,createEarlySeedBlock:()=>e1,createEarlySeedScript:()=>s1,default:()=>p6,earlyKey:()=>ms,executeFetch:()=>WS,fetchFunctions:()=>l6,fetchPlugin:()=>d6,hasAdapter:()=>W5,initAdapterAuth:()=>Dh,parseDuration:()=>uo,queryClient:()=>c6,registerAdapter:()=>H5,requestsInFlight:()=>d1,resolveDb:()=>P1,revalidateSeed:()=>f6,seedFromPage:()=>V1,seedIsStale:()=>r1,whenRequestsIdle:()=>p1,whenSeedTaken:()=>n1});var U5,R1,Oh,_s,Rh,MS,V5,z5,H5,W5,K5,P1,VS,L1,Tn,v1,nn,Nh,LS,$h,ma,ga,Lh,NS,Ih,D1,Fh,I1,q5,Ph,G5,A1,DS,M1,N1,ha,T1,Y5,$S,X5,$1,Bh,ya,df,hf,ws,zS,Dh,HS,Cn,Zn,uf,gf,Z5,FS,wr,Mh,BS,Sr,C1,F1,xr,J5,Q5,t6,e6,IS,pf,n6,jh,B1,jS,US,j1,U1,r6,o6,s6,i6,V1,a6,WS,c6,O1,l6,f6,u6,d6,p6,Uh=D(()=>{"use strict";M();Mt();pa();AS();bS();S1();pa();TS();U5=["select","rpc","insert","update","upsert","delete","subscribe"],R1={rest:()=>Promise.resolve(PS),local:()=>Promise.resolve().then(()=>(E1(),k1))},Oh=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),_s=(()=>{if(typeof globalThis<"u"&&globalThis[Oh])return globalThis[Oh];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Oh,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Oh]}catch{}return t})(),Rh=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),MS=(()=>{if(typeof globalThis<"u"&&globalThis[Rh])return globalThis[Rh];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Rh,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Rh]}catch{}return t})(),V5=5e3,z5=t=>new Promise(e=>{if(_s[t])return e(_s[t]);let n=MS[t]||=[],r=!1,o=()=>{r||(r=!0,e(_s[t]||null))};n.push(o),setTimeout(o,V5)}),H5=(t,e)=>{_s[t]=e;let n=MS[t];if(n&&n.length){MS[t]=[];for(let r of n)r()}},W5=t=>typeof t=="string"&&!!(_s[t]||R1[t]),K5=t=>{let e={};for(let n of U5)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},P1=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=_s[r]||R1[r];if(!o&&(o=await z5(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)},VS=t=>!!t&&!!t.isolateFetchCache,L1=()=>({cache:new Map,subscribers:new Map,active:new Map,invalidatedAt:new Map,mounted:new Set}),Tn=L1(),v1=new WeakMap,nn=t=>{if(!VS(t))return Tn;let e=v1.get(t);return e||v1.set(t,e=L1()),e},Nh=0,LS=new WeakMap,$h=(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}`},ma=(t,e)=>t.cache.get(e)||null,ga=(t,e,n,r,o=++Nh,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)L(c)&&c(i);return i},Lh=(t,e,n)=>{let r=e?t.cache.get(e):null;return r&&!r.error&&r.seq>n?r:null},NS=(t,e,n)=>(t.invalidatedAt.get(e)||0)>n,Ih=(t,e)=>{t.invalidatedAt.set(e,++Nh)},D1=(t,e)=>{t.cache.delete(e),Ih(t,e)},Fh=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)}:v(t)?{staleTime:uo(t),gcTime:3e5}:{staleTime:uo(t.stale||t.staleTime)||6e4,gcTime:uo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},I1=t=>!!t.ref&&t.element.__ref===t.ref,q5=({config:t,element:e,context:n})=>{try{return zS(t,e,n)}catch{return null}},Ph=null,G5=()=>{Ph||(Ph=setInterval(()=>{let t=Date.now(),{cache:e,subscribers:n,active:r,invalidatedAt:o,mounted:s}=Tn;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)I1(i)||s.delete(i)},3e4),Ph.unref&&Ph.unref())};G5();A1=3,DS=t=>Math.min(1e3*2**t,3e4),M1=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:A1,delay:DS}:typeof n=="number"?{count:n,delay:DS}:{count:n.count??A1,delay:L(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:DS}},N1=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=L(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=L(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},ha={focus:new Set,online:new Set},T1=!1,Y5=()=>{if(T1||typeof window>"u")return;T1=!0;let t=()=>{for(let n of ha.focus)n()},e=()=>{for(let n of ha.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},$S=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(v(t))return{from:t,method:"select",query:!0,on:"create"};if(k(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},X5=["insert","update","upsert","delete"],$1=t=>X5.includes(t),Bh=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,ya=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},df=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},hf=(t,e,n)=>{let r;if(!t)r=void 0;else if(L(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=L(s)?s(e,e.state):s}}return r},ws=(t,e)=>L(t)?t(e,e.state):t,zS=(t,e,n)=>$h(t,hf(t.params,e,n),df(e,n),ya(e,n),ws(t.page,e),ws(t.cursor,e)),Dh=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)})},HS=async(t,e)=>{if(L(t.select))return t.auth!==!1&&await Dh(t,e),t;if(t.__resolved)return t.auth!==!1&&await Dh(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=P1(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 Dh(n,e),n):null},Cn=(t,e,...n)=>{let r=L(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},Zn=(t,e,n,...r)=>{let o=t&&L(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},uf=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},gf=t=>t.responseType==="stream"||t.responseType==="response",Z5=["Blob","File","ArrayBuffer","ReadableStream","Response"],FS=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||Z5.includes(Object.prototype.toString.call(t).slice(8,-1))),wr=(t,e,n,r={})=>{if(!n&&FS(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)&&!FS(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})}},Mh=Object.freeze({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),BS=t=>({isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:t,status:"error",fetchStatus:"idle"}),Sr=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},C1=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];L(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),L(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},F1=(t,e,n,r,o,s)=>{let{from:i,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d,responseType:p}=t,g={from:i,select:e,params:n,single:a,limit:c,offset:l,order:f,headers:u,baseUrl:d};if(p!==void 0&&(g.responseType=p),r&&(g.headers={...g.headers,"Accept-Language":r}),o!==void 0){if(k(o))o.offset!==void 0&&(g.offset=o.offset),o.limit!==void 0&&(g.limit=o.limit),o.cursor!==void 0&&(g.params={...g.params,cursor:o.cursor});else if(typeof o=="number"){let h=t.pageSize||c||20;g.offset=(o-1)*h,g.limit=h}}return s!==void 0&&(g.params={...g.params,cursor:s}),g},xr=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=df(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&df(e,n)===i;if(t.enabled===!1||L(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||L(t.skip)&&t.skip(e,e.state))return;let l=await HS(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:x,as:E,limit:T,offset:_,order:b,headers:w,baseUrl:S,responseType:A,page:C,cursor:O,infinite:B,placeholderData:$,initialData:N,select:G,keepPreviousData:Y}=t,nt=H=>(L(G)&&(H=G(H,e,e.state)),h&&(H=h(H,e,e.state)),H),ot=H=>{Sr(e,BS(H)),Cn(e,"onFetchError",H),Zn(t,e,"onFetchError",H)},st=v(G)?G:void 0;if(d&&L(e.getQuery)){let H=e.getQuery(l.name||"paths");H&&(st=H.select||H.length&&H.join(",")||st)}let J=hf(p,e,n),Z=ws(C,e),Q=ws(O,e),it=Bh(t),rt=gf(t)||it?null:Fh(g),gt=M1(t,it||$1(u)),q=ya(e,n),W=rt?$h(t,J,i,q,Z,Q):null,Rt=nn(n);if(!s.__fetchInitialized&&W&&(s.__fetchInitialized=!0,N!==void 0)){let H=L(N)?N():N;ga(Rt,W,H,null)}if((u==="select"||u==="rpc")&&W&&rt&&!r.refresh&&!r.force){let H=ma(Rt,W);if(H&&!H.error){let Ct=Date.now()-H.time,X=H.stale||Ct>(rt.staleTime||0);B&&I(H.data)&&!s.__pages&&(s.__pages=[H.data],C1(s,t,H.data));let at=nt(H.data);if(!c())return;if(!X){Sr(e,Mh),wr(e,at,E),s.__seededOnCreate===W&&(s.__seededOnCreate=null,Cn(e,"onFetchComplete",at),Zn(t,e,"onFetchComplete",at));return}wr(e,at,E)}else if($!==void 0){let Ct=L($)?$(e,e.state):$;Ct!==void 0&&wr(e,Ct,E)}}let yt=W&&!r.force?Rt.active.get(W):null;if(yt&&!NS(Rt,W,LS.get(yt)||0)){try{let H=await Promise.race([yt,new Promise((Ct,X)=>setTimeout(()=>X("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(H?.error)ot(H.error);else if(H?.data!==void 0){let Ct=!B&&Lh(Rt,W,LS.get(yt)||0),X=nt(Ct?Ct.data:H.data);if(!c())return;wr(e,X,E),Cn(e,"onFetchComplete",X),Zn(t,e,"onFetchComplete",X)}}catch(H){if(!c())return;H!=="DEDUP_TIMEOUT"&&ot(H)}return}let jt=!ma(Rt,W)?.data;Sr(e,{isFetching:!0,isLoading:jt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Cn(e,"onFetchStart"),Zn(t,e,"onFetchStart");let Tt=n?.analyze?.emitNetwork,Pt=Tt?typeof performance<"u"?performance.now():Date.now():0;Tt&&Tt({phase:"start",mode:"query",from:f,method:u,cacheKey:W,lang:q});let Ze=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let X=await l.getSession();if(!c())return;if(y===!0&&!X){let at={message:"Not authenticated"};return ot(at),{data:null,error:at}}}let H=l[u];if(!L(H))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let Ct=F1(t,st,J,ya(e,n),Z,Q);if(u==="insert"||u==="update"||u==="upsert"){let X;if(x===!0||t.on==="submit")X=uf(e);else if(I(x)){let at=uf(e);X={};for(let Je of x)X[Je]=at[Je]}else e.state?.parse?X=e.state.parse():k(e.state)&&(X={...e.state});h&&(X=h(X,e,e.state)),Ct.data=X}if(u==="rpc"){let X=J;if(t.on==="submit"){let at=uf(e);X=t.transformParams?t.transformParams(at,e,e.state):at}Ct.params=X,Ct.read=!it&&t.read!==!1}if(u==="subscribe"){if(L(s.__unsubscribe)){let at=s.__unsubscribe;s.__unsubscribe=null;try{at()}catch{}}let X=l.subscribe({from:f,params:J,on:t.subscribeOn},(at,Je,a_)=>{c()&&(wr(e,at,E),Cn(e,"onFetchComplete",at),Zn(t,e,"onFetchComplete",at))});return c()?(s.__unsubscribe=X,{data:null,error:null,subscribed:!0}):(L(X)&&X(),{data:null,error:null,subscribed:!0})}return H(Ct)},It=++Nh,Me=N1(Ze,gt);LS.set(Me,It),W&&Rt.active.set(W,Me);try{let H=await Me;if(W&&H&&!it&&vS(H,W),it&&t.invalidates&&H&&!H.error&&!H.subscribed&&B1(Rt,t.invalidates,f),!c()||H?.subscribed)return;let{data:Ct,error:X}=H||{};if(X){W&&!Lh(Rt,W,It)&&ga(Rt,W,null,X,It),ot(X),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:W,error:X.message||X,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt});return}if(Ct!==void 0){let at=Ct;if((u==="select"||u==="rpc")&&W){let a_=!B&&Lh(Rt,W,It);if(a_)at=a_.data;else{let y4=ga(Rt,W,Ct,null,It,NS(Rt,W,It));y4.gcTime=rt?.gcTime||3e5}}let Je=at;if(B&&I(Ct)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(Ct):s.__pages.push(Ct),Je=s.__pages.flat(),C1(s,t,Ct)),Je=nt(Je),!c())return;Sr(e,Mh),(!Y||Je!==void 0)&&wr(e,Je,E),Cn(e,"onFetchComplete",Je),Zn(t,e,"onFetchComplete",Je),Tt&&Tt({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:W,durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}}catch(H){if(!c())return;ot(H),Tt&&Tt({phase:"error",mode:"query",from:f,method:u,cacheKey:W,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-Pt})}finally{W&&Rt.active.get(W)===Me&&Rt.active.delete(W)}},J5=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||xr;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"&&Q5(t,e,n,s)},Q5=(t,e,n,r)=>{let o=e.__ref,s,i=K(()=>{let a;try{a=JSON.stringify([hf(t.params,e,n)??null,L(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,L(t.skip)?!!t.skip(e,e.state):t.skip===!0,ws(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())},t6=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),Y5();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:uo(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&xr(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=gf(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=zS(t,e,n),f=ma(nn(n),l),u=Fh(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&xr(t,e,n,{force:!0})};ha.focus.add(c),r.__fetchCleanups.push(()=>ha.focus.delete(c))}if(a){let c=()=>xr(t,e,n,{force:!0});ha.online.add(c),r.__fetchCleanups.push(()=>ha.online.delete(c))}},e6=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():k(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=L(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&wr(t,i,o),s},IS=(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)},pf=t=>{if(!t)return()=>!0;if(v(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)):L(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},n6=(t,e)=>{let n=[];for(let r of t.mounted){if(!I1(r)){t.mounted.delete(r);continue}let o=q5(r);o&&e(o)&&n.push(xr(r.config,r.element,r.context,{refresh:!0}))}return Promise.allSettled(n).then(()=>{})},jh=(t,e)=>{xS();for(let[n,r]of t.cache)e(n)&&(r.stale=!0,Ih(t,n));for(let[n]of t.active)!t.cache.has(n)&&e(n)&&Ih(t,n);return n6(t,e)},B1=(t,e,n)=>{let r=(I(e)?e:[e]).map(o=>o===!0||o==="*"?s=>s.startsWith(n+":"):o?pf(o):()=>!1);return jh(t,o=>r.some(s=>s(o)))},jS=(t,e)=>{for(let[n]of t.cache)e(n)&&D1(t,n);for(let[n]of t.active)e(n)&&Ih(t,n)},US=()=>!0,j1=(t,e)=>ma(t,e)?.data??void 0,U1=(t,e,n)=>{let r=ma(t,e),o=L(n)?n(r?.data):n;ga(t,e,o,null)},r6=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await HS(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:x,onSuccess:E,onError:T,onSettled:_}=t,b;if(c===!0||u==="submit")b=uf(e);else if(I(c)){let C=uf(e);b={};for(let O of c)b[O]=C[O]}else e.state?.parse?b=e.state.parse():k(e.state)&&(b={...e.state});l&&(b=l(b,e,e.state)),L(x)&&x(b,e,e.state);let w=y?e6(e,t,b):null;Sr(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Cn(e,"onFetchStart"),Zn(t,e,"onFetchStart");let S=n?.analyze?.emitNetwork,A=S?typeof performance<"u"?performance.now():Date.now():0;S&&S({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let nt=await o.getSession();if(d===!0&&!nt){w!==void 0&&IS(e,t);let ot={message:"Not authenticated"};Cn(e,"onFetchError",ot),Zn(t,e,"onFetchError",ot);return}}let C=o[i];if(!L(C))return;let O={from:a,data:b,headers:p,baseUrl:g};h!==void 0&&(O.responseType=h),t.params&&(O.params=hf(t.params,e,n));let B=ya(e,n);B&&(O.headers={...O.headers,"Accept-Language":B});let $=M1(t,!0),N=await N1(()=>C(O),$),{data:G,error:Y}=N||{};if(Y){w!==void 0&&IS(e,t),Sr(e,BS(Y)),Cn(e,"onFetchError",Y),L(T)&&T(Y,b,e),L(_)&&_(null,Y,b,e),S&&S({phase:"error",mode:"mutation",from:a,method:i,error:Y.message||String(Y),durationMs:(typeof performance<"u"?performance.now():Date.now())-A});return}if(delete s.__optimisticSnapshot,Sr(e,Mh),G!==void 0&&(f||!FS(G))){let nt=f?{[f]:G}:G;e.state?.update&&e.state.update(nt,{preventFetch:!0})}Cn(e,"onFetchComplete",G),Zn(t,e,"onFetchComplete",G),L(E)&&E(G,b,e),L(_)&&_(G,null,b,e),S&&S({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-A}),m&&B1(nn(n),m,a)}catch(C){w!==void 0&&IS(e,t),Sr(e,BS(C)),Cn(e,"onFetchError",C),Zn(t,e,"onFetchError",C),L(T)&&T(C,b,e),L(_)&&_(null,C,b,e),S&&S({phase:"error",mode:"mutation",from:a,method:i,error:C.message||String(C),durationMs:(typeof performance<"u"?performance.now():Date.now())-A})}finally{s.__fetching=!1}},o6=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);L(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])nn(n.context).mounted.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},s6=(t,e)=>{if(!t)return null;if(L(t.select))return t;if(t.__resolved)return t.__resolved;if(t.__resolving)return null;let n=typeof t.adapter=="string"?t.adapter:null;if(n!=="rest"||_s[n]||!t.url)return null;let{adapter:r,...o}=t,s=Th(o.url,o.headers,o.auth,o.fetchOptions,o.early,o.reads,o.seed);return s.auth=t.auth,s.url=t.url,s.key=t.key,t.__resolved=s,e.fetch=s,s},i6=t=>t.on==="create"&&(t.method==="select"||t.method==="rpc")&&!Bh(t)&&!t.infinite&&!gf(t),V1=t=>{let e=t&&t.context;if(!e||!e.fetch||VS(e))return;let n=t.__ref;if(!n||!t.fetch||!c1())return;let r;try{r=St(t.fetch,t)}catch{return}if(!r)return;let o=I(r)?r:[r];for(let s of o){let i;try{i=$S(St(s,t),t)}catch{continue}if(!i||!i6(i)||i.enabled===!1||i.skip===!0)continue;try{if(L(i.enabled)&&!i.enabled(t,t.state)||L(i.skip)&&i.skip(t,t.state))continue}catch{continue}let a=Fh(i.cache);if(!a)continue;let c=s6(e.fetch,e);if(!c||!L(c.seeded))return;a6(i,a,c,t,e,n)}},a6=(t,e,n,r,o,s)=>{let i=v(t.select)?t.select:void 0,a,c,l,f,u;try{if(t.query&&L(r.getQuery)){let x=r.getQuery(n.name||"paths");x&&(i=x.select||x.length&&x.join(",")||i)}a=hf(t.params,r,o),c=ws(t.page,r),l=ws(t.cursor,r);let y=ya(r,o);f=$h(t,a,df(r,o),y,c,l),u=F1(t,i,a,y,c,l)}catch{return}let d=nn(o),p=ma(d,f);if(p&&!p.error)return;t.method==="rpc"&&(u.read=t.read!==!1);let g=n.seeded({method:t.method,...u});if(!g||g.error||g.data===void 0)return;let h=ga(d,f,g.data,null);h.gcTime=e.gcTime||3e5,vS(g,f),s.__fetchInitialized=!0;let m=g.data;try{L(t.select)&&(m=t.select(m,r,r.state)),t.transform&&(m=t.transform(m,r,r.state))}catch{return}Sr(r,Mh),wr(r,m,t.as),s.__seededOnCreate=f},WS=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=St(t,e);if(!s)return;let i=I(s)?s.map(f=>$S(St(f,e),e)).filter(Boolean):[$S(s,e)].filter(Boolean),a=e.__ref,c=nn(r);if(a.__fetchMounted)for(let f of a.__fetchMounted)c.mounted.delete(f);a.__fetchMounted=[],!a.__fetchDisposer&&I(a.__effects)&&(a.__fetchDisposer={dispose:()=>o6(a)},a.__effects.push(a.__fetchDisposer));let l=!VS(r);for(let f of i){let u=$1(f.method),d=u?r6:xr,p=!u&&!Bh(f)&&f.method!=="subscribe";if(f.on==="create"?d(f,e,r):queueMicrotask(()=>J5({...f,__runner:d},e,r)),p&&f.on==="create"&&(l&&(f.refetchInterval||f.refetchOnWindowFocus!==!1||f.refetchOnReconnect!==!1)&&t6(f,e,r),!gf(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)xr(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};xr(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};xr(d,e,r,{direction:"previous",force:!0})}},c6={invalidateQueries:t=>jh(Tn,pf(t)),removeQueries:t=>{jS(Tn,t?pf(t):US)},getQueryData:t=>j1(Tn,t),setQueryData:(t,e)=>{U1(Tn,t,e)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=nn(e),o=await HS(n,e);if(!o)return;let s=t.method||"select",i=df(null,e),a=ya(null,e),c=$h({...t,method:s},t.params,i,a),l=o[s];if(!L(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=!Bh(t)&&t.read!==!1);let u=++Nh,d=await l(f);if(d?.data!==void 0&&!d?.error&&!gf(t)&&!Lh(r,c,u)){let p=ga(r,c,d.data,null,u,NS(r,c,u));p.gcTime=Fh(t.cache)?.gcTime||3e5}return d},getCache:()=>Tn.cache,clear:()=>jS(Tn,US),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of Tn.cache)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||D1(Tn,n))}},O1=(t,e)=>k(t)?zS({method:"select",...t},e,e?.context):t,l6={invalidateQueries(t){return jh(nn(this?.context),pf(t))},removeQueries(t){jS(nn(this?.context),t?pf(t):US)},getQueryData(t){return j1(nn(this?.context),O1(t,this))},setQueryData(t,e){U1(nn(this?.context),O1(t,this),e)}},f6=async t=>{let e=await o1();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);xS();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(u6(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?jh(Tn,c=>o.has(c)):null,...s.map(a)]),i.length&&L(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}},u6=(t,e)=>{if(t===e)return!0;try{return JSON.stringify(t)===JSON.stringify(e)}catch{return!1}},d6={name:"fetch",init(t){t.fetch&&V1(t)},create(t){let e=t.fetch;e&&(t.parent||nn(t.context).active.clear(),WS(e,t,t.state,t.context))}},p6=WS});function yf(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 qS(t){let e=this,{parent:n}=e;if(L(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 GS(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(L(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 YS(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(L(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 Hh(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(k(r)&&o)Hh.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 H1(t){let e=this;if(_r("beforeRemove",e,t)===!1)return e;L(e.node.remove)?e.node.remove():io()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=vl(e.parent.__ref.__children,e.key)),_r("remove",e,t)}function XS(t){return this[t]}function ZS(t,e){let n=this;if(t)return n.update(t,e),n}function JS(t){return t?this.__ref&&this.__ref[t]:this.__ref}function QS(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function bf(){return this.getRef().path}function wf(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=z1();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=L(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=z1()),t?e?.[t]:e}function Sf(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 xf(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function kf(t){let e=this.getRoot()?.context;return t?e[t]:e}function Ef(t){let e=this.context;return t?e[t]:e}function Wh(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||ro.has(n)&&!Rl.has(n)||e.push(n);return e}function Kh(t=[]){let e=this,n={},r=Wh.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=L(c&&c.parse)?c.parse():c;n[a]=L(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 Ut(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function mf(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=Kh.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)?mf.call(a,t,e):a):V(i)&&(r[s]=mf.call(i,t,e))}return r}function wa(...t){if(ho!=="test"&&ho!=="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 ex(...t){(ho==="test"||ho==="development")&&console.log(...t)}function vf(...t){(ho==="test"||ho==="development")&&console.warn(...t)}function Ss(...t){if(ho==="test"||ho==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&wa.call(this),new Error(...t)}}function Af(){let t=this,{key:e,parent:n}=t,{__children:r}=n.__ref,o=r.indexOf(e),s=r[o+1];return n[s]}function Tf(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 Cf(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 nx(t,...e){let n=this.context,r=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(r&&!ls(r))try{let o=r.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{Ss.call(this,s)}),o}catch(o){if(Ss.call(this,o),n?.strictMode)throw o}}async function Of(){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 Vh();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Vh();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=Vh().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 Vh();await o(r,t.context)}return r}function Rf(t){let e=this,n=t||af.useStateQuery||e.context?.useStateQuery;if(!n)return null;let r={};if(KS(e,r),n===!0)return r;let o=S6[n];return o?o(r):r}function rx(t,e){return!!(so.has(t)||e?.context?.methods?.[t])}var ho,zh,_f,_a,z1,tx,h6,Vh,KS,g6,W1,m6,y6,b6,_6,w6,S6,K1=D(()=>{"use strict";gS();is();Kt();zn();zl();ea();yS();ho="production";zh=null,_f=t=>{zh=t||null},_a=(t,e)=>{t&&e&&zh===t&&(zh=e)},z1=()=>zh||null;tx=(t,e,n,r)=>Object.defineProperty(t,e,{get:n,set:r});h6="[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.",Vh=()=>Promise.resolve().then(()=>(Uh(),ba)).catch(t=>{throw new Error(h6,{cause:t})});KS=(t,e)=>{let n=t.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&g6(e,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&KS(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&KS(i,e)},g6=(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])}},W1=(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
|
+
${W1(i,e+1)}
|
|
24
24
|
${n}}`).join(`
|
|
25
|
-
`):""},
|
|
26
|
-
${
|
|
27
|
-
}`,
|
|
25
|
+
`):""},m6=t=>`{
|
|
26
|
+
${W1(t,1)}
|
|
27
|
+
}`,y6=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},b6=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("&")},_6=(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}`},
|
|
30
|
+
FROM ${a}${l}`},w6=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},S6={graphql:m6,"json-api":y6,odata:b6,sql:_6,paths:w6}});var x6,ox,q1=D(()=>{"use strict";qp();x6={snapshotId:Ul},ox=(t,e)=>{let n=t.__ref,{currentSnapshot:r,calleeElement:o}=e;if(!o||o===t){let a=x6.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return r<i?[i,o,!0]:[i,o]}});var qh,sx,G1=D(()=>{qh=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),sx=t=>typeof t=="string"&&qh.has(t)});var Gh,Sa,kr,Be,Yh,Xh,Zh,xs,ks,ix,ax=D(()=>{"use strict";Dl();Gh="smbls_lang",Sa=t=>t&&t.storageLangKey||Gh,kr=(t,e)=>t||e&&e.defaultLang||"en",Be=(t,e=!0)=>{let n=t&&t.languages;if(typeof n=="function")try{n=n(t)}catch{n=null}return Array.isArray(n)&&n.length?n.filter(r=>typeof r=="string"):e?Object.keys(t&&t.translations||{}):[]},Yh=(t,e)=>{if(!e)return null;let n=Be(e),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},Xh=(t,e)=>{let n=Be(t),r=t&&t.addressLang,o=r&&typeof r=="object"&&!Array.isArray(r),s=o?r.mode:r,i={languages:n,address:s===!1?!1:s==="fallback"||s==="strict"?s:!0,fallback:kr(e,t)},a=o&&Array.isArray(r.except)?r.except.filter(c=>typeof c=="string"&&c):[];return a.length&&(i.except=a),i},Zh=(t,e,n)=>{if(t&&t.except&&t.except.length){let o=String(e||"").split(/[?#]/)[0].split("/").filter(Boolean);for(let s=0;s<t.except.length;s++){let i=String(t.except[s]).split("/").filter(Boolean);if(i[i.length-1]==="*"&&i.pop(),i.length>o.length)continue;let a=!0;for(let c=0;c<i.length&&a;c++)i[c].charAt(0)!==":"&&i[c]!==o[c]&&(a=!1);if(a){t={languages:t.languages,address:t.address!==!1,fallback:t.fallback};break}}}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:t&&t.address==="strict"?t.fallback||"":n||t&&t.fallback||""},xs=({polyglot:t,pathname:e,stored:n,stateLang:r}={})=>Zh(Xh(t,r),e,n),ks=t=>{try{let e=t&&t.location||typeof globalThis<"u"&&globalThis.location;return e&&typeof e.pathname=="string"?e.pathname:""}catch{return""}},ix=({polyglot:t,translations:e,lang:n,pathname:r,attrs:o=""}={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Hn("polyglotStartupScript",[{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||Yh(r,t)||kr(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>`:""}});function go(t){let e=k6(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function xa(){let t=globalThis[Jh];t&&t.depth>0&&(t.ready=!1)}var Jh,k6,Y1=D(()=>{"use strict";Jh=Symbol.for("@symbo.ls/utils:textReady"),k6=()=>{let t=globalThis[Jh];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,Jh,{value:t,configurable:!0})}catch{globalThis[Jh]=t}}return t}});async function cx(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 X1=D(()=>{"use strict"});var ka,Ea,Pf,rn,mo,va,Lf,On,Qh,E6,yo,v6,Es,vs,lx,Z1=D(()=>{"use strict";Dl();ka=t=>t!=="latest"?`@${t}`:"",Ea=t=>t?`/${t}`:"",Pf=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("/")}},rn={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${rn.skypack.url}/${t}${ka(e)}${Ea(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${rn.esmsh.url}/${t}${ka(e)}${Ea(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${rn.unpkg.url}/${t}${ka(e)}${Ea(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${rn.jsdelivr.url}/${t}${ka(e)}${Ea(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${rn.symbols.url}/${t}${ka(e)}${Ea(n)}/+esm`}},mo={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},va=(t={})=>{let{packageManager:e}=t;return mo[e]||null},Lf=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},On=(t,e="latest",n="esmsh")=>{let r=rn[n]||rn.esmsh,{name:o,subpath:s}=Pf(t);return r.formatUrl(o||t,Lf(e),s)},Qh=(t,e="latest",n="esmsh")=>{let r=rn[n]||rn.esmsh,o=Lf(e),{name:s,subpath:i}=Pf(t);return`${r.url}/${s||t}${ka(o)}${Ea(i)}/`},E6=/^node:|^@symbo-ls\//,yo=t=>typeof t=="string"&&E6.test(t),v6=/[<>…]/,Es=t=>typeof t=="string"&&v6.test(t),vs=t=>!!t&&typeof t=="object"&&!Array.isArray(t),lx=(t,e="skypack",n={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Hn("getImportMapScript",[t,e,n]);let r=t.dependencies;if(!vs(r))return"";let o=Object.keys(r);if(!o.length)return"";let s=n.pin||{},i={};for(let f of o){if(yo(f)||Es(f))continue;let u=s[f]||r[f]||"latest";i[f]=On(f,u,e),f.endsWith("/")||(i[f+"/"]=Qh(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 rx,z1=D(()=>{"use strict";rx=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 ox,H1=D(()=>{"use strict";ox=(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 sx,W1=D(()=>{"use strict";sx=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 ix,K1=D(()=>{"use strict";ix=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function ka(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 dx(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 ax,cx,lx,fx,ux,q1=D(()=>{"use strict";ax=(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)}}),cx=(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)}),lx=(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}`)},fx=(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)}}),ux=(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)}}});var G1,Cn,px=D(()=>{"use strict";G1=new Set,Cn=t=>{G1.has(t)||(G1.add(t),!(typeof console>"u"||!console.error)&&console.error(`[smbls] ${t}: this build has no shared-library support \u2014 \`smbls build\` found no shared library in the project (sharedLibraries.js, symbols.json sharedLibraries), so it left that code out. Declare the library there, or remove symbols.json build.treeShakeLibraries.`))}});function vs(t){let e=String(t||"").trim();if(!e)return{owner:hx,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=hx);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function Ca(t,e={}){if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("fetchLibraryData"),null;let n=e.provider||"kv";if(n==="same-origin")return Y6(t,e);if(n==="api")return sR(t,e);let r=await G6(t,e);return r||sR(t,e)}async function G6(t,e={}){let n=e.kvBaseUrl||g6,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 Y6(t,e={}){let n=e.sameOriginBase;if(!n)return null;let r=`${n}${y6}${encodeURIComponent(t)}`;try{let o=await fetch(r,{method:"GET"});return o.ok?await o.json():null}catch{return null}}async function sR(t,e={}){let n=e.apiBaseUrl||m6,{key:r}=vs(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}=vs(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 iR(t,e={}){if(E(t))return t;if(v(t)){let{full:n}=vs(t);if(!n)return null;try{let r=await Ca(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 $f(t,e={}){return!t||!t.length?[]:globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__?(Cn("resolveSharedLibraries"),[]):(await Promise.all(t.map(async r=>{if($e(r)){let o=await iR(fR(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return iR(r,e)}))).filter(Boolean)}var hx,g6,m6,y6,Ea,aR,b6,_6,Y1,Xh,X1,cR,w6,lR,S6,Lf,yx,$e,fR,gx,bx,x6,k6,_x,wx,uR,Z1,Es,Sx,E6,go,v6,dR,pR,J1,A6,C6,T6,O6,Q1,Zh,R6,hR,mx,P6,L6,tR,D6,I6,M6,N6,Jh,xx,$6,F6,B6,eR,Df,j6,Pf,Qh,va,Aa,nR,tg,Rf,U6,V6,rR,oR,If,z6,H6,W6,K6,q6,gR,mR,Mf,As,Nf,eg=D(()=>{"use strict";Wt();os();jl();Un();px();hx="system",g6="https://smbls-kv.nika-980.workers.dev",m6="https://api.symbols.app",y6="/v1/library-icons/";Ea=(t,e,n,r)=>{for(let o in e){let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?E(t[o])&&E(e[o])&&Ea(t[o],e[o],n,s):t[o]=e[o])}},aR=(t,e,n)=>{if(!E(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]=aR(t[i],e,a))}return s},b6=new Set,_6=new Set(["components","pages","functions","snippets","methods"]),Y1=(t,e)=>e===""&&_6.has(t),Xh=["fontFamily","fontfamily","font_family","FONT_FAMILY"],X1=t=>{let e=new Map;if(!E(t))return e;for(let n of Xh){let r=t[n];if(E(r))for(let o in r)!E(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},cR=(t,e)=>{for(let n of Xh){let r=t[n];if(!E(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!E(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},w6=t=>{let e=new Map;if(!E(t))return e;for(let n of Xh){let r=t[n];E(r)&&e.set(n,new Set(Object.keys(r)))}return e},lR=(t,e)=>{if(E(t))for(let n of Xh){let r=t[n];if(!E(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];!E(a)||a.isSharedLibrary||o&&o.has(i)||(s||(s={...r}),s[i]={...a,isSharedLibrary:!0})}s&&(t[n]=s)}},S6=t=>t.replace(/\.js$/iu,""),Lf=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!v(n))continue;let r=n.split("/").map(o=>S6(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},yx=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),$e=t=>E(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),fR=t=>t.library!==void 0?t.library:t.key??t.name,gx=new Set,bx=()=>{gx.clear()},x6=(t,e)=>{let n=e.filter(r=>!gx.has(r));if(n.length){for(let r of n)gx.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.`)}},k6=(t,e,n)=>{let r=null;for(let o in t)if(rs(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)rs(s)||(r[s]=t[s])}return r||t},_x=(t,e)=>{let n=Lf(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},wx=["functions","methods","snippets"],uR=["components","pages"],Z1=Symbol.for("smbls.libraryScope"),Es="__libraryScopes",Sx=new Map,E6=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),go=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),v6=/const __scope = |const __peers_* = |const _s_* = el\?\.scope|\?\.context\?\.globalScope\?\./,dR=t=>{try{return Ne(t)}catch{return null}},pR=t=>{if(typeof t!="function")return null;let e=dR(t);return v(e)&&v6.test(e)&&se(e)?e:null},J1=t=>v(t)&&se(t)||pR(t)!==null,A6=t=>{let e=t.globalScope;return E(e)&&Object.keys(e).some(n=>J1(e[n]))?!0:wx.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>J1(r[o]))})},C6=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!E(r)||!E(o)||!A6(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||go(r,i)&&s++;return s},T6=[[/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 $1 = $RESOLVE($2);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],O6=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 fx,J1=D(()=>{"use strict";fx=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 ux,Q1=D(()=>{"use strict";ux=(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 dx,tR=D(()=>{"use strict";dx=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 px,eR=D(()=>{"use strict";px=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Aa(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 _x(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 hx,gx,mx,yx,bx,nR=D(()=>{"use strict";hx=(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)}}),gx=(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)}),mx=(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}`)},yx=(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)}}),bx=(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)}}});var rR,on,wx=D(()=>{"use strict";rR=new Set,on=t=>{rR.has(t)||(rR.add(t),!(typeof console>"u"||!console.error)&&console.error(`[smbls] ${t}: this build has no shared-library support \u2014 \`smbls build\` found no shared library in the project (sharedLibraries.js, symbols.json sharedLibraries), so it left that code out. Declare the library there, or remove symbols.json build.treeShakeLibraries.`))}});function Ts(t){let e=String(t||"").trim();if(!e)return{owner:Sx,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=Sx);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function Ra(t,e={}){if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("fetchLibraryData"),null;let n=e.provider||"kv";if(n==="same-origin")return lU(t,e);if(n==="api")return hR(t,e);let r=await cU(t,e);return r||hR(t,e)}async function cU(t,e={}){let n=e.kvBaseUrl||A6,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 lU(t,e={}){let n=e.sameOriginBase;if(!n)return null;let r=`${n}${C6}${encodeURIComponent(t)}`;try{let o=await fetch(r,{method:"GET"});return o.ok?await o.json():null}catch{return null}}async function hR(t,e={}){let n=e.apiBaseUrl||T6,{key:r}=Ts(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}=Ts(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 gR(t,e={}){if(k(t))return t;if(v(t)){let{full:n}=Ts(t);if(!n)return null;try{let r=await Ra(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 Uf(t,e={}){return!t||!t.length?[]:globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__?(on("resolveSharedLibraries"),[]):(await Promise.all(t.map(async r=>{if(je(r)){let o=await gR(bR(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return gR(r,e)}))).filter(Boolean)}var Sx,A6,T6,C6,Vt,ce,O6,bo,Ta,Ex,R6,P6,L6,oR,eg,sR,mR,D6,yR,I6,Mf,vx,je,bR,xx,Ax,M6,N6,ng,Tx,_R,iR,As,Cx,$6,F6,wR,SR,aR,B6,j6,U6,V6,cR,Ox,z6,xR,kx,H6,W6,lR,K6,q6,G6,Y6,rg,Rx,X6,Z6,kR,fR,Nf,J6,If,og,Ca,Oa,uR,sg,Df,Q6,tU,dR,pR,$f,tg,eU,ER,vR,nU,rU,oU,sU,iU,aU,Px,AR,Ff,Cs,Bf,jf,ig=D(()=>{"use strict";Kt();is();zl();zn();wx();ax();Sx="system",A6="https://smbls-kv.nika-980.workers.dev",T6="https://api.symbols.app",C6="/v1/library-icons/";Vt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ce=yr,O6=t=>k(t)||t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===null,bo=(t,e,n,r)=>{let o=Array.isArray(t);if(!o&&!O6(t))return t;if(r&&r.has(t))return r.get(t);let s=r||new Map,i=o?[]:{};if(s.set(t,i),o)for(let a=0;a<t.length;a++)i[a]=bo(t[a],e,n,s);else for(let a in t){if(!Vt(t,a)||ce.has(a))continue;let c=n?`${n}/${a}`:a;e&&e.has(c)||(i[a]=bo(t[a],e,c,s))}return s.delete(t),i},Ta=(t,e,n,r)=>{for(let o in e){if(!Vt(e,o)||ce.has(o))continue;let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?k(t[o])&&k(e[o])&&Ta(t[o],e[o],n,s):t[o]=bo(e[o],n,s))}},Ex=(t,e,n)=>{if(!k(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)||ce.has(i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=Ex(t[i],e,a))}return s},R6=(t,e)=>{if(t!==e||!k(t))return t;let n={};for(let r in t)Vt(t,r)&&!ce.has(r)&&(n[r]=t[r]);return n},P6=new Set,L6=new Set(["components","pages","functions","snippets","methods"]),oR=(t,e)=>e===""&&L6.has(t),eg=["fontFamily","fontfamily","font_family","FONT_FAMILY"],sR=t=>{let e=new Map;if(!k(t))return e;for(let n of eg){let r=t[n];if(k(r))for(let o in r)!k(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},mR=(t,e)=>{for(let n of eg){let r=t[n];if(!k(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!k(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},D6=t=>{let e=new Map;if(!k(t))return e;for(let n of eg){let r=t[n];k(r)&&e.set(n,new Set(Object.keys(r)))}return e},yR=(t,e)=>{if(k(t))for(let n of eg){let r=t[n];if(!k(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];!k(a)||a.isSharedLibrary||o&&o.has(i)||(s||(s={...r}),s[i]={...a,isSharedLibrary:!0})}s&&(t[n]=s)}},I6=t=>t.replace(/\.js$/iu,""),Mf=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!v(n))continue;let r=n.split("/").map(o=>I6(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},vx=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),je=t=>k(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),bR=t=>t.library!==void 0?t.library:t.key??t.name,xx=new Set,Ax=()=>{xx.clear()},M6=(t,e)=>{let n=e.filter(r=>!xx.has(r));if(n.length){for(let r of n)xx.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.`)}},N6=(t,e,n)=>{let r=null;for(let o in t)if(ss(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)!Vt(t,s)||ce.has(s)||ss(s)||(r[s]=t[s])}return r||t},ng=(t,e)=>{let n=Mf(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},Tx=["functions","methods","snippets"],_R=["components","pages"],iR=Symbol.for("smbls.libraryScope"),As="__libraryScopes",Cx=new Map,$6=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),F6=/const __scope = |const __peers_* = |const _s_* = el\?\.scope|\?\.context\?\.globalScope\?\./,wR=t=>{try{return Fe(t)}catch{return null}},SR=t=>{if(typeof t!="function")return null;let e=wR(t);return v(e)&&F6.test(e)&&ie(e)?e:null},aR=t=>v(t)&&ie(t)||SR(t)!==null,B6=t=>{let e=t.globalScope;return k(e)&&Object.keys(e).some(n=>aR(e[n]))?!0:Tx.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>aR(r[o]))})},j6=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!k(r)||!k(o)||!B6(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||Vt(r,i)&&s++;return s},U6=[[/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 $1 = $RESOLVE($2);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],V6=t=>{let e=t.split(""),n=[],r=0,o=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
|
|
33
33
|
`&&(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(`
|
|
34
34
|
`,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]!==`
|
|
35
|
-
`;)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("")},Q1=(t,e)=>{if(!v(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!/const _s_* = /.test(t)&&!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 T6){let i=O6(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},Zh=(t,e)=>{if(v(t))return Q1(t,e);let n=pR(t);return n===null?t:Q1(n,e)},R6={lazy:!0,window:globalThis},hR=(t,e)=>{let n=Zh(t,e);if(n===t||!v(n))return n;try{let r=be({v:n},{},R6).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},mx=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},P6=(t,e)=>{let n=new WeakMap,r=o=>{if(v(o)||typeof o=="function")return hR(o,e);if(Il(o)||!mx(o))return o;if(n.has(o))return n.get(o);let s=Array.isArray(o)?[]:Object.getPrototypeOf(o)===null?Object.create(null):{};n.set(o,s);for(let i of Object.keys(o))s[i]=r(o[i]);return s};return r(t)},L6=(t,e)=>{let n={...t},r={};for(let o of Object.keys(t.globalScope))r[o]=Zh(t.globalScope[o],e);n.globalScope=r;for(let o of wx){let s=t[o];if(!mx(s))continue;let i={};for(let a of Object.keys(s))i[a]=hR(s[a],e);n[o]=i}for(let o of uR)mx(t[o])&&(n[o]=P6(t[o],e));return n},tR=new WeakMap,D6=(t,e,n)=>{let r=tR.get(t);r||tR.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>go(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||go(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return go(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!go(i,a)&&go(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},I6=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",M6=(t,e)=>{let n=Sx.get(t);return n?e===n.consumerGs?n.libGs:I6(e)?D6(e,n.libGs,n.consumerGs):e:e},N6=()=>{typeof globalThis[Z1]!="function"&&Object.defineProperty(globalThis,Z1,{value:M6,configurable:!0})},Jh=t=>{let e=t[Es];return Array.isArray(e)?e:null},xx=t=>$e(t)?t.library:t,$6=(t,e,n)=>{let r=Jh(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&v(o.id)&&F6(t,o.id))},F6=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(v(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",...wx,...uR])if(o(t[s]))return!0;return!1},B6=(t,e)=>{let n={};for(let r of Object.keys(t))n[r]=Zh(t[r],e);return n},eR=new WeakMap,Df=(t,e=null)=>{let n=t&&Jh(t);if(!n||!n.length)return 0;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("bindLibraryGlobalScopes"),0;let r=t.globalScope;if(!E(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=eR.get(r);s||eR.set(r,s=new Set),N6();let i=0;for(let a of n){if(!a||!v(a.id)||s.has(a.id))continue;let c=xx(o[a.index]);if(!c||!E(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?dR(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return v(h)||v(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=E(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>v(p)&&go(c.globalScope,p)&&go(e,p)&&f(e[p],Zh(c.globalScope[p],a.id))):[],d=ls(B6(c.globalScope,a.id));Object.setPrototypeOf(d,r),Sx.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},j6=/^@symbo[-.]ls\//,Pf=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,Qh=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],va=(t,e)=>{let n=[];if(!Array.isArray(t)||!t.length)return n;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("libraryPackageSpecs"),n;let r=new Map,o=(i,a,c)=>{for(let l of Qh(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=xx(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&&!j6.test(f))continue;let u=Pf(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&Pf(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},Aa=({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}".`)},nR=["functions","methods","snippets"],tg=Symbol.for("smbls.libraryPackages"),Rf=new WeakMap,U6=t=>!!t&&typeof t=="object"&&!Array.isArray(t),V6=t=>({get globalScope(){return t()}}),rR=(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:V6(e)}),Rf.set(r,n),r},oR=t=>!U6(t)||!Rf.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),If=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of nR){let o=t[r];oR(o)||Rf.get(o)===t||(t[r]=rR(o,e,t))}if(!globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&Array.isArray(t.sharedLibraries)){let r=Jh(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=$e(o)&&o&&"library"in o,a=xx(o);if(!a||typeof a!="object"||a.__isStub||Rf.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&Sx.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of nR)oR(a[u])||(f[u]=rR(a[u],l,t));return Rf.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of va(t.sharedLibraries,Aa))r[o]=s;try{Object.defineProperty(n,tg,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},z6=(t,e,n,r="library",o=-1)=>{let s=_x(e,n),i=!$6(t,o,e)&&C6(t,e,s)>0?`${r}#${E6()}`:null,a=i?L6(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!==Es&&!f.startsWith("__")&&f!=="app"&&!s.has(f)){if(E(a[f])&&E(t[f])){if(f==="designSystem")Ea(t[f],a[f],s,f);else for(let u in a[f])if(!s.has(`${f}/${u}`)){if(f==="methods"&&rs(u)){u in t[f]||l.push(u);continue}u in t[f]?Y1(f,t[f][u])&&!Y1(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"?k6(u,s,l):u;t[f]=aR(d,s,f)}}i&&(Jh(t)||(t[Es]=[]),t[Es].push({id:i,index:o,key:v(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&x6(r,l)},H6=(t,e,n)=>{if(t!==e){let r=fR(t);if(v(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},W6=`${hx}/default`,K6=t=>v(t)&&t!==""&&vs(t).full===W6,q6=(t,e)=>{if(v(e.key)&&e.key)return e.key;if(t!==e){if(v(t.key)&&t.key)return t.key;if(v(t.name)&&t.name)return t.name}return null},gR=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=b6;if($e(s)&&(i=Lf(s.ignoreList),s=s.library),!E(s))continue;let a={entry:o,lib:s,ignore:i,index:r};K6(q6(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},mR=(t,e,n)=>{let r=e(),o=X1(r),s=w6(r),{linked:i,bases:a}=gR(t);for(let f of i)n(f);let c=!o.size&&a.length?X1(e()):null;for(let f of a)n(f);return{claims:o.size?o:c&&c.size?c:null,ownFamilies:s}},Mf=(t,e)=>{if(!e||!e.length)return;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("mergeSharedLibraries");let n=t.designSystem,{claims:r,ownFamilies:o}=mR(e,()=>t.designSystem,({entry:s,lib:i,ignore:a,index:c})=>z6(t,i,a,H6(s,i,c),c));t.designSystem!==n&&(t.designSystem={...t.designSystem}),lR(t.designSystem,o),r&&cR(t.designSystem,r)},As=(t,e)=>{let n=E(t)?t:null;if(!Array.isArray(e)||!e.length)return n||{};if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("sharedLibraryFiles"),n||{};let r=n?{...n}:{},{linked:o,bases:s}=gR(e);for(let{lib:i,ignore:a}of[...o,...s]){let c=_x(i,a);if(c.has("files"))continue;let l=i.files;if(E(l))for(let f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c.has(`files/${f}`)||f in r||(r[f]=l[f]))}return r},Nf=(t,e,n=Ea)=>{if(!E(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("mergeSharedLibraryDesignSystems"),t;let{claims:r,ownFamilies:o}=mR(e,()=>t,({lib:s,ignore:i})=>{let a=s.designSystem;if(!a||typeof a!="object")return;let c=_x(s,i);c.has("designSystem")||n(t,a,c,"designSystem")});return lR(t,o),r&&cR(t,r),t}});function Os(t,e){if(!e||typeof e!="object")return t;let n=o=>!nU(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:rg(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))rU.has(o)?r[o]=Array.isArray(s)?s.map(i=>bR(i,n)):bR(s,n):typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function kx(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 oU(t,e){let n=kx(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!na(n))return n}function sU(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=oU(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]??kx(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??kx(a,m)??p}));return f}function _R(t){if(!E(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}}na(r)&&delete e[n]}return e}function Ox(t,e,n,{isProduction:r=!1,channel:o="production"}={}){if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Vn("getPageMetadata",[t,e,n,{isProduction:r,channel:o}]);let s=t.pages?.[e],i=E(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=_R(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=_R(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=sU(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=Os(d,As(t.files,t.sharedLibraries));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 x=y.replace(/\{\{[^}]*\}\}/g,"").trim();x?d[m]=x:m==="title"?d[m]=h:delete d[m]}return d}var U,gs,Gn,Bf,jf,Uf,Vf,zf,Hf,X6,Ex,vx,ng,Ax,ms,Z6,Cx,yR,Tn,J6,Q6,Ta,Cs,mo,Ts,tU,eU,Tx,nU,Ff,rg,rU,bR,wR=D(()=>{"use strict";Wt();sa();eg();Rl();U=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,n=>e[n])},gs=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),Gn=(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}},Bf='script[type="application/json"][data-brender="registry"]',jf='script[type="application/json"][data-brender="registry-tree"]',Uf=t=>{if(!E(t)||t.f!=="tree"||!Array.isArray(t.e)||t.e.length%3)return null;let e=t.e,n=[],r={},o=0;for(let s=0,i=0;s<e.length;s+=3,i++){let a=e[s],c=e[s+1],l=e[s+2];if(!Number.isInteger(a)||a<0||a>i||typeof c!="string"||!Number.isInteger(l))return null;let f=a?n[i-a]+"."+c:c;o+=l,n.push(f),r[f]="br-"+o}return r},Vf='link[rel="preload"][data-smbls="design-system"]',zf='meta[name="smbls-design-system"][data-smbls="design-system"]',Hf='script[type="application/json"][data-smbls="design-system"]',X6=t=>E(t)&&E(t.config)&&Array.isArray(t.rules),Ex=(t,e)=>e&&e.defer===!0?'<meta name="smbls-design-system" content="'+U(t)+'" data-smbls="design-system">':'<link rel="preload" href="'+U(t)+'" as="fetch" crossorigin="anonymous" data-smbls="design-system">',vx=t=>X6(t)?'<script type="application/json" data-smbls="design-system">'+gs(t)+"<\/script>":"",ng='meta[name="brender-stamp"]',Ax=({stamp:t,time:e}={})=>'<meta name="brender-stamp" content="'+U(t)+'" data-time="'+(typeof e=="number"&&isFinite(e)?Math.round(e):"")+'">',ms=t=>{if(!t||typeof t.querySelector!="function")return null;let e=null;try{e=t.querySelector(ng)}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}},Z6=/<script\b(?:[^>"']|"[^"]*"|'[^']*')*\btype\s*=\s*["']?importmap["']?(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/script\s*>/gi,Cx=(t,e)=>{let n=-1;for(let r of String(t).matchAll(Z6))n=r.index+r[0].length;return n===-1?null:t.slice(0,n)+`
|
|
36
|
-
`+e+t.slice(n)},
|
|
37
|
-
`)},nU=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),Ff=t=>typeof t=="string"&&t.length>0,rg=t=>{if(!t||typeof t!="object")return null;if(Ff(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:Ff(e.src)?e.src:Ff(e.storageUrl)?e.storageUrl:null},rU=new Set(["icon","favicon","icons","favicons"]),bR=(t,e)=>{if(typeof t=="string")return e(t);if(!E(t))return t;let n={...t};return Ff(n.href)&&(n.href=e(n.href)),Ff(n.src)&&(n.src=e(n.src)),n}});var og,Rx,SR=D(()=>{"use strict";Wt();og=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),Rx=(t,e)=>(t=parseFloat(t),E(e)&&(e=Object.values(e)),og(t,e))});var Px,Lx,Dx,Sr,Ix,Wf,Mx,Rs,Nx=D(()=>{"use strict";Wt();Px=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Lx=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)}},Dx=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Sr=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,"")),Ix=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Wf=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Mx=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Rs=t=>{if(I(t))return t;if(v(t))return t.split(" ");if(E(t))return Object.values(t);if(me(t))return[t]}});var xR,kR,iU,vR,ER,aU,sg,cU,ig,$x,Fx,ag,Kf,AR=D(()=>{"use strict";Wt();eg();Nx();px();xR=/[A-Za-z_$][A-Za-z0-9_$-]*/g,kR=/[A-Za-z_$][A-Za-z0-9_$]*(?: [A-Za-z0-9_$]+){1,5}/g,iU=(t,e)=>{xR.lastIndex=0;let n;for(;n=xR.exec(t);){let o=n[0];if(e.add(o),o.indexOf("-")!==-1)for(let s of o.split("-"))s&&e.add(s)}kR.lastIndex=0;let r;for(;r=kR.exec(t);){let o=r[0].split(" ");for(let s=0;s<o.length-1;s++)for(let i=2;i<=6&&s+i<=o.length;i++)e.add(Sr(o.slice(s,s+i).join(" ")))}return e},vR=t=>$e(t)?t.library:t,ER=["components","pages","snippets"],aU=["name","icon"],sg=t=>{if(!E(t))return null;let e=t.key;if(!e)return null;let n=t.owner,r=E(n)?n.slug:n;return r?`${r}/${e}`:String(e)},cU=/^\s*(?:async\s+)?(?:function\b|\(|[A-Za-z_$][A-Za-z0-9_$]*\s*=>)/,ig=t=>{let e=new Set,n=r=>{if(Array.isArray(r)){for(let o of r)if(n(o))return!0;return!1}if(!E(r)||e.has(r))return!1;e.add(r);for(let o of aU){let s=r[o];if(typeof s=="string"&&cU.test(s))return!0}for(let o of Object.keys(r))if(n(r[o]))return!0;return!1};for(let r of ER)if(n(t[r]))return!0;for(let r of t.sharedLibraries||[]){let o=vR(r);if(E(o)){for(let s of ER)if(n(o[s]))return!0}}return!1},$x=t=>{if(!E(t)||!Array.isArray(t.sharedLibraries))return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return t.sharedLibraries.length&&Cn("planLibraryIconPrune"),null;let e=E(t.settings)?t.settings.libraryIconPrune:void 0;if(e===!1||e!==!0&&ig(t))return null;let n=[];for(let u of t.sharedLibraries){let d=vR(u),p=E(d)&&d.designSystem,g=E(p)&&p.icons;if(!E(g))continue;let h=sg(d);h&&n.push({id:h,icons:g,designSystem:p})}if(!n.length)return null;let r=new Set(n.map(u=>u.designSystem)),o=JSON.stringify(t,function(u,d){if(u!=="__ssr"&&!(u==="icons"&&r.has(this)))return d});if(typeof o!="string")return null;let s=iU(o,new Set),i=new Map,a=[],c=0,l=0,f=0;for(let u of n){let d=[];for(let p of Object.keys(u.icons)){if(s.has(p)){l++;continue}d.push(p);let g=u.icons[p];f+=p.length+(typeof g=="string"?g.length:0)}d.length&&(c+=d.length,i.set(u.icons,new Set(d)),a.push({id:u.id,icons:d}))}return c?{drops:i,prune:{libraries:a},report:{icons:c,kept:l,bytes:f}}:null},Fx=t=>function(e,n){let r=t.get(this);if(!(r&&r.has(e)))return n},ag=(t,e={})=>{let n=new Map;for(let a of t&&t.libraries||[])if(!(!a||!a.id||!Array.isArray(a.icons)))for(let c of a.icons)n.has(c)||n.set(c,a.id);if(!n.size)return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return Cn("createPrunedLibraryIconLoader"),null;let r=t&&typeof t.sameOriginBase=="string"&&t.sameOriginBase,o=r?{...e,provider:"same-origin",sameOriginBase:r}:e,s=new Map,i=a=>{let c=s.get(a);return c||(c=Promise.resolve().then(()=>Ca(a,o)).then(l=>{let f=E(l)&&E(l.designSystem)&&l.designSystem.icons;return E(f)?f:null}),s.set(a,c)),c};return a=>{let c=n.get(a);return c?i(c):null}},Kf=(t,e={})=>{if(!E(t))return!1;let n=t.__libraryIconPrune;if(!E(n))return!1;let r=t.designSystem;if(!E(r)||r.iconsLoader)return!1;let o=ag(n,e);return o?(r.iconsLoader=o,!0):!1}});var Bx,CR=D(()=>{"use strict";Bx=()=>{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 _e,Oa,qf,Gf,TR=D(()=>{"use strict";_e=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},Oa=(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(", ")},qf=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return Oa(e,{keepOneX:!1})},Gf=(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:Oa(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=Oa(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var Ra={};F(Ra,{BRENDER_REGISTRY_BLOCK:()=>Bf,BRENDER_REGISTRY_TREE_BLOCK:()=>jf,BRENDER_STAMP_META:()=>ng,CDN_PROVIDERS:()=>tn,DESIGN_SYSTEM_BLOCK:()=>Hf,DESIGN_SYSTEM_DEFERRED:()=>zf,DESIGN_SYSTEM_LINK:()=>Vf,DOMQL_EVENTS:()=>G_,DOMQ_PROPERTIES:()=>to,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Qi,ENV:()=>yw,HTML_TAGS:()=>ia,LIBRARY_PACKAGES:()=>tg,LIBRARY_SCOPES_KEY:()=>Es,METHODS:()=>no,METHODS_EXL:()=>Tl,NODE_ENV:()=>xn,OPTIONS:()=>rf,PACKAGE_MANAGER_TO_CDN:()=>po,PARSED_DOMQ_PROPERTIES:()=>Cl,POLYGLOT_LANG_STORAGE_KEY:()=>Hh,PROPS_METHODS:()=>eo,REVIVED_MARK:()=>Ml,STATE_DATA_MERGE_EXL:()=>bh,STATE_METHODS:()=>ns,STATE_PROPERTIES:()=>K_,SVG_TAGS:()=>kO,TYPES:()=>wl,UNIVERSAL_RESERVED_KEYS:()=>zh,__resetBuiltinMethodWarnings:()=>bx,addCaching:()=>dh,addContext:()=>uh,addExtend:()=>jw,addExtends:()=>zn,addItemAfterEveryElement:()=>L_,addProtoToArray:()=>kl,addRef:()=>ch,alternateLinkKey:()=>Cs,applyDependentState:()=>sS,applyEvent:()=>_h,applyEventUpdate:()=>wh,applyExtends:()=>AO,applyProps:()=>Xl,arrayContainsOtherArray:()=>v_,arraysEqual:()=>I_,arrayzeValue:()=>Rs,bareLibraryKey:()=>Pf,bindLibraryGlobalScopes:()=>Df,brenderStampMeta:()=>Ax,buildImgSrcset:()=>qf,buildSourcesAndImg:()=>Gf,cache:()=>fS,call:()=>XS,captureSnapshot:()=>JS,checkForStateTypes:()=>eS,checkIfInherits:()=>yh,checkIfStringIsInArray:()=>$_,clone:()=>nw,cloneAndMergeArrayExtend:()=>Vl,cloneFunction:()=>Ew,collectExtendsList:()=>aa,concatAddExtends:()=>$w,copyJavaScriptToClipboard:()=>Lx,copyStringToClipboard:()=>Px,createBasedOnType:()=>ah,createElement:()=>tS,createElementExtends:()=>Yp,createExtends:()=>Hl,createExtendsFromKeys:()=>ca,createExtendsStack:()=>Qp,createIfConditionFlag:()=>vw,createInheritedState:()=>nS,createKey:()=>Bl,createNestedObject:()=>fw,createNestedObjectByKeyPath:()=>oS,createObjectWithoutPrototype:()=>Vp,createParent:()=>lh,createPath:()=>fh,createProps:()=>Zl,createPropsStack:()=>sh,createPrunedLibraryIconLoader:()=>ag,createRoot:()=>Qw,createScope:()=>aS,createSnapshotId:()=>Fl,currentPathname:()=>Ss,customDecodeURIComponent:()=>W_,customEncodeURIComponent:()=>H_,cutArrayAfterValue:()=>R_,cutArrayBeforeValue:()=>O_,debounce:()=>Ul,debounceOnContext:()=>xw,decodeBrenderRegistry:()=>Uf,decodeNewlines:()=>z_,deepClone:()=>pt,deepContains:()=>cw,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>be,deepExtend:()=>Gp,deepMerge:()=>bt,deepMergeExtends:()=>Hn,deepStringifyFunctions:()=>Ll,defineSetter:()=>GS,designSystemBlock:()=>vx,designSystemLink:()=>Ex,destringifyGlobalScope:()=>ls,detectHeightOnInit:()=>ox,detectInfiniteLoop:()=>hw,document:()=>kt,encodeNewlines:()=>V_,error:()=>_s,escapeHtml:()=>U,escapeRegExp:()=>F_,evaluateText:()=>uo,excludeKeysFromObject:()=>mw,exec:()=>St,exposeBagGlobalScopes:()=>If,extendCachedRegistry:()=>Fw,extendStackRegistry:()=>Wl,extractArrayExtend:()=>ql,faviconLinkKey:()=>mo,fetchLibraryData:()=>Ca,fibonacciNumberByIndex:()=>sx,fileEntryUrl:()=>rg,filterArrays:()=>M_,filterArraysFast:()=>N_,finalizeExtends:()=>th,findClosestNumber:()=>og,findClosestNumberInFactory:()=>Rx,findInheritedState:()=>mh,findKeyPosition:()=>j_,flattenExtend:()=>la,formatDate:()=>rx,generateHash:()=>Wp,generateHeadArrayTags:()=>Ta,generateKey:()=>$l,generateMetaTags:()=>Tx,get:()=>HS,getCDNDirUrl:()=>Yh,getCDNUrl:()=>An,getCapitalCaseKeys:()=>zw,getCdnProviderFromConfig:()=>xa,getChildStateInKey:()=>gh,getChildren:()=>qS,getContext:()=>Sf,getCookie:()=>Rw,getDB:()=>Af,getEmotionStylesheet:()=>Bx,getExtendsInElement:()=>Uw,getExtendsStack:()=>zl,getExtendsStackRegistry:()=>qp,getFrequencyInArray:()=>A_,getFunctionSource:()=>Ne,getHashedExtend:()=>Kl,getImportMapScript:()=>nx,getInObjectByPath:()=>pw,getLocalStorage:()=>Lw,getNev:()=>Sw,getPageMetadata:()=>Ox,getParentStateInKey:()=>hh,getPath:()=>gf,getQuery:()=>Cf,getRef:()=>KS,getRoot:()=>bf,getRootContext:()=>wf,getRootData:()=>_f,getRootState:()=>yf,getRootStateInKey:()=>ph,getSpreadChildren:()=>Hw,global:()=>x_,hasFunction:()=>se,hasHandlerPlugin:()=>ra,hasOwnProperty:()=>sw,hashContent:()=>Tn,inheritChildExtends:()=>Zp,inheritChildPropsExtends:()=>Xp,inheritParentProps:()=>Jl,inheritRecursiveChildExtends:()=>Jp,initProps:()=>Xw,insertAfterImportMap:()=>Cx,installPrunedLibraryIconLoader:()=>Kf,is:()=>ye,isArray:()=>I,isBoolean:()=>Ip,isBuiltinElementMethod:()=>q_,isContextComponent:()=>Ww,isCyclic:()=>gw,isDOMNode:()=>ge,isDate:()=>Np,isDefined:()=>Ut,isDevelopment:()=>oo,isEmpty:()=>jp,isEmptyObject:()=>iw,isEqualDeep:()=>Up,isFailedRevival:()=>as,isFunction:()=>L,isHtmlElement:()=>bl,isLazyFunction:()=>rw,isLocal:()=>ww,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>xs,isMethod:()=>ZS,isMobile:()=>Tw,isNode:()=>hr,isNot:()=>E_,isNotProduction:()=>gr,isNull:()=>Mp,isNumber:()=>me,isObject:()=>E,isObjectLike:()=>V,isPhoto:()=>ix,isPolyglotRetranslatableKey:()=>nf,isPolyglotWritableKey:()=>us,isProduction:()=>ro,isProtectedElementMethod:()=>rs,isRevived:()=>cs,isStaging:()=>_w,isState:()=>rS,isString:()=>v,isStringFunction:()=>na,isStringTag:()=>Il,isTest:()=>Hp,isTesting:()=>bw,isUndefined:()=>Xt,isUniversallyReservedKey:()=>QS,isUnresolvableDependency:()=>ho,isValidDependencyMap:()=>ks,isValidHtmlTag:()=>Iw,isWrappedLibrary:()=>$e,joinArrays:()=>Xi,jointStacks:()=>Bw,jsonForScript:()=>gs,keys:()=>Uh,libraryIconPruneReplacer:()=>Fx,libraryIdentifier:()=>sg,libraryPackageSpecs:()=>va,librarySpecsFor:()=>Qh,loadCssFile:()=>fx,loadJavascript:()=>ux,loadJavascriptFile:()=>ax,loadJavascriptFileEmbedSync:()=>lx,loadJavascriptFileSync:()=>cx,loadRemoteCSS:()=>dx,loadRemoteScript:()=>ka,log:()=>YS,logGroupIf:()=>Cw,logIf:()=>Aw,lookdown:()=>VS,lookdownAll:()=>zS,lookup:()=>US,lowercaseFirstLetter:()=>es,makeObjectWithoutPrototype:()=>aw,map:()=>ew,mapStringsWithContextComponents:()=>Gl,markPolyglotSeeded:()=>Kn,markRevived:()=>ea,markTextNotReady:()=>_a,matchesComponentNaming:()=>Wn,memoize:()=>kw,merge:()=>Lt,mergeSharedLibraries:()=>Mf,mergeSharedLibraryDesignSystems:()=>Nf,mergeStateData:()=>io,nextElement:()=>kf,normalizeIgnoreList:()=>Lf,normalizeLibraryKey:()=>vs,objectToString:()=>Dl,objectizeStringProperty:()=>Yl,overwrite:()=>Nl,overwriteDeep:()=>ie,overwriteShallow:()=>fs,overwriteState:()=>iS,parse:()=>Vh,parseDeep:()=>pf,payloadHasComputedIconName:()=>ig,pickStartLang:()=>qh,pickupElementFromProps:()=>rh,pickupPropsFromElement:()=>nh,planLibraryIconPrune:()=>$x,polyglotAddressLang:()=>Wh,polyglotFallbackLang:()=>wr,polyglotLangStorageKey:()=>ba,polyglotLanguages:()=>vn,polyglotSeededKeys:()=>ao,polyglotStartLang:()=>ws,polyglotStartRule:()=>Kh,polyglotStartupScript:()=>tx,previousElement:()=>Ef,promoteActiveRootState:()=>ma,propExists:()=>Gw,propertizeElement:()=>oh,propertizeUpdate:()=>qw,readBrenderStamp:()=>ms,readJsonDataBlock:()=>Gn,remove:()=>I1,removeChars:()=>Dx,removeCookie:()=>Pw,removeDuplicateProps:()=>tf,removeDuplicatesInArray:()=>Zi,removeFromArray:()=>C_,removeFromObject:()=>lw,removeNestedKeyByPath:()=>uw,removeValueFromArray:()=>xl,removeValueFromArrayAll:()=>P_,reorderArrayByValues:()=>D_,repairLegacyArrowScopePreamble:()=>Ol,replaceLiteralsWithObjectFields:()=>Zt,replaceOctalEscapeSequences:()=>U_,resolveAsset:()=>_e,resolveFileReferences:()=>Os,resolveHandler:()=>oa,resolveSharedLibraries:()=>$f,returnValueAsText:()=>ih,runPluginHook:()=>so,scopeElementParam:()=>$p,scopeReceiverExpression:()=>J_,self:()=>k_,setActiveRootState:()=>mf,setCookie:()=>Ow,setHashedExtend:()=>Kp,setInObjectByPath:()=>dw,setLocalStorage:()=>Dw,setNodeStyles:()=>jh,setProps:()=>WS,setPropsPrototype:()=>Ql,sharedLibrary:()=>yx,sharedLibraryFiles:()=>As,splitPackageSpecifier:()=>Tf,spotByPath:()=>hf,srcsetFor:()=>Oa,stringIncludesAny:()=>vl,stringToObject:()=>ow,stripVersionRangePrefix:()=>Of,swapItemsInArray:()=>T_,syncProps:()=>ef,themeColorKey:()=>Ts,toCamelCase:()=>Sr,toDashCase:()=>Wf,toDescriptionCase:()=>Mx,toPriorityOrder:()=>Ze,toTitleCase:()=>Ix,toggleFullscreen:()=>ex,triggerEventOn:()=>mr,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>B_,unstackArrayOfObjects:()=>Sl,update:()=>Yw,updateProps:()=>Zw,variables:()=>vf,verbose:()=>ya,warn:()=>xf,warnLibraryAliasCollision:()=>Aa,window:()=>R});var M=D(()=>{"use strict";zp();jl();Wt();Un();sa();Ji();_l();wO();SO();Al();yl();xO();Mw();Vw();Jw();eh();LO();BO();os();jO();N1();uS();$1();lS();F1();Q_();B1();j1();U1();V1();z1();H1();W1();K1();q1();wR();SR();eg();AR();Nx();CR();TR()});var Fn,Yd,Xd,_b=D(()=>{Fn=Object.create(null);Fn.open="0";Fn.close="1";Fn.ping="2";Fn.pong="3";Fn.message="4";Fn.upgrade="5";Fn.noop="6";Yd=Object.create(null);Object.keys(Fn).forEach(t=>{Yd[Fn[t]]=t});Xd={type:"error",data:"parser error"}});function sB(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function lB(t,e){if(iB&&t.data instanceof Blob)return t.data.arrayBuffer().then(sB).then(e);if(aB&&(t.data instanceof ArrayBuffer||cB(t.data)))return e(sB(t.data));Zd(t,!1,n=>{AC||(AC=new TextEncoder),e(AC.encode(n))})}var iB,aB,cB,Zd,oB,AC,fB=D(()=>{_b();iB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",aB=typeof ArrayBuffer=="function",cB=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Zd=({type:t,data:e},n,r)=>iB&&e instanceof Blob?n?r(e):oB(e,r):aB&&(e instanceof ArrayBuffer||cB(e))?n?r(e):oB(new Blob([e]),r):r(Fn[t]+(e||"")),oB=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var uB,Jd,dB,pB=D(()=>{uB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<uB.length;t++)Jd[uB.charCodeAt(t)]=t;dB=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=Jd[t.charCodeAt(r)],i=Jd[t.charCodeAt(r+1)],a=Jd[t.charCodeAt(r+2)],c=Jd[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 Hq,Qd,Wq,hB,gB=D(()=>{_b();pB();Hq=typeof ArrayBuffer=="function",Qd=(t,e)=>{if(typeof t!="string")return{type:"message",data:hB(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:Wq(t.substring(1),e)}:Yd[n]?t.length>1?{type:Yd[n],data:t.substring(1)}:{type:Yd[n]}:Xd},Wq=(t,e)=>{if(Hq){let n=dB(t);return hB(n,e)}else return{base64:!0,data:t}},hB=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function _B(){return new TransformStream({transform(t,e){lB(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 wb(t){return t.reduce((e,n)=>e+n.length,0)}function Sb(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 wB(t,e){CC||(CC=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(wb(n)<1)break;let c=Sb(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(wb(n)<2)break;let c=Sb(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(wb(n)<8)break;let c=Sb(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Xd);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(wb(n)<o)break;let c=Sb(n,o);a.enqueue(Qd(s?c:CC.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(Xd);break}}}})}var mB,yB,bB,CC,TC,Yc=D(()=>{fB();gB();_b();mB="",yB=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{Zd(s,!1,a=>{r[i]=a,++o===n&&e(r.join(mB))})})},bB=(t,e)=>{let n=t.split(mB),r=[];for(let o=0;o<n.length;o++){let s=Qd(n[o],e);if(r.push(s),s.type==="error")break}return r};TC=4});function At(t){if(t)return Kq(t)}function Kq(t){for(var e in At.prototype)t[e]=At.prototype[e];return t}var Oi=D(()=>{At.prototype.on=At.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};At.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};At.prototype.off=At.prototype.removeListener=At.prototype.removeAllListeners=At.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};At.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};At.prototype.emitReserved=At.prototype.emit;At.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};At.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var qr,pe,SB,Ri=D(()=>{qr=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),pe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),SB="arraybuffer"});function xb(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function Gr(t,e){e.useNativeTimers?(t.setTimeoutFn=qq.bind(pe),t.clearTimeoutFn=Gq.bind(pe)):(t.setTimeoutFn=pe.setTimeout.bind(pe),t.clearTimeoutFn=pe.clearTimeout.bind(pe))}function xB(t){return typeof t=="string"?Xq(t):Math.ceil((t.byteLength||t.size)*Yq)}function Xq(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 kb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var qq,Gq,Yq,Pi=D(()=>{Ri();qq=pe.setTimeout,Gq=pe.clearTimeout;Yq=1.33});function kB(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function EB(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 OC=D(()=>{});var Eb,Yr,tp=D(()=>{Yc();Oi();Pi();OC();Eb=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},Yr=class extends At{constructor(e){super(),this.writable=!1,Gr(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 Eb(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=Qd(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=kB(e);return n.length?"?"+n:""}}});var Xc,RC=D(()=>{tp();Pi();Yc();Xc=class extends Yr{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)};bB(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,yB(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]=kb()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var vB,AB,CB=D(()=>{vB=!1;try{vB=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}AB=vB});function Zq(){}function TB(){for(let t in Go.requests)Go.requests.hasOwnProperty(t)&&Go.requests[t].abort()}function OB(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||AB))return new XMLHttpRequest}catch{}if(!e)try{return new pe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var PC,Go,Jq,Xr,vb=D(()=>{RC();Oi();Pi();Ri();CB();PC=class extends Xc{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}},Go=class t extends At{constructor(e,n,r){super(),this.createRequest=e,Gr(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=xb(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=Zq,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()}};Go.requestsCount=0;Go.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",TB);else if(typeof addEventListener=="function"){let t="onpagehide"in pe?"pagehide":"unload";addEventListener(t,TB,!1)}}Jq=(function(){let t=OB({xdomain:!1});return t&&t.responseType!==null})(),Xr=class extends PC{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=Jq&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Go(OB,this.uri(),e)}}});var RB,DC,LC,Zr,Ab=D(()=>{tp();Pi();Yc();Ri();RB=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",DC=class extends Yr{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=RB?{}:xb(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;Zd(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&qr(()=>{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]=kb()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},LC=pe.WebSocket||pe.MozWebSocket,Zr=class extends DC{createSocket(e,n,r){return RB?new LC(e,n,r):n?new LC(e,n):new LC(e)}doWrite(e,n){this.ws.send(n)}}});var Li,IC=D(()=>{tp();Ri();Yc();Li=class extends Yr{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=wB(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=_B();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&&qr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var MC,NC=D(()=>{vb();Ab();IC();MC={websocket:Zr,webtransport:Li,polling:Xr}});function Zc(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=Qq.exec(t||""),s={},i=14;for(;i--;)s[tG[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=eG(s,s.path),s.queryKey=nG(s,s.query),s}function eG(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 nG(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var Qq,tG,$C=D(()=>{Qq=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tG=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var FC,Cb,Di,Tb,Jc,BC=D(()=>{NC();Pi();OC();$C();Oi();Yc();Ri();FC=typeof addEventListener=="function"&&typeof removeEventListener=="function",Cb=[];FC&&addEventListener("offline",()=>{Cb.forEach(t=>t())},!1);Di=class t extends At{constructor(e,n){if(super(),this.binaryType=SB,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){let r=Zc(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=Zc(n.host).host);Gr(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=EB(this.opts.query)),FC&&(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"})},Cb.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=TC,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+=xB(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,qr(()=>{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(),FC&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=Cb.indexOf(this._offlineEventListener);r!==-1&&Cb.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};Di.protocol=TC;Tb=class extends Di{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;Di.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;Di.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}},Jc=class extends Tb{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=>MC[o]).filter(o=>!!o)),super(e,r)}}});var ep,PB=D(()=>{RC();ep=class extends Xc{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 sht,Ob=D(()=>{BC();BC();tp();NC();Pi();$C();Ri();PB();vb();vb();Ab();Ab();IC();sht=Jc.protocol});function LB(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=Zc(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 DB=D(()=>{Ob()});function rp(t){return rG&&(t instanceof ArrayBuffer||oG(t))||sG&&t instanceof Blob||iG&&t instanceof File}function np(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(np(t[n]))return!0;return!1}if(rp(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return np(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&np(t[n]))return!0;return!1}var rG,oG,IB,sG,iG,jC=D(()=>{rG=typeof ArrayBuffer=="function",oG=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,IB=Object.prototype.toString,sG=typeof Blob=="function"||typeof Blob<"u"&&IB.call(Blob)==="[object BlobConstructor]",iG=typeof File=="function"||typeof File<"u"&&IB.call(File)==="[object FileConstructor]"});function MB(t){let e=[],n=t.data,r=t;return r.data=UC(n,e),r.attachments=e.length,{packet:r,buffers:e}}function UC(t,e){if(!t)return t;if(rp(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]=UC(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]=UC(t[r],e));return n}return t}function NB(t,e){return t.data=VC(t.data,e),delete t.attachments,t}function VC(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]=VC(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=VC(t[n],e));return t}var $B=D(()=>{jC()});var BB=n_((Eht,FB)=>{var Qc=1e3,tl=Qc*60,el=tl*60,Ii=el*24,aG=Ii*7,cG=Ii*365.25;FB.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return lG(t);if(n==="number"&&isFinite(t))return e.long?uG(t):fG(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function lG(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*cG;case"weeks":case"week":case"w":return n*aG;case"days":case"day":case"d":return n*Ii;case"hours":case"hour":case"hrs":case"hr":case"h":return n*el;case"minutes":case"minute":case"mins":case"min":case"m":return n*tl;case"seconds":case"second":case"secs":case"sec":case"s":return n*Qc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fG(t){var e=Math.abs(t);return e>=Ii?Math.round(t/Ii)+"d":e>=el?Math.round(t/el)+"h":e>=tl?Math.round(t/tl)+"m":e>=Qc?Math.round(t/Qc)+"s":t+"ms"}function uG(t){var e=Math.abs(t);return e>=Ii?Rb(t,e,Ii,"day"):e>=el?Rb(t,e,el,"hour"):e>=tl?Rb(t,e,tl,"minute"):e>=Qc?Rb(t,e,Qc,"second"):t+" ms"}function Rb(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var UB=n_((vht,jB)=>{function dG(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=BB(),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,x=Number(new Date),k=x-(u||x);y.diff=k,y.prev=u,y.curr=x,u=x,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let C=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(b,w)=>{if(b==="%%")return"%";C++;let S=n.formatters[w];if(typeof S=="function"){let A=m[C];b=S.call(y,A),m.splice(C,1),C--}return b}),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}jB.exports=dG});var VB=n_((Pe,Pb)=>{Pe.formatArgs=hG;Pe.save=gG;Pe.load=mG;Pe.useColors=pG;Pe.storage=yG();Pe.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`."))}})();Pe.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 pG(){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 hG(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Pb.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)}Pe.log=console.debug||console.log||(()=>{});function gG(t){try{t?Pe.storage.setItem("debug",t):Pe.storage.removeItem("debug")}catch{}}function mG(){let t;try{t=Pe.storage.getItem("debug")||Pe.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function yG(){try{return localStorage}catch{}}Pb.exports=UB()(Pe);var{formatters:bG}=Pb.exports;bG.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var GC={};F(GC,{Decoder:()=>WC,Encoder:()=>HC,PacketType:()=>et,isPacketValid:()=>xG,protocol:()=>qC});function _G(t){return typeof t=="string"}function wG(t){return t===void 0||WB(t)}function Lb(t){return Object.prototype.toString.call(t)==="[object Object]"}function SG(t,e){switch(t){case et.CONNECT:return e===void 0||Lb(e);case et.DISCONNECT:return e===void 0;case et.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&HB.indexOf(e[0])===-1);case et.ACK:return Array.isArray(e);case et.CONNECT_ERROR:return typeof e=="string"||Lb(e);default:return!1}}function xG(t){return _G(t.nsp)&&wG(t.id)&&SG(t.type,t.data)}var zB,zC,HB,qC,et,HC,WC,KC,WB,Db=D(()=>{Oi();$B();jC();zB=VT(VB(),1),zC=(0,zB.default)("socket.io-parser"),HB=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qC=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"})(et||(et={}));HC=class{constructor(e){this.replacer=e}encode(e){return zC("encoding packet %j",e),(e.type===et.EVENT||e.type===et.ACK)&&np(e)?this.encodeAsBinary({type:e.type===et.EVENT?et.BINARY_EVENT:et.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===et.BINARY_EVENT||e.type===et.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)),zC("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=MB(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},WC=class t extends At{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===et.BINARY_EVENT;r||n.type===et.BINARY_ACK?(n.type=r?et.EVENT:et.ACK,this.reconstructor=new KC(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(rp(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(et[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===et.BINARY_EVENT||r.type===et.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(!WB(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 zC("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 et.CONNECT:return Lb(n);case et.DISCONNECT:return n===void 0;case et.CONNECT_ERROR:return typeof n=="string"||Lb(n);case et.EVENT:case et.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&HB.indexOf(n[0])===-1);case et.ACK:case et.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},KC=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=NB(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};WB=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function Ke(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var YC=D(()=>{});var kG,Mi,XC=D(()=>{Db();YC();Oi();kG=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Mi=class extends At{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=[Ke(e,"open",this.onopen.bind(this)),Ke(e,"packet",this.onpacket.bind(this)),Ke(e,"error",this.onerror.bind(this)),Ke(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(kG.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:et.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:et.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 et.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 et.EVENT:case et.BINARY_EVENT:this.onevent(e);break;case et.ACK:case et.BINARY_ACK:this.onack(e);break;case et.DISCONNECT:this.ondisconnect();break;case et.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:et.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:et.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 Ni(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 KB=D(()=>{Ni.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};Ni.prototype.reset=function(){this.attempts=0};Ni.prototype.setMin=function(t){this.ms=t};Ni.prototype.setMax=function(t){this.max=t};Ni.prototype.setJitter=function(t){this.jitter=t}});var $i,qB=D(()=>{Ob();XC();Db();YC();KB();Oi();$i=class extends At{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,Gr(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 Ni({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||GC;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 Jc(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Ke(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Ke(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(Ke(e,"ping",this.onping.bind(this)),Ke(e,"data",this.ondata.bind(this)),Ke(e,"error",this.onerror.bind(this)),Ke(e,"close",this.onclose.bind(this)),Ke(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){qr(()=>{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 Mi(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 GB={};F(GB,{Fetch:()=>ep,Manager:()=>$i,NodeWebSocket:()=>Zr,NodeXHR:()=>Xr,Socket:()=>Mi,WebSocket:()=>Zr,WebTransport:()=>Li,XHR:()=>Xr,connect:()=>Ib,default:()=>Ib,io:()=>Ib,protocol:()=>qC});function Ib(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=LB(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=op[o]&&s in op[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new $i(r,e):(op[o]||(op[o]=new $i(r,e)),c=op[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var op,YB=D(()=>{DB();qB();XC();Db();Ob();op={};Object.assign(Ib,{Manager:$i,Socket:Mi,io:Ib,connect:Ib})});var jT={};F(jT,{ANIMATION_PROPS:()=>Ek,ARIA_ROLES:()=>NH,ATTR_TRANSFORMS:()=>Po,BARE_SEQUENCE_TOKEN_RE:()=>Pn,BLOCK_PROPS:()=>vk,BREAKPOINTS_CONTAINER_NAME:()=>gL,BREAKPOINT_PROPS:()=>Dk,BRENDER_REGISTRY_BLOCK:()=>Bf,BRENDER_REGISTRY_TREE_BLOCK:()=>jf,BRENDER_STAMP_META:()=>ng,CDN_PROVIDERS:()=>tn,COMPOUND_CSS_KEYWORDS:()=>Ls,CONFIG:()=>Ns,CONFIG_MERGE_EXL:()=>ae,CSS_LONGHAND_SHORTHANDS:()=>cn,CSS_NAMED_COLOR_HEX:()=>La,CSS_NATIVE_COLOR_REGEX:()=>xr,CSS_PROPS_REGISTRY:()=>xt,CSS_SHORTHAND_LONGHANDS:()=>vt,CSS_UNITS:()=>Yi,DEFAULT_CONFIG:()=>ui,DEFAULT_CSS_PROPERTIES_LIST:()=>Bt,DELEGATED_EVENTS:()=>sc,DESIGN_SYSTEM_BLOCK:()=>Hf,DESIGN_SYSTEM_DEFERRED:()=>zf,DESIGN_SYSTEM_LINK:()=>Vf,DESIGN_SYSTEM_OPTIONS:()=>cT,DOMQL_EVENTS:()=>G_,DOMQ_PROPERTIES:()=>to,DOM_EVENTS:()=>oD,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Qi,ENV:()=>yw,FACTORY:()=>Fe,FLEX_PROPS:()=>Rk,FONT_PROPS:()=>Ak,GRID_PROPS:()=>Pk,HOST_REGISTERED_PACKAGES:()=>z3,HTML_ATTRIBUTES:()=>Fr,HTML_TAGS:()=>ia,LIBRARY_PACKAGES:()=>tg,LIBRARY_SCOPES_KEY:()=>Es,LIFECYCLE_EVENTS:()=>Jn,LIVE_KEYS:()=>H0,METHODS:()=>no,METHODS_EXL:()=>Tl,MISC_PROPS:()=>Ck,MIXINS:()=>im,NODE_ENV:()=>xn,OPTIONS:()=>rf,PACKAGE_MANAGER_TO_CDN:()=>po,PARSED_DOMQ_PROPERTIES:()=>Cl,POLYGLOT_LANG_STORAGE_KEY:()=>Hh,POSITION_PROPS:()=>Tk,PREPARED_FORMAT:()=>Za,PRERENDER_REGISTRY_FORMATS:()=>hT,PROPS_METHODS:()=>eo,REGISTRY:()=>Gt,RESERVED_STORE_METHODS:()=>QT,REVIVED_MARK:()=>Ml,ROUTER_OPTIONS:()=>Ub,SIGNAL_ENGINE_KEY:()=>qi,SIGNAL_INSTANCES_KEY:()=>Wi,STANDARD_SCHEME_QUERIES:()=>Lg,STATE_DATA_MERGE_EXL:()=>bh,STATE_PROPERTIES:()=>K_,STORE_METHOD_NAMES:()=>JT,SVG_TAGS:()=>dc,THEME_PROPS:()=>Ok,TILING_POSITION_KEYWORDS:()=>Mu,TILING_SIZE_KEYWORDS:()=>Iu,TIMING_PROPS:()=>Xu,TYPES:()=>wl,UNIVERSAL_RESERVED_KEYS:()=>zh,VALUE_TRANSFORMERS:()=>Wg,VERSION:()=>HP,__resetBuiltinMethodWarnings:()=>bx,__resetSignalEngine:()=>w_,__resetSignalInstances:()=>b_,__resetSkinWarnings:()=>j0,__resetStateShadowWarnings:()=>tO,activateConfig:()=>DR,addCaching:()=>dh,addContext:()=>uh,addDelegatedEvent:()=>Ku,addExtend:()=>jw,addExtends:()=>zn,addItemAfterEveryElement:()=>L_,addMethods:()=>mc,addProtoToArray:()=>kl,addRef:()=>ch,adoptPrepared:()=>AA,aliasCaseVariants:()=>ja,alternateLinkKey:()=>Cs,animation:()=>f0,appendSVGSprite:()=>Ru,appendSvgIconsSprite:()=>qs,applyAttrTransforms:()=>oE,applyCSS:()=>TA,applyDependentState:()=>sS,applyDocument:()=>Ou,applyEvent:()=>_h,applyEventUpdate:()=>wh,applyExtends:()=>lc,applyHeadings:()=>$g,applyInitialState:()=>vm,applyMediaSequenceVars:()=>wo,applyProps:()=>Xl,applyReset:()=>Pu,applySequenceGlobalVars:()=>du,applySequenceVars:()=>Tr,applySkins:()=>Lu,applySpacingSequence:()=>yu,applyStateMethods:()=>Ae,applyThemeRoot:()=>Fu,applyTimingSequence:()=>Tu,applyTrueProps:()=>Fk,applyTypographySequence:()=>vu,arrayContainsOtherArray:()=>v_,arraysEqual:()=>I_,arrayzeValue:()=>Rs,assertEmitIntegrity:()=>ck,atSchemes:()=>ko,bareLibraryKey:()=>Pf,batch:()=>Op,bindLibraryGlobalScopes:()=>Df,breakpoints:()=>c0,breakpointsContainerName:()=>bm,brenderStampMeta:()=>Ax,buildImgSrcset:()=>qf,buildSkinVarStyles:()=>Gs,buildSourcesAndImg:()=>Gf,buildThemeVarStyles:()=>Oy,cache:()=>fS,cacheNode:()=>Oo,call:()=>XS,callStateMethod:()=>nd,camelToAttr:()=>Br,camelToLowerAttr:()=>cD,captureSnapshot:()=>JS,changeGlobalTheme:()=>Kg,changeLightness:()=>Wx,checkAttributeByTagName:()=>hn,checkEventFunctions:()=>rE,checkForStateTypes:()=>eS,checkIfBoxSize:()=>mu,checkIfInherits:()=>yh,checkIfStringIsInArray:()=>$_,class:()=>g0,clone:()=>nw,cloneAndMergeArrayExtend:()=>Vl,cloneFunction:()=>Ew,collectExtendsList:()=>aa,color:()=>e0,colorPairSchemes:()=>gu,colorStringToRgbaArray:()=>en,components:()=>Fc,compositeOverBackdrop:()=>Is,compoundLayers:()=>Ia,concatAddExtends:()=>$w,containerBreakpointQuery:()=>Lk,contrastRatio:()=>Na,convertSvgToSymbol:()=>hu,copyJavaScriptToClipboard:()=>Lx,copyStringToClipboard:()=>Px,countUntrackedReads:()=>Pp,create:()=>NT,createAsync:()=>FX,createBasedOnType:()=>ah,createComputed:()=>XT,createConfig:()=>su,createDefine:()=>Rj,createDomqlElement:()=>gp,createEffect:()=>K,createElement:()=>tS,createElementExtends:()=>Yp,createExtends:()=>Hl,createExtendsFromKeys:()=>ca,createExtendsStack:()=>Qp,createHTMLNode:()=>uc,createIfConditionFlag:()=>vw,createInheritedState:()=>nS,createKey:()=>Bl,createNestedObject:()=>fw,createNestedObjectByKeyPath:()=>oS,createObjectWithoutPrototype:()=>Vp,createParent:()=>lh,createPath:()=>fh,createPristineConfig:()=>Tg,createProps:()=>Zl,createPropsStack:()=>sh,createPrunedLibraryIconLoader:()=>ag,createRoot:()=>Qw,createScope:()=>aS,createScopeStore:()=>Lp,createSignal:()=>Sn,createSkeleton:()=>jX,createSnapshotId:()=>Fl,createState:()=>Zk,createStore:()=>ur,createSync:()=>BX,css:()=>Ve,cssCamelName:()=>zu,cssMediaVars:()=>Ag,cssPropName:()=>Ee,cssShorthandDepth:()=>Ja,cssShorthandStatesLonghand:()=>Qa,cssShorthandStatesThemeLonghand:()=>Bu,cssVars:()=>vg,currentPathname:()=>Ss,customDecodeURIComponent:()=>W_,customEncodeURIComponent:()=>H_,cutArrayAfterValue:()=>R_,cutArrayBeforeValue:()=>O_,debounce:()=>Ul,debounceOnContext:()=>xw,decodeBrenderRegistry:()=>Uf,decodeNewlines:()=>z_,deepClone:()=>pt,deepContains:()=>cw,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>be,deepExtend:()=>Gp,deepMerge:()=>bt,deepMergeExtends:()=>Hn,deepStringifyFunctions:()=>Ll,defaultDefine:()=>rl,defineResolvedThemeSignal:()=>_o,defineSetter:()=>GS,defineThemeSignal:()=>bo,designSystemBlock:()=>vx,designSystemLink:()=>Ex,destringifyGlobalScope:()=>ls,destroy:()=>Fi,detectHeightOnInit:()=>ox,detectInfiniteLoop:()=>hw,detectTag:()=>tr,devices:()=>l0,dispose:()=>pn,effectiveGlobalTheme:()=>Ry,encodeNewlines:()=>V_,error:()=>_s,escapeHtml:()=>U,escapeRegExp:()=>F_,evaluateText:()=>uo,excludeKeysFromObject:()=>mw,exec:()=>St,executeAttr:()=>WH,exetuteClassPerComponent:()=>hH,exposeBagGlobalScopes:()=>If,extendCachedRegistry:()=>Fw,extendStackRegistry:()=>Wl,extractArrayExtend:()=>ql,extractConditionalAttrs:()=>sE,faviconLinkKey:()=>mo,fetchLibraryData:()=>Ca,fibonacciNumberByIndex:()=>sx,fileEntryUrl:()=>rg,filterArrays:()=>M_,filterArraysFast:()=>N_,filterAttributesByTagName:()=>HH,finalizeExtends:()=>th,findClosestNumber:()=>og,findClosestNumberInFactory:()=>Rx,findHeadingLetter:()=>Rg,findHeadings:()=>uu,findInheritedState:()=>mh,findKeyPosition:()=>j_,flattenExtend:()=>la,font:()=>Yx,fontFace:()=>Jx,fontFamily:()=>Xx,fontFamilyTypes:()=>Zx,forcedScheme:()=>zs,formatDate:()=>rx,generateHash:()=>Wp,generateHeadArrayTags:()=>Ta,generateKey:()=>$l,generateMetaTags:()=>Tx,generateSequence:()=>we,generateSequencePosition:()=>E0,generateSprite:()=>pu,generateSubSequence:()=>lu,get:()=>HS,getActiveConfig:()=>P,getActiveDocument:()=>Zn,getActiveLang:()=>zi,getCDNDirUrl:()=>Yh,getCDNUrl:()=>An,getCacheSize:()=>pk,getCapitalCaseKeys:()=>zw,getCdnProviderFromConfig:()=>xa,getChildStateInKey:()=>gh,getChildren:()=>qS,getColor:()=>dt,getColorShade:()=>dg,getContext:()=>Sf,getCookie:()=>Rw,getDB:()=>Af,getDefaultOrFirstKey:()=>Er,getEmitStats:()=>om,getEmotionStylesheet:()=>Bx,getExtendsInElement:()=>Uw,getExtendsStack:()=>zl,getExtendsStackRegistry:()=>qp,getFnPrefixAndValue:()=>Cr,getFontFace:()=>qx,getFontFaceEach:()=>Ms,getFontFaceEachString:()=>Sg,getFontFaceString:()=>tu,getFontFamily:()=>Eu,getFontFormat:()=>_g,getFontSizeByKey:()=>Au,getFrequencyInArray:()=>A_,getFunctionSource:()=>Ne,getHashedExtend:()=>Kl,getImportMapScript:()=>nx,getInObjectByPath:()=>pw,getLanguages:()=>cp,getLocalStateLang:()=>dp,getLocalStorage:()=>Lw,getMediaBorder:()=>wu,getMediaColor:()=>Kt,getMediaTheme:()=>an,getNev:()=>Sw,getObserver:()=>Me,getPageMetadata:()=>Ox,getParentStateInKey:()=>hh,getPath:()=>gf,getPendingLang:()=>ap,getQuery:()=>Cf,getRef:()=>KS,getResolvedThemeSignal:()=>LR,getRgbTone:()=>Rn,getRoot:()=>bf,getRootContext:()=>wf,getRootData:()=>_f,getRootState:()=>yf,getRootStateInKey:()=>ph,getSafeInk:()=>Mg,getSafeInkInfo:()=>R0,getSequenceValue:()=>$s,getSequenceValueBySymbols:()=>fu,getSequenceValuePropertyPair:()=>Xn,getShadow:()=>_u,getShapeByKey:()=>Cu,getSignals:()=>ZT,getSizeValue:()=>Ua,getSpacingBasedOnRatio:()=>Be,getSpacingByKey:()=>Vt,getSpreadChildren:()=>Hw,getSubratio:()=>cu,getSubratioDifference:()=>au,getSystemGlobalTheme:()=>fe,getTheme:()=>I0,getThemeSignal:()=>PR,getTimingByKey:()=>Se,getTimingFunction:()=>je,global:()=>x_,gradient:()=>n0,grid:()=>h0,hasFunction:()=>se,hasHandlerPlugin:()=>ra,hasOwnProperty:()=>sw,hashContent:()=>Tn,hexToRgb:()=>Ux,hexToRgbArray:()=>cg,hexToRgba:()=>zx,hslToRgb:()=>ug,icons:()=>s0,inForcedColors:()=>Fs,inheritChildExtends:()=>Zp,inheritChildPropsExtends:()=>Xp,inheritParentProps:()=>Jl,inheritRecursiveChildExtends:()=>Jp,init:()=>fr,initPolyglot:()=>Wb,initProps:()=>Xw,injectGlobal:()=>Ot,insertAfterImportMap:()=>Cx,installPrunedLibraryIconLoader:()=>Kf,is:()=>ye,isArray:()=>I,isBoolean:()=>Ip,isBuiltinElementMethod:()=>q_,isCSSVar:()=>Ft,isContextComponent:()=>Ww,isCyclic:()=>gw,isDOMNode:()=>ge,isDate:()=>Np,isDefined:()=>Ut,isDevelopment:()=>oo,isDomDocument:()=>dr,isEmpty:()=>jp,isEmptyObject:()=>iw,isEnumeratedTrueFalseAttr:()=>oi,isEqualDeep:()=>Up,isFailedRevival:()=>as,isForcedColorsQuery:()=>Bs,isFunction:()=>L,isGoogleFontsUrl:()=>$a,isHostObject:()=>pr,isHtmlElement:()=>bl,isInertCompoundValue:()=>hg,isIntendedSystemColorWord:()=>js,isLazyFunction:()=>rw,isLocal:()=>ww,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>xs,isMethod:()=>ZS,isMobile:()=>Tw,isNativeColorToken:()=>Ds,isNode:()=>hr,isNot:()=>E_,isNotProduction:()=>gr,isNull:()=>Mp,isNumber:()=>me,isObject:()=>E,isObjectLike:()=>V,isPhoto:()=>ix,isPlainColor:()=>xo,isPolyglotRetranslatableKey:()=>nf,isPolyglotWritableKey:()=>us,isProduction:()=>ro,isProtectedElementMethod:()=>rs,isRawUnitValue:()=>ml,isResolvedColor:()=>nn,isRevived:()=>cs,isScalingUnit:()=>ts,isStaging:()=>_w,isState:()=>rS,isStore:()=>Et,isString:()=>v,isStringFunction:()=>na,isStringTag:()=>Il,isSvgTag:()=>$r,isTest:()=>Hp,isTesting:()=>bw,isTracking:()=>Qk,isUndefined:()=>Xt,isUniversallyReservedKey:()=>QS,isUnresolvableDependency:()=>ho,isValidDependencyMap:()=>ks,isValidHtmlTag:()=>Iw,isValidTag:()=>fc,isWasmLoaded:()=>U2,isWrappedLibrary:()=>$e,isWritableFamilyBucket:()=>S_,joinArrays:()=>Xi,joinCompoundLayers:()=>Ma,jointStacks:()=>Bw,jsonForScript:()=>gs,keyframes:()=>oc,keys:()=>Uh,libraryIconPruneReplacer:()=>Fx,libraryIdentifier:()=>sg,libraryPackageSpecs:()=>va,librarySpecsFor:()=>Qh,linearChannelToSrgb:()=>mg,literalPairCompound:()=>Hs,literalSchemeMap:()=>Rr,loadCssFile:()=>fx,loadJavascript:()=>ux,loadJavascriptFile:()=>ax,loadJavascriptFileEmbedSync:()=>lx,loadJavascriptFileSync:()=>cx,loadRemoteCSS:()=>dx,loadRemoteScript:()=>ka,loadTranslations:()=>Vi,loadWasm:()=>j2,log:()=>YS,logGroupIf:()=>Cw,logIf:()=>Aw,lookdown:()=>VS,lookdownAll:()=>zS,lookup:()=>US,lowercaseFirstLetter:()=>es,makeObjectWithoutPrototype:()=>aw,map:()=>ew,mapStringsWithContextComponents:()=>Gl,markPolyglotSeeded:()=>Kn,markRevived:()=>ea,markTextNotReady:()=>_a,matchesComponentNaming:()=>Wn,media:()=>Qx,memoize:()=>kw,merge:()=>Lt,mergeSharedLibraries:()=>Mf,mergeSharedLibraryDesignSystems:()=>Nf,mergeStateData:()=>io,mixTwoColors:()=>jx,mixTwoRgb:()=>Hx,mixTwoRgba:()=>pg,nextElement:()=>kf,normalizeIgnoreList:()=>Lf,normalizeLibraryKey:()=>vs,numToLetterMap:()=>on,objectToString:()=>Dl,objectizeStringProperty:()=>Yl,oklabToLinearSrgb:()=>yg,oklabToOklch:()=>Zf,oklchToGamutSafeSrgb:()=>Jf,oklchToOklab:()=>bg,opacify:()=>Da,overwrite:()=>Nl,overwriteDeep:()=>ie,overwriteShallow:()=>fs,overwriteState:()=>iS,parkHostObject:()=>Qr,parse:()=>Vh,parseColorToken:()=>te,parseDeep:()=>pf,payloadHasComputedIconName:()=>ig,pickStartLang:()=>qh,pickupElementFromProps:()=>rh,pickupPropsFromElement:()=>nh,planLibraryIconPrune:()=>$x,polyglotAddressLang:()=>Wh,polyglotFallbackLang:()=>wr,polyglotFunctions:()=>pp,polyglotLangStorageKey:()=>ba,polyglotLanguages:()=>vn,polyglotPlugin:()=>il,polyglotSeededKeys:()=>ao,polyglotStartLang:()=>ws,polyglotStartRule:()=>Kh,polyglotStartupScript:()=>tx,popConfig:()=>ht,popStaticCssPass:()=>ym,prepareContext:()=>IT,previousElement:()=>Ef,promoteActiveRootState:()=>ma,propExists:()=>Gw,propertizeElement:()=>oh,propertizeUpdate:()=>qw,pushConfig:()=>mt,pushStaticCssPass:()=>mm,quietColorProbe:()=>Us,quietSequenceProbe:()=>Ar,readBrenderStamp:()=>ms,readJsonDataBlock:()=>Gn,recordRules:()=>Hu,refreshContextProto:()=>yc,registerEvent:()=>ac,registerHostPackages:()=>H3,registerSignalInstance:()=>Ki,reinit:()=>CA,relativeLuminance:()=>Ps,remove:()=>gc,removeChars:()=>Dx,removeCookie:()=>Pw,removeDelegatedEvent:()=>qu,removeDuplicateProps:()=>tf,removeDuplicatesInArray:()=>Zi,removeFromArray:()=>C_,removeFromObject:()=>lw,removeNestedKeyByPath:()=>uw,removeValueFromArray:()=>xl,removeValueFromArrayAll:()=>P_,reorderArrayByValues:()=>D_,repairLegacyArrowScopePreamble:()=>Ol,replaceLiteralsWithObjectFields:()=>Zt,replaceOctalEscapeSequences:()=>U_,replayRules:()=>Wu,resetEmitStats:()=>ak,resolveAsset:()=>_e,resolveBorderValue:()=>ce,resolveColorRgb:()=>Vs,resolveColorsInGradient:()=>vo,resolveCompoundWords:()=>kr,resolveConfigDocument:()=>Gi,resolveDesignSystemClass:()=>kL,resolveFileReferences:()=>Os,resolveFileSource:()=>nE,resolveFileUrl:()=>rn,resolveGridTracks:()=>hL,resolveHandler:()=>oa,resolvePropValue:()=>Ro,resolveShadowNonColorWord:()=>za,resolveShadowValue:()=>Ws,resolveSharedLibraries:()=>$f,resolveStyleBlockTokens:()=>jk,returnSubThemeOrDefault:()=>Kx,returnValueAsText:()=>ih,reviveConfig:()=>Yg,rgbArrayToHex:()=>lg,rgbToHSL:()=>fg,rgbToHex:()=>Vx,runPluginHook:()=>so,runThroughMedia:()=>Ng,schemeGuardSelector:()=>Ig,schemeMediaQuery:()=>Dg,scopeElementParam:()=>$p,scopeReceiverExpression:()=>J_,scratchDefaultConfig:()=>Ba,scratchSystem:()=>qa,scratchUtils:()=>So,self:()=>k_,semanticIcons:()=>i0,sequence:()=>vr,serializeAttrValue:()=>rr,serializeConfig:()=>Gg,set:()=>Xs,setActiveConfig:()=>Cg,setActiveDocument:()=>ik,setActiveRootState:()=>mf,setAdaptiveSchemeVar:()=>Eo,setClass:()=>y7,setClassname:()=>gH,setColor:()=>Or,setCookie:()=>Ow,setCssEngineHook:()=>Ty,setCustomFont:()=>Qf,setCustomFontMedia:()=>yo,setEach:()=>$u,setFont:()=>ku,setFontFamily:()=>Wa,setFontImport:()=>Fa,setGradient:()=>Va,setHashedExtend:()=>Kp,setInCustomFontMedia:()=>wg,setInObjectByPath:()=>dw,setLang:()=>fp,setLocalStorage:()=>Dw,setMediaTheme:()=>Ha,setNodeStyles:()=>jh,setObserver:()=>hl,setProps:()=>WS,setPropsPrototype:()=>Ql,setSVG:()=>Ka,setScalingVar:()=>iu,setShadow:()=>Ao,setSubScalingVar:()=>Og,setSvgIcon:()=>Ks,setTheme:()=>Su,setValue:()=>z0,setVariables:()=>v0,setWasmEngine:()=>Vu,settled:()=>Rp,shadow:()=>o0,shape:()=>b0,sharedLibrary:()=>yx,sharedLibraryFiles:()=>As,sizes:()=>y0,skins:()=>_0,spacing:()=>t0,splitCompoundWords:()=>Yf,splitPackageSpecifier:()=>Tf,splitSelectorList:()=>Mr,splitSpacedValue:()=>bu,splitTopLevelCommas:()=>On,splitTopLevelSpaces:()=>ut,splitTransition:()=>Hg,spotByPath:()=>hf,srcsetFor:()=>Oa,srgbChannelToLinear:()=>gg,srgbToOklab:()=>Xf,stringIncludesAny:()=>vl,stringToObject:()=>ow,stripVersionRangePrefix:()=>Of,svg:()=>u0,svgData:()=>xg,svg_data:()=>d0,swapItemsInArray:()=>T_,syncProps:()=>ef,templates:()=>p0,theme:()=>r0,themeColorKey:()=>Ts,timing:()=>a0,toCamel:()=>ou,toCamelCase:()=>Sr,toDashCase:()=>Wf,toDescriptionCase:()=>Mx,toLinearChannel:()=>Pa,toPriorityOrder:()=>Ze,toTitleCase:()=>Ix,toggleFullscreen:()=>ex,transformBackgroundImage:()=>Ug,transformBorder:()=>Fg,transformBorderRadius:()=>Pr,transformBoxShadow:()=>Du,transformClassname:()=>vL,transformDuration:()=>Nu,transformGridTemplate:()=>zg,transformShadow:()=>jg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Bg,transformTilingValue:()=>Ys,transformTransition:()=>V0,transformersByPrefix:()=>Bk,transfromGap:()=>Vg,translate:()=>lp,triggerEventOn:()=>mr,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>B_,typography:()=>eu,unit:()=>Gx,unstackArrayOfObjects:()=>Sl,untrack:()=>Qo,update:()=>hc,updateProps:()=>Zw,updateVars:()=>m7,upsertTranslation:()=>up,useCssInProps:()=>ee,useHostState:()=>Jk,usePropsAsCSS:()=>xL,useSelectorsAsCSS:()=>EL,variables:()=>vf,vars:()=>m0,verbose:()=>ya,viewTransition:()=>w0,warn:()=>xf,warnLibraryAliasCollision:()=>Aa,warnStateKeyShadowsMethod:()=>Dp,window:()=>R,wrapHoverRule:()=>Ir});module.exports=d4(jT);Mt();var sm={};F(sm,{CSS_LONGHAND_SHORTHANDS:()=>cn,CSS_SHORTHAND_LONGHANDS:()=>vt,assertEmitIntegrity:()=>ck,css:()=>Ve,cssCamelName:()=>zu,cssPropName:()=>Ee,cssShorthandDepth:()=>Ja,cssShorthandStatesLonghand:()=>Qa,cssShorthandStatesThemeLonghand:()=>Bu,getActiveDocument:()=>Zn,getCacheSize:()=>pk,getEmitStats:()=>om,injectGlobal:()=>Ot,keyframes:()=>oc,recordRules:()=>Hu,replayRules:()=>Wu,reset:()=>zP,resetEmitStats:()=>ak,setActiveDocument:()=>ik,setWasmEngine:()=>Vu,splitSelectorList:()=>Mr,wrapHoverRule:()=>Ir});var W0={};F(W0,{BARE_SEQUENCE_TOKEN_RE:()=>Pn,COMPOUND_CSS_KEYWORDS:()=>Ls,CONFIG:()=>Ns,CONFIG_MERGE_EXL:()=>ae,CSS_NAMED_COLOR_HEX:()=>La,CSS_NATIVE_COLOR_REGEX:()=>xr,CSS_UNITS:()=>Yi,FACTORY:()=>Fe,LIVE_KEYS:()=>H0,PREPARED_FORMAT:()=>Za,STANDARD_SCHEME_QUERIES:()=>Lg,TILING_POSITION_KEYWORDS:()=>Mu,TILING_SIZE_KEYWORDS:()=>Iu,VALUE_TRANSFORMERS:()=>Wg,__resetSkinWarnings:()=>j0,activateConfig:()=>DR,aliasCaseVariants:()=>ja,animation:()=>f0,appendSVGSprite:()=>Ru,appendSvgIconsSprite:()=>qs,applyDocument:()=>Ou,applyHeadings:()=>$g,applyMediaSequenceVars:()=>wo,applyReset:()=>Pu,applySequenceGlobalVars:()=>du,applySequenceVars:()=>Tr,applySkins:()=>Lu,applySpacingSequence:()=>yu,applyThemeRoot:()=>Fu,applyTimingSequence:()=>Tu,applyTypographySequence:()=>vu,atSchemes:()=>ko,breakpoints:()=>c0,buildSkinVarStyles:()=>Gs,changeGlobalTheme:()=>Kg,changeLightness:()=>Wx,checkIfBoxSize:()=>mu,class:()=>g0,color:()=>e0,colorPairSchemes:()=>gu,colorStringToRgbaArray:()=>en,compositeOverBackdrop:()=>Is,compoundLayers:()=>Ia,contrastRatio:()=>Na,convertSvgToSymbol:()=>hu,createConfig:()=>su,createPristineConfig:()=>Tg,cssMediaVars:()=>Ag,cssVars:()=>vg,defineResolvedThemeSignal:()=>_o,defineThemeSignal:()=>bo,devices:()=>l0,document:()=>OR,findHeadingLetter:()=>Rg,findHeadings:()=>uu,font:()=>Yx,fontFace:()=>Jx,fontFamily:()=>Xx,fontFamilyTypes:()=>Zx,forcedScheme:()=>zs,generateSequence:()=>we,generateSequencePosition:()=>E0,generateSprite:()=>pu,generateSubSequence:()=>lu,getActiveConfig:()=>P,getColor:()=>dt,getColorShade:()=>dg,getDefaultOrFirstKey:()=>Er,getFnPrefixAndValue:()=>Cr,getFontFace:()=>qx,getFontFaceEach:()=>Ms,getFontFaceEachString:()=>Sg,getFontFaceString:()=>tu,getFontFamily:()=>Eu,getFontFormat:()=>_g,getFontSizeByKey:()=>Au,getMediaBorder:()=>wu,getMediaColor:()=>Kt,getMediaTheme:()=>an,getResolvedThemeSignal:()=>LR,getRgbTone:()=>Rn,getSafeInk:()=>Mg,getSafeInkInfo:()=>R0,getSequenceValue:()=>$s,getSequenceValueBySymbols:()=>fu,getSequenceValuePropertyPair:()=>Xn,getShadow:()=>_u,getShapeByKey:()=>Cu,getSizeValue:()=>Ua,getSpacingBasedOnRatio:()=>Be,getSpacingByKey:()=>Vt,getSubratio:()=>cu,getSubratioDifference:()=>au,getTheme:()=>I0,getThemeSignal:()=>PR,getTimingByKey:()=>Se,getTimingFunction:()=>je,gradient:()=>n0,grid:()=>h0,hexToRgb:()=>Ux,hexToRgbArray:()=>cg,hexToRgba:()=>zx,hslToRgb:()=>ug,icons:()=>s0,inForcedColors:()=>Fs,isCSSVar:()=>Ft,isDomDocument:()=>dr,isForcedColorsQuery:()=>Bs,isGoogleFontsUrl:()=>$a,isHostObject:()=>pr,isInertCompoundValue:()=>hg,isIntendedSystemColorWord:()=>js,isNativeColorToken:()=>Ds,isPlainColor:()=>xo,isRawUnitValue:()=>ml,isResolvedColor:()=>nn,isScalingUnit:()=>ts,isWritableFamilyBucket:()=>S_,joinCompoundLayers:()=>Ma,linearChannelToSrgb:()=>mg,literalPairCompound:()=>Hs,literalSchemeMap:()=>Rr,media:()=>Qx,mixTwoColors:()=>jx,mixTwoRgb:()=>Hx,mixTwoRgba:()=>pg,numToLetterMap:()=>on,oklabToLinearSrgb:()=>yg,oklabToOklch:()=>Zf,oklchToGamutSafeSrgb:()=>Jf,oklchToOklab:()=>bg,opacify:()=>Da,parkHostObject:()=>Qr,parseColorToken:()=>te,popConfig:()=>ht,pushConfig:()=>mt,quietColorProbe:()=>Us,quietSequenceProbe:()=>Ar,relativeLuminance:()=>Ps,reset:()=>RR,resolveBorderValue:()=>ce,resolveColorRgb:()=>Vs,resolveColorsInGradient:()=>vo,resolveCompoundWords:()=>kr,resolveConfigDocument:()=>Gi,resolveFileUrl:()=>rn,resolveShadowNonColorWord:()=>za,resolveShadowValue:()=>Ws,returnSubThemeOrDefault:()=>Kx,reviveConfig:()=>Yg,rgbArrayToHex:()=>lg,rgbToHSL:()=>fg,rgbToHex:()=>Vx,runThroughMedia:()=>Ng,schemeGuardSelector:()=>Ig,schemeMediaQuery:()=>Dg,scratchDefaultConfig:()=>Ba,scratchSystem:()=>qa,scratchUtils:()=>So,semanticIcons:()=>i0,sequence:()=>vr,serializeConfig:()=>Gg,set:()=>Xs,setActiveConfig:()=>Cg,setAdaptiveSchemeVar:()=>Eo,setColor:()=>Or,setCustomFont:()=>Qf,setCustomFontMedia:()=>yo,setEach:()=>$u,setFont:()=>ku,setFontFamily:()=>Wa,setFontImport:()=>Fa,setGradient:()=>Va,setInCustomFontMedia:()=>wg,setMediaTheme:()=>Ha,setSVG:()=>Ka,setScalingVar:()=>iu,setShadow:()=>Ao,setSubScalingVar:()=>Og,setSvgIcon:()=>Ks,setTheme:()=>Su,setValue:()=>z0,setVariables:()=>v0,shadow:()=>o0,shape:()=>b0,sizes:()=>y0,skins:()=>_0,spacing:()=>t0,splitCompoundWords:()=>Yf,splitSpacedValue:()=>bu,splitTopLevelCommas:()=>On,splitTopLevelSpaces:()=>ut,splitTransition:()=>Hg,srgbChannelToLinear:()=>gg,srgbToOklab:()=>Xf,svg:()=>u0,svgData:()=>xg,svg_data:()=>d0,templates:()=>p0,theme:()=>r0,timing:()=>a0,toCamel:()=>ou,toLinearChannel:()=>Pa,transformBackgroundImage:()=>Ug,transformBorder:()=>Fg,transformBorderRadius:()=>Pr,transformBoxShadow:()=>Du,transformDuration:()=>Nu,transformGridTemplate:()=>zg,transformShadow:()=>jg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Bg,transformTilingValue:()=>Ys,transformTransition:()=>V0,transfromGap:()=>Vg,typography:()=>eu,unit:()=>Gx,vars:()=>m0,viewTransition:()=>w0});var So={};F(So,{BARE_SEQUENCE_TOKEN_RE:()=>Pn,COMPOUND_CSS_KEYWORDS:()=>Ls,CSS_NAMED_COLOR_HEX:()=>La,CSS_NATIVE_COLOR_REGEX:()=>xr,CSS_UNITS:()=>Yi,applyMediaSequenceVars:()=>wo,applySequenceGlobalVars:()=>du,applySequenceVars:()=>Tr,changeLightness:()=>Wx,colorStringToRgbaArray:()=>en,compositeOverBackdrop:()=>Is,compoundLayers:()=>Ia,contrastRatio:()=>Na,convertSvgToSymbol:()=>hu,findHeadingLetter:()=>Rg,findHeadings:()=>uu,generateSequence:()=>we,generateSequencePosition:()=>E0,generateSprite:()=>pu,generateSubSequence:()=>lu,getColorShade:()=>dg,getDefaultOrFirstKey:()=>Er,getFnPrefixAndValue:()=>Cr,getFontFace:()=>qx,getFontFaceEach:()=>Ms,getFontFaceEachString:()=>Sg,getFontFaceString:()=>tu,getFontFormat:()=>_g,getRgbTone:()=>Rn,getSequenceValue:()=>$s,getSequenceValueBySymbols:()=>fu,getSequenceValuePropertyPair:()=>Xn,getSizeValue:()=>Ua,getSubratio:()=>cu,getSubratioDifference:()=>au,hexToRgb:()=>Ux,hexToRgbArray:()=>cg,hexToRgba:()=>zx,hslToRgb:()=>ug,isCSSVar:()=>Ft,isDomDocument:()=>dr,isGoogleFontsUrl:()=>$a,isHostObject:()=>pr,isInertCompoundValue:()=>hg,isNativeColorToken:()=>Ds,isRawUnitValue:()=>ml,isResolvedColor:()=>nn,isScalingUnit:()=>ts,isWritableFamilyBucket:()=>S_,joinCompoundLayers:()=>Ma,linearChannelToSrgb:()=>mg,mixTwoColors:()=>jx,mixTwoRgb:()=>Hx,mixTwoRgba:()=>pg,numToLetterMap:()=>on,oklabToLinearSrgb:()=>yg,oklabToOklch:()=>Zf,oklchToGamutSafeSrgb:()=>Jf,oklchToOklab:()=>bg,opacify:()=>Da,parkHostObject:()=>Qr,parseColorToken:()=>te,quietSequenceProbe:()=>Ar,relativeLuminance:()=>Ps,resolveCompoundWords:()=>kr,resolveConfigDocument:()=>Gi,resolveFileUrl:()=>rn,returnSubThemeOrDefault:()=>Kx,rgbArrayToHex:()=>lg,rgbToHSL:()=>fg,rgbToHex:()=>Vx,setCustomFont:()=>Qf,setCustomFontMedia:()=>yo,setFontImport:()=>Fa,setInCustomFontMedia:()=>wg,setScalingVar:()=>iu,setSubScalingVar:()=>Og,setVariables:()=>v0,splitCompoundWords:()=>Yf,splitTopLevelCommas:()=>On,splitTopLevelSpaces:()=>ut,srgbChannelToLinear:()=>gg,srgbToOklab:()=>Xf,toLinearChannel:()=>Pa});var dr=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),pr=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)},S_=t=>t!==null&&typeof t=="object"&&!pr(t),Qr=(t,e,n)=>{if(!t)return;if(dr(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},Gi=t=>t?dr(t.__domDocument)?t.__domDocument:dr(t.document)?t.document:null:null;var ts=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Yi=["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"],P4=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),L4=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Yi.filter(t=>t!=="auto").map(P4).join("|")})$`),ml=t=>L4.test(String(t).trim());M();var La={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"},en=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=La[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&&kt&&R){let n=kt.body.appendChild(kt.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){kt.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return kt.body.removeChild(n),[0,0,0,0];t=R.getComputedStyle(n).color,kt.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]},jx=(t,e,n=.5)=>(t=en(t),e=en(e),pg(t,e,n)),Ux=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},cg=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},Vx=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),lg=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),zx=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},Hx=(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})`},Wx=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},fg=(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]},ug=(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)],dg=(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)},pg=(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})`},Da=(t,e)=>{let n=en(t);if(!n){gr()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},Ft=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Ls=new Set(["currentcolor","transparent","thin","medium","thick"]),xr=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,lU=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,Ds=t=>lU.test(t),Yf=t=>t.indexOf("(")===-1?t.split(/\s+/):ut(t),hg=(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&&!fU(t,o,s,e))return!1;o=s+1}}return!0},fU=(t,e,n,r)=>{let o=t.charCodeAt(e);if(o>=48&&o<=57)return!0;let s=t.slice(e,n);return Ds(s)||r!==void 0&&r.has(s)},Ia=(t,e)=>e?On(t).map(n=>Yf(n.trim())):[Yf(t)],Ma=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},kr=(t,e,{commas:n,keywords:r},o,s)=>{let i=xr.test(t);if(i&&hg(t,r))return t;let a=Ia(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=uU(u,e,r,o,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:Ma(a)},uU=(t,e,n,r,o)=>t?Ft(t)?`var(${t})`:Ds(t)||n!==void 0&&n.has(t)?t:e(t,r,o):"",dU=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,te=t=>{if(!v(t))return null;if(xr.test(t))return{passthrough:t};if(Ft(t))return{cssVar:t};let e=t.match(dU);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}},nn=t=>v(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),On=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},ut=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},Pa=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Ps=t=>.2126*Pa(t[0])+.7152*Pa(t[1])+.0722*Pa(t[2]),Na=(t,e)=>{let n=Ps(t)+.05,r=Ps(e)+.05;return n>r?n/r:r/n},gg=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),mg=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,Xf=([t,e,n])=>{let[r,o,s]=[t,e,n].map(gg),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]},yg=([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]},Zf=([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]},bg=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},Jf=(t,e,n,r=24)=>{let o=a=>yg(bg([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=>mg(Math.max(0,Math.min(1,a))))},Is=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),Rn=(t,e)=>{v(t)&&t.includes("rgb")&&(t=en(t).join(", ")),v(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),me(e)&&(e+="");let n=lg(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=dg(n,parseFloat(e));return cg(o).join(", ")}else{let[o,s,i]=t,[a,c]=fg(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return ug(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var Kx=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var rn=(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},Er=(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&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];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},_g=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},$a=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Fa=t=>`@import url('${t}');`,wg=t=>`@font-face { ${t} }`,Qf=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=_g(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
|
|
35
|
+
`;)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("")},cR=(t,e)=>{if(!v(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!/const _s_* = /.test(t)&&!t.includes("?.context?.globalScope?.")||!ie(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,r=t;for(let[o,s]of U6){let i=V6(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},Ox=(t,e)=>{if(v(t))return cR(t,e);let n=SR(t);return n===null?t:cR(n,e)},z6={lazy:!0,window:globalThis},xR=(t,e)=>{let n=Ox(t,e);if(n===t||!v(n))return n;try{let r=we({v:n},{},z6).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},kx=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},H6=(t,e)=>{let n=new WeakMap,r=o=>{if(v(o)||typeof o=="function")return xR(o,e);if($l(o)||!kx(o))return o;if(n.has(o))return n.get(o);let s=Array.isArray(o)?[]:Object.getPrototypeOf(o)===null?Object.create(null):{};n.set(o,s);for(let i of Object.keys(o))ce.has(i)||(s[i]=r(o[i]));return s};return r(t)},W6=(t,e)=>{let n={...t};n.globalScope=kR(t.globalScope,e);for(let r of Tx){let o=t[r];if(!kx(o))continue;let s={};for(let i of Object.keys(o))ce.has(i)||(s[i]=xR(o[i],e));n[r]=s}for(let r of _R)kx(t[r])&&(n[r]=H6(t[r],e));return n},lR=new WeakMap,K6=(t,e,n)=>{let r=lR.get(t);r||lR.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>Vt(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||Vt(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return Vt(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!Vt(i,a)&&Vt(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},q6=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",G6=(t,e)=>{let n=Cx.get(t);return n?e===n.consumerGs?n.libGs:q6(e)?K6(e,n.libGs,n.consumerGs):e:e},Y6=()=>{typeof globalThis[iR]!="function"&&Object.defineProperty(globalThis,iR,{value:G6,configurable:!0})},rg=t=>{let e=t[As];return Array.isArray(e)?e:null},Rx=t=>je(t)?t.library:t,X6=(t,e,n)=>{let r=rg(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&v(o.id)&&Z6(t,o.id))},Z6=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(v(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",...Tx,..._R])if(o(t[s]))return!0;return!1},kR=(t,e)=>{let n={};for(let r of Object.keys(t))ce.has(r)||(n[r]=Ox(t[r],e));return n},fR=new WeakMap,Nf=(t,e=null)=>{let n=t&&rg(t);if(!n||!n.length)return 0;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("bindLibraryGlobalScopes"),0;let r=t.globalScope;if(!k(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=fR.get(r);s||fR.set(r,s=new Set),Y6();let i=0;for(let a of n){if(!a||!v(a.id)||s.has(a.id))continue;let c=Rx(o[a.index]);if(!c||!k(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?wR(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return v(h)||v(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=k(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>v(p)&&Vt(c.globalScope,p)&&Vt(e,p)&&f(e[p],Ox(c.globalScope[p],a.id))):[],d=us(kR(c.globalScope,a.id));Object.setPrototypeOf(d,r),Cx.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},J6=/^@symbo[-.]ls\//,If=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,og=t=>[`@symbo-ls/${t}`,`@symbo.ls/${t}`],Ca=(t,e)=>{let n=[];if(!Array.isArray(t)||!t.length)return n;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("libraryPackageSpecs"),n;let r=new Map,o=(i,a,c)=>{for(let l of og(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=Rx(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&&!J6.test(f))continue;let u=If(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&If(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},Oa=({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}".`)},uR=["functions","methods","snippets"],sg=Symbol.for("smbls.libraryPackages"),Df=new WeakMap,Q6=t=>!!t&&typeof t=="object"&&!Array.isArray(t),tU=t=>({get globalScope(){return t()}}),dR=(t,e,n)=>{let r={};for(let o of Object.keys(t))ce.has(o)||(r[o]=t[o]);return Object.defineProperty(r,"context",{configurable:!0,enumerable:!1,writable:!0,value:tU(e)}),Df.set(r,n),r},pR=t=>!Q6(t)||!Df.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),$f=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of uR){let o=t[r];pR(o)||Df.get(o)===t||(t[r]=dR(o,e,t))}if(!globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&Array.isArray(t.sharedLibraries)){let r=rg(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=je(o)&&o&&"library"in o,a=Rx(o);if(!a||typeof a!="object"||a.__isStub||Df.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&Cx.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of uR)pR(a[u])||(f[u]=dR(a[u],l,t));return Df.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of Ca(t.sharedLibraries,Oa))r[o]=s;try{Object.defineProperty(n,sg,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},tg="polyglot/translations",eU=(t,e)=>{let n=t;for(let r of e.split(".")){if(!n||typeof n!="object"||!Vt(n,r))return!1;n=n[r]}return n!==void 0},ER=(t,e,n,r,o=!1)=>{for(let s in e){if(!Vt(e,s)||ce.has(s))continue;let i=`${r}/${s}`;if(!n.has(i))if(Vt(t,s))k(t[s])&&k(e[s])&&ER(t[s],e[s],n,i);else{if(o&&s.includes(".")&&eU(t,s))continue;t[s]=bo(e[s],n,i)}}},vR=(t,e,n)=>{if(!("translations"in t)){t.translations=bo(e,n,tg);return}let r=t.translations;if(!k(r)||!k(e)||t.fetch)return;let o=null;for(let s in e){if(!Vt(e,s)||ce.has(s))continue;let i=`${tg}/${s}`;if(!n.has(i)){if(Vt(r,s)){k(r[s])&&k(e[s])&&ER(r[s],e[s],n,i,!0);continue}k(e[s])&&(o||(o=new Set(Be(t,!1))),o.has(s)&&(r[s]=bo(e[s],n,i)))}}},nU=(t,e)=>{let n={};for(let r in t){if(!Vt(t,r)||ce.has(r))continue;let o=`polyglot/${r}`;e.has(o)||(n[r]=r==="translations"?bo(t[r],e,o):Ex(t[r],e,o))}return n},rU=(t,e,n,r="library",o=-1)=>{let s=ng(e,n),i=!X6(t,o,e)&&j6(t,e,s)>0?`${r}#${$6()}`:null,a=i?W6(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!==As&&!f.startsWith("__")&&!ce.has(f)&&f!=="app"&&!s.has(f)){if(k(a[f])&&k(t[f]))if(f==="designSystem")Ta(t[f],a[f],s,f);else{for(let u in a[f])if(!ce.has(u)&&!s.has(`${f}/${u}`)&&!(f==="polyglot"&&u==="translations")){if(f==="methods"&&ss(u)){u in t[f]||l.push(u);continue}u in t[f]?oR(f,t[f][u])&&!oR(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}f==="polyglot"&&Vt(a.polyglot,"translations")&&!s.has(tg)&&vR(t.polyglot,a.polyglot.translations,s)}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?N6(u,s,l):u;f==="designSystem"?t[f]=bo(d,s,f):f==="polyglot"&&k(d)?t[f]=nU(d,s):t[f]=R6(Ex(d,s,f),e[f])}}i&&(rg(t)||(t[As]=[]),t[As].push({id:i,index:o,key:v(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&M6(r,l)},oU=(t,e,n)=>{if(t!==e){let r=bR(t);if(v(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},sU=`${Sx}/default`,iU=t=>v(t)&&t!==""&&Ts(t).full===sU,aU=(t,e)=>{if(v(e.key)&&e.key)return e.key;if(t!==e){if(v(t.key)&&t.key)return t.key;if(v(t.name)&&t.name)return t.name}return null},Px=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=P6;if(je(s)&&(i=Mf(s.ignoreList),s=s.library),!k(s))continue;let a={entry:o,lib:s,ignore:i,index:r};iU(aU(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},AR=(t,e,n)=>{let r=e(),o=sR(r),s=D6(r),{linked:i,bases:a}=Px(t);for(let f of i)n(f);let c=!o.size&&a.length?sR(e()):null;for(let f of a)n(f);return{claims:o.size?o:c&&c.size?c:null,ownFamilies:s}},Ff=(t,e)=>{if(!e||!e.length)return;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("mergeSharedLibraries");let{claims:n,ownFamilies:r}=AR(e,()=>t.designSystem,({entry:o,lib:s,ignore:i,index:a})=>rU(t,s,i,oU(o,s,a),a));yR(t.designSystem,r),n&&mR(t.designSystem,n)},Cs=(t,e)=>{let n=k(t)?t:null;if(!Array.isArray(e)||!e.length)return n||{};if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("sharedLibraryFiles"),n||{};let r=n?{...n}:{},{linked:o,bases:s}=Px(e);for(let{lib:i,ignore:a}of[...o,...s]){let c=ng(i,a);if(c.has("files"))continue;let l=i.files;if(k(l))for(let f in l)!Object.prototype.hasOwnProperty.call(l,f)||ce.has(f)||c.has(`files/${f}`)||f in r||(r[f]=l[f])}return r},Bf=(t,e,n=Ta)=>{if(!k(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("mergeSharedLibraryDesignSystems"),t;let{claims:r,ownFamilies:o}=AR(e,()=>t,({lib:s,ignore:i})=>{let a=s.designSystem;if(!a||typeof a!="object")return;let c=ng(s,i);c.has("designSystem")||n(t,a,c,"designSystem")});return yR(t,o),r&&mR(t,r),t},jf=(t,e)=>{if(!k(t)||!Array.isArray(e)||!e.length)return t;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("mergeSharedLibraryTranslations"),t;let{linked:n,bases:r}=Px(e);for(let{lib:o,ignore:s}of[...n,...r]){let i=o.polyglot;if(!k(i)||!Vt(i,"translations"))continue;let a=ng(o,s);a.has("polyglot")||a.has(tg)||vR(t,i.translations,a)}return t}});function Ps(t,e){if(!e||typeof e!="object")return t;let n=o=>!mU(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:cg(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))yU.has(o)?r[o]=Array.isArray(s)?s.map(i=>CR(i,n)):CR(s,n):typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function Lx(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 bU(t,e){let n=Lx(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!sa(n))return n}function _U(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=bU(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]??Lx(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??Lx(a,m)??p}));return f}function OR(t){if(!k(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}}sa(r)&&delete e[n]}return e}function Fx(t,e,n,{isProduction:r=!1,channel:o="production"}={}){if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Hn("getPageMetadata",[t,e,n,{isProduction:r,channel:o}]);let s=t.pages?.[e],i=k(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=OR(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=OR(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=_U(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=Ps(d,Cs(t.files,t.sharedLibraries));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 x=y.replace(/\{\{[^}]*\}\}/g,"").trim();x?d[m]=x:m==="title"?d[m]=h:delete d[m]}return d}var U,ys,Xn,zf,Hf,Wf,Kf,qf,Gf,fU,Dx,Ix,ag,Mx,bs,uU,Nx,TR,Rn,dU,pU,Pa,Os,_o,Rs,hU,gU,$x,mU,Vf,cg,yU,CR,RR=D(()=>{"use strict";Kt();ca();ig();Dl();U=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,n=>e[n])},ys=t=>JSON.stringify(t).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),Xn=(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}},zf='script[type="application/json"][data-brender="registry"]',Hf='script[type="application/json"][data-brender="registry-tree"]',Wf=t=>{if(!k(t)||t.f!=="tree"||!Array.isArray(t.e)||t.e.length%3)return null;let e=t.e,n=[],r={},o=0;for(let s=0,i=0;s<e.length;s+=3,i++){let a=e[s],c=e[s+1],l=e[s+2];if(!Number.isInteger(a)||a<0||a>i||typeof c!="string"||!Number.isInteger(l))return null;let f=a?n[i-a]+"."+c:c;o+=l,n.push(f),r[f]="br-"+o}return r},Kf='link[rel="preload"][data-smbls="design-system"]',qf='meta[name="smbls-design-system"][data-smbls="design-system"]',Gf='script[type="application/json"][data-smbls="design-system"]',fU=t=>k(t)&&k(t.config)&&Array.isArray(t.rules),Dx=(t,e)=>e&&e.defer===!0?'<meta name="smbls-design-system" content="'+U(t)+'" data-smbls="design-system">':'<link rel="preload" href="'+U(t)+'" as="fetch" crossorigin="anonymous" data-smbls="design-system">',Ix=t=>fU(t)?'<script type="application/json" data-smbls="design-system">'+ys(t)+"<\/script>":"",ag='meta[name="brender-stamp"]',Mx=({stamp:t,time:e}={})=>'<meta name="brender-stamp" content="'+U(t)+'" data-time="'+(typeof e=="number"&&isFinite(e)?Math.round(e):"")+'">',bs=t=>{if(!t||typeof t.querySelector!="function")return null;let e=null;try{e=t.querySelector(ag)}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}},uU=/<script\b(?:[^>"']|"[^"]*"|'[^']*')*\btype\s*=\s*["']?importmap["']?(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/script\s*>/gi,Nx=(t,e)=>{let n=-1;for(let r of String(t).matchAll(uU))n=r.index+r[0].length;return n===-1?null:t.slice(0,n)+`
|
|
36
|
+
`+e+t.slice(n)},TR=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${U(n)}"`).join(" "),Rn=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)},dU=new Set(["jsonLd","styles","scripts"]),pU=new Set(["source"]),Pa=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="${Rn(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="${Rn(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="${U(o)}"`),r||(n.type&&s.push(`type="${U(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${U(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${U(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${U(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${U(o||Rn(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},Os=t=>`${t.hreflang||""}|${t.href||""}`,_o=t=>k(t)?Rn(JSON.stringify(t)):String(t),Rs=t=>k(t)?Rn(JSON.stringify(t)):String(t),hU=(t,e,n)=>t==="favicons"?Array.isArray(e)&&(typeof n=="string"||k(n))?` data-smbls-favicon="${U(_o(n))}"`:"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${U(e)}"`:"",gU=t=>k(t)?` data-smbls-alternate="${U(Os(t))}"`:"",$x=(t,e)=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Hn("generateMetaTags",[t,e]);e||(t={...t,robots:"noindex"});let n=!1,r=Object.entries(t).reduce((o,[s,i])=>{if(!i&&i!==0&&i!==!1||dU.has(s)||pU.has(s))return o;if(s==="title")return o.push(`<title>${U(i)}</title>`),o;if(s==="canonical")return o.push(`<link rel="canonical" href="${U(i)}">`),o;if(s==="manifest")return o.push(`<link rel="manifest" href="${U(i)}">`),o;if(s==="favicon"||s==="favicons"||s==="icon"||s==="icons")return(Array.isArray(i)?i:[i]).forEach(u=>{let d=hU(s,i,u);if(typeof u=="string")o.push(`<link rel="icon" href="${U(u)}"${d}>`);else if(typeof u=="object"){let p=TR(u);/rel=/.test(p)?o.push(`<link ${p}${d}>`):o.push(`<link rel="icon" ${p}${d}>`)}}),o;if(s==="alternate")return(Array.isArray(i)?i:[i]).forEach(u=>{if(u&&typeof u=="object"){let d=Object.entries(u).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${U(g)}"`).join(" ");o.push(`<link rel="alternate" ${d}${gU(u)}>`)}}),o;if(s==="theme-color"&&Array.isArray(i))return i.forEach(f=>{if(!k(f))return;let u=TR({name:"theme-color",content:f.content,media:f.media});o.push(`<meta ${u} data-smbls-theme-color="${U(Rs(f))}">`)}),o;let a=(f,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")o.push(`<meta ${d}="${U(f)}" content="${U(u)}">`);else if(Array.isArray(u))u.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")o.push(`<meta ${d}="${U(f)}" content="${U(p)}">`);else if(typeof p=="object"){let g=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${U(m)}"`).join(" ");o.push(`<meta ${g}>`)}});else if(typeof u=="object"){let p=Object.entries(u).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${U(h)}"`).join(" ");o.push(`<meta ${p}>`)}};if(s.startsWith("http-equiv:")){let f=s.replace("http-equiv:","");return a(f,i,"http-equiv"),o}if(s.startsWith("itemprop:")){let f=s.replace("itemprop:","");return a(f,i,"itemprop"),o}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>s.startsWith(f));if(l){let f=s.replace(l,"");return a(`${l.replace(":","")}:${f}`,i,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),o}if(s.startsWith("apple:")||s.startsWith("msapplication:")){let f=s.startsWith("apple:")?"apple-":"msapplication-",u=s.replace(/^apple:|^msapplication:/,"");return a(`${f}${u}`,i,"name"),o}return s==="viewport"&&(n=!0),a(s,i),o},['<meta charset="UTF-8">']);return n||r.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),r.push(...Pa(t)),r.join(`
|
|
37
|
+
`)},mU=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),Vf=t=>typeof t=="string"&&t.length>0,cg=t=>{if(!t||typeof t!="object")return null;if(Vf(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:Vf(e.src)?e.src:Vf(e.storageUrl)?e.storageUrl:null},yU=new Set(["icon","favicon","icons","favicons"]),CR=(t,e)=>{if(typeof t=="string")return e(t);if(!k(t))return t;let n={...t};return Vf(n.href)&&(n.href=e(n.href)),Vf(n.src)&&(n.src=e(n.src)),n}});var lg,Bx,PR=D(()=>{"use strict";Kt();lg=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),Bx=(t,e)=>(t=parseFloat(t),k(e)&&(e=Object.values(e)),lg(t,e))});var jx,Ux,Vx,Er,zx,Yf,Hx,Ls,Wx=D(()=>{"use strict";Kt();jx=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Ux=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)}},Vx=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Er=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,"")),zx=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Yf=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Hx=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Ls=t=>{if(I(t))return t;if(v(t))return t.split(" ");if(k(t))return Object.values(t);if(be(t))return[t]}});var LR,DR,wU,MR,IR,SU,fg,xU,ug,Kx,qx,dg,Xf,NR=D(()=>{"use strict";Kt();ig();Wx();wx();LR=/[A-Za-z_$][A-Za-z0-9_$-]*/g,DR=/[A-Za-z_$][A-Za-z0-9_$]*(?: [A-Za-z0-9_$]+){1,5}/g,wU=(t,e)=>{LR.lastIndex=0;let n;for(;n=LR.exec(t);){let o=n[0];if(e.add(o),o.indexOf("-")!==-1)for(let s of o.split("-"))s&&e.add(s)}DR.lastIndex=0;let r;for(;r=DR.exec(t);){let o=r[0].split(" ");for(let s=0;s<o.length-1;s++)for(let i=2;i<=6&&s+i<=o.length;i++)e.add(Er(o.slice(s,s+i).join(" ")))}return e},MR=t=>je(t)?t.library:t,IR=["components","pages","snippets"],SU=["name","icon"],fg=t=>{if(!k(t))return null;let e=t.key;if(!e)return null;let n=t.owner,r=k(n)?n.slug:n;return r?`${r}/${e}`:String(e)},xU=/^\s*(?:async\s+)?(?:function\b|\(|[A-Za-z_$][A-Za-z0-9_$]*\s*=>)/,ug=t=>{let e=new Set,n=r=>{if(Array.isArray(r)){for(let o of r)if(n(o))return!0;return!1}if(!k(r)||e.has(r))return!1;e.add(r);for(let o of SU){let s=r[o];if(typeof s=="string"&&xU.test(s))return!0}for(let o of Object.keys(r))if(n(r[o]))return!0;return!1};for(let r of IR)if(n(t[r]))return!0;for(let r of t.sharedLibraries||[]){let o=MR(r);if(k(o)){for(let s of IR)if(n(o[s]))return!0}}return!1},Kx=t=>{if(!k(t)||!Array.isArray(t.sharedLibraries))return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return t.sharedLibraries.length&&on("planLibraryIconPrune"),null;let e=k(t.settings)?t.settings.libraryIconPrune:void 0;if(e===!1||e!==!0&&ug(t))return null;let n=[];for(let u of t.sharedLibraries){let d=MR(u),p=k(d)&&d.designSystem,g=k(p)&&p.icons;if(!k(g))continue;let h=fg(d);h&&n.push({id:h,icons:g,designSystem:p})}if(!n.length)return null;let r=new Set(n.map(u=>u.designSystem)),o=JSON.stringify(t,function(u,d){if(u!=="__ssr"&&!(u==="icons"&&r.has(this)))return d});if(typeof o!="string")return null;let s=wU(o,new Set),i=new Map,a=[],c=0,l=0,f=0;for(let u of n){let d=[];for(let p of Object.keys(u.icons)){if(s.has(p)){l++;continue}d.push(p);let g=u.icons[p];f+=p.length+(typeof g=="string"?g.length:0)}d.length&&(c+=d.length,i.set(u.icons,new Set(d)),a.push({id:u.id,icons:d}))}return c?{drops:i,prune:{libraries:a},report:{icons:c,kept:l,bytes:f}}:null},qx=t=>function(e,n){let r=t.get(this);if(!(r&&r.has(e)))return n},dg=(t,e={})=>{let n=new Map;for(let a of t&&t.libraries||[])if(!(!a||!a.id||!Array.isArray(a.icons)))for(let c of a.icons)n.has(c)||n.set(c,a.id);if(!n.size)return null;if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__)return on("createPrunedLibraryIconLoader"),null;let r=t&&typeof t.sameOriginBase=="string"&&t.sameOriginBase,o=r?{...e,provider:"same-origin",sameOriginBase:r}:e,s=new Map,i=a=>{let c=s.get(a);return c||(c=Promise.resolve().then(()=>Ra(a,o)).then(l=>{let f=k(l)&&k(l.designSystem)&&l.designSystem.icons;return k(f)?f:null}),s.set(a,c)),c};return a=>{let c=n.get(a);return c?i(c):null}},Xf=(t,e={})=>{if(!k(t))return!1;let n=t.__libraryIconPrune;if(!k(n))return!1;let r=t.designSystem;if(!k(r)||r.iconsLoader)return!1;let o=dg(n,e);return o?(r.iconsLoader=o,!0):!1}});var Gx,$R=D(()=>{"use strict";Gx=()=>{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 Se,La,Zf,Jf,FR=D(()=>{"use strict";Se=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},La=(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(", ")},Zf=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return La(e,{keepOneX:!1})},Jf=(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:La(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=La(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var Da={};F(Da,{BRENDER_REGISTRY_BLOCK:()=>zf,BRENDER_REGISTRY_TREE_BLOCK:()=>Hf,BRENDER_STAMP_META:()=>ag,CDN_PROVIDERS:()=>rn,DESIGN_SYSTEM_BLOCK:()=>Gf,DESIGN_SYSTEM_DEFERRED:()=>qf,DESIGN_SYSTEM_LINK:()=>Kf,DOMQL_EVENTS:()=>tw,DOMQ_PROPERTIES:()=>ro,ELEMENT_METHOD_OVERRIDE_POINTS:()=>na,ENV:()=>kw,HTML_TAGS:()=>la,LIBRARY_PACKAGES:()=>sg,LIBRARY_SCOPES_KEY:()=>As,METHODS:()=>so,METHODS_EXL:()=>Pl,NODE_ENV:()=>An,OPTIONS:()=>af,PACKAGE_MANAGER_TO_CDN:()=>mo,PARSED_DOMQ_PROPERTIES:()=>Rl,POLYGLOT_LANG_STORAGE_KEY:()=>Gh,PROPS_METHODS:()=>oo,PROTOTYPE_KEYS:()=>yr,REVIVED_MARK:()=>Fl,STATE_DATA_MERGE_EXL:()=>xh,STATE_METHODS:()=>os,STATE_PROPERTIES:()=>J_,SVG_TAGS:()=>DO,TYPES:()=>kl,UNIVERSAL_RESERVED_KEYS:()=>qh,__resetBuiltinMethodWarnings:()=>Ax,addCaching:()=>mh,addContext:()=>gh,addExtend:()=>Kw,addExtends:()=>Wn,addItemAfterEveryElement:()=>F_,addProtoToArray:()=>Al,addRef:()=>dh,alternateLinkKey:()=>Os,applyDependentState:()=>uS,applyEvent:()=>kh,applyEventUpdate:()=>Eh,applyExtends:()=>NO,applyProps:()=>Ql,arrayContainsOtherArray:()=>P_,arraysEqual:()=>j_,arrayzeValue:()=>Ls,bareLibraryKey:()=>If,bindLibraryGlobalScopes:()=>Nf,brenderStampMeta:()=>Mx,buildImgSrcset:()=>Zf,buildSourcesAndImg:()=>Jf,cache:()=>mS,call:()=>nx,captureSnapshot:()=>ox,checkForStateTypes:()=>aS,checkIfInherits:()=>Sh,checkIfStringIsInArray:()=>z_,clone:()=>cw,cloneAndMergeArrayExtend:()=>Wl,cloneFunction:()=>Rw,collectExtendsList:()=>fa,concatAddExtends:()=>zw,copyJavaScriptToClipboard:()=>Ux,copyStringToClipboard:()=>jx,createBasedOnType:()=>uh,createElement:()=>iS,createElementExtends:()=>Qp,createExtends:()=>ql,createExtendsFromKeys:()=>ua,createExtendsStack:()=>rh,createIfConditionFlag:()=>Pw,createInheritedState:()=>cS,createKey:()=>Vl,createNestedObject:()=>mw,createNestedObjectByKeyPath:()=>fS,createObjectWithoutPrototype:()=>Kp,createParent:()=>ph,createPath:()=>hh,createProps:()=>tf,createPropsStack:()=>lh,createPrunedLibraryIconLoader:()=>dg,createRoot:()=>sS,createScope:()=>pS,createSnapshotId:()=>Ul,currentPathname:()=>ks,customDecodeURIComponent:()=>Z_,customEncodeURIComponent:()=>X_,cutArrayAfterValue:()=>N_,cutArrayBeforeValue:()=>M_,debounce:()=>Hl,debounceOnContext:()=>Cw,decodeBrenderRegistry:()=>Wf,decodeNewlines:()=>Y_,deepClone:()=>pt,deepContains:()=>hw,deepDefaults:()=>Ta,deepDestringifyFunctions:()=>we,deepExtend:()=>Jp,deepMerge:()=>bt,deepMergeExtends:()=>Kn,deepStringifyFunctions:()=>Ml,defineSetter:()=>tx,designSystemBlock:()=>Ix,designSystemLink:()=>Dx,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>ux,detectInfiniteLoop:()=>ww,document:()=>kt,encodeNewlines:()=>G_,error:()=>Ss,escapeHtml:()=>U,escapeRegExp:()=>H_,evaluateText:()=>go,excludeKeysFromObject:()=>xw,exec:()=>St,exposeBagGlobalScopes:()=>$f,extendCachedRegistry:()=>Hw,extendStackRegistry:()=>Gl,extractArrayExtend:()=>Xl,faviconLinkKey:()=>_o,fetchLibraryData:()=>Ra,fibonacciNumberByIndex:()=>dx,fileEntryUrl:()=>cg,filterArrays:()=>U_,filterArraysFast:()=>V_,finalizeExtends:()=>oh,findClosestNumber:()=>lg,findClosestNumberInFactory:()=>Bx,findInheritedState:()=>wh,findKeyPosition:()=>K_,flattenExtend:()=>da,formatDate:()=>fx,generateHash:()=>Yp,generateHeadArrayTags:()=>Pa,generateKey:()=>jl,generateMetaTags:()=>$x,get:()=>XS,getCDNDirUrl:()=>Qh,getCDNUrl:()=>On,getCapitalCaseKeys:()=>Yw,getCdnProviderFromConfig:()=>va,getChildStateInKey:()=>_h,getChildren:()=>QS,getContext:()=>Ef,getCookie:()=>Nw,getDB:()=>Of,getEmotionStylesheet:()=>Gx,getExtendsInElement:()=>qw,getExtendsStack:()=>Kl,getExtendsStackRegistry:()=>Zp,getFrequencyInArray:()=>L_,getFunctionSource:()=>Fe,getHashedExtend:()=>Yl,getImportMapScript:()=>lx,getInObjectByPath:()=>_w,getLocalStorage:()=>Fw,getNev:()=>Tw,getPageMetadata:()=>Fx,getParentStateInKey:()=>bh,getPath:()=>bf,getQuery:()=>Rf,getRef:()=>JS,getRoot:()=>Sf,getRootContext:()=>kf,getRootData:()=>xf,getRootState:()=>wf,getRootStateInKey:()=>yh,getSpreadChildren:()=>Xw,global:()=>C_,hasFunction:()=>ie,hasHandlerPlugin:()=>ia,hasOwnProperty:()=>uw,hashContent:()=>Rn,inheritChildExtends:()=>eh,inheritChildPropsExtends:()=>th,inheritParentProps:()=>ef,inheritRecursiveChildExtends:()=>nh,initProps:()=>nS,insertAfterImportMap:()=>Nx,installPrunedLibraryIconLoader:()=>Xf,is:()=>_e,isArray:()=>I,isBoolean:()=>Fp,isBuiltinElementMethod:()=>Q_,isContextComponent:()=>Zw,isCyclic:()=>Sw,isDOMNode:()=>ye,isDate:()=>jp,isDefined:()=>Ut,isDevelopment:()=>ao,isEmpty:()=>Hp,isEmptyObject:()=>dw,isEqualDeep:()=>Wp,isFailedRevival:()=>ls,isFunction:()=>L,isHtmlElement:()=>Sl,isLazyFunction:()=>lw,isLocal:()=>Aw,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>Es,isMethod:()=>rx,isMobile:()=>Iw,isNode:()=>mr,isNot:()=>R_,isNotProduction:()=>br,isNull:()=>Bp,isNumber:()=>be,isObject:()=>k,isObjectLike:()=>V,isPhoto:()=>px,isPolyglotRetranslatableKey:()=>sf,isPolyglotWritableKey:()=>ps,isProduction:()=>io,isProtectedElementMethod:()=>ss,isRevived:()=>fs,isStaging:()=>vw,isState:()=>lS,isString:()=>v,isStringFunction:()=>sa,isStringTag:()=>$l,isTest:()=>Gp,isTesting:()=>Ew,isUndefined:()=>Zt,isUniversallyReservedKey:()=>sx,isUnresolvableDependency:()=>yo,isValidDependencyMap:()=>vs,isValidHtmlTag:()=>jw,isWrappedLibrary:()=>je,joinArrays:()=>Qi,jointStacks:()=>Ww,jsonForScript:()=>ys,keys:()=>Wh,libraryIconPruneReplacer:()=>qx,libraryIdentifier:()=>fg,libraryPackageSpecs:()=>Ca,librarySpecsFor:()=>og,loadCssFile:()=>yx,loadJavascript:()=>bx,loadJavascriptFile:()=>hx,loadJavascriptFileEmbedSync:()=>mx,loadJavascriptFileSync:()=>gx,loadRemoteCSS:()=>_x,loadRemoteScript:()=>Aa,log:()=>ex,logGroupIf:()=>Dw,logIf:()=>Lw,lookdown:()=>GS,lookdownAll:()=>YS,lookup:()=>qS,lowercaseFirstLetter:()=>rs,makeObjectWithoutPrototype:()=>pw,map:()=>aw,mapStringsWithContextComponents:()=>Zl,markPolyglotSeeded:()=>Gn,markRevived:()=>oa,markTextNotReady:()=>xa,matchesComponentNaming:()=>qn,memoize:()=>Ow,merge:()=>Lt,mergeSharedLibraries:()=>Ff,mergeSharedLibraryDesignSystems:()=>Bf,mergeSharedLibraryTranslations:()=>jf,mergeStateData:()=>lo,nextElement:()=>Af,normalizeIgnoreList:()=>Mf,normalizeLibraryKey:()=>Ts,objectToString:()=>Nl,objectizeStringProperty:()=>Jl,overwrite:()=>Bl,overwriteDeep:()=>ae,overwriteShallow:()=>ds,overwriteState:()=>dS,parse:()=>Kh,parseDeep:()=>mf,payloadHasComputedIconName:()=>ug,pickStartLang:()=>Zh,pickupElementFromProps:()=>ah,pickupPropsFromElement:()=>ih,planLibraryIconPrune:()=>Kx,polyglotAddressLang:()=>Yh,polyglotFallbackLang:()=>kr,polyglotLangStorageKey:()=>Sa,polyglotLanguages:()=>Be,polyglotSeededKeys:()=>fo,polyglotStartLang:()=>xs,polyglotStartRule:()=>Xh,polyglotStartupScript:()=>ix,previousElement:()=>Tf,promoteActiveRootState:()=>_a,propExists:()=>tS,propertizeElement:()=>ch,propertizeUpdate:()=>Qw,readBrenderStamp:()=>bs,readJsonDataBlock:()=>Xn,remove:()=>H1,removeChars:()=>Vx,removeCookie:()=>$w,removeDuplicateProps:()=>rf,removeDuplicatesInArray:()=>ta,removeFromArray:()=>D_,removeFromObject:()=>gw,removeNestedKeyByPath:()=>yw,removeValueFromArray:()=>vl,removeValueFromArrayAll:()=>$_,reorderArrayByValues:()=>B_,repairLegacyArrowScopePreamble:()=>Ll,replaceLiteralsWithObjectFields:()=>Jt,replaceOctalEscapeSequences:()=>q_,resolveAsset:()=>Se,resolveFileReferences:()=>Ps,resolveHandler:()=>aa,resolveSharedLibraries:()=>Uf,returnValueAsText:()=>fh,runPluginHook:()=>co,scopeElementParam:()=>Up,scopeReceiverExpression:()=>ow,self:()=>O_,setActiveRootState:()=>_f,setCookie:()=>Mw,setHashedExtend:()=>Xp,setInObjectByPath:()=>bw,setLocalStorage:()=>Bw,setNodeStyles:()=>Hh,setProps:()=>ZS,setPropsPrototype:()=>nf,sharedLibrary:()=>vx,sharedLibraryFiles:()=>Cs,splitPackageSpecifier:()=>Pf,spotByPath:()=>yf,srcsetFor:()=>La,stringIncludesAny:()=>Cl,stringToObject:()=>fw,stripVersionRangePrefix:()=>Lf,swapItemsInArray:()=>I_,syncProps:()=>of,themeColorKey:()=>Rs,toCamelCase:()=>Er,toDashCase:()=>Yf,toDescriptionCase:()=>Hx,toPriorityOrder:()=>tn,toTitleCase:()=>zx,toggleFullscreen:()=>cx,triggerEventOn:()=>_r,triggerEventOnUpdate:()=>hS,trimStringFromSymbols:()=>W_,unstackArrayOfObjects:()=>El,update:()=>eS,updateProps:()=>rS,variables:()=>Cf,verbose:()=>wa,warn:()=>vf,warnLibraryAliasCollision:()=>Oa,window:()=>R});var M=D(()=>{"use strict";qp();zl();Kt();zn();ca();ea();xl();RO();PO();Ol();wl();LO();Uw();Gw();oS();sh();VO();YO();is();XO();K1();yS();q1();gS();G1();sw();ax();Y1();X1();Z1();J1();Q1();tR();eR();nR();RR();PR();ig();NR();Wx();$R();FR()});var jn,Qd,tp,Eb=D(()=>{jn=Object.create(null);jn.open="0";jn.close="1";jn.ping="2";jn.pong="3";jn.message="4";jn.upgrade="5";jn.noop="6";Qd=Object.create(null);Object.keys(jn).forEach(t=>{Qd[jn[t]]=t});tp={type:"error",data:"parser error"}});function gB(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function _B(t,e){if(mB&&t.data instanceof Blob)return t.data.arrayBuffer().then(gB).then(e);if(yB&&(t.data instanceof ArrayBuffer||bB(t.data)))return e(gB(t.data));ep(t,!1,n=>{NT||(NT=new TextEncoder),e(NT.encode(n))})}var mB,yB,bB,ep,hB,NT,wB=D(()=>{Eb();mB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",yB=typeof ArrayBuffer=="function",bB=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,ep=({type:t,data:e},n,r)=>mB&&e instanceof Blob?n?r(e):hB(e,r):yB&&(e instanceof ArrayBuffer||bB(e))?n?r(e):hB(new Blob([e]),r):r(jn[t]+(e||"")),hB=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var SB,np,xB,kB=D(()=>{SB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",np=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<SB.length;t++)np[SB.charCodeAt(t)]=t;xB=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=np[t.charCodeAt(r)],i=np[t.charCodeAt(r+1)],a=np[t.charCodeAt(r+2)],c=np[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 oG,rp,sG,EB,vB=D(()=>{Eb();kB();oG=typeof ArrayBuffer=="function",rp=(t,e)=>{if(typeof t!="string")return{type:"message",data:EB(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:sG(t.substring(1),e)}:Qd[n]?t.length>1?{type:Qd[n],data:t.substring(1)}:{type:Qd[n]}:tp},sG=(t,e)=>{if(oG){let n=xB(t);return EB(n,e)}else return{base64:!0,data:t}},EB=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function OB(){return new TransformStream({transform(t,e){_B(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 vb(t){return t.reduce((e,n)=>e+n.length,0)}function Ab(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 RB(t,e){$T||($T=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(vb(n)<1)break;let c=Ab(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(vb(n)<2)break;let c=Ab(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(vb(n)<8)break;let c=Ab(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(tp);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(vb(n)<o)break;let c=Ab(n,o);a.enqueue(rp(s?c:$T.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(tp);break}}}})}var AB,TB,CB,$T,FT,Jc=D(()=>{wB();vB();Eb();AB="",TB=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{ep(s,!1,a=>{r[i]=a,++o===n&&e(r.join(AB))})})},CB=(t,e)=>{let n=t.split(AB),r=[];for(let o=0;o<n.length;o++){let s=rp(n[o],e);if(r.push(s),s.type==="error")break}return r};FT=4});function At(t){if(t)return iG(t)}function iG(t){for(var e in At.prototype)t[e]=At.prototype[e];return t}var Pi=D(()=>{At.prototype.on=At.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};At.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};At.prototype.off=At.prototype.removeListener=At.prototype.removeAllListeners=At.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};At.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};At.prototype.emitReserved=At.prototype.emit;At.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};At.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var Xr,ge,PB,Li=D(()=>{Xr=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ge=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),PB="arraybuffer"});function Tb(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function Zr(t,e){e.useNativeTimers?(t.setTimeoutFn=aG.bind(ge),t.clearTimeoutFn=cG.bind(ge)):(t.setTimeoutFn=ge.setTimeout.bind(ge),t.clearTimeoutFn=ge.clearTimeout.bind(ge))}function LB(t){return typeof t=="string"?fG(t):Math.ceil((t.byteLength||t.size)*lG)}function fG(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 Cb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var aG,cG,lG,Di=D(()=>{Li();aG=ge.setTimeout,cG=ge.clearTimeout;lG=1.33});function DB(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function IB(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 BT=D(()=>{});var Ob,Jr,op=D(()=>{Jc();Pi();Di();BT();Ob=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},Jr=class extends At{constructor(e){super(),this.writable=!1,Zr(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 Ob(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=rp(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=DB(e);return n.length?"?"+n:""}}});var Qc,jT=D(()=>{op();Di();Jc();Qc=class extends Jr{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)};CB(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,TB(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]=Cb()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var MB,NB,$B=D(()=>{MB=!1;try{MB=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}NB=MB});function uG(){}function FB(){for(let t in Zo.requests)Zo.requests.hasOwnProperty(t)&&Zo.requests[t].abort()}function BB(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||NB))return new XMLHttpRequest}catch{}if(!e)try{return new ge[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var UT,Zo,dG,Qr,Rb=D(()=>{jT();Pi();Di();Li();$B();UT=class extends Qc{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}},Zo=class t extends At{constructor(e,n,r){super(),this.createRequest=e,Zr(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=Tb(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=uG,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()}};Zo.requestsCount=0;Zo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",FB);else if(typeof addEventListener=="function"){let t="onpagehide"in ge?"pagehide":"unload";addEventListener(t,FB,!1)}}dG=(function(){let t=BB({xdomain:!1});return t&&t.responseType!==null})(),Qr=class extends UT{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=dG&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Zo(BB,this.uri(),e)}}});var jB,zT,VT,to,Pb=D(()=>{op();Di();Jc();Li();jB=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",zT=class extends Jr{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=jB?{}:Tb(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;ep(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&Xr(()=>{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]=Cb()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},VT=ge.WebSocket||ge.MozWebSocket,to=class extends zT{createSocket(e,n,r){return jB?new VT(e,n,r):n?new VT(e,n):new VT(e)}doWrite(e,n){this.ws.send(n)}}});var Ii,HT=D(()=>{op();Li();Jc();Ii=class extends Jr{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=RB(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=OB();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&&Xr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var WT,KT=D(()=>{Rb();Pb();HT();WT={websocket:to,webtransport:Ii,polling:Qr}});function tl(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=pG.exec(t||""),s={},i=14;for(;i--;)s[hG[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=gG(s,s.path),s.queryKey=mG(s,s.query),s}function gG(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 mG(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var pG,hG,qT=D(()=>{pG=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,hG=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var GT,Lb,Mi,Db,el,YT=D(()=>{KT();Di();BT();qT();Pi();Jc();Li();GT=typeof addEventListener=="function"&&typeof removeEventListener=="function",Lb=[];GT&&addEventListener("offline",()=>{Lb.forEach(t=>t())},!1);Mi=class t extends At{constructor(e,n){if(super(),this.binaryType=PB,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=tl(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=tl(n.host).host);Zr(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=IB(this.opts.query)),GT&&(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"})},Lb.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=FT,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+=LB(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,Xr(()=>{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(),GT&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=Lb.indexOf(this._offlineEventListener);r!==-1&&Lb.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};Mi.protocol=FT;Db=class extends Mi{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;Mi.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;Mi.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}},el=class extends Db{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=>WT[o]).filter(o=>!!o)),super(e,r)}}});var sp,UB=D(()=>{jT();sp=class extends Qc{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 wht,Ib=D(()=>{YT();YT();op();KT();Di();qT();Li();UB();Rb();Rb();Pb();Pb();HT();wht=el.protocol});function VB(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=tl(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 zB=D(()=>{Ib()});function ap(t){return yG&&(t instanceof ArrayBuffer||bG(t))||_G&&t instanceof Blob||wG&&t instanceof File}function ip(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(ip(t[n]))return!0;return!1}if(ap(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return ip(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&ip(t[n]))return!0;return!1}var yG,bG,HB,_G,wG,XT=D(()=>{yG=typeof ArrayBuffer=="function",bG=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,HB=Object.prototype.toString,_G=typeof Blob=="function"||typeof Blob<"u"&&HB.call(Blob)==="[object BlobConstructor]",wG=typeof File=="function"||typeof File<"u"&&HB.call(File)==="[object FileConstructor]"});function WB(t){let e=[],n=t.data,r=t;return r.data=ZT(n,e),r.attachments=e.length,{packet:r,buffers:e}}function ZT(t,e){if(!t)return t;if(ap(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]=ZT(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]=ZT(t[r],e));return n}return t}function KB(t,e){return t.data=JT(t.data,e),delete t.attachments,t}function JT(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]=JT(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=JT(t[n],e));return t}var qB=D(()=>{XT()});var YB=c_((Bht,GB)=>{var nl=1e3,rl=nl*60,ol=rl*60,Ni=ol*24,SG=Ni*7,xG=Ni*365.25;GB.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return kG(t);if(n==="number"&&isFinite(t))return e.long?vG(t):EG(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function kG(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*xG;case"weeks":case"week":case"w":return n*SG;case"days":case"day":case"d":return n*Ni;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ol;case"minutes":case"minute":case"mins":case"min":case"m":return n*rl;case"seconds":case"second":case"secs":case"sec":case"s":return n*nl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function EG(t){var e=Math.abs(t);return e>=Ni?Math.round(t/Ni)+"d":e>=ol?Math.round(t/ol)+"h":e>=rl?Math.round(t/rl)+"m":e>=nl?Math.round(t/nl)+"s":t+"ms"}function vG(t){var e=Math.abs(t);return e>=Ni?Mb(t,e,Ni,"day"):e>=ol?Mb(t,e,ol,"hour"):e>=rl?Mb(t,e,rl,"minute"):e>=nl?Mb(t,e,nl,"second"):t+" ms"}function Mb(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var ZB=c_((jht,XB)=>{function AG(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=YB(),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,x=Number(new Date),E=x-(u||x);y.diff=E,y.prev=u,y.curr=x,u=x,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let T=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(b,w)=>{if(b==="%%")return"%";T++;let S=n.formatters[w];if(typeof S=="function"){let A=m[T];b=S.call(y,A),m.splice(T,1),T--}return b}),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}XB.exports=AG});var JB=c_((De,Nb)=>{De.formatArgs=CG;De.save=OG;De.load=RG;De.useColors=TG;De.storage=PG();De.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`."))}})();De.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 TG(){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 CG(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Nb.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)}De.log=console.debug||console.log||(()=>{});function OG(t){try{t?De.storage.setItem("debug",t):De.storage.removeItem("debug")}catch{}}function RG(){let t;try{t=De.storage.getItem("debug")||De.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function PG(){try{return localStorage}catch{}}Nb.exports=ZB()(De);var{formatters:LG}=Nb.exports;LG.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var oC={};F(oC,{Decoder:()=>eC,Encoder:()=>tC,PacketType:()=>et,isPacketValid:()=>NG,protocol:()=>rC});function DG(t){return typeof t=="string"}function IG(t){return t===void 0||ej(t)}function $b(t){return Object.prototype.toString.call(t)==="[object Object]"}function MG(t,e){switch(t){case et.CONNECT:return e===void 0||$b(e);case et.DISCONNECT:return e===void 0;case et.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&tj.indexOf(e[0])===-1);case et.ACK:return Array.isArray(e);case et.CONNECT_ERROR:return typeof e=="string"||$b(e);default:return!1}}function NG(t){return DG(t.nsp)&&IG(t.id)&&MG(t.type,t.data)}var QB,QT,tj,rC,et,tC,eC,nC,ej,Fb=D(()=>{Pi();qB();XT();QB=JC(JB(),1),QT=(0,QB.default)("socket.io-parser"),tj=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],rC=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"})(et||(et={}));tC=class{constructor(e){this.replacer=e}encode(e){return QT("encoding packet %j",e),(e.type===et.EVENT||e.type===et.ACK)&&ip(e)?this.encodeAsBinary({type:e.type===et.EVENT?et.BINARY_EVENT:et.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===et.BINARY_EVENT||e.type===et.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)),QT("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=WB(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},eC=class t extends At{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===et.BINARY_EVENT;r||n.type===et.BINARY_ACK?(n.type=r?et.EVENT:et.ACK,this.reconstructor=new nC(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ap(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(et[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===et.BINARY_EVENT||r.type===et.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(!ej(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 QT("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 et.CONNECT:return $b(n);case et.DISCONNECT:return n===void 0;case et.CONNECT_ERROR:return typeof n=="string"||$b(n);case et.EVENT:case et.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&tj.indexOf(n[0])===-1);case et.ACK:case et.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},nC=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=KB(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};ej=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function Ye(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var sC=D(()=>{});var $G,$i,iC=D(()=>{Fb();sC();Pi();$G=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),$i=class extends At{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=[Ye(e,"open",this.onopen.bind(this)),Ye(e,"packet",this.onpacket.bind(this)),Ye(e,"error",this.onerror.bind(this)),Ye(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($G.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:et.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:et.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 et.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 et.EVENT:case et.BINARY_EVENT:this.onevent(e);break;case et.ACK:case et.BINARY_ACK:this.onack(e);break;case et.DISCONNECT:this.ondisconnect();break;case et.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:et.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:et.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 Fi(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 nj=D(()=>{Fi.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};Fi.prototype.reset=function(){this.attempts=0};Fi.prototype.setMin=function(t){this.ms=t};Fi.prototype.setMax=function(t){this.max=t};Fi.prototype.setJitter=function(t){this.jitter=t}});var Bi,rj=D(()=>{Ib();iC();Fb();sC();nj();Pi();Bi=class extends At{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,Zr(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 Fi({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||oC;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 el(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Ye(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Ye(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(Ye(e,"ping",this.onping.bind(this)),Ye(e,"data",this.ondata.bind(this)),Ye(e,"error",this.onerror.bind(this)),Ye(e,"close",this.onclose.bind(this)),Ye(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){Xr(()=>{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 $i(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 oj={};F(oj,{Fetch:()=>sp,Manager:()=>Bi,NodeWebSocket:()=>to,NodeXHR:()=>Qr,Socket:()=>$i,WebSocket:()=>to,WebTransport:()=>Ii,XHR:()=>Qr,connect:()=>Bb,default:()=>Bb,io:()=>Bb,protocol:()=>rC});function Bb(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=VB(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=cp[o]&&s in cp[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Bi(r,e):(cp[o]||(cp[o]=new Bi(r,e)),c=cp[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var cp,sj=D(()=>{zB();rj();iC();Fb();Ib();cp={};Object.assign(Bb,{Manager:Bi,Socket:$i,io:Bb,connect:Bb})});var XC={};F(XC,{ANIMATION_PROPS:()=>Dk,ARIA_ROLES:()=>XH,ATTR_TRANSFORMS:()=>Io,BARE_SEQUENCE_TOKEN_RE:()=>Dn,BLOCK_PROPS:()=>Ik,BREAKPOINTS_CONTAINER_NAME:()=>vL,BREAKPOINT_PROPS:()=>Vk,BRENDER_REGISTRY_BLOCK:()=>zf,BRENDER_REGISTRY_TREE_BLOCK:()=>Hf,BRENDER_STAMP_META:()=>ag,CDN_PROVIDERS:()=>rn,COMPOUND_CSS_KEYWORDS:()=>Is,CONFIG:()=>Fs,CONFIG_MERGE_EXL:()=>le,CSS_LONGHAND_SHORTHANDS:()=>dn,CSS_NAMED_COLOR_HEX:()=>Ma,CSS_NATIVE_COLOR_REGEX:()=>vr,CSS_PROPS_REGISTRY:()=>xt,CSS_SHORTHAND_LONGHANDS:()=>vt,CSS_UNITS:()=>Ji,DEFAULT_CONFIG:()=>pi,DEFAULT_CSS_PROPERTIES_LIST:()=>Bt,DELEGATED_EVENTS:()=>cc,DESIGN_SYSTEM_BLOCK:()=>Gf,DESIGN_SYSTEM_DEFERRED:()=>qf,DESIGN_SYSTEM_LINK:()=>Kf,DESIGN_SYSTEM_OPTIONS:()=>bC,DOMQL_EVENTS:()=>tw,DOMQ_PROPERTIES:()=>ro,DOM_EVENTS:()=>hD,ELEMENT_METHOD_OVERRIDE_POINTS:()=>na,ENV:()=>kw,FACTORY:()=>Ue,FLEX_PROPS:()=>Bk,FONT_PROPS:()=>Mk,GRID_PROPS:()=>jk,HOST_REGISTERED_PACKAGES:()=>t4,HTML_ATTRIBUTES:()=>Ur,HTML_TAGS:()=>la,LIBRARY_PACKAGES:()=>sg,LIBRARY_SCOPES_KEY:()=>As,LIFECYCLE_EVENTS:()=>tr,LIVE_KEYS:()=>Q0,METHODS:()=>so,METHODS_EXL:()=>Pl,MISC_PROPS:()=>Nk,MIXINS:()=>um,NODE_ENV:()=>An,OPTIONS:()=>af,PACKAGE_MANAGER_TO_CDN:()=>mo,PARSED_DOMQ_PROPERTIES:()=>Rl,POLYGLOT_LANG_STORAGE_KEY:()=>Gh,POSITION_PROPS:()=>$k,PREPARED_FORMAT:()=>tc,PRERENDER_REGISTRY_FORMATS:()=>EC,PROPS_METHODS:()=>oo,PROTOTYPE_KEYS:()=>yr,REGISTRY:()=>Yt,RESERVED_STORE_METHODS:()=>lO,REVIVED_MARK:()=>Fl,ROUTER_OPTIONS:()=>qb,SIGNAL_ENGINE_KEY:()=>Xi,SIGNAL_INSTANCES_KEY:()=>Gi,STANDARD_SCHEME_QUERIES:()=>$g,STATE_DATA_MERGE_EXL:()=>xh,STATE_PROPERTIES:()=>J_,STORE_METHOD_NAMES:()=>cO,SVG_TAGS:()=>gc,THEME_PROPS:()=>Fk,TILING_POSITION_KEYWORDS:()=>Bu,TILING_SIZE_KEYWORDS:()=>Fu,TIMING_PROPS:()=>td,TYPES:()=>kl,UNIVERSAL_RESERVED_KEYS:()=>qh,VALUE_TRANSFORMERS:()=>Xg,VERSION:()=>tL,__resetBuiltinMethodWarnings:()=>Ax,__resetSignalEngine:()=>A_,__resetSignalInstances:()=>E_,__resetSkinWarnings:()=>Y0,__resetStateShadowWarnings:()=>fO,activateConfig:()=>zR,addCaching:()=>mh,addContext:()=>gh,addDelegatedEvent:()=>Xu,addExtend:()=>Kw,addExtends:()=>Wn,addItemAfterEveryElement:()=>F_,addMethods:()=>_c,addProtoToArray:()=>Al,addRef:()=>dh,adoptPrepared:()=>MA,aliasCaseVariants:()=>za,alternateLinkKey:()=>Os,animation:()=>_0,appendSVGSprite:()=>Iu,appendSvgIconsSprite:()=>Ys,applyAttrTransforms:()=>pE,applyCSS:()=>$A,applyDependentState:()=>uS,applyDocument:()=>Du,applyEvent:()=>kh,applyEventUpdate:()=>Eh,applyExtends:()=>dc,applyHeadings:()=>Vg,applyInitialState:()=>Rm,applyMediaSequenceVars:()=>ko,applyProps:()=>Ql,applyReset:()=>Mu,applySequenceGlobalVars:()=>mu,applySequenceVars:()=>Pr,applySkins:()=>Nu,applySpacingSequence:()=>Su,applyStateMethods:()=>Ce,applyThemeRoot:()=>Vu,applyTimingSequence:()=>Lu,applyTrueProps:()=>qk,applyTypographySequence:()=>Ou,arrayContainsOtherArray:()=>P_,arraysEqual:()=>j_,arrayzeValue:()=>Ls,assertEmitIntegrity:()=>yk,atSchemes:()=>Ao,bareLibraryKey:()=>If,batch:()=>Dp,bindLibraryGlobalScopes:()=>Nf,breakpoints:()=>y0,breakpointsContainerName:()=>km,brenderStampMeta:()=>Mx,buildImgSrcset:()=>Zf,buildSkinVarStyles:()=>Xs,buildSourcesAndImg:()=>Jf,buildThemeVarStyles:()=>Iy,cache:()=>mS,cacheNode:()=>Lo,call:()=>nx,callStateMethod:()=>id,camelToAttr:()=>Vr,camelToLowerAttr:()=>bD,captureSnapshot:()=>ox,changeGlobalTheme:()=>Zg,changeLightness:()=>t0,checkAttributeByTagName:()=>bn,checkEventFunctions:()=>dE,checkForStateTypes:()=>aS,checkIfBoxSize:()=>wu,checkIfInherits:()=>Sh,checkIfStringIsInArray:()=>z_,class:()=>E0,clone:()=>cw,cloneAndMergeArrayExtend:()=>Wl,cloneFunction:()=>Rw,collectExtendsList:()=>fa,color:()=>f0,colorPairSchemes:()=>_u,colorStringToRgbaArray:()=>sn,components:()=>Uc,compositeOverBackdrop:()=>Ns,compoundLayers:()=>$a,concatAddExtends:()=>zw,containerBreakpointQuery:()=>Uk,contrastRatio:()=>Ba,convertSvgToSymbol:()=>bu,copyJavaScriptToClipboard:()=>Ux,copyStringToClipboard:()=>jx,countUntrackedReads:()=>Mp,create:()=>KC,createAsync:()=>JX,createBasedOnType:()=>uh,createComputed:()=>iO,createConfig:()=>lu,createDefine:()=>jj,createDomqlElement:()=>_p,createEffect:()=>K,createElement:()=>iS,createElementExtends:()=>Qp,createExtends:()=>ql,createExtendsFromKeys:()=>ua,createExtendsStack:()=>rh,createHTMLNode:()=>hc,createIfConditionFlag:()=>Pw,createInheritedState:()=>cS,createKey:()=>Vl,createNestedObject:()=>mw,createNestedObjectByKeyPath:()=>fS,createObjectWithoutPrototype:()=>Kp,createParent:()=>ph,createPath:()=>hh,createPristineConfig:()=>Dg,createProps:()=>tf,createPropsStack:()=>lh,createPrunedLibraryIconLoader:()=>dg,createRoot:()=>sS,createScope:()=>pS,createScopeStore:()=>Np,createSignal:()=>vn,createSkeleton:()=>tZ,createSnapshotId:()=>Ul,createState:()=>iE,createStore:()=>pr,createSync:()=>QX,css:()=>We,cssCamelName:()=>qu,cssMediaVars:()=>Pg,cssPropName:()=>Ae,cssShorthandDepth:()=>ec,cssShorthandStatesLonghand:()=>nc,cssShorthandStatesThemeLonghand:()=>zu,cssVars:()=>Rg,currentPathname:()=>ks,customDecodeURIComponent:()=>Z_,customEncodeURIComponent:()=>X_,cutArrayAfterValue:()=>N_,cutArrayBeforeValue:()=>M_,debounce:()=>Hl,debounceOnContext:()=>Cw,decodeBrenderRegistry:()=>Wf,decodeNewlines:()=>Y_,deepClone:()=>pt,deepContains:()=>hw,deepDefaults:()=>Ta,deepDestringifyFunctions:()=>we,deepExtend:()=>Jp,deepMerge:()=>bt,deepMergeExtends:()=>Kn,deepStringifyFunctions:()=>Ml,defaultDefine:()=>Vi,defineResolvedThemeSignal:()=>xo,defineSetter:()=>tx,defineThemeSignal:()=>So,designSystemBlock:()=>Ix,designSystemLink:()=>Dx,destringifyGlobalScope:()=>us,destroy:()=>ji,detectHeightOnInit:()=>ux,detectInfiniteLoop:()=>ww,detectTag:()=>nr,devices:()=>b0,dispose:()=>yn,effectiveGlobalTheme:()=>My,encodeNewlines:()=>G_,error:()=>Ss,escapeHtml:()=>U,escapeRegExp:()=>H_,evaluateText:()=>go,excludeKeysFromObject:()=>xw,exec:()=>St,executeAttr:()=>s9,exetuteClassPerComponent:()=>CH,exposeBagGlobalScopes:()=>$f,extendCachedRegistry:()=>Hw,extendStackRegistry:()=>Gl,extractArrayExtend:()=>Xl,extractConditionalAttrs:()=>hE,faviconLinkKey:()=>_o,fetchLibraryData:()=>Ra,fibonacciNumberByIndex:()=>dx,fileEntryUrl:()=>cg,filterArrays:()=>U_,filterArraysFast:()=>V_,filterAttributesByTagName:()=>o9,finalizeExtends:()=>oh,findClosestNumber:()=>lg,findClosestNumberInFactory:()=>Bx,findHeadingLetter:()=>Mg,findHeadings:()=>gu,findInheritedState:()=>wh,findKeyPosition:()=>K_,flattenExtend:()=>da,font:()=>o0,fontFace:()=>a0,fontFamily:()=>s0,fontFamilyTypes:()=>i0,forcedScheme:()=>Ws,formatDate:()=>fx,generateHash:()=>Yp,generateHeadArrayTags:()=>Pa,generateKey:()=>jl,generateMetaTags:()=>$x,generateSequence:()=>xe,generateSequencePosition:()=>D0,generateSprite:()=>yu,generateSubSequence:()=>pu,get:()=>XS,getActiveConfig:()=>P,getActiveDocument:()=>Qn,getActiveLang:()=>Ki,getCDNDirUrl:()=>Qh,getCDNUrl:()=>On,getCacheSize:()=>xk,getCapitalCaseKeys:()=>Yw,getCdnProviderFromConfig:()=>va,getChildStateInKey:()=>_h,getChildren:()=>QS,getColor:()=>dt,getColorShade:()=>yg,getContext:()=>Ef,getCookie:()=>Nw,getDB:()=>Of,getDefaultOrFirstKey:()=>Tr,getEmitStats:()=>lm,getEmotionStylesheet:()=>Gx,getExtendsInElement:()=>qw,getExtendsStack:()=>Kl,getExtendsStackRegistry:()=>Zp,getFnPrefixAndValue:()=>Rr,getFontFace:()=>n0,getFontFaceEach:()=>$s,getFontFaceEachString:()=>Ag,getFontFaceString:()=>ou,getFontFamily:()=>Cu,getFontFormat:()=>Eg,getFontSizeByKey:()=>Ru,getFrequencyInArray:()=>L_,getFunctionSource:()=>Fe,getHashedExtend:()=>Yl,getImportMapScript:()=>lx,getInObjectByPath:()=>_w,getLanguages:()=>dp,getLocalStateLang:()=>mp,getLocalStorage:()=>Fw,getMediaBorder:()=>Eu,getMediaColor:()=>qt,getMediaTheme:()=>un,getNev:()=>Tw,getObserver:()=>$e,getPageMetadata:()=>Fx,getParentStateInKey:()=>bh,getPath:()=>bf,getPendingLang:()=>up,getQuery:()=>Rf,getRef:()=>JS,getResolvedThemeSignal:()=>VR,getRgbTone:()=>Ln,getRoot:()=>Sf,getRootContext:()=>kf,getRootData:()=>xf,getRootState:()=>wf,getRootStateInKey:()=>yh,getSafeInk:()=>jg,getSafeInkInfo:()=>B0,getSequenceValue:()=>Bs,getSequenceValueBySymbols:()=>hu,getSequenceValuePropertyPair:()=>Jn,getShadow:()=>ku,getShapeByKey:()=>Pu,getSignals:()=>aO,getSizeValue:()=>Ha,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>zt,getSpreadChildren:()=>Xw,getSubratio:()=>du,getSubratioDifference:()=>uu,getSystemGlobalTheme:()=>de,getTheme:()=>z0,getThemeSignal:()=>UR,getTimingByKey:()=>ke,getTimingFunction:()=>ze,global:()=>C_,gradient:()=>u0,grid:()=>k0,hasFunction:()=>ie,hasHandlerPlugin:()=>ia,hasOwnProperty:()=>uw,hashContent:()=>Rn,hexToRgb:()=>Xx,hexToRgbArray:()=>pg,hexToRgba:()=>Jx,hslToRgb:()=>mg,icons:()=>h0,inForcedColors:()=>js,inheritChildExtends:()=>eh,inheritChildPropsExtends:()=>th,inheritParentProps:()=>ef,inheritRecursiveChildExtends:()=>nh,init:()=>dr,initPolyglot:()=>Zb,initProps:()=>nS,injectGlobal:()=>Ot,insertAfterImportMap:()=>Nx,installPrunedLibraryIconLoader:()=>Xf,is:()=>_e,isArray:()=>I,isBoolean:()=>Fp,isBuiltinElementMethod:()=>Q_,isCSSVar:()=>Ft,isContextComponent:()=>Zw,isCyclic:()=>Sw,isDOMNode:()=>ye,isDate:()=>jp,isDefined:()=>Ut,isDevelopment:()=>ao,isDomDocument:()=>hr,isEmpty:()=>Hp,isEmptyObject:()=>dw,isEnumeratedTrueFalseAttr:()=>ii,isEqualDeep:()=>Wp,isFailedRevival:()=>ls,isForcedColorsQuery:()=>Us,isFunction:()=>L,isGoogleFontsUrl:()=>ja,isHostObject:()=>gr,isHtmlElement:()=>Sl,isInertCompoundValue:()=>_g,isIntendedSystemColorWord:()=>Vs,isLazyFunction:()=>lw,isLocal:()=>Aw,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>Es,isMethod:()=>rx,isMobile:()=>Iw,isNativeColorToken:()=>Ms,isNode:()=>mr,isNot:()=>R_,isNotProduction:()=>br,isNull:()=>Bp,isNumber:()=>be,isObject:()=>k,isObjectLike:()=>V,isPhoto:()=>px,isPlainColor:()=>vo,isPolyglotRetranslatableKey:()=>sf,isPolyglotWritableKey:()=>ps,isProduction:()=>io,isProtectedElementMethod:()=>ss,isRawUnitValue:()=>_l,isResolvedColor:()=>an,isRevived:()=>fs,isScalingUnit:()=>ns,isStaging:()=>vw,isState:()=>lS,isStore:()=>Et,isString:()=>v,isStringFunction:()=>sa,isStringTag:()=>$l,isSvgTag:()=>jr,isTest:()=>Gp,isTesting:()=>Ew,isTracking:()=>cE,isUndefined:()=>Zt,isUniversallyReservedKey:()=>sx,isUnresolvableDependency:()=>yo,isValidDependencyMap:()=>vs,isValidHtmlTag:()=>jw,isValidTag:()=>pc,isWasmLoaded:()=>Z2,isWrappedLibrary:()=>je,isWritableFamilyBucket:()=>T_,joinArrays:()=>Qi,joinCompoundLayers:()=>Fa,jointStacks:()=>Ww,jsonForScript:()=>ys,keyframes:()=>ac,keys:()=>Wh,libraryIconPruneReplacer:()=>qx,libraryIdentifier:()=>fg,libraryPackageSpecs:()=>Ca,librarySpecsFor:()=>og,linearChannelToSrgb:()=>Sg,literalPairCompound:()=>Ks,literalSchemeMap:()=>Dr,loadCssFile:()=>yx,loadJavascript:()=>bx,loadJavascriptFile:()=>hx,loadJavascriptFileEmbedSync:()=>mx,loadJavascriptFileSync:()=>gx,loadRemoteCSS:()=>_x,loadRemoteScript:()=>Aa,loadTranslations:()=>Wi,loadWasm:()=>X2,log:()=>ex,logGroupIf:()=>Dw,logIf:()=>Lw,lookdown:()=>GS,lookdownAll:()=>YS,lookup:()=>qS,lowercaseFirstLetter:()=>rs,makeObjectWithoutPrototype:()=>pw,map:()=>aw,mapStringsWithContextComponents:()=>Zl,markPolyglotSeeded:()=>Gn,markRevived:()=>oa,markTextNotReady:()=>xa,matchesComponentNaming:()=>qn,media:()=>c0,memoize:()=>Ow,merge:()=>Lt,mergeSharedLibraries:()=>Ff,mergeSharedLibraryDesignSystems:()=>Bf,mergeSharedLibraryTranslations:()=>jf,mergeStateData:()=>lo,mixTwoColors:()=>Yx,mixTwoRgb:()=>Qx,mixTwoRgba:()=>bg,nextElement:()=>Af,normalizeIgnoreList:()=>Mf,normalizeLibraryKey:()=>Ts,numToLetterMap:()=>ln,objectToString:()=>Nl,objectizeStringProperty:()=>Jl,oklabToLinearSrgb:()=>xg,oklabToOklch:()=>eu,oklchToGamutSafeSrgb:()=>nu,oklchToOklab:()=>kg,opacify:()=>Na,overwrite:()=>Bl,overwriteDeep:()=>ae,overwriteShallow:()=>ds,overwriteState:()=>dS,parkHostObject:()=>no,parse:()=>Kh,parseColorToken:()=>ee,parseDeep:()=>mf,payloadHasComputedIconName:()=>ug,pickStartLang:()=>Zh,pickupElementFromProps:()=>ah,pickupPropsFromElement:()=>ih,planLibraryIconPrune:()=>Kx,polyglotAddressLang:()=>Yh,polyglotFallbackLang:()=>kr,polyglotFunctions:()=>yp,polyglotLangStorageKey:()=>Sa,polyglotLanguages:()=>Be,polyglotPlugin:()=>ll,polyglotSeededKeys:()=>fo,polyglotStartLang:()=>xs,polyglotStartRule:()=>Xh,polyglotStartupScript:()=>ix,popConfig:()=>ht,popStaticCssPass:()=>xm,prepareContext:()=>HC,previousElement:()=>Tf,promoteActiveRootState:()=>_a,propExists:()=>tS,propertizeElement:()=>ch,propertizeUpdate:()=>Qw,pushConfig:()=>mt,pushStaticCssPass:()=>Sm,quietColorProbe:()=>zs,quietSequenceProbe:()=>Or,readBrenderStamp:()=>bs,readJsonDataBlock:()=>Xn,recordRules:()=>Gu,refreshContextProto:()=>wc,registerEvent:()=>fc,registerHostPackages:()=>e4,registerSignalInstance:()=>Yi,reinit:()=>NA,relativeLuminance:()=>Ds,remove:()=>bc,removeChars:()=>Vx,removeCookie:()=>$w,removeDelegatedEvent:()=>Zu,removeDuplicateProps:()=>rf,removeDuplicatesInArray:()=>ta,removeFromArray:()=>D_,removeFromObject:()=>gw,removeNestedKeyByPath:()=>yw,removeValueFromArray:()=>vl,removeValueFromArrayAll:()=>$_,reorderArrayByValues:()=>B_,repairLegacyArrowScopePreamble:()=>Ll,replaceLiteralsWithObjectFields:()=>Jt,replaceOctalEscapeSequences:()=>q_,replayRules:()=>Yu,resetEmitStats:()=>mk,resolveAsset:()=>Se,resolveBorderValue:()=>fe,resolveColorRgb:()=>Hs,resolveColorsInGradient:()=>Co,resolveCompoundWords:()=>Ar,resolveConfigDocument:()=>Zi,resolveDesignSystemClass:()=>DL,resolveFileReferences:()=>Ps,resolveFileSource:()=>uE,resolveFileUrl:()=>cn,resolveGridTracks:()=>EL,resolveHandler:()=>aa,resolvePropValue:()=>Do,resolveShadowNonColorWord:()=>Ka,resolveShadowValue:()=>qs,resolveSharedLibraries:()=>Uf,resolveStyleBlockTokens:()=>Yk,returnSubThemeOrDefault:()=>e0,returnValueAsText:()=>fh,reviveConfig:()=>tm,rgbArrayToHex:()=>hg,rgbToHSL:()=>gg,rgbToHex:()=>Zx,runPluginHook:()=>co,runThroughMedia:()=>Ug,schemeGuardSelector:()=>Bg,schemeMediaQuery:()=>Fg,scopeElementParam:()=>Up,scopeReceiverExpression:()=>ow,scratchDefaultConfig:()=>Va,scratchSystem:()=>Xa,scratchUtils:()=>Eo,self:()=>O_,semanticIcons:()=>g0,sequence:()=>Cr,serializeAttrValue:()=>sr,serializeConfig:()=>Qg,set:()=>Js,setActiveConfig:()=>Lg,setActiveDocument:()=>gk,setActiveRootState:()=>_f,setAdaptiveSchemeVar:()=>To,setClass:()=>P7,setClassname:()=>OH,setColor:()=>Lr,setCookie:()=>Mw,setCssEngineHook:()=>Dy,setCustomFont:()=>ru,setCustomFontMedia:()=>wo,setEach:()=>Uu,setFont:()=>Tu,setFontFamily:()=>Ga,setFontImport:()=>Ua,setGradient:()=>Wa,setHashedExtend:()=>Xp,setInCustomFontMedia:()=>vg,setInObjectByPath:()=>bw,setLang:()=>hp,setLocalStorage:()=>Bw,setMediaTheme:()=>qa,setNodeStyles:()=>Hh,setObserver:()=>yl,setProps:()=>ZS,setPropsPrototype:()=>nf,setSVG:()=>Ya,setScalingVar:()=>fu,setShadow:()=>Oo,setSubScalingVar:()=>Ig,setSvgIcon:()=>Gs,setTheme:()=>vu,setValue:()=>J0,setVariables:()=>I0,setWasmEngine:()=>Ku,settled:()=>Ip,shadow:()=>p0,shape:()=>T0,sharedLibrary:()=>vx,sharedLibraryFiles:()=>Cs,sizes:()=>A0,skins:()=>C0,spacing:()=>l0,splitCompoundWords:()=>Qf,splitPackageSpecifier:()=>Pf,splitSelectorList:()=>Fr,splitSpacedValue:()=>xu,splitTopLevelCommas:()=>Pn,splitTopLevelSpaces:()=>ut,splitTransition:()=>Yg,spotByPath:()=>yf,srcsetFor:()=>La,srgbChannelToLinear:()=>wg,srgbToOklab:()=>tu,stringIncludesAny:()=>Cl,stringToObject:()=>fw,stripVersionRangePrefix:()=>Lf,svg:()=>w0,svgData:()=>Tg,svg_data:()=>S0,swapItemsInArray:()=>I_,syncProps:()=>of,templates:()=>x0,theme:()=>d0,themeColorKey:()=>Rs,timing:()=>m0,toCamel:()=>cu,toCamelCase:()=>Er,toDashCase:()=>Yf,toDescriptionCase:()=>Hx,toLinearChannel:()=>Ia,toPriorityOrder:()=>tn,toTitleCase:()=>zx,toggleFullscreen:()=>cx,transformBackgroundImage:()=>Kg,transformBorder:()=>zg,transformBorderRadius:()=>Ir,transformBoxShadow:()=>$u,transformClassname:()=>ML,transformDuration:()=>ju,transformGridTemplate:()=>Gg,transformShadow:()=>Wg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Hg,transformTilingValue:()=>Zs,transformTransition:()=>Z0,transformersByPrefix:()=>Gk,transfromGap:()=>qg,translate:()=>pp,triggerEventOn:()=>_r,triggerEventOnUpdate:()=>hS,trimStringFromSymbols:()=>W_,typography:()=>su,unit:()=>r0,unstackArrayOfObjects:()=>El,untrack:()=>es,update:()=>yc,updateProps:()=>rS,updateVars:()=>R7,upsertTranslation:()=>gp,useCssInProps:()=>ne,useHostState:()=>aE,usePropsAsCSS:()=>LL,useSelectorsAsCSS:()=>IL,variables:()=>Cf,vars:()=>v0,verbose:()=>wa,viewTransition:()=>O0,warn:()=>vf,warnLibraryAliasCollision:()=>Oa,warnStateKeyShadowsMethod:()=>$p,window:()=>R,wrapHoverRule:()=>$r});module.exports=k4(XC);Mt();var fm={};F(fm,{CSS_LONGHAND_SHORTHANDS:()=>dn,CSS_SHORTHAND_LONGHANDS:()=>vt,assertEmitIntegrity:()=>yk,css:()=>We,cssCamelName:()=>qu,cssPropName:()=>Ae,cssShorthandDepth:()=>ec,cssShorthandStatesLonghand:()=>nc,cssShorthandStatesThemeLonghand:()=>zu,getActiveDocument:()=>Qn,getCacheSize:()=>xk,getEmitStats:()=>lm,injectGlobal:()=>Ot,keyframes:()=>ac,recordRules:()=>Gu,replayRules:()=>Yu,reset:()=>QP,resetEmitStats:()=>mk,setActiveDocument:()=>gk,setWasmEngine:()=>Ku,splitSelectorList:()=>Fr,wrapHoverRule:()=>$r});var tk={};F(tk,{BARE_SEQUENCE_TOKEN_RE:()=>Dn,COMPOUND_CSS_KEYWORDS:()=>Is,CONFIG:()=>Fs,CONFIG_MERGE_EXL:()=>le,CSS_NAMED_COLOR_HEX:()=>Ma,CSS_NATIVE_COLOR_REGEX:()=>vr,CSS_UNITS:()=>Ji,FACTORY:()=>Ue,LIVE_KEYS:()=>Q0,PREPARED_FORMAT:()=>tc,STANDARD_SCHEME_QUERIES:()=>$g,TILING_POSITION_KEYWORDS:()=>Bu,TILING_SIZE_KEYWORDS:()=>Fu,VALUE_TRANSFORMERS:()=>Xg,__resetSkinWarnings:()=>Y0,activateConfig:()=>zR,aliasCaseVariants:()=>za,animation:()=>_0,appendSVGSprite:()=>Iu,appendSvgIconsSprite:()=>Ys,applyDocument:()=>Du,applyHeadings:()=>Vg,applyMediaSequenceVars:()=>ko,applyReset:()=>Mu,applySequenceGlobalVars:()=>mu,applySequenceVars:()=>Pr,applySkins:()=>Nu,applySpacingSequence:()=>Su,applyThemeRoot:()=>Vu,applyTimingSequence:()=>Lu,applyTypographySequence:()=>Ou,atSchemes:()=>Ao,breakpoints:()=>y0,buildSkinVarStyles:()=>Xs,changeGlobalTheme:()=>Zg,changeLightness:()=>t0,checkIfBoxSize:()=>wu,class:()=>E0,color:()=>f0,colorPairSchemes:()=>_u,colorStringToRgbaArray:()=>sn,compositeOverBackdrop:()=>Ns,compoundLayers:()=>$a,contrastRatio:()=>Ba,convertSvgToSymbol:()=>bu,createConfig:()=>lu,createPristineConfig:()=>Dg,cssMediaVars:()=>Pg,cssVars:()=>Rg,defineResolvedThemeSignal:()=>xo,defineThemeSignal:()=>So,devices:()=>b0,document:()=>BR,findHeadingLetter:()=>Mg,findHeadings:()=>gu,font:()=>o0,fontFace:()=>a0,fontFamily:()=>s0,fontFamilyTypes:()=>i0,forcedScheme:()=>Ws,generateSequence:()=>xe,generateSequencePosition:()=>D0,generateSprite:()=>yu,generateSubSequence:()=>pu,getActiveConfig:()=>P,getColor:()=>dt,getColorShade:()=>yg,getDefaultOrFirstKey:()=>Tr,getFnPrefixAndValue:()=>Rr,getFontFace:()=>n0,getFontFaceEach:()=>$s,getFontFaceEachString:()=>Ag,getFontFaceString:()=>ou,getFontFamily:()=>Cu,getFontFormat:()=>Eg,getFontSizeByKey:()=>Ru,getMediaBorder:()=>Eu,getMediaColor:()=>qt,getMediaTheme:()=>un,getResolvedThemeSignal:()=>VR,getRgbTone:()=>Ln,getSafeInk:()=>jg,getSafeInkInfo:()=>B0,getSequenceValue:()=>Bs,getSequenceValueBySymbols:()=>hu,getSequenceValuePropertyPair:()=>Jn,getShadow:()=>ku,getShapeByKey:()=>Pu,getSizeValue:()=>Ha,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>zt,getSubratio:()=>du,getSubratioDifference:()=>uu,getTheme:()=>z0,getThemeSignal:()=>UR,getTimingByKey:()=>ke,getTimingFunction:()=>ze,gradient:()=>u0,grid:()=>k0,hexToRgb:()=>Xx,hexToRgbArray:()=>pg,hexToRgba:()=>Jx,hslToRgb:()=>mg,icons:()=>h0,inForcedColors:()=>js,isCSSVar:()=>Ft,isDomDocument:()=>hr,isForcedColorsQuery:()=>Us,isGoogleFontsUrl:()=>ja,isHostObject:()=>gr,isInertCompoundValue:()=>_g,isIntendedSystemColorWord:()=>Vs,isNativeColorToken:()=>Ms,isPlainColor:()=>vo,isRawUnitValue:()=>_l,isResolvedColor:()=>an,isScalingUnit:()=>ns,isWritableFamilyBucket:()=>T_,joinCompoundLayers:()=>Fa,linearChannelToSrgb:()=>Sg,literalPairCompound:()=>Ks,literalSchemeMap:()=>Dr,media:()=>c0,mixTwoColors:()=>Yx,mixTwoRgb:()=>Qx,mixTwoRgba:()=>bg,numToLetterMap:()=>ln,oklabToLinearSrgb:()=>xg,oklabToOklch:()=>eu,oklchToGamutSafeSrgb:()=>nu,oklchToOklab:()=>kg,opacify:()=>Na,parkHostObject:()=>no,parseColorToken:()=>ee,popConfig:()=>ht,pushConfig:()=>mt,quietColorProbe:()=>zs,quietSequenceProbe:()=>Or,relativeLuminance:()=>Ds,reset:()=>jR,resolveBorderValue:()=>fe,resolveColorRgb:()=>Hs,resolveColorsInGradient:()=>Co,resolveCompoundWords:()=>Ar,resolveConfigDocument:()=>Zi,resolveFileUrl:()=>cn,resolveShadowNonColorWord:()=>Ka,resolveShadowValue:()=>qs,returnSubThemeOrDefault:()=>e0,reviveConfig:()=>tm,rgbArrayToHex:()=>hg,rgbToHSL:()=>gg,rgbToHex:()=>Zx,runThroughMedia:()=>Ug,schemeGuardSelector:()=>Bg,schemeMediaQuery:()=>Fg,scratchDefaultConfig:()=>Va,scratchSystem:()=>Xa,scratchUtils:()=>Eo,semanticIcons:()=>g0,sequence:()=>Cr,serializeConfig:()=>Qg,set:()=>Js,setActiveConfig:()=>Lg,setAdaptiveSchemeVar:()=>To,setColor:()=>Lr,setCustomFont:()=>ru,setCustomFontMedia:()=>wo,setEach:()=>Uu,setFont:()=>Tu,setFontFamily:()=>Ga,setFontImport:()=>Ua,setGradient:()=>Wa,setInCustomFontMedia:()=>vg,setMediaTheme:()=>qa,setSVG:()=>Ya,setScalingVar:()=>fu,setShadow:()=>Oo,setSubScalingVar:()=>Ig,setSvgIcon:()=>Gs,setTheme:()=>vu,setValue:()=>J0,setVariables:()=>I0,shadow:()=>p0,shape:()=>T0,sizes:()=>A0,skins:()=>C0,spacing:()=>l0,splitCompoundWords:()=>Qf,splitSpacedValue:()=>xu,splitTopLevelCommas:()=>Pn,splitTopLevelSpaces:()=>ut,splitTransition:()=>Yg,srgbChannelToLinear:()=>wg,srgbToOklab:()=>tu,svg:()=>w0,svgData:()=>Tg,svg_data:()=>S0,templates:()=>x0,theme:()=>d0,timing:()=>m0,toCamel:()=>cu,toLinearChannel:()=>Ia,transformBackgroundImage:()=>Kg,transformBorder:()=>zg,transformBorderRadius:()=>Ir,transformBoxShadow:()=>$u,transformDuration:()=>ju,transformGridTemplate:()=>Gg,transformShadow:()=>Wg,transformSize:()=>Nt,transformSizeRatio:()=>j,transformTextStroke:()=>Hg,transformTilingValue:()=>Zs,transformTransition:()=>Z0,transfromGap:()=>qg,typography:()=>su,unit:()=>r0,vars:()=>v0,viewTransition:()=>O0});var Eo={};F(Eo,{BARE_SEQUENCE_TOKEN_RE:()=>Dn,COMPOUND_CSS_KEYWORDS:()=>Is,CSS_NAMED_COLOR_HEX:()=>Ma,CSS_NATIVE_COLOR_REGEX:()=>vr,CSS_UNITS:()=>Ji,applyMediaSequenceVars:()=>ko,applySequenceGlobalVars:()=>mu,applySequenceVars:()=>Pr,changeLightness:()=>t0,colorStringToRgbaArray:()=>sn,compositeOverBackdrop:()=>Ns,compoundLayers:()=>$a,contrastRatio:()=>Ba,convertSvgToSymbol:()=>bu,findHeadingLetter:()=>Mg,findHeadings:()=>gu,generateSequence:()=>xe,generateSequencePosition:()=>D0,generateSprite:()=>yu,generateSubSequence:()=>pu,getColorShade:()=>yg,getDefaultOrFirstKey:()=>Tr,getFnPrefixAndValue:()=>Rr,getFontFace:()=>n0,getFontFaceEach:()=>$s,getFontFaceEachString:()=>Ag,getFontFaceString:()=>ou,getFontFormat:()=>Eg,getRgbTone:()=>Ln,getSequenceValue:()=>Bs,getSequenceValueBySymbols:()=>hu,getSequenceValuePropertyPair:()=>Jn,getSizeValue:()=>Ha,getSubratio:()=>du,getSubratioDifference:()=>uu,hexToRgb:()=>Xx,hexToRgbArray:()=>pg,hexToRgba:()=>Jx,hslToRgb:()=>mg,isCSSVar:()=>Ft,isDomDocument:()=>hr,isGoogleFontsUrl:()=>ja,isHostObject:()=>gr,isInertCompoundValue:()=>_g,isNativeColorToken:()=>Ms,isRawUnitValue:()=>_l,isResolvedColor:()=>an,isScalingUnit:()=>ns,isWritableFamilyBucket:()=>T_,joinCompoundLayers:()=>Fa,linearChannelToSrgb:()=>Sg,mixTwoColors:()=>Yx,mixTwoRgb:()=>Qx,mixTwoRgba:()=>bg,numToLetterMap:()=>ln,oklabToLinearSrgb:()=>xg,oklabToOklch:()=>eu,oklchToGamutSafeSrgb:()=>nu,oklchToOklab:()=>kg,opacify:()=>Na,parkHostObject:()=>no,parseColorToken:()=>ee,quietSequenceProbe:()=>Or,relativeLuminance:()=>Ds,resolveCompoundWords:()=>Ar,resolveConfigDocument:()=>Zi,resolveFileUrl:()=>cn,returnSubThemeOrDefault:()=>e0,rgbArrayToHex:()=>hg,rgbToHSL:()=>gg,rgbToHex:()=>Zx,setCustomFont:()=>ru,setCustomFontMedia:()=>wo,setFontImport:()=>Ua,setInCustomFontMedia:()=>vg,setScalingVar:()=>fu,setSubScalingVar:()=>Ig,setVariables:()=>I0,splitCompoundWords:()=>Qf,splitTopLevelCommas:()=>Pn,splitTopLevelSpaces:()=>ut,srgbChannelToLinear:()=>wg,srgbToOklab:()=>tu,toLinearChannel:()=>Ia});var hr=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),gr=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)},T_=t=>t!==null&&typeof t=="object"&&!gr(t),no=(t,e,n)=>{if(!t)return;if(hr(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},Zi=t=>t?hr(t.__domDocument)?t.__domDocument:hr(t.document)?t.document:null:null;var ns=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Ji=["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"],V4=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),z4=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Ji.filter(t=>t!=="auto").map(V4).join("|")})$`),_l=t=>z4.test(String(t).trim());M();var Ma={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"},sn=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=Ma[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&&kt&&R){let n=kt.body.appendChild(kt.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){kt.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return kt.body.removeChild(n),[0,0,0,0];t=R.getComputedStyle(n).color,kt.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]},Yx=(t,e,n=.5)=>(t=sn(t),e=sn(e),bg(t,e,n)),Xx=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},pg=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},Zx=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),hg=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),Jx=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},Qx=(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})`},t0=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},gg=(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]},mg=(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)],yg=(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)},bg=(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})`},Na=(t,e)=>{let n=sn(t);if(!n){br()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},Ft=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Is=new Set(["currentcolor","transparent","thin","medium","thick"]),vr=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,kU=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,Ms=t=>kU.test(t),Qf=t=>t.indexOf("(")===-1?t.split(/\s+/):ut(t),_g=(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&&!EU(t,o,s,e))return!1;o=s+1}}return!0},EU=(t,e,n,r)=>{let o=t.charCodeAt(e);if(o>=48&&o<=57)return!0;let s=t.slice(e,n);return Ms(s)||r!==void 0&&r.has(s)},$a=(t,e)=>e?Pn(t).map(n=>Qf(n.trim())):[Qf(t)],Fa=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},Ar=(t,e,{commas:n,keywords:r},o,s)=>{let i=vr.test(t);if(i&&_g(t,r))return t;let a=$a(t,n),c=!1;try{for(let l of a)for(let f=0;f<l.length;f++){let u=l[f],d=vU(u,e,r,o,s);d!==u&&(l[f]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:Fa(a)},vU=(t,e,n,r,o)=>t?Ft(t)?`var(${t})`:Ms(t)||n!==void 0&&n.has(t)?t:e(t,r,o):"",AU=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,ee=t=>{if(!v(t))return null;if(vr.test(t))return{passthrough:t};if(Ft(t))return{cssVar:t};let e=t.match(AU);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}},an=t=>v(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Pn=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},ut=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},Ia=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Ds=t=>.2126*Ia(t[0])+.7152*Ia(t[1])+.0722*Ia(t[2]),Ba=(t,e)=>{let n=Ds(t)+.05,r=Ds(e)+.05;return n>r?n/r:r/n},wg=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Sg=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,tu=([t,e,n])=>{let[r,o,s]=[t,e,n].map(wg),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]},xg=([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]},eu=([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]},kg=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},nu=(t,e,n,r=24)=>{let o=a=>xg(kg([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=>Sg(Math.max(0,Math.min(1,a))))},Ns=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),Ln=(t,e)=>{v(t)&&t.includes("rgb")&&(t=sn(t).join(", ")),v(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),be(e)&&(e+="");let n=hg(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=yg(n,parseFloat(e));return pg(o).join(", ")}else{let[o,s,i]=t,[a,c]=gg(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return mg(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var e0=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var cn=(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},Tr=(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&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];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},Eg=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},ja=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Ua=t=>`@import url('${t}');`,vg=t=>`@font-face { ${t} }`,ru=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Eg(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
|
|
38
38
|
`);return`
|
|
39
39
|
font-family: '${t}';
|
|
40
40
|
font-style: ${r.fontStyle||"normal"};${n?`
|
|
@@ -42,24 +42,24 @@ FROM ${a}${l}`},l6=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
|
|
|
42
42
|
font-stretch: ${r.fontStretch};`:""}${r.fontDisplay?`
|
|
43
43
|
font-display: ${r.fontDisplay};`:""}${r.unicodeRange?`
|
|
44
44
|
unicode-range: ${r.unicodeRange};`:""}
|
|
45
|
-
src: ${i};`},
|
|
46
|
-
}`,Ms=(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=>rn(d,n)||d):rn(s,n)||s;return Qf(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),qx=t=>Object.keys(t).map(n=>Ms(n,t[n].value)),Sg=(t,e,n)=>{if(e&&e.isVariable){let s=rn(e.url,n)||e.url;return $a(s)?Fa(s):yo(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return Ms(t,e,n).map(wg);let o=Array.isArray(e.url)?e.url.map(s=>rn(s,n)||s):rn(e.url,n)||e.url;return yo(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},tu=(t,e)=>Object.keys(t).map(r=>Sg(r,t[r].value,e));M();M();M();M();Mt();var Ba={};F(Ba,{animation:()=>f0,breakpoints:()=>c0,class:()=>g0,color:()=>e0,devices:()=>l0,document:()=>OR,font:()=>Yx,fontFace:()=>Jx,fontFamily:()=>Xx,fontFamilyTypes:()=>Zx,gradient:()=>n0,grid:()=>h0,icons:()=>s0,media:()=>Qx,reset:()=>RR,semanticIcons:()=>i0,sequence:()=>vr,shadow:()=>o0,shape:()=>b0,sizes:()=>y0,skins:()=>_0,spacing:()=>t0,svg:()=>u0,svgData:()=>xg,svg_data:()=>d0,templates:()=>p0,theme:()=>r0,timing:()=>a0,typography:()=>eu,unit:()=>Gx,vars:()=>m0,viewTransition:()=>w0});var vr={"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 Gx={default:"em"};var pU={browserDefault:16,base:16,type:"font-size",ratio:vr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},eu=pU;var Yx={};var Xx={},Zx={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},Jx={};var Qx={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var hU={base:eu.base,type:"spacing",ratio:vr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},t0=hU;var e0={},n0={};var r0={};var o0={};var s0={},i0={};var gU={default:150,base:150,type:"timing",ratio:vr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},a0=gU;var OR={};var c0={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},l0={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 f0={};var u0={},xg={},d0=xg;var p0={};var mU={},h0=mU;var g0={};var RR={},m0={},y0={},b0={},_0={},w0={};var vg={},Ag={},ae=new Set,kg=Ba,Eg={},ou=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in kg){let e=t.toLowerCase();Eg[e]=kg[t];let n=ou(e);n!==e&&(Eg[n]=kg[t]),e!==t&&(Eg[t]=kg[t])}var Ns={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:vg,cssMediaVars:Ag,CSS_VARS:vg,CSS_MEDIA_VARS:Ag,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Eg},bo=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Ut(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Ut(e)?e:t.globalTheme,r=Sn(Ut(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},PR=t=>t?bo(t):null,_o=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Ut(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Ut(e)?e:t.resolvedTheme,r=Sn(Ut(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},LR=t=>t?_o(t):null;bo(Ns);_o(Ns);var nu=pt(Ns),Fe={active:"0",0:Ns},DR=t=>(Ut(t)&&(Fe.active=t),Fe[t||Fe.active]),ru=[],mt=t=>{t&&t._scratchConfig&&ru.push(t)},ht=()=>{ru.pop()},P=t=>ru.length?ru[ru.length-1]:Fe[t||Fe.active]||Ns,Cg=t=>{if(E(t))return Fe.active="1",Fe[1]=bt(t,pt(nu),ae),ja(Fe[1]),bo(Fe[1]),_o(Fe[1]),t},yU=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],bU=["useVariable","globalTheme","verbose"],_U=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],ja=t=>{for(let e of _U){let n;for(let r of e){let o=t[r];E(o)&&(n=n?bt(n,o,ae):o)}if(n)for(let r of e)E(t[r])&&(t[r]=n)}},IR=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,ja(t),bo(t),_o(t),t),Tg=()=>IR(pt(nu)),su=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:P(),o=pt(!n&&r&&r._scratchConfig?r:nu);for(let i of yU)delete o[i];for(let i of bU)Object.prototype.hasOwnProperty.call(nu,i)?o[i]=nu[i]:delete o[i];let s=IR(bt(e||{},o,ae));return t&&(Fe[t]=s),s};var Pn=/^-?[A-Z][0-9]?$/,S0=0,Ar=t=>{S0++;try{return t()}finally{S0--}},on={"-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"},wU=Object.keys(on).reduce((t,e)=>(t[on[e]]=Number(e),t),{}),SU=(t,e,n,r)=>{if(Pn.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let o=wU[e.slice(0,1)];if(o===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:o>=Math.min(s[0],s[1])&&o<=Math.max(s[0],s[1])}if(r&&Object.keys(r).length)return!1},k0=(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=MR.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},Cr=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)]},x0="\0",xU=(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+=x0+e.length+x0,e.push(o),o=""))}return n+o},kU=(t,e)=>t.indexOf(x0)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),EU=/^(calc|min|max|clamp)\((.*)\)$/,vU=(t,e)=>{let n=EU.exec(t);return n?`${n[1]}(${fu(n[2],e)})`:t.indexOf("(")!==-1?t:$s(t,e)},MR=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),iu=(t,e)=>{let{base:n,type:r,unit:o}=e,s=MR.has(o)?"rem":o,i=(ts(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=on[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=on[t+1],u=Math.abs(t),d=Math.pow(NR,2*u),p=on[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Og=(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}))`},au=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},cu=(t,e)=>au(t,e).map(n=>n/t),lu=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=au(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),x=a+(h+1)/10,k=Og(h+1,f,i,e),C={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:k,index:x};k0(C,e)})},NR=1.618,AU=(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(NR,2*r);return Math.max(o,s)},we=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=on[f],d=AU(f,n,r),p=~~(d/n*100)/100,g=c+u,h=iu(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};k0(m,t),s&&lu(m,t)}return t},E0=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=v(e)?e:on[e],a=v(e)?Object.entries(on).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=iu(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return k0(h,c),s&&lu(h,c),c},Ua=(t,e)=>{if(!t||!v(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)`},$s=(t="A",e)=>{let n=P(),{unit:r}=n;if(v(t)&&Ft(t))return`var(${t})`;if(v(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(v(t)){let _=Ua(n.sizes,t);if(_!==void 0)return _}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(ml(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+"-":""}${Wf(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=_=>a.test(_)?`var(${d}${_}${m})`:_;if(h.includes("+")){let[_,b]=h.split("+"),w=`${y(_)} + ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("*")){let[_,b]=h.split("*"),w=`${y(_)} * ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("-")){let[_,b]=h.split("-"),w=`${y(_)} - ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}!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));let x=o?o[h]:null,k=!!(i||n.useVariable);if((k?SU(o,h,e,n.sizes):!!x)===!1){if(S0>0)return;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}if(k){let _=`var(${d}${h}${m})`;return g?`calc(${_} * -1)`:_}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},fu=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return xU(t,o).split(r).map(i=>{let a=kU(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:vU(c,e)}).join("")},Xn=(t,e,n,r)=>{if(typeof t!="string")return P().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=Cr(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=fu(t,n):t=$s(t,n),{[e]:r?`${r}(${t})`:t}},Rg=(t,e)=>on[t-e],uu=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=Rg(e,o);return n[s]})};M();var v0=(t,e)=>{let n=P(),{cssVars:r}=n;V(t.value)||(r[t.var]=t.value)},du=(t,e,n)=>{let r=P(),{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]=cu(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})`},$R=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Tr=(t,e={})=>{let n=P(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=$R.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||du(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"})`)}},wo=(t,e,n={})=>{let r=P(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=$R.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}`]={}),du(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let x=d[y],k=p[y]+f;h[x.variable+"_default"]=k,h[x.variable]=k}return}for(let h in d){let m=d[h],y=(ts(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};M();var BR=gr(),pu=t=>{let e=P(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},CU=t=>{let e=t&&(t.default||t);if(!v(e))return BR&&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},{}):{}},TU=(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},FR=new Set,hu=(t,e)=>{let n=e&&e.default?e.default:e;if(!v(n))return BR&&!FR.has(t)&&(FR.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=CU(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=TU(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=PU(f),f},OU="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",RU=new RegExp(`<(${OU})\\b([^>]*?)\\s*/>`,"g"),PU=t=>t.replace(RU,"<$1$2></$1>");var qa={};F(qa,{STANDARD_SCHEME_QUERIES:()=>Lg,__resetSkinWarnings:()=>j0,appendSVGSprite:()=>Ru,appendSvgIconsSprite:()=>qs,applyDocument:()=>Ou,applyHeadings:()=>$g,applyReset:()=>Pu,applySkins:()=>Lu,applySpacingSequence:()=>yu,applyTimingSequence:()=>Tu,applyTypographySequence:()=>vu,atSchemes:()=>ko,buildSkinVarStyles:()=>Gs,checkIfBoxSize:()=>mu,colorPairSchemes:()=>gu,forcedScheme:()=>zs,getColor:()=>dt,getFontFamily:()=>Eu,getFontSizeByKey:()=>Au,getMediaBorder:()=>wu,getMediaColor:()=>Kt,getMediaTheme:()=>an,getSafeInk:()=>Mg,getSafeInkInfo:()=>R0,getShadow:()=>_u,getShapeByKey:()=>Cu,getSpacingBasedOnRatio:()=>Be,getSpacingByKey:()=>Vt,getTheme:()=>I0,getTimingByKey:()=>Se,getTimingFunction:()=>je,inForcedColors:()=>Fs,isForcedColorsQuery:()=>Bs,isIntendedSystemColorWord:()=>js,isPlainColor:()=>xo,literalPairCompound:()=>Hs,literalSchemeMap:()=>Rr,quietColorProbe:()=>Us,resolveBorderValue:()=>ce,resolveColorRgb:()=>Vs,resolveColorsInGradient:()=>vo,resolveShadowNonColorWord:()=>za,resolveShadowValue:()=>Ws,runThroughMedia:()=>Ng,schemeGuardSelector:()=>Ig,schemeMediaQuery:()=>Dg,setAdaptiveSchemeVar:()=>Eo,setColor:()=>Or,setFont:()=>ku,setFontFamily:()=>Wa,setGradient:()=>Va,setMediaTheme:()=>Ha,setSVG:()=>Ka,setShadow:()=>Ao,setSvgIcon:()=>Ks,setTheme:()=>Su,splitSpacedValue:()=>bu});M();var Lg={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},Dg=(t,e)=>{let n=e.media&&e.media[t]||Lg[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},Ig=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},sn=new Set,zR=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"]),HR=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],WR=new Set(HR.map(t=>t.toLowerCase())),LU=new Set(HR),A0=0,Fs=t=>{A0++;try{return t()}finally{A0--}},DU=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,Bs=t=>{if(!v(t))return!1;let e=t.match(DU);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},KR=t=>A0>0||LU.has(t),js=t=>v(t)&&WR.has(t.toLowerCase())&&KR(t),IU=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,MU=/gradient\(|url\(|image-set\(|var\(/i,NU=new Set(["transparent","currentColor","currentcolor"]),xo=t=>{if(!v(t))return!1;let e=t.trim();return MU.test(e)?!1:IU.test(e)?!0:zR.has(e)||NU.has(e)},Pg=new Set,jR=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(E(e)&&Object.keys(e).length||E(n)&&Object.keys(n).length)},UR=new Set,C0=0,Us=t=>{C0++;try{return t()}finally{C0--}},$U=(t,e)=>{if(!v(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=te(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},T0=(t,e,n)=>{let r=$U(t,n);if(r){if(!UR.has(t)){UR.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \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=te(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&jR(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!C0&&!Pg.has(t)){Pg.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` does not resolve${a} \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=v(e)?e.toLowerCase():"",i=WR.has(s);if(!zR.has(s)&&!i||i&&KR(e)||!jR(n))return t;if(!Pg.has(s)){Pg.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. 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.`)}},qR=(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})`},dt=(t,e,n)=>{let r=n||P();if(!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=te(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):T0(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 T0(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(v(l)){if(sn.has(o))return l;sn.add(o);try{return dt(l,null,n)}finally{sn.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?qR(u,s,i):u}return i&&!l[i]&&(f=Rn(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})`},VR=t=>{let e=en(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}},FU=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=Rn(n,e.tone);n=v(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}},Vs=(t,e,n)=>{let r=e||P();if(!v(t))return null;let o=te(t);if(o){if(o.passthrough){let d=en(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 VR(t);if(v(c)){let d;if(sn.has(s))d=VR(c);else{sn.add(s);try{d=Vs(c,r,n)}finally{sn.delete(s)}}return d?FU(d,o):null}if(c.rgb===void 0&&E(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=Rn(l,o.tone));let f=v(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}},GR=t=>E(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),ko=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},O0=t=>{if(!E(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!GR(t[n])))return null;let e=ko(t);return e.length?e:null},BU=t=>v(t&&t.var)&&O0(t)!==null,jU=(t,e,n,r,o)=>{let s=O0(e);if(!s)return;if(v(e.var)){let c=`var(${e.var})`;return n||r?qR(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=dt(t,"@light",o),a=dt(t,"@dark",o);if(!(!xo(i)||!xo(a)))return i===a?i:`light-dark(${i}, ${a})`},gu=(t,e)=>{if(!t)return null;let n=e||P(),r=te(t),o=r?r.name:t,s=o&&n.color&&n.color[o];if(I(s))return["light","dark"];if(!E(s)||s.value!==void 0)return null;let i=ko(s);return i.length?i:null},Rr=(t,e,n)=>{let r={},o=Ig(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=Dg(s,e);a&&(r[a]={[o]:i})}}return r},zs=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),Hs=(t,e,n,{commas:r,resolve:o,resolveScheme:s})=>{let i=Ia(t,r),a=null;for(let f of i)for(let u of f){let d=gu(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>Ma(i.map(u=>u.map(d=>{if(!gu(d,n))return d;let p=f(d);return v(p)?p:d}))),l=zs(e,n);return l?o(c(f=>Kt(f,l,n)),l):Rr(a,n,f=>s(f,c))},Kt=(t,e,n)=>{let r=n||P();if(e=zs(e,r),!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let o,s,i;if(I(t))o=t[0];else{let u=te(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=E(l);if(f&&l.value)return dt(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?dt(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=jU(t,l,s,i,n);if(u!==void 0)return u}return dt(t,`@${e}`,n)}else return Rr(ko(l),r,u=>dt(t,"@"+u,n))}else return T0(t,o,r)},Eo=(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}},Or=(t,e,n)=>{let r=P();if(GR(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&BU(t))return t;if(v(t)&&Ft(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:dt(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),x=r.color[y[0]];if(x&&!x.value&&!x.rgb&&(v(x)||I(x)||E(x))&&!sn.has(y[0])){sn.add(y[0]);try{r.color[y[0]]=Or(x,y[0])}finally{sn.delete(y[0])}x=r.color[y[0]]}if(x&&x.value){let k=x.rgb,C=y[1]!==void 0?y[1]:"1",_=y[2];_&&(k=Rn(k,_)),t=`rgba(${k}, ${C})`}else{let k=y[2],C=y[1]!==void 0?y[1]:"1";if(k)try{let _=en(y[0]);_&&_.length>=3?t=`rgba(${Rn(_.slice(0,3).join(", "),k)}, ${C})`: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]}),E(t)){let h={};for(let m in t)m!=="var"&&(h[m]=Or(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&Eo(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(v(i)&&!i.includes("(")&&!i.startsWith("#")){let h=te(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(v(m)||I(m)||E(m))&&!sn.has(h.name)){sn.add(h.name);try{r.color[h.name]=Or(m,h.name)}finally{sn.delete(h.name)}}let y=r.color[h.name],x=O0(y);if(x){if(h.alpha===void 0&&h.tone===void 0)return y;let k={};for(let C of x){let _=y["@"+C],b=_.rgb;h.tone&&(b=Rn(b,h.tone));let w=h.alpha!==void 0?parseFloat(h.alpha):_.alpha!==void 0?_.alpha:1;k["@"+C]=`rgba(${b}, ${w})`}return Or(k,e,n)}if(y&&y.rgb){let k=y.rgb;h.tone&&(k=Rn(k,h.tone));let C=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${k}, ${C})`}}}let a=en(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}},UU=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),vo=(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=")",i=On(o),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||UU.has(u)||u==="transparent"||xr.test(u))return u;let d=dt(u);return nn(d)?(a=!0,d):u}).join(" ")));return a?r+c.join(", ")+s:t},Va=(t,e,n)=>{let r=P();if(E(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(v(t)&&Ft(t)&&(t=dt(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let a={};for(let c in t)c!=="var"&&(a[c]=Va(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return r.useVariable&&Eo(a,"gradient",e,r),a}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=vo(t.value||t);return r.useVariable&&(r.cssVars[s]=i),{var:s,value:i}};M();var YR=new Set,qt=(t,e)=>{if(YR.has(t)||(YR.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${r} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var Mg=(t,e,n={},r)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return qt("safeInk");let o=r||P(),{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=v(e)?e:String(e),p=te(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(rt,gt)=>c?{value:rt,...gt}:rt;if(g){let rt=o.color[`${g}Safe`];if(rt){let gt=`${d}@${u}`,q=rt[gt]!==void 0?rt[gt]:rt[d];if(q!==void 0){let W=q&&q.rgb!==void 0?o.useVariable&&q.var?`var(${q.var})`:q.value:dt(q,null,o);return h(W,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=dt(t,u?`@${u}`:null,o),y=Vs(t,o,u),x=Vs(e,o,u);if(!y||!x)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 k=Is(x.rgb,x.alpha),C=Is(y.rgb,y.alpha,k),_=Na(C,k);if(_>=f-.02)return h(m,{ratio:_,deviation:0,derived:!1,overridden:!1});let[b,w,S]=Xf(y.rgb),[,A,T]=Zf([b,w,S]),O=Ps(k)>.5,B=O?b:1-b,$=rt=>{let gt=O?b-rt:b+rt,q=Math.max(0,Math.min(1,gt));return{rgb:Jf(q,A,T),L:q}},N=rt=>{let{rgb:gt}=$(rt),q=Is(gt.map(W=>Math.round(W)),y.alpha,k);return Na(q,k)},G=0,Y=B,nt=N(Y)>=f;if(nt)for(let rt=0;rt<l;rt++){let gt=(G+Y)/2;N(gt)>=f?Y=gt:G=gt}else G=Y;let{rgb:ot,L:st}=$(Y),J=ot.map(rt=>Math.round(rt)),Z=N(Y),Q=y.alpha<1?`rgba(${J.join(", ")}, ${y.alpha})`:`rgb(${J.join(", ")})`,it=Math.abs(st-b)*100;return h(Q,{rgb:J,ratio:Z,startRatio:_,deviation:it,derived:!0,overridden:!1,reachable:nt})},R0=(t,e,n={},r)=>Mg(t,e,{...n,meta:!0},r);M();M();var VU=t=>{let n=P().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return we(o),o},zU=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;Lt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),we(n),wo(t,e)}},mu=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},yu=()=>{let t=P(),{spacing:e}=t;we(e),Tr(e),zU(e)},HU=t=>{let e=P(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:we(t)},Vt=(t,e="padding",n,r)=>{let o=HU(n);if(v(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=Cr(t);r=i[0],t=i[1]}}let s=r?[t]:v(t)&&t.includes("(")?ut(t):Rs(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)=>Xn(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return Xn(t,e,o,r)}},Be=(t,e,n,r)=>{let o=P(),{spacing:s}=o,i=n||t[e];if(!r&&v(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&v(i)&&i.includes("(")){let a=Cr(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=VU(t);return Vt(i,e,a,r)}return Vt(i,e,s,r)},bu=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=Yi.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 WU={commas:!0},Ws=(t,e,n)=>v(t)?kr(t,KU,WU,e,n):t,KU=(t,e,n)=>{let r=Us(()=>dt(t,e));return nn(r)?r:za(t,n)},za=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||js(t)||Ls.has(t.toLowerCase()))return t;e&&e(t);let n=Ar(()=>Vt(t,"shadow"));return n&&n.shadow?n.shadow:t},Ao=(t,e,n,r)=>{let o=P();if(E(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":Ao(t[0],e,"light"),"@dark":Ao(t[1],e,"dark")};return o.useVariable&&Eo(a,"shadow",e,o),a}if(E(t)){let a={};for(let c in t)a[c]=Ao(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&Eo(a,"shadow",e,o),a}v(t)&&(t=Ws(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},_u=(t,e)=>{let n=P();if(e=zs(e,n),!v(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=E(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(ko(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 qU=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),GU={commas:!1,keywords:qU},ce=(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:kr(r,YU,GU,e,n)},YU=(t,e,n)=>{if(/^\d/.test(t))return t;let r=Us(()=>dt(t,e));if(nn(r))return r;if(js(t)||Ls.has(t.toLowerCase()))return t;n&&n(t);let o=Ar(()=>Vt(t,"border"));return o&&o.border?o.border:t},wu=(t,e,n)=>{let r=n||P();if(r.useVariable||!v(t))return ce(t);let o=Hs(t,e,r,{commas:!1,resolve:s=>ce(s),resolveScheme:s=>ce(t,"@"+s)});return o!==void 0?o:ce(t)};M();var XU=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"]),XR=["color","Color","background","Background","fill","Fill","stroke","Stroke"],tP=t=>{for(let e=0;e<XR.length;e++)if(t.includes(XR[e]))return!0;return!1},ZU={boxShadow:Ws,textShadow:Ws,border:ce,borderTop:ce,borderRight:ce,borderBottom:ce,borderLeft:ce,outline:ce,columnRule:ce},JU=t=>{if(!t)return!1;let e=te(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},ZR=new Set,QU=(t,e,n,r,o,s)=>{if(!tt())return;let i=`${t}::${e}::${n||""}::${r}`;ZR.has(i)||(ZR.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.`))},D0=(t,e,n,r)=>{let o=ZU[e];if(!o)return dt(n,r);let s=null,i=o(n,r,a=>{!s&&JU(a)&&(s=a)});return s&&QU(t,e,r,n,i,s),i},I0=(t,e)=>an(t,e),tV=t=>E(t)&&V(t.value),eV=t=>{for(let e in t){let n=t[e];if(v(n)&&n.startsWith("var(--"))return!0}return!1},Su=(t,e)=>{let n=P();return tV(t)?!n.useVariable&&eV(t)?t:Ha(t.value,e):Ha(t,e)},eP=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&tP(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=dt(i,`@${s}`);a!==void 0&&v(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!XU.has(a)&&n.add(s)}}return n},nP=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),xu=(t,e)=>{for(let n in e){let r=e[n];E(r)?xu(t[n]||(t[n]={}),r):t[n]=r}return t},JR=(t,e,n,r,o)=>xu(t,Rr(r,o,s=>({[e]:n[s]}))),rP=(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(tP(t)&&xo(i)&&xo(a)){o[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");JR(o,t,e,c,r)}else n!==void 0&&(o[t]=n),JR(o,t,e,s,r);return o},nV=new Set(["backdropFilter","WebkitBackdropFilter"]),oP=new WeakSet,sP=(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=eP(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let k in t)V(t[k]?.[l])&&(m[k]=t[k][l]);let y=r&&V(r[l])?r[l]:void 0;if(!Object.keys(m).length&&!y)continue;let x=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=sP(m,`${e}-${x}`,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 x=D0(e,l,y,`@${m}`);x!==void 0&&(p[m]=x,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=x))}let h=rP(l,p,g,n);h&&(xu(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},P0=(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=eP(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]=P0(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]=P0(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 x,k=!1,C={};for(let _ of y){if(f.has(_))continue;let b=t[_]?.[u];if((b===void 0||V(b))&&(b=m),b===void 0)continue;let w=D0(e,u,b,`@${_}`);if(w===void 0)continue;k=!0,C[_]=w,(a&&_===a||!a&&(_==="light"||x===void 0))&&(x=w);let S=`[data-theme="${_}"]`;if(s[S]||(s[S]={}),s[S][h]=w,_==="dark"||_==="light"){let A=`@media (prefers-color-scheme: ${_})`;s[A]||(s[A]={}),s[A][h]=w}}if(x!==void 0&&(o[h]=x),!k)continue;if(nV.has(u)){let _=rP(u,C,x,n);_&&(xu(c,_),c[`.${u}`]=_);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)nP(u)&&V(c[u])&&oP.add(c[u]);return c},Ha=(t,e,n,r)=>{let o=P(),{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=P0(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=sP(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]=Ha(d,e,f,r||p)}else if(!a){let p=D0(e,f,d,r),g=[...new Set([r,n].filter(x=>x).map(x=>x.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(v(t)&&Ft(t)){let u=o.theme[t.slice(2)];return an(u,r)}return i},L0=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(V(t[r]))if(nP(r)&&(e||oP.has(t[r])))n[r]=xu({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=L0(t[r],e):o==="."&&(n[`&${r}`]=L0(t[r],e))}else n[r]=t[r]}return n},iP=(t,e)=>{let n=e.shift();return t[n]?iP(t[n],e):t},QR=(t,e)=>I(e)?iP(t,e):v(e)&&t[e]?t[e]:t;var an=(t,e)=>{let n=P();if(v(t)&&Ft(t)&&(t=an(t.slice(2))),!t||!v(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=QR(s,o):s&&e&&(s=QR(s,e)),L0(s,!n.useVariable)};M();M();var ku=(t,e)=>{let n=P(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=rn(t.url,n.files)||t.url;$a(s)?o=Fa(s):o=yo(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=Ms(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>rn(i,n.files)||i):rn(t.url,n.files)||t.url;o=yo(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},lP=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"]),rV=t=>lP.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),aP=new Set,Eu=(t,e)=>{let n=P(),{fontFamily:r}=n,o=e||r,s=Er(o,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!v(t))return Er(o);if(!rV(t))return gr()&&!aP.has(t)&&(aP.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}'"\`).`)),Er(o)},cP=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),r=n.replace(/\s+/g," ").toLowerCase();return n!==e&&lP.has(r)?'"'+r+'"':r},Wa=(t,e)=>{let n=P(),{fontFamily:r,fontFamilyTypes:o}=n;if(E(t)&&v(t.value)&&v(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.__defaultKey)&&(r.__defaultKey=e),E(s)&&(s=Rs(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(cP(g));for(let p of String(o[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=cP(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,isSharedLibrary:!!t.isSharedLibrary}};M();var Ng=t=>{let e=P(),{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;Lt(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,x=!i.unit&&m.has(h)?"rem":y,k=r[c],C="@media "+(k==="print"?`${k}`:`screen and ${k}`);if(n.templates[C]={fontSize:i.base/n.browserDefault+x},!a){Lt(i,{sequence:{},scales:{},vars:{}}),we(i),wo(t,o);continue}Lt(i,{sequence:{},scales:{},templates:{},vars:{}}),we(i),wo(t,o)}},$g=t=>{let e=P();if(t.h1Matches){let n=t.unit,r=uu(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}}}},vu=()=>{let t=P(),{typography:e}=t;we(e),$g(e),Tr(e),Ng(e)},Au=t=>{let e=P(),{typography:n}=e;return Xn(t,"fontSize",n)};M();var Cu=t=>{if(!v(t))return;let n=P().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};M();var Tu=()=>{let t=P(),{timing:e}=t;we(e),Tr(e)},je=t=>{let e=P(),{timing:n}=e;return n[t]||n[Sr(t)]||t},Se=(t,e="timing")=>{let n=P(),{timing:r}=n;return Xn(t,e,r)};M();var Ou=()=>{let t=P(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return pr(o)?(Qr(t,"document",o),o=t.document={}):o||(o=t.document={}),Lt(o,{theme:n.document,fontFamily:Er(e),fontSize:r.base,lineHeight:r.lineHeight})};M();var $0={document:kt},fP=new WeakMap,uP=new WeakMap,oV=128,dP=1048576,M0=8192,F0=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),gP=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),sV=(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},N0=(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},iV=(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)},Ka=(t,e)=>{let n=P();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?hu(e,t):t},Ru=(t,e=$0)=>{let n=P(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];yP(r,e)},Ks=(t,e)=>{let n=P();return n.useIconSprite&&!n.semanticIcons?.[e]?Ka(t,e):t},qs=(t,e=$0)=>{let n=P(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];yP(r,e)},mP=(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},aV=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},cV=(t,e)=>{let n=aV(t);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},lV=(t,e,n)=>{let r=String(n),o=uP.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=cV(t,r);if(i||(i=mP(t,{isRoot:!1}),i.innerHTML=r),r.length>dP)return i;let a=sV(i,M0);if(a>M0)return i;for(o||(o={entries:new Map,units:0,nodes:0},uP.set(e,o));o.entries.size>=oV||o.units+r.length>dP||o.nodes+a>M0;){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},pP=t=>{let e=new Map;for(let n of t.children){let r=F0(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},fV=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),hP=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?pP(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${fV(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=pP(n)}return s.get(a)};for(let a of e.childNodes){if(gP(a))continue;let c=F0(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=N0(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=N0(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=N0(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])}},yP=(t,e=$0)=>{let n=P(),r=e.document||kt;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),pu(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||mP(r);if(!i||!i.nodeType)return;let a=d=>lV(r,i,d),c=a(s),l=fP.get(i);l||fP.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!gP(d)&&!F0(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}),hP(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{hP(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||iV(r.body,i);for(let d in t)n.__svgCache[d]=!0};M();var Pu=(t={})=>{let e=P(),n=e.typography||{},r=e.document||{},o=E(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?an("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?an("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 bt(Lt(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}},ae)};M();var uV=new Set(["fallback"]),B0=new Set,bP=(t,e)=>{B0.has(t)||(B0.add(t),tt()&&console.warn(e))},j0=()=>{B0.clear()},_P=t=>{for(let e in t)delete t[e];return t},Lu=()=>{let t=P(),e=E(t.cssSkinVars)?_P(t.cssSkinVars):t.cssSkinVars={},n=E(t.cssSkinFallback)?_P(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!E(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>v(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!E(l))continue;let f={};for(let u in l){if(uV.has(u))continue;let d=l[u];if(E(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&bP(`${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,v(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(bP(`${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},wP=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Gs=(t,e,n)=>{let r={};if(!E(t))return r;for(let s in t)r[wP(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[wP(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};M();var Fg=(t,e)=>wu(t,e),Bg=t=>{if(v(t))return xr.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(Ft(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=dt(e);return nn(n)?n:e}).join(" ")},jg=(t,e)=>_u(t,e),Du=(t,e)=>{if(!v(t))return;let n=P();if(!n.useVariable){let r=dV(t,e,n);if(r!==void 0)return r}return U0(t,e)},dV=(t,e,n)=>Hs(t,e==="auto"?null:e,n,{commas:!0,resolve:U0,resolveScheme:(r,o)=>U0(o(s=>dt(s,"@"+r,n)),null)}),U0=(t,e)=>kr(t,hV,pV,e),pV={commas:!0,keywords:new Set(["inset","none"])},hV=(t,e)=>{if(!nn(dt(t)))return za(t);let n=Kt(t,e);return E(n)?Object.values(n).filter(r=>r.includes(": "+e))[0]:n},Ug=(t,e)=>{if(!v(t))return;let n=P();return On(t).map(r=>{let o=r.trim();if(Ft(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=Kt(o,e);if(v(s))return s;if(E(s)){for(let i in s)if(v(s[i]))return s[i]}return o}return o.includes("gradient")?vo(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!te(o)?`url(${o})`:o}).join(", ")},Iu=new Set(["auto","cover","contain"]),Mu=new Set(["center","top","bottom","left","right"]),gV=(t,e,n,r)=>{if(n.has(t))return t;let o=Ar(()=>Be(r,e,t));return o&&o[e]!==void 0?o[e]:t},Ys=(t,e,n,r)=>v(t)?On(t).map(o=>ut(o.trim()).map(s=>gV(s,e,n,r)).join(" ")).join(", "):t,Vg=t=>v(t)&&ut(t).map(e=>Vt(e,"gap").gap).join(" "),zg=t=>{if(!v(t))return t;let e=P();return ut(t).map(n=>Pn.test(n)?$s(n,e.spacing):n).join(" ")},V0=t=>{if(!v(t))return;let e=t.split(" ");return e.length?e.map(n=>Ft(n)?`var(${n})`:n.length<3||n.includes("ms")?Se(n).timing||n:je(n)?je(n):n).join(" "):t},Nu=(t,e,n)=>{if(v(t))return t.split(",").map(r=>Se(r).timing||r).join(",")},Hg=t=>{if(!v(t))return;let e=t.split(",");if(e.length)return e.map(V0).join(",")};function Nt(t,e,n={},r={}){let o=St.call(this,e||n[t]);if(o==null)return;let s;if(v(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=Cr(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=mu(t);!i&&a&&!r.ratio&&(o=bu(o))}return r.ratio?Be(n,t,o,s):Vt(o,t,void 0,s)}var j=(t,e=null,n)=>Nt(t,e,n,{ratio:!0}),mV=(t,e,n)=>v(t)?ut(t).map(r=>Pn.test(r)?Be(e,n,r)[n]:r).join(" "):t,Pr=(t,e,n,r="borderRadius")=>{if(v(t))return{[r]:ut(t).map(o=>{let s=Cu(o);return s!==void 0?mV(s,e,n):Be(e,n,o)[n]}).join(" ")}};M();var Ga="__smblsThemeRootOwner",Ya=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)},SP=(t,e,n)=>{if(!(!t||!e)){Ya(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},yV=(t,e)=>{let n=P(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},le=t=>t,bV=(t,e)=>{if(v(t)||me(t)){let n=P();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},Wg={color:Or,gradient:Va,font:ku,fontFamily:Wa,fontfamily:Wa,theme:Su,icons:Ks,semanticIcons:le,semanticicons:le,svg:Ka,svgData:le,typography:le,shadow:Ao,spacing:le,media:le,grid:le,class:le,timing:le,reset:le,unit:le,animation:le,vars:yV,sizes:bV,shape:le,skins:le,viewTransition:le},_V=(t,e,n,r)=>{Qr(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},z0=(t,e,n)=>{let r=P(),o=ou(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=pr(i)?_V(r,i,s,[o,s,t]):i,c=Wg[o]||Wg[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")},$u=(t,e)=>{let n=P(),r=t.toLowerCase();if(pr(e))return Qr(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t];if(e==null)return n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t];let o=Object.keys(e).sort((s,i)=>{let a=E(e[s])||I(e[s])?1:0,c=E(e[i])||I(e[i])?1:0;return a-c});if(r==="color"){let s=n[r]||(n[r]={});for(let i of o)i in s||(s[i]=e[i])}return o.forEach(s=>{try{return z0(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t]},Kg=(t,e)=>{let n=e||P();n.globalTheme=t;let o=Gi(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[Ga]=n,c)Ya(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",SP(n,f,l)}else Ya(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},Fu=t=>{let n=Gi(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")Ya(t),o.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,o[Ga]=t,t.globalTheme==="dark"||t.globalTheme==="light"?o.style.colorScheme=t.globalTheme:o.style.colorScheme="light dark";else if(o[Ga]&&o[Ga]!==t&&o.hasAttribute("data-theme"))Ya(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[Ga]=t,SP(t,a,i)}else Ya(t),o.setAttribute("data-theme","light"),t.resolvedTheme="light",o.style.colorScheme="light",o[Ga]=t},wV={},Xs=(t,e=wV)=>{let n=e.config||P(),{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:x,...k}=t;e.newConfig&&(n=Cg(e.newConfig)),dr(k.document)&&(n.__domDocument=k.document,delete k.document),dr(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),x!==void 0&&(n.assets=x),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),Fu(n),n.__svgCache||(n.__svgCache={}),ja(k);let C=Object.keys(k).filter(S=>!S.startsWith("__")),_=new Set(C);C.forEach(S=>{let A=S.toLowerCase();A!==S&&_.has(A)&&bt(k[A],k[S],ae)});let b=new Set;if(C.forEach(S=>{let A=S.toLowerCase(),T=A!==S&&_.has(A)?A:S;b.has(T)||(b.add(T),$u(T,k[T]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),k.typography)try{vu()}catch(S){n.verbose&&console.warn("Error applying typography sequence",S)}if(k.spacing)try{yu()}catch(S){n.verbose&&console.warn("Error applying spacing sequence",S)}if(k.timing)try{Tu()}catch(S){n.verbose&&console.warn("Error applying timing sequence",S)}try{Lu()}catch(S){n.verbose&&console.warn("Error applying skins",S)}Ou();let w=Pu();return w&&(n.reset=w),n};var Za=1,H0=["font","files","assets","themeRoot"],SV=new Set(H0),Xa="$smbls",qg=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},xV=t=>t.startsWith("__")||SV.has(t),Gg=t=>{if(!qg(t))return null;let e=new Map,n=!1,r=s=>{if(n)return;if(s===void 0)return{[Xa]:"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:{[Xa]:"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{[Xa]:"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(!qg(s)||Object.prototype.hasOwnProperty.call(s,Xa)){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(!xV(s)&&(o[s]=r(t[s]),n))return null;return o},kV=(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},Yg=(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[Xa];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&&!kV(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=qg(a)&&!o.has(a)&&qg(i)&&typeof i[Xa]!="string"?a:null;c&&o.add(c);let l=r(i,c);l!==a&&(e[s]=l)}return e};var z=(t,e)=>e.split(" ").map(n=>t+"-"+n),G0="top right bottom left",Y0=G0+" block block-start block-end inline inline-start inline-end",xe="start end",Dr="width style color",Xg=t=>z(t,Y0),EV=(()=>{let t=z("border","width style color image");for(let e of Y0.split(" "))t.push("border-"+e,...z("border-"+e,Dr));return t})(),xP=t=>[...z("border-"+t,Dr+" start end"),...z("border-"+t+"-start",Dr),...z("border-"+t+"-end",Dr)],vt={animation:z("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:z("background","image position position-x position-y size repeat origin clip attachment color"),border:EV};for(let t of["width","style","color"])vt["border-"+t]=Y0.split(" ").map(e=>"border-"+e+"-"+t);for(let t of G0.split(" "))vt["border-"+t]=z("border-"+t,Dr);vt["border-block"]=xP("block");vt["border-inline"]=xP("inline");Object.assign(vt,{"border-image":z("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:z("column","width count"),"column-rule":z("column-rule",Dr),container:z("container","name type"),"contain-intrinsic-size":z("contain-intrinsic","width height"),flex:z("flex","grow shrink basis"),"flex-flow":z("flex","direction wrap"),font:[...z("font","style variant weight stretch size"),"line-height",...z("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:z("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":z("grid-template","rows columns areas"),"grid-area":z("grid","row column row-start row-end column-start column-end"),"grid-row":z("grid-row",xe),"grid-column":z("grid-column",xe),inset:[...G0.split(" "),...z("inset","block block-start block-end inline inline-start inline-end")],"inset-block":z("inset-block",xe),"inset-inline":z("inset-inline",xe),"list-style":z("list-style","type position image"),margin:Xg("margin"),"margin-block":z("margin-block",xe),"margin-inline":z("margin-inline",xe),mask:z("mask","image mode repeat position clip origin size composite"),offset:z("offset","position path distance rotate anchor"),outline:z("outline",Dr),overflow:z("overflow","x y"),"overscroll-behavior":z("overscroll-behavior","x y"),padding:Xg("padding"),"padding-block":z("padding-block",xe),"padding-inline":z("padding-inline",xe)});for(let t of["content","items","self"])vt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(vt,{"scroll-margin":Xg("scroll-margin"),"scroll-padding":Xg("scroll-padding"),"text-decoration":z("text-decoration","line style color thickness"),"text-emphasis":z("text-emphasis","style color"),transition:z("transition","property duration timing-function delay behavior")});var vV="block-start block-end inline-start inline-end".split(" ");for(let t of vV)vt["border-"+t]=z("border-"+t,Dr);for(let t of["block","inline"])for(let e of Dr.split(" "))vt["border-"+t+"-"+e]=z("border-"+t,xe.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(vt,{"animation-range":z("animation-range",xe),"background-position":z("background-position","x y"),"font-variant":z("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":z("font-synthesis","weight style small-caps"),marker:z("marker","start mid end"),"position-try":z("position-try","order fallbacks"),"scroll-margin-block":z("scroll-margin-block",xe),"scroll-margin-inline":z("scroll-margin-inline",xe),"scroll-padding-block":z("scroll-padding-block",xe),"scroll-padding-inline":z("scroll-padding-inline",xe),"scroll-timeline":z("scroll-timeline","name axis"),"view-timeline":z("view-timeline","name axis inset"),"text-box":z("text-box","trim edge"),"text-wrap":z("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});vt.font.push("font-language-override");var Lr=t=>"corner-"+t+"-shape";vt["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(Lr);Object.assign(vt,{"corner-top-shape":["top-left","top-right"].map(Lr),"corner-right-shape":["top-right","bottom-right"].map(Lr),"corner-bottom-shape":["bottom-left","bottom-right"].map(Lr),"corner-left-shape":["top-left","bottom-left"].map(Lr),"corner-block-start-shape":["start-start","start-end"].map(Lr),"corner-block-end-shape":["end-start","end-end"].map(Lr),"corner-inline-start-shape":["start-start","end-start"].map(Lr),"corner-inline-end-shape":["start-end","end-end"].map(Lr)});for(let t in vt){let e=vt[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=vt[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var cn={};for(let t in vt)for(let e of vt[t])(cn[e]||(cn[e]=[])).push(t);var K0=new Map,kP=t=>{let e=K0.get(t);if(e!==void 0)return e;K0.set(t,0),e=0;let n=cn[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,kP(n[r])+1);return K0.set(t,e),e};function Ja(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(cn,e)?kP(e):0}var AV=/^(?: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)$/,EP=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,CV=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),q0=t=>ut(String(t).replace(/\s*!important\s*$/,""));function Qa(t,e,n){let r=vt[t];if(!r||r.indexOf(n)===-1)return!1;if(AV.test(t))return!0;if(!EP.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=q0(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>CV.has(s.toLowerCase()))}var TV=new Set(["thin","medium","thick"]),OV=t=>/^[+-]?\.?\d/.test(t)||TV.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),RV=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(La,t),PV=t=>Ds(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||RV(t.toLowerCase()),LV=/-(width|style|color)$/;function Bu(t,e,n){if(Qa(t,e,n))return!0;let r=vt[t];if(!r||r.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(EP.test(t)){if(n.indexOf("border-image")===0)return!1;let o=LV.exec(n);if(!o)return!1;let s=q0(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?o[1]!=="color":o[1]==="width"&&s.some(OV)}if(t==="background"&&n==="background-color"){let o=q0(e);return o.length===1&&PV(o[0])}return!1}var nc=new Map,FP=null,X0=null,DV=null;function Vu(t){t.batchAtomicCss&&(X0=t.batchAtomicCss),t.compoundCssClass&&(DV=t.compoundCssClass)}var IV=new Set,AP=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function ik(t){try{let e=P();e&&(e.__domDocument=t)}catch{}t&&IV.add(t)}function Zn(){try{let t=P();if(t){if(AP(t.__domDocument))return t.__domDocument;if(AP(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var ke={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function om(){return{...ke}}function ak(){for(let t in ke)ke[t]=0;em=!1}var em=!1,Qg=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function MV(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Qg(n,"day")} ago)`}function NV(){try{let t=GV();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 $V(t,e){if(em)return!1;em=!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 ${Qg(ke.variable,"variable rule")} and ${Qg(ke.atomic,"atomic rule")}, while the design system held ${Qg(e,"CSS variable")}.
|
|
45
|
+
src: ${i};`},wo=(t,e,n,r)=>`@font-face {${ru(t,e,n,r)}
|
|
46
|
+
}`,$s=(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=>cn(d,n)||d):cn(s,n)||s;return ru(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),n0=t=>Object.keys(t).map(n=>$s(n,t[n].value)),Ag=(t,e,n)=>{if(e&&e.isVariable){let s=cn(e.url,n)||e.url;return ja(s)?Ua(s):wo(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return $s(t,e,n).map(vg);let o=Array.isArray(e.url)?e.url.map(s=>cn(s,n)||s):cn(e.url,n)||e.url;return wo(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},ou=(t,e)=>Object.keys(t).map(r=>Ag(r,t[r].value,e));M();M();M();M();Mt();var Va={};F(Va,{animation:()=>_0,breakpoints:()=>y0,class:()=>E0,color:()=>f0,devices:()=>b0,document:()=>BR,font:()=>o0,fontFace:()=>a0,fontFamily:()=>s0,fontFamilyTypes:()=>i0,gradient:()=>u0,grid:()=>k0,icons:()=>h0,media:()=>c0,reset:()=>jR,semanticIcons:()=>g0,sequence:()=>Cr,shadow:()=>p0,shape:()=>T0,sizes:()=>A0,skins:()=>C0,spacing:()=>l0,svg:()=>w0,svgData:()=>Tg,svg_data:()=>S0,templates:()=>x0,theme:()=>d0,timing:()=>m0,typography:()=>su,unit:()=>r0,vars:()=>v0,viewTransition:()=>O0});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 r0={default:"em"};var TU={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:{}},su=TU;var o0={};var s0={},i0={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},a0={};var c0={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var CU={base:su.base,type:"spacing",ratio:Cr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},l0=CU;var f0={},u0={};var d0={};var p0={};var h0={},g0={};var OU={default:150,base:150,type:"timing",ratio:Cr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},m0=OU;var BR={};var y0={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},b0={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 _0={};var w0={},Tg={},S0=Tg;var x0={};var RU={},k0=RU;var E0={};var jR={},v0={},A0={},T0={},C0={},O0={};var Rg={},Pg={},le=new Set,Cg=Va,Og={},cu=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in Cg){let e=t.toLowerCase();Og[e]=Cg[t];let n=cu(e);n!==e&&(Og[n]=Cg[t]),e!==t&&(Og[t]=Cg[t])}var Fs={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Rg,cssMediaVars:Pg,CSS_VARS:Rg,CSS_MEDIA_VARS:Pg,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Og},So=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Ut(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Ut(e)?e:t.globalTheme,r=vn(Ut(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},UR=t=>t?So(t):null,xo=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Ut(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Ut(e)?e:t.resolvedTheme,r=vn(Ut(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},VR=t=>t?xo(t):null;So(Fs);xo(Fs);var iu=pt(Fs),Ue={active:"0",0:Fs},zR=t=>(Ut(t)&&(Ue.active=t),Ue[t||Ue.active]),au=[],mt=t=>{t&&t._scratchConfig&&au.push(t)},ht=()=>{au.pop()},P=t=>au.length?au[au.length-1]:Ue[t||Ue.active]||Fs,Lg=t=>{if(k(t))return Ue.active="1",Ue[1]=bt(t,pt(iu),le),za(Ue[1]),So(Ue[1]),xo(Ue[1]),t},PU=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],LU=["useVariable","globalTheme","verbose"],DU=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],za=t=>{for(let e of DU){let n;for(let r of e){let o=t[r];k(o)&&(n=n?bt(n,o,le):o)}if(n)for(let r of e)k(t[r])&&(t[r]=n)}},HR=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,za(t),So(t),xo(t),t),Dg=()=>HR(pt(iu)),lu=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:P(),o=pt(!n&&r&&r._scratchConfig?r:iu);for(let i of PU)delete o[i];for(let i of LU)Object.prototype.hasOwnProperty.call(iu,i)?o[i]=iu[i]:delete o[i];let s=HR(bt(e||{},o,le));return t&&(Ue[t]=s),s};var Dn=/^-?[A-Z][0-9]?$/,R0=0,Or=t=>{R0++;try{return t()}finally{R0--}},ln={"-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"},IU=Object.keys(ln).reduce((t,e)=>(t[ln[e]]=Number(e),t),{}),MU=(t,e,n,r)=>{if(Dn.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let o=IU[e.slice(0,1)];if(o===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:o>=Math.min(s[0],s[1])&&o<=Math.max(s[0],s[1])}if(r&&Object.keys(r).length)return!1},L0=(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=WR.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},Rr=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)]},P0="\0",NU=(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+=P0+e.length+P0,e.push(o),o=""))}return n+o},$U=(t,e)=>t.indexOf(P0)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),FU=/^(calc|min|max|clamp)\((.*)\)$/,BU=(t,e)=>{let n=FU.exec(t);return n?`${n[1]}(${hu(n[2],e)})`:t.indexOf("(")!==-1?t:Bs(t,e)},WR=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),fu=(t,e)=>{let{base:n,type:r,unit:o}=e,s=WR.has(o)?"rem":o,i=(ns(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=ln[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=ln[t+1],u=Math.abs(t),d=Math.pow(KR,2*u),p=ln[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ig=(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}))`},uu=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},du=(t,e)=>uu(t,e).map(n=>n/t),pu=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=uu(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),x=a+(h+1)/10,E=Ig(h+1,f,i,e),T={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:E,index:x};L0(T,e)})},KR=1.618,jU=(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(KR,2*r);return Math.max(o,s)},xe=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=ln[f],d=jU(f,n,r),p=~~(d/n*100)/100,g=c+u,h=fu(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};L0(m,t),s&&pu(m,t)}return t},D0=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=v(e)?e:ln[e],a=v(e)?Object.entries(ln).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=fu(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return L0(h,c),s&&pu(h,c),c},Ha=(t,e)=>{if(!t||!v(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)`},Bs=(t="A",e)=>{let n=P(),{unit:r}=n;if(v(t)&&Ft(t))return`var(${t})`;if(v(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(v(t)){let _=Ha(n.sizes,t);if(_!==void 0)return _}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(_l(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+"-":""}${Yf(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=_=>a.test(_)?`var(${d}${_}${m})`:_;if(h.includes("+")){let[_,b]=h.split("+"),w=`${y(_)} + ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("*")){let[_,b]=h.split("*"),w=`${y(_)} * ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("-")){let[_,b]=h.split("-"),w=`${y(_)} - ${y(b)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}!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));let x=o?o[h]:null,E=!!(i||n.useVariable);if((E?MU(o,h,e,n.sizes):!!x)===!1){if(R0>0)return;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}if(E){let _=`var(${d}${h}${m})`;return g?`calc(${_} * -1)`:_}return s==="ms"||s==="s"?g+x.val+s:g+x.scaling+s},hu=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return NU(t,o).split(r).map(i=>{let a=$U(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:BU(c,e)}).join("")},Jn=(t,e,n,r)=>{if(typeof t!="string")return P().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=Rr(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=hu(t,n):t=Bs(t,n),{[e]:r?`${r}(${t})`:t}},Mg=(t,e)=>ln[t-e],gu=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=Mg(e,o);return n[s]})};M();var I0=(t,e)=>{let n=P(),{cssVars:r}=n;V(t.value)||(r[t.var]=t.value)},mu=(t,e,n)=>{let r=P(),{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]=du(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})`},qR=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pr=(t,e={})=>{let n=P(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=qR.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||mu(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"})`)}},ko=(t,e,n={})=>{let r=P(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=qR.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}`]={}),mu(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let x=d[y],E=p[y]+f;h[x.variable+"_default"]=E,h[x.variable]=E}return}for(let h in d){let m=d[h],y=(ns(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};M();var YR=br(),yu=t=>{let e=P(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},UU=t=>{let e=t&&(t.default||t);if(!v(e))return YR&&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},{}):{}},VU=(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},GR=new Set,bu=(t,e)=>{let n=e&&e.default?e.default:e;if(!v(n))return YR&&!GR.has(t)&&(GR.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=UU(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=VU(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=WU(f),f},zU="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",HU=new RegExp(`<(${zU})\\b([^>]*?)\\s*/>`,"g"),WU=t=>t.replace(HU,"<$1$2></$1>");var Xa={};F(Xa,{STANDARD_SCHEME_QUERIES:()=>$g,__resetSkinWarnings:()=>Y0,appendSVGSprite:()=>Iu,appendSvgIconsSprite:()=>Ys,applyDocument:()=>Du,applyHeadings:()=>Vg,applyReset:()=>Mu,applySkins:()=>Nu,applySpacingSequence:()=>Su,applyTimingSequence:()=>Lu,applyTypographySequence:()=>Ou,atSchemes:()=>Ao,buildSkinVarStyles:()=>Xs,checkIfBoxSize:()=>wu,colorPairSchemes:()=>_u,forcedScheme:()=>Ws,getColor:()=>dt,getFontFamily:()=>Cu,getFontSizeByKey:()=>Ru,getMediaBorder:()=>Eu,getMediaColor:()=>qt,getMediaTheme:()=>un,getSafeInk:()=>jg,getSafeInkInfo:()=>B0,getShadow:()=>ku,getShapeByKey:()=>Pu,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>zt,getTheme:()=>z0,getTimingByKey:()=>ke,getTimingFunction:()=>ze,inForcedColors:()=>js,isForcedColorsQuery:()=>Us,isIntendedSystemColorWord:()=>Vs,isPlainColor:()=>vo,literalPairCompound:()=>Ks,literalSchemeMap:()=>Dr,quietColorProbe:()=>zs,resolveBorderValue:()=>fe,resolveColorRgb:()=>Hs,resolveColorsInGradient:()=>Co,resolveShadowNonColorWord:()=>Ka,resolveShadowValue:()=>qs,runThroughMedia:()=>Ug,schemeGuardSelector:()=>Bg,schemeMediaQuery:()=>Fg,setAdaptiveSchemeVar:()=>To,setColor:()=>Lr,setFont:()=>Tu,setFontFamily:()=>Ga,setGradient:()=>Wa,setMediaTheme:()=>qa,setSVG:()=>Ya,setShadow:()=>Oo,setSvgIcon:()=>Gs,setTheme:()=>vu,splitSpacedValue:()=>xu});M();var $g={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},Fg=(t,e)=>{let n=e.media&&e.media[t]||$g[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},Bg=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},fn=new Set,QR=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"]),tP=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],eP=new Set(tP.map(t=>t.toLowerCase())),KU=new Set(tP),M0=0,js=t=>{M0++;try{return t()}finally{M0--}},qU=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,Us=t=>{if(!v(t))return!1;let e=t.match(qU);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},nP=t=>M0>0||KU.has(t),Vs=t=>v(t)&&eP.has(t.toLowerCase())&&nP(t),GU=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,YU=/gradient\(|url\(|image-set\(|var\(/i,XU=new Set(["transparent","currentColor","currentcolor"]),vo=t=>{if(!v(t))return!1;let e=t.trim();return YU.test(e)?!1:GU.test(e)?!0:QR.has(e)||XU.has(e)},Ng=new Set,XR=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(k(e)&&Object.keys(e).length||k(n)&&Object.keys(n).length)},ZR=new Set,N0=0,zs=t=>{N0++;try{return t()}finally{N0--}},ZU=(t,e)=>{if(!v(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=ee(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},$0=(t,e,n)=>{let r=ZU(t,n);if(r){if(!ZR.has(t)){ZR.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \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=ee(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&XR(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!N0&&!Ng.has(t)){Ng.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` does not resolve${a} \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=v(e)?e.toLowerCase():"",i=eP.has(s);if(!QR.has(s)&&!i||i&&nP(e)||!XR(n))return t;if(!Ng.has(s)){Ng.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. 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.`)}},rP=(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})`},dt=(t,e,n)=>{let r=n||P();if(!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=ee(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):$0(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 $0(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(v(l)){if(fn.has(o))return l;fn.add(o);try{return dt(l,null,n)}finally{fn.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?rP(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})`},JR=t=>{let e=sn(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}},JU=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=Ln(n,e.tone);n=v(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}},Hs=(t,e,n)=>{let r=e||P();if(!v(t))return null;let o=ee(t);if(o){if(o.passthrough){let d=sn(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 JR(t);if(v(c)){let d;if(fn.has(s))d=JR(c);else{fn.add(s);try{d=Hs(c,r,n)}finally{fn.delete(s)}}return d?JU(d,o):null}if(c.rgb===void 0&&k(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=v(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}},oP=t=>k(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),Ao=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},F0=t=>{if(!k(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!oP(t[n])))return null;let e=Ao(t);return e.length?e:null},QU=t=>v(t&&t.var)&&F0(t)!==null,tV=(t,e,n,r,o)=>{let s=F0(e);if(!s)return;if(v(e.var)){let c=`var(${e.var})`;return n||r?rP(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=dt(t,"@light",o),a=dt(t,"@dark",o);if(!(!vo(i)||!vo(a)))return i===a?i:`light-dark(${i}, ${a})`},_u=(t,e)=>{if(!t)return null;let n=e||P(),r=ee(t),o=r?r.name:t,s=o&&n.color&&n.color[o];if(I(s))return["light","dark"];if(!k(s)||s.value!==void 0)return null;let i=Ao(s);return i.length?i:null},Dr=(t,e,n)=>{let r={},o=Bg(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=Fg(s,e);a&&(r[a]={[o]:i})}}return r},Ws=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),Ks=(t,e,n,{commas:r,resolve:o,resolveScheme:s})=>{let i=$a(t,r),a=null;for(let f of i)for(let u of f){let d=_u(u,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=f=>Fa(i.map(u=>u.map(d=>{if(!_u(d,n))return d;let p=f(d);return v(p)?p:d}))),l=Ws(e,n);return l?o(c(f=>qt(f,l,n)),l):Dr(a,n,f=>s(f,c))},qt=(t,e,n)=>{let r=n||P();if(e=Ws(e,r),!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let o,s,i;if(I(t))o=t[0];else{let u=ee(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=k(l);if(f&&l.value)return dt(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?dt(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=tV(t,l,s,i,n);if(u!==void 0)return u}return dt(t,`@${e}`,n)}else return Dr(Ao(l),r,u=>dt(t,"@"+u,n))}else return $0(t,o,r)},To=(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}},Lr=(t,e,n)=>{let r=P();if(oP(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&QU(t))return t;if(v(t)&&Ft(t)){let h=t.slice(2),m=h.trim().indexOf(" ")!==-1;if(t=m?h:dt(h),m||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let y=h.trim().split(/\s+/),x=r.color[y[0]];if(x&&!x.value&&!x.rgb&&(v(x)||I(x)||k(x))&&!fn.has(y[0])){fn.add(y[0]);try{r.color[y[0]]=Lr(x,y[0])}finally{fn.delete(y[0])}x=r.color[y[0]]}if(x&&x.value){let E=x.rgb,T=y[1]!==void 0?y[1]:"1",_=y[2];_&&(E=Ln(E,_)),t=`rgba(${E}, ${T})`}else{let E=y[2],T=y[1]!==void 0?y[1]:"1";if(E)try{let _=sn(y[0]);_&&_.length>=3?t=`rgba(${Ln(_.slice(0,3).join(", "),E)}, ${T})`: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]}),k(t)){let h={};for(let m in t)m!=="var"&&(h[m]=Lr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&To(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(v(i)&&!i.includes("(")&&!i.startsWith("#")){let h=ee(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(v(m)||I(m)||k(m))&&!fn.has(h.name)){fn.add(h.name);try{r.color[h.name]=Lr(m,h.name)}finally{fn.delete(h.name)}}let y=r.color[h.name],x=F0(y);if(x){if(h.alpha===void 0&&h.tone===void 0)return y;let E={};for(let T of x){let _=y["@"+T],b=_.rgb;h.tone&&(b=Ln(b,h.tone));let w=h.alpha!==void 0?parseFloat(h.alpha):_.alpha!==void 0?_.alpha:1;E["@"+T]=`rgba(${b}, ${w})`}return Lr(E,e,n)}if(y&&y.rgb){let E=y.rgb;h.tone&&(E=Ln(E,h.tone));let T=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${E}, ${T})`}}}let a=sn(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}},eV=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Co=(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=")",i=Pn(o),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||eV.has(u)||u==="transparent"||vr.test(u))return u;let d=dt(u);return an(d)?(a=!0,d):u}).join(" ")));return a?r+c.join(", ")+s:t},Wa=(t,e,n)=>{let r=P();if(k(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(v(t)&&Ft(t)&&(t=dt(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),k(t)){let a={};for(let c in t)c!=="var"&&(a[c]=Wa(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return r.useVariable&&To(a,"gradient",e,r),a}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=Co(t.value||t);return r.useVariable&&(r.cssVars[s]=i),{var:s,value:i}};M();var sP=new Set,Gt=(t,e)=>{if(sP.has(t)||(sP.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${r} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var jg=(t,e,n={},r)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return Gt("safeInk");let o=r||P(),{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=v(e)?e:String(e),p=ee(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(rt,gt)=>c?{value:rt,...gt}:rt;if(g){let rt=o.color[`${g}Safe`];if(rt){let gt=`${d}@${u}`,q=rt[gt]!==void 0?rt[gt]:rt[d];if(q!==void 0){let W=q&&q.rgb!==void 0?o.useVariable&&q.var?`var(${q.var})`:q.value:dt(q,null,o);return h(W,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=dt(t,u?`@${u}`:null,o),y=Hs(t,o,u),x=Hs(e,o,u);if(!y||!x)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 E=Ns(x.rgb,x.alpha),T=Ns(y.rgb,y.alpha,E),_=Ba(T,E);if(_>=f-.02)return h(m,{ratio:_,deviation:0,derived:!1,overridden:!1});let[b,w,S]=tu(y.rgb),[,A,C]=eu([b,w,S]),O=Ds(E)>.5,B=O?b:1-b,$=rt=>{let gt=O?b-rt:b+rt,q=Math.max(0,Math.min(1,gt));return{rgb:nu(q,A,C),L:q}},N=rt=>{let{rgb:gt}=$(rt),q=Ns(gt.map(W=>Math.round(W)),y.alpha,E);return Ba(q,E)},G=0,Y=B,nt=N(Y)>=f;if(nt)for(let rt=0;rt<l;rt++){let gt=(G+Y)/2;N(gt)>=f?Y=gt:G=gt}else G=Y;let{rgb:ot,L:st}=$(Y),J=ot.map(rt=>Math.round(rt)),Z=N(Y),Q=y.alpha<1?`rgba(${J.join(", ")}, ${y.alpha})`:`rgb(${J.join(", ")})`,it=Math.abs(st-b)*100;return h(Q,{rgb:J,ratio:Z,startRatio:_,deviation:it,derived:!0,overridden:!1,reachable:nt})},B0=(t,e,n={},r)=>jg(t,e,{...n,meta:!0},r);M();M();var nV=t=>{let n=P().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return xe(o),o},rV=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;Lt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),xe(n),ko(t,e)}},wu=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},Su=()=>{let t=P(),{spacing:e}=t;xe(e),Pr(e),rV(e)},oV=t=>{let e=P(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:xe(t)},zt=(t,e="padding",n,r)=>{let o=oV(n);if(v(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=Rr(t);r=i[0],t=i[1]}}let s=r?[t]:v(t)&&t.includes("(")?ut(t):Ls(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)=>Jn(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return Jn(t,e,o,r)}},Ve=(t,e,n,r)=>{let o=P(),{spacing:s}=o,i=n||t[e];if(!r&&v(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&v(i)&&i.includes("(")){let a=Rr(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=nV(t);return zt(i,e,a,r)}return zt(i,e,s,r)},xu=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=Ji.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 sV={commas:!0},qs=(t,e,n)=>v(t)?Ar(t,iV,sV,e,n):t,iV=(t,e,n)=>{let r=zs(()=>dt(t,e));return an(r)?r:Ka(t,n)},Ka=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||Vs(t)||Is.has(t.toLowerCase()))return t;e&&e(t);let n=Or(()=>zt(t,"shadow"));return n&&n.shadow?n.shadow:t},Oo=(t,e,n,r)=>{let o=P();if(k(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":Oo(t[0],e,"light"),"@dark":Oo(t[1],e,"dark")};return o.useVariable&&To(a,"shadow",e,o),a}if(k(t)){let a={};for(let c in t)a[c]=Oo(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&To(a,"shadow",e,o),a}v(t)&&(t=qs(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},ku=(t,e)=>{let n=P();if(e=Ws(e,n),!v(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(Ft(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=k(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?Dr(Ao(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 aV=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),cV={commas:!1,keywords:aV},fe=(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:Ar(r,lV,cV,e,n)},lV=(t,e,n)=>{if(/^\d/.test(t))return t;let r=zs(()=>dt(t,e));if(an(r))return r;if(Vs(t)||Is.has(t.toLowerCase()))return t;n&&n(t);let o=Or(()=>zt(t,"border"));return o&&o.border?o.border:t},Eu=(t,e,n)=>{let r=n||P();if(r.useVariable||!v(t))return fe(t);let o=Ks(t,e,r,{commas:!1,resolve:s=>fe(s),resolveScheme:s=>fe(t,"@"+s)});return o!==void 0?o:fe(t)};M();var fV=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"]),iP=["color","Color","background","Background","fill","Fill","stroke","Stroke"],fP=t=>{for(let e=0;e<iP.length;e++)if(t.includes(iP[e]))return!0;return!1},uV={boxShadow:qs,textShadow:qs,border:fe,borderTop:fe,borderRight:fe,borderBottom:fe,borderLeft:fe,outline:fe,columnRule:fe},dV=t=>{if(!t)return!1;let e=ee(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},aP=new Set,pV=(t,e,n,r,o,s)=>{if(!tt())return;let i=`${t}::${e}::${n||""}::${r}`;aP.has(i)||(aP.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.`))},V0=(t,e,n,r)=>{let o=uV[e];if(!o)return dt(n,r);let s=null,i=o(n,r,a=>{!s&&dV(a)&&(s=a)});return s&&pV(t,e,r,n,i,s),i},z0=(t,e)=>un(t,e),hV=t=>k(t)&&V(t.value),gV=t=>{for(let e in t){let n=t[e];if(v(n)&&n.startsWith("var(--"))return!0}return!1},vu=(t,e)=>{let n=P();return hV(t)?!n.useVariable&&gV(t)?t:qa(t.value,e):qa(t,e)},uP=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&fP(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=dt(i,`@${s}`);a!==void 0&&v(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!fV.has(a)&&n.add(s)}}return n},dP=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),Au=(t,e)=>{for(let n in e){let r=e[n];k(r)?Au(t[n]||(t[n]={}),r):t[n]=r}return t},cP=(t,e,n,r,o)=>Au(t,Dr(r,o,s=>({[e]:n[s]}))),pP=(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(fP(t)&&vo(i)&&vo(a)){o[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");cP(o,t,e,c,r)}else n!==void 0&&(o[t]=n),cP(o,t,e,s,r);return o},mV=new Set(["backdropFilter","WebkitBackdropFilter"]),hP=new WeakSet,gP=(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=uP(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let m={};for(let E in t)V(t[E]?.[l])&&(m[E]=t[E][l]);let y=r&&V(r[l])?r[l]:void 0;if(!Object.keys(m).length&&!y)continue;let x=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=gP(m,`${e}-${x}`,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 x=V0(e,l,y,`@${m}`);x!==void 0&&(p[m]=x,(s&&m===s||!s&&(m==="light"||g===void 0))&&(g=x))}let h=pP(l,p,g,n);h&&(Au(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},j0=(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=uP(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]=j0(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]=j0(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 x,E=!1,T={};for(let _ of y){if(f.has(_))continue;let b=t[_]?.[u];if((b===void 0||V(b))&&(b=m),b===void 0)continue;let w=V0(e,u,b,`@${_}`);if(w===void 0)continue;E=!0,T[_]=w,(a&&_===a||!a&&(_==="light"||x===void 0))&&(x=w);let S=`[data-theme="${_}"]`;if(s[S]||(s[S]={}),s[S][h]=w,_==="dark"||_==="light"){let A=`@media (prefers-color-scheme: ${_})`;s[A]||(s[A]={}),s[A][h]=w}}if(x!==void 0&&(o[h]=x),!E)continue;if(mV.has(u)){let _=pP(u,T,x,n);_&&(Au(c,_),c[`.${u}`]=_);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)dP(u)&&V(c[u])&&hP.add(c[u]);return c},qa=(t,e,n,r)=>{let o=P(),{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=j0(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=gP(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]=qa(d,e,f,r||p)}else if(!a){let p=V0(e,f,d,r),g=[...new Set([r,n].filter(x=>x).map(x=>x.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(v(t)&&Ft(t)){let u=o.theme[t.slice(2)];return un(u,r)}return i},U0=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(V(t[r]))if(dP(r)&&(e||hP.has(t[r])))n[r]=Au({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=U0(t[r],e):o==="."&&(n[`&${r}`]=U0(t[r],e))}else n[r]=t[r]}return n},mP=(t,e)=>{let n=e.shift();return t[n]?mP(t[n],e):t},lP=(t,e)=>I(e)?mP(t,e):v(e)&&t[e]?t[e]:t;var un=(t,e)=>{let n=P();if(v(t)&&Ft(t)&&(t=un(t.slice(2))),!t||!v(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=lP(s,o):s&&e&&(s=lP(s,e)),U0(s,!n.useVariable)};M();M();var Tu=(t,e)=>{let n=P(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=cn(t.url,n.files)||t.url;ja(s)?o=Ua(s):o=wo(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=$s(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>cn(i,n.files)||i):cn(t.url,n.files)||t.url;o=wo(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},_P=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"]),yV=t=>_P.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),yP=new Set,Cu=(t,e)=>{let n=P(),{fontFamily:r}=n,o=e||r,s=Tr(o,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!v(t))return Tr(o);if(!yV(t))return br()&&!yP.has(t)&&(yP.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}'"\`).`)),Tr(o)},bP=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),r=n.replace(/\s+/g," ").toLowerCase();return n!==e&&_P.has(r)?'"'+r+'"':r},Ga=(t,e)=>{let n=P(),{fontFamily:r,fontFamilyTypes:o}=n;if(k(t)&&v(t.value)&&v(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.__defaultKey)&&(r.__defaultKey=e),k(s)&&(s=Ls(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(bP(g));for(let p of String(o[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=bP(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,isSharedLibrary:!!t.isSharedLibrary}};M();var Ug=t=>{let e=P(),{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;Lt(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,x=!i.unit&&m.has(h)?"rem":y,E=r[c],T="@media "+(E==="print"?`${E}`:`screen and ${E}`);if(n.templates[T]={fontSize:i.base/n.browserDefault+x},!a){Lt(i,{sequence:{},scales:{},vars:{}}),xe(i),ko(t,o);continue}Lt(i,{sequence:{},scales:{},templates:{},vars:{}}),xe(i),ko(t,o)}},Vg=t=>{let e=P();if(t.h1Matches){let n=t.unit,r=gu(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}}}},Ou=()=>{let t=P(),{typography:e}=t;xe(e),Vg(e),Pr(e),Ug(e)},Ru=t=>{let e=P(),{typography:n}=e;return Jn(t,"fontSize",n)};M();var Pu=t=>{if(!v(t))return;let n=P().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};M();var Lu=()=>{let t=P(),{timing:e}=t;xe(e),Pr(e)},ze=t=>{let e=P(),{timing:n}=e;return n[t]||n[Er(t)]||t},ke=(t,e="timing")=>{let n=P(),{timing:r}=n;return Jn(t,e,r)};M();var Du=()=>{let t=P(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return gr(o)?(no(t,"document",o),o=t.document={}):o||(o=t.document={}),Lt(o,{theme:n.document,fontFamily:Tr(e),fontSize:r.base,lineHeight:r.lineHeight})};M();var K0={document:kt},wP=new WeakMap,SP=new WeakMap,bV=128,xP=1048576,H0=8192,q0=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),vP=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),_V=(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},W0=(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},wV=(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)},Ya=(t,e)=>{let n=P();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?bu(e,t):t},Iu=(t,e=K0)=>{let n=P(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];TP(r,e)},Gs=(t,e)=>{let n=P();return n.useIconSprite&&!n.semanticIcons?.[e]?Ya(t,e):t},Ys=(t,e=K0)=>{let n=P(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];TP(r,e)},AP=(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},SV=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},xV=(t,e)=>{let n=SV(t);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},kV=(t,e,n)=>{let r=String(n),o=SP.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=xV(t,r);if(i||(i=AP(t,{isRoot:!1}),i.innerHTML=r),r.length>xP)return i;let a=_V(i,H0);if(a>H0)return i;for(o||(o={entries:new Map,units:0,nodes:0},SP.set(e,o));o.entries.size>=bV||o.units+r.length>xP||o.nodes+a>H0;){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},kP=t=>{let e=new Map;for(let n of t.children){let r=q0(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},EV=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),EP=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?kP(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${EV(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=kP(n)}return s.get(a)};for(let a of e.childNodes){if(vP(a))continue;let c=q0(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=W0(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=W0(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=W0(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])}},TP=(t,e=K0)=>{let n=P(),r=e.document||kt;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),yu(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||AP(r);if(!i||!i.nodeType)return;let a=d=>kV(r,i,d),c=a(s),l=wP.get(i);l||wP.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!vP(d)&&!q0(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}),EP(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{EP(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||wV(r.body,i);for(let d in t)n.__svgCache[d]=!0};M();var Mu=(t={})=>{let e=P(),n=e.typography||{},r=e.document||{},o=k(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?un("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?un("document"):{};if(o.html&&ae(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 bt(Lt(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}},le)};M();var vV=new Set(["fallback"]),G0=new Set,CP=(t,e)=>{G0.has(t)||(G0.add(t),tt()&&console.warn(e))},Y0=()=>{G0.clear()},OP=t=>{for(let e in t)delete t[e];return t},Nu=()=>{let t=P(),e=k(t.cssSkinVars)?OP(t.cssSkinVars):t.cssSkinVars={},n=k(t.cssSkinFallback)?OP(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!k(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>v(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!k(l))continue;let f={};for(let u in l){if(vV.has(u))continue;let d=l[u];if(k(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&CP(`${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,v(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(CP(`${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},RP=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Xs=(t,e,n)=>{let r={};if(!k(t))return r;for(let s in t)r[RP(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[RP(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};M();var zg=(t,e)=>Eu(t,e),Hg=t=>{if(v(t))return vr.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(Ft(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=dt(e);return an(n)?n:e}).join(" ")},Wg=(t,e)=>ku(t,e),$u=(t,e)=>{if(!v(t))return;let n=P();if(!n.useVariable){let r=AV(t,e,n);if(r!==void 0)return r}return X0(t,e)},AV=(t,e,n)=>Ks(t,e==="auto"?null:e,n,{commas:!0,resolve:X0,resolveScheme:(r,o)=>X0(o(s=>dt(s,"@"+r,n)),null)}),X0=(t,e)=>Ar(t,CV,TV,e),TV={commas:!0,keywords:new Set(["inset","none"])},CV=(t,e)=>{if(!an(dt(t)))return Ka(t);let n=qt(t,e);return k(n)?Object.values(n).filter(r=>r.includes(": "+e))[0]:n},Kg=(t,e)=>{if(!v(t))return;let n=P();return Pn(t).map(r=>{let o=r.trim();if(Ft(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=qt(o,e);if(v(s))return s;if(k(s)){for(let i in s)if(v(s[i]))return s[i]}return o}return o.includes("gradient")?Co(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!ee(o)?`url(${o})`:o}).join(", ")},Fu=new Set(["auto","cover","contain"]),Bu=new Set(["center","top","bottom","left","right"]),OV=(t,e,n,r)=>{if(n.has(t))return t;let o=Or(()=>Ve(r,e,t));return o&&o[e]!==void 0?o[e]:t},Zs=(t,e,n,r)=>v(t)?Pn(t).map(o=>ut(o.trim()).map(s=>OV(s,e,n,r)).join(" ")).join(", "):t,qg=t=>v(t)&&ut(t).map(e=>zt(e,"gap").gap).join(" "),Gg=t=>{if(!v(t))return t;let e=P();return ut(t).map(n=>Dn.test(n)?Bs(n,e.spacing):n).join(" ")},Z0=t=>{if(!v(t))return;let e=t.split(" ");return e.length?e.map(n=>Ft(n)?`var(${n})`:n.length<3||n.includes("ms")?ke(n).timing||n:ze(n)?ze(n):n).join(" "):t},ju=(t,e,n)=>{if(v(t))return t.split(",").map(r=>ke(r).timing||r).join(",")},Yg=t=>{if(!v(t))return;let e=t.split(",");if(e.length)return e.map(Z0).join(",")};function Nt(t,e,n={},r={}){let o=St.call(this,e||n[t]);if(o==null)return;let s;if(v(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=Rr(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=wu(t);!i&&a&&!r.ratio&&(o=xu(o))}return r.ratio?Ve(n,t,o,s):zt(o,t,void 0,s)}var j=(t,e=null,n)=>Nt(t,e,n,{ratio:!0}),RV=(t,e,n)=>v(t)?ut(t).map(r=>Dn.test(r)?Ve(e,n,r)[n]:r).join(" "):t,Ir=(t,e,n,r="borderRadius")=>{if(v(t))return{[r]:ut(t).map(o=>{let s=Pu(o);return s!==void 0?RV(s,e,n):Ve(e,n,o)[n]}).join(" ")}};M();var Za="__smblsThemeRootOwner",Ja=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)},PP=(t,e,n)=>{if(!(!t||!e)){Ja(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},PV=(t,e)=>{let n=P(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},ue=t=>t,LV=(t,e)=>{if(v(t)||be(t)){let n=P();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},Xg={color:Lr,gradient:Wa,font:Tu,fontFamily:Ga,fontfamily:Ga,theme:vu,icons:Gs,semanticIcons:ue,semanticicons:ue,svg:Ya,svgData:ue,typography:ue,shadow:Oo,spacing:ue,media:ue,grid:ue,class:ue,timing:ue,reset:ue,unit:ue,animation:ue,vars:PV,sizes:LV,shape:ue,skins:ue,viewTransition:ue},DV=(t,e,n,r)=>{no(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},J0=(t,e,n)=>{let r=P(),o=cu(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=gr(i)?DV(r,i,s,[o,s,t]):i,c=Xg[o]||Xg[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")},Uu=(t,e)=>{let n=P(),r=t.toLowerCase();if(gr(e))return no(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t];if(e==null)return n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t];let o=Object.keys(e).sort((s,i)=>{let a=k(e[s])||I(e[s])?1:0,c=k(e[i])||I(e[i])?1:0;return a-c});if(r==="color"){let s=n[r]||(n[r]={});for(let i of o)i in s||(s[i]=e[i])}return o.forEach(s=>{try{return J0(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t]},Zg=(t,e)=>{let n=e||P();n.globalTheme=t;let o=Zi(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[Za]=n,c)Ja(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",PP(n,f,l)}else Ja(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},Vu=t=>{let n=Zi(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")Ja(t),o.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,o[Za]=t,t.globalTheme==="dark"||t.globalTheme==="light"?o.style.colorScheme=t.globalTheme:o.style.colorScheme="light dark";else if(o[Za]&&o[Za]!==t&&o.hasAttribute("data-theme"))Ja(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[Za]=t,PP(t,a,i)}else Ja(t),o.setAttribute("data-theme","light"),t.resolvedTheme="light",o.style.colorScheme="light",o[Za]=t},IV={},Js=(t,e=IV)=>{let n=e.config||P(),{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:x,...E}=t;e.newConfig&&(n=Lg(e.newConfig)),hr(E.document)&&(n.__domDocument=E.document,delete E.document),hr(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),x!==void 0&&(n.assets=x),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),Vu(n),n.__svgCache||(n.__svgCache={}),za(E);let T=Object.keys(E).filter(S=>!S.startsWith("__")),_=new Set(T);T.forEach(S=>{let A=S.toLowerCase();A!==S&&_.has(A)&&bt(E[A],E[S],le)});let b=new Set;if(T.forEach(S=>{let A=S.toLowerCase(),C=A!==S&&_.has(A)?A:S;b.has(C)||(b.add(C),Uu(C,E[C]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),E.typography)try{Ou()}catch(S){n.verbose&&console.warn("Error applying typography sequence",S)}if(E.spacing)try{Su()}catch(S){n.verbose&&console.warn("Error applying spacing sequence",S)}if(E.timing)try{Lu()}catch(S){n.verbose&&console.warn("Error applying timing sequence",S)}try{Nu()}catch(S){n.verbose&&console.warn("Error applying skins",S)}Du();let w=Mu();return w&&(n.reset=w),n};var tc=1,Q0=["font","files","assets","themeRoot"],MV=new Set(Q0),Qa="$smbls",Jg=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},NV=t=>t.startsWith("__")||MV.has(t),Qg=t=>{if(!Jg(t))return null;let e=new Map,n=!1,r=s=>{if(n)return;if(s===void 0)return{[Qa]:"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:{[Qa]:"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{[Qa]:"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(!Jg(s)||Object.prototype.hasOwnProperty.call(s,Qa)){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(!NV(s)&&(o[s]=r(t[s]),n))return null;return o},$V=(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},tm=(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[Qa];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&&!$V(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=Jg(a)&&!o.has(a)&&Jg(i)&&typeof i[Qa]!="string"?a:null;c&&o.add(c);let l=r(i,c);l!==a&&(e[s]=l)}return e};var z=(t,e)=>e.split(" ").map(n=>t+"-"+n),rk="top right bottom left",ok=rk+" block block-start block-end inline inline-start inline-end",Ee="start end",Nr="width style color",em=t=>z(t,ok),FV=(()=>{let t=z("border","width style color image");for(let e of ok.split(" "))t.push("border-"+e,...z("border-"+e,Nr));return t})(),LP=t=>[...z("border-"+t,Nr+" start end"),...z("border-"+t+"-start",Nr),...z("border-"+t+"-end",Nr)],vt={animation:z("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:z("background","image position position-x position-y size repeat origin clip attachment color"),border:FV};for(let t of["width","style","color"])vt["border-"+t]=ok.split(" ").map(e=>"border-"+e+"-"+t);for(let t of rk.split(" "))vt["border-"+t]=z("border-"+t,Nr);vt["border-block"]=LP("block");vt["border-inline"]=LP("inline");Object.assign(vt,{"border-image":z("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:z("column","width count"),"column-rule":z("column-rule",Nr),container:z("container","name type"),"contain-intrinsic-size":z("contain-intrinsic","width height"),flex:z("flex","grow shrink basis"),"flex-flow":z("flex","direction wrap"),font:[...z("font","style variant weight stretch size"),"line-height",...z("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:z("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":z("grid-template","rows columns areas"),"grid-area":z("grid","row column row-start row-end column-start column-end"),"grid-row":z("grid-row",Ee),"grid-column":z("grid-column",Ee),inset:[...rk.split(" "),...z("inset","block block-start block-end inline inline-start inline-end")],"inset-block":z("inset-block",Ee),"inset-inline":z("inset-inline",Ee),"list-style":z("list-style","type position image"),margin:em("margin"),"margin-block":z("margin-block",Ee),"margin-inline":z("margin-inline",Ee),mask:z("mask","image mode repeat position clip origin size composite"),offset:z("offset","position path distance rotate anchor"),outline:z("outline",Nr),overflow:z("overflow","x y"),"overscroll-behavior":z("overscroll-behavior","x y"),padding:em("padding"),"padding-block":z("padding-block",Ee),"padding-inline":z("padding-inline",Ee)});for(let t of["content","items","self"])vt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(vt,{"scroll-margin":em("scroll-margin"),"scroll-padding":em("scroll-padding"),"text-decoration":z("text-decoration","line style color thickness"),"text-emphasis":z("text-emphasis","style color"),transition:z("transition","property duration timing-function delay behavior")});var BV="block-start block-end inline-start inline-end".split(" ");for(let t of BV)vt["border-"+t]=z("border-"+t,Nr);for(let t of["block","inline"])for(let e of Nr.split(" "))vt["border-"+t+"-"+e]=z("border-"+t,Ee.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(vt,{"animation-range":z("animation-range",Ee),"background-position":z("background-position","x y"),"font-variant":z("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":z("font-synthesis","weight style small-caps"),marker:z("marker","start mid end"),"position-try":z("position-try","order fallbacks"),"scroll-margin-block":z("scroll-margin-block",Ee),"scroll-margin-inline":z("scroll-margin-inline",Ee),"scroll-padding-block":z("scroll-padding-block",Ee),"scroll-padding-inline":z("scroll-padding-inline",Ee),"scroll-timeline":z("scroll-timeline","name axis"),"view-timeline":z("view-timeline","name axis inset"),"text-box":z("text-box","trim edge"),"text-wrap":z("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});vt.font.push("font-language-override");var Mr=t=>"corner-"+t+"-shape";vt["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(Mr);Object.assign(vt,{"corner-top-shape":["top-left","top-right"].map(Mr),"corner-right-shape":["top-right","bottom-right"].map(Mr),"corner-bottom-shape":["bottom-left","bottom-right"].map(Mr),"corner-left-shape":["top-left","bottom-left"].map(Mr),"corner-block-start-shape":["start-start","start-end"].map(Mr),"corner-block-end-shape":["end-start","end-end"].map(Mr),"corner-inline-start-shape":["start-start","end-start"].map(Mr),"corner-inline-end-shape":["start-end","end-end"].map(Mr)});for(let t in vt){let e=vt[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=vt[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var dn={};for(let t in vt)for(let e of vt[t])(dn[e]||(dn[e]=[])).push(t);var ek=new Map,DP=t=>{let e=ek.get(t);if(e!==void 0)return e;ek.set(t,0),e=0;let n=dn[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,DP(n[r])+1);return ek.set(t,e),e};function ec(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(dn,e)?DP(e):0}var jV=/^(?: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)$/,IP=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,UV=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),nk=t=>ut(String(t).replace(/\s*!important\s*$/,""));function nc(t,e,n){let r=vt[t];if(!r||r.indexOf(n)===-1)return!1;if(jV.test(t))return!0;if(!IP.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=nk(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>UV.has(s.toLowerCase()))}var VV=new Set(["thin","medium","thick"]),zV=t=>/^[+-]?\.?\d/.test(t)||VV.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),HV=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(Ma,t),WV=t=>Ms(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||HV(t.toLowerCase()),KV=/-(width|style|color)$/;function zu(t,e,n){if(nc(t,e,n))return!0;let r=vt[t];if(!r||r.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(IP.test(t)){if(n.indexOf("border-image")===0)return!1;let o=KV.exec(n);if(!o)return!1;let s=nk(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?o[1]!=="color":o[1]==="width"&&s.some(zV)}if(t==="background"&&n==="background-color"){let o=nk(e);return o.length===1&&WV(o[0])}return!1}var sc=new Map,GP=null,sk=null,qV=null;function Ku(t){t.batchAtomicCss&&(sk=t.batchAtomicCss),t.compoundCssClass&&(qV=t.compoundCssClass)}var GV=new Set,NP=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function gk(t){try{let e=P();e&&(e.__domDocument=t)}catch{}t&&GV.add(t)}function Qn(){try{let t=P();if(t){if(NP(t.__domDocument))return t.__domDocument;if(NP(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var ve={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function lm(){return{...ve}}function mk(){for(let t in ve)ve[t]=0;im=!1}var im=!1,om=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function YV(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${om(n,"day")} ago)`}function XV(){try{let t=cz();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 ZV(t,e){if(im)return!1;im=!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 ${om(ve.variable,"variable rule")} and ${om(ve.atomic,"atomic rule")}, while the design system held ${om(e,"CSS variable")}.
|
|
47
47
|
The document will render UNSTYLED and nothing else will report an error.
|
|
48
48
|
This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
|
|
49
49
|
package : ${o}
|
|
50
50
|
built : ${n}
|
|
51
51
|
source : ${r}
|
|
52
|
-
emitted : ${JSON.stringify(
|
|
53
|
-
sheets : the style[data-smbls] tiers currently hold ${
|
|
52
|
+
emitted : ${JSON.stringify(ve)}
|
|
53
|
+
sheets : the style[data-smbls] tiers currently hold ${XV()} rule(s)
|
|
54
54
|
FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
|
|
55
55
|
then rebuild the listed packages and clear the app's .parcel-cache
|
|
56
|
-
Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function
|
|
57
|
-
`);for(let m=0;m<h.length;m++)h[m]&&ln(h[m],void 0,"atomic",!0)}i.push(p)}else if(o)for(let f=0;f<o.length;f+=2)i.push(RP(o[f],o[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push(QV(a[f][0],a[f][1],e,r));return i.concat(l).join(" ").trim()}var $P=new Map,XV=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function rc(t){return/^@(media|supports|container)\b/.test(t)}function Mr(t){let e=[],n=0,r=0;for(let o=0;o<t.length;o++){let s=t.charCodeAt(o);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(r,o).trim()),r=o+1)}return e.push(t.slice(r).trim()),e}function ZV(t){return typeof t!="string"||!t||rc(t)?!1:Mr(t).every(e=>XV.test(e))}var VP=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},rk=32,ok=1024,sk=!1;function Jg(t,e,n){if(sk)return;sk=!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 JV(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)||!VP(s)||n.length>rk||++r>ok)))return n.push(s),s})}}function QV(t,e,n,r){let o=JV(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&lk(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=nc.get(a);if(c){let _=$P.get(c);if(_)for(let b=0;b<_.length;b+=2)ln(_[b],void 0,"atomic",void 0,_[b+1]);return c}c=n?`_${n}_c${nm(a)}`:`_c${nm(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=ZV(t)?`${l}.${c}`:l,u="",d=[],p=_=>typeof _=="string"&&(_.indexOf("{")!==-1||_.indexOf("}")!==-1),g=new Set,h=0,m=(_,b)=>{g.add(b);let w="",S=Object.keys(b);for(let A=0;A<S.length;A++){let T=S[A],O=b[T];if(O!=null)if(typeof O=="object"){let B=[..._,T];g.has(O)?Jg("a style value that loops back to one of its own ancestors",t,B):VP(O)?B.length>rk?Jg(`a style block nested more than ${rk} levels deep`,t,B):++h>ok?Jg(`a style object with more than ${ok} nested blocks`,t,B):m(B,O):Jg(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,B)}else{if(p(O))continue;w+=Zs(Ee(T),O)}}g.delete(b),w&&(_.length===0?u+=w:d.push({chain:_,body:w}))};m([],e);let y=_=>_.startsWith(":")||_.startsWith("["),x=(_,b=!0)=>{let w=b&&_.length===1?f:l;if(!_.length)return w;let S=Mr(_[0]).map(A=>A.includes("&")?A.replace(/&/g,w):y(A)?`${w}${A}`:`${w} ${A}`);for(let A=1;A<_.length;A++){let T=Mr(_[A]),O=[];for(let B of S)for(let $ of T)$.includes("&")?O.push($.replace(/&/g,B)):y($)?O.push(B+$):O.push(B+" "+$);S=O}return S.join(", ")},k=[],C=(_,b)=>{let w=_.filter(rc),S=x(_.filter(O=>!rc(O)),w.length===0),A=`${S}{${b}}`;for(let O=w.length-1;O>=0;O--)A=`${w[O]}{${A}}`;A=Ir(A,S,i);let T=uk(A,void 0,"atomic");k.push(A,T),ln(A,void 0,"atomic",void 0,T)};u&&C([t],u);for(let _ of d)C([t,..._.chain],_.body);return $P.set(c,k),nc.set(a,c),c}var Uu=null;function Hu(t){let e=Uu,n=[];Uu=n;try{t()}finally{Uu=e}return n}function Wu(t){if(!Array.isArray(t))return;dk();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++,ln(n[0],void 0,r,void 0,n[2]||void 0)}e>0&&Z0(e)}function Ot(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(dk(),typeof t=="string"){let s=t.indexOf("--")!==-1;ln(t,void 0,s?"variable":"global"),s&&Z0(1);return}let e=lk(),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=J0(i);a&&ln(`${s}{${a}}`,void 0,"keyframes");continue}if(rc(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=J0(c);l&&ln(`${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"||(ec(d)&&f++,l+=Zs(Ee(d),p)))}u&&(l+=OP(c)),n+=f,ln(Ir(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=ec(a);l&&n++,ln(`${s}{${Zs(Ee(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&&Q0(u))continue;c=!0}else ec(u)&&l++,a+=Zs(Ee(u),d)}if(f&&(a+=OP(i)),n+=l,a&&ln(Ir(`${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&&Q0(p))continue;rc(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)Ot({[`${s} ${p}`]:i[p]});for(let p of u)Ot({[p]:{[s]:i[p]}})}}}n>0&&Z0(n)}function oc(t,e){return ln(`@keyframes ${t}{${J0(e)}}`,void 0,"keyframes"),t}function zP(){nc.clear(),fk.clear(),FP=null,sk=!1}function pk(){return nc.size}var HP="3.14.855";M();var Zm={};F(Zm,{DELEGATED_EVENTS:()=>sc,LIFECYCLE_EVENTS:()=>Jn,MIXINS:()=>im,MOUNT_YIELD_BUDGET_MS:()=>li,NON_BUBBLING_EVENTS:()=>am,REGISTRY:()=>Gt,SVG_TAGS:()=>dc,addDelegatedEvent:()=>Ku,addMethods:()=>mc,adoptHydrationNode:()=>VE,applyExtends:()=>lc,attachElement:()=>No,cacheNode:()=>Oo,create:()=>Yt,createHTMLNode:()=>uc,detectTag:()=>tr,dispose:()=>pn,dropMountWork:()=>wd,elementPath:()=>zm,flushMounts:()=>kc,globalEventKeyInfo:()=>dm,holdMountFlush:()=>ai,inertOutsidePlugin:()=>Xm,isSvgTag:()=>$r,isValidTag:()=>fc,mountIdle:()=>Bo,mountPending:()=>Gm,mountYieldBudget:()=>ar,refreshContextProto:()=>yc,registerEvent:()=>ac,registerGlobalEvent:()=>pm,releaseMount:()=>We,remove:()=>gc,removeDelegatedEvent:()=>qu,settleBuiltAttributes:()=>$o,update:()=>hc,whenConnected:()=>Co,whenMountIdle:()=>Te,whenMounted:()=>Vr,yieldToMain:()=>cr});var ct={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};var Gt=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"]),im={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Jn=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"]),am=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"]),cm=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),sc=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 Js=new Set;function ic(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 Co(t,e){let n=t&&t.node,r=t&&t.__ref;if(!(!n||!r||typeof e!="function")){if(ic(t)){e(t);return}(r.__onConnected||(r.__onConnected=[])).push(e),Js.add(t)}}function lm(){if(Js.size)for(let t of Js){let e=t.__ref,n=t.node;if(!e||!n){Js.delete(t);continue}if(!ic(t))continue;Js.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 WP(t){Js.size&&Js.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var mk=new WeakMap,tz={passive:!0},ez={passive:!0,capture:!0},YP=(t,e)=>cm.has(t)?e?ez:tz:e||!1;function XP(t){let e=mk.get(t);return e||(e={handlers:new Map,installed:new Set},mk.set(t,e)),e}function nz(t,e){let n=XP(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}},YP(t,r))}function Ku(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=XP(r);nz(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function qu(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=mk.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function fn(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function fm(t){return t.charAt(2).toLowerCase()+t.slice(3)}var rz=/^[A-Za-z_$][\w$]*$/;function Gu(t,e){return typeof e!="string"||!rz.test(e)?e:function(r){return t.call(e,r)}}function oz(t){return sc.has(t)&&!Jn.has(t)}function um(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&&ht()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&ht()}}var ZP=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function sz(t,e){return ZP(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:cm.has(t),once:e.once===!0}:YP(t,!1)}function iz(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 ac(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=um(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=iz(o,a,i));let l=!am.has(t)&&oz(t)&&!ZP(r),f=l?null:sz(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;Ku(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;qu(t,o,u)}else o.removeEventListener(t,i,f)})}var hk=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function dm(t){if(typeof t!="string")return null;for(let e=0;e<hk.length;e++){let n=hk[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:hk[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function az(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=Gu(t,r),typeof r!="function"?null:(s===void 0&&(s=cm.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function cz(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 gk=/^@media\s+/i,lz=/^[@[.#&:>*~+]/,KP=new Set;function qP(t,e){!tt()||KP.has(t)||(KP.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function fz(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&&!gk.test(n)){if(s=o(n.slice(1)),!s)return qP(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return gk.test(s)?s.replace(gk,"").trim()||null:lz.test(s)?(qP(n,`names "${s}", which is not a media query`),null):s}function uz(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function JP(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function pm(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)GP(t,e,n[o]);return}GP(t,e,n)}}function GP(t,e,n){let r=e.__ref,o=az(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=fz(e,o.query),!o.query))return;let s=cz(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=um(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(ic(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!uz(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(()=>{JP(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&dz(e,i,d,()=>l)}function dz(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||Co(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()&&JP(i,"load",n.listener,n.options))}))}var yk=Symbol("handlerChain.none"),pz=new Set(["inView","leaveView"]),hz=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),cc=new WeakMap,QP=new WeakMap,Sk=!1,bk=t=>t!==null&&typeof t=="object"&&t.always===!0;function gz(t){let e=fm(t);return pz.has(e)?!0:Jn.has(e)&&!hz.has(e)}var tL=new Set;function mz(t){tL.has(t)||!tt()||(tL.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 _k(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Yu(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},r=function(...s){return _z(n,this,s)};return cc.set(r,n),Sk=!0,r}function wk(t){let e=QP.get(t);return e||(e=Yu([_k(t)],null),QP.set(t,e)),e}function yz(t,e){let n=cc.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Yu(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=Yu(n.always,_k(e))),a}let r=n.next||(n.next=new WeakMap),o=r.get(e);if(o)return o;let s=bk(e)?cc.get(wk(e)):typeof e=="function"?cc.get(e):void 0;return o=s?Yu(n.always.concat(s.always),s.own):Yu(n.always,_k(e)),r.set(e,o),o}function bz(t,e,n){let r=bk(e),o=!r&&Sk&&typeof e=="function"&&cc.has(e);if(!r&&!o&&!bk(n))return yk;if(!gz(t))return mz(t),yk;let s=r?wk(e):o?e:null;return s?yz(s,n):wk(n)}function eL(t,e,n,r){if(!fn(e))return!1;let o=bz(e,n,r);return o===yk?!1:(t[e]=o,!0)}function xk(t){if(typeof t=="function"){let e=Sk?cc.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 _z(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]:wz(i):o}function wz(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 Sz=1e-6,nL=new WeakMap;function xz(t,e,n){let r=t.defaultView,o=r&&r.IntersectionObserver;if(typeof o!="function")return null;let s=nL.get(t);s||nL.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=>kz(a,l),c)}catch{return null}return s.set(i,a),a}function kz(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-Sz;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&&oL(t,o,l);try{l.run(r)}catch(f){Ez(f)}}}}}function Ez(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function oL(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 rL(t,e,n,r,o){let s=Gu(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=xz(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:um(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>oL(f,u,d))}function sL(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return qt("viewEvents",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=xk(t.onInView);for(let i=0;i<o.length;i++)rL(t,e,n,"in",o[i]);let s=xk(t.onLeaveView);for(let i=0;i<s.length;i++)rL(t,e,n,"leave",s[i])}Mt();Mt();function un(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();mt(n);try{return e()}finally{ht()}}var ve=Qo||(t=>{let e=Me();if(!e)return t();hl(null);try{return t()}finally{hl(e)}});M();M();var lL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],vz=["none","forwards","backwards","both"],Az=["normal","reverse","alternate","alternate-reverse"],Cz=["running","paused"],Tz=/^(?: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*\))$/,Oz=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=>Tz.test(r.replace(/\s+/g,"")))},iL=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),Rz={transform:Oz,translate:iL,rotate:t=>iL(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},Pz=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},Lz=t=>{if(!E(t))return null;let e=null,n=-1;for(let r in t){let o=Pz(r);o==null||!E(t[r])||o>=n&&(n=o,e=t[r])}return e},Dz=t=>{let e=Lz(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=Rz[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},Iz=(t,e)=>{if(E(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return E(r)?r:null},Mz=["reverse","alternate","alternate-reverse"],fL=(t,e,n)=>{let r=n||e.animationDirection;return r&&Mz.includes(String(r))?"both":Dz(Iz(t,e))?"backwards":"both"},Nz=0,aL=new Map,kk=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(E(t)){let o=JSON.stringify(t),s=aL.get(o);if(s)return s;let i=`smbls-anim-${Nz++}`,a=oc(i,t);return aL.set(o,a),a}let r=n&&n[t];return E(r)?oc(t,r):t},uL=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,$z=/^(?:\d+(?:\.\d*)?|\.\d+)$/,dL=/^(?:cubic-bezier|steps|linear)\(/,Fz=/^(?:calc|min|max|clamp)\(/,Bz=t=>t.includes("(")||t.startsWith("--"),jz=(t,e)=>{if(!Pn.test(t))return!1;let n=e&&e.sequence;if(!E(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},Uz=t=>{if(!v(t))return!1;let e=t.trim();return lL.includes(e)||dL.test(e)||e.startsWith("var(")},Vz=(t,e)=>!!e&&Uz(e[t]||e[Sr(t)]),zz=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],Hz=t=>ut(String(t)),Wz=(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 Hz(t))e&&e[u]?o=u:uL.test(u)||jz(u,n)?a("duration",u)||a("delay",u):lL.includes(u)||Vz(u,n)?c("timingFunction",u):dL.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):$z.test(u)?a("iterationCount",Number(u)):Az.includes(u)?c("direction",u):vz.includes(u)?c("fillMode",u):Cz.includes(u)?c("playState",u):Bz(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=zz.find(p=>r[p]==null);if(!d)break;r[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...r,opaqueSlots:f}},Kz=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=P()||{};return On(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>Wz(o,n,r))},cL=(t,e)=>uL.test(t)||e&&!Fz.test(t)&&!/^(?:var|env)\(/.test(t)?t:Se(t).timing||t,qz=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:kk(t.name,e),animationDuration:t.duration!=null?cL(t.duration,n("duration")):Se(e.animationDuration||"A").timing,animationDelay:t.delay!=null?cL(t.delay,n("delay")):Se(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:je(t.timingFunction):je(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||fL(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},Gz={animationName:"none",animationPlayState:"running",animationDirection:"normal"},Yz=(t,e)=>{let n=t.map(o=>qz(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??Gz[o]).join(", "))}return r},Ek={animation:(t,e)=>{if(t!=null){if(v(t)&&/[\s,]/.test(t)){let n=Kz(t,e);if(n.length)return Yz(n,e)}return{animationName:kk(t,e),animationDuration:Se(e.animationDuration||"A").timing,animationDelay:Se(e.animationDelay||"0s").timing,animationTimingFunction:je(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||fL(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:kk(t,e)}),animationDuration:t=>({animationDuration:Se(t).timing}),animationDelay:t=>({animationDelay:Se(t).timing}),animationTimingFunction:t=>({animationTimingFunction:je(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};M();var hm=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!v(e))return;let[r,o]=ut(e);return{...j(t+"Start",r,n),...j(t+"End",o||r,n)}},vk={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=>Xt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("height",e),...Nt("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(!v(t))return;let[e,n]=ut(t);return{...Nt("minWidth",e),...Nt("maxWidth",n||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minHeight",e),...Nt("maxHeight",n||e)}},size:t=>{if(!v(t))return;let[e,n]=ut(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(!v(t))return;let[e,n]=ut(t);return{...Nt("minInlineSize",e),...Nt("minBlockSize",n||e)}},maxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("maxInlineSize",e),...Nt("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(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingInlineStart",e),...Nt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingBlockStart",e),...Nt("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(!v(t))return;let[e,n]=ut(t);return{...Nt("marginInlineStart",e),...Nt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("marginBlockStart",e),...Nt("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)=>hm("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>hm("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)=>hm("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>hm("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:Vg(t)}),columnGap:(t,e)=>Be(e,"columnGap",t),rowGap:(t,e)=>Be(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!v(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(!v(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Pr(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Pr(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Pr(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Pr(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Pr(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Pr(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:Ys(t,"backgroundSize",Iu,e)}),backgroundPosition:(t,e)=>({backgroundPosition:Ys(t,"backgroundPosition",Mu,e)}),maskSize:(t,e)=>({maskSize:Ys(t,"maskSize",Iu,e)}),maskPosition:(t,e)=>({maskPosition:Ys(t,"maskPosition",Mu,e)})};var Ak={fontSize:t=>Au(t)||t,fontFamily:t=>({fontFamily:Eu(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 Ck={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 Tk={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:ut(t).map(n=>Vt(n,"k").k).join(" ")}},left:t=>Vt(t,"left"),top:t=>Vt(t,"top"),right:t=>Vt(t,"right"),bottom:t=>Vt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>Vt(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>Vt(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};M();var gm=0,mm=()=>{gm++},ym=()=>{gm>0&&gm--},fe=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:gm>0?null:n&&n.resolvedTheme||null},ue=(t,e)=>{if(e==null||e==="")return;if(!E(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(E(s)){let i=ue(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},pL=t=>{let e={};for(let n in t){let r=t[n];e[n]=E(r)?pL(r):v(r)?r+" !important":r}return e},Qs=t=>(e,n)=>{let r=n&&v(e)&&!P().useVariable,o=Fg(e,r?fe(n):null);return E(o)?ue(t,o):{[t]:o}},Ok={theme:(t,e)=>{if(t)return e.themeModifier?an(t,`@${e.themeModifier}`):an(t)},color:(t,e)=>{let n=fe(e);if(t)return ue("color",Kt(t,n))},background:(t,e)=>{let n=fe(e);if(t)return v(t)&&t.includes("gradient")&&t.includes("(")?{background:vo(t,n)}:ue("background",Kt(t,n))},backgroundColor:(t,e)=>{let n=fe(e);if(t)return ue("backgroundColor",Kt(t,n))},backgroundImage:(t,e,n,r)=>{let o=fe(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 ue("backgroundImage",Ug(t,o))},textStroke:t=>{let e=Bg(t);if(e!=null)return{WebkitTextStroke:e}},outline:Qs("outline"),outlineWidth:(t,e)=>j("outlineWidth",t,e),outlineColor:(t,e)=>{let n=fe(e);if(t)return ue("outlineColor",Kt(t,n))},outlineOffset:(t,e)=>j("outlineOffset",t,e),border:Qs("border"),borderColor:(t,e)=>{let n=fe(e);if(t)return ue("borderColor",Kt(t,n))},borderTopColor:(t,e)=>{let n=fe(e);if(t)return ue("borderTopColor",Kt(t,n))},borderBottomColor:(t,e)=>{let n=fe(e);if(t)return ue("borderBottomColor",Kt(t,n))},borderLeftColor:(t,e)=>{let n=fe(e);if(t)return ue("borderLeftColor",Kt(t,n))},borderRightColor:(t,e)=>{let n=fe(e);if(t)return ue("borderRightColor",Kt(t,n))},borderLeft:Qs("borderLeft"),borderTop:Qs("borderTop"),borderRight:Qs("borderRight"),borderBottom:Qs("borderBottom"),shadow:(t,e)=>{let n=fe(e);if(t)return ue("boxShadow",jg(t,n))},boxShadow:(t,e)=>{if(!v(t))return;let[n,r]=t.split("!importan"),o=fe(e),s=r?" !important":"",i=Du(n.trim(),o);return v(i)?{boxShadow:i+s}:ue("boxShadow",s?pL(i):i)},textShadow:(t,e)=>ue("textShadow",Du(t,e?fe(e):null)),columnRule:Qs("columnRule")};var Xu={transition:t=>{let e=Hg(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:Nu(t)}),transitionDelay:t=>({transitionDelay:Nu(t)}),transitionTimingFunction:t=>({transitionTimingFunction:je(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};M();var Rk={flow:(t,e)=>{let n=e.reverse;if(!v(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(!v(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};M();var Xz=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,hL=t=>{if(!v(t))return t;let e=P().sizes;return e?t.replace(Xz,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},Qn=t=>hL(zg(t)),Pk={gridTemplateColumns:t=>({gridTemplateColumns:Qn(t)}),gridTemplateRows:t=>({gridTemplateRows:Qn(t)}),gridAutoColumns:t=>({gridAutoColumns:Qn(t)}),gridAutoRows:t=>({gridAutoRows:Qn(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Qn(t)}),templateColumns:t=>({gridTemplateColumns:Qn(t)}),autoColumns:t=>({gridAutoColumns:Qn(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Qn(t)}),templateRows:t=>({gridTemplateRows:Qn(t)}),autoRows:t=>({gridAutoRows:Qn(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var gL="breakpoints",Zz=new Set(["window","media"]),mL=/^-?[A-Za-z_][\w-]*$/,yL=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),Jz=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&mL.test(n)&&!yL.has(n)?n:null},bm=(t,e)=>{if(typeof t=="function")try{t=t(e,e&&e.state,e&&e.context)}catch{return null}if(typeof t!="string")return null;let n=t.trim();return!n||Zz.has(n)?null:n==="container"?Jz(e)||gL:mL.test(n)&&!yL.has(n)?n:null},Qz=/^@media\s+/i,tH=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,eH=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,nH=/height|block-size|aspect-ratio|orientation|device-|resolution/i,Lk=t=>{if(typeof t!="string")return null;let e=t.trim().replace(Qz,"").replace(tH,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let r of n){let o=r.trim();if(o.charCodeAt(0)!==40||o.charCodeAt(o.length-1)!==41)return null;let s=o.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!eH.test(s)||nH.test(s))return null}return e},Dk={breakpointsFrom:(t,e)=>{let n=bm(t,e);if(!n)return;let r={},o=e&&e.container!=null;return!o&&(!e||e.containerType==null)&&(r.containerType="inline-size"),!o&&(!e||e.containerName==null)&&(r.containerName=n),r}};var xt={...Ek,...vk,...Ak,...Ck,...Tk,...Ok,...Xu,...Rk,...Pk,...Dk};var Bt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","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","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","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","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","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","textBox","textBoxEdge","textBoxTrim","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 rH=/^[a-z][0-9]?$/,bL=/var\(\s*(--[A-Za-z0-9-]+)/g,oH=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}},sH=Object.prototype.propertyIsEnumerable,_L=(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"&&sH.call(o,e))return!0}return!1},Ik=/[(),\s]+/,Mk=(t,e)=>{let n=null,r=t.split(Ik);for(let o=0;o<r.length;o++){let s=r[o];s&&e(s)&&(n||(n=[])).push(s)}return n},Nk=(t,e)=>Pn.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),iH=(t,e)=>{if(!e.size)return[];let n=o=>e.has(o),r=Mk(t,o=>Nk(o,n));return r?[...new Set(r)]:[]},aH=(t,e)=>{if(!e.size)return[];let n=[];bL.lastIndex=0;let r;for(;r=bL.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(!rH.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},_m=new Set,wL=(t,e,n)=>{if(!tt()||!v(e)||!e)return;let r;try{r=P()}catch{return}let{knownLetters:o,knownVars:s}=oH(r);if(!o.size&&!s.size)return;let i=iH(e,o),a=aH(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}`;_m.has(f)||(_m.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}`;_m.has(u)||(_m.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 cH=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,lH=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=Bs(s||t)?Fs(()=>ee(e,n)):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(cH),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},SL=(t,e,n)=>({[t]:ee(e,n)}),Zu=(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}},$k=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},fH=(t,e,n)=>{let r=t.slice(1),o=$k(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ee(e,n)},uH=(t,e,n)=>({[t]:e}),dH=(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=$k(r,n);s!==void 0&&(o=s)}if(o)return ee(e,n)},pH=(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=$k(r,n);s!==void 0&&(o=s)}if(!o)return ee(e,n)},Fk=(t,e)=>ee(t,e),Bk={"@":lH,":":Zu,"[":Zu,"*":Zu,"+":Zu,"~":Zu,"&":SL,">":SL,$:fH,"-":uH,".":dH,"!":pH};var wm=ro(),xL=(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"&&v(c)){let l=kL(c,e);l&&(n.unpack?Lt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=St(c,e);Lt(o,Fk(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=L(l)?l(e,e.state,e.context):l;f&&i(a,f),!wm&&E(o[a])&&(o[a].label=a)}else if(xt[a]){let l=St(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>Lt(u,d),{}));let f=xt[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>Lt(u,d),{})),f&&i(a,f),!wm&&E(o[a])&&(o[a].label=a)}else if(Bt.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})`),wm||wL(a,l,e),i(a,{[a]:l}),!wm&&E(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&ht()}},kL=(t,e)=>{if(!v(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(!E(s))continue;let i=pt(s);r=r?ie(r,i):i}if(r)return ee(r,e)},EL=(t,e)=>{let n={};for(let r in t){let o=Bk[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},ee=(t,e,n={unpack:!0})=>{let[r,o]=xL(t,e,n),s=EL(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Nl(r,s);r._selectors=s}return r},hH=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};M();var vL=t=>{if(E(t))return ee(t,t)},gH=(t,e)=>{let n=vL(t);return typeof e=="function"?e(n):Ve(n)};M();var AL=/\s*!important\s*$/,mH=()=>{let t;try{t=P()}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=_L(t,s),n.set(s,i)),i},o=s=>Ua(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(Nk(s,r)||o(s))}},yH=(t,e)=>{let n=String(t).split(Ik);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},bH=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Ee(t),e)}catch{return!1}},CL=new Set,_H=(t,e,n)=>{if(!tt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;CL.has(o)||(CL.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}"`))},wH=(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(yH(o,s))return!1;n=!0}}return n},SH=(t,e,n,r)=>{if(!v(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=xt[t];if(!o||!Bt.has(t))return null;let s=AL.test(e),i=s?e.replace(AL,""):e,a=Mk(i,r.isToken);if(!a||bH(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(!wH(c,a))return _H(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},TL=(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=TL(i,e,n);c!==i&&(o=!0),r[s]=c;continue}let a=SH(s,i,e,n);a?(o=!0,Object.assign(r,a)):r[s]=i}return o?r:t},jk=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:TL(t,e,mH());if(!vt||!cn)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 Sm=vt,To=cn,xm=Qa||(()=>!1),OL=Bu||xm,RL=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Nr=Ee||(t=>RL(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),Ju=zu||(t=>RL(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function LL(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 lc(t,e,n){let r=LL(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=DL(r[i],s);a&&a!==e&&IL(t,a,n,new Set([e]))}}function DL(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 IL(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=LL(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=DL(o[c],a);l&&IL(t,l,n,r)}}let s=Vk(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]=ze(t[i],a):t[i]=a)}}var Uk=class{constructor(){this.rank=0,this.ranks=null}mark(e){xH(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}},km=new Set;for(let t of[To,Sm])for(let e in t)km.add(e),km.add(Ju(e));var PL=new Map;function xH(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=PL.get(t);return n===void 0&&(n=!!xt[t]||km.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&km.has(Nr(t)),PL.set(t,n)),n}function Vk(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new Uk),n.rank++,n}function ML(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 ze(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]=ze(s,i):n[o]=i)}return n}Mt();Mt();Mt();var ti="http://www.w3.org/2000/svg",dc=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"]),kH=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 fc(t){return kH.has(t)||dc.has(t)}function $r(t){return dc.has(t)}function tr(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"&&fc(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]),fc(o)&&!r.has(o)?o:"div"}var NL={};function uc(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($r(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===ti)return n.createElementNS(ti,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function Oo(t){let e=t.tag=tr(t),r=$r(e)&&(e==="svg"||t.parent?.node?.namespaceURI===ti)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=NL[r];if(s||(s=NL[r]=uc(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?uc(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function Qu(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}Mt();sa();var $L=new WeakMap,FL=null,BL=null;function EH(t,e){let n=t===FL?BL:$L.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},$L.set(t,n)),FL=t,BL=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 zk(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&EH(n,e))}function er(t,e,...n){return zk(e,t)?so(t,e,...n):!1}function dn(t,e,n){er("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var vH=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function UL(t,e,n){return ve(()=>un(t,()=>e.call(t,n,t,t.state,t.context)))}function AH(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 VL(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function")return;if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return qt("bridge",t);if(!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,AH(t,e);let o;try{o=UL(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,dn(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>jL(t,r,s),s=>{r.failed=!0,dn(t,"onBridgeMount",s)});return}jL(t,r,o)}function jL(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){HL(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=K(()=>{e.disposed||un(t,()=>{try{let o=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);o&&typeof o.then=="function"&&o.catch(s=>dn(t,"onBridgeUpdate",s))}catch(o){dn(t,"onBridgeUpdate",o)}})},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function zL(t){if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return;let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&HL(t,e))}function HL(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,vH(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=UL(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>dn(t,"onBridgeDestroy",o))}catch(r){dn(t,"onBridgeDestroy",r)}}function pc(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function td(t){let e=t.__mount;return e?e.pending:0}Mt();function hc(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"&&Em(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>nr(r,!1),c=>{nr(r,!0),er("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(nr(r,!1),a===!1)return n}catch(a){throw nr(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;Op(()=>{if(t.state&&Et(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&ei(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=ri(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=Nr(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];ni(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(Gt.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&&Yt(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++)Kk(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)Hk(s[c])&&(a=!0);a&&Wk(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 er("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}Mt();function pn(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&WP(t),Me())return ve(()=>pn(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&&zL(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&&pn(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&&pn(i)}}e.__keepNode?e.__keepNode=!1: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 gc(){pn(this)}M();M();function Yk(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 WL=new Set;function KL(t,e,n){let r=String(e);if(WL.has(r))return;WL.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.`;Yk(t,"error",[a]),console.error(a)}var GL=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),CH=new Set,YL=t=>GL(qk,t)&&!(Qi||CH).has(t),qL=new Set;function XL(t,e){qL.has(t)||(qL.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 TH(...t){return Yk(this,"warn",t),xf.apply(this,t)}function OH(...t){return Yk(this,"error",t),_s.apply(this,t)}var qk={update:hc,remove:gc,getDB:Af,getQuery:Cf,getRootData:_f,getPath:gf,nextElement:kf,previousElement:Ef,verbose:ya,warn:TH,error:OH,variables:vf,spotByPath:hf,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,s=t!=null?ct.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&r?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(o=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let c=r.__setQueued;c&&(r.__setQueued=null,this.set(c.content,c.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 Co(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:bf,getRootState:yf,getRootContext:wf,getContext:Sf,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=YL(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&XL(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=as;if(!s||!s(o))return o.call(this,...e);tt()&&KL(this,t,Ne(o));return}tt()&&KL(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)}},Gk=new WeakMap;function RH(t){if(!t)return qk;let e=Gk.get(t);if(e)return e;e=Object.create(qk);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return Gk.set(t,e),e}function mc(t){let e=RH(t.context);Object.setPrototypeOf(t,e)}function yc(t){if(!t)return!1;let e=Gk.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(YL(r)&&!GL(e,r)){XL(r,"refreshContextProto");continue}e[r]=n[r]}return!0}M();M();var tE={};F(tE,{STATE_METHODS:()=>ZL,applyInitialState:()=>vm,applyStateMethods:()=>Ae,callStateMethod:()=>nd,createState:()=>Zk,isTracking:()=>Qk,useHostState:()=>Jk});Mt();Mt();var ZL=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"]),ed=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},Ln=(t,e,n,{onlyIfAbsent:r}={})=>{ed(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&ed(t,e,n)},nd=(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)},Ae=(t,e)=>{if(Et(e)){let o=e.__raw||e;Ln(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),Ln(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}),Ln(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}),Ln(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}),Ln(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}),Ln(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),Ln(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),Ln(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),Ln(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&Et(a.parent);)a=a.parent;return nd(a,"update",s,i)}),Ln(o,"parentUpdate",function(s,i={}){if(e.parent)return nd(e.parent,"update",s,i)}),Ln(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=Et(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,Et(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}};ed(e,"$settled",function(){return Rp().then(()=>e)});for(let o in r)if(ed(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){Dp(o,"");continue}ed(e,o,r[o])}};var Zk=function(t,e,n){return t.state=vm(t,e,n),t.state},vm=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ae(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",PH(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=ur({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ae(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!Et(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=ur({...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)),Ae(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return Et(o)?(o.__element=t,o):e?.state||{}};function Xk(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 PH(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?Xk(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?Xk(o,s):o??{}}let r=Xk(n.state,t);if(r&&typeof r=="object"&&!Et(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}Mt();var Jk=(t,e)=>{if(!t)return QL;let n=DH(t,e);return!n||!n.state?QL:MH(n.state)},Qk=()=>Me()!=null,LH=128;function DH(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<LH&&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 IH={get(t,e){return t[e]}},JL=new WeakMap,MH=t=>{let e=JL.get(t);return e||(e=new Proxy(t,IH),JL.set(t,e)),e},QL=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var NH=["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"],$H=["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"],FH=["requiredExtensions","systemLanguage"],tD={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"]},BH=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),jH=()=>{let t={};for(let e in tD)t[e]=[...tD[e],...BH.has(e)?[]:FH,...$H];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"],...jH()},oD=["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"],sD=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,eD=new Map,Br=t=>{let e=eD.get(t);return e===void 0&&(e=sD(t)||cD(t),eD.set(t,e)),e},iD=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"]),eE=new Set;for(let t in Fr)t==="default"||t==="aria"||t==="svg"||Fr[t].forEach(e=>{e.startsWith("on")||eE.add(e)});var aD=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(eE.has(n))return n;let r=t.toLowerCase();return eE.has(r)?r:null},cD=t=>iD.has(t)?t.toLowerCase():aD(t),UH=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),VH=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),oi=t=>typeof t=="string"&&(UH.has(t)||t.startsWith("aria-")),rr=(t,e)=>{if(e!==!0&&e!==!1)return e;if(oi(t)){let n=VH.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},nD=new Map,hn=(t,e)=>{let n=Fr.default,r=Object.prototype.hasOwnProperty.call(Fr,t)?Fr[t]:null,o=r?r.length:-1,s=nD.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},nD.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=zH(t,e),s.answers.set(e,i)),i},zH=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||sD(e)||iD.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=aD(e);return r!==null&&n.includes(r)}return!1},rE=t=>{if(!v(t))return!1;let e=t.toLowerCase();return oD.includes(e)},HH=(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])Ut(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(Ut(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=hn(t,o),i=rE(o);if(Ut(e[o])&&(s||i)){let a=Br(o)||o;r[a]=e[o]}}return r},WH=(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},Ro=(t,e)=>{let n=t.call("exec",e,t);if(n)return v(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},nE=(t,e)=>{let n=(t.preSrc||"")+(Ro(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},Po={src:t=>nE(t,t.src),href:t=>Ro(t,t.href),action:t=>Ro(t,t.action),poster:t=>nE(t,t.poster),data:t=>Ro(t,t.data)},oE=t=>{let e=t.tag||"div",n={};for(let r in Po)if(t[r]!==void 0&&hn(e,r)){let o=Po[r](t);o!==void 0&&(n[r]=o)}return n},rD=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},KH=(t,e,n)=>{if(t==="$"){let o=rD(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=rD(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},qH=new Set(["$",".","!"]),sE=(t,e,n,r=KH)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return L(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!qH.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=hn(e,f),d=rE(f);if(!u&&!d)continue;let p=Br(f)||f;s(p,c[f],a,l)}}return o};var Am="3.14.809";var lD="__SMBLS_ELEMENT_ID_ENGINE__",fD=(t,e,n)=>{let r=e||Am,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[lD];return s&&s.engine&&s.version===r?s.engine:(s||(o[lD]={version:r,engine:t}),t)};var GH=new Set(["rows","cols","wrap","fill","stroke","offset"]),Cm=(t,e)=>GH.has(e)&&hn(t,e),Lo=(t,e)=>!!(xt[e]||Bt&&Bt.has(e))&&!Cm(t,e);var HD=fD({uniqId:1,scopedStyleId:0},Am),_c=[],Do=new Set,EE=!1,WD=0,xc=null,sd=null;function vc(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function KD(){return typeof document<"u"&&document.visibilityState==="hidden"}var YH=250,XH=1e3;function ZH(){return sd&&(sd!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||KD())?!0:vc()-WD>=XH}function JH(){if(EE=!0,WD=vc(),sd=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(kc,0);xc=t?()=>t(e):null;return}if(KD()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(kc,YH);xc=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;sd=requestAnimationFrame;let e=requestAnimationFrame(kc);xc=t?()=>t(e):null}}function dd(){if(EE){if(!ZH())return;let t=xc;if(xc=null,t)try{t()}catch{}}JH()}var qD=300,GD=15e4,yE=0;function ai(){yE++;let t=!1;return()=>{t||(t=!0,!(--yE>0)&&(_c.length||Do.size)&&dd())}}function kc(){if(EE=!1,xc=null,sd=null,yE>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&Do.size&&rW(),!_c.length))return;let t=_c.splice(0,_c.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=vc());let o=vc()-r.__mountFirstAttemptAt;r.__mountAttempts<=qD&&o<GD?(_c.push(n),dd()):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"&&VL(n),typeof n.onMounted=="function"&&Jt("Mounted",n,n.__ref?.__mountOptions||{})}}}function bE(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&ud(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,_c.push(t),dd())}function Om(t,e){typeof t.onContentUpdate=="function"&&(er("contentUpdate",t,e),un(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(dn(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function QH(t){return t.toLowerCase()}function YD(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function Rm(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function XD(t,e,n,r){return Mm(r,Rm(t)||(e&&typeof e=="object"?Rm(e.key):void 0)||String(n))}function Mm(t,e){if(!t||typeof e!="string")return e;let n=e;for(;t9(t,n);)n="$"+n;return n!==e&&e9(t,e,n),n}function t9(t,e){if(Gt.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 uD=new Set;function e9(t,e,n){if(!tt())return;let r=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",o=r+"::"+e;uD.has(o)||(uD.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 Yt(t,e,n,r={},o){if(Me())return ve(()=>Yt(t,e,n,r,o));if(t==null||t===!1)return null;let s=x9(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=Rm(n);let i=Rm(t.key),a=Object.create(null);a.key=n||(i&&e?Mm(e,i):i)||`_${HD.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||r.context||{},a.context.__create||(a.context.__create=Yt);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&&(pc(c).attachLater=!0),l=void 0);let f=t;if(t=JD(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=i9(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:r}),typeof a.if=="function"&&iI(a,c,a.if),a}a.tag||(a.tag=tr(a)),Jt("Init",a,r);let u=ct.hydration,d=a.node=u!==null&&u.adopt(a)||Oo(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(Jt("AttachNode",a,r),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(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),vI(a,r),oI(a),sI(a);try{CI(a,r)}catch(g){Nm(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(r.mountWhole===!0&&!(o&&o.holdTail)&&n9(a,e)?p.held=!0:Ac(a,e,l)),p.tail=()=>ct.mount.finish(a,r),a):(Ec(a,!0),(p===null||!p.attachLater)&&Ac(a,e,l),vE(a,r),a)}function No(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Ac(t,t.parent),!0)}function n9(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 ZD(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){Ac(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&&(jr(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=Qu(i,s.__textNode)),Ac(t,o,l?{position:"before",node:l}:void 0)}function Nm(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 YP(){try{let t=P(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function ik(t){im||ve.variable>0||ve.atomic>0||XP(Math.max(t,YP()))}function yk(t){let e=t&&(t.CSS_VARS||t.cssVars);return XP(e?Object.keys(e).length:YP())}function XP(t){let e=lm();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Sk())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 ZV(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var JV={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 QV(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var oc=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,$P=new Map,Ae=t=>{if(oc(t))return t;let e=$P.get(t);return e===void 0&&(e=QV(t),$P.set(t,e)),e},FP=new Map,qu=t=>{if(oc(t))return t;let e=FP.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,r)=>r.toUpperCase()),FP.set(t,e)),e};function am(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 tz(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():am(e)}var ez={"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 Qs(t,e){let n=ez[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function ak(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+=Qs(Ae(s),r[s]));e+=`${n}{${o}}`}return e}function ck(t){return t.charCodeAt(0)===64&&!ic(t)}function BP(t){let e="";for(let n in t){let r=t[n];if(!ck(n)||typeof r!="object"||r===null)continue;let o="";for(let s in r){let i=r[s];i==null||typeof i=="object"||(o+=Qs(Ae(s),i))}e+=`${n}{${o}}`}return e}var nz="@media (hover: hover)",rz=/(?:^|[^\\]):hover(?![\w-])/;function bk(){try{let t=P();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function $r(t,e,n){return n===!1||!rz.test(e)||n===void 0&&!bk()?t:`${nz}{${t}}`}var _k=new Map;function oz(t,e,n,r){let o=sc.get(t);if(!o){let c=JV[e]||am(e),l=tz(n);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,sc.set(t,o)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${o}{${Qs(Ae(e),n)}}`,a={className:o,rule:i,tier:i===null?null:wk(i,!0,"atomic")};return _k.set(t,a),a}function jP(t,e,n){let r=(n?n+"":"")+t+":"+e,o=_k.get(r)||oz(r,t,e,n);return o.rule!==null&&pn(o.rule,void 0,"atomic",!0,o.tier),o.className}var UP=new WeakMap,VP=new WeakMap;function pn(t,e,n,r,o){let s=o||wk(t,r,n);Wu&&!e&&Wu.push([t,n||"global",s]);let i=az(e,s);if(!i)return ve.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=UP.get(a),c||(c=new Set,UP.set(a,c)),i.rules=c),c.has(t))return ve.duplicate++,ve[n||"global"]++,"duplicate";let l=VP.get(a);if(l&&l.has(t))return ve.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,VP.set(a,l)),l.add(t),ve.invalid++,"invalid"}return c.add(t),ve[n||"global"]++,"inserted"}var He="0:0",lk="1:0",ZP="0:99",zP=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function wk(t,e,n){if(typeof t!="string"||!t)return He;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return He;let i=1/0,a=-1/0;zP.lastIndex=0;let c;for(;c=zP.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:lk}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?ZP:He;if(!/^\.[\w-]+\{/.test(t))return lk;if(!e)return He;let r=t.indexOf("{"),o=t.indexOf(":",r);if(o===-1)return He;let s=ec(t.slice(r+1,o).trim());return s?"0:"+s:He}var rc=null,sz=()=>{if(rc)return rc;let t=0;for(let e in dn)t=Math.max(t,ec(e));rc=[He];for(let e=1;e<=t;e++)rc.push("0:"+e);return rc.push(ZP,lk),rc},HP=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},WP=(t,e)=>{let[n,r]=HP(t),[o,s]=HP(e);return n!==o?n<o:r<s},iz=t=>t.getAttribute("data-tier")||He,fk=new WeakMap,sm=!1,Hu=null,uk=0;function az(t,e){if(sm&&!t){let n=Hu&&fk.get(Hu),r=n&&n.get(e);if(r&&r.epoch===uk)return r;let o=cm(Hu,e);return o&&(o.epoch=uk),o}return cm(t||Qn(),e)}function Sk(t,e){let n=cm(t||Qn(),e);return n?n.sheet:null}function cm(t,e){if(!t||!t.head)return null;let n=e||He,r=fk.get(t);r||(r=new Map,fk.set(t,r));let o=r.get(n);if(o&&o.node.parentNode===t.head&&o.node.sheet===o.sheet)return o;if(n!==He){let c=sz();for(let l=0;l<c.length&&WP(c[l],n);l++)cm(t,c[l])}let s=n===He?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!==He&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(WP(n,iz(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;if(l)t.head.insertBefore(s,l);else if(f)t.head.insertBefore(s,f.nextSibling);else{let u=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');u?t.head.insertBefore(s,u):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===He&&(GP=i),a}function cz(t){let e=t||Qn();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 lz=8;function We(t,e,n,r){if(!t||typeof t!="object")return"";if(sm)return KP(t,n,r);sm=!0,Hu=Qn(),uk++;try{return KP(t,n,r)}finally{sm=!1,Hu=null}}function KP(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]):sk&&!oc(u)?(o||(o=[]),o.push(u,String(d)),s++):i.push(jP(u,String(d),e)))}if(o&&s>=lz){let f=o.join("\0"),u=sk(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]&&pn(h[m],void 0,"atomic",!0)}i.push(p)}else if(o)for(let f=0;f<o.length;f+=2)i.push(jP(o[f],o[f+1],e));let l=[];for(let f=0;f<a.length;f++)l.push(pz(a[f][0],a[f][1],e,r));return i.concat(l).join(" ").trim()}var qP=new Map,fz=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function ic(t){return/^@(media|supports|container)\b/.test(t)}function Fr(t){let e=[],n=0,r=0;for(let o=0;o<t.length;o++){let s=t.charCodeAt(o);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(r,o).trim()),r=o+1)}return e.push(t.slice(r).trim()),e}function uz(t){return typeof t!="string"||!t||ic(t)?!1:Fr(t).every(e=>fz.test(e))}var JP=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},dk=32,pk=1024,hk=!1;function rm(t,e,n){if(hk)return;hk=!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 dz(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)||!JP(s)||n.length>dk||++r>pk)))return n.push(s),s})}}function pz(t,e,n,r){let o=dz(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&bk(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=sc.get(a);if(c){let _=qP.get(c);if(_)for(let b=0;b<_.length;b+=2)pn(_[b],void 0,"atomic",void 0,_[b+1]);return c}c=n?`_${n}_c${am(a)}`:`_c${am(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=uz(t)?`${l}.${c}`:l,u="",d=[],p=_=>typeof _=="string"&&(_.indexOf("{")!==-1||_.indexOf("}")!==-1),g=new Set,h=0,m=(_,b)=>{g.add(b);let w="",S=Object.keys(b);for(let A=0;A<S.length;A++){let C=S[A],O=b[C];if(O!=null)if(typeof O=="object"){let B=[..._,C];g.has(O)?rm("a style value that loops back to one of its own ancestors",t,B):JP(O)?B.length>dk?rm(`a style block nested more than ${dk} levels deep`,t,B):++h>pk?rm(`a style object with more than ${pk} nested blocks`,t,B):m(B,O):rm(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,B)}else{if(p(O))continue;w+=Qs(Ae(C),O)}}g.delete(b),w&&(_.length===0?u+=w:d.push({chain:_,body:w}))};m([],e);let y=_=>_.startsWith(":")||_.startsWith("["),x=(_,b=!0)=>{let w=b&&_.length===1?f:l;if(!_.length)return w;let S=Fr(_[0]).map(A=>A.includes("&")?A.replace(/&/g,w):y(A)?`${w}${A}`:`${w} ${A}`);for(let A=1;A<_.length;A++){let C=Fr(_[A]),O=[];for(let B of S)for(let $ of C)$.includes("&")?O.push($.replace(/&/g,B)):y($)?O.push(B+$):O.push(B+" "+$);S=O}return S.join(", ")},E=[],T=(_,b)=>{let w=_.filter(ic),S=x(_.filter(O=>!ic(O)),w.length===0),A=`${S}{${b}}`;for(let O=w.length-1;O>=0;O--)A=`${w[O]}{${A}}`;A=$r(A,S,i);let C=wk(A,void 0,"atomic");E.push(A,C),pn(A,void 0,"atomic",void 0,C)};u&&T([t],u);for(let _ of d)T([t,..._.chain],_.body);return qP.set(c,E),sc.set(a,c),c}var Wu=null;function Gu(t){let e=Wu,n=[];Wu=n;try{t()}finally{Wu=e}return n}function Yu(t){if(!Array.isArray(t))return;Sk();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++,pn(n[0],void 0,r,void 0,n[2]||void 0)}e>0&&ik(e)}function Ot(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Sk(),typeof t=="string"){let s=t.indexOf("--")!==-1;pn(t,void 0,s?"variable":"global"),s&&ik(1);return}let e=bk(),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=ak(i);a&&pn(`${s}{${a}}`,void 0,"keyframes");continue}if(ic(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=ak(c);l&&pn(`${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"||(oc(d)&&f++,l+=Qs(Ae(d),p)))}u&&(l+=BP(c)),n+=f,pn($r(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else if(c!=null){let l=oc(a);l&&n++,pn(`${s}{${Qs(Ae(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&&ck(u))continue;c=!0}else oc(u)&&l++,a+=Qs(Ae(u),d)}if(f&&(a+=BP(i)),n+=l,a&&pn($r(`${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&&ck(p))continue;ic(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)Ot({[`${s} ${p}`]:i[p]});for(let p of u)Ot({[p]:{[s]:i[p]}})}}}n>0&&ik(n)}function ac(t,e){return pn(`@keyframes ${t}{${ak(e)}}`,void 0,"keyframes"),t}function QP(){sc.clear(),_k.clear(),GP=null,hk=!1}function xk(){return sc.size}var tL="3.14.856";M();var ny={};F(ny,{DELEGATED_EVENTS:()=>cc,LIFECYCLE_EVENTS:()=>tr,MIXINS:()=>um,MOUNT_YIELD_BUDGET_MS:()=>ui,NON_BUBBLING_EVENTS:()=>dm,REGISTRY:()=>Yt,SVG_TAGS:()=>gc,addDelegatedEvent:()=>Xu,addMethods:()=>_c,adoptHydrationNode:()=>ZE,applyExtends:()=>dc,attachElement:()=>Bo,cacheNode:()=>Lo,create:()=>Xt,createHTMLNode:()=>hc,detectTag:()=>nr,dispose:()=>yn,dropMountWork:()=>Ed,elementPath:()=>Gm,flushMounts:()=>Ac,globalEventKeyInfo:()=>ym,holdMountFlush:()=>li,inertOutsidePlugin:()=>ey,isSvgTag:()=>jr,isValidTag:()=>pc,mountIdle:()=>Vo,mountPending:()=>Qm,mountYieldBudget:()=>lr,refreshContextProto:()=>wc,registerEvent:()=>fc,registerGlobalEvent:()=>bm,releaseMount:()=>Ge,remove:()=>bc,removeDelegatedEvent:()=>Zu,settleBuiltAttributes:()=>jo,update:()=>yc,whenConnected:()=>Ro,whenMountIdle:()=>Re,whenMounted:()=>Wr,yieldToMain:()=>fr});var ct={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};var Yt=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"]),um={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},tr=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"]),dm=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"]),pm=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),cc=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 ti=new Set;function lc(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 Ro(t,e){let n=t&&t.node,r=t&&t.__ref;if(!(!n||!r||typeof e!="function")){if(lc(t)){e(t);return}(r.__onConnected||(r.__onConnected=[])).push(e),ti.add(t)}}function hm(){if(ti.size)for(let t of ti){let e=t.__ref,n=t.node;if(!e||!n){ti.delete(t);continue}if(!lc(t))continue;ti.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 eL(t){ti.size&&ti.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var vk=new WeakMap,hz={passive:!0},gz={passive:!0,capture:!0},sL=(t,e)=>pm.has(t)?e?gz:hz:e||!1;function iL(t){let e=vk.get(t);return e||(e={handlers:new Map,installed:new Set},vk.set(t,e)),e}function mz(t,e){let n=iL(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}},sL(t,r))}function Xu(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=iL(r);mz(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function Zu(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=vk.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function hn(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function gm(t){return t.charAt(2).toLowerCase()+t.slice(3)}var yz=/^[A-Za-z_$][\w$]*$/;function Ju(t,e){return typeof e!="string"||!yz.test(e)?e:function(r){return t.call(e,r)}}function bz(t){return cc.has(t)&&!tr.has(t)}function mm(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&&ht()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&ht()}}var aL=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function _z(t,e){return aL(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:pm.has(t),once:e.once===!0}:sL(t,!1)}function wz(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 fc(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=mm(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=wz(o,a,i));let l=!dm.has(t)&&bz(t)&&!aL(r),f=l?null:_z(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;Xu(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;Zu(t,o,u)}else o.removeEventListener(t,i,f)})}var kk=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function ym(t){if(typeof t!="string")return null;for(let e=0;e<kk.length;e++){let n=kk[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:kk[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function Sz(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=Ju(t,r),typeof r!="function"?null:(s===void 0&&(s=pm.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function xz(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 Ek=/^@media\s+/i,kz=/^[@[.#&:>*~+]/,nL=new Set;function rL(t,e){!tt()||nL.has(t)||(nL.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function Ez(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&&!Ek.test(n)){if(s=o(n.slice(1)),!s)return rL(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return Ek.test(s)?s.replace(Ek,"").trim()||null:kz.test(s)?(rL(n,`names "${s}", which is not a media query`),null):s}function vz(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function cL(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function bm(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)oL(t,e,n[o]);return}oL(t,e,n)}}function oL(t,e,n){let r=e.__ref,o=Sz(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=Ez(e,o.query),!o.query))return;let s=xz(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=mm(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(lc(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!vz(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(()=>{cL(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&Az(e,i,d,()=>l)}function Az(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||Ro(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()&&cL(i,"load",n.listener,n.options))}))}var Ak=Symbol("handlerChain.none"),Tz=new Set(["inView","leaveView"]),Cz=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),uc=new WeakMap,lL=new WeakMap,Rk=!1,Tk=t=>t!==null&&typeof t=="object"&&t.always===!0;function Oz(t){let e=gm(t);return Tz.has(e)?!0:tr.has(e)&&!Cz.has(e)}var fL=new Set;function Rz(t){fL.has(t)||!tt()||(fL.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 Ck(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Qu(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},r=function(...s){return Dz(n,this,s)};return uc.set(r,n),Rk=!0,r}function Ok(t){let e=lL.get(t);return e||(e=Qu([Ck(t)],null),lL.set(t,e)),e}function Pz(t,e){let n=uc.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Qu(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=Qu(n.always,Ck(e))),a}let r=n.next||(n.next=new WeakMap),o=r.get(e);if(o)return o;let s=Tk(e)?uc.get(Ok(e)):typeof e=="function"?uc.get(e):void 0;return o=s?Qu(n.always.concat(s.always),s.own):Qu(n.always,Ck(e)),r.set(e,o),o}function Lz(t,e,n){let r=Tk(e),o=!r&&Rk&&typeof e=="function"&&uc.has(e);if(!r&&!o&&!Tk(n))return Ak;if(!Oz(t))return Rz(t),Ak;let s=r?Ok(e):o?e:null;return s?Pz(s,n):Ok(n)}function uL(t,e,n,r){if(!hn(e))return!1;let o=Lz(e,n,r);return o===Ak?!1:(t[e]=o,!0)}function Pk(t){if(typeof t=="function"){let e=Rk?uc.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 Dz(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]:Iz(i):o}function Iz(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 Mz=1e-6,dL=new WeakMap;function Nz(t,e,n){let r=t.defaultView,o=r&&r.IntersectionObserver;if(typeof o!="function")return null;let s=dL.get(t);s||dL.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=>$z(a,l),c)}catch{return null}return s.set(i,a),a}function $z(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-Mz;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&&hL(t,o,l);try{l.run(r)}catch(f){Fz(f)}}}}}function Fz(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function hL(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 pL(t,e,n,r,o){let s=Ju(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=Nz(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:mm(t,s),dead:!1};u.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>hL(f,u,d))}function gL(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return Gt("viewEvents",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=Pk(t.onInView);for(let i=0;i<o.length;i++)pL(t,e,n,"in",o[i]);let s=Pk(t.onLeaveView);for(let i=0;i<s.length;i++)pL(t,e,n,"leave",s[i])}Mt();Mt();function gn(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();mt(n);try{return e()}finally{ht()}}var Te=es||(t=>{let e=$e();if(!e)return t();yl(null);try{return t()}finally{yl(e)}});M();M();var _L=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Bz=["none","forwards","backwards","both"],jz=["normal","reverse","alternate","alternate-reverse"],Uz=["running","paused"],Vz=/^(?: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*\))$/,zz=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=>Vz.test(r.replace(/\s+/g,"")))},mL=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),Hz={transform:zz,translate:mL,rotate:t=>mL(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},Wz=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},Kz=t=>{if(!k(t))return null;let e=null,n=-1;for(let r in t){let o=Wz(r);o==null||!k(t[r])||o>=n&&(n=o,e=t[r])}return e},qz=t=>{let e=Kz(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=Hz[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},Gz=(t,e)=>{if(k(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return k(r)?r:null},Yz=["reverse","alternate","alternate-reverse"],wL=(t,e,n)=>{let r=n||e.animationDirection;return r&&Yz.includes(String(r))?"both":qz(Gz(t,e))?"backwards":"both"},Xz=0,yL=new Map,Lk=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(k(t)){let o=JSON.stringify(t),s=yL.get(o);if(s)return s;let i=`smbls-anim-${Xz++}`,a=ac(i,t);return yL.set(o,a),a}let r=n&&n[t];return k(r)?ac(t,r):t},SL=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,Zz=/^(?:\d+(?:\.\d*)?|\.\d+)$/,xL=/^(?:cubic-bezier|steps|linear)\(/,Jz=/^(?:calc|min|max|clamp)\(/,Qz=t=>t.includes("(")||t.startsWith("--"),tH=(t,e)=>{if(!Dn.test(t))return!1;let n=e&&e.sequence;if(!k(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},eH=t=>{if(!v(t))return!1;let e=t.trim();return _L.includes(e)||xL.test(e)||e.startsWith("var(")},nH=(t,e)=>!!e&&eH(e[t]||e[Er(t)]),rH=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],oH=t=>ut(String(t)),sH=(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 oH(t))e&&e[u]?o=u:SL.test(u)||tH(u,n)?a("duration",u)||a("delay",u):_L.includes(u)||nH(u,n)?c("timingFunction",u):xL.test(u)?a("timingFunction",u):u==="infinite"?c("iterationCount",u):Zz.test(u)?a("iterationCount",Number(u)):jz.includes(u)?c("direction",u):Bz.includes(u)?c("fillMode",u):Uz.includes(u)?c("playState",u):Qz(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=rH.find(p=>r[p]==null);if(!d)break;r[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:l,...r,opaqueSlots:f}},iH=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=P()||{};return Pn(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>sH(o,n,r))},bL=(t,e)=>SL.test(t)||e&&!Jz.test(t)&&!/^(?:var|env)\(/.test(t)?t:ke(t).timing||t,aH=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:Lk(t.name,e),animationDuration:t.duration!=null?bL(t.duration,n("duration")):ke(e.animationDuration||"A").timing,animationDelay:t.delay!=null?bL(t.delay,n("delay")):ke(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:ze(t.timingFunction):ze(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||wL(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},cH={animationName:"none",animationPlayState:"running",animationDirection:"normal"},lH=(t,e)=>{let n=t.map(o=>aH(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??cH[o]).join(", "))}return r},Dk={animation:(t,e)=>{if(t!=null){if(v(t)&&/[\s,]/.test(t)){let n=iH(t,e);if(n.length)return lH(n,e)}return{animationName:Lk(t,e),animationDuration:ke(e.animationDuration||"A").timing,animationDelay:ke(e.animationDelay||"0s").timing,animationTimingFunction:ze(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||wL(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:Lk(t,e)}),animationDuration:t=>({animationDuration:ke(t).timing}),animationDelay:t=>({animationDelay:ke(t).timing}),animationTimingFunction:t=>({animationTimingFunction:ze(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};M();var _m=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!v(e))return;let[r,o]=ut(e);return{...j(t+"Start",r,n),...j(t+"End",o||r,n)}},Ik={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=>Zt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("height",e),...Nt("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(!v(t))return;let[e,n]=ut(t);return{...Nt("minWidth",e),...Nt("maxWidth",n||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("minHeight",e),...Nt("maxHeight",n||e)}},size:t=>{if(!v(t))return;let[e,n]=ut(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(!v(t))return;let[e,n]=ut(t);return{...Nt("minInlineSize",e),...Nt("minBlockSize",n||e)}},maxSize:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("maxInlineSize",e),...Nt("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(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingInlineStart",e),...Nt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("paddingBlockStart",e),...Nt("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(!v(t))return;let[e,n]=ut(t);return{...Nt("marginInlineStart",e),...Nt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!v(t))return;let[e,n]=ut(t);return{...Nt("marginBlockStart",e),...Nt("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)=>_m("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>_m("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)=>_m("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>_m("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:qg(t)}),columnGap:(t,e)=>Ve(e,"columnGap",t),rowGap:(t,e)=>Ve(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!v(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(!v(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Ir(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Ir(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Ir(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Ir(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Ir(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Ir(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:Zs(t,"backgroundSize",Fu,e)}),backgroundPosition:(t,e)=>({backgroundPosition:Zs(t,"backgroundPosition",Bu,e)}),maskSize:(t,e)=>({maskSize:Zs(t,"maskSize",Fu,e)}),maskPosition:(t,e)=>({maskPosition:Zs(t,"maskPosition",Bu,e)})};var Mk={fontSize:t=>Ru(t)||t,fontFamily:t=>({fontFamily:Cu(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 Nk={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 $k={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:ut(t).map(n=>zt(n,"k").k).join(" ")}},left:t=>zt(t,"left"),top:t=>zt(t,"top"),right:t=>zt(t,"right"),bottom:t=>zt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>zt(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=ut(t).map(n=>zt(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};M();var wm=0,Sm=()=>{wm++},xm=()=>{wm>0&&wm--},de=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:wm>0?null:n&&n.resolvedTheme||null},pe=(t,e)=>{if(e==null||e==="")return;if(!k(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(k(s)){let i=pe(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},kL=t=>{let e={};for(let n in t){let r=t[n];e[n]=k(r)?kL(r):v(r)?r+" !important":r}return e},ei=t=>(e,n)=>{let r=n&&v(e)&&!P().useVariable,o=zg(e,r?de(n):null);return k(o)?pe(t,o):{[t]:o}},Fk={theme:(t,e)=>{if(t)return e.themeModifier?un(t,`@${e.themeModifier}`):un(t)},color:(t,e)=>{let n=de(e);if(t)return pe("color",qt(t,n))},background:(t,e)=>{let n=de(e);if(t)return v(t)&&t.includes("gradient")&&t.includes("(")?{background:Co(t,n)}:pe("background",qt(t,n))},backgroundColor:(t,e)=>{let n=de(e);if(t)return pe("backgroundColor",qt(t,n))},backgroundImage:(t,e,n,r)=>{let o=de(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 pe("backgroundImage",Kg(t,o))},textStroke:t=>{let e=Hg(t);if(e!=null)return{WebkitTextStroke:e}},outline:ei("outline"),outlineWidth:(t,e)=>j("outlineWidth",t,e),outlineColor:(t,e)=>{let n=de(e);if(t)return pe("outlineColor",qt(t,n))},outlineOffset:(t,e)=>j("outlineOffset",t,e),border:ei("border"),borderColor:(t,e)=>{let n=de(e);if(t)return pe("borderColor",qt(t,n))},borderTopColor:(t,e)=>{let n=de(e);if(t)return pe("borderTopColor",qt(t,n))},borderBottomColor:(t,e)=>{let n=de(e);if(t)return pe("borderBottomColor",qt(t,n))},borderLeftColor:(t,e)=>{let n=de(e);if(t)return pe("borderLeftColor",qt(t,n))},borderRightColor:(t,e)=>{let n=de(e);if(t)return pe("borderRightColor",qt(t,n))},borderLeft:ei("borderLeft"),borderTop:ei("borderTop"),borderRight:ei("borderRight"),borderBottom:ei("borderBottom"),shadow:(t,e)=>{let n=de(e);if(t)return pe("boxShadow",Wg(t,n))},boxShadow:(t,e)=>{if(!v(t))return;let[n,r]=t.split("!importan"),o=de(e),s=r?" !important":"",i=$u(n.trim(),o);return v(i)?{boxShadow:i+s}:pe("boxShadow",s?kL(i):i)},textShadow:(t,e)=>pe("textShadow",$u(t,e?de(e):null)),columnRule:ei("columnRule")};var td={transition:t=>{let e=Yg(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:ju(t)}),transitionDelay:t=>({transitionDelay:ju(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ze(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};M();var Bk={flow:(t,e)=>{let n=e.reverse;if(!v(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(!v(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};M();var fH=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,EL=t=>{if(!v(t))return t;let e=P().sizes;return e?t.replace(fH,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},er=t=>EL(Gg(t)),jk={gridTemplateColumns:t=>({gridTemplateColumns:er(t)}),gridTemplateRows:t=>({gridTemplateRows:er(t)}),gridAutoColumns:t=>({gridAutoColumns:er(t)}),gridAutoRows:t=>({gridAutoRows:er(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:er(t)}),templateColumns:t=>({gridTemplateColumns:er(t)}),autoColumns:t=>({gridAutoColumns:er(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:er(t)}),templateRows:t=>({gridTemplateRows:er(t)}),autoRows:t=>({gridAutoRows:er(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var vL="breakpoints",uH=new Set(["window","media"]),AL=/^-?[A-Za-z_][\w-]*$/,TL=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),dH=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&AL.test(n)&&!TL.has(n)?n:null},km=(t,e)=>{if(typeof t=="function")try{t=t(e,e&&e.state,e&&e.context)}catch{return null}if(typeof t!="string")return null;let n=t.trim();return!n||uH.has(n)?null:n==="container"?dH(e)||vL:AL.test(n)&&!TL.has(n)?n:null},pH=/^@media\s+/i,hH=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,gH=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,mH=/height|block-size|aspect-ratio|orientation|device-|resolution/i,Uk=t=>{if(typeof t!="string")return null;let e=t.trim().replace(pH,"").replace(hH,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let r of n){let o=r.trim();if(o.charCodeAt(0)!==40||o.charCodeAt(o.length-1)!==41)return null;let s=o.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!gH.test(s)||mH.test(s))return null}return e},Vk={breakpointsFrom:(t,e)=>{let n=km(t,e);if(!n)return;let r={},o=e&&e.container!=null;return!o&&(!e||e.containerType==null)&&(r.containerType="inline-size"),!o&&(!e||e.containerName==null)&&(r.containerName=n),r}};var xt={...Dk,...Ik,...Mk,...Nk,...$k,...Fk,...td,...Bk,...jk,...Vk};var Bt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","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","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","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","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","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","textBox","textBoxEdge","textBoxTrim","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 yH=/^[a-z][0-9]?$/,CL=/var\(\s*(--[A-Za-z0-9-]+)/g,bH=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}},_H=Object.prototype.propertyIsEnumerable,OL=(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"&&_H.call(o,e))return!0}return!1},zk=/[(),\s]+/,Hk=(t,e)=>{let n=null,r=t.split(zk);for(let o=0;o<r.length;o++){let s=r[o];s&&e(s)&&(n||(n=[])).push(s)}return n},Wk=(t,e)=>Dn.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),wH=(t,e)=>{if(!e.size)return[];let n=o=>e.has(o),r=Hk(t,o=>Wk(o,n));return r?[...new Set(r)]:[]},SH=(t,e)=>{if(!e.size)return[];let n=[];CL.lastIndex=0;let r;for(;r=CL.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(!yH.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},Em=new Set,RL=(t,e,n)=>{if(!tt()||!v(e)||!e)return;let r;try{r=P()}catch{return}let{knownLetters:o,knownVars:s}=bH(r);if(!o.size&&!s.size)return;let i=wH(e,o),a=SH(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}`;Em.has(f)||(Em.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}`;Em.has(u)||(Em.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 xH=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,kH=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=Us(s||t)?js(()=>ne(e,n)):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(xH),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},PL=(t,e,n)=>({[t]:ne(e,n)}),ed=(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}},Kk=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},EH=(t,e,n)=>{let r=t.slice(1),o=Kk(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ne(e,n)},vH=(t,e,n)=>({[t]:e}),AH=(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=Kk(r,n);s!==void 0&&(o=s)}if(o)return ne(e,n)},TH=(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=Kk(r,n);s!==void 0&&(o=s)}if(!o)return ne(e,n)},qk=(t,e)=>ne(t,e),Gk={"@":kH,":":ed,"[":ed,"*":ed,"+":ed,"~":ed,"&":PL,">":PL,$:EH,"-":vH,".":AH,"!":TH};var vm=io(),LL=(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"&&v(c)){let l=DL(c,e);l&&(n.unpack?Lt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=St(c,e);Lt(o,qk(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=L(l)?l(e,e.state,e.context):l;f&&i(a,f),!vm&&k(o[a])&&(o[a].label=a)}else if(xt[a]){let l=St(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>Lt(u,d),{}));let f=xt[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>Lt(u,d),{})),f&&i(a,f),!vm&&k(o[a])&&(o[a].label=a)}else if(Bt.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})`),vm||RL(a,l,e),i(a,{[a]:l}),!vm&&k(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&ht()}},DL=(t,e)=>{if(!v(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(!k(s))continue;let i=pt(s);r=r?ae(r,i):i}if(r)return ne(r,e)},IL=(t,e)=>{let n={};for(let r in t){let o=Gk[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"?ae(n[i],s[i]):n[i]=s[i])}}return n},ne=(t,e,n={unpack:!0})=>{let[r,o]=LL(t,e,n),s=IL(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Bl(r,s);r._selectors=s}return r},CH=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};M();var ML=t=>{if(k(t))return ne(t,t)},OH=(t,e)=>{let n=ML(t);return typeof e=="function"?e(n):We(n)};M();var NL=/\s*!important\s*$/,RH=()=>{let t;try{t=P()}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=OL(t,s),n.set(s,i)),i},o=s=>Ha(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(Wk(s,r)||o(s))}},PH=(t,e)=>{let n=String(t).split(zk);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},LH=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Ae(t),e)}catch{return!1}},$L=new Set,DH=(t,e,n)=>{if(!tt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;$L.has(o)||($L.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}"`))},IH=(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(PH(o,s))return!1;n=!0}}return n},MH=(t,e,n,r)=>{if(!v(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=xt[t];if(!o||!Bt.has(t))return null;let s=NL.test(e),i=s?e.replace(NL,""):e,a=Hk(i,r.isToken);if(!a||LH(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(!IH(c,a))return DH(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},FL=(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=FL(i,e,n);c!==i&&(o=!0),r[s]=c;continue}let a=MH(s,i,e,n);a?(o=!0,Object.assign(r,a)):r[s]=i}return o?r:t},Yk=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:FL(t,e,RH());if(!vt||!dn)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 Am=vt,Po=dn,Tm=nc||(()=>!1),BL=zu||Tm,jL=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Br=Ae||(t=>jL(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),nd=qu||(t=>jL(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function VL(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 dc(t,e,n){let r=VL(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=zL(r[i],s);a&&a!==e&&HL(t,a,n,new Set([e]))}}function zL(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 HL(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=VL(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=zL(o[c],a);l&&HL(t,l,n,r)}}let s=Zk(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]=Ke(t[i],a):t[i]=a)}}var Xk=class{constructor(){this.rank=0,this.ranks=null}mark(e){NH(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}},Cm=new Set;for(let t of[Po,Am])for(let e in t)Cm.add(e),Cm.add(nd(e));var UL=new Map;function NH(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=UL.get(t);return n===void 0&&(n=!!xt[t]||Cm.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&Cm.has(Br(t)),UL.set(t,n)),n}function Zk(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new Xk),n.rank++,n}function WL(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 Ke(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]=Ke(s,i):n[o]=i)}return n}Mt();Mt();Mt();var ni="http://www.w3.org/2000/svg",gc=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"]),$H=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 pc(t){return $H.has(t)||gc.has(t)}function jr(t){return gc.has(t)}function nr(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"&&pc(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]),pc(o)&&!r.has(o)?o:"div"}var KL={};function hc(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(jr(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===ni)return n.createElementNS(ni,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function Lo(t){let e=t.tag=nr(t),r=jr(e)&&(e==="svg"||t.parent?.node?.namespaceURI===ni)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=KL[r];if(s||(s=KL[r]=hc(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?hc(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function rd(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}Mt();ca();var qL=new WeakMap,GL=null,YL=null;function FH(t,e){let n=t===GL?YL:qL.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},qL.set(t,n)),GL=t,YL=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 Jk(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&FH(n,e))}function rr(t,e,...n){return Jk(e,t)?co(t,e,...n):!1}function mn(t,e,n){rr("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var BH=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function ZL(t,e,n){return Te(()=>gn(t,()=>e.call(t,n,t,t.state,t.context)))}function jH(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 JL(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function")return;if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return Gt("bridge",t);if(!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,jH(t,e);let o;try{o=ZL(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,mn(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>XL(t,r,s),s=>{r.failed=!0,mn(t,"onBridgeMount",s)});return}XL(t,r,o)}function XL(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){tD(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=K(()=>{e.disposed||gn(t,()=>{try{let o=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);o&&typeof o.then=="function"&&o.catch(s=>mn(t,"onBridgeUpdate",s))}catch(o){mn(t,"onBridgeUpdate",o)}})},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function QL(t){if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return;let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&tD(t,e))}function tD(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,BH(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=ZL(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>mn(t,"onBridgeDestroy",o))}catch(r){mn(t,"onBridgeDestroy",r)}}function mc(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function od(t){let e=t.__mount;return e?e.pending:0}Mt();function yc(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"&&Om(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>or(r,!1),c=>{or(r,!0),rr("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(or(r,!1),a===!1)return n}catch(a){throw or(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;Dp(()=>{if(t.state&&Et(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&ri(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=si(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=Br(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];oi(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(Yt.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&&Xt(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++)eE(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)Qk(s[c])&&(a=!0);a&&tE(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 rr("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}Mt();function yn(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&eL(t),$e())return Te(()=>yn(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&&QL(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&&yn(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&&yn(i)}}e.__keepNode?e.__keepNode=!1: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 bc(){yn(this)}M();M();function oE(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 eD=new Set;function nD(t,e,n){let r=String(e);if(eD.has(r))return;eD.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.`;oE(t,"error",[a]),console.error(a)}var oD=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),UH=new Set,sD=t=>oD(nE,t)&&!(na||UH).has(t),rD=new Set;function iD(t,e){rD.has(t)||(rD.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 VH(...t){return oE(this,"warn",t),vf.apply(this,t)}function zH(...t){return oE(this,"error",t),Ss.apply(this,t)}var nE={update:yc,remove:bc,getDB:Of,getQuery:Rf,getRootData:xf,getPath:bf,nextElement:Af,previousElement:Tf,verbose:wa,warn:VH,error:zH,variables:Cf,spotByPath:yf,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,s=t!=null?ct.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&r?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(o=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let c=r.__setQueued;c&&(r.__setQueued=null,this.set(c.content,c.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 Ro(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:Sf,getRootState:wf,getRootContext:kf,getContext:Ef,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=sD(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&iD(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=ls;if(!s||!s(o))return o.call(this,...e);tt()&&nD(this,t,Fe(o));return}tt()&&nD(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)}},rE=new WeakMap;function HH(t){if(!t)return nE;let e=rE.get(t);if(e)return e;e=Object.create(nE);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return rE.set(t,e),e}function _c(t){let e=HH(t.context);Object.setPrototypeOf(t,e)}function wc(t){if(!t)return!1;let e=rE.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(sD(r)&&!oD(e,r)){iD(r,"refreshContextProto");continue}e[r]=n[r]}return!0}M();M();var lE={};F(lE,{STATE_METHODS:()=>aD,applyInitialState:()=>Rm,applyStateMethods:()=>Ce,callStateMethod:()=>id,createState:()=>iE,isTracking:()=>cE,useHostState:()=>aE});Mt();Mt();var aD=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"]),sd=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},In=(t,e,n,{onlyIfAbsent:r}={})=>{sd(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&sd(t,e,n)},id=(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)},Ce=(t,e)=>{if(Et(e)){let o=e.__raw||e;In(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),In(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}),In(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}),In(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}),In(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}),In(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),In(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),In(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),In(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&Et(a.parent);)a=a.parent;return id(a,"update",s,i)}),In(o,"parentUpdate",function(s,i={}){if(e.parent)return id(e.parent,"update",s,i)}),In(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=Et(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,Et(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}};sd(e,"$settled",function(){return Ip().then(()=>e)});for(let o in r)if(sd(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){$p(o,"");continue}sd(e,o,r[o])}};var iE=function(t,e,n){return t.state=Rm(t,e,n),t.state},Rm=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ce(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",WH(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=pr({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ce(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!Et(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=pr({...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)),Ce(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return Et(o)?(o.__element=t,o):e?.state||{}};function sE(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 WH(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?sE(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?sE(o,s):o??{}}let r=sE(n.state,t);if(r&&typeof r=="object"&&!Et(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}Mt();var aE=(t,e)=>{if(!t)return lD;let n=qH(t,e);return!n||!n.state?lD:YH(n.state)},cE=()=>$e()!=null,KH=128;function qH(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<KH&&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 GH={get(t,e){return t[e]}},cD=new WeakMap,YH=t=>{let e=cD.get(t);return e||(e=new Proxy(t,GH),cD.set(t,e)),e},lD=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var XH=["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"],ZH=["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"],JH=["requiredExtensions","systemLanguage"],fD={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"]},QH=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),t9=()=>{let t={};for(let e in fD)t[e]=[...fD[e],...QH.has(e)?[]:JH,...ZH];return t},Ur={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"],...t9()},hD=["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"],gD=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,uD=new Map,Vr=t=>{let e=uD.get(t);return e===void 0&&(e=gD(t)||bD(t),uD.set(t,e)),e},mD=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"]),fE=new Set;for(let t in Ur)t==="default"||t==="aria"||t==="svg"||Ur[t].forEach(e=>{e.startsWith("on")||fE.add(e)});var yD=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(fE.has(n))return n;let r=t.toLowerCase();return fE.has(r)?r:null},bD=t=>mD.has(t)?t.toLowerCase():yD(t),e9=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),n9=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),ii=t=>typeof t=="string"&&(e9.has(t)||t.startsWith("aria-")),sr=(t,e)=>{if(e!==!0&&e!==!1)return e;if(ii(t)){let n=n9.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},dD=new Map,bn=(t,e)=>{let n=Ur.default,r=Object.prototype.hasOwnProperty.call(Ur,t)?Ur[t]:null,o=r?r.length:-1,s=dD.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},dD.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=r9(t,e),s.answers.set(e,i)),i},r9=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||gD(e)||mD.has(e)||Ur.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Ur,t)){let n=Ur[t];if(n.includes(e))return!0;let r=yD(e);return r!==null&&n.includes(r)}return!1},dE=t=>{if(!v(t))return!1;let e=t.toLowerCase();return hD.includes(e)},o9=(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])Ut(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(Ut(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=bn(t,o),i=dE(o);if(Ut(e[o])&&(s||i)){let a=Vr(o)||o;r[a]=e[o]}}return r},s9=(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},Do=(t,e)=>{let n=t.call("exec",e,t);if(n)return v(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},uE=(t,e)=>{let n=(t.preSrc||"")+(Do(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},Io={src:t=>uE(t,t.src),href:t=>Do(t,t.href),action:t=>Do(t,t.action),poster:t=>uE(t,t.poster),data:t=>Do(t,t.data)},pE=t=>{let e=t.tag||"div",n={};for(let r in Io)if(t[r]!==void 0&&bn(e,r)){let o=Io[r](t);o!==void 0&&(n[r]=o)}return n},pD=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return L(n)?n.call(e,e):!!n},i9=(t,e,n)=>{if(t==="$"){let o=pD(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=pD(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},a9=new Set(["$",".","!"]),hE=(t,e,n,r=i9)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return L(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!a9.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=bn(e,f),d=dE(f);if(!u&&!d)continue;let p=Vr(f)||f;s(p,c[f],a,l)}}return o};var Pm="3.14.809";var _D="__SMBLS_ELEMENT_ID_ENGINE__",wD=(t,e,n)=>{let r=e||Pm,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[_D];return s&&s.engine&&s.version===r?s.engine:(s||(o[_D]={version:r,engine:t}),t)};var c9=new Set(["rows","cols","wrap","fill","stroke","offset"]),Lm=(t,e)=>c9.has(e)&&bn(t,e),Mo=(t,e)=>!!(xt[e]||Bt&&Bt.has(e))&&!Lm(t,e);var tI=wD({uniqId:1,scopedStyleId:0},Pm),xc=[],No=new Set,DE=!1,eI=0,vc=null,ld=null;function Cc(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function nI(){return typeof document<"u"&&document.visibilityState==="hidden"}var l9=250,f9=1e3;function u9(){return ld&&(ld!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||nI())?!0:Cc()-eI>=f9}function d9(){if(DE=!0,eI=Cc(),ld=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Ac,0);vc=t?()=>t(e):null;return}if(nI()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Ac,l9);vc=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;ld=requestAnimationFrame;let e=requestAnimationFrame(Ac);vc=t?()=>t(e):null}}function md(){if(DE){if(!u9())return;let t=vc;if(vc=null,t)try{t()}catch{}}d9()}var rI=300,oI=15e4,AE=0;function li(){AE++;let t=!1;return()=>{t||(t=!0,!(--AE>0)&&(xc.length||No.size)&&md())}}function Ac(){if(DE=!1,vc=null,ld=null,AE>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&No.size&&yW(),!xc.length))return;let t=xc.splice(0,xc.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=Cc());let o=Cc()-r.__mountFirstAttemptAt;r.__mountAttempts<=rI&&o<oI?(xc.push(n),md()):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"&&JL(n),typeof n.onMounted=="function"&&Qt("Mounted",n,n.__ref?.__mountOptions||{})}}}function TE(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&gd(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,xc.push(t),md())}function Im(t,e){typeof t.onContentUpdate=="function"&&(rr("contentUpdate",t,e),gn(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(mn(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function p9(t){return t.toLowerCase()}function sI(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function Mm(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function iI(t,e,n,r){return jm(r,Mm(t)||(e&&typeof e=="object"?Mm(e.key):void 0)||String(n))}function jm(t,e){if(!t||typeof e!="string")return e;let n=e;for(;h9(t,n);)n="$"+n;return n!==e&&g9(t,e,n),n}function h9(t,e){if(Yt.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 SD=new Set;function g9(t,e,n){if(!tt())return;let r=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",o=r+"::"+e;SD.has(o)||(SD.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 Xt(t,e,n,r={},o){if($e())return Te(()=>Xt(t,e,n,r,o));if(t==null||t===!1)return null;let s=N9(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=Mm(n);let i=Mm(t.key),a=Object.create(null);a.key=n||(i&&e?jm(e,i):i)||`_${tI.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||r.context||{},a.context.__create||(a.context.__create=Xt);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&&(mc(c).attachLater=!0),l=void 0);let f=t;if(t=cI(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=w9(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:f,key:n,ownKey:i,names:g,options:r}),typeof a.if=="function"&&mI(a,c,a.if),a}a.tag||(a.tag=nr(a)),Qt("Init",a,r);let u=ct.hydration,d=a.node=u!==null&&u.adopt(a)||Lo(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(Qt("AttachNode",a,r),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(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),MI(a,r),hI(a),gI(a);try{$I(a,r)}catch(g){Um(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(r.mountWhole===!0&&!(o&&o.holdTail)&&m9(a,e)?p.held=!0:Oc(a,e,l)),p.tail=()=>ct.mount.finish(a,r),a):(Tc(a,!0),(p===null||!p.attachLater)&&Oc(a,e,l),IE(a,r),a)}function Bo(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Oc(t,t.parent),!0)}function m9(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 aI(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){Oc(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&&(zr(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=rd(i,s.__textNode)),Oc(t,o,l?{position:"before",node:l}:void 0)}function Um(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?`
|
|
58
58
|
`+e.stack.split(`
|
|
59
59
|
`).slice(0,6).join(`
|
|
60
|
-
`):"")}}function vE(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&un(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),Jt("Create",t,e),Jt("Complete",t,e),Jt("Render",t,e),Jt("RenderRouter",t,e),bE(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&&ht()}}requestAnimationFrame(o)}};requestAnimationFrame(o)}}function Pm(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,ct.mount.hold(t))}var r9=new Set(["childProps","attr","style","scope","data","vars"]);function JD(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 x=n.substring(0,y),k=t.context?.components;k&&(k[x]||k["smbls."+x])?e={...e,extends:x}:k&&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 "${x}" but neither "${x}" nor "smbls.${x}" 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),lc(t,e,s);let i=Vk(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?Mm(o,r):r);continue}i&&i.mark(h),iE(t,h,e[h])}if(a)for(let h in a)iE(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)iE(t,h,c[h]);if(i)for(let h in c)i.mark(h)}ML(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=Lp(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=k9(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),mc(t),a9(t,o,e,s),e}function iE(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]=ze(r,n):s&&r9.has(e)?t[e]={...r,...n}:s&&YD(e)?t[e]=ze(r,n):t[e]=n}var o9=new Set(["key","parent","context","__ref"]);function s9(t,e){for(let r of Object.keys(t))o9.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})}ve(()=>JD(t,n,e.key,e.ownKey,t.parent,e.options))}function i9(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 aE(t,e,n){if(typeof t.onStateInit!="function"&&!zk(t,"stateInit"))return;let r=t.state;t.state=e;try{Jt("StateInit",t,n)}finally{t.state=r}}var cE=t=>({isDataOnlyKey:e=>ao(t).has(e)});function a9(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&&!Et(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Ae(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,x)=>{p.has(y)||us(u,y,l)&&(l[y]=x,p.add(y),Kn(u,y,x))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(vn(f,!1));for(let y in f.translations)m.has(y)||g(y,f.translations[y])}Et(l)||aE(t,l,r),t.state=Et(l)?l:ur(l,cE(t.context)),t.state.__element=t,t.state.root=t.state,Ae(t,t.state),ma?.(c,t.state),Jt("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ae(t,t.state);return}if(typeof a=="string"){if(t.state=tI(a,e),t.state&&typeof t.state=="object"&&!Et(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}Ae(t,t.state),l9(t,a,e),Jt("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(Et(c))t.state=c;else{let l=c||{};aE(t,l,r),t.state=ur(l,e?.state?void 0:cE(t.context))}}else if(Et(a))t.state=a;else{let c={...a};aE(t,c,r),t.state=ur(c,e?.state?void 0:cE(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,Ae(t,t.state),ma?.(a,t.state),Jt("StateCreated",t,r)}function dD(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 QD(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 tI(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[o,s]=QD(t,e);return s?dD(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=dD(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 c9(t,e){let[n,r]=QD(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 l9(t,e,n){let r=t.__ref;if(!r||!n||e==="."||!Et(n.state))return;r.__stateBinding&&r.__stateBinding.dispose();let o=ve(()=>K(()=>{let s=c9(e,n);!s||typeof s!="object"||s===t.state||ve(()=>eI(t,t.state,s,!0))},{depth:r.path?r.path.length:0,label:_t(r,"state")}));o._isStateBinding=!0,r.__stateBinding=o,r.__effects&&r.__effects.push(o)}function eI(t,e,n,r){let o=t.__ref;if(!o)return;if(r||t.state===e){t.state=n,r&&Ae(t,n),hD(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&&eI(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,hD(o))}function pD(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 hD(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 f9=new Set(["s","state","ctx","context"]),lE=new WeakMap;function u9(t){if(lE.has(t))return lE.get(t);let e=null;try{let n=typeof Ne=="function"?Ne(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 lE.set(t,e),e}function d9(t){let e=u9(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var p9=3,h9=/^(is|has)[A-Z0-9_$]/,g9=new Set(["routerOptions"]),gD=new WeakSet;function m9(t,e){if(typeof t!="function"||t.length!==2||e&&(h9.test(e)||g9.has(e))||gD.has(t))return!1;let n=d9(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<p9||f9.has(r)?!1:(gD.add(t),!0)}function y9(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"||Gt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||fn(a)||xt[a]||Bt&&Bt.has(a)||c!==45&&(hn(n,a)||(tt()&&m9(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&&ht()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function b9(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 zt(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return b9(t,e),n.apply(this,r)}}function bc(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function _t(t,e){return()=>t.path.join(".")+"::"+e}var mD=new Set;function ne(t,e,n){if(!tt())return;let r=_t(t,e)();mD.has(r)||(mD.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var yD=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,bD=new WeakMap,_9=t=>{let e=bD.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){yD.lastIndex=0;let r;for(;(r=yD.exec(n))!==null;)r[2].includes("{{")&&(e||(e=[])).push(r[2])}return bD.set(t,e),e},w9=(t,e)=>{let n=_9(t);if(n)for(let r=0;r<n.length;r++)e.add(n[r])},S9=(t,e)=>!fn(t)&&!Lo(e,t),fE=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&S9(t,r)&&w9(e,n)},_E=new WeakMap,id=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ad=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)?ze(t,e):t},cd=(t,e)=>t&&e?ze(t,e):t||e||null,nI=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&id(n,e)},Io=(t,e)=>nI(t,e)?ad(t.__ref.__runtimeSource[e]):null,si=(t,e)=>(e&&t&&typeof t=="object"&&_E.set(t,e),t),x9=t=>{if(!t||typeof t!="object")return;let e=_E.get(t);return e&&_E.delete(t),e},wE=(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++)wE(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&&wE(o.value,e,n)}}},k9=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Gt.has(r)||e&&id(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;wE(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},_D=(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}},rI=["attr","aria","data","metadata"],E9=t=>{if(rI.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},v9=(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&&id(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!E9(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||id(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&rI.includes(u)){for(let g in p)fE(g,p[g],n,r,d);continue}fE(u,p,n,r,d)}continue}fE(o,i,n,r,a)}return n};function oI(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=v9(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(y9(t),typeof t.text=="function"){let c=t.text,l=zt(t,t.textDeps,c),f=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Zt.call(t,d,t.state)),d},u=K(()=>{if(!n.contentManaged)try{let d=SD(t,n,f);if(d===Ce)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&ei(t,d)}catch(d){ne(n,"text",d)}},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(u),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Zt.call(t,c,t.state),f=K(()=>{if(n.contentManaged)return;let u=SD(t,n,l);u!==Ce&&(u!=null&&(t.text=u),t.node&&ei(t,u??""))},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(f),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Gt.has(c)&&!fn(c)&&!n.__exec[c]&&!Cm(s,c)){if(xt[c]){let l=t[c],f=zt(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=()=>{for(let k of g)t.node.classList.remove(k);g=null,h=void 0},y=()=>{fI(t,u,p,null),Tm(t,u,null),p=null},x=K(()=>{let k=t.context?.designSystem;k&&mt(k);try{let C=f(t,t.state,t.context);mm();let _;try{_=xt[u](C,t,t.state,t.context)}finally{ym()}if(Array.isArray(_)){let b={};for(let w of _)if(w)for(let S in w)b[S]=w[S];_=b}if(u==="show"||u==="hide"){t.node&&Dm(t,u,!!(_&&_.display),!0);return}if(_&&t.node&&T9(_)){let b=wc(_);if(b===null||b!==h){h=b;let w=Ve(_,null,t.context?.cssPrefix),S=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(S&&S.length)for(let A of S)t.node.classList.add(A);g=S}}p&&y(),d=void 0}else if(_&&t.node){g&&m();let b=wc(_);if(b===null||b!==d||!Sc(t.node,p,t)){d=b;let w=kD(t,_,p,u);p=od(t.node,w,t),Tm(t,u,p)}}else t.node&&(g&&m(),p&&y(),d=void 0)}finally{k&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(x),n.__exec[c]=l}else if(Bt&&Bt.has(c)){let l=t[c],f=zt(t,t[c+"Deps"],l),u=c,d,p=null,g=K(()=>{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||!Sc(t.node,p,t)){d=y;let x={[u]:m},k=kD(t,x);p=od(t.node,k,t),Tm(t,u,p)}}else d=void 0,p=null,Tm(t,u,null),u==="display"?pd(t,""):t.node.style[u]=""}finally{h&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];dI(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(P9(t),typeof t.html=="function"){let c=t.html,l=zt(t,t.htmlDeps,c),f=K(()=>{un(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:_t(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=zt(t,t.valueDeps,c),f=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Zt.call(t,d,t.state)),d},u=K(()=>{try{let d=or(t,n,"value",f);if(d===Ce)return;xD(t,d)}catch(d){ne(n,"value",d)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(u),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Zt.call(t,c,t.state),f=K(()=>{try{let u=or(t,n,"value",l);if(u===Ce)return;xD(t,u)}catch(u){ne(n,"value",u)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(f),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=zt(t,t.styleDeps,c),f,u=null,d,p,g,h,m=K(()=>{let y=l(t,t.state,t.context),x=t.context&&t.context.designSystem,k;if(y&&typeof y=="object"&&y===d&&x===g){let _=wc(y);k=_!==null&&_===p?h:ri(t,y),p=_}else k=ri(t,y),p=void 0;d=y,g=x,h=k;let C=wc(k);(C===null||C!==f||!Sc(t.node,u,t))&&(f=C,SE(t.node,u,k,t),ir(t.node,k,t),u=od(t.node,k,t))},{depth:n.path.length,label:_t(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=zt(t,bc(t.styleDeps,c),l),u,d=null,p=K(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!Sc(t.node,d,t)){u=h;let m=ri(t,{[c]:g});SE(t.node,d,Object.assign({},m,{[c]:""}),t),ir(t.node,m,t),d=od(t.node,m,t)}}}catch(g){ne(n,"style."+c,g)}},{depth:n.path.length,label:_t(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=zt(t,bc(t.attrDeps,c),t.attr[c]),f=c,u=f.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Zt.call(t,g,t.state)),g},p=K(()=>{try{let g=or(t,n,u,d);if(g===Ce)return;t.node?.setAttribute&&ni(t.node,f,g)}catch(g){ne(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=f.toLowerCase(),d=()=>Zt.call(t,l,t.state),p=K(()=>{try{let g=or(t,n,u,d);if(g===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,rr(f,g??""))}catch(g){ne(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}}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 g=l,h="aria-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Zt.call(t,g,t.state),y=K(()=>{try{let x=or(t,n,h,m);if(x===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,rr(h,x??""))}catch(x){ne(n,"aria."+c,x)}},{depth:n.path.length,label:_t(n,"aria."+c)});y._attrName=h,n.__effects.push(y);continue}if(typeof l!="function")continue;let f=zt(t,bc(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>f(t,t.state,t.context),p=K(()=>{try{let g=or(t,n,u,d);if(g===Ce||!t.node?.setAttribute)return;ni(t.node,u,g)}catch(g){ne(n,"aria."+c,g)}},{depth:n.path.length,label:_t(n,"aria."+c)});p._attrName=u,n.__effects.push(p)}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 h=l,m="data-"+c.replace(/[A-Z]/g,k=>"-"+k.toLowerCase()),y=()=>Zt.call(t,h,t.state),x=K(()=>{try{let k=or(t,n,m,y);if(k===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(m,k??"")}catch(k){ne(n,"data."+c,k)}},{depth:n.path.length,label:_t(n,"data."+c)});x._attrName=m,n.__effects.push(x);continue}if(typeof l!="function")continue;let f=zt(t,bc(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>f(t,t.state,t.context),g=K(()=>{try{let h=or(t,n,d,p);if(h===Ce||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){ne(n,"data."+c,h)}},{depth:n.path.length,label:_t(n,"data."+c)});g._attrName=d,n.__effects.push(g)}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=zt(t,bc(t.classDeps,c),i[c]),f=K(()=>{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){ne(n,"class."+c,u)}},{depth:n.path.length,label:_t(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&iI(t,n,t.if);for(let c of Object.keys(t)){if(Gt.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||fn(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(hn(u,c)&&!Lo(u,c)){let d=Br(c)||c,p=zt(t,t[c+"Deps"],f),g=d.toLowerCase(),h=()=>{let y=p(t,t.state,t.context);return typeof y=="string"&&y.includes("{{")&&(y=Zt.call(t,y,t.state)),y},m=K(()=>{try{let y=or(t,n,g,h);if(y===Ce)return;let x=Po[c];if(x&&y!=null){let k=x(t);k!==void 0&&(y=k)}t.node?.setAttribute&&ni(t.node,d,y,!0)}catch(y){ne(n,c,y)}},{depth:n.path.length,label:_t(n,c)});m._attrName=d.toLowerCase(),n.__effects.push(m)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Gt.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||fn(c)||Lo(a,c)||Po[c]||!hn(a,c))continue;let u=Br(c)||c,d=u.toLowerCase(),p=()=>Zt.call(t,l,t.state),g=K(()=>{try{let h=or(t,n,d,p);if(h===Ce||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,rr(u,h??""))}catch(h){ne(n,c,h)}},{depth:n.path.length,label:_t(n,c)});g._attrName=u.toLowerCase(),n.__effects.push(g)}if(F9(t),Y9(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=K(()=>{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&&un(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(dn(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:_t(n,"onStateUpdate")});n.__effects.push(d)}z9(t)}function wD(t){let e=t.parent,n=e?.node;if(!n||!t.node){Ac(t,t.parent);return}let r=null,o=Object.keys(e),s=o.indexOf(t.key);for(let a=s+1;a<o.length;a++){let c=e[o[a]];if(c?.node?.parentNode===n){r=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===r||(r?n.insertBefore(t.node,r):n.appendChild(t.node)),lm()}function sI(t){aI(t),eW(t),_I(t),pW(t),dW(t)}function iI(t,e,n){let r=zt(t,t.ifDeps,n),o=K(()=>{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,s9(t,s),r=zt(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=Oo(t)),t.node&&(t.node.ref=t),wD(t),aI(t),_I(t),Jt("Render",t,{}),bE(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=tr(t)),Jt("Init",t,{});let c=ct.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||Oo(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}Jt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),vI(t,{}),oI(t,{skipIfEffect:!0}),sI(t),CI(t,{}),wD(t),Jt("Create",t,{}),Jt("Complete",t,{}),Jt("Render",t,{}),Jt("RenderRouter",t,{}),bE(t,{})}},{depth:e.path.length,label:_t(e,"if")});e.__effects.push(o)}var Ce=Symbol("builtTextKept");function SD(t,e,n){let r=e.__builtText;if(!r)return n();if(r.parentNode!==t.node||typeof uo!="function")return e.__builtText=null,n();let{value:o,ready:s}=uo(n);return s?o:Ce}function or(t,e,n,r){let o=e.__builtAttrs;if(!o||!o.values.has(n))return r();let s=t.node;if(s!==o.node||typeof uo!="function")return e.__builtAttrs=null,r();let{value:i,ready:a}=uo(r);return a?(o.values.delete(n),o.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,o.values.get(n)),Ce)}function ei(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);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 A9(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function C9(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function ni(t,e,n,r){n==null||n===!1&&!oi(e)?Lm(t,e,null):typeof n=="function"||typeof n=="object"||(r&&e==="src"&&"src"in t?t.src=n:Lm(t,e,rr(e,n)))}function Lm(t,e,n){let r=A9(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),C9(t,r)}function xD(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=n.ownerDocument,s=!!o&&o.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function aI(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&ei(t,t.text),xI(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}ir(e,ri(t,n),t)}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&&!oi(n)||e.setAttribute&&e.setAttribute(n,rr(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 wc(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function T9(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 od(t,e,n){if(!t||!t.style||!e)return null;let r=t.style,o=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=sr(s);o.push(a,Cc(n,r,a),TE(n,r,a))}return o}function cI(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function lI(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function sr(t){return Nr(t)}function SE(t,e,n,r){if(!t||!t.style||!e||!e.length)return;let o=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(sr(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||Cc(r,o,a)===e[i+1]&&(r&&a==="display"?pd(r,""):typeof o.removeProperty=="function"&&o.removeProperty(a))}}function Tm(t,e,n){let r=t.__ref;r&&(n?(r.__heldInline||(r.__heldInline=new Map)).set(e,n):r.__heldInline&&r.__heldInline.delete(e))}function O9(t,e,n){if(t.__heldInline){for(let[r,o]of t.__heldInline)if(r!==e){for(let s=0;s<o.length;s+=3)if(o[s]===n)return!0}}return!1}function fI(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!n||!s||!s.style)return;let i=o.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];r&&r.has(d)||O9(o,e,d)||(a||(a=[]),a.push(u),i&&i.delete(d))}if(!a)return;let c=i&&AE(t,i),l=s.style,f=[];for(let u of a){let d=n[u];c&&c[d]!==void 0||Cc(t,l,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?pd(t,""):typeof l.removeProperty=="function"&&l.removeProperty(u)}function R9(t,e,n){let r=[];for(let i=0;i<e.length;i+=3)r.push(e[i]);let o=!1;for(let i in n){let a=To[i];r.some(c=>a.includes(c))&&(o=!0,r.includes(i)||r.push(i))}if(!o)return;let s=t.node.style;e.length=0;for(let i of r)e.push(i,Cc(t,s,i),TE(t,s,i))}function Sc(t,e,n){if(!e||!t||!t.style)return!1;let r=t.style;for(let o=0;o<e.length;o+=3)if(Cc(n,r,e[o])!==e[o+1]||TE(n,r,e[o])!==e[o+2])return!1;return!0}var ld=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,uI=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",$m=t=>ld(t)?t:"--"+t;function Fm(t,e){if(!Mo(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)}uI(o)&&(n||(n={}),n[$m(r)]=o)}return n}function dI(t,e,n,r,o){pI(t,o,zt(t,r,n),s=>uI(s)?{[e]:s}:null)}function pI(t,e,n,r,o){let s=t.__ref,i,a=null,c=K(()=>{un(t,()=>{try{let l=r(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=wc(l);(u===null||u!==i||!Sc(f,a))&&(i=u,SE(f,a,l),l&&ir(f,l),a=l?od(f,l):null,o&&o(l))}catch(l){ne(s,e,l)}})},{depth:s.path.length,label:_t(s,e)});s.__effects.push(c)}function P9(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){L9(t,n),e.__exec.vars=n;return}if(Mo(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||dI(t,$m(r),o,bc(t.varsDeps,r),"vars."+r)}}function L9(t,e){let n=t.__ref;pI(t,"vars",zt(t,t.varsDeps,e),r=>Fm(r),r=>{n.__varsInline=r?new Set(Object.keys(r)):null})}function xE(t,e){if(typeof t[e]=="function"&&(Lo(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!ld(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!Mo(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&$m(r)===e)return!0;return!1}function D9(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(sr(n)));return e}function I9(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=sr(i);To[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function AE(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=To[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 kD(t,e,n,r){let o=t.node,s=D9(e),i=s&&AE(t,s);if(n&&fI(t,r,n,i?new Set([...s,...Object.keys(i)]):s),ir(o,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(ir(o,i),Object.assign({},e,i)):e}function M9(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=AE(t,e.__inlineCssKeys);if(!n)return;let r=[];if(e.__heldInline)for(let o of e.__heldInline.values())Sc(t.node,o,t)&&r.push(o);ir(t.node,n);for(let o of r)R9(t,o,n)}function ri(t,e){return!e||typeof e!="object"?e:un(t,()=>{try{return jk(e,t)}catch{return e}})}var hI="none",CE=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),ED=t=>cI(t,"display")===hI&&lI(t,"display")==="important";function gI(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function Dm(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!s||!s.style)return;let i=o.__hiddenBy,a=!!(i&&i.size);n?(i||(i=o.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?ED(c)||c.setProperty("display",hI,"important"):(a||r&&ED(c))&&gI(c,o.__shownDisplay||null)}function pd(t,e,n){let r=t.__ref,o=e?[String(e),n||""]:null;r&&(r.__shownDisplay=o);let s=t.node;!s||!s.style||CE(r)||gI(s.style,o)}function Cc(t,e,n){let r=n==="display"&&t&&t.__ref;return CE(r)?r.__shownDisplay?r.__shownDisplay[0]:"":cI(e,n)}function TE(t,e,n){let r=n==="display"&&t&&t.__ref;return CE(r)?r.__shownDisplay?r.__shownDisplay[1]:"":lI(e,n)}function ir(t,e,n){if(!t||!e||!t.style)return;let r=null;for(let o in e){let s=e[o];if(s!=null){if(o.charAt(0)==="&"&&typeof s=="object"){r||(r={}),r[o]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=Nr(o),c=i.trim(),l=/\s*!important\s*$/.test(c),f=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){pd(n,f,l?"important":"");continue}t.style.setProperty(a,f,l?"important":"")}catch{}}}r&&N9(t,r)}function N9(t,e){let n=`_ds${HD.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=Mr(i.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).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=Mr(c),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),m="";for(let y in p)m+=`${sr(y)}: ${p[y]};`;u+=Ir(`${h} { ${m} }`,h)+`
|
|
61
|
-
`}else f+=`${
|
|
62
|
-
`),u&&(s+=u)}}s&&(o.textContent+=s)}var vD=new Set;function AD(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 $9(t,e,n){let r=AD(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(AD(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";vD.has(s)||(vD.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 F9(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()&&$9(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=K(()=>{let d=t.state&&(Et(t.state)?t.state.root:null);if(!d||!Et(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(Et(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&un(t,()=>{try{if(Em(o)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>nr(o,!1),m=>{nr(o,!0),er("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(nr(o,!1),h===!1&&(g=!0))}}catch(h){nr(o,!0),er("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"&&un(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){er("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:o.path.length,label:_t(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function OE(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 RE(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)];if(!n)return t;if(typeof n=="string"&&!/^@(supports|container)\b/.test(n)){let r=B9(e);if(r){let o=Lk(n);if(o)return`@container ${r} ${o}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function PE(t,e,n,r){return Bs(t)?Fs(()=>fd(e,n,!1,r)):fd(e,n,!1,r)}function B9(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let r=t.parent;r&&typeof r=="object";r=r.parent){let o=r.breakpointsFrom;if(o!=null&&o!==!1){n=bm(o,r);break}}return e&&(e.__breakpointContainer=n),n}var CD=new Set;function j9(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;CD.has(r)||(CD.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 TD=new Map;function U9(t){let e=TD.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push(Ju(o))};return n(To[t]),n(Sm[t]),TD.set(t,e),e}function OD(t,e,n){if(xE(t,e)||n&&n.has(e))return!0;let r=U9(sr(e));for(let o=0;o<r.length;o++){let s=r[o];if(xE(t,s)||n&&n.has(s))return!0}return!1}function fd(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(xt[a]){let u=xt[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let 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,OD(e,u,r))}continue}if(a==="vars"){let u=Fm(c,e);if(u)for(let d in u)i(d,u[d],xE(e,d)||!!(r&&r.has(d)));continue}if(OE(a,e)){let u=fd(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()&&j9(a,e);continue}let l=RE(a,e),f=PE(l,c,e,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,OD(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 Mo=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function mI(t,e){for(let n in e){let r=e[n];t[n]=Mo(r)?mI(Mo(t[n])?t[n]:{},r):r}return t}function V9(t,e){if(!Mo(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;Mo(o)&&(n=mI(n||{},o))}return n}function LE(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)&&LE(t[n],e+1))return!0}return!1}function yI(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(OE(t,n)){let s=fd(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=RE(t,n),o=PE(r,e,n);return Object.keys(o).length?{cssProp:r,block:o}:null}function z9(t){let e=t.__ref;for(let n of Object.keys(t)){if(!YD(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!LE(r))continue;let o=null,s,i=K(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&mt(a);let c,l=!1;try{let f=yI(n,r,t),u=f?wc(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=Ve({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&ht()}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:_t(e,"cssBlock("+n+")")});e.__effects.push(i)}}var H9=()=>!0,W9=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!xt[t]||!!(Bt&&Bt.has(t))||ld(t)||t==="vars"};function K9(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(W9(a,n[a])||Gt.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=sE({[e]:n},t.tag||"div",r,H9),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function RD(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){ne(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Zt.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&&bI(i,e,l);continue}let p=d===!1&&!oi(l)?null:String(rr(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),Lm(i,l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function bI(t,e,n){t.getAttribute(n)===e.written.get(n)&&Lm(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function q9(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&bI(t.node,e,s)}function _I(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 uE,G9=()=>uE===void 0?uE=tt():uE;function PD(t,e){let n=Pp;typeof n=="function"?t.untrackedReads+=n(e):e()}function Y9(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,hides:!1,probe:!1,untrackedReads:0},f=K9(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),x=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&x&&typeof x=="object"&&!Array.isArray(x))){if(m==="vars"&&Mo(x)){for(let k of Object.keys(x))k&&u.add($m(k));continue}u.add(m)}}let d=()=>{let m,y=l.probe,x;if(y?PD(l,()=>{x=t[i]}):x=t[i],x===void 0){let _=!!t.state&&i in t.state,b=t.state?t.state[i]:void 0;if(_||b!==void 0)m=b;else{let w=t.context?.cases?.[i];if(w===void 0)return;try{m=typeof w=="function"?w.call(t,t):w}catch(S){m=!1,e.__conditionalError=S,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,S?.message||S)}}}else if(typeof x=="function")try{y?PD(l,()=>{m=x(t,t.state,t.context)}):m=x(t,t.state,t.context)}catch(_){m=!1,e.__conditionalError=_,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,_?.message||_)}else m=x;y&&(l.probe=!1);let k=c?!m:!!m;if(!t.node)return;let C=t.context?.designSystem;if(k===l.lastMatch){if(k&&f&&t.node.setAttribute){C&&mt(C);try{RD(t,n,o,f,l,!1)}finally{C&&ht()}}return}l.lastMatch=k,C&&mt(C);try{if(k){let _={},b={},w=!1,S=!1;for(let T in a){if(!Object.prototype.hasOwnProperty.call(a,T))continue;let O=a[T],B=T.charAt(0);if((B===":"||B==="@"||B==="&"||B==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(OE(T,t)){let N=fd(O,t,!1,u);Object.keys(N).length&&(b[`[data-theme="${T.slice(1)}"] &`]=N,w=!0)}else{let N=RE(T,t),G=PE(N,O,t,u);Object.keys(G).length&&(b[N]=G,w=!0)}continue}let $=typeof O=="function"?O(t,t.state,t.context):O;if($!=null){if(T==="hide"||T==="show"){let N=xt[T]($,t,t.state,t.context);N&&N.display&&(S=!0)}else if(xt[T]){let N=xt[T]($,t,t.state,t.context);if(N){let G=Array.isArray(N)?N:[N];for(let Y of G)Y&&Object.assign(_,Y)}}else if(Bt&&Bt.has(T))_[T]=$;else if(ld(T))_[T]=$;else if(T==="vars"){let N=Fm($,t);N&&Object.assign(_,N)}}}(S||l.hides)&&(l.hides=S,Dm(t,o,S));let A=Object.keys(_);if(A.length){ir(t.node,_,t);for(let T of A){let O=r.get(T);O||(O=[],r.set(T,O));let B=O.findIndex($=>$.key===o);B!==-1&&O.splice(B,1),O.push({key:o,value:_[T]})}l.appliedKeys=A}else l.appliedKeys=null;if(w){let T=Ve(b,null,t.context?.cssPrefix,{state:!0}),O=T?T.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let B of O)t.node.classList.add(B);l.appliedClasses=O}else l.appliedClasses=null}else if(l.appliedClasses){for(let T of l.appliedClasses)t.node.classList.remove(T);l.appliedClasses=null}f&&t.node.setAttribute&&RD(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&q9(t,n,o,l),l.appliedKeys){for(let _ of l.appliedKeys){let b=r.get(_);if(!b)continue;let w=b.findIndex(S=>S.key===o);if(w!==-1)if(b.splice(w,1),b.length){let S=b[b.length-1].value,A=Nr(_),T=String(S).trim().replace(/\s*!important\s*$/,"");Cc(t,t.node.style,A)!==T&&ir(t.node,{[_]:S},t)}else r.delete(_),ld(_)?t.node.style.removeProperty(_):Nr(_)==="display"?pd(t,""):t.node.style[_]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,Dm(t,o,!1)),l.appliedClasses){for(let _ of l.appliedClasses)t.node.classList.remove(_);l.appliedClasses=null}}}finally{C&&ht()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=zt(t,p,d);G9()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=K(g,{depth:e.path.length,label:_t(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 dE=new WeakSet,pE=new WeakMap;function X9(t){let e=pE.get(t);if(e==="painted")return!1;if(e===void 0){pE.set(t,"open");let n=t.defaultView,r=()=>{pE.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(r):setTimeout(r,0)}return!0}var hE=new WeakSet;function Z9(t){if(hE.has(t))return;hE.add(t);let e=()=>{hE.delete(t);let r=t.body||t.documentElement;r&&r.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}function J9(t,e){let n=t.ownerDocument;if(n&&!X9(n)){if(ct.hydration!==null&&e&&e.context&&e.context.__hydration){Z9(n);return}dE.has(n)||(dE.add(n),queueMicrotask(()=>{dE.delete(n);let r=n.body||n.documentElement;r&&r.offsetWidth}))}}var gE=new WeakSet,LD=!1;function DD(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function kE(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"?kE(s,o):o}return n}function wI(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=wI(o,e);Object.keys(s).length&&(n[r]=s)}else e(r)||(n[r]=o)}return n}function ID(t,e,n){let r=DE(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")&&OL(r[o],i,r[o+2]))return!0}return!1}function Q9(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=DE(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&&xm(f,t[u],d),m=!h&&g!==void 0&&g>a&&xm(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var MD=new Map;function DE(t){let e=MD.get(t);if(e!==void 0)return e;let n=sr(t),r=To[n];if(e=null,Array.isArray(r)){e=[];for(let o of r)e.push(o,Ju(o),n)}return MD.set(t,e),e}var SI=new Set(["page","zoom"]),tW=(t,e)=>{SI.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let r=!1;try{r=n.supports(sr(t),String(e))}catch{r=!1}r&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function xI(t){let{node:e}=t;if(!e)return;if(LD||(LD=!0,Ve({display:"none"})),gE.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}gE.add(t);let n=t.context?.designSystem;n&&mt(n),mm();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=!1,h=(_,b)=>{if(b&&typeof b=="object"&&DD(_)){c||(c={});let w=c[_];w&&(b=kE(w,b)),c[_]=b}else(b===null||typeof b!="object")&&(l||(l=new Set),l.add(_),u!==void 0&&(d||(d=new Map),d.set(_,u)));r[_]=b};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&xt.theme){let _=xt.theme(t.theme,t,t.state,t.context);if(_){let b=w=>{for(let S in w){let A=w[S];A&&typeof A=="object"?DD(S)&&(i||(i={}),i[S]=A):DE(S)&&(a||(a=[])).push(S),r[S]=A}};if(Array.isArray(_))for(let w of _)w&&b(w);else b(_);o=!0}}let m=(_,b)=>{if(_==="vars"){let w=Fm(b);if(w){for(let S in w)h(S,w[S]);o=!0}return}if(_==="hide"||_==="show"){let w=xt[_](b,t,t.state,t.context);w&&w.display&&(g=!0);return}if(xt[_]){let w=xt[_](b,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let S of w)if(S)for(let A in S)h(A,S[A])}else for(let S in w)h(S,w[S]);o=!0}}else if(Bt&&Bt.has(_))b!=null&&typeof b!="object"&&(h(_,b),o=!0);else if(_.charCodeAt(0)===45)b!=null&&typeof b!="object"&&(h(_,b),o=!0);else if(_.charAt(0)==="&"||_.charAt(0)==="@"||_.charAt(0)===":"||_.charAt(0)==="["){if(b&&typeof b=="object"&&!Array.isArray(b)){if(LE(b))return;let w=yI(_,b,t);w&&(h(w.cssProp,w.block),o=!0)}}else(typeof b=="string"||typeof b=="number")&&!SI.has(_)&&tt()&&tW(_,b)};if(typeof t.class=="string"){let _=V9(t.class,t.context?.designSystem?.class);if(_)for(let b in _)m(b,_[b])}let y=l?new Set(l):null,x=t.tag||"div";for(let _ of Object.keys(t)){if(typeof t[_]=="function"){let w=f&&f.get(_);w!==void 0&&Lo(x,_)&&(p||(p=new Map),p.set(sr(_),w));continue}if(u=f?f.get(_):void 0,_==="vars"){m(_,t[_]);continue}if(Gt.has(_)||_==="theme")continue;let b=_.charCodeAt(0);b>=65&&b<=90||fn(_)||Cm(x,_)||m(_,t[_])}u=void 0;let k=d?Q9(r,d,p):null;if(a&&l)for(let _ of a)l.has(_)||!(_ in r)||ID(_,r,l)&&delete r[_];if(i){let _=l?b=>l.has(b)||ID(b,r,l):null;for(let b in i){let w=_?wI(i[b],_):i[b];c&&c[b]&&(w=kE(w,c[b])),Object.keys(w).length?r[b]=w:delete r[b]}}if(I9(t,r,l,k?new Set([...y||[],...k]):y),Dm(t,"static",g),o){r.display&&String(r.display).includes("!important")&&(ir(e,{display:r.display},t),delete r.display);let _=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof _=="string"&&_!==""&&r.display&&r.display!==_&&(r.display=_);let b=Ve(r,null,t.context?.cssPrefix);if(s=b?b.split(" ").filter(Boolean):[],b&&e.classList){let w=s,S=!1;for(let A of w)e.classList.add(A),S||(A.charCodeAt(0)===95&&A.charCodeAt(1)===99||A.charCodeAt(0)===95&&A.indexOf("_c",1)!==-1)&&(S=!0);S&&J9(e,t)}}let C=t.__ref;if(C){let _=C.__staticCssClasses;if(_&&e.classList){let b=new Set(s);for(let w of _)b.has(w)||e.classList.remove(w)}C.__staticCssClasses=s}M9(t)}finally{ym(),n&&ht(),gE.delete(t)}}var Hk=t=>!!xt[t]||!!(Bt&&Bt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function Wk(t){t&&t.node&&xI(t)}function eW(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,rr(i,s))}let n=oE(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"||Gt.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!fn(o)&&!Lo(r,o)&&hn(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Po[o])continue;i=Zt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!oi(Br(o)||o))continue;let a=Br(o)||o;e.setAttribute(a,rr(a,i))}}}function Kk(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||fn(e))return;let o=t.tag||"div";if(Lo(o,e)||!hn(o,e))return;let s=Br(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=Po[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Zt.call(t,l,t.state)),ni(n,s,l)}function nW(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{}$D(o),Do.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),BD(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){ud(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,ND(t,o);return}o.awaitingLayout=!1;let i=sW(n),a=iW(i),c=n.style.height;n.style.height="0px",a&&mE(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&mE(n);return}let f=aW(n,i),u=f!=null&&l<f?f:l,d=fW(i),p=d!=null&&u>d;n.style.height=lW(p?d:u,i)+"px",a&&mE(n),BD(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,ND(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}$D(o),Do.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,oW(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 ud(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),Do.add(t),dd())}function rW(){let t=Array.from(Do);Do.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=vc()),o.attachAttempts+=1,o.attachAttempts<=qD&&vc()-o.firstAttemptAt<GD&&(Do.add(n),dd());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function ND(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,ud(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,ud(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function $D(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function oW(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&&ud(t,!0)},()=>{})}function sW(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var ii=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,IE=t=>(ii(t.paddingTop)||0)+(ii(t.paddingBottom)||0),kI=t=>(ii(t.borderTopWidth)||0)+(ii(t.borderBottomWidth)||0);function iW(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 mE(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 aW(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=ii(e.lineHeight)||cW(t,e);return r>0?n*r+IE(e):null}var rd=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],FD=new WeakMap;function cW(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=FD.get(n);o||(o=new Map,FD.set(n,o));let s=rd.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<rd.length;l++)e[rd[l]]&&(a[rd[l]]=e[rd[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 lW(t,e){return e?e.boxSizing==="border-box"?t+kI(e):e.boxSizing==="content-box"?Math.max(0,t-IE(e)):t:t}function fW(t){if(!t)return null;let e=ii(t.maxHeight);if(e==null||!(e>0))return null;let n=IE(t),r=kI(t),o=t.boxSizing==="border-box"?e-r:e+n,s=ii(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function BD(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 jD=["srcObject","muted"],uW=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function dW(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<jD.length;r++){let o=jD[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=uW(o,a);if(e[o]!==c)try{e[o]=c}catch(l){ne(n,o,l)}};if(typeof s=="function"){let a=zt(t,t[o+"Deps"],s),c=K(()=>{try{i(a(t,t.state,t.context))}catch(l){ne(n,o,l)}},{depth:n.path.length,label:_t(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 pW(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return qt("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?zt(t,t.autoGrowDeps,r):null,s=K(()=>{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}nW(t,a)},{depth:n.path.length,label:_t(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var EI=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function vI(t,e){let n=!1;for(let r of Object.keys(t)){if(!fn(r)||EI.has(r))continue;if(r==="onInView"||r==="onLeaveView"){n=!0;continue}let o=dm(r);if(o){pm(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=Gu(t,s),typeof s!="function")continue;let a=fm(r);Jn.has(a)||ac(QH(a),t,s,i)}hW(t),n&&ct.viewEvents&&ct.viewEvents(t)}function hW(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of EI){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),x=Math.abs(h);if(Math.max(y,x)<o)return;let k;if(y>x*1.2)k=g<0?"left":"right";else if(x>y*1.2)k=h<0?"up":"down";else return;let C="onSwipe"+k.charAt(0).toUpperCase()+k.slice(1),_=n[C],b=n.onSwipe;_&&_.call(t,d,t,t.state,t.context),b&&b.call(t,{direction:k,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 ME(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"?ad(l):o;if(a&&!i&&(f=cd(f,ad(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=ze(l,c));return c=hd(c,s),{def:c,key:XD(c?.key,e,n,t),supplied:f,props:l}}function hd(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 jr=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},AI=(t,e)=>e?e.nextSibling:Qu(t.node,t.__ref.__textNode),Bm=(t,e,n)=>{let r=AI(t,n);return e!==r&&t.node.insertBefore(e,r),e},gd=(t,e)=>{let n=AI(t,e);return n?{position:"before",node:n}:void 0};function NE(t,e,n){let r=null;for(let o=0;o<e.length;o++){if(n&&n.has(e[o]))continue;let s=jr(t[e[o]]);s&&(r=Bm(t,s,r))}}function UD(t,e,n,r){let o=ct.rows,s=o!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?o.track(t):null,i=$E(t,e,n,r,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function $E(t,e,n,r,o,s){if(!e||!t.node)return;let i=t.childExtends,a=Io(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=ME(t,e[g],g,u,a,i,d,o);s&&s.add(m.key,e[g],m,u,i);try{let y=Yt(si(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),Pm(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${x} (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=tI(e,t);if(Array.isArray(u))return $E(t,u,n,r,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(Gt.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=o?cd(a,ad(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=ze(t.childProps,h)),h=hd(h,i);let y=Yt(si(h,m),t,Mm(t,p),n,g);return Pm(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 Ec(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=Zt.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 CI(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function",i=s||nI(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=zt(t,t.childrenDeps,u),m=K(()=>{let y=p;p=!0;let x;try{x=h(t,t.state,t.context)}catch(T){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${y?"":" (initial run, treating as empty)"}:`,T?.message||T)}return}if(!y){g=x;return}if(x===t.children)return;_D(t,x),t.children=x,d.__mount&&d.__mount.chunkGen++;let k=typeof t.onContentUpdate=="function",C=k?[]:null,_=k?[]:null,b=k?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let T=t.childProps,O=[],B=new Map;for(let J=0;J<x.length;J++){let Z=x[J],Q=T;if(typeof T=="function")try{Q=T(t,Z)}catch{Q=null}let it=XD(Q&&Q.key,Z,J,t);O.push(it),B.set(it,{rawChild:Z,childProps:Q})}let $=new Set(O),N=pD(d,d.__children.slice());for(let J of N)if(!$.has(J)){let Z=t[J];Z?.remove&&Z.remove(),delete t[J],_&&_.push(J)}let G=t.childExtends,nt=!(t.tag==="fragment")&&!!t.node,ot=null,st=new Set;for(let J of O){let Z=B.get(J),Q=Z.rawChild,it=t[J];if(it&&it.state){if(Q&&typeof Q=="object"){let yt=it.state,jt=yt.$replace||yt.replace,Ct=yt.$update||yt.update;try{if(typeof jt=="function")jt.call(yt,Q);else if(typeof Ct=="function"){for(let Pt in yt)if(!(Pt==="__element"||Pt==="root"||Pt==="parent"||Pt==="update")&&!Object.prototype.hasOwnProperty.call(Q,Pt))try{yt[Pt]=void 0}catch{}Ct.call(yt,Q)}else for(let Pt in Q)yt[Pt]=Q[Pt]}catch(Pt){if(typeof console<"u"&&console.error){let Ge=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${J}" failed to patch at ${Ge} (reconcile, keeping its previous data for this pass):`,Pt?.message||Pt)}}}if(b&&b.push(J),nt){let yt=jr(it);yt&&(ot=Bm(t,yt,ot))}continue}let rt=Q;(typeof Q=="string"||typeof Q=="number")&&(rt={value:Q,text:Q});let gt=Z.childProps,q=hd(gt?{...gt,state:rt}:{state:rt},G),W=typeof T=="function"?ad(gt):Io(t,"childProps"),Rt;try{Rt=Yt(si(q,W),t,J,e,nt?gd(t,ot):void 0)}catch(yt){if(typeof console<"u"&&console.error){let jt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${J}" failed to construct at ${jt} (reconcile, skipping this row):`,yt?.message||yt)}st.add(J);continue}if(d.__disposed)return;if(nt){let yt=jr(Rt);yt&&(ot=yt)}C&&C.push(J)}nt&&NE(t,O,st.size?st:null),d.__children=st.size?O.filter(J=>!st.has(J)):O,k&&(C.length||_.length)&&Om(t,{added:C,removed:_,kept:b}),Ec(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&ct.rows.reconcile(t,d,x,e,k)){Ec(t,!1);return}let A=k?[...d.__children]:null;for(let T of pD(d,[...d.__children])){let O=t[T];O?.remove&&O.remove(),delete t[T]}d.__children=[],UD(t,x,e,0),Ec(t,!1),k&&Om(t,{added:[...d.__children],removed:A,kept:[]})},{depth:d.path.length,label:_t(d,"children")});d.__effects.push(m),n=g,_D(t,n),t.children=n}let a=ct.mount,c=a!==null?a.budgetOf(t,e):0,l=td(t.__ref),f=s?UD(t,n,e,c):$E(t,n,e,c,i);if(c&&td(t.__ref)>l){a.defer(t,c,()=>VD(t,e,n,r,o,f,c));return}VD(t,e,n,r,o,f,c)}function VD(t,e,n,r,o,s,i){let a=td(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=ze(t.childProps,c)),c=hd(c,o);let l=cd(Io(t,"childProps"),Io(t,"content"));Pm(t,Yt(si(c,l),t,"content",e))}if(!(n&&!s)){if(i&&td(t.__ref)>a){ct.mount.defer(t,i,()=>zD(t,e,o,i));return}zD(t,e,o,i)}}function zD(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||Gt.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&&id(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(Gt.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=ze(t.childProps,u)),u=hd(u,n);let d=s?cd(Io(t,"childProps"),cd(i[l]||null,Io(t,l))):null;Pm(t,Yt(si(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 Ac(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 c=o.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(r,l||o)}else c.insertBefore(r,o);lm();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&ct.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&ct.hydration.place(c,t,e,s,r))return}let i=n?.node,a=r.parentNode===s;if(i&&i.parentNode!==s)(!a||r.nextSibling)&&s.appendChild(r);else if(n?.position==="before"&&i)i!==r&&(!a||r.nextSibling!==i)&&s.insertBefore(r,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===r||(c?s.insertBefore(r,c):s.appendChild(r))}else(!a||r.nextSibling)&&s.appendChild(r);lm()}var Im=3;function Em(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Im?!1:(t.__inBeforeUpdate=!0,!0)}function nr(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Im&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Im}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Jt(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);er(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=>{dn(e,o,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(dn(e,o,u),e.context?.strictMode)throw u}finally{l&&ht(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var md=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),PI=1e3,LI=24,FE=Object.freeze({}),UE=Object.freeze({}),Tc=0,jm=t=>{if(Et(t)||md(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function BE(t,e,n){if(t===null||typeof t!="object")return t;if(--Tc<0||e>LI){Tc=-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]:BE(t[s],e+1,!1);return o}if(n||!jm(t))return t;let r={};for(let o in t)md(t,o)&&(r[o]=BE(t[o],e+1,o==="extends"||o==="childExtends"));return r}function TI(t){Tc=PI;let e;try{e=BE(t,0,!1)}catch{return FE}return Tc<0?FE:e}function jE(t,e,n,r){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Tc<0||n>LI)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]:!jE(t[s],e[s],n+1,!1))return!1;return!0}if(r||Array.isArray(e)||!jm(t)||!jm(e))return!1;let o=0;for(let s in t)if(md(t,s)&&(o++,!md(e,s)||!jE(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)md(e,s)&&o--;return o===0}function OI(t,e){if(e===FE||e===UE)return!1;Tc=PI;try{return jE(t,e,0,!1)}catch{return!1}}var Um=t=>Me()?ve(()=>TI(t)):TI(t),RI=(t,e)=>Me()?ve(()=>OI(t,e)):OI(t,e);function DI(t,e,n,r){let o=t;return o&&typeof o=="object"&&!Array.isArray(o)&&!jm(o)&&(r||n&&!o.ignoreChildExtends)&&(o=r?ze({},o):{...o}),typeof e=="function"?{item:o,props:r}:o}var II=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Vm=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,r,o,s){this.rows.set(e,Um(DI(n,o,s,r.props)))}failed(e){this.rows.set(e,UE)}none(e){this.rows.delete(e)}},gW=Object.freeze([]);function mW(t,e,n,r,o){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=II(t),c=RI(a,i),l=t.childProps,f=Io(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let w=0;w<n.length;w++){let S=ME(t,n[w],w,l,f,u,!1,!0);if(p.has(S.key))return!1;p.set(S.key,S),d[w]=S}for(let w=0;w<d.length;w++){let S=d[w];S.input=DI(n[w],l,u,S.props);let A=c?s.get(S.key):void 0;if(A===void 0)continue;let T=t[S.key];T&&T.__ref&&T.parent===t&&RI(S.input,A)&&(S.kept=!0,S.snap=A)}let g=o?[]:null;for(let w of s.keys()){let S=p.get(w);if(S&&S.kept)continue;let A=t[w];A?.remove&&A.remove(),delete t[w],g&&g.push(w)}let h=o?[]:null,m=o?[]:null,y=new Map,x=null,k=null;for(let w=0;w<d.length;w++){let S=d[w];if(S.kept){y.set(S.key,S.snap),m&&m.push(S.key);let O=jr(t[S.key]);O&&(k=Bm(t,O,k));continue}y.set(S.key,Um(S.input));let A;try{A=Yt(si(S.def,S.supplied),t,S.key,r,gd(t,k))}catch(O){if(y.set(S.key,UE),x||(x=new Set),x.add(S.key),typeof console<"u"&&console.error){let B=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${S.key}" failed to construct at ${B} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!A){y.delete(S.key);continue}let T=jr(A);T&&(k=T),h&&h.push(S.key)}e.__plainRows=new Vm(c?i:Um(a),y);let C=Array.from(y.keys());NE(t,C,x);let _=new Set(e.__children),b=[];for(let w=0;w<C.length;w++)_.has(C[w])&&b.push(C[w]);for(let w of e.__children)y.has(w)||b.push(w);return e.__children=b,o&&(h.length||g.length)&&Om(t,{added:h,removed:g,kept:m}),!0}var MI={track:t=>new Vm(Um(II(t)),new Map),reconcile(t,e,n,r,o){let s=Array.isArray(n)?n:n==null||n===!1?gW:null;return!!s&&mW(t,e,s,r,o)}};var zm=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?zm(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o},yW=new Set(["src","srcset"]),bW=new Set(["class","style","id","data-br"]),_W=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),wW=new Set(["sizes","media","type","width","height"]),SW=t=>t==="img"?_W:t==="source"?wW:null,xW=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",NI=(t,e)=>{for(let n of e){let r=t.nodes.get(n.target);r&&(r.delete(n.attributeName),r.size||t.nodes.delete(n.target))}},kW=(t,e,n)=>{let r=t.built;if(!r){let o=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!o)return!1;let s=new Map;r=t.built={nodes:s,observer:null},r.observer=new o(i=>NI(r,i))}return r.nodes.set(e,new Set(n)),r.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function $o(t){let e=t&&t.built;if(!e)return 0;t.built=null,NI(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[r,o]of e.nodes)for(let s of o)r.hasAttribute(s)&&(r.removeAttribute(s),n++);return e.nodes.clear(),n}function VE(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=tr(t);if(n==="string"||n==="fragment")return null;let r=zm(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=$r(n)&&(n==="svg"||t.parent?.node?.namespaceURI===ti),a=$r(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===ti:s.namespaceURI!==ti;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 p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let f=null,u=null,d=SW(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))yW.has(p)||p==="data-key"||(bW.has(p)||(u||(u=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(xW(p)?(f||(f=[])).push(p):s.removeAttribute(p)));if(f&&!kW(e,s,f))for(let p of f)s.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:u}),l){let p=0,g=0,h=s.firstChild,m=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;m&&t.__ref&&(t.__ref.__builtText=m);for(let y=s.firstChild;y;){let x=y.nextSibling;y!==m&&!l.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,s.removeChild(y)),y=x}(g||p>(t.text!=null&&!m?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&&vW(s),s}var EW=500;function vW(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),EW)}},0)}function AW(t,e,n,r,o){if(o.parentNode===r&&t.claimed.has(o))return!0;let s=t.pendingIn;if(!s||!s.has(r))return!1;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=Qu(r,a&&a.__textNode)),i===o||r.insertBefore(o,i),!0}function CW(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)}function TW(t,e){let n=e&&e.__ref,r=e&&e.node;if(!n||!r||!t.pending||!t.claimed.has(r))return null;let o=r.parentNode;return o?(t.claimed.delete(r),t.adopted--,t.pending.add(r),t.pendingIn.set(o,(t.pendingIn.get(o)||0)+1),n.__keepNode=!0,r):null}function OW(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let r=(t.pendingIn.get(n)||1)-1;r>0?t.pendingIn.set(n,r):t.pendingIn.delete(n),e.remove()}}var $I={adopt:VE,place:AW,whole:CW,settle:$o,handBack:TW,settleHandBack:OW};var li=50;function ar(t){return t===!0?li:typeof t=="number"&&t>0?t:0}var Dn=[],Rc=!1,Fo=0,Ur=li,_d=!1,Wm=[],Km=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Hm=[],yd=null;function RW(t){if(!yd){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Hm.shift();!Hm.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},yd=e}Hm.push(t),Hm.length===1&&typeof yd.port1.ref=="function"&&yd.port1.ref(),yd.port2.postMessage(0)}function KE(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"){RW(t);return}setTimeout(t,0)}function cr(){return new Promise(t=>KE(t))}var bd=0,HE=0,WE=0,Oc=0;function qE(){bd=0,HE=Fo,WE=0,Oc=0}function FI(){if(!Fo)return!1;if(bd++,Oc>0)return Oc--,!1;let t=Km(),e=t-Fo,n=e/bd,r=(t-HE)/(bd-WE),o=r>n?r:n;HE=t,WE=bd;let s=Ur-e-o;return s<=0?(_d=!0,!0):(Oc=o>0?Math.floor(s/o/2):0,!1)}var ci=0;function BI(t=li){ci===0&&!Fo?(Fo=Km(),_d=!1,Ur=t,qE()):t<Ur&&(Ur=t,Oc=0),ci++}var He=null,zE=!1,PW=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function GE(){Fo=0,_d=!1,Ur=li,qE()}function LW(){zE||(zE=!0,PW(()=>{zE=!1,ci===0&&GE()}))}function jI(){ci>0&&ci--,!(ci!==0||He!==null)&&(Rc?LW():GE())}function YE(t,e=li,n=null){let r={fn:t,budget:e,lease:n};He?He.push(r):Dn.push(r),Rc||(Rc=!0,KE(UI))}function XE(t){let e=t&&t.context;return e&&e.__mountLease||null}function wd(t){if(!t)return;let e=0;for(let n=0;n<Dn.length;n++){let r=Dn[n];r.lease!==t&&(Dn[e++]=r)}if(Dn.length=e,He){let n=0;for(let r=0;r<He.length;r++)He[r].lease!==t&&(He[n++]=He[r]);He.length=n}typeof t.lost=="function"&&t.lost()}function DW(t){if(t.lease!==null&&!t.lease.live()){wd(t.lease);return}let e=He;He=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=He;He=e,n.length&&Dn.unshift(...n)}}function Te(){return!Rc&&!Dn.length?Promise.resolve():new Promise(t=>Wm.push(t))}function Bo(){return!Rc&&!Dn.length}function IW(){if(!Wm.length)return;let t=Wm;Wm=[];for(let e=0;e<t.length;e++)t[e]()}function UI(){for(Fo=Km(),_d=!1,Ur=1/0,qE();Dn.length;){let t=Dn.shift();if(t.budget<Ur&&(Ur=t.budget,Oc=0),DW(t),_d||Km()-Fo>=Ur)break}if(ci=0,GE(),Dn.length){KE(UI);return}Rc=!1,IW()}function qm(t){pc(t.__ref).pending++}function We(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 Gm(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function Vr(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 ZE(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 VI(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,ZE(t,e),r&&We(r)}function MW(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?ar(n):0,s=ar(t.yieldChildren);return o&&s?o<s?o:s:o||s}function zI(t,e,n,r,o){BI(r);try{HI(t,t.__ref,0,e,n,r,o,!1)}finally{jI()}}function HI(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=FI(),d=e.__mount;if(c+1<r&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||qm(t);let p=c+1;YE(()=>NW(t,e,p,r,o,s,i),s,XE(t));return}}}catch(c){if(!a)throw c;Nm(t,c)}a&&We(t)}function NW(t,e,n,r,o,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){We(t);return}HI(t,e,n,r,o,s,i,!0)}function $W(t,e,n){qm(t),YE(()=>{try{let r=t.__ref;r&&!r.__disposed&&n()}catch(r){Nm(t,r)}finally{We(t)}},e,XE(t))}function FW(t,e,n,r){let o=t.__ref,s=pc(o),i=++s.chunkGen,a=t.node,c=[],l=!1;zI(t,e,f=>{let u=n(f,l?gd(t,BW(a,c)):void 0),d=WI(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 WI(t){let e=jr(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function BW(t,e){for(let n=e.length-1;n>=0;n--){let r=e[n].__ref?WI(e[n]):e[n];if(r&&r.parentNode===t)return r}return null}function jW(t,e){let n=t.__ref;try{Ec(t,!0),ZD(t),vE(t,e)}finally{ZE(t,n);let r=n.__mount,o=r&&r.holder;o&&(r.holder=null,We(o))}}var KI={budgetOf:MW,run:zI,rows:FW,defer:$W,hold:qm,finish:jW,abandon:VI};function qI(){ct.viewEvents=sL,ct.chains=eL,ct.rows=MI,ct.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:$I,ct.mount=KI}qI();Mt();var fi="inertOutside",VW=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),zW='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',HW={attributes:!0,attributeFilter:["inert"]},GI=new WeakMap,YI=new WeakMap,Sd=new Set,XI=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function jo(t){try{return ve(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function ZI(t){let e=()=>jo(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function WW(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=GI.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=>jo(()=>Ym(e,r))),GI.set(t,e),e)}function JE(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function KW(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var JI=t=>!!(t.closest&&t.closest("[inert]"));function qW(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&&!VW.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function QI(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 Ym(t,e){let{doc:n,held:r,observer:o}=t;e&&QI(t,e),QI(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=JE(u,n);d&&!u.live&&(i.push(u),u.returnFocus=KW(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?qW(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,HW);t.layers.some(u=>!u.live)?Sd.add(t):Sd.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!ic(u.element)&&(u.connecting=!0,Co(u.element,()=>jo(()=>{u.connecting=!1,u.declared&&!u.live&&JE(u,t.doc)&&Ym(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),ZI(()=>eM(t,a));else if(f){let u=f.returnFocus;ZI(()=>GW(t,f,u))}f&&(f.returnFocus=null)}function eM(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(zW))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function GW(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)||JI(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!JI(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&eM(t,t.top))}function QE(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)}Ym(n)}function nM(t){let e=t[fi];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function tM(t){let e=YI.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=WW(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,connecting:!1,returnFocus:null},YI.set(t,e);let s=K(()=>{let i=nM(t);jo(()=>QE(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+fi});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>jo(()=>QE(e,!1))),e}function YW(){for(let t of Sd){if(!t.doc.defaultView){Sd.delete(t);continue}t.layers.some(e=>!e.live&&JE(e,t.doc))&&Ym(t)}}var Xm={name:fi,create(t){if(XI(t,fi)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return qt(fi,t);jo(()=>tM(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||Sd.size&&jo(YW)},update(t){if(XI(t,fi)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return qt(fi,t);jo(()=>{let e=tM(t);e&&QE(e,nM(t))})}}};var rM={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"]},oM={"gradient-blue-light":`linear-gradient(to right,
|
|
60
|
+
`):"")}}function IE(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&gn(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),Qt("Create",t,e),Qt("Complete",t,e),Qt("Render",t,e),Qt("RenderRouter",t,e),TE(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&&ht()}}requestAnimationFrame(o)}};requestAnimationFrame(o)}}function Nm(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,ct.mount.hold(t))}var y9=new Set(["childProps","attr","style","scope","data","vars"]);function cI(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 x=n.substring(0,y),E=t.context?.components;E&&(E[x]||E["smbls."+x])?e={...e,extends:x}:E&&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 "${x}" but neither "${x}" nor "smbls.${x}" 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),dc(t,e,s);let i=Zk(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?jm(o,r):r);continue}i&&i.mark(h),gE(t,h,e[h])}if(a)for(let h in a)gE(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)gE(t,h,c[h]);if(i)for(let h in c)i.mark(h)}WL(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=Np(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=$9(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),_c(t),S9(t,o,e,s),e}function gE(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]=Ke(r,n):s&&y9.has(e)?t[e]={...r,...n}:s&&sI(e)?t[e]=Ke(r,n):t[e]=n}var b9=new Set(["key","parent","context","__ref"]);function _9(t,e){for(let r of Object.keys(t))b9.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})}Te(()=>cI(t,n,e.key,e.ownKey,t.parent,e.options))}function w9(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 mE(t,e,n){if(typeof t.onStateInit!="function"&&!Jk(t,"stateInit"))return;let r=t.state;t.state=e;try{Qt("StateInit",t,n)}finally{t.state=r}}var yE=t=>({isDataOnlyKey:e=>fo(t).has(e)});function S9(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&&!Et(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Ce(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,x)=>{p.has(y)||ps(u,y,l)&&(l[y]=x,p.add(y),Gn(u,y,x))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(Be(f,!1));for(let y in f.translations)m.has(y)||g(y,f.translations[y])}Et(l)||mE(t,l,r),t.state=Et(l)?l:pr(l,yE(t.context)),t.state.__element=t,t.state.root=t.state,Ce(t,t.state),_a?.(c,t.state),Qt("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ce(t,t.state);return}if(typeof a=="string"){if(t.state=fI(a,e),t.state&&typeof t.state=="object"&&!Et(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}Ce(t,t.state),k9(t,a,e),Qt("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(Et(c))t.state=c;else{let l=c||{};mE(t,l,r),t.state=pr(l,e?.state?void 0:yE(t.context))}}else if(Et(a))t.state=a;else{let c={...a};mE(t,c,r),t.state=pr(c,e?.state?void 0:yE(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,Ce(t,t.state),_a?.(a,t.state),Qt("StateCreated",t,r)}function xD(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 lI(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 fI(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[o,s]=lI(t,e);return s?xD(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=xD(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 x9(t,e){let[n,r]=lI(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 k9(t,e,n){let r=t.__ref;if(!r||!n||e==="."||!Et(n.state))return;r.__stateBinding&&r.__stateBinding.dispose();let o=Te(()=>K(()=>{let s=x9(e,n);!s||typeof s!="object"||s===t.state||Te(()=>uI(t,t.state,s,!0))},{depth:r.path?r.path.length:0,label:_t(r,"state")}));o._isStateBinding=!0,r.__stateBinding=o,r.__effects&&r.__effects.push(o)}function uI(t,e,n,r){let o=t.__ref;if(!o)return;if(r||t.state===e){t.state=n,r&&Ce(t,n),ED(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&&uI(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,ED(o))}function kD(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 ED(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 E9=new Set(["s","state","ctx","context"]),bE=new WeakMap;function v9(t){if(bE.has(t))return bE.get(t);let e=null;try{let n=typeof Fe=="function"?Fe(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 bE.set(t,e),e}function A9(t){let e=v9(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var T9=3,C9=/^(is|has)[A-Z0-9_$]/,O9=new Set(["routerOptions"]),vD=new WeakSet;function R9(t,e){if(typeof t!="function"||t.length!==2||e&&(C9.test(e)||O9.has(e))||vD.has(t))return!1;let n=A9(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<T9||E9.has(r)?!1:(vD.add(t),!0)}function P9(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"||Yt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||hn(a)||xt[a]||Bt&&Bt.has(a)||c!==45&&(bn(n,a)||(tt()&&R9(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&&ht()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function L9(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 Ht(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return L9(t,e),n.apply(this,r)}}function Sc(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function _t(t,e){return()=>t.path.join(".")+"::"+e}var AD=new Set;function re(t,e,n){if(!tt())return;let r=_t(t,e)();AD.has(r)||(AD.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var TD=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,CD=new WeakMap,D9=t=>{let e=CD.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){TD.lastIndex=0;let r;for(;(r=TD.exec(n))!==null;)r[2].includes("{{")&&(e||(e=[])).push(r[2])}return CD.set(t,e),e},I9=(t,e)=>{let n=D9(t);if(n)for(let r=0;r<n.length;r++)e.add(n[r])},M9=(t,e)=>!hn(t)&&!Mo(e,t),_E=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&M9(t,r)&&I9(e,n)},CE=new WeakMap,fd=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ud=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)?Ke(t,e):t},dd=(t,e)=>t&&e?Ke(t,e):t||e||null,dI=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&fd(n,e)},$o=(t,e)=>dI(t,e)?ud(t.__ref.__runtimeSource[e]):null,ai=(t,e)=>(e&&t&&typeof t=="object"&&CE.set(t,e),t),N9=t=>{if(!t||typeof t!="object")return;let e=CE.get(t);return e&&CE.delete(t),e},OE=(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++)OE(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&&OE(o.value,e,n)}}},$9=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Yt.has(r)||e&&fd(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;OE(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},OD=(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}},pI=["attr","aria","data","metadata"],F9=t=>{if(pI.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},B9=(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&&fd(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!F9(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||fd(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&pI.includes(u)){for(let g in p)_E(g,p[g],n,r,d);continue}_E(u,p,n,r,d)}continue}_E(o,i,n,r,a)}return n};function hI(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=B9(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(P9(t),typeof t.text=="function"){let c=t.text,l=Ht(t,t.textDeps,c),f=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Jt.call(t,d,t.state)),d},u=K(()=>{if(!n.contentManaged)try{let d=PD(t,n,f);if(d===Oe)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&ri(t,d)}catch(d){re(n,"text",d)}},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(u),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Jt.call(t,c,t.state),f=K(()=>{if(n.contentManaged)return;let u=PD(t,n,l);u!==Oe&&(u!=null&&(t.text=u),t.node&&ri(t,u??""))},{depth:n.path.length,label:_t(n,"text")});n.__effects.push(f),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Yt.has(c)&&!hn(c)&&!n.__exec[c]&&!Lm(s,c)){if(xt[c]){let l=t[c],f=Ht(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=()=>{for(let E of g)t.node.classList.remove(E);g=null,h=void 0},y=()=>{wI(t,u,p,null),Dm(t,u,null),p=null},x=K(()=>{let E=t.context?.designSystem;E&&mt(E);try{let T=f(t,t.state,t.context);Sm();let _;try{_=xt[u](T,t,t.state,t.context)}finally{xm()}if(Array.isArray(_)){let b={};for(let w of _)if(w)for(let S in w)b[S]=w[S];_=b}if(u==="show"||u==="hide"){t.node&&Fm(t,u,!!(_&&_.display),!0);return}if(_&&t.node&&V9(_)){let b=kc(_);if(b===null||b!==h){h=b;let w=We(_,null,t.context?.cssPrefix),S=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(S&&S.length)for(let A of S)t.node.classList.add(A);g=S}}p&&y(),d=void 0}else if(_&&t.node){g&&m();let b=kc(_);if(b===null||b!==d||!Ec(t.node,p,t)){d=b;let w=DD(t,_,p,u);p=cd(t.node,w,t),Dm(t,u,p)}}else t.node&&(g&&m(),p&&y(),d=void 0)}finally{E&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(x),n.__exec[c]=l}else if(Bt&&Bt.has(c)){let l=t[c],f=Ht(t,t[c+"Deps"],l),u=c,d,p=null,g=K(()=>{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||!Ec(t.node,p,t)){d=y;let x={[u]:m},E=DD(t,x);p=cd(t.node,E,t),Dm(t,u,p)}}else d=void 0,p=null,Dm(t,u,null),u==="display"?yd(t,""):t.node.style[u]=""}finally{h&&ht()}},{depth:n.path.length,label:_t(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];xI(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(W9(t),typeof t.html=="function"){let c=t.html,l=Ht(t,t.htmlDeps,c),f=K(()=>{gn(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:_t(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=Ht(t,t.valueDeps,c),f=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Jt.call(t,d,t.state)),d},u=K(()=>{try{let d=ir(t,n,"value",f);if(d===Oe)return;LD(t,d)}catch(d){re(n,"value",d)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(u),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Jt.call(t,c,t.state),f=K(()=>{try{let u=ir(t,n,"value",l);if(u===Oe)return;LD(t,u)}catch(u){re(n,"value",u)}},{depth:n.path.length,label:_t(n,"value")});n.__effects.push(f),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=Ht(t,t.styleDeps,c),f,u=null,d,p,g,h,m=K(()=>{let y=l(t,t.state,t.context),x=t.context&&t.context.designSystem,E;if(y&&typeof y=="object"&&y===d&&x===g){let _=kc(y);E=_!==null&&_===p?h:si(t,y),p=_}else E=si(t,y),p=void 0;d=y,g=x,h=E;let T=kc(E);(T===null||T!==f||!Ec(t.node,u,t))&&(f=T,RE(t.node,u,E,t),cr(t.node,E,t),u=cd(t.node,E,t))},{depth:n.path.length,label:_t(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=Ht(t,Sc(t.styleDeps,c),l),u,d=null,p=K(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!Ec(t.node,d,t)){u=h;let m=si(t,{[c]:g});RE(t.node,d,Object.assign({},m,{[c]:""}),t),cr(t.node,m,t),d=cd(t.node,m,t)}}}catch(g){re(n,"style."+c,g)}},{depth:n.path.length,label:_t(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=Ht(t,Sc(t.attrDeps,c),t.attr[c]),f=c,u=f.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Jt.call(t,g,t.state)),g},p=K(()=>{try{let g=ir(t,n,u,d);if(g===Oe)return;t.node?.setAttribute&&oi(t.node,f,g)}catch(g){re(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=f.toLowerCase(),d=()=>Jt.call(t,l,t.state),p=K(()=>{try{let g=ir(t,n,u,d);if(g===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,sr(f,g??""))}catch(g){re(n,"attr."+f,g)}},{depth:n.path.length,label:_t(n,"attr."+f)});p._attrName=f.toLowerCase(),n.__effects.push(p)}}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 g=l,h="aria-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Jt.call(t,g,t.state),y=K(()=>{try{let x=ir(t,n,h,m);if(x===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,sr(h,x??""))}catch(x){re(n,"aria."+c,x)}},{depth:n.path.length,label:_t(n,"aria."+c)});y._attrName=h,n.__effects.push(y);continue}if(typeof l!="function")continue;let f=Ht(t,Sc(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>f(t,t.state,t.context),p=K(()=>{try{let g=ir(t,n,u,d);if(g===Oe||!t.node?.setAttribute)return;oi(t.node,u,g)}catch(g){re(n,"aria."+c,g)}},{depth:n.path.length,label:_t(n,"aria."+c)});p._attrName=u,n.__effects.push(p)}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 h=l,m="data-"+c.replace(/[A-Z]/g,E=>"-"+E.toLowerCase()),y=()=>Jt.call(t,h,t.state),x=K(()=>{try{let E=ir(t,n,m,y);if(E===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(m,E??"")}catch(E){re(n,"data."+c,E)}},{depth:n.path.length,label:_t(n,"data."+c)});x._attrName=m,n.__effects.push(x);continue}if(typeof l!="function")continue;let f=Ht(t,Sc(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>f(t,t.state,t.context),g=K(()=>{try{let h=ir(t,n,d,p);if(h===Oe||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){re(n,"data."+c,h)}},{depth:n.path.length,label:_t(n,"data."+c)});g._attrName=d,n.__effects.push(g)}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=Ht(t,Sc(t.classDeps,c),i[c]),f=K(()=>{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){re(n,"class."+c,u)}},{depth:n.path.length,label:_t(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&mI(t,n,t.if);for(let c of Object.keys(t)){if(Yt.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||hn(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(bn(u,c)&&!Mo(u,c)){let d=Vr(c)||c,p=Ht(t,t[c+"Deps"],f),g=d.toLowerCase(),h=()=>{let y=p(t,t.state,t.context);return typeof y=="string"&&y.includes("{{")&&(y=Jt.call(t,y,t.state)),y},m=K(()=>{try{let y=ir(t,n,g,h);if(y===Oe)return;let x=Io[c];if(x&&y!=null){let E=x(t);E!==void 0&&(y=E)}t.node?.setAttribute&&oi(t.node,d,y,!0)}catch(y){re(n,c,y)}},{depth:n.path.length,label:_t(n,c)});m._attrName=d.toLowerCase(),n.__effects.push(m)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Yt.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||hn(c)||Mo(a,c)||Io[c]||!bn(a,c))continue;let u=Vr(c)||c,d=u.toLowerCase(),p=()=>Jt.call(t,l,t.state),g=K(()=>{try{let h=ir(t,n,d,p);if(h===Oe||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,sr(u,h??""))}catch(h){re(n,c,h)}},{depth:n.path.length,label:_t(n,c)});g._attrName=u.toLowerCase(),n.__effects.push(g)}if(J9(t),lW(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=K(()=>{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&&gn(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(m){if(mn(t,"onStateUpdate",m),t.context?.strictMode)throw m}})},{depth:n.path.length,label:_t(n,"onStateUpdate")});n.__effects.push(d)}rW(t)}function RD(t){let e=t.parent,n=e?.node;if(!n||!t.node){Oc(t,t.parent);return}let r=null,o=Object.keys(e),s=o.indexOf(t.key);for(let a=s+1;a<o.length;a++){let c=e[o[a]];if(c?.node?.parentNode===n){r=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===r||(r?n.insertBefore(t.node,r):n.appendChild(t.node)),hm()}function gI(t){yI(t),gW(t),OI(t),TW(t),AW(t)}function mI(t,e,n){let r=Ht(t,t.ifDeps,n),o=K(()=>{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,_9(t,s),r=Ht(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=Lo(t)),t.node&&(t.node.ref=t),RD(t),yI(t),OI(t),Qt("Render",t,{}),TE(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=nr(t)),Qt("Init",t,{});let c=ct.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||Lo(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}Qt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),MI(t,{}),hI(t,{skipIfEffect:!0}),gI(t),$I(t,{}),RD(t),Qt("Create",t,{}),Qt("Complete",t,{}),Qt("Render",t,{}),Qt("RenderRouter",t,{}),TE(t,{})}},{depth:e.path.length,label:_t(e,"if")});e.__effects.push(o)}var Oe=Symbol("builtTextKept");function PD(t,e,n){let r=e.__builtText;if(!r)return n();if(r.parentNode!==t.node||typeof go!="function")return e.__builtText=null,n();let{value:o,ready:s}=go(n);return s?o:Oe}function ir(t,e,n,r){let o=e.__builtAttrs;if(!o||!o.values.has(n))return r();let s=t.node;if(s!==o.node||typeof go!="function")return e.__builtAttrs=null,r();let{value:i,ready:a}=go(r);return a?(o.values.delete(n),o.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,o.values.get(n)),Oe)}function ri(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);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 j9(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function U9(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function oi(t,e,n,r){n==null||n===!1&&!ii(e)?$m(t,e,null):typeof n=="function"||typeof n=="object"||(r&&e==="src"&&"src"in t?t.src=n:$m(t,e,sr(e,n)))}function $m(t,e,n){let r=j9(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),U9(t,r)}function LD(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=n.ownerDocument,s=!!o&&o.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function yI(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&ri(t,t.text),LI(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}cr(e,si(t,n),t)}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&&!ii(n)||e.setAttribute&&e.setAttribute(n,sr(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 kc(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function V9(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 cd(t,e,n){if(!t||!t.style||!e)return null;let r=t.style,o=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=ar(s);o.push(a,Rc(n,r,a),$E(n,r,a))}return o}function bI(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function _I(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function ar(t){return Br(t)}function RE(t,e,n,r){if(!t||!t.style||!e||!e.length)return;let o=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(ar(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||Rc(r,o,a)===e[i+1]&&(r&&a==="display"?yd(r,""):typeof o.removeProperty=="function"&&o.removeProperty(a))}}function Dm(t,e,n){let r=t.__ref;r&&(n?(r.__heldInline||(r.__heldInline=new Map)).set(e,n):r.__heldInline&&r.__heldInline.delete(e))}function z9(t,e,n){if(t.__heldInline){for(let[r,o]of t.__heldInline)if(r!==e){for(let s=0;s<o.length;s+=3)if(o[s]===n)return!0}}return!1}function wI(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!n||!s||!s.style)return;let i=o.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];r&&r.has(d)||z9(o,e,d)||(a||(a=[]),a.push(u),i&&i.delete(d))}if(!a)return;let c=i&&ME(t,i),l=s.style,f=[];for(let u of a){let d=n[u];c&&c[d]!==void 0||Rc(t,l,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?yd(t,""):typeof l.removeProperty=="function"&&l.removeProperty(u)}function H9(t,e,n){let r=[];for(let i=0;i<e.length;i+=3)r.push(e[i]);let o=!1;for(let i in n){let a=Po[i];r.some(c=>a.includes(c))&&(o=!0,r.includes(i)||r.push(i))}if(!o)return;let s=t.node.style;e.length=0;for(let i of r)e.push(i,Rc(t,s,i),$E(t,s,i))}function Ec(t,e,n){if(!e||!t||!t.style)return!1;let r=t.style;for(let o=0;o<e.length;o+=3)if(Rc(n,r,e[o])!==e[o+1]||$E(n,r,e[o])!==e[o+2])return!1;return!0}var pd=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,SI=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",Vm=t=>pd(t)?t:"--"+t;function zm(t,e){if(!Fo(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)}SI(o)&&(n||(n={}),n[Vm(r)]=o)}return n}function xI(t,e,n,r,o){kI(t,o,Ht(t,r,n),s=>SI(s)?{[e]:s}:null)}function kI(t,e,n,r,o){let s=t.__ref,i,a=null,c=K(()=>{gn(t,()=>{try{let l=r(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=kc(l);(u===null||u!==i||!Ec(f,a))&&(i=u,RE(f,a,l),l&&cr(f,l),a=l?cd(f,l):null,o&&o(l))}catch(l){re(s,e,l)}})},{depth:s.path.length,label:_t(s,e)});s.__effects.push(c)}function W9(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){K9(t,n),e.__exec.vars=n;return}if(Fo(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||xI(t,Vm(r),o,Sc(t.varsDeps,r),"vars."+r)}}function K9(t,e){let n=t.__ref;kI(t,"vars",Ht(t,t.varsDeps,e),r=>zm(r),r=>{n.__varsInline=r?new Set(Object.keys(r)):null})}function PE(t,e){if(typeof t[e]=="function"&&(Mo(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!pd(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!Fo(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&Vm(r)===e)return!0;return!1}function q9(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(ar(n)));return e}function G9(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=ar(i);Po[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function ME(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=Po[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 DD(t,e,n,r){let o=t.node,s=q9(e),i=s&&ME(t,s);if(n&&wI(t,r,n,i?new Set([...s,...Object.keys(i)]):s),cr(o,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(cr(o,i),Object.assign({},e,i)):e}function Y9(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=ME(t,e.__inlineCssKeys);if(!n)return;let r=[];if(e.__heldInline)for(let o of e.__heldInline.values())Ec(t.node,o,t)&&r.push(o);cr(t.node,n);for(let o of r)H9(t,o,n)}function si(t,e){return!e||typeof e!="object"?e:gn(t,()=>{try{return Yk(e,t)}catch{return e}})}var EI="none",NE=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),ID=t=>bI(t,"display")===EI&&_I(t,"display")==="important";function vI(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function Fm(t,e,n,r){let o=t.__ref,s=t.node;if(!o||!s||!s.style)return;let i=o.__hiddenBy,a=!!(i&&i.size);n?(i||(i=o.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?ID(c)||c.setProperty("display",EI,"important"):(a||r&&ID(c))&&vI(c,o.__shownDisplay||null)}function yd(t,e,n){let r=t.__ref,o=e?[String(e),n||""]:null;r&&(r.__shownDisplay=o);let s=t.node;!s||!s.style||NE(r)||vI(s.style,o)}function Rc(t,e,n){let r=n==="display"&&t&&t.__ref;return NE(r)?r.__shownDisplay?r.__shownDisplay[0]:"":bI(e,n)}function $E(t,e,n){let r=n==="display"&&t&&t.__ref;return NE(r)?r.__shownDisplay?r.__shownDisplay[1]:"":_I(e,n)}function cr(t,e,n){if(!t||!e||!t.style)return;let r=null;for(let o in e){let s=e[o];if(s!=null){if(o.charAt(0)==="&"&&typeof s=="object"){r||(r={}),r[o]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=Br(o),c=i.trim(),l=/\s*!important\s*$/.test(c),f=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){yd(n,f,l?"important":"");continue}t.style.setProperty(a,f,l?"important":"")}catch{}}}r&&X9(t,r)}function X9(t,e){let n=`_ds${tI.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=Fr(i.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).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=Fr(c),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),m="";for(let y in p)m+=`${ar(y)}: ${p[y]};`;u+=$r(`${h} { ${m} }`,h)+`
|
|
61
|
+
`}else f+=`${ar(d)}: ${p};`}f&&(s+=$r(`${c} { ${f} }`,c)+`
|
|
62
|
+
`),u&&(s+=u)}}s&&(o.textContent+=s)}var MD=new Set;function ND(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 Z9(t,e,n){let r=ND(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(ND(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";MD.has(s)||(MD.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 J9(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()&&Z9(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=K(()=>{let d=t.state&&(Et(t.state)?t.state.root:null);if(!d||!Et(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(Et(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&gn(t,()=>{try{if(Om(o)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>or(o,!1),m=>{or(o,!0),rr("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}):(or(o,!1),h===!1&&(g=!0))}}catch(h){or(o,!0),rr("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"&&gn(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){rr("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:o.path.length,label:_t(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function FE(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 BE(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)];if(!n)return t;if(typeof n=="string"&&!/^@(supports|container)\b/.test(n)){let r=Q9(e);if(r){let o=Uk(n);if(o)return`@container ${r} ${o}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function jE(t,e,n,r){return Us(t)?js(()=>hd(e,n,!1,r)):hd(e,n,!1,r)}function Q9(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let r=t.parent;r&&typeof r=="object";r=r.parent){let o=r.breakpointsFrom;if(o!=null&&o!==!1){n=km(o,r);break}}return e&&(e.__breakpointContainer=n),n}var $D=new Set;function tW(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;$D.has(r)||($D.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 FD=new Map;function eW(t){let e=FD.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push(nd(o))};return n(Po[t]),n(Am[t]),FD.set(t,e),e}function BD(t,e,n){if(PE(t,e)||n&&n.has(e))return!0;let r=eW(ar(e));for(let o=0;o<r.length;o++){let s=r[o];if(PE(t,s)||n&&n.has(s))return!0}return!1}function hd(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(xt[a]){let u=xt[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let 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,BD(e,u,r))}continue}if(a==="vars"){let u=zm(c,e);if(u)for(let d in u)i(d,u[d],PE(e,d)||!!(r&&r.has(d)));continue}if(FE(a,e)){let u=hd(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()&&tW(a,e);continue}let l=BE(a,e),f=jE(l,c,e,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,BD(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 Fo=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function AI(t,e){for(let n in e){let r=e[n];t[n]=Fo(r)?AI(Fo(t[n])?t[n]:{},r):r}return t}function nW(t,e){if(!Fo(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;Fo(o)&&(n=AI(n||{},o))}return n}function UE(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)&&UE(t[n],e+1))return!0}return!1}function TI(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(FE(t,n)){let s=hd(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=BE(t,n),o=jE(r,e,n);return Object.keys(o).length?{cssProp:r,block:o}:null}function rW(t){let e=t.__ref;for(let n of Object.keys(t)){if(!sI(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!UE(r))continue;let o=null,s,i=K(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&mt(a);let c,l=!1;try{let f=TI(n,r,t),u=f?kc(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=We({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&ht()}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:_t(e,"cssBlock("+n+")")});e.__effects.push(i)}}var oW=()=>!0,sW=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!xt[t]||!!(Bt&&Bt.has(t))||pd(t)||t==="vars"};function iW(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(sW(a,n[a])||Yt.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=hE({[e]:n},t.tag||"div",r,oW),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function jD(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){re(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Jt.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&&CI(i,e,l);continue}let p=d===!1&&!ii(l)?null:String(sr(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),$m(i,l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function CI(t,e,n){t.getAttribute(n)===e.written.get(n)&&$m(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function aW(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&CI(t.node,e,s)}function OI(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 wE,cW=()=>wE===void 0?wE=tt():wE;function UD(t,e){let n=Mp;typeof n=="function"?t.untrackedReads+=n(e):e()}function lW(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,hides:!1,probe:!1,untrackedReads:0},f=iW(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),x=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&x&&typeof x=="object"&&!Array.isArray(x))){if(m==="vars"&&Fo(x)){for(let E of Object.keys(x))E&&u.add(Vm(E));continue}u.add(m)}}let d=()=>{let m,y=l.probe,x;if(y?UD(l,()=>{x=t[i]}):x=t[i],x===void 0){let _=!!t.state&&i in t.state,b=t.state?t.state[i]:void 0;if(_||b!==void 0)m=b;else{let w=t.context?.cases?.[i];if(w===void 0)return;try{m=typeof w=="function"?w.call(t,t):w}catch(S){m=!1,e.__conditionalError=S,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,S?.message||S)}}}else if(typeof x=="function")try{y?UD(l,()=>{m=x(t,t.state,t.context)}):m=x(t,t.state,t.context)}catch(_){m=!1,e.__conditionalError=_,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,_?.message||_)}else m=x;y&&(l.probe=!1);let E=c?!m:!!m;if(!t.node)return;let T=t.context?.designSystem;if(E===l.lastMatch){if(E&&f&&t.node.setAttribute){T&&mt(T);try{jD(t,n,o,f,l,!1)}finally{T&&ht()}}return}l.lastMatch=E,T&&mt(T);try{if(E){let _={},b={},w=!1,S=!1;for(let C in a){if(!Object.prototype.hasOwnProperty.call(a,C))continue;let O=a[C],B=C.charAt(0);if((B===":"||B==="@"||B==="&"||B==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(FE(C,t)){let N=hd(O,t,!1,u);Object.keys(N).length&&(b[`[data-theme="${C.slice(1)}"] &`]=N,w=!0)}else{let N=BE(C,t),G=jE(N,O,t,u);Object.keys(G).length&&(b[N]=G,w=!0)}continue}let $=typeof O=="function"?O(t,t.state,t.context):O;if($!=null){if(C==="hide"||C==="show"){let N=xt[C]($,t,t.state,t.context);N&&N.display&&(S=!0)}else if(xt[C]){let N=xt[C]($,t,t.state,t.context);if(N){let G=Array.isArray(N)?N:[N];for(let Y of G)Y&&Object.assign(_,Y)}}else if(Bt&&Bt.has(C))_[C]=$;else if(pd(C))_[C]=$;else if(C==="vars"){let N=zm($,t);N&&Object.assign(_,N)}}}(S||l.hides)&&(l.hides=S,Fm(t,o,S));let A=Object.keys(_);if(A.length){cr(t.node,_,t);for(let C of A){let O=r.get(C);O||(O=[],r.set(C,O));let B=O.findIndex($=>$.key===o);B!==-1&&O.splice(B,1),O.push({key:o,value:_[C]})}l.appliedKeys=A}else l.appliedKeys=null;if(w){let C=We(b,null,t.context?.cssPrefix,{state:!0}),O=C?C.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let B of O)t.node.classList.add(B);l.appliedClasses=O}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&&jD(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&aW(t,n,o,l),l.appliedKeys){for(let _ of l.appliedKeys){let b=r.get(_);if(!b)continue;let w=b.findIndex(S=>S.key===o);if(w!==-1)if(b.splice(w,1),b.length){let S=b[b.length-1].value,A=Br(_),C=String(S).trim().replace(/\s*!important\s*$/,"");Rc(t,t.node.style,A)!==C&&cr(t.node,{[_]:S},t)}else r.delete(_),pd(_)?t.node.style.removeProperty(_):Br(_)==="display"?yd(t,""):t.node.style[_]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,Fm(t,o,!1)),l.appliedClasses){for(let _ of l.appliedClasses)t.node.classList.remove(_);l.appliedClasses=null}}}finally{T&&ht()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=Ht(t,p,d);cW()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=K(g,{depth:e.path.length,label:_t(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 SE=new WeakSet,xE=new WeakMap;function fW(t){let e=xE.get(t);if(e==="painted")return!1;if(e===void 0){xE.set(t,"open");let n=t.defaultView,r=()=>{xE.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(r):setTimeout(r,0)}return!0}var kE=new WeakSet;function uW(t){if(kE.has(t))return;kE.add(t);let e=()=>{kE.delete(t);let r=t.body||t.documentElement;r&&r.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}function dW(t,e){let n=t.ownerDocument;if(n&&!fW(n)){if(ct.hydration!==null&&e&&e.context&&e.context.__hydration){uW(n);return}SE.has(n)||(SE.add(n),queueMicrotask(()=>{SE.delete(n);let r=n.body||n.documentElement;r&&r.offsetWidth}))}}var EE=new WeakSet,VD=!1;function zD(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function LE(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"?LE(s,o):o}return n}function RI(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=RI(o,e);Object.keys(s).length&&(n[r]=s)}else e(r)||(n[r]=o)}return n}function HD(t,e,n){let r=VE(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")&&BL(r[o],i,r[o+2]))return!0}return!1}function pW(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=VE(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&&Tm(f,t[u],d),m=!h&&g!==void 0&&g>a&&Tm(f,void 0,d);if(h||m){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var WD=new Map;function VE(t){let e=WD.get(t);if(e!==void 0)return e;let n=ar(t),r=Po[n];if(e=null,Array.isArray(r)){e=[];for(let o of r)e.push(o,nd(o),n)}return WD.set(t,e),e}var PI=new Set(["page","zoom"]),hW=(t,e)=>{PI.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let r=!1;try{r=n.supports(ar(t),String(e))}catch{r=!1}r&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function LI(t){let{node:e}=t;if(!e)return;if(VD||(VD=!0,We({display:"none"})),EE.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}EE.add(t);let n=t.context?.designSystem;n&&mt(n),Sm();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=!1,h=(_,b)=>{if(b&&typeof b=="object"&&zD(_)){c||(c={});let w=c[_];w&&(b=LE(w,b)),c[_]=b}else(b===null||typeof b!="object")&&(l||(l=new Set),l.add(_),u!==void 0&&(d||(d=new Map),d.set(_,u)));r[_]=b};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&xt.theme){let _=xt.theme(t.theme,t,t.state,t.context);if(_){let b=w=>{for(let S in w){let A=w[S];A&&typeof A=="object"?zD(S)&&(i||(i={}),i[S]=A):VE(S)&&(a||(a=[])).push(S),r[S]=A}};if(Array.isArray(_))for(let w of _)w&&b(w);else b(_);o=!0}}let m=(_,b)=>{if(_==="vars"){let w=zm(b);if(w){for(let S in w)h(S,w[S]);o=!0}return}if(_==="hide"||_==="show"){let w=xt[_](b,t,t.state,t.context);w&&w.display&&(g=!0);return}if(xt[_]){let w=xt[_](b,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let S of w)if(S)for(let A in S)h(A,S[A])}else for(let S in w)h(S,w[S]);o=!0}}else if(Bt&&Bt.has(_))b!=null&&typeof b!="object"&&(h(_,b),o=!0);else if(_.charCodeAt(0)===45)b!=null&&typeof b!="object"&&(h(_,b),o=!0);else if(_.charAt(0)==="&"||_.charAt(0)==="@"||_.charAt(0)===":"||_.charAt(0)==="["){if(b&&typeof b=="object"&&!Array.isArray(b)){if(UE(b))return;let w=TI(_,b,t);w&&(h(w.cssProp,w.block),o=!0)}}else(typeof b=="string"||typeof b=="number")&&!PI.has(_)&&tt()&&hW(_,b)};if(typeof t.class=="string"){let _=nW(t.class,t.context?.designSystem?.class);if(_)for(let b in _)m(b,_[b])}let y=l?new Set(l):null,x=t.tag||"div";for(let _ of Object.keys(t)){if(typeof t[_]=="function"){let w=f&&f.get(_);w!==void 0&&Mo(x,_)&&(p||(p=new Map),p.set(ar(_),w));continue}if(u=f?f.get(_):void 0,_==="vars"){m(_,t[_]);continue}if(Yt.has(_)||_==="theme")continue;let b=_.charCodeAt(0);b>=65&&b<=90||hn(_)||Lm(x,_)||m(_,t[_])}u=void 0;let E=d?pW(r,d,p):null;if(a&&l)for(let _ of a)l.has(_)||!(_ in r)||HD(_,r,l)&&delete r[_];if(i){let _=l?b=>l.has(b)||HD(b,r,l):null;for(let b in i){let w=_?RI(i[b],_):i[b];c&&c[b]&&(w=LE(w,c[b])),Object.keys(w).length?r[b]=w:delete r[b]}}if(G9(t,r,l,E?new Set([...y||[],...E]):y),Fm(t,"static",g),o){r.display&&String(r.display).includes("!important")&&(cr(e,{display:r.display},t),delete r.display);let _=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof _=="string"&&_!==""&&r.display&&r.display!==_&&(r.display=_);let b=We(r,null,t.context?.cssPrefix);if(s=b?b.split(" ").filter(Boolean):[],b&&e.classList){let w=s,S=!1;for(let A of w)e.classList.add(A),S||(A.charCodeAt(0)===95&&A.charCodeAt(1)===99||A.charCodeAt(0)===95&&A.indexOf("_c",1)!==-1)&&(S=!0);S&&dW(e,t)}}let T=t.__ref;if(T){let _=T.__staticCssClasses;if(_&&e.classList){let b=new Set(s);for(let w of _)b.has(w)||e.classList.remove(w)}T.__staticCssClasses=s}Y9(t)}finally{xm(),n&&ht(),EE.delete(t)}}var Qk=t=>!!xt[t]||!!(Bt&&Bt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function tE(t){t&&t.node&&LI(t)}function gW(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,sr(i,s))}let n=pE(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"||Yt.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!hn(o)&&!Mo(r,o)&&bn(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Io[o])continue;i=Jt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!ii(Vr(o)||o))continue;let a=Vr(o)||o;e.setAttribute(a,sr(a,i))}}}function eE(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||hn(e))return;let o=t.tag||"div";if(Mo(o,e)||!bn(o,e))return;let s=Vr(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=Io[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Jt.call(t,l,t.state)),oi(n,s,l)}function mW(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{}qD(o),No.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),YD(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){gd(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,KD(t,o);return}o.awaitingLayout=!1;let i=_W(n),a=wW(i),c=n.style.height;n.style.height="0px",a&&vE(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&vE(n);return}let f=SW(n,i),u=f!=null&&l<f?f:l,d=EW(i),p=d!=null&&u>d;n.style.height=kW(p?d:u,i)+"px",a&&vE(n),YD(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,KD(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}qD(o),No.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,bW(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 gd(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),No.add(t),md())}function yW(){let t=Array.from(No);No.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=Cc()),o.attachAttempts+=1,o.attachAttempts<=rI&&Cc()-o.firstAttemptAt<oI&&(No.add(n),md());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function KD(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,gd(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,gd(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function qD(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function bW(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&&gd(t,!0)},()=>{})}function _W(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var ci=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,zE=t=>(ci(t.paddingTop)||0)+(ci(t.paddingBottom)||0),DI=t=>(ci(t.borderTopWidth)||0)+(ci(t.borderBottomWidth)||0);function wW(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 vE(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 SW(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=ci(e.lineHeight)||xW(t,e);return r>0?n*r+zE(e):null}var ad=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],GD=new WeakMap;function xW(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=GD.get(n);o||(o=new Map,GD.set(n,o));let s=ad.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<ad.length;l++)e[ad[l]]&&(a[ad[l]]=e[ad[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 kW(t,e){return e?e.boxSizing==="border-box"?t+DI(e):e.boxSizing==="content-box"?Math.max(0,t-zE(e)):t:t}function EW(t){if(!t)return null;let e=ci(t.maxHeight);if(e==null||!(e>0))return null;let n=zE(t),r=DI(t),o=t.boxSizing==="border-box"?e-r:e+n,s=ci(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function YD(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 XD=["srcObject","muted"],vW=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function AW(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<XD.length;r++){let o=XD[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=vW(o,a);if(e[o]!==c)try{e[o]=c}catch(l){re(n,o,l)}};if(typeof s=="function"){let a=Ht(t,t[o+"Deps"],s),c=K(()=>{try{i(a(t,t.state,t.context))}catch(l){re(n,o,l)}},{depth:n.path.length,label:_t(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 TW(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return Gt("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?Ht(t,t.autoGrowDeps,r):null,s=K(()=>{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}mW(t,a)},{depth:n.path.length,label:_t(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var II=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function MI(t,e){let n=!1;for(let r of Object.keys(t)){if(!hn(r)||II.has(r))continue;if(r==="onInView"||r==="onLeaveView"){n=!0;continue}let o=ym(r);if(o){bm(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=Ju(t,s),typeof s!="function")continue;let a=gm(r);tr.has(a)||fc(p9(a),t,s,i)}CW(t),n&&ct.viewEvents&&ct.viewEvents(t)}function CW(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of II){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),x=Math.abs(h);if(Math.max(y,x)<o)return;let E;if(y>x*1.2)E=g<0?"left":"right";else if(x>y*1.2)E=h<0?"up":"down";else return;let T="onSwipe"+E.charAt(0).toUpperCase()+E.slice(1),_=n[T],b=n.onSwipe;_&&_.call(t,d,t,t.state,t.context),b&&b.call(t,{direction:E,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 HE(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"?ud(l):o;if(a&&!i&&(f=dd(f,ud(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=Ke(l,c));return c=bd(c,s),{def:c,key:iI(c?.key,e,n,t),supplied:f,props:l}}function bd(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 zr=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},NI=(t,e)=>e?e.nextSibling:rd(t.node,t.__ref.__textNode),Hm=(t,e,n)=>{let r=NI(t,n);return e!==r&&t.node.insertBefore(e,r),e},_d=(t,e)=>{let n=NI(t,e);return n?{position:"before",node:n}:void 0};function WE(t,e,n){let r=null;for(let o=0;o<e.length;o++){if(n&&n.has(e[o]))continue;let s=zr(t[e[o]]);s&&(r=Hm(t,s,r))}}function ZD(t,e,n,r){let o=ct.rows,s=o!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?o.track(t):null,i=KE(t,e,n,r,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function KE(t,e,n,r,o,s){if(!e||!t.node)return;let i=t.childExtends,a=$o(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=HE(t,e[g],g,u,a,i,d,o);s&&s.add(m.key,e[g],m,u,i);try{let y=Xt(ai(m.def,m.supplied),t,m.key,n,h);return!y&&s&&s.none(m.key),Nm(t,y),y}catch(y){if(s&&s.failed(m.key),typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${m.key}" failed to construct at ${x} (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=fI(e,t);if(Array.isArray(u))return KE(t,u,n,r,!0,s)}if(typeof e=="object"){let u=(p,g)=>{if(Yt.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let m=o?dd(a,ud(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Ke(t.childProps,h)),h=bd(h,i);let y=Xt(ai(h,m),t,jm(t,p),n,g);return Nm(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 Tc(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=Jt.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 $I(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function",i=s||dI(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=Ht(t,t.childrenDeps,u),m=K(()=>{let y=p;p=!0;let x;try{x=h(t,t.state,t.context)}catch(C){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${y?"":" (initial run, treating as empty)"}:`,C?.message||C)}return}if(!y){g=x;return}if(x===t.children)return;OD(t,x),t.children=x,d.__mount&&d.__mount.chunkGen++;let E=typeof t.onContentUpdate=="function",T=E?[]:null,_=E?[]:null,b=E?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let C=t.childProps,O=[],B=new Map;for(let J=0;J<x.length;J++){let Z=x[J],Q=C;if(typeof C=="function")try{Q=C(t,Z)}catch{Q=null}let it=iI(Q&&Q.key,Z,J,t);O.push(it),B.set(it,{rawChild:Z,childProps:Q})}let $=new Set(O),N=kD(d,d.__children.slice());for(let J of N)if(!$.has(J)){let Z=t[J];Z?.remove&&Z.remove(),delete t[J],_&&_.push(J)}let G=t.childExtends,nt=!(t.tag==="fragment")&&!!t.node,ot=null,st=new Set;for(let J of O){let Z=B.get(J),Q=Z.rawChild,it=t[J];if(it&&it.state){if(Q&&typeof Q=="object"){let yt=it.state,jt=yt.$replace||yt.replace,Tt=yt.$update||yt.update;try{if(typeof jt=="function")jt.call(yt,Q);else if(typeof Tt=="function"){for(let Pt in yt)if(!(Pt==="__element"||Pt==="root"||Pt==="parent"||Pt==="update")&&!Object.prototype.hasOwnProperty.call(Q,Pt))try{yt[Pt]=void 0}catch{}Tt.call(yt,Q)}else for(let Pt in Q)yt[Pt]=Q[Pt]}catch(Pt){if(typeof console<"u"&&console.error){let Ze=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${J}" failed to patch at ${Ze} (reconcile, keeping its previous data for this pass):`,Pt?.message||Pt)}}}if(b&&b.push(J),nt){let yt=zr(it);yt&&(ot=Hm(t,yt,ot))}continue}let rt=Q;(typeof Q=="string"||typeof Q=="number")&&(rt={value:Q,text:Q});let gt=Z.childProps,q=bd(gt?{...gt,state:rt}:{state:rt},G),W=typeof C=="function"?ud(gt):$o(t,"childProps"),Rt;try{Rt=Xt(ai(q,W),t,J,e,nt?_d(t,ot):void 0)}catch(yt){if(typeof console<"u"&&console.error){let jt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${J}" failed to construct at ${jt} (reconcile, skipping this row):`,yt?.message||yt)}st.add(J);continue}if(d.__disposed)return;if(nt){let yt=zr(Rt);yt&&(ot=yt)}T&&T.push(J)}nt&&WE(t,O,st.size?st:null),d.__children=st.size?O.filter(J=>!st.has(J)):O,E&&(T.length||_.length)&&Im(t,{added:T,removed:_,kept:b}),Tc(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&ct.rows.reconcile(t,d,x,e,E)){Tc(t,!1);return}let A=E?[...d.__children]:null;for(let C of kD(d,[...d.__children])){let O=t[C];O?.remove&&O.remove(),delete t[C]}d.__children=[],ZD(t,x,e,0),Tc(t,!1),E&&Im(t,{added:[...d.__children],removed:A,kept:[]})},{depth:d.path.length,label:_t(d,"children")});d.__effects.push(m),n=g,OD(t,n),t.children=n}let a=ct.mount,c=a!==null?a.budgetOf(t,e):0,l=od(t.__ref),f=s?ZD(t,n,e,c):KE(t,n,e,c,i);if(c&&od(t.__ref)>l){a.defer(t,c,()=>JD(t,e,n,r,o,f,c));return}JD(t,e,n,r,o,f,c)}function JD(t,e,n,r,o,s,i){let a=od(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=Ke(t.childProps,c)),c=bd(c,o);let l=dd($o(t,"childProps"),$o(t,"content"));Nm(t,Xt(ai(c,l),t,"content",e))}if(!(n&&!s)){if(i&&od(t.__ref)>a){ct.mount.defer(t,i,()=>QD(t,e,o,i));return}QD(t,e,o,i)}}function QD(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||Yt.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&&fd(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(Yt.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=Ke(t.childProps,u)),u=bd(u,n);let d=s?dd($o(t,"childProps"),dd(i[l]||null,$o(t,l))):null;Nm(t,Xt(ai(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 Oc(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 c=o.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(r,l||o)}else c.insertBefore(r,o);hm();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&ct.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&ct.hydration.place(c,t,e,s,r))return}let i=n?.node,a=r.parentNode===s;if(i&&i.parentNode!==s)(!a||r.nextSibling)&&s.appendChild(r);else if(n?.position==="before"&&i)i!==r&&(!a||r.nextSibling!==i)&&s.insertBefore(r,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===r||(c?s.insertBefore(r,c):s.appendChild(r))}else(!a||r.nextSibling)&&s.appendChild(r);hm()}var Bm=3;function Om(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Bm?!1:(t.__inBeforeUpdate=!0,!0)}function or(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Bm&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Bm}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Qt(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);rr(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=>{mn(e,o,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(mn(e,o,u),e.context?.strictMode)throw u}finally{l&&ht(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}var wd=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),UI=1e3,VI=24,qE=Object.freeze({}),XE=Object.freeze({}),Pc=0,Wm=t=>{if(Et(t)||wd(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function GE(t,e,n){if(t===null||typeof t!="object")return t;if(--Pc<0||e>VI){Pc=-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]:GE(t[s],e+1,!1);return o}if(n||!Wm(t))return t;let r={};for(let o in t)wd(t,o)&&(r[o]=GE(t[o],e+1,o==="extends"||o==="childExtends"));return r}function FI(t){Pc=UI;let e;try{e=GE(t,0,!1)}catch{return qE}return Pc<0?qE:e}function YE(t,e,n,r){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Pc<0||n>VI)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]:!YE(t[s],e[s],n+1,!1))return!1;return!0}if(r||Array.isArray(e)||!Wm(t)||!Wm(e))return!1;let o=0;for(let s in t)if(wd(t,s)&&(o++,!wd(e,s)||!YE(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)wd(e,s)&&o--;return o===0}function BI(t,e){if(e===qE||e===XE)return!1;Pc=UI;try{return YE(t,e,0,!1)}catch{return!1}}var Km=t=>$e()?Te(()=>FI(t)):FI(t),jI=(t,e)=>$e()?Te(()=>BI(t,e)):BI(t,e);function zI(t,e,n,r){let o=t;return o&&typeof o=="object"&&!Array.isArray(o)&&!Wm(o)&&(r||n&&!o.ignoreChildExtends)&&(o=r?Ke({},o):{...o}),typeof e=="function"?{item:o,props:r}:o}var HI=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),qm=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,r,o,s){this.rows.set(e,Km(zI(n,o,s,r.props)))}failed(e){this.rows.set(e,XE)}none(e){this.rows.delete(e)}},OW=Object.freeze([]);function RW(t,e,n,r,o){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=HI(t),c=jI(a,i),l=t.childProps,f=$o(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let w=0;w<n.length;w++){let S=HE(t,n[w],w,l,f,u,!1,!0);if(p.has(S.key))return!1;p.set(S.key,S),d[w]=S}for(let w=0;w<d.length;w++){let S=d[w];S.input=zI(n[w],l,u,S.props);let A=c?s.get(S.key):void 0;if(A===void 0)continue;let C=t[S.key];C&&C.__ref&&C.parent===t&&jI(S.input,A)&&(S.kept=!0,S.snap=A)}let g=o?[]:null;for(let w of s.keys()){let S=p.get(w);if(S&&S.kept)continue;let A=t[w];A?.remove&&A.remove(),delete t[w],g&&g.push(w)}let h=o?[]:null,m=o?[]:null,y=new Map,x=null,E=null;for(let w=0;w<d.length;w++){let S=d[w];if(S.kept){y.set(S.key,S.snap),m&&m.push(S.key);let O=zr(t[S.key]);O&&(E=Hm(t,O,E));continue}y.set(S.key,Km(S.input));let A;try{A=Xt(ai(S.def,S.supplied),t,S.key,r,_d(t,E))}catch(O){if(y.set(S.key,XE),x||(x=new Set),x.add(S.key),typeof console<"u"&&console.error){let B=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${S.key}" failed to construct at ${B} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!A){y.delete(S.key);continue}let C=zr(A);C&&(E=C),h&&h.push(S.key)}e.__plainRows=new qm(c?i:Km(a),y);let T=Array.from(y.keys());WE(t,T,x);let _=new Set(e.__children),b=[];for(let w=0;w<T.length;w++)_.has(T[w])&&b.push(T[w]);for(let w of e.__children)y.has(w)||b.push(w);return e.__children=b,o&&(h.length||g.length)&&Im(t,{added:h,removed:g,kept:m}),!0}var WI={track:t=>new qm(Km(HI(t)),new Map),reconcile(t,e,n,r,o){let s=Array.isArray(n)?n:n==null||n===!1?OW:null;return!!s&&RW(t,e,s,r,o)}};var Gm=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?Gm(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o},PW=new Set(["src","srcset"]),LW=new Set(["class","style","id","data-br"]),DW=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),IW=new Set(["sizes","media","type","width","height"]),MW=t=>t==="img"?DW:t==="source"?IW:null,NW=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",KI=(t,e)=>{for(let n of e){let r=t.nodes.get(n.target);r&&(r.delete(n.attributeName),r.size||t.nodes.delete(n.target))}},$W=(t,e,n)=>{let r=t.built;if(!r){let o=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!o)return!1;let s=new Map;r=t.built={nodes:s,observer:null},r.observer=new o(i=>KI(r,i))}return r.nodes.set(e,new Set(n)),r.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function jo(t){let e=t&&t.built;if(!e)return 0;t.built=null,KI(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[r,o]of e.nodes)for(let s of o)r.hasAttribute(s)&&(r.removeAttribute(s),n++);return e.nodes.clear(),n}function ZE(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=nr(t);if(n==="string"||n==="fragment")return null;let r=Gm(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=jr(n)&&(n==="svg"||t.parent?.node?.namespaceURI===ni),a=jr(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===ni:s.namespaceURI!==ni;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 p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let f=null,u=null,d=MW(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))PW.has(p)||p==="data-key"||(LW.has(p)||(u||(u=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(NW(p)?(f||(f=[])).push(p):s.removeAttribute(p)));if(f&&!$W(e,s,f))for(let p of f)s.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:u}),l){let p=0,g=0,h=s.firstChild,m=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;m&&t.__ref&&(t.__ref.__builtText=m);for(let y=s.firstChild;y;){let x=y.nextSibling;y!==m&&!l.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,s.removeChild(y)),y=x}(g||p>(t.text!=null&&!m?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&&BW(s),s}var FW=500;function BW(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),FW)}},0)}function jW(t,e,n,r,o){if(o.parentNode===r&&t.claimed.has(o))return!0;let s=t.pendingIn;if(!s||!s.has(r))return!1;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=rd(r,a&&a.__textNode)),i===o||r.insertBefore(o,i),!0}function UW(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)}function VW(t,e){let n=e&&e.__ref,r=e&&e.node;if(!n||!r||!t.pending||!t.claimed.has(r))return null;let o=r.parentNode;return o?(t.claimed.delete(r),t.adopted--,t.pending.add(r),t.pendingIn.set(o,(t.pendingIn.get(o)||0)+1),n.__keepNode=!0,r):null}function zW(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let r=(t.pendingIn.get(n)||1)-1;r>0?t.pendingIn.set(n,r):t.pendingIn.delete(n),e.remove()}}var qI={adopt:ZE,place:jW,whole:UW,settle:jo,handBack:VW,settleHandBack:zW};var ui=50;function lr(t){return t===!0?ui:typeof t=="number"&&t>0?t:0}var Mn=[],Dc=!1,Uo=0,Hr=ui,kd=!1,Xm=[],Zm=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Ym=[],Sd=null;function HW(t){if(!Sd){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Ym.shift();!Ym.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},Sd=e}Ym.push(t),Ym.length===1&&typeof Sd.port1.ref=="function"&&Sd.port1.ref(),Sd.port2.postMessage(0)}function ev(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"){HW(t);return}setTimeout(t,0)}function fr(){return new Promise(t=>ev(t))}var xd=0,QE=0,tv=0,Lc=0;function nv(){xd=0,QE=Uo,tv=0,Lc=0}function GI(){if(!Uo)return!1;if(xd++,Lc>0)return Lc--,!1;let t=Zm(),e=t-Uo,n=e/xd,r=(t-QE)/(xd-tv),o=r>n?r:n;QE=t,tv=xd;let s=Hr-e-o;return s<=0?(kd=!0,!0):(Lc=o>0?Math.floor(s/o/2):0,!1)}var fi=0;function YI(t=ui){fi===0&&!Uo?(Uo=Zm(),kd=!1,Hr=t,nv()):t<Hr&&(Hr=t,Lc=0),fi++}var qe=null,JE=!1,WW=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function rv(){Uo=0,kd=!1,Hr=ui,nv()}function KW(){JE||(JE=!0,WW(()=>{JE=!1,fi===0&&rv()}))}function XI(){fi>0&&fi--,!(fi!==0||qe!==null)&&(Dc?KW():rv())}function ov(t,e=ui,n=null){let r={fn:t,budget:e,lease:n};qe?qe.push(r):Mn.push(r),Dc||(Dc=!0,ev(ZI))}function sv(t){let e=t&&t.context;return e&&e.__mountLease||null}function Ed(t){if(!t)return;let e=0;for(let n=0;n<Mn.length;n++){let r=Mn[n];r.lease!==t&&(Mn[e++]=r)}if(Mn.length=e,qe){let n=0;for(let r=0;r<qe.length;r++)qe[r].lease!==t&&(qe[n++]=qe[r]);qe.length=n}typeof t.lost=="function"&&t.lost()}function qW(t){if(t.lease!==null&&!t.lease.live()){Ed(t.lease);return}let e=qe;qe=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=qe;qe=e,n.length&&Mn.unshift(...n)}}function Re(){return!Dc&&!Mn.length?Promise.resolve():new Promise(t=>Xm.push(t))}function Vo(){return!Dc&&!Mn.length}function GW(){if(!Xm.length)return;let t=Xm;Xm=[];for(let e=0;e<t.length;e++)t[e]()}function ZI(){for(Uo=Zm(),kd=!1,Hr=1/0,nv();Mn.length;){let t=Mn.shift();if(t.budget<Hr&&(Hr=t.budget,Lc=0),qW(t),kd||Zm()-Uo>=Hr)break}if(fi=0,rv(),Mn.length){ev(ZI);return}Dc=!1,GW()}function Jm(t){mc(t.__ref).pending++}function Ge(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 Qm(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function Wr(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 iv(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 JI(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,iv(t,e),r&&Ge(r)}function YW(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?lr(n):0,s=lr(t.yieldChildren);return o&&s?o<s?o:s:o||s}function QI(t,e,n,r,o){YI(r);try{tM(t,t.__ref,0,e,n,r,o,!1)}finally{XI()}}function tM(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=GI(),d=e.__mount;if(c+1<r&&(u||(d?d.pending:0)>f)){i&&i.onSuspend&&i.onSuspend(),a||Jm(t);let p=c+1;ov(()=>XW(t,e,p,r,o,s,i),s,sv(t));return}}}catch(c){if(!a)throw c;Um(t,c)}a&&Ge(t)}function XW(t,e,n,r,o,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){Ge(t);return}tM(t,e,n,r,o,s,i,!0)}function ZW(t,e,n){Jm(t),ov(()=>{try{let r=t.__ref;r&&!r.__disposed&&n()}catch(r){Um(t,r)}finally{Ge(t)}},e,sv(t))}function JW(t,e,n,r){let o=t.__ref,s=mc(o),i=++s.chunkGen,a=t.node,c=[],l=!1;QI(t,e,f=>{let u=n(f,l?_d(t,QW(a,c)):void 0),d=eM(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 eM(t){let e=zr(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function QW(t,e){for(let n=e.length-1;n>=0;n--){let r=e[n].__ref?eM(e[n]):e[n];if(r&&r.parentNode===t)return r}return null}function t8(t,e){let n=t.__ref;try{Tc(t,!0),aI(t),IE(t,e)}finally{iv(t,n);let r=n.__mount,o=r&&r.holder;o&&(r.holder=null,Ge(o))}}var nM={budgetOf:YW,run:QI,rows:JW,defer:ZW,hold:Jm,finish:t8,abandon:JI};function rM(){ct.viewEvents=gL,ct.chains=uL,ct.rows=WI,ct.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:qI,ct.mount=nM}rM();Mt();var di="inertOutside",n8=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),r8='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',o8={attributes:!0,attributeFilter:["inert"]},oM=new WeakMap,sM=new WeakMap,vd=new Set,iM=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function zo(t){try{return Te(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function aM(t){let e=()=>zo(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function s8(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=oM.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=>zo(()=>ty(e,r))),oM.set(t,e),e)}function av(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function i8(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var cM=t=>!!(t.closest&&t.closest("[inert]"));function a8(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&&!n8.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function lM(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 ty(t,e){let{doc:n,held:r,observer:o}=t;e&&lM(t,e),lM(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=av(u,n);d&&!u.live&&(i.push(u),u.returnFocus=i8(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?a8(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,o8);t.layers.some(u=>!u.live)?vd.add(t):vd.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!lc(u.element)&&(u.connecting=!0,Ro(u.element,()=>zo(()=>{u.connecting=!1,u.declared&&!u.live&&av(u,t.doc)&&ty(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),aM(()=>uM(t,a));else if(f){let u=f.returnFocus;aM(()=>c8(t,f,u))}f&&(f.returnFocus=null)}function uM(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(r8))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function c8(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)||cM(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!cM(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&uM(t,t.top))}function cv(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)}ty(n)}function dM(t){let e=t[di];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function fM(t){let e=sM.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=s8(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,connecting:!1,returnFocus:null},sM.set(t,e);let s=K(()=>{let i=dM(t);zo(()=>cv(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+di});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>zo(()=>cv(e,!1))),e}function l8(){for(let t of vd){if(!t.doc.defaultView){vd.delete(t);continue}t.layers.some(e=>!e.live&&av(e,t.doc))&&ty(t)}}var ey={name:di,create(t){if(iM(t,di)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Gt(di,t);zo(()=>fM(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||vd.size&&zo(l8)},update(t){if(iM(t,di)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Gt(di,t);zo(()=>{let e=fM(t);e&&cv(e,dM(t))})}}};var pM={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["gray-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"]},hM={"gradient-blue-light":`linear-gradient(to right,
|
|
63
63
|
rgba(4, 116, 242, 1),
|
|
64
64
|
rgba(0, 48, 103, 1)
|
|
65
65
|
)`,"gradient-blue-dark":`linear-gradient(to right,
|
|
@@ -85,12 +85,12 @@ FROM ${a}${l}`},l6=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
|
|
|
85
85
|
#1E54F0 36%,
|
|
86
86
|
#8B4CCA 69%,
|
|
87
87
|
#C66894 100%
|
|
88
|
-
)`};var XW={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},ZW={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},JW={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},sM={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...XW,...ZW,...JW,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 iM={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var aM={ratio:1.618,subSequence:!0};var cM={SourceSans:[{url:""}]},lM={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 fM={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 uM={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 dM={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var pM={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var ui={version:"0.0.1",color:rM,gradient:oM,theme:sM,typography:iM,spacing:aM,font:cM,fontFamily:lM,timing:dM,icons:fM,media:uM,sizes:pM,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 Fc={};F(Fc,{A:()=>C$,AssetPicture:()=>PM,Audio:()=>IM,Avatar:()=>J$,B:()=>QM,Block:()=>hM,Box:()=>ey,Br:()=>rN,Bridge:()=>uN,Button:()=>R$,ButtonSet:()=>I$,COMPONENTS:()=>wi,Caption:()=>HM,Checkbox:()=>hN,CheckboxHgroup:()=>gN,Circle:()=>TM,CircleButton:()=>L$,Clickable:()=>vM,Data:()=>eN,Dialog:()=>j$,DialogFooter:()=>V$,DialogHeader:()=>U$,Dropdown:()=>v2,DropdownDisclosure:()=>T2,DropdownList:()=>A2,DropdownParent:()=>C2,DropdownParentFocus:()=>O2,DropdownSiblingFocus:()=>R2,FileIcon:()=>LN,Flex:()=>mM,Focusable:()=>AM,FocusableComponent:()=>CM,Footnote:()=>JM,Form:()=>xM,Grid:()=>bM,Gutter:()=>wM,H1:()=>$M,H2:()=>FM,H3:()=>BM,H4:()=>jM,H5:()=>UM,H6:()=>VM,Headline:()=>XM,Hgroup:()=>cN,HgroupButton:()=>fN,HgroupRows:()=>lN,Hoverable:()=>EM,Hr:()=>nN,I:()=>tN,Icon:()=>RN,IconButton:()=>M$,IconText:()=>PN,Iframe:()=>kM,Img:()=>SM,Inline:()=>gM,InlineFlex:()=>yM,InlineGrid:()=>_M,Input:()=>dN,Italic:()=>GM,KangorooButton:()=>D$,Li:()=>oN,Link:()=>Xv,Notification:()=>P2,NumberInput:()=>pN,Ol:()=>iN,P:()=>zM,Picture:()=>RM,Radio:()=>mN,RadioHgroup:()=>yN,Range:()=>Q$,RouteLink:()=>T$,RouterLink:()=>Zv,SHAPES:()=>Qm,Select:()=>O$,Shape:()=>iv,Span:()=>NM,SquareButton:()=>P$,Strong:()=>WM,Subhead:()=>ZM,Svg:()=>LM,Text:()=>MM,Textarea:()=>wN,TextareaWithButton:()=>SN,Theme:()=>OM,Title:()=>YM,Toggle:()=>bN,ToggleHgroup:()=>_N,Tooltip:()=>Y$,TooltipHidden:()=>X$,TooltipLayer:()=>aA,TooltipParent:()=>Z$,U:()=>KM,Ul:()=>sN,Underline:()=>qM,Video:()=>DM,depth:()=>ty,focusableRingEnabled:()=>xd,focusableRingToken:()=>ov,focusableRingValue:()=>di,getSystemGlobalTheme:()=>kd});var tv={};F(tv,{Block:()=>hM,Flex:()=>mM,Grid:()=>bM,Gutter:()=>wM,Inline:()=>gM,InlineFlex:()=>yM,InlineGrid:()=>_M});var hM={display:"block"},gM={display:"inline"},mM={display:"flex"},yM={display:"inline-flex"},bM={display:"grid"},_M={display:"inline-grid"},wM={boxSize:"C1"};var ev={};F(ev,{Img:()=>SM});M();var SM={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=_e(t);return e&&e.src||t.src},srcset:t=>{let e=_e(t);return(e?qf(e):"")||t.srcset||t.srcSet}}};var nv={};F(nv,{Form:()=>xM});var xM={tag:"form"};var rv={};F(rv,{Iframe:()=>kM});var kM={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var sv={};F(sv,{Clickable:()=>vM,Focusable:()=>AM,FocusableComponent:()=>CM,Hoverable:()=>EM,focusableRingEnabled:()=>xd,focusableRingToken:()=>ov,focusableRingValue:()=>di});var QW={appearance:"none",fontFamily:"inherit"},EM={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}}},vM={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function xd(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function ov(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 di(t,e,n){let r=ov(t);return r&&r[e]!==void 0?r[e]:n}var AM={border:"none",outline:t=>xd(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>xd(t)?di(t,"outline","solid X currentColor"):"none",outlineOffset:t=>xd(t)?di(t,"outlineOffset"):void 0}},CM={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:QW};var lv={};F(lv,{Picture:()=>RM});var cv={};F(cv,{Theme:()=>OM,getSystemGlobalTheme:()=>kd});var av={};F(av,{Circle:()=>TM,SHAPES:()=>Qm,Shape:()=>iv,default:()=>t8,depth:()=>ty});M();var gn=P(),ty={4:{boxShadow:`rgba(0,0,0,.10) 0 2${gn.unit.default} 4${gn.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${gn.unit.default} 6${gn.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${gn.unit.default} 10${gn.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${gn.unit.default} 16${gn.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${gn.unit.default} 26${gn.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${gn.unit.default} 42${gn.unit.default}`}},Pc=t=>dt(t.shapeDirectionColor)||dt(t.borderColor)||dt(t.backgroundColor)||dt(t.background),Jm=t=>{let e=Xu.transition(t.transition,t);return e&&e.transition},Qm={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:Pc(t),transition:Jm(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:Pc(t),transition:Jm(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:Pc(t),transition:Jm(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:Jm(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Pc(t)} 25%, transparent 25%), linear-gradient(315deg, ${Pc(t)} 25%, transparent 25%)`},"&:after":{background:Pc(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)"}}}},iv={deps:{exec:St,getSpacingBasedOnRatio:Be,getMediaColor:Kt},classlist:{shape:t=>t.deps.exec(Qm[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Qm[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}}},TM={round:"100%"},t8=iv;M();var kd=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},OM={deps:{depth:ty},classlist:{depth:t=>!Xt(t.depth)&&t.deps.depth[t.depth]}};var RM={deps:{getSystemGlobalTheme:kd},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:kd},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 fv={};F(fv,{AssetPicture:()=>PM});M();var PM={tag:"picture",children:t=>{let e=_e(t);if(e)return Gf(e,t.alt)}};var uv={};F(uv,{Svg:()=>LM});var LM={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 dv={};F(dv,{Video:()=>DM});M();var DM={tag:"video",controls:!0,attr:{src:t=>{let e=_e(t);return e&&e.src||t.src}},children:t=>{let e=_e(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 pv={};F(pv,{Audio:()=>IM});M();var IM={tag:"audio",controls:!0,attr:{src:t=>{let e=_e(t);return e&&e.src||t.src}},children:t=>{let e=_e(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 hv={};F(hv,{B:()=>QM,Caption:()=>HM,Data:()=>eN,Footnote:()=>JM,H1:()=>$M,H2:()=>FM,H3:()=>BM,H4:()=>jM,H5:()=>UM,H6:()=>VM,Headline:()=>XM,I:()=>tN,Italic:()=>GM,P:()=>zM,Span:()=>NM,Strong:()=>WM,Subhead:()=>ZM,Text:()=>MM,Title:()=>YM,U:()=>KM,Underline:()=>qM});var MM={},NM={tag:"span"},$M={tag:"h1"},FM={tag:"h2"},BM={tag:"h3"},jM={tag:"h4"},UM={tag:"h5"},VM={tag:"h6"},zM={tag:"p"},HM={tag:"caption"},WM={tag:"strong",fontWeight:"700"},KM={tag:"u"},qM={tag:"u"},GM={tag:"i"},YM={},XM={tag:"h6",fontSize:"B",fontWeight:500},ZM={tag:"span",fontSize:"Z1"},JM={tag:"span",fontSize:"Z"},QM={tag:"b"},tN={tag:"i"},eN={tag:"data"};var gv={};F(gv,{Box:()=>ey,Br:()=>rN,Hr:()=>nN,Li:()=>oN,Ol:()=>iN,Ul:()=>sN});var e8=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ee(e,t,{unpack:!1});n.__class=r},ey={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:e8},nN={tag:"hr",margin:"C1 0"},rN={tag:"br"},oN={tag:"li"},sN={tag:"ul",childExtends:{extends:"Li"}},iN={tag:"ol",childExtends:{extends:"Li"}};var mv={};F(mv,{Hgroup:()=>cN,HgroupButton:()=>fN,HgroupRows:()=>lN});var aN=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},cN={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:aN,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:aN,margin:"0",color:"paragraph"}},lN={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},fN={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var yv={};F(yv,{Bridge:()=>uN});var uN={tag:"div"};var bv={};F(bv,{Input:()=>dN});var dN={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 _v={};F(_v,{NumberInput:()=>pN});var pN={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 wv={};F(wv,{Checkbox:()=>hN,CheckboxHgroup:()=>gN});var hN={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=>di(t,"outline","solid X currentColor"),outlineOffset:t=>di(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"}}},gN={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Sv={};F(Sv,{Radio:()=>mN,RadioHgroup:()=>yN});var mN={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}},yN={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var xv={};F(xv,{Toggle:()=>bN,ToggleHgroup:()=>_N});var bN={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}},_N={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var kv={};F(kv,{Textarea:()=>wN,TextareaWithButton:()=>SN});var wN={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"}},SN={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 Av={};F(Av,{FileIcon:()=>LN,Icon:()=>RN,IconText:()=>PN});Mt();var xN=new Set,n8=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",kN=(t,e,n)=>{let r=t+":"+e;if(xN.has(r)||(xN.add(r),typeof console>"u"||!console.error))return;let o=n&&n.__ref&&n.__ref.path,s=o&&o.length?` (at <${o.join(".")}>)`:"",i=n8(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)};var r8=new Set;var EN=t=>r8.has(t);var vN=new Set,AN=(t,e)=>{if(!vN.has(t)&&(vN.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.`)}},CN=(t,e)=>{let n=t.find(r=>r&&EN(r));return n?(kN("icon",n,e),!0):!1},TN=new WeakMap,o8=t=>{let e=TN.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},TN.set(t,e)),e},s8=(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},i8=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);mt(t);try{let o=P();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Ks(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&qs(s,{document:r}),Object.keys(s).length>0}finally{ht()}},a8=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=o8(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=s8(u,n);return d?i8(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},c8="0 0 24 24",l8=/<(symbol|svg)\b[^>]*>/i,f8={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},Ev=(t,e)=>{let n=t.match(f8[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},ON=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},u8=(t,e)=>{if(typeof t!="string")return;let n=t.match(l8);if(!n)return;let r=(Ev(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),o=r.length===4&&r[2]>0&&r[3]>0?[r[2],r[3]]:void 0,s=ON(Ev(n[0],"width")),i=ON(Ev(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?o||a:a||o;return c?`0 0 ${c[0]} ${c[1]}`:void 0},vv=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,r=!!(t.spriteId||n&&n.useSvgSprite);return u8(t.call("exec",t.src,t),r)||c8},RN={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 x=t.__ref&&t.__ref.path,k=x&&x.length?` at <${x.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${k} \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:x}=m&&m.utils,C=x(h).split(/([a-z])([A-Z])/g),_=C[1]?C[0]:h.split(".")[0].split(" ")[0],b=y&&y[_];if(b){let w=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=b[w]||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 x=y.value;return h.call("isString",x)&&x.includes("{{")&&(x=h.call("replaceLiteralsWithObjectFields",x)),{name:h.call("isString",x)?x: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 $=m.split(" ");m=$[0]+$.slice(1).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join("")}let x=a(m),k=x.split(/([a-z])([A-Z])/g),C=f(y,n);if(C){Object.assign(t,C);return}let _,b=t[".isActive"];b&&(b.name||b.icon)&&t.isActive&&(_=l(b.name||b.icon,t).value);let w=r&&r[".isActive"];w&&w.icon&&r.isActive&&(_=l(w.icon||w.Icon.name||w.Icon.icon,t).value),t.call("isString",_)&&_.includes("{{")&&(_=t.call("replaceLiteralsWithObjectFields",_));let S;o[_]&&(S=_),o[x]?S=x:o[k[0]+k[1]]?S=k[0]+k[1]:o[k[0]]?S=k[0]:i&&t.warn("Can't find icon:",m,S);let A=o[S],T=r&&r.src||d;!A&&!T&&(a8(n,y,x,t,N=>{if(!(p&&p._disposed)){if(!N)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&CN([_,x,k[0]+k[1],k[0]],t)||AN(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&CN([_,x,k[0]+k[1],k[0]],t)||AN(y,t));let O=s&&S,B=A||T||o.noIcon;if(!(t.spriteId===O&&t.src===B&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=B,typeof t.html=="function"&&t.node){let $=t.context&&t.context.designSystem;$&&mt($);try{let N=t.html(t,t.state,t.context);N!=null&&typeof N!="function"&&(t.node.innerHTML=N)}finally{$&&ht()}}t.node&&t.attr&&t.attr.viewBox===vv&&t.node.setAttribute("viewBox",vv(t))}};p=K(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:vv,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},PN={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},LN={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Jv={};F(Jv,{A:()=>C$,Link:()=>Xv,RouteLink:()=>T$,RouterLink:()=>Zv});var Ic={};F(Ic,{default:()=>J8,getActiveRoute:()=>Yv,lastLevel:()=>ay,lastPathname:()=>Dc,loadLazy:()=>Vv,matchRoute:()=>Kv,parseQuery:()=>qv,parseRoutePattern:()=>iy,resolveRouterElement:()=>Pd,router:()=>In,runGuards:()=>x$,saveScrollPosition:()=>Ad});M();var Cv="__smblsRouter",Tv=new WeakMap,d8=0,Ov=()=>Date.now().toString(36)+(++d8).toString(36)+Math.random().toString(36).slice(2,6),Rv=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},zr=t=>{try{return t.state}catch{return}},vd=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},NN=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},$N=t=>{let e=NN(t)?t[Cv]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},Pv=(t,e)=>t==null?{[Cv]:e}:NN(t)?{...t,[Cv]:e}:null,Lv=()=>({key:Ov(),index:0,chain:Ov()}),Lc=(t,e)=>{let n=$N(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:vd(t),state:e}},FN=(t,e)=>{let n=$N(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Ed=(t,e,n)=>!!n&&vd(t)===n.url&&FN(e,n),Dv=(t,e,n)=>({...t,url:e,state:n}),Iv=(t,e)=>{let n=zr(e),r=Lc(t,n);if(r.key)return r;let o=Lv(),s=Pv(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return Dv(o,r.url,s)},p8=(t,e)=>{let n=Tv.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},Tv.set(t,n)),n||null},BN="smbls.router.scroll",DN=100,h8=1e3,IN=["wheel","touchstart","keydown","pointerdown"],jN=t=>{try{return t.sessionStorage||null}catch{return null}},UN=t=>{try{let e=JSON.parse(t.getItem(BN)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},VN=(t,e)=>{if(!t.positions){t.positions=new Map;let n=jN(e);if(n)for(let[r,o]of UN(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},Mv=(t,e,n,r)=>{let o=VN(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>DN&&o.delete(o.keys().next().value);let s=jN(e);if(s)try{let i=new Map(UN(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem(BN,JSON.stringify(Array.from(i).slice(-DN)))}catch{}},MN=(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)},g8=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:h8,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 IN)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 IN)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 MN(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};MN(t,e,g)},m8=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=Lc(n,zr(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&&Mv(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},y8=t=>{let{win:e,history:n,track:r}=t,o=zr(n);if(r.pending&&Ed(e,o,r.pending.to)||r.expect&&Ed(e,o,r.expect.away))return;let s=r.current;if(s&&(s.key?FN(o,s):Ed(e,o,s))){s.url=vd(e),s.state=o;return}r.current=t.restore?Iv(e,n):Lc(e,o),r.pending=null,r.seq++},zN=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=Rv(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&p8(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=m8(a,c):y8(a),a},ny=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},Nv=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 ny(o,e),o.seq!==e.seq||!Ed(n,zr(r),e.to)?!1:(o.current=t.restore&&!e.to.key?Iv(n,r):e.to,o.seq++,e.committed=!0,!0)},HN=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&ny(t.track,e)},b8=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},$v=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;ny(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Ed(r,zr(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};b8(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=Lv(),l=Pv(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?Dv(c,i.url,l):Lc(r,zr(o)),s.seq++},WN=(t,e)=>{let n=vd(e);t&&n!==null&&(t.__routerAddress=n)},Fv=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return $v(t,!0);r&&!r.settled&&ny(t.track,r);let o=Rv(n),s=e&&e.__routerAddress;if(!(!o||!s||s===vd(n)))try{o.replaceState(zr(o),null,s)}catch{}},KN=(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&&Mv(i,o,a.key,t.scrollNode);let c=r?Lc(o,zr(s)):Iv(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:Ov(),index:c.index+1,chain:c.chain}:Lv(),f=Pv(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?Dv(l,n,f):Lc(o,zr(s)),i.pending=null,i.expect=null,i.seq++},qN=(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&&VN(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"||g8(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Ad=t=>{let e=Rv(t),n=e&&Tv.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Mv(n,t,n.current.key,n.scrollNode)};M();var ZN=["components","functions","methods","snippets"],JN=new Set(["pages",...ZN]),Bv=new Set(["default","__esModule"]),Uo=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Ht=t=>!!t&&typeof t=="object"&&!Array.isArray(t),ry=new WeakMap,GN=new WeakMap,jv=new WeakMap,YN=new Set,pi=(t,e=console.warn)=>{YN.has(t)||(YN.add(t),e(t))},QN=t=>Ht(t&&t.lazy),t$=(t,e)=>{let n=t&&t.lazy;return Ht(n)&&Uo(n,e)?n[e]:void 0},Td=(t,e)=>{let n=t$(t,e);return Ht(n)&&Uo(n,"load")?n.load:n},_8=(t,e)=>{let n=t$(t,e);return Ht(n)&&typeof n.when=="function"?n.when:null},w8=t=>{let e=new Error(`[smbls/router] lazy group "${t}" waits: its \`when\` said false \u2014 nothing was requested`);return e.code="LAZY_WAITING",e},Uv=(t,e)=>{let n=ry.get(t);n||(ry.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();ry.delete(t)}));let r=n.get(e);return r||(r={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},e$=(t,e)=>!QN(e)||!Ht(t)||!Uo(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,sy=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&jv.has(t),n$=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&qt("lazyRoutes",e),null),r$=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",S8=(t,e)=>typeof Td(t,e)!="function"?"error":r$(ry.get(t)?.get(e)),x8=(t,e)=>{let n=GN.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Ht(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Ht(f)?f:null,lazyStatus:S8(c.context,e)}}:(s.state=o,tt()&&pi(`[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 GN.set(t,a),jv.set(s,a),a},k8=t=>t.__ref&&t.__ref.contentElementKey||"content",Cd=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&sy(n.content)?jv.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[k8(t)]}},oy=(t,e,n)=>{let r=Cd(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)}},E8=t=>Ht(t)?!Object.keys(t).some(n=>JN.has(n))&&Ht(t.default)?t.default:t:{},v8=t=>{let e={};if(!Ht(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||!Uo(e,o))&&(e[o]=t[n])}return e},o$=(t,e,n,r,o)=>{if(!Ht(t))return 0;let s=0;for(let i of Object.keys(t))e$(t[i],r)===e&&(s++,Uo(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Uo(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},XN=(t,e,n)=>{let r=t[e];if(!Ht(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}},A8=t=>{let e=t.__ref&&t.__ref.origin;if(!Ht(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]},C8=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=Cd(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 A8(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");pi(`[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)},T8=(t,e,n,r)=>{let o=t.context,s=E8(n),i=tt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))JN.has(p)||Bv.has(p)||pi(`[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 ZN){let g=s[p];if(!Ht(g))continue;let h=Ht(o[p])?o[p]:{},m={};for(let x of Object.keys(g))if(!Bv.has(x)){if(Uo(h,x)){h[x]!==g[x]&&a.push(`${p}.${x}`);continue}m[x]=g[x]}let y=Object.keys(m);if(y.length&&(XN(o,p,m),p==="components"&&y.forEach(x=>c.add(x)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Ht(o.utils))){let x={};for(let k of y)Uo(o.utils,k)||(x[k]=m[k]);Object.keys(x).length&&XN(o,"utils",x)}}l&&yc(o);let f=v8(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Ht(o.pages)&&d.add(o.pages),u&&Ht(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Ht(p.routes)&&d.add(p.routes);for(let p of d)o$(p,e,f,o,a);i&&a.length&&pi(`[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&&C8(u,e,c,r)},s$=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;if(!r||r.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Cd(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))},Od=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",O8=(t,e,n)=>!!t&&(Od(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),i$=(t,e)=>{let n=t.context,r=Uv(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=Td(n,e),s=_8(n,e),i=r.failure;r.status="loading";let a,c=!1,l=!1,f=()=>s?s(t):!0,u=p=>{if(p===!1)throw l=!0,w8(e);return a=o(r.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{c=!0,r.disposed||T8(t,e,p,r)}).then(()=>{r.status="loaded",r.failure=null;let p=[...r.waiting];r.waiting.clear();for(let g of p)s$(g,e)},p=>{if(l){if(r.status="waiting",r.promise=null,r.disposed)throw p;for(let h of[...r.waiting])Cd(h,e)?oy(h,e,"waiting"):r.waiting.delete(h);throw p}let g=!c&&O8(i,a,p);if(r.failure=c?null:{returned:a,error:p},r.status=g?"reload":"error",r.promise=null,r.disposed)throw p;g?pi(`[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.`,h=>console.error(h,p)):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.`,p);for(let h of[...r.waiting])Cd(h,e)?oy(h,e,r.status):r.waiting.delete(h);throw p});d.catch(()=>{}),r.promise=d;for(let p of r.waiting)oy(p,e,"loading");return d},a$=(t,e,n)=>{let r=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return n$(r,e);let o=e$(t,r);if(!o)return null;let s=Uv(r,o);if(Ht(n)&&s.maps.add(n),s.status==="loaded"&&o$(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof Td(r,o)=="function";return i?i$(e,o):pi(`[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:x8(t,o).definition,group:o,status:i?"loading":"error"}},c$=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof Td(r,e.group)!="function")return;let s=Uv(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},oy(t,e.group,r$(s)),s.status==="loaded"){let i=()=>s$(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function Vv(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)"));if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return Promise.resolve(n$(n,e));let r=Td(n,t);return typeof r!="function"?(r===void 0&&QN(n)&&tt()&&pi(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):i$(e,t)}var R8=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),l$=(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},m$=t=>{let e=ar;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},P8=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},L8=t=>{let e=Gm;return typeof e!="function"||!e(t)?null:Vr(t)},Wv=Object.freeze({holdTail:!0}),D8=t=>typeof t.holdPage=="function"&&typeof We=="function",y$=(t,e)=>{let n=()=>We(t);Od(e)?e.then(n,n):n()},I8=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}y$(e,n)},b$=Object.freeze({holdTail:!0,deferAttach:!0}),M8=(t,e,n,r)=>{let o=t.firstView;if(!o||typeof We!="function"||typeof No!="function")return null;if(!o.committed)return Wv;if(!m$(r))return null;let s=e.node;return!e[n]&&s&&s.isConnected?b$:(r.mountYield=void 0,null)},N8=async()=>{await Te();let t=Bo;if(typeof t=="function")for(;!t();)await Te()},$8=(t,e,n,r)=>{if(e===Wv){t.firstView.page=n,y$(n,t.firstView.commit);return}e===b$&&N8().then(()=>{n.__ref&&r()&&No(n),We(n)})},_$=/^:(.+)/,w$=/^\*$/,f$=new Map,iy=t=>{let e=f$.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(_$);a?r.push({index:i,name:a[1]}):w$.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return f$.set(t,s),s},Kv=(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=iy(l),u=F8(o,f);u>a&&(a=u,i=l,c=S$(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},F8=(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(_$.test(n[i]))o+=1;else if(w$.test(n[i]))o+=.5;else return-1;return o},S$=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},qv=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},Hv=t=>!!t&&typeof t=="object"&&typeof t.route=="string",u$=t=>t===!1||typeof t=="string"||Hv(t)?t:void 0,B8=10,Gv=(t,e,n=0)=>{for(let r=n;r<t.length;r++){let o=t[r](e);if(Od(o))return Promise.resolve(o).then(i=>{let a=u$(i);return a===void 0?Gv(t,e,r+1):a});let s=u$(o);if(s!==void 0)return s}return!0},x$=async(t,e)=>!t||!t.length?!0:Gv(t,e),d$=(t,e,n,r)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let o=n[t];if(!o)return null;let s=e.replace(/^\//,"").split("/").filter(Boolean).slice(r||0);return{route:t,content:o,params:t==="/*"?{}:S$(s,iy(t))}},Pd=(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},j8=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=Pd(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},Yv=(t=0,e)=>{e||(e=typeof R<"u"?R.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},Dc,ay=0,p$=0,zv=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,U8=t=>t&&(t.scrollingElement||t.documentElement)||null,k$={level:ay,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},E$=(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},v$=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},V8=(t,e,n,r,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(v$(e),!n||!n.node||typeof t.onRouteExit>"u"||!E$(s,i))return null;let c=typeof o=="number"&&o>=0?o:k$.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=mr("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},Rd=new WeakMap,z8=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,H8=(t,e,n,r)=>{let o=z8(t.transition);return!o||!e||sy(e.content)||!n||typeof n.startViewTransition!="function"||Rd.get(n)>0||!E$(n,r)?null:o},W8=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},K8=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},q8=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},G8=100,Y8=1e3,h$=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,g$=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},X8=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},Z8=(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=g$(o),Rd.set(r,(Rd.get(r)||0)+1);try{return i()}finally{Rd.set(r,Rd.get(r)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=K8(n),h=null;try{h=g.length&&q8(o)?r.startViewTransition({update:d,types:g}):r.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,X8(h.ready);let m=!1,y=null,x=()=>{m=!0,y!==null&&(o.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},k=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(x,x):x();let C=h$(n.swapBudget,G8),_=h$(n.timeout,Y8);_!==1/0&&h.ready&&typeof h.ready.then=="function"&&o&&typeof o.setTimeout=="function"&&h.ready.then(()=>{m||(y=o.setTimeout(()=>{y=null,k()},_))},()=>{});let b=h.updateCallbackDone;return!b||typeof b.then!="function"?Promise.resolve():(C!==1/0&&b.then(()=>{u.swapStarted!==void 0&&g$(o)-u.swapStarted>C&&k()},()=>{}),b)},In=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||R,i=o?.context?.document||kt,a={...k$,...o.context.routerOptions,...r};ay=a.lastLevel,o=j8(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=zv(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=qv(h),x=o.node,k=m&&m!==s.location.hash.slice(1),C=g!==Dc,_=Dc,b=++p$;Dc=g;let w=()=>{p$===b&&(Dc=_)},S=l.__routerRendered,A,T,O,B;if(a.useParamsMatching){let q=Kv(g,o.routes,a.level);A=q.key,T=q.routePath,O=q.content,B=q.params}else{A=Yv(a.level,g),T=A;let q=o.routes;O=q?q[A||"/"]||q["/*"]:null,B={}}if(r&&r.route!=null){let q=d$(r.route,g,o.routes,a.level);!q&&!a.silent&&console.warn("[smbls/router] route",r.route,"chosen for",g,"is not one of the routes:",Object.keys(o.routes||{})),A=q?q.route:r.route,O=q?q.content:null,B=q?q.params:{}}a.scrollNode===void 0&&(a.scrollNode=U8(i));let $=a.scrollToNode?x:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let N=zN(s,a,$);if(N&&N.pop&&N.pop.echo)return;if(!O){w(),a.onNotFound?a.onNotFound({pathname:g,route:A,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"&&Fv(N,l,s));return}let G=r&&r.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let q={pathname:g,route:A,params:B,query:y,hash:m,element:o,state:n},W=Gv(a.guards,q);if(Od(W)&&(W=await W,l.__routerStartSeq!==G)){w(),HN(N);return}if(W===!1){w(),$v(N);return}let Rt=jt=>{let Ct=new d(u+zv(jt));return Ct.pathname===g&&Ct.search===h&&Ct.hash===m},yt=typeof W=="string"?W:Hv(W)&&typeof W.path=="string"&&!Rt(W.path)?W.path:null;if(Hv(W)&&yt===null){let jt=d$(W.route,g,o.routes,a.level);if(!jt){a.silent||console.warn("[smbls/router] a guard chose route",W.route,"for",g,"\u2014 not one of the routes:",Object.keys(o.routes||{})),w(),a.onNotFound?a.onNotFound({pathname:g,route:W.route,element:o}):a.event&&a.event.type==="popstate"&&Fv(N,l,s);return}A=jt.route,O=jt.content,B=jt.params,r={...r,route:jt.route}}else if(yt!==null){let jt=!!(N&&N.pop);if(jt&&!Nv(N))return;let Ct=[...r&&r.__redirectChain||[],g],Pt=new d(u+zv(yt)).pathname,Ge=Ct.includes(Pt)||Ct.length>=B8;Ge&&!a.silent&&console.warn("[smbls/router] redirect loop:",[...Ct,Pt].join(" \u2192 "),"\u2014 rendering",Pt,"without its guards");let It={...r,__redirectChain:Ct};return Ge&&(It.guards=[]),typeof W=="string"?delete It.route:It.route=W.route,jt&&(It.event=void 0),delete It.render,(jt||a.initialRender)&&(It.pushState=!0,It.replace=!0),In(yt,e,n,It)}}let Y=c?a$(O,o,o.routes):null;if(Y&&Y.rematch)return In(t,o,n,r);Y&&(O=Y.content,a.lazy={group:Y.group,status:Y.status});let nt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,ot=!S||S.content!==O||S.route!==A,st=!!S&&S.content===O,Z=!(!c||a.keepSamePage===!0&&st&&a.force!==!0)&&(C||ot||a.force===!0);if(Z&&S&&!sy(S.content)){let q=V8(o,l,o[f],{from:S.route,to:A,pathname:g,params:B,query:y,hash:m},a.exitTimeout,i,s);if(q&&(await q,l.__routerNavSeq!==nt||(l.__routeExit&&l.__routeExit.wait===q&&(l.__routeExit=null),typeof o?.set!="function")))return}else v$(l);let Q=Z?H8(a,S,i,s):null;if(Z&&W8(l),a.pushState){let q=g+(h||"")+(m||"");KN(N,n,q,a.replace,s)}else N&&Nv(N);WN(l,s);let it=R8(o,a,f),rt=()=>{let q=Z?M8(a,o,f,it):null,W=(!!S||m$(it))&&!!$&&$.scrollTop===0&&!$.scrollLeft,Rt=!S&&!!a.initialRender&&!!$&&P8(o)&&(Number($.scrollTop)>0||Number($.scrollLeft)>0),jt=C||!k?{route:A,routePath:T,hash:m,params:B,query:y,debugging:!1}:{params:B,query:y};a.updateState&&o.state.update(jt,{preventContentUpdate:!0});let Ct=null;if(Z){f&&a.removeOldElement&&o[f].remove();let Ge=o.__ref?.origin?.content,It={};if(Ge)for(let X in Ge){let at=Ge[X];X==="__ref"||X==="props"||X==="node"||X==="parent"||X==="key"||(typeof at=="string"||typeof at=="number"||typeof at=="boolean"||typeof at=="object"&&at!==null&&!at.node&&!at.__ref)&&(It[X]=at)}let De={...It,...typeof O=="object"?O:{extends:O}};a.useFragment&&(De.tag="fragment");let H={content:O,route:A},Tt=l.__routerRendered;try{if(typeof o?.set!="function")return;l.__routerRendered=H;let X=!q&&D8(a),at=o.set(De,it,q||(X?Wv:void 0));at&&q?$8(a,q,at,()=>l.__routerNavSeq===nt):at&&X&&I8(a,at),Ct=L8(o[f])}catch(X){l.__routerRendered===H&&(l.__routerRendered=Tt),console.error("[smbls/router] failed to render route content",g,X)}}else st&&S.route!==A&&l.__routerRendered===S&&(l.__routerRendered={content:O,route:A});let Pt=()=>{let Ge=!C&&k,It=!c||qN(N,$,a,i);if(!It&&!Rt&&a.scrollToTop&&!Ge&&!W&&$?.scrollTo&&$.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&!Rt&&a.scrollToNode&&O[f]?.node?.scrollTo&&O[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&m){let De=i.getElementById(m.slice(1));if(De&&$?.scrollTo){let H=s.getComputedStyle?s.getComputedStyle(De):null,Tt=H&&parseFloat(H.scrollMarginTop)||0,X=De.getBoundingClientRect().top+$.scrollTop-Tt-(a.scrollToOffset||0);$.scrollTo({...a.scrollToOptions||{},top:X,left:0})}}Y&&c$(o,Y,De=>In(t,o,n,{...r,...De})),mr("routeChanged",o,a)};if(Ct)return Ct.then(()=>{l$(it,o,a),l.__routerNavSeq===nt&&Pt()});l$(it,o,a),Pt()},gt=Q?Z8(o,l,Q,i,s,nt,rt):null;if(gt){await gt;return}return rt()},J8=In;var Q8=(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")},tK=(t,e)=>{let n=t.slice(1),r=e.node&&e.node.ownerDocument,o=n&&r?r.getElementById(n):null;o&&(typeof o.scrollIntoView=="function"&&o.scrollIntoView(),typeof o.focus=="function"&&(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus()))},A$=(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||Q8(t,e))return;if(a.startsWith("#")){t.preventDefault(),tK(a,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||In)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},Xv={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ro(t,t.href)||Ro(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:A$},C$={extends:"Link"},Zv={onClick:A$},T$={extends:[Xv,Zv]};var Qv={};F(Qv,{Select:()=>O$});var O$={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 tA={};F(tA,{Button:()=>R$,ButtonSet:()=>I$,CircleButton:()=>L$,IconButton:()=>M$,KangorooButton:()=>D$,SquareButton:()=>P$});var R$={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)},P$={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"},L$={extends:"SquareButton",round:"C"},D$={extends:"Button",childExtends:"IconText"},I$={tag:"nav",display:"flex",childExtends:"SquareButton"},M$={extends:["SquareButton","ClickableItem"],round:"Z"};var nA={};F(nA,{Dialog:()=>j$,DialogFooter:()=>V$,DialogHeader:()=>U$});Mt();var eK={ok:1,cancel:1},hi=new WeakMap,nK=0,mn=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},eA=t=>{let e=hi.get(t);return e||(e={id:"smbls-dialog-"+ ++nK,want:void 0,waiting:!1},hi.set(t,e)),e},Ld=(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,Mc=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},N$=["methods","functions","utils"],rK=t=>{for(let e=0;e<N$.length;e++){let n=t[N$[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},cy=(t,e,n)=>{let r=t.context;if(!r||!rK(r))return n;let o=t.call("polyglot",e);return typeof o=="string"&&o&&o!==e?o:n},$$=t=>{let e=hi.get(t),n=mn(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},F$=t=>{queueMicrotask(()=>{if($$(t))return;let e=hi.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,$$(t)}))})},oK=t=>{let e=t.__ref;if(!e||!mn(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||Ld(t,"data-dialog"))return;let n=K(()=>{let r=t.modal,o=mn(t);if(!o)return;if(r==null){Mc(o,"data-dialog",null);return}Mc(o,"data-dialog","modal");let s=eA(t),i=!!r;s.want!==i&&(s.want=i,F$(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},sK=t=>t.dialogTitle===!0,iK=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},B$=t=>{let e=iK(t);return!e||!e.locked},aK=t=>t.key==="Escape"||t.key==="Esc",cK=t=>{let e=t.__ref,n=mn(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let r=eA(t),o=!Ld(t,"closedby","closedBy"),s=K(()=>{let l=!!t.locked,f=mn(t);f&&o&&Mc(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=mn(t);f&&f.open&&f.isConnected&&aK(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)}},lK=t=>{let e=mn(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||Ld(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(sK):null,r=mn(n);if(!r)return;let o=r.getAttribute("id");if(!o){if(Ld(n,"id"))return;o=eA(t).id+"-title",Mc(r,"id",o)}Mc(e,"aria-labelledby",o)},fK=(t,e)=>{let n=mn(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(eK[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)},uK=t=>{let e=hi.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=mn(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},dK=t=>{let e=hi.get(t),n=mn(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},pK=t=>{let e=hi.get(t);e&&e.want&&F$(t)},hK=t=>{let e=mn(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||Ld(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&Mc(e,"data-dialog","modal")},j$={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>hK(t)},onComplete:{always:!0,handler:t=>{oK(t),cK(t),lK(t)}},onRender:{always:!0,handler:t=>pK(t)},onClick:(t,e)=>fK(t,e),onBeforeRemove:{always:!0,handler:t=>uK(t)},onRemove:{always:!0,handler:t=>dK(t)}},U$={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>cy(t,"dialog.title","Title")},SquareButton:{if:B$,icon:"x",theme:"transparent",aria:{label:t=>cy(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},V$={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:B$,text:t=>cy(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>cy(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var cA={};F(cA,{Tooltip:()=>Y$,TooltipHidden:()=>X$,TooltipLayer:()=>aA,TooltipParent:()=>Z$});M();var gK='[data-tooltip]:not([data-tooltip=""])',z$={top:1,bottom:1,left:1,right:1},rA={top:"bottom",bottom:"top",left:"right",right:"left"},gi=6,H$=new WeakMap,mK=0,Oe=t=>{let e=H$.get(t);return e||(e={id:"smbls-tooltip-"+ ++mK,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},H$.set(t,e)),e},oA=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},yK=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},bK=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},W$=(t,e)=>{let n=yK(t);if(!e||!n)return null;let r;try{r=e.closest(gK)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(bK(o))return null;return r},_K=(t,e)=>!!(e&&t.node&&t.node.contains(e)),wK=t=>{try{return t.matches(":focus-visible")}catch{return!0}},K$=(t,e)=>typeof t=="number"&&t>=0?t:e,dy=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},sA=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),SK=(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(" "))},iA=(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")},xK=(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)+gi;s[n]<i(n)&&s[rA[n]]>=i(rA[n])&&(n=rA[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+gi:t.top-e.height-gi):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+gi:t.left-e.width-gi);let l=(f,u)=>Math.max(gi,Math.min(u-gi,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},kK=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}},EK=t=>(t.title||"")+(t.description||""),fy=(t,e=0)=>{let r=Oe(t).shown;if(!r||!sA(t))return;if(!r.isConnected){uy(t);return}let o=t.node,s=t.state;if(o.textContent!==EK(s)){e<3&&setTimeout(()=>fy(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=kK(o),u=r.getAttribute("data-tooltip-placement"),d=z$[u]?u:z$[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=xK(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})},vK=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},q$=(t,e)=>{let n=Oe(t);dy(n),!(!sA(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&iA(n.shown,n.id),n.shown=e,SK(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),vK(()=>fy(t)))};function uy(t){let e=Oe(t);dy(e),e.shown&&iA(e.shown,e.id),e.shown=null,sA(t)&&t.state.open&&t.state.update({open:!1})}var ly=(t,e)=>{let n=Oe(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){dy(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){uy(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,uy(t)},K$(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){q$(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,q$(t,r)},K$(t.tooltipDelay,250))},G$=t=>{let e=Oe(t);e.shown&&(e.dismissed=e.shown,uy(t))},aA={role:"tooltip",id:t=>Oe(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=Oe(e),r=oA(t.target),o=_K(e,r)?n.shown:W$(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,ly(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Oe(e);n.hover&&(n.hover=null,ly(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Oe(e),r=oA(t.target);n.shown&&r&&n.shown.contains(r)&&G$(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Oe(e),r=oA(t.target),o=r&&wK(r)?W$(e,r):null;o!==n.focus&&(n.focus=o,ly(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Oe(e);n.focus&&(n.focus=null,ly(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&G$(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Oe(e).shown&&fy(e)}},onWindowResize:(t,e)=>{Oe(e).shown&&fy(e)},onBeforeRemove:t=>{let e=Oe(t);dy(e),e.shown&&iA(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var Y$={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=>Ut(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)}},X$={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)}},Z$={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 lA={};F(lA,{Avatar:()=>J$});var AK=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)},J$={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=AK(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 fA={};F(fA,{Range:()=>Q$});var Q$={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},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:Da("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Da("#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 wA={};F(wA,{Dropdown:()=>v2,DropdownDisclosure:()=>T2,DropdownList:()=>A2,DropdownParent:()=>C2,DropdownParentFocus:()=>O2,DropdownSiblingFocus:()=>R2});Mt();var by="hover",r2="focus",Dd="sibling",Hr="disclosure",t2={menu:1,listbox:1,tree:1,grid:1,dialog:1},CK={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},TK={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},OK='button, a[href], [role^="menuitem"], [role="option"]',RK={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},hy=new WeakMap,gy=new WeakMap,my=new WeakMap,dA=new WeakMap,o2=new WeakSet,PK=0,wt=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},Nc=(t,e)=>{let n=wt(t);return n?n.getAttribute(e):null},Dt=(t,e)=>{let n=wt(t);return!!n&&!!e&&(n===e||n.contains(e))},uA=t=>{let e=wt(t);return!!e&&e.hasAttribute("dropdown")},pA=t=>{let e=wt(t);return!!e&&e.tagName==="BUTTON"},py=t=>pA(t)||Nc(t,"role")==="button",e2=t=>{let e=wt(t);return!!e&&CK[e.tagName]===1&&!e.isContentEditable},s2=t=>{let e=wt(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},Id=t=>{let e=Nc(t,"role");return!!e&&e.indexOf("menuitem")===0&&s2(t)},LK=t=>{let e=wt(t);if(!e||!s2(t))return!1;if(TK[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},mi=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],Re=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,hA=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},i2={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},a2=(t,e)=>{if(t[e]!==void 0)return!0;let n=i2[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},DK=(t,e)=>{let n=i2[e],r=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!r&&typeof r=="object"&&typeof r[e]=="function"},lr=(t,e,n)=>!e.hasAttribute(n)&&!a2(t,n),Vo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},IK=(t,e)=>{let n=wt(t);if(n)for(let r in e)Vo(n,r,e[r])},yy=t=>{let e=wt(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},MK=t=>{let e=hy.get(t);return e||(e={id:"smbls-dropdown-"+ ++PK,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},hy.set(t,e)),e},n2=(t,e)=>!!e&&!!wt(e)&&!!t&&t[e.key]===e,NK=(t,e)=>{let n=null,r=null;if(e===Dd){let s=t.parent?mi(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(uA(s[i])){n=s[i];break}return(py(t)||e2(t))&&(r=t),{panel:n,trigger:r}}let o=mi(t);for(let s=0;s<o.length;s++)if(uA(o[s])){n=o[s];break}if(py(t))return{panel:n,trigger:t};for(let s=0;s<o.length;s++){let i=o[s];if(!(!wt(i)||i.key==="Input_trigger"||uA(i))){(py(i)||e2(i))&&(r=i);break}}return{panel:n,trigger:r}},$K=t=>{let e=Nc(t,"role");if(e&&t2[e]===1)return{el:t,role:e};let n=mi(t);for(let r=0;r<n.length;r++){let o=Nc(n[r],"role");if(o&&t2[o]===1)return{el:n[r],role:o}}return null},yn=t=>{let e=Re(t);if(!e||!wt(t))return null;let n=MK(t);if(n.trigger){let p=e===Dd?t.parent:t;if((n.trigger===t||n2(t,n.trigger))&&n2(p,n.panel))return n}let{panel:r,trigger:o}=NK(t,e);if(!r||!o)return n.trigger=n.panel=n.popup=null,null;n.trigger=o,n.panel=r;let s=e===Hr?null:$K(r);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=wt(o),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&lr(o,i,"id")&&(a.id=c=n.id+"-trigger"),py(o)||(lr(o,i,"role")&&(a.role="button"),lr(o,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&lr(o,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=wt(r),f=l.getAttribute("id");if(!f&&lr(r,l,"id")&&(f=n.id+"-panel",Vo(l,"id",f)),f&&lr(o,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=lr(o,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=_y(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),IK(o,a),n.popupRole==="menu"&&c){let p=wt(n.popup);lr(n.popup,p,"aria-label")&&lr(n.popup,p,"aria-labelledby")&&Vo(p,"aria-labelledby",c)}o!==t&&e===r2&&Nc(t,"tabindex")==="0"&&!DK(t,"tabindex")&&Vo(wt(t),"tabindex","-1");let u=hA(t),d=wt(u);return d&&!d.hasAttribute("tabindex")&&(a2(u,"tabindex")||Vo(d,"tabindex","-1"),lr(u,d,"aria-hidden")&&Vo(d,"aria-hidden","true")),yi(t,n),n},c2=t=>{let e=wt(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},l2=t=>Dt(t,c2(t)),_y=(t,e,n)=>{if(e.open!==null)return e.open;let r=Re(t);return n||r===by||r===Hr?!1:l2(t)},yi=(t,e,n)=>{let r=e.open===null?null:String(e.open);if(e.written.open!==r){e.written.open=r;let s=wt(t);s&&Vo(s,"data-dropdown-open",r)}if(!e.owns)return;let o=_y(t,e,n)?"true":"false";if(e.written.expanded!==o){e.written.expanded=o;let s=wt(e.trigger);s&&Vo(s,"aria-expanded",o)}},_i=t=>{let e=gy.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},gy.set(t,e)),e},f2=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&my.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let r=my.get(e);r&&r.set(!0)},u2=(t,e)=>{let n=_i(t);n.chosen=!0,f2(n,e)},d2=t=>{let e=_i(t);if(e.settling=!1,e.chosen)return;let n=mi(t);for(let r=0;r<n.length;r++)if(Id(n[r])){f2(e,n[r]);return}},p2=(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},h2=(t,e)=>{let n=wt(t);if(!n)return;let r=n.ownerDocument.activeElement,o=yy(t);!o&&e&&n.ownerDocument.activeElement===r&&p2(n,wt(e))&&(o=yy(t));let s=t.parent;o&&s&&gy.has(s)&&u2(s,t)},FK=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?Id:LK)},BK=(t,e,n)=>{if(n==="trigger"){let s=c2(t);(!Dt(t,s)&&!Dt(e.panel,s)||Dt(hA(t),s))&&yy(e.trigger);return}let r=FK(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++)Nc(r[s],"aria-checked")==="true"&&(o=r[s]);h2(o||r[0],e.panel)},gA=(t,e,n)=>{let r=wt(t),o=r&&r.ownerDocument;n&&!e.outside&&o?(e.outside=s=>{if(!wt(t)||!wt(t).isConnected){gA(t,e,!1);return}Dt(t,s.target)||Dt(e.panel,s.target)||de(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)},g2=(t,e)=>{let n=wt(t),r=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!r||typeof r.Event!="function")return;let o=new r.Event("toggle");Object.defineProperty(o,"newState",{value:e?"open":"closed"}),Object.defineProperty(o,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(o)},$c=(t,e,n)=>{let r=e.open===!0;if(e.open=!0,yi(t,e),Re(t)===Hr){gA(t,e,!0);let o=wt(e.panel);o&&p2(o,o),r||g2(t,!0)}n&&BK(t,e,n)},de=(t,e,n)=>{let r=e.open===!0;e.open=!1,yi(t,e),e.outside&&gA(t,e,!1),n&&yy(e.trigger),r&&Re(t)===Hr&&g2(t,!1)},jK=t=>{let e=t.__ref;if(!e||Re(t)!==Hr||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=K(()=>{let r=t.open;r!=null&&Qo(()=>{let o=yn(t);!o||!!r==(o.open===!0)||(r?$c(t,o,null):de(t,o,l2(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},wy=(t,e,n)=>e.trigger===t?!Dt(e.panel,n):Dt(e.trigger,n)?!0:Dt(hA(t),n),mA=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(OK):null;return!!n&&Dt(t,n)},m2=(t,e,n)=>{let r=t.key;r==="Escape"||r==="Esc"?(t.preventDefault(),de(e,n,!0)):r==="Tab"&&n.popupRole==="menu"&&Dt(n.popup,t.target)&&de(e,n,!1)},Sy=t=>{Re(t)===Dd&&t.parent&&o2.add(t.parent),yn(t),jK(t)},xy=(t,e)=>{let n=yn(e);n&&(n.pressedOpen=_y(e,n))},UK=(t,e)=>{let n=hy.get(e);!n||!n.trigger||n.open!==!1||Re(e)!==by||(n.open=null,yi(e,n))},ky=(t,e)=>{if(Re(e)===Hr){zK(t,e);return}if(t.defaultPrevented)return;let n=yn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){if(Re(e)!==by||!mA(n.panel,r))return;(n.open===!0||t.detail===0)&&de(e,n,!0);return}if(!wy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?de(e,n,!0):$c(e,n,n.popupRole==="menu"?"first":"trigger")},Ey=(t,e)=>{if(t.defaultPrevented)return;if(Re(e)===Hr){HK(t,e);return}let n=yn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){m2(t,e,n);return}if(!wy(e,n,r))return;let o=t.key;if(o==="ArrowDown"||o==="Down"||o==="ArrowUp"||o==="Up")t.preventDefault(),$c(e,n,o==="ArrowUp"||o==="Up"?"last":"first");else if(o==="Escape"||o==="Esc"){if(!_y(e,n))return;t.preventDefault(),de(e,n,!1)}else(o==="Enter"||o===" "||o==="Spacebar")&&!pA(n.trigger)&&(t.preventDefault(),n.open===!0?de(e,n,!0):$c(e,n,n.popupRole==="menu"?"first":"trigger"))},VK=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),zK=(t,e)=>{let n=yn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){n.open===!0&&!VK(t)&&e.keepOpen!==!0&&mA(n.panel,r)&&de(e,n,!0);return}if(t.defaultPrevented||!wy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?de(e,n,!0):$c(e,n,"trigger")},HK=(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(),de(e,n,!0);return}(r==="Enter"||r===" "||r==="Spacebar")&&!pA(n.trigger)&&!Dt(n.panel,t.target)&&wy(e,n,t.target)&&(t.preventDefault(),n.open===!0?de(e,n,!0):$c(e,n,"trigger"))},yA=(t,e)=>{let n=yn(e);n&&(n.open===null&&Dt(n.panel,t.target)&&(n.open=!0),yi(e,n))},Md=(t,e)=>{let n=hy.get(e);if(!n||!n.trigger)return;let r=t.relatedTarget;if(Re(e)===Hr){n.open===!0&&r&&!Dt(e,r)&&!Dt(n.panel,r)&&de(e,n,!1);return}if(r&&(Dt(e,r)||Dt(n.panel,r))){n.open===null&&Dt(n.panel,r)&&(n.open=!0,yi(e,n));return}n.open=null,yi(e,n,!0)},y2=t=>{let e=t.parent;if(!e||!o2.has(e))return null;let n=mi(e);for(let r=n.indexOf(t)-1;r>=0&&n[r];r--)if(Re(n[r])===Dd)return n[r];return null},bA=t=>{let e=y2(t),n=e?yn(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},b2=t=>{let e=y2(t);e&&yn(e)},_2=(t,e)=>{if(t.defaultPrevented)return;let n=bA(e);n&&m2(t,n.ctrl,n.rec)},w2=(t,e)=>{if(t.defaultPrevented||!mA(e,t.target))return;let n=bA(e);n&&de(n.ctrl,n.rec,!0)},S2=(t,e)=>{let n=bA(e);n&&Md(t,n.ctrl)},WK=(t,e)=>{let n=e.parent,r=Re(n)?yn(n):null;if(r&&r.panel===e){de(n,r,!0);return}let o=wt(e),s=o&&o.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},x2=(t,e)=>{if(Re(e.parent)&&yn(e.parent))return;let n=wt(e);n&&n===n.ownerDocument.activeElement&&n.blur()},KK=(t,e)=>{if(t.defaultPrevented)return;let n=RK[t.key];if(!n)return;let r=typeof e.lookdownAll=="function"?e.lookdownAll(Id):[];if(!r.length)return;let o=-1;for(let i=0;i<r.length&&o===-1;i++)Dt(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(),h2(r[s])},qK=(t,e)=>{let n=mi(e);for(let r=0;r<n.length;r++)if(Dt(n[r],t.target)){Id(n[r])&&u2(e,n[r]);return}},GK=t=>{let e=t.parent;if(!e)return"0";let n=_i(e),r=my.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(()=>d2(e))),r=Sn(o),my.set(t,r)}return r.get()?"0":"-1"},YK=t=>{b2(t);let e=_i(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&Id(e.stopItem))&&d2(t)},XK=t=>{let e=dA.get(t),n=!e;n&&(e={tick:Sn(0),seen:0,checked:!1},dA.set(t,e));let r=e.tick.get();return r===e.seen&&(e.checked=!!Qo(()=>t.isActive)),e.seen=r,n&&t.parent&&JK(t.parent),e.checked?"true":"false"},ZK=(t,e)=>{if(e.checkRows.get(),!t.node){E2(t);return}let n=mi(t);for(let r=0;r<n.length;r++){let o=dA.get(n[r]);if(!o)continue;let s=!!n[r].isActive;s!==o.checked&&(o.checked=s,o.tick.set(o.tick.peek()+1))}},k2=t=>{let e=_i(t);e.checks||(e.checkRows||(e.checkRows=Sn(0)),e.checks=K(()=>ZK(t,e),{label:"DropdownList.checks"}))},E2=t=>{let e=gy.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},JK=t=>{let e=_i(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||k2(t)},QK=t=>{_i(t).owned=!0},bi={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},_A={opacity:0,visibility:"hidden"},v2={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:b2},onKeydown:_2,onClick:w2,onFocusout:S2},A2={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)=>{KK(t,e),_2(t,e)},onInit:{always:!0,handler:QK},onComplete:{always:!0,handler:YK},onRender:{always:!0,handler:k2},onBeforeRemove:{always:!0,handler:E2},onFocusin:qK,onClick:w2,onFocusout:S2,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>GK(t),aria:{checked:t=>XK(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"}}},C2={position:"relative",zIndex:999,dropdownMode:by,":hover":{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{..._A}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onPointerenter:UK,onClick:ky,onKeydown:Ey,onFocusin:yA,onFocusout:Md},T2={position:"relative",dropdownMode:Hr,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...bi}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onClick:ky,onKeydown:Ey,onFocusout:Md},O2={position:"relative",tabindex:"0",dropdownMode:r2,":focus-within":{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...bi}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{..._A}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onClick:ky,onKeydown:Ey,onFocusin:yA,onFocusout:Md,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>x2(t,e)},Dropdown:{onClick:(t,e)=>WK(t,e)}},R2={position:"relative",tabindex:"0",dropdownMode:Dd,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...bi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...bi}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{..._A}},onComplete:{always:!0,handler:Sy},onPointerdown:xy,onClick:ky,onKeydown:Ey,onFocusin:yA,onFocusout:Md,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>x2(t,e)}};var SA={};F(SA,{Notification:()=>P2});var P2={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 wi=Object.assign({},tv,ev,nv,rv,sv,lv,fv,uv,av,dv,pv,cv,hv,gv,mv,yv,bv,_v,wv,Sv,xv,kv,Av,Jv,Qv,tA,nA,cA,lA,fA,wA,SA);function vy(t){if(t==null)return 0;if(typeof t!="object")return L2(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^vy(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^L2(n[r]))*16777619,e=(e^vy(t[n[r]]))*16777619;return e>>>0}function L2(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function Ay(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(!Ay(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)||!Ay(t[s],e[s]))return!1}return!0}function xA(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=xA(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 kA(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])?kA(t[r],o,n):t[r]=o}return t}function zo(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 Bc(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Nd(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():zo(e)}function D2(t){return t.split(`
|
|
89
|
-
`).map(
|
|
90
|
-
`)}var
|
|
91
|
-
${c}`}var
|
|
92
|
-
`)}function
|
|
93
|
-
${a}`}var EA=null;function Ty(t){EA=t}var Mn={structuralHash:vy,deepEqual:Ay,mergeStructural:xA,overwriteDeep:kA,shortHash:zo,toKebab:Bc,sanitizeValue:Nd,batchShortHash:D2,atomicCssClass:M2,batchAtomicCss:$2,compoundCssClass:F2},B2=!1,Cy=null;function j2(t){return Cy||(Cy=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Mn.structuralHash=e.structuralHash),e.deepEqual&&(Mn.deepEqual=e.deepEqual),e.mergeStructural&&(Mn.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Mn.overwriteDeep=e.overwriteDeep),e.shortHash&&(Mn.shortHash=e.shortHash),e.toKebab&&(Mn.toKebab=e.toKebab),e.sanitizeValue&&(Mn.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Mn.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Mn.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Mn.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Mn.compoundCssClass=e.compoundCssClass),B2=!0,EA&&e.batchAtomicCss&&EA({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Cy)}function U2(){return B2}M();var $d={};F($d,{BRENDER_REGISTRY_BLOCK:()=>Bf,BRENDER_REGISTRY_TREE_BLOCK:()=>jf,BRENDER_STAMP_META:()=>ng,CDN_PROVIDERS:()=>tn,DESIGN_SYSTEM_BLOCK:()=>Hf,DESIGN_SYSTEM_DEFERRED:()=>zf,DESIGN_SYSTEM_LINK:()=>Vf,DOMQL_EVENTS:()=>G_,DOMQ_PROPERTIES:()=>to,ELEMENT_METHOD_OVERRIDE_POINTS:()=>Qi,ENV:()=>yw,HTML_TAGS:()=>ia,LIBRARY_PACKAGES:()=>tg,LIBRARY_SCOPES_KEY:()=>Es,METHODS:()=>no,METHODS_EXL:()=>Tl,NODE_ENV:()=>xn,OPTIONS:()=>rf,PACKAGE_MANAGER_TO_CDN:()=>po,PARSED_DOMQ_PROPERTIES:()=>Cl,POLYGLOT_LANG_STORAGE_KEY:()=>Hh,PROPS_METHODS:()=>eo,REVIVED_MARK:()=>Ml,STATE_DATA_MERGE_EXL:()=>bh,STATE_METHODS:()=>ns,STATE_PROPERTIES:()=>K_,SVG_TAGS:()=>kO,TYPES:()=>wl,UNIVERSAL_RESERVED_KEYS:()=>zh,__resetBuiltinMethodWarnings:()=>bx,addCaching:()=>dh,addContext:()=>uh,addExtend:()=>jw,addExtends:()=>zn,addItemAfterEveryElement:()=>L_,addProtoToArray:()=>kl,addRef:()=>ch,alternateLinkKey:()=>Cs,applyCSS:()=>TA,applyDependentState:()=>sS,applyEvent:()=>_h,applyEventUpdate:()=>wh,applyExtends:()=>AO,applyProps:()=>Xl,arrayContainsOtherArray:()=>v_,arraysEqual:()=>I_,arrayzeValue:()=>Rs,bareLibraryKey:()=>Pf,bindLibraryGlobalScopes:()=>Df,brenderStampMeta:()=>Ax,buildImgSrcset:()=>qf,buildSourcesAndImg:()=>Gf,cache:()=>fS,call:()=>XS,captureSnapshot:()=>JS,checkForStateTypes:()=>eS,checkIfInherits:()=>yh,checkIfStringIsInArray:()=>$_,clone:()=>nw,cloneAndMergeArrayExtend:()=>Vl,cloneFunction:()=>Ew,collectExtendsList:()=>aa,concatAddExtends:()=>$w,copyJavaScriptToClipboard:()=>Lx,copyStringToClipboard:()=>Px,createBasedOnType:()=>ah,createElement:()=>tS,createElementExtends:()=>Yp,createExtends:()=>Hl,createExtendsFromKeys:()=>ca,createExtendsStack:()=>Qp,createIfConditionFlag:()=>vw,createInheritedState:()=>nS,createKey:()=>Bl,createNestedObject:()=>fw,createNestedObjectByKeyPath:()=>oS,createObjectWithoutPrototype:()=>Vp,createParent:()=>lh,createPath:()=>fh,createProps:()=>Zl,createPropsStack:()=>sh,createPrunedLibraryIconLoader:()=>ag,createRoot:()=>Qw,createScope:()=>aS,createSnapshotId:()=>Fl,currentPathname:()=>Ss,customDecodeURIComponent:()=>W_,customEncodeURIComponent:()=>H_,cutArrayAfterValue:()=>R_,cutArrayBeforeValue:()=>O_,debounce:()=>Ul,debounceOnContext:()=>xw,decodeBrenderRegistry:()=>Uf,decodeNewlines:()=>z_,deepClone:()=>pt,deepContains:()=>cw,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>be,deepExtend:()=>Gp,deepMerge:()=>bt,deepMergeExtends:()=>Hn,deepStringifyFunctions:()=>Ll,defineSetter:()=>GS,designSystemBlock:()=>vx,designSystemLink:()=>Ex,destringifyGlobalScope:()=>ls,detectHeightOnInit:()=>ox,detectInfiniteLoop:()=>hw,document:()=>kt,encodeNewlines:()=>V_,error:()=>_s,escapeHtml:()=>U,escapeRegExp:()=>F_,evaluateText:()=>uo,excludeKeysFromObject:()=>mw,exec:()=>St,exposeBagGlobalScopes:()=>If,extendCachedRegistry:()=>Fw,extendStackRegistry:()=>Wl,extractArrayExtend:()=>ql,faviconLinkKey:()=>mo,fetchLibraryData:()=>Ca,fibonacciNumberByIndex:()=>sx,fileEntryUrl:()=>rg,filterArrays:()=>M_,filterArraysFast:()=>N_,finalizeExtends:()=>th,findClosestNumber:()=>og,findClosestNumberInFactory:()=>Rx,findInheritedState:()=>mh,findKeyPosition:()=>j_,flattenExtend:()=>la,formatDate:()=>rx,generateHash:()=>Wp,generateHeadArrayTags:()=>Ta,generateKey:()=>$l,generateMetaTags:()=>Tx,get:()=>HS,getActiveRoute:()=>Yv,getCDNDirUrl:()=>Yh,getCDNUrl:()=>An,getCapitalCaseKeys:()=>zw,getCdnProviderFromConfig:()=>xa,getChildStateInKey:()=>gh,getChildren:()=>qS,getContext:()=>Sf,getCookie:()=>Rw,getDB:()=>Af,getEmotionStylesheet:()=>Bx,getExtendsInElement:()=>Uw,getExtendsStack:()=>zl,getExtendsStackRegistry:()=>qp,getFrequencyInArray:()=>A_,getFunctionSource:()=>Ne,getHashedExtend:()=>Kl,getImportMapScript:()=>nx,getInObjectByPath:()=>pw,getLocalStorage:()=>Lw,getNev:()=>Sw,getPageMetadata:()=>Ox,getParentStateInKey:()=>hh,getPath:()=>gf,getQuery:()=>Cf,getRef:()=>KS,getRoot:()=>bf,getRootContext:()=>wf,getRootData:()=>_f,getRootState:()=>yf,getRootStateInKey:()=>ph,getSpreadChildren:()=>Hw,global:()=>x_,hasFunction:()=>se,hasHandlerPlugin:()=>ra,hasOwnProperty:()=>sw,hashContent:()=>Tn,inheritChildExtends:()=>Zp,inheritChildPropsExtends:()=>Xp,inheritParentProps:()=>Jl,inheritRecursiveChildExtends:()=>Jp,init:()=>fr,initProps:()=>Xw,insertAfterImportMap:()=>Cx,installPrunedLibraryIconLoader:()=>Kf,is:()=>ye,isArray:()=>I,isBoolean:()=>Ip,isBuiltinElementMethod:()=>q_,isContextComponent:()=>Ww,isCyclic:()=>gw,isDOMNode:()=>ge,isDate:()=>Np,isDefined:()=>Ut,isDevelopment:()=>oo,isEmpty:()=>jp,isEmptyObject:()=>iw,isEqualDeep:()=>Up,isFailedRevival:()=>as,isFunction:()=>L,isHtmlElement:()=>bl,isLazyFunction:()=>rw,isLocal:()=>ww,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>xs,isMethod:()=>ZS,isMobile:()=>Tw,isNode:()=>hr,isNot:()=>E_,isNotProduction:()=>gr,isNull:()=>Mp,isNumber:()=>me,isObject:()=>E,isObjectLike:()=>V,isPhoto:()=>ix,isPolyglotRetranslatableKey:()=>nf,isPolyglotWritableKey:()=>us,isProduction:()=>ro,isProtectedElementMethod:()=>rs,isRevived:()=>cs,isStaging:()=>_w,isState:()=>rS,isString:()=>v,isStringFunction:()=>na,isStringTag:()=>Il,isTest:()=>Hp,isTesting:()=>bw,isUndefined:()=>Xt,isUniversallyReservedKey:()=>QS,isUnresolvableDependency:()=>ho,isValidDependencyMap:()=>ks,isValidHtmlTag:()=>Iw,isWrappedLibrary:()=>$e,joinArrays:()=>Xi,jointStacks:()=>Bw,jsonForScript:()=>gs,keys:()=>Uh,lastLevel:()=>ay,lastPathname:()=>Dc,libraryIconPruneReplacer:()=>Fx,libraryIdentifier:()=>sg,libraryPackageSpecs:()=>va,librarySpecsFor:()=>Qh,loadCssFile:()=>fx,loadJavascript:()=>ux,loadJavascriptFile:()=>ax,loadJavascriptFileEmbedSync:()=>lx,loadJavascriptFileSync:()=>cx,loadLazy:()=>Vv,loadRemoteCSS:()=>dx,loadRemoteScript:()=>ka,log:()=>YS,logGroupIf:()=>Cw,logIf:()=>Aw,lookdown:()=>VS,lookdownAll:()=>zS,lookup:()=>US,lowercaseFirstLetter:()=>es,makeObjectWithoutPrototype:()=>aw,map:()=>ew,mapStringsWithContextComponents:()=>Gl,markPolyglotSeeded:()=>Kn,markRevived:()=>ea,markTextNotReady:()=>_a,matchRoute:()=>Kv,matchesComponentNaming:()=>Wn,memoize:()=>kw,merge:()=>Lt,mergeSharedLibraries:()=>Mf,mergeSharedLibraryDesignSystems:()=>Nf,mergeStateData:()=>io,nextElement:()=>kf,normalizeIgnoreList:()=>Lf,normalizeLibraryKey:()=>vs,objectToString:()=>Dl,objectizeStringProperty:()=>Yl,overwrite:()=>Nl,overwriteDeep:()=>ie,overwriteShallow:()=>fs,overwriteState:()=>iS,parse:()=>Vh,parseDeep:()=>pf,parseQuery:()=>qv,parseRoutePattern:()=>iy,payloadHasComputedIconName:()=>ig,pickStartLang:()=>qh,pickupElementFromProps:()=>rh,pickupPropsFromElement:()=>nh,planLibraryIconPrune:()=>$x,polyglotAddressLang:()=>Wh,polyglotFallbackLang:()=>wr,polyglotLangStorageKey:()=>ba,polyglotLanguages:()=>vn,polyglotSeededKeys:()=>ao,polyglotStartLang:()=>ws,polyglotStartRule:()=>Kh,polyglotStartupScript:()=>tx,previousElement:()=>Ef,promoteActiveRootState:()=>ma,propExists:()=>Gw,propertizeElement:()=>oh,propertizeUpdate:()=>qw,readBrenderStamp:()=>ms,readJsonDataBlock:()=>Gn,reinit:()=>CA,remove:()=>I1,removeChars:()=>Dx,removeCookie:()=>Pw,removeDuplicateProps:()=>tf,removeDuplicatesInArray:()=>Zi,removeFromArray:()=>C_,removeFromObject:()=>lw,removeNestedKeyByPath:()=>uw,removeValueFromArray:()=>xl,removeValueFromArrayAll:()=>P_,reorderArrayByValues:()=>D_,repairLegacyArrowScopePreamble:()=>Ol,replaceLiteralsWithObjectFields:()=>Zt,replaceOctalEscapeSequences:()=>U_,resolveAsset:()=>_e,resolveFileReferences:()=>Os,resolveHandler:()=>oa,resolveRouterElement:()=>Pd,resolveSharedLibraries:()=>$f,returnValueAsText:()=>ih,router:()=>In,runGuards:()=>x$,runPluginHook:()=>so,saveScrollPosition:()=>Ad,scopeElementParam:()=>$p,scopeReceiverExpression:()=>J_,scratchSystem:()=>qa,scratchUtils:()=>So,self:()=>k_,set:()=>Xs,setActiveRootState:()=>mf,setCookie:()=>Ow,setHashedExtend:()=>Kp,setInObjectByPath:()=>dw,setLocalStorage:()=>Dw,setNodeStyles:()=>jh,setProps:()=>WS,setPropsPrototype:()=>Ql,sharedLibrary:()=>yx,sharedLibraryFiles:()=>As,splitPackageSpecifier:()=>Tf,spotByPath:()=>hf,srcsetFor:()=>Oa,stringIncludesAny:()=>vl,stringToObject:()=>ow,stripVersionRangePrefix:()=>Of,swapItemsInArray:()=>T_,syncProps:()=>ef,themeColorKey:()=>Ts,toCamelCase:()=>Sr,toDashCase:()=>Wf,toDescriptionCase:()=>Mx,toPriorityOrder:()=>Ze,toTitleCase:()=>Ix,toggleFullscreen:()=>ex,triggerEventOn:()=>mr,triggerEventOnUpdate:()=>cS,trimStringFromSymbols:()=>B_,unstackArrayOfObjects:()=>Sl,update:()=>Yw,updateProps:()=>Zw,variables:()=>vf,verbose:()=>ya,warn:()=>xf,warnLibraryAliasCollision:()=>Aa,window:()=>R});M();M();M();var a7={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},c7=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,l7=/^-?[_a-zA-Z][\w-]*$/,f7=new Set(["root","*"]),u7="@media (prefers-reduced-motion: no-preference)",d7="@media (prefers-reduced-motion: reduce)",p7=(t,e)=>{let n=v(t)?{animation:t}:E(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];(v(i)||me(i))&&(o[s]=i)}return Object.keys(o).length?o:null},V2=(t,e,n={})=>{if(!E(t))return null;if(globalThis.__SMBLS_BUILD_DROP_F_viewTransition__)return Object.keys(t).length&&qt("viewTransition")||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=a7[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=p7(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(E(f)){if(!c7.test(l)){o(`"${l}" is not a view-transition name`);continue}if(!r&&f7.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,""),E(f.types))for(let u in f.types){if(!l7.test(u)||!E(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?{[u7]:i,[d7]:a}:null};var h7=P(),H2=(t=h7,e)=>{let n=E(e.localFile)?e.localFile:{},r=pt(n.designSystem||{});return bt(t,r,ae)},g7={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Oy=(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},vA=(t,e)=>{t.CSS_MEDIA_VARS&&Ot(Oy(t.CSS_MEDIA_VARS,e));let n=Gs(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&Ot(n)},W2=(t,e)=>{let n=V2(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&Ot(n)},Ry=t=>{if(typeof window<"u"&&window.location)try{let e=new URLSearchParams(window.location.search).get("globalTheme");if(e)return e}catch{}return t},z2=(t,e)=>{t.useVariable&&(Ot({[e]:t.CSS_VARS}),vA(t,e)),t.useReset&&Ot(t.reset);let n=t.animation;if(n){let r={};for(let o in n)r[`@keyframes ${o}`]=n[o];Ot(r)}W2(t,e)},K2=(t,e,n,r,o)=>{t.useFontImport&&Ot(tu(t.font,t.files));let s=null;return o?Wu(o):n.recordCss?s=Hu(()=>z2(t,e)):z2(t,e),(r.svg||t.useSvgSprite)&&Ru(t.svg,{document:n.document}),(r.icons||t.useIconSprite)&&qs(t.icons,{document:n.document}),s},fr=(t,e=g7)=>{let n=H2(t||{},e),r=e.scopeSelector||":root",o=Ry(e.globalTheme),s=Xs({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=K2(s,r,e,i);return a&&typeof e.recordCss=="function"&&e.recordCss({rules:a,sprites:i}),s},AA=(t,e,n,r)=>{let o=n.scopeSelector||":root";if(Yg(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),bo(e),_o(e),Fu(e),e.__svgCache={},r){mt(e);try{$u("font",r)}finally{ht()}}mt(e);try{K2(e,o,n,t.sprites||{},t.rules)}finally{ht()}return e},Py={},CA=(t,e=Py)=>{let n=H2(t||{},e),r=e.scopeSelector||":root",o=Xs({verbose:!1,...n});return e.preventInject||(Ot({[r]:o.CSS_VARS}),vA(o,r),Ot(o.reset),W2(o,r)),o},TA=(t,e=Py)=>{Ot(t)},m7=(t,e=Py)=>{let n=e.scopeSelector||":root";Ot({[n]:t.CSS_VARS}),vA(t,n)};var y7=(t,e=Py)=>{};M();var q2=10,b7=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},_7=t=>{try{let e=t.defaultView;return e&&e.frameElement||null}catch{return null}},w7=t=>{let e=t&&t.document||(typeof document<"u"?document:null);if(!e)return()=>!0;let n=!!e.defaultView,r=_7(e);return()=>!(n&&!e.defaultView||r&&!r.isConnected)},G2=Symbol("smbls.bootGone"),Y2=t=>{let e,n={live:w7(t),dead:!1,gone:new Promise(r=>{e=r}),lost(){n.dead||(n.dead=!0,e(G2))}};return n},jc=t=>t?t.dead?!1:t.live()?!0:(wd(t),!1):!0,S7=(t,e)=>e?Promise.race([t,e.gone]):t,Ho=async(t,e)=>await S7(t,e)!==G2&&jc(e),OA=t=>{if(!(!t||!t.__ref))try{pn(t)}catch{}},X2=new WeakSet,Uc=t=>(X2.add(t),t),Fd=t=>!!t&&typeof t=="object"&&X2.has(t),Z2=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!b7(t))return null;if(e===void 0||e===!0)return{budget:q2,progressive:!1};if(e&&typeof e=="object"){let r=e.budget===void 0?q2:ar(e.budget);return r?{budget:r,progressive:e.progressive===!0}:null}let n=ar(e);return n?{budget:n,progressive:!1}:null},RA=new WeakMap,PA=(t,e)=>(RA.set(t,e),e),LA=t=>{RA.delete(t)},J2=t=>{let e=t&&RA.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},x7=Object.freeze({deferAttach:!0}),Q2=async(t,e,n,r,o)=>{let s=o.lease||null;if(await cr(),!jc(s))return null;let i=r.mountYield;i===void 0&&(r.mountYield=o.budget);let a=r.mountWhole;a===void 0&&(r.mountWhole=!o.progressive),o.pageOptions={mountYield:r.mountYield,mountWhole:r.mountWhole};let c;o.commit=new Promise(d=>{c=d}),o.committed=!1;let l=!o.progressive;PA(n,o);let f=ai(),u=null;s&&(n.__mountLease=s);try{if(u=Yt(t,e,n.key,r,l?x7:void 0),!await Ho(Vr(u),s)||o.routeReady&&!await Ho(o.routeReady,s)||!await Ho(Te(),s))return Ly(u);for(;!Bo();)if(!await Ho(Te(),s))return Ly(u);return l&&No(u),o.committed=!0,c(),o.page&&await Vr(o.page),await Te(),u}finally{o.committed=!0,c(),f(),r.mountYield=i,r.mountWhole=a,s&&(n.__mountLease=null),LA(n)}},Ly=t=>(OA(t),null);var eF=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,k7=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},IA={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},E7=(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},Bd=(t,e)=>(Pd||E7)(t,e),v7=["manual","auto","restore"],DA=new WeakMap,tF=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},A7=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!v7.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||R,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=DA.get(o);s||(s={found:o.scrollRestoration,claims:[]},DA.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),tF(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||DA.delete(o);try{tF(o,s)}catch{}}})}catch{}}},C7=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Ad,r=t.window||R;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)})},nF=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=IA:e.router=Lt(e.router||{},IA);let n=e.router;A7(e,n),C7(e,n);let r=(i,a)=>{let c=i.context?.window||R,l=k7(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=eF(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=Bd(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return In(l,f,{},{initialRender:!0,pushState:!1,...a})},o=async(i,a)=>{let c=J2(i.context);if(c)return T7(i,c,r);await r(i)},s=!Xt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=o(i,a)),O7(e,n),n},T7=(t,e,n)=>{let r;return e.routeReady=new Promise(s=>{r=s}),(async()=>{try{if(await cr(),!t.__ref||!jc(e.lease))return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await Te(),r(),await s}finally{r()}})()},MA=(t,e)=>{if(e.router===!1)return;let n=e.router||IA;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:In,o=e.window||R,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=eF(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=Bd(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))},O7=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return bt(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var BA={};F(BA,{components:()=>$A,functions:()=>Wr});var FA={};F(FA,{AlertTemplate:()=>zy,ConfirmTemplate:()=>Vy,CustomTemplate:()=>Wy,ModalLayer:()=>Uy,ModalRoot:()=>jy,PromptTemplate:()=>Hy,windowsComponents:()=>$A});var NA={};F(NA,{alertDialog:()=>Fy,closeAllModals:()=>Ny,closeModal:()=>Iy,confirmDialog:()=>$y,getLayer:()=>Dy,openModal:()=>My,promptDialog:()=>By,windowsFunctions:()=>Wr});function lt(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function Vc(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 Dy(){return lt(this)}var R7=(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"))},rF=(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 Iy(t){let e=Vc(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)R7(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function My(t={}){let e=Vc(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 rF(e,s),e.state.update({stack:[...o,r]}),n}function Ny(){let t=Vc(this);if(!t)return;let e=t.state?.stack;if(!e?.length)return;let n=e.slice();t.state.update({stack:[]});for(let r=n.length-1;r>=0;r--){let o=n[r];if(typeof o?.onClose=="function")try{o.onClose()}catch(s){console.warn("[windows] onClose threw:",s)}}}function $y(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function Fy(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function By(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var Wr={openModal:My,closeModal:Iy,closeAllModals:Ny,confirmDialog:$y,alertDialog:Fy,promptDialog:By,getLayer:Dy};var P7=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),oF=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(P7),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},sF=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},jy={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 c in Wr)c in n.functions||(n.functions[c]=Wr[c])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=c=>{if(typeof c?.onCancel=="function")try{c.onCancel()}catch(l){console.warn("[windows] onCancel threw:",l)}if(typeof c?.onClose=="function")try{c.onClose()}catch(l){console.warn("[windows] onClose threw:",l)}},o=()=>{let c=t.state?.stack||[];if(!c.length)return;let l=c.length-1,f=c[l];t.state.update({stack:c.slice(0,-1)});let u=t["ModalLayer_"+l],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},s=c=>{let l=t.state?.stack;if(l?.length){if(c.key==="Tab"){let f=sF(t);if(!f)return;let u=oF(f);if(!u.length){c.preventDefault();let m=f.querySelector?.('[role="dialog"]')||f;try{m.focus?.()}catch{}return}let d=u[0],p=u[u.length-1],g=document.activeElement;if(!f.contains(g)){c.preventDefault();try{d.focus()}catch{}return}if(c.shiftKey&&g===d){c.preventDefault();try{p.focus()}catch{}}else if(!c.shiftKey&&g===p){c.preventDefault();try{d.focus()}catch{}}return}c.key!=="Escape"||c.defaultPrevented||l[l.length-1]?.dismissOnBackdrop!==!1&&(c.preventDefault(),o())}};window.addEventListener("keydown",s),t.__escHandler=s;let i=c=>{let l=t.state?.stack||[];if(c<0||c>=l.length)return;let f=l[c];t.state.update({stack:l.filter((p,g)=>g!==c)});let u=t["ModalLayer_"+c],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},a=c=>{let l=t.state?.stack||[];if(!l.length)return;let f=c.target?.closest?.('[data-key="Close"]');if(f){for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u],p=d?.node||d?.__ref?.node;if(p&&p.contains(f)){c.preventDefault(),c.stopPropagation(),i(u);return}}return}for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u];if((d?.node||d?.__ref?.node)===c.target){if(l[u]?.dismissOnBackdrop===!1)return;c.preventDefault(),c.stopPropagation(),i(u);return}}};document.addEventListener("click",a,!0),t.__clickDelegate=a},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=sF(t);if(!o)return;let i=oF(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 Uy={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=lt(t)?.id;return e?"modal-title-"+e:null}},width:t=>lt(t)?.width||"H",maxWidth:t=>lt(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>lt(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=>lt(t)?.template!=="confirm"},AlertTemplate:{hide:t=>lt(t)?.template!=="alert"},PromptTemplate:{hide:t=>lt(t)?.template!=="prompt"},CustomTemplate:{hide:t=>lt(t)?.template!=="custom"}}};var zc=(t,e,n)=>lt(t)?.[e]||n,L7=t=>{let e=lt(t)?.icon;return e===null||e===!1},Vy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>zc(t,"title","Are you sure?"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>L7(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>zc(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>zc(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>zc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=lt(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=>zc(t,"confirmTheme","primary"),text:t=>zc(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var jd=(t,e,n)=>lt(t)?.[e]||n,zy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>jd(t,"title","Notice"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>jd(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!jd(t,"message",""),P:{tag:"p",margin:"0",text:t=>jd(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>jd(t,"okText","OK"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var Hc=(t,e,n)=>lt(t)?.[e]||n,Hy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=lt(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=lt(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=>Hc(t,"title","Enter a value"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Hc(t,"message",""),P:{tag:"p",margin:"0",text:t=>Hc(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>Hc(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=lt(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=>Hc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=lt(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=>Hc(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=lt(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 Wy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>lt(t)?.title||"",hide:t=>!lt(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=lt(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=K(()=>{let n=lt(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 Wr)i in s.functions||(s.functions[i]=Wr[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var iF={extends:"Button",theme:"tertiary"};var $A={ModalRoot:jy,ModalLayer:Uy,ConfirmTemplate:Vy,AlertTemplate:zy,PromptTemplate:Hy,CustomTemplate:Wy,"smbls.CancelButton":iF};var GA={};F(GA,{components:()=>HA,functions:()=>KA});var WA={};F(WA,{Dropdown:()=>Zy,DropdownList:()=>Jy,DropdownParent:()=>Qy,DropdownParentFocus:()=>tb,DropdownRoot:()=>Yy,DropdownSiblingFocus:()=>eb,DropdownTrigger:()=>Xy,dropdownComponents:()=>HA});var aF=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),D7=(t,e,n,r)=>{let o=aF(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},I7=(t,e,n,r,o)=>{let s=aF(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 jA=(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))},Ky=(t,e,n)=>Math.max(e,Math.min(n,t)),Kr=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:jA("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=jA("center",t,o),h=Math.min(s.height,g),m=Ky((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=Ky((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=D7(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=I7(i,t,s,r,o)}let c=jA(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=Ky(f,8,d),u=Ky(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},Wc=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 Wo={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},M7=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},UA=t=>t?.getRoot?.()?.DropdownRoot||null,N7=0,$7=()=>`dropdown_${++N7}_${Date.now().toString(36)}`;function qy(t={}){let e=UA(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||M7(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||$7(),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||Wo.placement,trigger:t.trigger||Wo.trigger,offset:t.offset??Wo.offset,minWidth:t.minWidth||Wo.minWidth,maxWidth:t.maxWidth||Wo.maxWidth,maxHeight:t.maxHeight||Wo.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 Gy(t){let e=UA(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function Si(t){let e=UA(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 VA=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},cF=t=>{let e=t.getBoundingClientRect(),n=t.offsetWidth||e.width,r=Math.max(t.offsetHeight||e.height,t.scrollHeight||0);return{width:n,height:r}},F7=`
|
|
88
|
+
)`};var f8={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"}}}},u8={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},d8={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"}}},gM={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...f8,...u8,...d8,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 mM={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var yM={ratio:1.618,subSequence:!0};var bM={SourceSans:[{url:""}]},_M={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 wM={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 SM={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 xM={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var kM={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var pi={version:"0.0.1",color:pM,gradient:hM,theme:gM,typography:mM,spacing:yM,font:bM,fontFamily:_M,timing:xM,icons:wM,media:SM,sizes:kM,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 Uc={};F(Uc,{A:()=>$$,AssetPicture:()=>UM,Audio:()=>HM,Avatar:()=>c2,B:()=>lN,Block:()=>EM,Box:()=>iy,Br:()=>pN,Bridge:()=>SN,Button:()=>j$,ButtonSet:()=>H$,COMPONENTS:()=>xi,Caption:()=>tN,Checkbox:()=>EN,CheckboxHgroup:()=>vN,Circle:()=>FM,CircleButton:()=>V$,Clickable:()=>MM,Data:()=>uN,Dialog:()=>X$,DialogFooter:()=>J$,DialogHeader:()=>Z$,Dropdown:()=>M2,DropdownDisclosure:()=>F2,DropdownList:()=>N2,DropdownParent:()=>$2,DropdownParentFocus:()=>B2,DropdownSiblingFocus:()=>j2,FileIcon:()=>VN,Flex:()=>AM,Focusable:()=>NM,FocusableComponent:()=>$M,Footnote:()=>cN,Form:()=>LM,Grid:()=>CM,Gutter:()=>RM,H1:()=>qM,H2:()=>GM,H3:()=>YM,H4:()=>XM,H5:()=>ZM,H6:()=>JM,Headline:()=>iN,Hgroup:()=>bN,HgroupButton:()=>wN,HgroupRows:()=>_N,Hoverable:()=>IM,Hr:()=>dN,I:()=>fN,Icon:()=>jN,IconButton:()=>W$,IconText:()=>UN,Iframe:()=>DM,Img:()=>PM,Inline:()=>vM,InlineFlex:()=>TM,InlineGrid:()=>OM,Input:()=>xN,Italic:()=>oN,KangorooButton:()=>z$,Li:()=>hN,Link:()=>sA,Notification:()=>U2,NumberInput:()=>kN,Ol:()=>mN,P:()=>QM,Picture:()=>jM,Radio:()=>AN,RadioHgroup:()=>TN,Range:()=>l2,RouteLink:()=>F$,RouterLink:()=>iA,SHAPES:()=>oy,Select:()=>B$,Shape:()=>gv,Span:()=>KM,SquareButton:()=>U$,Strong:()=>eN,Subhead:()=>aN,Svg:()=>VM,Text:()=>WM,Textarea:()=>RN,TextareaWithButton:()=>PN,Theme:()=>BM,Title:()=>sN,Toggle:()=>CN,ToggleHgroup:()=>ON,Tooltip:()=>s2,TooltipHidden:()=>i2,TooltipLayer:()=>mA,TooltipParent:()=>a2,U:()=>nN,Ul:()=>gN,Underline:()=>rN,Video:()=>zM,depth:()=>sy,focusableRingEnabled:()=>Ad,focusableRingToken:()=>pv,focusableRingValue:()=>hi,getSystemGlobalTheme:()=>Td});var lv={};F(lv,{Block:()=>EM,Flex:()=>AM,Grid:()=>CM,Gutter:()=>RM,Inline:()=>vM,InlineFlex:()=>TM,InlineGrid:()=>OM});var EM={display:"block"},vM={display:"inline"},AM={display:"flex"},TM={display:"inline-flex"},CM={display:"grid"},OM={display:"inline-grid"},RM={boxSize:"C1"};var fv={};F(fv,{Img:()=>PM});M();var PM={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=Se(t);return e&&e.src||t.src},srcset:t=>{let e=Se(t);return(e?Zf(e):"")||t.srcset||t.srcSet}}};var uv={};F(uv,{Form:()=>LM});var LM={tag:"form"};var dv={};F(dv,{Iframe:()=>DM});var DM={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var hv={};F(hv,{Clickable:()=>MM,Focusable:()=>NM,FocusableComponent:()=>$M,Hoverable:()=>IM,focusableRingEnabled:()=>Ad,focusableRingToken:()=>pv,focusableRingValue:()=>hi});var p8={appearance:"none",fontFamily:"inherit"},IM={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}}},MM={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function Ad(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function pv(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 hi(t,e,n){let r=pv(t);return r&&r[e]!==void 0?r[e]:n}var NM={border:"none",outline:t=>Ad(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>Ad(t)?hi(t,"outline","solid X currentColor"):"none",outlineOffset:t=>Ad(t)?hi(t,"outlineOffset"):void 0}},$M={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:p8};var bv={};F(bv,{Picture:()=>jM});var yv={};F(yv,{Theme:()=>BM,getSystemGlobalTheme:()=>Td});var mv={};F(mv,{Circle:()=>FM,SHAPES:()=>oy,Shape:()=>gv,default:()=>h8,depth:()=>sy});M();var _n=P(),sy={4:{boxShadow:`rgba(0,0,0,.10) 0 2${_n.unit.default} 4${_n.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${_n.unit.default} 6${_n.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${_n.unit.default} 10${_n.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${_n.unit.default} 16${_n.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${_n.unit.default} 26${_n.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${_n.unit.default} 42${_n.unit.default}`}},Ic=t=>dt(t.shapeDirectionColor)||dt(t.borderColor)||dt(t.backgroundColor)||dt(t.background),ry=t=>{let e=td.transition(t.transition,t);return e&&e.transition},oy={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:Ic(t),transition:ry(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:Ic(t),transition:ry(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:Ic(t),transition:ry(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:ry(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ic(t)} 25%, transparent 25%), linear-gradient(315deg, ${Ic(t)} 25%, transparent 25%)`},"&:after":{background:Ic(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)"}}}},gv={deps:{exec:St,getSpacingBasedOnRatio:Ve,getMediaColor:qt},classlist:{shape:t=>t.deps.exec(oy[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=oy[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}}},FM={round:"100%"},h8=gv;M();var Td=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},BM={deps:{depth:sy},classlist:{depth:t=>!Zt(t.depth)&&t.deps.depth[t.depth]}};var jM={deps:{getSystemGlobalTheme:Td},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Td},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 _v={};F(_v,{AssetPicture:()=>UM});M();var UM={tag:"picture",children:t=>{let e=Se(t);if(e)return Jf(e,t.alt)}};var wv={};F(wv,{Svg:()=>VM});var VM={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 Sv={};F(Sv,{Video:()=>zM});M();var zM={tag:"video",controls:!0,attr:{src:t=>{let e=Se(t);return e&&e.src||t.src}},children:t=>{let e=Se(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 xv={};F(xv,{Audio:()=>HM});M();var HM={tag:"audio",controls:!0,attr:{src:t=>{let e=Se(t);return e&&e.src||t.src}},children:t=>{let e=Se(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 kv={};F(kv,{B:()=>lN,Caption:()=>tN,Data:()=>uN,Footnote:()=>cN,H1:()=>qM,H2:()=>GM,H3:()=>YM,H4:()=>XM,H5:()=>ZM,H6:()=>JM,Headline:()=>iN,I:()=>fN,Italic:()=>oN,P:()=>QM,Span:()=>KM,Strong:()=>eN,Subhead:()=>aN,Text:()=>WM,Title:()=>sN,U:()=>nN,Underline:()=>rN});var WM={},KM={tag:"span"},qM={tag:"h1"},GM={tag:"h2"},YM={tag:"h3"},XM={tag:"h4"},ZM={tag:"h5"},JM={tag:"h6"},QM={tag:"p"},tN={tag:"caption"},eN={tag:"strong",fontWeight:"700"},nN={tag:"u"},rN={tag:"u"},oN={tag:"i"},sN={},iN={tag:"h6",fontSize:"B",fontWeight:500},aN={tag:"span",fontSize:"Z1"},cN={tag:"span",fontSize:"Z"},lN={tag:"b"},fN={tag:"i"},uN={tag:"data"};var Ev={};F(Ev,{Box:()=>iy,Br:()=>pN,Hr:()=>dN,Li:()=>hN,Ol:()=>mN,Ul:()=>gN});var g8=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ne(e,t,{unpack:!1});n.__class=r},iy={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:g8},dN={tag:"hr",margin:"C1 0"},pN={tag:"br"},hN={tag:"li"},gN={tag:"ul",childExtends:{extends:"Li"}},mN={tag:"ol",childExtends:{extends:"Li"}};var vv={};F(vv,{Hgroup:()=>bN,HgroupButton:()=>wN,HgroupRows:()=>_N});var yN=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},bN={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:yN,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:yN,margin:"0",color:"paragraph"}},_N={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},wN={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Av={};F(Av,{Bridge:()=>SN});var SN={tag:"div"};var Tv={};F(Tv,{Input:()=>xN});var xN={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 Cv={};F(Cv,{NumberInput:()=>kN});var kN={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 Ov={};F(Ov,{Checkbox:()=>EN,CheckboxHgroup:()=>vN});var EN={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=>hi(t,"outline","solid X currentColor"),outlineOffset:t=>hi(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"}}},vN={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Rv={};F(Rv,{Radio:()=>AN,RadioHgroup:()=>TN});var AN={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}},TN={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Pv={};F(Pv,{Toggle:()=>CN,ToggleHgroup:()=>ON});var CN={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}},ON={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Lv={};F(Lv,{Textarea:()=>RN,TextareaWithButton:()=>PN});var RN={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"}},PN={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 Mv={};F(Mv,{FileIcon:()=>VN,Icon:()=>jN,IconText:()=>UN});Mt();var LN=new Set,m8=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",DN=(t,e,n)=>{let r=t+":"+e;if(LN.has(r)||(LN.add(r),typeof console>"u"||!console.error))return;let o=n&&n.__ref&&n.__ref.path,s=o&&o.length?` (at <${o.join(".")}>)`:"",i=m8(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)};var y8=new Set;var IN=t=>y8.has(t);var MN=new Set,NN=(t,e)=>{if(!MN.has(t)&&(MN.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.`)}},$N=(t,e)=>{let n=t.find(r=>r&&IN(r));return n?(DN("icon",n,e),!0):!1},FN=new WeakMap,b8=t=>{let e=FN.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},FN.set(t,e)),e},_8=(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},w8=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);mt(t);try{let o=P();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=Gs(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&Ys(s,{document:r}),Object.keys(s).length>0}finally{ht()}},S8=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=b8(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=_8(u,n);return d?w8(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},x8="0 0 24 24",k8=/<(symbol|svg)\b[^>]*>/i,E8={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},Dv=(t,e)=>{let n=t.match(E8[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},BN=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},v8=(t,e)=>{if(typeof t!="string")return;let n=t.match(k8);if(!n)return;let r=(Dv(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),o=r.length===4&&r[2]>0&&r[3]>0?[r[2],r[3]]:void 0,s=BN(Dv(n[0],"width")),i=BN(Dv(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?o||a:a||o;return c?`0 0 ${c[0]} ${c[1]}`:void 0},Iv=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,r=!!(t.spriteId||n&&n.useSvgSprite);return v8(t.call("exec",t.src,t),r)||x8},jN={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 x=t.__ref&&t.__ref.path,E=x&&x.length?` at <${x.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${E} \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:x}=m&&m.utils,T=x(h).split(/([a-z])([A-Z])/g),_=T[1]?T[0]:h.split(".")[0].split(" ")[0],b=y&&y[_];if(b){let w=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=b[w]||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 x=y.value;return h.call("isString",x)&&x.includes("{{")&&(x=h.call("replaceLiteralsWithObjectFields",x)),{name:h.call("isString",x)?x: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 $=m.split(" ");m=$[0]+$.slice(1).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join("")}let x=a(m),E=x.split(/([a-z])([A-Z])/g),T=f(y,n);if(T){Object.assign(t,T);return}let _,b=t[".isActive"];b&&(b.name||b.icon)&&t.isActive&&(_=l(b.name||b.icon,t).value);let w=r&&r[".isActive"];w&&w.icon&&r.isActive&&(_=l(w.icon||w.Icon.name||w.Icon.icon,t).value),t.call("isString",_)&&_.includes("{{")&&(_=t.call("replaceLiteralsWithObjectFields",_));let S;o[_]&&(S=_),o[x]?S=x:o[E[0]+E[1]]?S=E[0]+E[1]:o[E[0]]?S=E[0]:i&&t.warn("Can't find icon:",m,S);let A=o[S],C=r&&r.src||d;!A&&!C&&(S8(n,y,x,t,N=>{if(!(p&&p._disposed)){if(!N)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&$N([_,x,E[0]+E[1],E[0]],t)||NN(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&$N([_,x,E[0]+E[1],E[0]],t)||NN(y,t));let O=s&&S,B=A||C||o.noIcon;if(!(t.spriteId===O&&t.src===B&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=B,typeof t.html=="function"&&t.node){let $=t.context&&t.context.designSystem;$&&mt($);try{let N=t.html(t,t.state,t.context);N!=null&&typeof N!="function"&&(t.node.innerHTML=N)}finally{$&&ht()}}t.node&&t.attr&&t.attr.viewBox===Iv&&t.node.setAttribute("viewBox",Iv(t))}};p=K(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:Iv,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},UN={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},VN={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var aA={};F(aA,{A:()=>$$,Link:()=>sA,RouteLink:()=>F$,RouterLink:()=>iA});var $c={};F($c,{default:()=>dK,getActiveRoute:()=>oA,lastLevel:()=>dy,lastPathname:()=>Nc,loadLazy:()=>Zv,matchRoute:()=>eA,parseQuery:()=>nA,parseRoutePattern:()=>uy,resolveRouterElement:()=>Md,router:()=>Nn,runGuards:()=>L$,saveScrollPosition:()=>Rd});M();var Nv="__smblsRouter",$v=new WeakMap,A8=0,Fv=()=>Date.now().toString(36)+(++A8).toString(36)+Math.random().toString(36).slice(2,6),Bv=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},Kr=t=>{try{return t.state}catch{return}},Od=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},KN=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},qN=t=>{let e=KN(t)?t[Nv]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},jv=(t,e)=>t==null?{[Nv]:e}:KN(t)?{...t,[Nv]:e}:null,Uv=()=>({key:Fv(),index:0,chain:Fv()}),Mc=(t,e)=>{let n=qN(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Od(t),state:e}},GN=(t,e)=>{let n=qN(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Cd=(t,e,n)=>!!n&&Od(t)===n.url&&GN(e,n),Vv=(t,e,n)=>({...t,url:e,state:n}),zv=(t,e)=>{let n=Kr(e),r=Mc(t,n);if(r.key)return r;let o=Uv(),s=jv(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return Vv(o,r.url,s)},T8=(t,e)=>{let n=$v.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},$v.set(t,n)),n||null},YN="smbls.router.scroll",zN=100,C8=1e3,HN=["wheel","touchstart","keydown","pointerdown"],XN=t=>{try{return t.sessionStorage||null}catch{return null}},ZN=t=>{try{let e=JSON.parse(t.getItem(YN)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},JN=(t,e)=>{if(!t.positions){t.positions=new Map;let n=XN(e);if(n)for(let[r,o]of ZN(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},Hv=(t,e,n,r)=>{let o=JN(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>zN&&o.delete(o.keys().next().value);let s=XN(e);if(s)try{let i=new Map(ZN(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem(YN,JSON.stringify(Array.from(i).slice(-zN)))}catch{}},WN=(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)},O8=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:C8,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 HN)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 HN)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 WN(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};WN(t,e,g)},R8=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=Mc(n,Kr(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&&Hv(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},P8=t=>{let{win:e,history:n,track:r}=t,o=Kr(n);if(r.pending&&Cd(e,o,r.pending.to)||r.expect&&Cd(e,o,r.expect.away))return;let s=r.current;if(s&&(s.key?GN(o,s):Cd(e,o,s))){s.url=Od(e),s.state=o;return}r.current=t.restore?zv(e,n):Mc(e,o),r.pending=null,r.seq++},QN=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=Bv(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&T8(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=R8(a,c):P8(a),a},ay=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},Wv=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 ay(o,e),o.seq!==e.seq||!Cd(n,Kr(r),e.to)?!1:(o.current=t.restore&&!e.to.key?zv(n,r):e.to,o.seq++,e.committed=!0,!0)},t$=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&ay(t.track,e)},L8=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},Kv=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;ay(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Cd(r,Kr(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};L8(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=Uv(),l=jv(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?Vv(c,i.url,l):Mc(r,Kr(o)),s.seq++},e$=(t,e)=>{let n=Od(e);t&&n!==null&&(t.__routerAddress=n)},qv=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return Kv(t,!0);r&&!r.settled&&ay(t.track,r);let o=Bv(n),s=e&&e.__routerAddress;if(!(!o||!s||s===Od(n)))try{o.replaceState(Kr(o),null,s)}catch{}},n$=(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&&Hv(i,o,a.key,t.scrollNode);let c=r?Mc(o,Kr(s)):zv(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:Fv(),index:c.index+1,chain:c.chain}:Uv(),f=jv(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?Vv(l,n,f):Mc(o,Kr(s)),i.pending=null,i.expect=null,i.seq++},r$=(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&&JN(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"||O8(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Rd=t=>{let e=Bv(t),n=e&&$v.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Hv(n,t,n.current.key,n.scrollNode)};M();var a$=["components","functions","methods","snippets"],c$=new Set(["pages",...a$]),Gv=new Set(["default","__esModule"]),Ho=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Wt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),cy=new WeakMap,o$=new WeakMap,Yv=new WeakMap,s$=new Set,gi=(t,e=console.warn)=>{s$.has(t)||(s$.add(t),e(t))},l$=t=>Wt(t&&t.lazy),f$=(t,e)=>{let n=t&&t.lazy;return Wt(n)&&Ho(n,e)?n[e]:void 0},Ld=(t,e)=>{let n=f$(t,e);return Wt(n)&&Ho(n,"load")?n.load:n},D8=(t,e)=>{let n=f$(t,e);return Wt(n)&&typeof n.when=="function"?n.when:null},I8=t=>{let e=new Error(`[smbls/router] lazy group "${t}" waits: its \`when\` said false \u2014 nothing was requested`);return e.code="LAZY_WAITING",e},Xv=(t,e)=>{let n=cy.get(t);n||(cy.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();cy.delete(t)}));let r=n.get(e);return r||(r={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},u$=(t,e)=>!l$(e)||!Wt(t)||!Ho(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,fy=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&Yv.has(t),d$=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&Gt("lazyRoutes",e),null),p$=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",M8=(t,e)=>typeof Ld(t,e)!="function"?"error":p$(cy.get(t)?.get(e)),N8=(t,e)=>{let n=o$.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Wt(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Wt(f)?f:null,lazyStatus:M8(c.context,e)}}:(s.state=o,tt()&&gi(`[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 o$.set(t,a),Yv.set(s,a),a},$8=t=>t.__ref&&t.__ref.contentElementKey||"content",Pd=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&fy(n.content)?Yv.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[$8(t)]}},ly=(t,e,n)=>{let r=Pd(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)}},F8=t=>Wt(t)?!Object.keys(t).some(n=>c$.has(n))&&Wt(t.default)?t.default:t:{},B8=t=>{let e={};if(!Wt(t))return e;for(let n of Object.keys(t)){if(Gv.has(n))continue;let r=n.charCodeAt(0)===47,o=r?n:"/"+(n==="index"?"":n);(r||!Ho(e,o))&&(e[o]=t[n])}return e},h$=(t,e,n,r,o)=>{if(!Wt(t))return 0;let s=0;for(let i of Object.keys(t))u$(t[i],r)===e&&(s++,Ho(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Ho(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},i$=(t,e,n)=>{let r=t[e];if(!Wt(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}},j8=t=>{let e=t.__ref&&t.__ref.origin;if(!Wt(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]},U8=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=Pd(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 j8(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");gi(`[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)},V8=(t,e,n,r)=>{let o=t.context,s=F8(n),i=tt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))c$.has(p)||Gv.has(p)||gi(`[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 a$){let g=s[p];if(!Wt(g))continue;let h=Wt(o[p])?o[p]:{},m={};for(let x of Object.keys(g))if(!Gv.has(x)){if(Ho(h,x)){h[x]!==g[x]&&a.push(`${p}.${x}`);continue}m[x]=g[x]}let y=Object.keys(m);if(y.length&&(i$(o,p,m),p==="components"&&y.forEach(x=>c.add(x)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Wt(o.utils))){let x={};for(let E of y)Ho(o.utils,E)||(x[E]=m[E]);Object.keys(x).length&&i$(o,"utils",x)}}l&&wc(o);let f=B8(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Wt(o.pages)&&d.add(o.pages),u&&Wt(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Wt(p.routes)&&d.add(p.routes);for(let p of d)h$(p,e,f,o,a);i&&a.length&&gi(`[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&&U8(u,e,c,r)},g$=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;if(!r||r.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Pd(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))},Dd=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",z8=(t,e,n)=>!!t&&(Dd(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),m$=(t,e)=>{let n=t.context,r=Xv(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=Ld(n,e),s=D8(n,e),i=r.failure;r.status="loading";let a,c=!1,l=!1,f=()=>s?s(t):!0,u=p=>{if(p===!1)throw l=!0,I8(e);return a=o(r.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{c=!0,r.disposed||V8(t,e,p,r)}).then(()=>{r.status="loaded",r.failure=null;let p=[...r.waiting];r.waiting.clear();for(let g of p)g$(g,e)},p=>{if(l){if(r.status="waiting",r.promise=null,r.disposed)throw p;for(let h of[...r.waiting])Pd(h,e)?ly(h,e,"waiting"):r.waiting.delete(h);throw p}let g=!c&&z8(i,a,p);if(r.failure=c?null:{returned:a,error:p},r.status=g?"reload":"error",r.promise=null,r.disposed)throw p;g?gi(`[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.`,h=>console.error(h,p)):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.`,p);for(let h of[...r.waiting])Pd(h,e)?ly(h,e,r.status):r.waiting.delete(h);throw p});d.catch(()=>{}),r.promise=d;for(let p of r.waiting)ly(p,e,"loading");return d},y$=(t,e,n)=>{let r=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return d$(r,e);let o=u$(t,r);if(!o)return null;let s=Xv(r,o);if(Wt(n)&&s.maps.add(n),s.status==="loaded"&&h$(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof Ld(r,o)=="function";return i?m$(e,o):gi(`[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:N8(t,o).definition,group:o,status:i?"loading":"error"}},b$=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof Ld(r,e.group)!="function")return;let s=Xv(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},ly(t,e.group,p$(s)),s.status==="loaded"){let i=()=>g$(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function Zv(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)"));if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return Promise.resolve(d$(n,e));let r=Ld(n,t);return typeof r!="function"?(r===void 0&&l$(n)&&tt()&&gi(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):m$(e,t)}var H8=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),_$=(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},A$=t=>{let e=lr;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},W8=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},K8=t=>{let e=Qm;return typeof e!="function"||!e(t)?null:Wr(t)},tA=Object.freeze({holdTail:!0}),q8=t=>typeof t.holdPage=="function"&&typeof Ge=="function",T$=(t,e)=>{let n=()=>Ge(t);Dd(e)?e.then(n,n):n()},G8=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}T$(e,n)},C$=Object.freeze({holdTail:!0,deferAttach:!0}),Y8=(t,e,n,r)=>{let o=t.firstView;if(!o||typeof Ge!="function"||typeof Bo!="function")return null;if(!o.committed)return tA;if(!A$(r))return null;let s=e.node;return!e[n]&&s&&s.isConnected?C$:(r.mountYield=void 0,null)},X8=async()=>{await Re();let t=Vo;if(typeof t=="function")for(;!t();)await Re()},Z8=(t,e,n,r)=>{if(e===tA){t.firstView.page=n,T$(n,t.firstView.commit);return}e===C$&&X8().then(()=>{n.__ref&&r()&&Bo(n),Ge(n)})},O$=/^:(.+)/,R$=/^\*$/,w$=new Map,uy=t=>{let e=w$.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(O$);a?r.push({index:i,name:a[1]}):R$.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return w$.set(t,s),s},eA=(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=uy(l),u=J8(o,f);u>a&&(a=u,i=l,c=P$(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},J8=(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(O$.test(n[i]))o+=1;else if(R$.test(n[i]))o+=.5;else return-1;return o},P$=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},nA=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},Qv=t=>!!t&&typeof t=="object"&&typeof t.route=="string",S$=t=>t===!1||typeof t=="string"||Qv(t)?t:void 0,Q8=10,rA=(t,e,n=0)=>{for(let r=n;r<t.length;r++){let o=t[r](e);if(Dd(o))return Promise.resolve(o).then(i=>{let a=S$(i);return a===void 0?rA(t,e,r+1):a});let s=S$(o);if(s!==void 0)return s}return!0},L$=async(t,e)=>!t||!t.length?!0:rA(t,e),x$=(t,e,n,r)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let o=n[t];if(!o)return null;let s=e.replace(/^\//,"").split("/").filter(Boolean).slice(r||0);return{route:t,content:o,params:t==="/*"?{}:P$(s,uy(t))}},Md=(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},tK=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=Md(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},oA=(t=0,e)=>{e||(e=typeof R<"u"?R.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},Nc,dy=0,k$=0,Jv=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,eK=t=>t&&(t.scrollingElement||t.documentElement)||null,D$={level:dy,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},I$=(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())},nK=(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"||!I$(s,i))return null;let c=typeof o=="number"&&o>=0?o:D$.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=_r("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},Id=new WeakMap,rK=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,oK=(t,e,n,r)=>{let o=rK(t.transition);return!o||!e||fy(e.content)||!n||typeof n.startViewTransition!="function"||Id.get(n)>0||!I$(n,r)?null:o},sK=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},iK=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},aK=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},cK=100,lK=1e3,E$=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,v$=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},fK=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},uK=(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=v$(o),Id.set(r,(Id.get(r)||0)+1);try{return i()}finally{Id.set(r,Id.get(r)-1),u.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=u.previousName)};l&&c&&(c.viewTransitionName=l);let g=iK(n),h=null;try{h=g.length&&aK(o)?r.startViewTransition({update:d,types:g}):r.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,fK(h.ready);let m=!1,y=null,x=()=>{m=!0,y!==null&&(o.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},E=()=>{if(!(m||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(x,x):x();let T=E$(n.swapBudget,cK),_=E$(n.timeout,lK);_!==1/0&&h.ready&&typeof h.ready.then=="function"&&o&&typeof o.setTimeout=="function"&&h.ready.then(()=>{m||(y=o.setTimeout(()=>{y=null,E()},_))},()=>{});let b=h.updateCallbackDone;return!b||typeof b.then!="function"?Promise.resolve():(T!==1/0&&b.then(()=>{u.swapStarted!==void 0&&v$(o)-u.swapStarted>T&&E()},()=>{}),b)},Nn=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||R,i=o?.context?.document||kt,a={...D$,...o.context.routerOptions,...r};dy=a.lastLevel,o=tK(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=Jv(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=nA(h),x=o.node,E=m&&m!==s.location.hash.slice(1),T=g!==Nc,_=Nc,b=++k$;Nc=g;let w=()=>{k$===b&&(Nc=_)},S=l.__routerRendered,A,C,O,B;if(a.useParamsMatching){let q=eA(g,o.routes,a.level);A=q.key,C=q.routePath,O=q.content,B=q.params}else{A=oA(a.level,g),C=A;let q=o.routes;O=q?q[A||"/"]||q["/*"]:null,B={}}if(r&&r.route!=null){let q=x$(r.route,g,o.routes,a.level);!q&&!a.silent&&console.warn("[smbls/router] route",r.route,"chosen for",g,"is not one of the routes:",Object.keys(o.routes||{})),A=q?q.route:r.route,O=q?q.content:null,B=q?q.params:{}}a.scrollNode===void 0&&(a.scrollNode=eK(i));let $=a.scrollToNode?x:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let N=QN(s,a,$);if(N&&N.pop&&N.pop.echo)return;if(!O){w(),a.onNotFound?a.onNotFound({pathname:g,route:A,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"&&qv(N,l,s));return}let G=r&&r.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let q={pathname:g,route:A,params:B,query:y,hash:m,element:o,state:n},W=rA(a.guards,q);if(Dd(W)&&(W=await W,l.__routerStartSeq!==G)){w(),t$(N);return}if(W===!1){w(),Kv(N);return}let Rt=jt=>{let Tt=new d(u+Jv(jt));return Tt.pathname===g&&Tt.search===h&&Tt.hash===m},yt=typeof W=="string"?W:Qv(W)&&typeof W.path=="string"&&!Rt(W.path)?W.path:null;if(Qv(W)&&yt===null){let jt=x$(W.route,g,o.routes,a.level);if(!jt){a.silent||console.warn("[smbls/router] a guard chose route",W.route,"for",g,"\u2014 not one of the routes:",Object.keys(o.routes||{})),w(),a.onNotFound?a.onNotFound({pathname:g,route:W.route,element:o}):a.event&&a.event.type==="popstate"&&qv(N,l,s);return}A=jt.route,O=jt.content,B=jt.params,r={...r,route:jt.route}}else if(yt!==null){let jt=!!(N&&N.pop);if(jt&&!Wv(N))return;let Tt=[...r&&r.__redirectChain||[],g],Pt=new d(u+Jv(yt)).pathname,Ze=Tt.includes(Pt)||Tt.length>=Q8;Ze&&!a.silent&&console.warn("[smbls/router] redirect loop:",[...Tt,Pt].join(" \u2192 "),"\u2014 rendering",Pt,"without its guards");let It={...r,__redirectChain:Tt};return Ze&&(It.guards=[]),typeof W=="string"?delete It.route:It.route=W.route,jt&&(It.event=void 0),delete It.render,(jt||a.initialRender)&&(It.pushState=!0,It.replace=!0),Nn(yt,e,n,It)}}let Y=c?y$(O,o,o.routes):null;if(Y&&Y.rematch)return Nn(t,o,n,r);Y&&(O=Y.content,a.lazy={group:Y.group,status:Y.status});let nt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,ot=!S||S.content!==O||S.route!==A,st=!!S&&S.content===O,Z=!(!c||a.keepSamePage===!0&&st&&a.force!==!0)&&(T||ot||a.force===!0);if(Z&&S&&!fy(S.content)){let q=nK(o,l,o[f],{from:S.route,to:A,pathname:g,params:B,query:y,hash:m},a.exitTimeout,i,s);if(q&&(await q,l.__routerNavSeq!==nt||(l.__routeExit&&l.__routeExit.wait===q&&(l.__routeExit=null),typeof o?.set!="function")))return}else M$(l);let Q=Z?oK(a,S,i,s):null;if(Z&&sK(l),a.pushState){let q=g+(h||"")+(m||"");n$(N,n,q,a.replace,s)}else N&&Wv(N);e$(l,s);let it=H8(o,a,f),rt=()=>{let q=Z?Y8(a,o,f,it):null,W=(!!S||A$(it))&&!!$&&$.scrollTop===0&&!$.scrollLeft,Rt=!S&&!!a.initialRender&&!!$&&W8(o)&&(Number($.scrollTop)>0||Number($.scrollLeft)>0),jt=T||!E?{route:A,routePath:C,hash:m,params:B,query:y,debugging:!1}:{params:B,query:y};a.updateState&&o.state.update(jt,{preventContentUpdate:!0});let Tt=null;if(Z){f&&a.removeOldElement&&o[f].remove();let Ze=o.__ref?.origin?.content,It={};if(Ze)for(let X in Ze){let at=Ze[X];X==="__ref"||X==="props"||X==="node"||X==="parent"||X==="key"||(typeof at=="string"||typeof at=="number"||typeof at=="boolean"||typeof at=="object"&&at!==null&&!at.node&&!at.__ref)&&(It[X]=at)}let Me={...It,...typeof O=="object"?O:{extends:O}};a.useFragment&&(Me.tag="fragment");let H={content:O,route:A},Ct=l.__routerRendered;try{if(typeof o?.set!="function")return;l.__routerRendered=H;let X=!q&&q8(a),at=o.set(Me,it,q||(X?tA:void 0));at&&q?Z8(a,q,at,()=>l.__routerNavSeq===nt):at&&X&&G8(a,at),Tt=K8(o[f])}catch(X){l.__routerRendered===H&&(l.__routerRendered=Ct),console.error("[smbls/router] failed to render route content",g,X)}}else st&&S.route!==A&&l.__routerRendered===S&&(l.__routerRendered={content:O,route:A});let Pt=()=>{let Ze=!T&&E,It=!c||r$(N,$,a,i);if(!It&&!Rt&&a.scrollToTop&&!Ze&&!W&&$?.scrollTo&&$.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&!Rt&&a.scrollToNode&&O[f]?.node?.scrollTo&&O[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!It&&m){let Me=i.getElementById(m.slice(1));if(Me&&$?.scrollTo){let H=s.getComputedStyle?s.getComputedStyle(Me):null,Ct=H&&parseFloat(H.scrollMarginTop)||0,X=Me.getBoundingClientRect().top+$.scrollTop-Ct-(a.scrollToOffset||0);$.scrollTo({...a.scrollToOptions||{},top:X,left:0})}}Y&&b$(o,Y,Me=>Nn(t,o,n,{...r,...Me})),_r("routeChanged",o,a)};if(Tt)return Tt.then(()=>{_$(it,o,a),l.__routerNavSeq===nt&&Pt()});_$(it,o,a),Pt()},gt=Q?uK(o,l,Q,i,s,nt,rt):null;if(gt){await gt;return}return rt()},dK=Nn;var pK=(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")},hK=(t,e)=>{let n=t.slice(1),r=e.node&&e.node.ownerDocument,o=n&&r?r.getElementById(n):null;o&&(typeof o.scrollIntoView=="function"&&o.scrollIntoView(),typeof o.focus=="function"&&(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus()))},N$=(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||pK(t,e))return;if(a.startsWith("#")){t.preventDefault(),hK(a,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||Nn)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},sA={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Do(t,t.href)||Do(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:N$},$$={extends:"Link"},iA={onClick:N$},F$={extends:[sA,iA]};var cA={};F(cA,{Select:()=>B$});var B$={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 lA={};F(lA,{Button:()=>j$,ButtonSet:()=>H$,CircleButton:()=>V$,IconButton:()=>W$,KangorooButton:()=>z$,SquareButton:()=>U$});var j$={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)},U$={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"},V$={extends:"SquareButton",round:"C"},z$={extends:"Button",childExtends:"IconText"},H$={tag:"nav",display:"flex",childExtends:"SquareButton"},W$={extends:["SquareButton","ClickableItem"],round:"Z"};var uA={};F(uA,{Dialog:()=>X$,DialogFooter:()=>J$,DialogHeader:()=>Z$});Mt();var gK={ok:1,cancel:1},mi=new WeakMap,mK=0,wn=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},fA=t=>{let e=mi.get(t);return e||(e={id:"smbls-dialog-"+ ++mK,want:void 0,waiting:!1},mi.set(t,e)),e},Nd=(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,Fc=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},K$=["methods","functions","utils"],yK=t=>{for(let e=0;e<K$.length;e++){let n=t[K$[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},py=(t,e,n)=>{let r=t.context;if(!r||!yK(r))return n;let o=t.call("polyglot",e);return typeof o=="string"&&o&&o!==e?o:n},q$=t=>{let e=mi.get(t),n=wn(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},G$=t=>{queueMicrotask(()=>{if(q$(t))return;let e=mi.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,q$(t)}))})},bK=t=>{let e=t.__ref;if(!e||!wn(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||Nd(t,"data-dialog"))return;let n=K(()=>{let r=t.modal,o=wn(t);if(!o)return;if(r==null){Fc(o,"data-dialog",null);return}Fc(o,"data-dialog","modal");let s=fA(t),i=!!r;s.want!==i&&(s.want=i,G$(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},_K=t=>t.dialogTitle===!0,wK=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},Y$=t=>{let e=wK(t);return!e||!e.locked},SK=t=>t.key==="Escape"||t.key==="Esc",xK=t=>{let e=t.__ref,n=wn(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let r=fA(t),o=!Nd(t,"closedby","closedBy"),s=K(()=>{let l=!!t.locked,f=wn(t);f&&o&&Fc(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=wn(t);f&&f.open&&f.isConnected&&SK(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)}},kK=t=>{let e=wn(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||Nd(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(_K):null,r=wn(n);if(!r)return;let o=r.getAttribute("id");if(!o){if(Nd(n,"id"))return;o=fA(t).id+"-title",Fc(r,"id",o)}Fc(e,"aria-labelledby",o)},EK=(t,e)=>{let n=wn(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(gK[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)},vK=t=>{let e=mi.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=wn(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},AK=t=>{let e=mi.get(t),n=wn(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},TK=t=>{let e=mi.get(t);e&&e.want&&G$(t)},CK=t=>{let e=wn(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||Nd(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&Fc(e,"data-dialog","modal")},X$={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>CK(t)},onComplete:{always:!0,handler:t=>{bK(t),xK(t),kK(t)}},onRender:{always:!0,handler:t=>TK(t)},onClick:(t,e)=>EK(t,e),onBeforeRemove:{always:!0,handler:t=>vK(t)},onRemove:{always:!0,handler:t=>AK(t)}},Z$={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>py(t,"dialog.title","Title")},SquareButton:{if:Y$,icon:"x",theme:"transparent",aria:{label:t=>py(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},J$={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:Y$,text:t=>py(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>py(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var yA={};F(yA,{Tooltip:()=>s2,TooltipHidden:()=>i2,TooltipLayer:()=>mA,TooltipParent:()=>a2});M();var OK='[data-tooltip]:not([data-tooltip=""])',Q$={top:1,bottom:1,left:1,right:1},dA={top:"bottom",bottom:"top",left:"right",right:"left"},yi=6,t2=new WeakMap,RK=0,Pe=t=>{let e=t2.get(t);return e||(e={id:"smbls-tooltip-"+ ++RK,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},t2.set(t,e)),e},pA=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},PK=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},LK=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},e2=(t,e)=>{let n=PK(t);if(!e||!n)return null;let r;try{r=e.closest(OK)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(LK(o))return null;return r},DK=(t,e)=>!!(e&&t.node&&t.node.contains(e)),IK=t=>{try{return t.matches(":focus-visible")}catch{return!0}},n2=(t,e)=>typeof t=="number"&&t>=0?t:e,yy=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},hA=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),MK=(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(" "))},gA=(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")},NK=(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)+yi;s[n]<i(n)&&s[dA[n]]>=i(dA[n])&&(n=dA[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+yi:t.top-e.height-yi):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+yi:t.left-e.width-yi);let l=(f,u)=>Math.max(yi,Math.min(u-yi,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},$K=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}},FK=t=>(t.title||"")+(t.description||""),gy=(t,e=0)=>{let r=Pe(t).shown;if(!r||!hA(t))return;if(!r.isConnected){my(t);return}let o=t.node,s=t.state;if(o.textContent!==FK(s)){e<3&&setTimeout(()=>gy(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=$K(o),u=r.getAttribute("data-tooltip-placement"),d=Q$[u]?u:Q$[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=NK(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})},BK=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},r2=(t,e)=>{let n=Pe(t);yy(n),!(!hA(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&gA(n.shown,n.id),n.shown=e,MK(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),BK(()=>gy(t)))};function my(t){let e=Pe(t);yy(e),e.shown&&gA(e.shown,e.id),e.shown=null,hA(t)&&t.state.open&&t.state.update({open:!1})}var hy=(t,e)=>{let n=Pe(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){yy(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){my(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,my(t)},n2(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){r2(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,r2(t,r)},n2(t.tooltipDelay,250))},o2=t=>{let e=Pe(t);e.shown&&(e.dismissed=e.shown,my(t))},mA={role:"tooltip",id:t=>Pe(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=Pe(e),r=pA(t.target),o=DK(e,r)?n.shown:e2(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,hy(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Pe(e);n.hover&&(n.hover=null,hy(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Pe(e),r=pA(t.target);n.shown&&r&&n.shown.contains(r)&&o2(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Pe(e),r=pA(t.target),o=r&&IK(r)?e2(e,r):null;o!==n.focus&&(n.focus=o,hy(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Pe(e);n.focus&&(n.focus=null,hy(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&o2(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Pe(e).shown&&gy(e)}},onWindowResize:(t,e)=>{Pe(e).shown&&gy(e)},onBeforeRemove:t=>{let e=Pe(t);yy(e),e.shown&&gA(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var s2={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=>Ut(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)}},i2={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)}},a2={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 bA={};F(bA,{Avatar:()=>c2});var jK=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)},c2={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=jK(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 _A={};F(_A,{Range:()=>l2});var l2={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},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:Na("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Na("#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 OA={};F(OA,{Dropdown:()=>M2,DropdownDisclosure:()=>F2,DropdownList:()=>N2,DropdownParent:()=>$2,DropdownParentFocus:()=>B2,DropdownSiblingFocus:()=>j2});Mt();var ky="hover",p2="focus",$d="sibling",qr="disclosure",f2={menu:1,listbox:1,tree:1,grid:1,dialog:1},UK={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},VK={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},zK='button, a[href], [role^="menuitem"], [role="option"]',HK={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},_y=new WeakMap,wy=new WeakMap,Sy=new WeakMap,SA=new WeakMap,h2=new WeakSet,WK=0,wt=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},Bc=(t,e)=>{let n=wt(t);return n?n.getAttribute(e):null},Dt=(t,e)=>{let n=wt(t);return!!n&&!!e&&(n===e||n.contains(e))},wA=t=>{let e=wt(t);return!!e&&e.hasAttribute("dropdown")},xA=t=>{let e=wt(t);return!!e&&e.tagName==="BUTTON"},by=t=>xA(t)||Bc(t,"role")==="button",u2=t=>{let e=wt(t);return!!e&&UK[e.tagName]===1&&!e.isContentEditable},g2=t=>{let e=wt(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},Fd=t=>{let e=Bc(t,"role");return!!e&&e.indexOf("menuitem")===0&&g2(t)},KK=t=>{let e=wt(t);if(!e||!g2(t))return!1;if(VK[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},bi=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],Le=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,kA=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},m2={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},y2=(t,e)=>{if(t[e]!==void 0)return!0;let n=m2[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},qK=(t,e)=>{let n=m2[e],r=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!r&&typeof r=="object"&&typeof r[e]=="function"},ur=(t,e,n)=>!e.hasAttribute(n)&&!y2(t,n),Wo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},GK=(t,e)=>{let n=wt(t);if(n)for(let r in e)Wo(n,r,e[r])},xy=t=>{let e=wt(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},YK=t=>{let e=_y.get(t);return e||(e={id:"smbls-dropdown-"+ ++WK,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},_y.set(t,e)),e},d2=(t,e)=>!!e&&!!wt(e)&&!!t&&t[e.key]===e,XK=(t,e)=>{let n=null,r=null;if(e===$d){let s=t.parent?bi(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(wA(s[i])){n=s[i];break}return(by(t)||u2(t))&&(r=t),{panel:n,trigger:r}}let o=bi(t);for(let s=0;s<o.length;s++)if(wA(o[s])){n=o[s];break}if(by(t))return{panel:n,trigger:t};for(let s=0;s<o.length;s++){let i=o[s];if(!(!wt(i)||i.key==="Input_trigger"||wA(i))){(by(i)||u2(i))&&(r=i);break}}return{panel:n,trigger:r}},ZK=t=>{let e=Bc(t,"role");if(e&&f2[e]===1)return{el:t,role:e};let n=bi(t);for(let r=0;r<n.length;r++){let o=Bc(n[r],"role");if(o&&f2[o]===1)return{el:n[r],role:o}}return null},Sn=t=>{let e=Le(t);if(!e||!wt(t))return null;let n=YK(t);if(n.trigger){let p=e===$d?t.parent:t;if((n.trigger===t||d2(t,n.trigger))&&d2(p,n.panel))return n}let{panel:r,trigger:o}=XK(t,e);if(!r||!o)return n.trigger=n.panel=n.popup=null,null;n.trigger=o,n.panel=r;let s=e===qr?null:ZK(r);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=wt(o),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&ur(o,i,"id")&&(a.id=c=n.id+"-trigger"),by(o)||(ur(o,i,"role")&&(a.role="button"),ur(o,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&ur(o,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=wt(r),f=l.getAttribute("id");if(!f&&ur(r,l,"id")&&(f=n.id+"-panel",Wo(l,"id",f)),f&&ur(o,i,"aria-controls")&&(a["aria-controls"]=f),n.owns=ur(o,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=Ey(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),GK(o,a),n.popupRole==="menu"&&c){let p=wt(n.popup);ur(n.popup,p,"aria-label")&&ur(n.popup,p,"aria-labelledby")&&Wo(p,"aria-labelledby",c)}o!==t&&e===p2&&Bc(t,"tabindex")==="0"&&!qK(t,"tabindex")&&Wo(wt(t),"tabindex","-1");let u=kA(t),d=wt(u);return d&&!d.hasAttribute("tabindex")&&(y2(u,"tabindex")||Wo(d,"tabindex","-1"),ur(u,d,"aria-hidden")&&Wo(d,"aria-hidden","true")),_i(t,n),n},b2=t=>{let e=wt(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},_2=t=>Dt(t,b2(t)),Ey=(t,e,n)=>{if(e.open!==null)return e.open;let r=Le(t);return n||r===ky||r===qr?!1:_2(t)},_i=(t,e,n)=>{let r=e.open===null?null:String(e.open);if(e.written.open!==r){e.written.open=r;let s=wt(t);s&&Wo(s,"data-dropdown-open",r)}if(!e.owns)return;let o=Ey(t,e,n)?"true":"false";if(e.written.expanded!==o){e.written.expanded=o;let s=wt(e.trigger);s&&Wo(s,"aria-expanded",o)}},Si=t=>{let e=wy.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},wy.set(t,e)),e},w2=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&Sy.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let r=Sy.get(e);r&&r.set(!0)},S2=(t,e)=>{let n=Si(t);n.chosen=!0,w2(n,e)},x2=t=>{let e=Si(t);if(e.settling=!1,e.chosen)return;let n=bi(t);for(let r=0;r<n.length;r++)if(Fd(n[r])){w2(e,n[r]);return}},k2=(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},E2=(t,e)=>{let n=wt(t);if(!n)return;let r=n.ownerDocument.activeElement,o=xy(t);!o&&e&&n.ownerDocument.activeElement===r&&k2(n,wt(e))&&(o=xy(t));let s=t.parent;o&&s&&wy.has(s)&&S2(s,t)},JK=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?Fd:KK)},QK=(t,e,n)=>{if(n==="trigger"){let s=b2(t);(!Dt(t,s)&&!Dt(e.panel,s)||Dt(kA(t),s))&&xy(e.trigger);return}let r=JK(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++)Bc(r[s],"aria-checked")==="true"&&(o=r[s]);E2(o||r[0],e.panel)},EA=(t,e,n)=>{let r=wt(t),o=r&&r.ownerDocument;n&&!e.outside&&o?(e.outside=s=>{if(!wt(t)||!wt(t).isConnected){EA(t,e,!1);return}Dt(t,s.target)||Dt(e.panel,s.target)||he(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)},v2=(t,e)=>{let n=wt(t),r=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!r||typeof r.Event!="function")return;let o=new r.Event("toggle");Object.defineProperty(o,"newState",{value:e?"open":"closed"}),Object.defineProperty(o,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(o)},jc=(t,e,n)=>{let r=e.open===!0;if(e.open=!0,_i(t,e),Le(t)===qr){EA(t,e,!0);let o=wt(e.panel);o&&k2(o,o),r||v2(t,!0)}n&&QK(t,e,n)},he=(t,e,n)=>{let r=e.open===!0;e.open=!1,_i(t,e),e.outside&&EA(t,e,!1),n&&xy(e.trigger),r&&Le(t)===qr&&v2(t,!1)},t7=t=>{let e=t.__ref;if(!e||Le(t)!==qr||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=K(()=>{let r=t.open;r!=null&&es(()=>{let o=Sn(t);!o||!!r==(o.open===!0)||(r?jc(t,o,null):he(t,o,_2(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},vy=(t,e,n)=>e.trigger===t?!Dt(e.panel,n):Dt(e.trigger,n)?!0:Dt(kA(t),n),vA=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(zK):null;return!!n&&Dt(t,n)},A2=(t,e,n)=>{let r=t.key;r==="Escape"||r==="Esc"?(t.preventDefault(),he(e,n,!0)):r==="Tab"&&n.popupRole==="menu"&&Dt(n.popup,t.target)&&he(e,n,!1)},Ay=t=>{Le(t)===$d&&t.parent&&h2.add(t.parent),Sn(t),t7(t)},Ty=(t,e)=>{let n=Sn(e);n&&(n.pressedOpen=Ey(e,n))},e7=(t,e)=>{let n=_y.get(e);!n||!n.trigger||n.open!==!1||Le(e)!==ky||(n.open=null,_i(e,n))},Cy=(t,e)=>{if(Le(e)===qr){r7(t,e);return}if(t.defaultPrevented)return;let n=Sn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){if(Le(e)!==ky||!vA(n.panel,r))return;(n.open===!0||t.detail===0)&&he(e,n,!0);return}if(!vy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?he(e,n,!0):jc(e,n,n.popupRole==="menu"?"first":"trigger")},Oy=(t,e)=>{if(t.defaultPrevented)return;if(Le(e)===qr){o7(t,e);return}let n=Sn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){A2(t,e,n);return}if(!vy(e,n,r))return;let o=t.key;if(o==="ArrowDown"||o==="Down"||o==="ArrowUp"||o==="Up")t.preventDefault(),jc(e,n,o==="ArrowUp"||o==="Up"?"last":"first");else if(o==="Escape"||o==="Esc"){if(!Ey(e,n))return;t.preventDefault(),he(e,n,!1)}else(o==="Enter"||o===" "||o==="Spacebar")&&!xA(n.trigger)&&(t.preventDefault(),n.open===!0?he(e,n,!0):jc(e,n,n.popupRole==="menu"?"first":"trigger"))},n7=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),r7=(t,e)=>{let n=Sn(e);if(!n)return;let r=t.target;if(Dt(n.panel,r)){n.open===!0&&!n7(t)&&e.keepOpen!==!0&&vA(n.panel,r)&&he(e,n,!0);return}if(t.defaultPrevented||!vy(e,n,r))return;let o=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,o?he(e,n,!0):jc(e,n,"trigger")},o7=(t,e)=>{let n=Sn(e);if(!n)return;let r=t.key;if(r==="Escape"||r==="Esc"){if(n.open!==!0)return;t.preventDefault(),he(e,n,!0);return}(r==="Enter"||r===" "||r==="Spacebar")&&!xA(n.trigger)&&!Dt(n.panel,t.target)&&vy(e,n,t.target)&&(t.preventDefault(),n.open===!0?he(e,n,!0):jc(e,n,"trigger"))},AA=(t,e)=>{let n=Sn(e);n&&(n.open===null&&Dt(n.panel,t.target)&&(n.open=!0),_i(e,n))},Bd=(t,e)=>{let n=_y.get(e);if(!n||!n.trigger)return;let r=t.relatedTarget;if(Le(e)===qr){n.open===!0&&r&&!Dt(e,r)&&!Dt(n.panel,r)&&he(e,n,!1);return}if(r&&(Dt(e,r)||Dt(n.panel,r))){n.open===null&&Dt(n.panel,r)&&(n.open=!0,_i(e,n));return}n.open=null,_i(e,n,!0)},T2=t=>{let e=t.parent;if(!e||!h2.has(e))return null;let n=bi(e);for(let r=n.indexOf(t)-1;r>=0&&n[r];r--)if(Le(n[r])===$d)return n[r];return null},TA=t=>{let e=T2(t),n=e?Sn(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},C2=t=>{let e=T2(t);e&&Sn(e)},O2=(t,e)=>{if(t.defaultPrevented)return;let n=TA(e);n&&A2(t,n.ctrl,n.rec)},R2=(t,e)=>{if(t.defaultPrevented||!vA(e,t.target))return;let n=TA(e);n&&he(n.ctrl,n.rec,!0)},P2=(t,e)=>{let n=TA(e);n&&Bd(t,n.ctrl)},s7=(t,e)=>{let n=e.parent,r=Le(n)?Sn(n):null;if(r&&r.panel===e){he(n,r,!0);return}let o=wt(e),s=o&&o.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},L2=(t,e)=>{if(Le(e.parent)&&Sn(e.parent))return;let n=wt(e);n&&n===n.ownerDocument.activeElement&&n.blur()},i7=(t,e)=>{if(t.defaultPrevented)return;let n=HK[t.key];if(!n)return;let r=typeof e.lookdownAll=="function"?e.lookdownAll(Fd):[];if(!r.length)return;let o=-1;for(let i=0;i<r.length&&o===-1;i++)Dt(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(),E2(r[s])},a7=(t,e)=>{let n=bi(e);for(let r=0;r<n.length;r++)if(Dt(n[r],t.target)){Fd(n[r])&&S2(e,n[r]);return}},c7=t=>{let e=t.parent;if(!e)return"0";let n=Si(e),r=Sy.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(()=>x2(e))),r=vn(o),Sy.set(t,r)}return r.get()?"0":"-1"},l7=t=>{C2(t);let e=Si(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&Fd(e.stopItem))&&x2(t)},f7=t=>{let e=SA.get(t),n=!e;n&&(e={tick:vn(0),seen:0,checked:!1},SA.set(t,e));let r=e.tick.get();return r===e.seen&&(e.checked=!!es(()=>t.isActive)),e.seen=r,n&&t.parent&&d7(t.parent),e.checked?"true":"false"},u7=(t,e)=>{if(e.checkRows.get(),!t.node){I2(t);return}let n=bi(t);for(let r=0;r<n.length;r++){let o=SA.get(n[r]);if(!o)continue;let s=!!n[r].isActive;s!==o.checked&&(o.checked=s,o.tick.set(o.tick.peek()+1))}},D2=t=>{let e=Si(t);e.checks||(e.checkRows||(e.checkRows=vn(0)),e.checks=K(()=>u7(t,e),{label:"DropdownList.checks"}))},I2=t=>{let e=wy.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},d7=t=>{let e=Si(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||D2(t)},p7=t=>{Si(t).owned=!0},wi={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},CA={opacity:0,visibility:"hidden"},M2={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:C2},onKeydown:O2,onClick:R2,onFocusout:P2},N2={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)=>{i7(t,e),O2(t,e)},onInit:{always:!0,handler:p7},onComplete:{always:!0,handler:l7},onRender:{always:!0,handler:D2},onBeforeRemove:{always:!0,handler:I2},onFocusin:a7,onClick:R2,onFocusout:P2,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>c7(t),aria:{checked:t=>f7(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"}}},$2={position:"relative",zIndex:999,dropdownMode:ky,":hover":{zIndex:1e3,"& [dropdown]":{...wi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...wi}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...CA}},onComplete:{always:!0,handler:Ay},onPointerdown:Ty,onPointerenter:e7,onClick:Cy,onKeydown:Oy,onFocusin:AA,onFocusout:Bd},F2={position:"relative",dropdownMode:qr,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...wi}},onComplete:{always:!0,handler:Ay},onPointerdown:Ty,onClick:Cy,onKeydown:Oy,onFocusout:Bd},B2={position:"relative",tabindex:"0",dropdownMode:p2,":focus-within":{zIndex:1e3,"& [dropdown]":{...wi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...wi}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...CA}},onComplete:{always:!0,handler:Ay},onPointerdown:Ty,onClick:Cy,onKeydown:Oy,onFocusin:AA,onFocusout:Bd,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>L2(t,e)},Dropdown:{onClick:(t,e)=>s7(t,e)}},j2={position:"relative",tabindex:"0",dropdownMode:$d,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...wi}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...wi}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...CA}},onComplete:{always:!0,handler:Ay},onPointerdown:Ty,onClick:Cy,onKeydown:Oy,onFocusin:AA,onFocusout:Bd,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>L2(t,e)}};var RA={};F(RA,{Notification:()=>U2});var U2={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 xi=Object.assign({},lv,fv,uv,dv,hv,bv,_v,wv,mv,Sv,xv,yv,kv,Ev,vv,Av,Tv,Cv,Ov,Rv,Pv,Lv,Mv,aA,cA,lA,uA,yA,bA,_A,OA,RA);function Ry(t){if(t==null)return 0;if(typeof t!="object")return V2(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^Ry(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^V2(n[r]))*16777619,e=(e^Ry(t[n[r]]))*16777619;return e>>>0}function V2(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function Py(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(!Py(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)||!Py(t[s],e[s]))return!1}return!0}function PA(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=PA(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 LA(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])?LA(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 Vc(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function jd(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ko(e)}function z2(t){return t.split(`
|
|
89
|
+
`).map(Ko).join(`
|
|
90
|
+
`)}var H2={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 W2(t,e){let n=H2[t]||Ko(t),r=jd(e),o=`_${n}-${r}`,s=Vc(t),i=y7[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
|
|
91
|
+
${c}`}var y7={"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"},b7="@media (hover: hover)",_7=/(?:^|[^\\]):hover(?![\w-])/,K2=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function q2(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||K2(i))continue;let a=H2[s]||Ko(s),c=jd(i),l=`_${a}-${c}`,f=Vc(s);n.push(l),r.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+r.join(`
|
|
92
|
+
`)}function G2(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&&(K2(u)||(i+=`${Vc(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&&_7.test(c)&&(a=`${b7}{${a}}`),`${o}
|
|
93
|
+
${a}`}var DA=null;function Dy(t){DA=t}var $n={structuralHash:Ry,deepEqual:Py,mergeStructural:PA,overwriteDeep:LA,shortHash:Ko,toKebab:Vc,sanitizeValue:jd,batchShortHash:z2,atomicCssClass:W2,batchAtomicCss:q2,compoundCssClass:G2},Y2=!1,Ly=null;function X2(t){return Ly||(Ly=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&($n.structuralHash=e.structuralHash),e.deepEqual&&($n.deepEqual=e.deepEqual),e.mergeStructural&&($n.mergeStructural=e.mergeStructural),e.overwriteDeep&&($n.overwriteDeep=e.overwriteDeep),e.shortHash&&($n.shortHash=e.shortHash),e.toKebab&&($n.toKebab=e.toKebab),e.sanitizeValue&&($n.sanitizeValue=e.sanitizeValue),e.batchShortHash&&($n.batchShortHash=e.batchShortHash),e.atomicCssClass&&($n.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&($n.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&($n.compoundCssClass=e.compoundCssClass),Y2=!0,DA&&e.batchAtomicCss&&DA({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Ly)}function Z2(){return Y2}M();var Ud={};F(Ud,{BRENDER_REGISTRY_BLOCK:()=>zf,BRENDER_REGISTRY_TREE_BLOCK:()=>Hf,BRENDER_STAMP_META:()=>ag,CDN_PROVIDERS:()=>rn,DESIGN_SYSTEM_BLOCK:()=>Gf,DESIGN_SYSTEM_DEFERRED:()=>qf,DESIGN_SYSTEM_LINK:()=>Kf,DOMQL_EVENTS:()=>tw,DOMQ_PROPERTIES:()=>ro,ELEMENT_METHOD_OVERRIDE_POINTS:()=>na,ENV:()=>kw,HTML_TAGS:()=>la,LIBRARY_PACKAGES:()=>sg,LIBRARY_SCOPES_KEY:()=>As,METHODS:()=>so,METHODS_EXL:()=>Pl,NODE_ENV:()=>An,OPTIONS:()=>af,PACKAGE_MANAGER_TO_CDN:()=>mo,PARSED_DOMQ_PROPERTIES:()=>Rl,POLYGLOT_LANG_STORAGE_KEY:()=>Gh,PROPS_METHODS:()=>oo,PROTOTYPE_KEYS:()=>yr,REVIVED_MARK:()=>Fl,STATE_DATA_MERGE_EXL:()=>xh,STATE_METHODS:()=>os,STATE_PROPERTIES:()=>J_,SVG_TAGS:()=>DO,TYPES:()=>kl,UNIVERSAL_RESERVED_KEYS:()=>qh,__resetBuiltinMethodWarnings:()=>Ax,addCaching:()=>mh,addContext:()=>gh,addExtend:()=>Kw,addExtends:()=>Wn,addItemAfterEveryElement:()=>F_,addProtoToArray:()=>Al,addRef:()=>dh,alternateLinkKey:()=>Os,applyCSS:()=>$A,applyDependentState:()=>uS,applyEvent:()=>kh,applyEventUpdate:()=>Eh,applyExtends:()=>NO,applyProps:()=>Ql,arrayContainsOtherArray:()=>P_,arraysEqual:()=>j_,arrayzeValue:()=>Ls,bareLibraryKey:()=>If,bindLibraryGlobalScopes:()=>Nf,brenderStampMeta:()=>Mx,buildImgSrcset:()=>Zf,buildSourcesAndImg:()=>Jf,cache:()=>mS,call:()=>nx,captureSnapshot:()=>ox,checkForStateTypes:()=>aS,checkIfInherits:()=>Sh,checkIfStringIsInArray:()=>z_,clone:()=>cw,cloneAndMergeArrayExtend:()=>Wl,cloneFunction:()=>Rw,collectExtendsList:()=>fa,concatAddExtends:()=>zw,copyJavaScriptToClipboard:()=>Ux,copyStringToClipboard:()=>jx,createBasedOnType:()=>uh,createElement:()=>iS,createElementExtends:()=>Qp,createExtends:()=>ql,createExtendsFromKeys:()=>ua,createExtendsStack:()=>rh,createIfConditionFlag:()=>Pw,createInheritedState:()=>cS,createKey:()=>Vl,createNestedObject:()=>mw,createNestedObjectByKeyPath:()=>fS,createObjectWithoutPrototype:()=>Kp,createParent:()=>ph,createPath:()=>hh,createProps:()=>tf,createPropsStack:()=>lh,createPrunedLibraryIconLoader:()=>dg,createRoot:()=>sS,createScope:()=>pS,createSnapshotId:()=>Ul,currentPathname:()=>ks,customDecodeURIComponent:()=>Z_,customEncodeURIComponent:()=>X_,cutArrayAfterValue:()=>N_,cutArrayBeforeValue:()=>M_,debounce:()=>Hl,debounceOnContext:()=>Cw,decodeBrenderRegistry:()=>Wf,decodeNewlines:()=>Y_,deepClone:()=>pt,deepContains:()=>hw,deepDefaults:()=>Ta,deepDestringifyFunctions:()=>we,deepExtend:()=>Jp,deepMerge:()=>bt,deepMergeExtends:()=>Kn,deepStringifyFunctions:()=>Ml,defineSetter:()=>tx,designSystemBlock:()=>Ix,designSystemLink:()=>Dx,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>ux,detectInfiniteLoop:()=>ww,document:()=>kt,encodeNewlines:()=>G_,error:()=>Ss,escapeHtml:()=>U,escapeRegExp:()=>H_,evaluateText:()=>go,excludeKeysFromObject:()=>xw,exec:()=>St,exposeBagGlobalScopes:()=>$f,extendCachedRegistry:()=>Hw,extendStackRegistry:()=>Gl,extractArrayExtend:()=>Xl,faviconLinkKey:()=>_o,fetchLibraryData:()=>Ra,fibonacciNumberByIndex:()=>dx,fileEntryUrl:()=>cg,filterArrays:()=>U_,filterArraysFast:()=>V_,finalizeExtends:()=>oh,findClosestNumber:()=>lg,findClosestNumberInFactory:()=>Bx,findInheritedState:()=>wh,findKeyPosition:()=>K_,flattenExtend:()=>da,formatDate:()=>fx,generateHash:()=>Yp,generateHeadArrayTags:()=>Pa,generateKey:()=>jl,generateMetaTags:()=>$x,get:()=>XS,getActiveRoute:()=>oA,getCDNDirUrl:()=>Qh,getCDNUrl:()=>On,getCapitalCaseKeys:()=>Yw,getCdnProviderFromConfig:()=>va,getChildStateInKey:()=>_h,getChildren:()=>QS,getContext:()=>Ef,getCookie:()=>Nw,getDB:()=>Of,getEmotionStylesheet:()=>Gx,getExtendsInElement:()=>qw,getExtendsStack:()=>Kl,getExtendsStackRegistry:()=>Zp,getFrequencyInArray:()=>L_,getFunctionSource:()=>Fe,getHashedExtend:()=>Yl,getImportMapScript:()=>lx,getInObjectByPath:()=>_w,getLocalStorage:()=>Fw,getNev:()=>Tw,getPageMetadata:()=>Fx,getParentStateInKey:()=>bh,getPath:()=>bf,getQuery:()=>Rf,getRef:()=>JS,getRoot:()=>Sf,getRootContext:()=>kf,getRootData:()=>xf,getRootState:()=>wf,getRootStateInKey:()=>yh,getSpreadChildren:()=>Xw,global:()=>C_,hasFunction:()=>ie,hasHandlerPlugin:()=>ia,hasOwnProperty:()=>uw,hashContent:()=>Rn,inheritChildExtends:()=>eh,inheritChildPropsExtends:()=>th,inheritParentProps:()=>ef,inheritRecursiveChildExtends:()=>nh,init:()=>dr,initProps:()=>nS,insertAfterImportMap:()=>Nx,installPrunedLibraryIconLoader:()=>Xf,is:()=>_e,isArray:()=>I,isBoolean:()=>Fp,isBuiltinElementMethod:()=>Q_,isContextComponent:()=>Zw,isCyclic:()=>Sw,isDOMNode:()=>ye,isDate:()=>jp,isDefined:()=>Ut,isDevelopment:()=>ao,isEmpty:()=>Hp,isEmptyObject:()=>dw,isEqualDeep:()=>Wp,isFailedRevival:()=>ls,isFunction:()=>L,isHtmlElement:()=>Sl,isLazyFunction:()=>lw,isLocal:()=>Aw,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>Es,isMethod:()=>rx,isMobile:()=>Iw,isNode:()=>mr,isNot:()=>R_,isNotProduction:()=>br,isNull:()=>Bp,isNumber:()=>be,isObject:()=>k,isObjectLike:()=>V,isPhoto:()=>px,isPolyglotRetranslatableKey:()=>sf,isPolyglotWritableKey:()=>ps,isProduction:()=>io,isProtectedElementMethod:()=>ss,isRevived:()=>fs,isStaging:()=>vw,isState:()=>lS,isString:()=>v,isStringFunction:()=>sa,isStringTag:()=>$l,isTest:()=>Gp,isTesting:()=>Ew,isUndefined:()=>Zt,isUniversallyReservedKey:()=>sx,isUnresolvableDependency:()=>yo,isValidDependencyMap:()=>vs,isValidHtmlTag:()=>jw,isWrappedLibrary:()=>je,joinArrays:()=>Qi,jointStacks:()=>Ww,jsonForScript:()=>ys,keys:()=>Wh,lastLevel:()=>dy,lastPathname:()=>Nc,libraryIconPruneReplacer:()=>qx,libraryIdentifier:()=>fg,libraryPackageSpecs:()=>Ca,librarySpecsFor:()=>og,loadCssFile:()=>yx,loadJavascript:()=>bx,loadJavascriptFile:()=>hx,loadJavascriptFileEmbedSync:()=>mx,loadJavascriptFileSync:()=>gx,loadLazy:()=>Zv,loadRemoteCSS:()=>_x,loadRemoteScript:()=>Aa,log:()=>ex,logGroupIf:()=>Dw,logIf:()=>Lw,lookdown:()=>GS,lookdownAll:()=>YS,lookup:()=>qS,lowercaseFirstLetter:()=>rs,makeObjectWithoutPrototype:()=>pw,map:()=>aw,mapStringsWithContextComponents:()=>Zl,markPolyglotSeeded:()=>Gn,markRevived:()=>oa,markTextNotReady:()=>xa,matchRoute:()=>eA,matchesComponentNaming:()=>qn,memoize:()=>Ow,merge:()=>Lt,mergeSharedLibraries:()=>Ff,mergeSharedLibraryDesignSystems:()=>Bf,mergeSharedLibraryTranslations:()=>jf,mergeStateData:()=>lo,nextElement:()=>Af,normalizeIgnoreList:()=>Mf,normalizeLibraryKey:()=>Ts,objectToString:()=>Nl,objectizeStringProperty:()=>Jl,overwrite:()=>Bl,overwriteDeep:()=>ae,overwriteShallow:()=>ds,overwriteState:()=>dS,parse:()=>Kh,parseDeep:()=>mf,parseQuery:()=>nA,parseRoutePattern:()=>uy,payloadHasComputedIconName:()=>ug,pickStartLang:()=>Zh,pickupElementFromProps:()=>ah,pickupPropsFromElement:()=>ih,planLibraryIconPrune:()=>Kx,polyglotAddressLang:()=>Yh,polyglotFallbackLang:()=>kr,polyglotLangStorageKey:()=>Sa,polyglotLanguages:()=>Be,polyglotSeededKeys:()=>fo,polyglotStartLang:()=>xs,polyglotStartRule:()=>Xh,polyglotStartupScript:()=>ix,previousElement:()=>Tf,promoteActiveRootState:()=>_a,propExists:()=>tS,propertizeElement:()=>ch,propertizeUpdate:()=>Qw,readBrenderStamp:()=>bs,readJsonDataBlock:()=>Xn,reinit:()=>NA,remove:()=>H1,removeChars:()=>Vx,removeCookie:()=>$w,removeDuplicateProps:()=>rf,removeDuplicatesInArray:()=>ta,removeFromArray:()=>D_,removeFromObject:()=>gw,removeNestedKeyByPath:()=>yw,removeValueFromArray:()=>vl,removeValueFromArrayAll:()=>$_,reorderArrayByValues:()=>B_,repairLegacyArrowScopePreamble:()=>Ll,replaceLiteralsWithObjectFields:()=>Jt,replaceOctalEscapeSequences:()=>q_,resolveAsset:()=>Se,resolveFileReferences:()=>Ps,resolveHandler:()=>aa,resolveRouterElement:()=>Md,resolveSharedLibraries:()=>Uf,returnValueAsText:()=>fh,router:()=>Nn,runGuards:()=>L$,runPluginHook:()=>co,saveScrollPosition:()=>Rd,scopeElementParam:()=>Up,scopeReceiverExpression:()=>ow,scratchSystem:()=>Xa,scratchUtils:()=>Eo,self:()=>O_,set:()=>Js,setActiveRootState:()=>_f,setCookie:()=>Mw,setHashedExtend:()=>Xp,setInObjectByPath:()=>bw,setLocalStorage:()=>Bw,setNodeStyles:()=>Hh,setProps:()=>ZS,setPropsPrototype:()=>nf,sharedLibrary:()=>vx,sharedLibraryFiles:()=>Cs,splitPackageSpecifier:()=>Pf,spotByPath:()=>yf,srcsetFor:()=>La,stringIncludesAny:()=>Cl,stringToObject:()=>fw,stripVersionRangePrefix:()=>Lf,swapItemsInArray:()=>I_,syncProps:()=>of,themeColorKey:()=>Rs,toCamelCase:()=>Er,toDashCase:()=>Yf,toDescriptionCase:()=>Hx,toPriorityOrder:()=>tn,toTitleCase:()=>zx,toggleFullscreen:()=>cx,triggerEventOn:()=>_r,triggerEventOnUpdate:()=>hS,trimStringFromSymbols:()=>W_,unstackArrayOfObjects:()=>El,update:()=>eS,updateProps:()=>rS,variables:()=>Cf,verbose:()=>wa,warn:()=>vf,warnLibraryAliasCollision:()=>Oa,window:()=>R});M();M();M();var S7={group:"group",imagePair:"image-pair","image-pair":"image-pair",old:"old",new:"new"},x7=/^(?:\*|\.?-?[_a-zA-Z][\w-]*)$/,k7=/^-?[_a-zA-Z][\w-]*$/,E7=new Set(["root","*"]),v7="@media (prefers-reduced-motion: no-preference)",A7="@media (prefers-reduced-motion: reduce)",T7=(t,e)=>{let n=v(t)?{animation:t}:k(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];(v(i)||be(i))&&(o[s]=i)}return Object.keys(o).length?o:null},J2=(t,e,n={})=>{if(!k(t))return null;if(globalThis.__SMBLS_BUILD_DROP_F_viewTransition__)return Object.keys(t).length&&Gt("viewTransition")||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=S7[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=T7(f[d],s);h&&(i[g]=h,a[g]={animation:"none"})}};for(let l in t){let f=t[l];if(k(f)){if(!x7.test(l)){o(`"${l}" is not a view-transition name`);continue}if(!r&&E7.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,""),k(f.types))for(let u in f.types){if(!k7.test(u)||!k(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?{[v7]:i,[A7]:a}:null};var C7=P(),tF=(t=C7,e)=>{let n=k(e.localFile)?e.localFile:{},r=pt(n.designSystem||{});return bt(t,r,le)},O7={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Iy=(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},IA=(t,e)=>{t.CSS_MEDIA_VARS&&Ot(Iy(t.CSS_MEDIA_VARS,e));let n=Xs(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&Ot(n)},eF=(t,e)=>{let n=J2(t.viewTransition,t,{scope:e,verbose:t.verbose});n&&Ot(n)},My=t=>{if(typeof window<"u"&&window.location)try{let e=new URLSearchParams(window.location.search).get("globalTheme");if(e)return e}catch{}return t},Q2=(t,e)=>{t.useVariable&&(Ot({[e]:t.CSS_VARS}),IA(t,e)),t.useReset&&Ot(t.reset);let n=t.animation;if(n){let r={};for(let o in n)r[`@keyframes ${o}`]=n[o];Ot(r)}eF(t,e)},nF=(t,e,n,r,o)=>{t.useFontImport&&Ot(ou(t.font,t.files));let s=null;return o?Yu(o):n.recordCss?s=Gu(()=>Q2(t,e)):Q2(t,e),(r.svg||t.useSvgSprite)&&Iu(t.svg,{document:n.document}),(r.icons||t.useIconSprite)&&Ys(t.icons,{document:n.document}),s},dr=(t,e=O7)=>{let n=tF(t||{},e),r=e.scopeSelector||":root",o=My(e.globalTheme),s=Js({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=nF(s,r,e,i);return a&&typeof e.recordCss=="function"&&e.recordCss({rules:a,sprites:i}),s},MA=(t,e,n,r)=>{let o=n.scopeSelector||":root";if(tm(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),So(e),xo(e),Vu(e),e.__svgCache={},r){mt(e);try{Uu("font",r)}finally{ht()}}mt(e);try{nF(e,o,n,t.sprites||{},t.rules)}finally{ht()}return e},Ny={},NA=(t,e=Ny)=>{let n=tF(t||{},e),r=e.scopeSelector||":root",o=Js({verbose:!1,...n});return e.preventInject||(Ot({[r]:o.CSS_VARS}),IA(o,r),Ot(o.reset),eF(o,r)),o},$A=(t,e=Ny)=>{Ot(t)},R7=(t,e=Ny)=>{let n=e.scopeSelector||":root";Ot({[n]:t.CSS_VARS}),IA(t,n)};var P7=(t,e=Ny)=>{};M();var rF=10,L7=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return!!e&&typeof e.requestAnimationFrame=="function"},D7=t=>{try{let e=t.defaultView;return e&&e.frameElement||null}catch{return null}},I7=t=>{let e=t&&t.document||(typeof document<"u"?document:null);if(!e)return()=>!0;let n=!!e.defaultView,r=D7(e);return()=>!(n&&!e.defaultView||r&&!r.isConnected)},oF=Symbol("smbls.bootGone"),sF=t=>{let e,n={live:I7(t),dead:!1,gone:new Promise(r=>{e=r}),lost(){n.dead||(n.dead=!0,e(oF))}};return n},zc=t=>t?t.dead?!1:t.live()?!0:(Ed(t),!1):!0,M7=(t,e)=>e?Promise.race([t,e.gone]):t,qo=async(t,e)=>await M7(t,e)!==oF&&zc(e),FA=t=>{if(!(!t||!t.__ref))try{yn(t)}catch{}},iF=new WeakSet,Hc=t=>(iF.add(t),t),Vd=t=>!!t&&typeof t=="object"&&iF.has(t),aF=t=>{let e=t&&typeof t=="object"?t.firstRender:void 0;if(e===!1||!L7(t))return null;if(e===void 0||e===!0)return{budget:rF,progressive:!1};if(e&&typeof e=="object"){let r=e.budget===void 0?rF:lr(e.budget);return r?{budget:r,progressive:e.progressive===!0}:null}let n=lr(e);return n?{budget:n,progressive:!1}:null},BA=new WeakMap,jA=(t,e)=>(BA.set(t,e),e),UA=t=>{BA.delete(t)},cF=t=>{let e=t&&BA.get(t);return!e||e.routeTaken?null:(e.routeTaken=!0,e)},N7=Object.freeze({deferAttach:!0}),lF=async(t,e,n,r,o)=>{let s=o.lease||null;if(await fr(),!zc(s))return null;let i=r.mountYield;i===void 0&&(r.mountYield=o.budget);let a=r.mountWhole;a===void 0&&(r.mountWhole=!o.progressive),o.pageOptions={mountYield:r.mountYield,mountWhole:r.mountWhole};let c;o.commit=new Promise(d=>{c=d}),o.committed=!1;let l=!o.progressive;jA(n,o);let f=li(),u=null;s&&(n.__mountLease=s);try{if(u=Xt(t,e,n.key,r,l?N7:void 0),!await qo(Wr(u),s)||o.routeReady&&!await qo(o.routeReady,s)||!await qo(Re(),s))return $y(u);for(;!Vo();)if(!await qo(Re(),s))return $y(u);return l&&Bo(u),o.committed=!0,c(),o.page&&await Wr(o.page),await Re(),u}finally{o.committed=!0,c(),f(),r.mountYield=i,r.mountWhole=a,s&&(n.__mountLease=null),UA(n)}},$y=t=>(FA(t),null);var uF=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,$7=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},zA={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},F7=(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},zd=(t,e)=>(Md||F7)(t,e),B7=["manual","auto","restore"],VA=new WeakMap,fF=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},j7=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!B7.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||R,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=VA.get(o);s||(s={found:o.scrollRestoration,claims:[]},VA.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),fF(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||VA.delete(o);try{fF(o,s)}catch{}}})}catch{}}},U7=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Rd,r=t.window||R;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)})},dF=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=zA:e.router=Lt(e.router||{},zA);let n=e.router;j7(e,n),U7(e,n);let r=(i,a)=>{let c=i.context?.window||R,l=$7(n);if(!l){if(!c.location)return;let{pathname:u,search:d,hash:p}=c.location;u=uF(u),l=u+d+p}let f=i;if(n.customRouterElement){let u=zd(i,n.customRouterElement);u&&(f=u,i.routes&&(f.routes=i.routes))}if(f.routes)return Nn(l,f,{},{initialRender:!0,pushState:!1,...a})},o=async(i,a)=>{let c=cF(i.context);if(c)return V7(i,c,r);await r(i)},s=!Zt(t.onRenderRouter);return n&&n.initRouter&&!s&&(t.onRenderRouter=(i,a)=>e.__firstNavigation=o(i,a)),z7(e,n),n},V7=(t,e,n)=>{let r;return e.routeReady=new Promise(s=>{r=s}),(async()=>{try{if(await fr(),!t.__ref||!zc(e.lease))return;let s=n(t,e.progressive?{mountOptions:e.pageOptions}:{mountOptions:e.pageOptions,firstView:e});await Re(),r(),await s}finally{r()}})()},HA=(t,e)=>{if(e.router===!1)return;let n=e.router||zA;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:Nn,o=e.window||R,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=uF(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=zd(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))},z7=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return bt(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};var GA={};F(GA,{components:()=>KA,functions:()=>Gr});var qA={};F(qA,{AlertTemplate:()=>Gy,ConfirmTemplate:()=>qy,CustomTemplate:()=>Xy,ModalLayer:()=>Ky,ModalRoot:()=>Wy,PromptTemplate:()=>Yy,windowsComponents:()=>KA});var WA={};F(WA,{alertDialog:()=>zy,closeAllModals:()=>Uy,closeModal:()=>By,confirmDialog:()=>Vy,getLayer:()=>Fy,openModal:()=>jy,promptDialog:()=>Hy,windowsFunctions:()=>Gr});function lt(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function Wc(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 Fy(){return lt(this)}var H7=(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"))},pF=(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 By(t){let e=Wc(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)H7(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function jy(t={}){let e=Wc(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 pF(e,s),e.state.update({stack:[...o,r]}),n}function Uy(){let t=Wc(this);if(!t)return;let e=t.state?.stack;if(!e?.length)return;let n=e.slice();t.state.update({stack:[]});for(let r=n.length-1;r>=0;r--){let o=n[r];if(typeof o?.onClose=="function")try{o.onClose()}catch(s){console.warn("[windows] onClose threw:",s)}}}function Vy(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function zy(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function Hy(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var Gr={openModal:jy,closeModal:By,closeAllModals:Uy,confirmDialog:Vy,alertDialog:zy,promptDialog:Hy,getLayer:Fy};var W7=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),hF=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(W7),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},gF=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},Wy={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 c in Gr)c in n.functions||(n.functions[c]=Gr[c])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=c=>{if(typeof c?.onCancel=="function")try{c.onCancel()}catch(l){console.warn("[windows] onCancel threw:",l)}if(typeof c?.onClose=="function")try{c.onClose()}catch(l){console.warn("[windows] onClose threw:",l)}},o=()=>{let c=t.state?.stack||[];if(!c.length)return;let l=c.length-1,f=c[l];t.state.update({stack:c.slice(0,-1)});let u=t["ModalLayer_"+l],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},s=c=>{let l=t.state?.stack;if(l?.length){if(c.key==="Tab"){let f=gF(t);if(!f)return;let u=hF(f);if(!u.length){c.preventDefault();let m=f.querySelector?.('[role="dialog"]')||f;try{m.focus?.()}catch{}return}let d=u[0],p=u[u.length-1],g=document.activeElement;if(!f.contains(g)){c.preventDefault();try{d.focus()}catch{}return}if(c.shiftKey&&g===d){c.preventDefault();try{p.focus()}catch{}}else if(!c.shiftKey&&g===p){c.preventDefault();try{d.focus()}catch{}}return}c.key!=="Escape"||c.defaultPrevented||l[l.length-1]?.dismissOnBackdrop!==!1&&(c.preventDefault(),o())}};window.addEventListener("keydown",s),t.__escHandler=s;let i=c=>{let l=t.state?.stack||[];if(c<0||c>=l.length)return;let f=l[c];t.state.update({stack:l.filter((p,g)=>g!==c)});let u=t["ModalLayer_"+c],d=u?.node||u?.__ref?.node;d?.style?.setProperty&&(d.style.setProperty("display","none","important"),d.style.setProperty("opacity","0","important"),d.style.setProperty("visibility","hidden","important"),d.style.setProperty("pointer-events","none","important")),r(f)},a=c=>{let l=t.state?.stack||[];if(!l.length)return;let f=c.target?.closest?.('[data-key="Close"]');if(f){for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u],p=d?.node||d?.__ref?.node;if(p&&p.contains(f)){c.preventDefault(),c.stopPropagation(),i(u);return}}return}for(let u=l.length-1;u>=0;u--){let d=t["ModalLayer_"+u];if((d?.node||d?.__ref?.node)===c.target){if(l[u]?.dismissOnBackdrop===!1)return;c.preventDefault(),c.stopPropagation(),i(u);return}}};document.addEventListener("click",a,!0),t.__clickDelegate=a},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=gF(t);if(!o)return;let i=hF(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 Ky={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=lt(t)?.id;return e?"modal-title-"+e:null}},width:t=>lt(t)?.width||"H",maxWidth:t=>lt(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>lt(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=>lt(t)?.template!=="confirm"},AlertTemplate:{hide:t=>lt(t)?.template!=="alert"},PromptTemplate:{hide:t=>lt(t)?.template!=="prompt"},CustomTemplate:{hide:t=>lt(t)?.template!=="custom"}}};var Kc=(t,e,n)=>lt(t)?.[e]||n,K7=t=>{let e=lt(t)?.icon;return e===null||e===!1},qy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Kc(t,"title","Are you sure?"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>K7(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>Kc(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>Kc(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Kc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=lt(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=>Kc(t,"confirmTheme","primary"),text:t=>Kc(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var Hd=(t,e,n)=>lt(t)?.[e]||n,Gy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Hd(t,"title","Notice"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>Hd(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Hd(t,"message",""),P:{tag:"p",margin:"0",text:t=>Hd(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>Hd(t,"okText","OK"),onClick:(t,e,n)=>{let r=lt(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var qc=(t,e,n)=>lt(t)?.[e]||n,Yy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=lt(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=lt(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=>qc(t,"title","Enter a value"),attr:{id:t=>{let e=lt(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!qc(t,"message",""),P:{tag:"p",margin:"0",text:t=>qc(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>qc(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=lt(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=>qc(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=lt(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=>qc(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=lt(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 Xy={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>lt(t)?.title||"",hide:t=>!lt(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=lt(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=K(()=>{let n=lt(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 Gr)i in s.functions||(s.functions[i]=Gr[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var mF={extends:"Button",theme:"tertiary"};var KA={ModalRoot:Wy,ModalLayer:Ky,ConfirmTemplate:qy,AlertTemplate:Gy,PromptTemplate:Yy,CustomTemplate:Xy,"smbls.CancelButton":mF};var rT={};F(rT,{components:()=>QA,functions:()=>eT});var tT={};F(tT,{Dropdown:()=>nb,DropdownList:()=>rb,DropdownParent:()=>ob,DropdownParentFocus:()=>sb,DropdownRoot:()=>tb,DropdownSiblingFocus:()=>ib,DropdownTrigger:()=>eb,dropdownComponents:()=>QA});var yF=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),q7=(t,e,n,r)=>{let o=yF(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},G7=(t,e,n,r,o)=>{let s=yF(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 YA=(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))},Zy=(t,e,n)=>Math.max(e,Math.min(n,t)),Yr=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:YA("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=YA("center",t,o),h=Math.min(s.height,g),m=Zy((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=Zy((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=q7(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=G7(i,t,s,r,o)}let c=YA(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=Zy(f,8,d),u=Zy(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},Gc=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 Go={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},Y7=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}},XA=t=>t?.getRoot?.()?.DropdownRoot||null,X7=0,Z7=()=>`dropdown_${++X7}_${Date.now().toString(36)}`;function Jy(t={}){let e=XA(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||Y7(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||Z7(),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||Go.placement,trigger:t.trigger||Go.trigger,offset:t.offset??Go.offset,minWidth:t.minWidth||Go.minWidth,maxWidth:t.maxWidth||Go.maxWidth,maxHeight:t.maxHeight||Go.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 Qy(t){let e=XA(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function ki(t){let e=XA(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 ZA=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},bF=t=>{let e=t.getBoundingClientRect(),n=t.offsetWidth||e.width,r=Math.max(t.offsetHeight||e.height,t.scrollHeight||0);return{width:n,height:r}},J7=`
|
|
94
94
|
@keyframes smbls-dropdown-fade-in {
|
|
95
95
|
from { opacity: 0; transform: var(--smbls-dropdown-from, translateY(-6px)) scale(0.98); }
|
|
96
96
|
to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
|
|
@@ -157,22 +157,22 @@ ${a}`}var EA=null;function Ty(t){EA=t}var Mn={structuralHash:vy,deepEqual:Ay,mer
|
|
|
157
157
|
[data-smbls-dropdown="panel"]:not([data-smbls-shadowed]) {
|
|
158
158
|
box-shadow: none !important;
|
|
159
159
|
}
|
|
160
|
-
`,B7=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=F7,document.head.appendChild(t)},lF=(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")},j7=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},U7=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},V7=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],fF=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of V7){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)},z7='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',H7=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(z7)){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})}},Yy={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(B7(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),Si.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}Si.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 Kr(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 Kr(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":Wc(Kr(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 VA(e,Kr(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=K(()=>{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,fF(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=j7(t.content)),lF(t,n),fF(t,n),U7(t),n.focusIn&&H7(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;lF(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=cF(t.node);t._lastSize=i;let a=Kr(s.anchor,i,s.placement);t.node.style.maxHeight=VA(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Wc(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=cF(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=Kr(e.anchor,n,e.placement);t.node.style.maxHeight=VA(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Wc(s.side))}}}};var zA=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)},Xy={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),zA(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&zA(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>zA(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Zy={extends:"smbls.Dropdown"},Jy={extends:"smbls.DropdownList"},Qy={extends:"smbls.DropdownParent"},tb={extends:"smbls.DropdownParentFocus"},eb={extends:"smbls.DropdownSiblingFocus"};var HA={DropdownRoot:Yy,DropdownTrigger:Xy,Dropdown:Zy,DropdownList:Jy,DropdownParent:Qy,DropdownParentFocus:tb,DropdownSiblingFocus:eb};var qA={};F(qA,{DROPDOWN_DEFAULTS:()=>Wo,closeDropdown:()=>Si,computePosition:()=>Kr,dropdownFunctions:()=>KA,fadeInTransform:()=>Wc,openDropdown:()=>qy,setDropdownInert:()=>Gy});var KA={openDropdown:qy,closeDropdown:Si,setDropdownInert:Gy};var tC={};F(tC,{components:()=>PF,functions:()=>LF});var W7=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),K7=(t,e,n,r,o)=>{let s=W7(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},uF=(t,e,n)=>Math.max(e,Math.min(n,t)),pF=(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=K7(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=uF(i,6,r-e.width-6),a=uF(a,6,o-e.height-6),{left:i,top:a,side:s}},dF={bottom:["0","-10%"],top:["0","10%"],left:["10%","0"],right:["-10%","0"]},hF=t=>(dF[t]||dF.bottom).join(" ");var Ko={placement:"bottom",theme:"dialog",delay:250,hideDelay:100,warmWindow:300},gF=t=>{if(!t||typeof t!="object")return null;let e=Number(t.left),n=Number(t.top),r=Number(t.width??t.right-t.left),o=Number(t.height??t.bottom-t.top),s={left:e,top:n,right:Number(t.right??e+r),bottom:Number(t.bottom??n+o),width:r,height:o};for(let i in s)if(!Number.isFinite(s[i]))return null;return s},q7=t=>!t||typeof t.getBoundingClientRect!="function"?null:gF(t.getBoundingClientRect()),YA=t=>t?.getRoot?.()?.TooltipRoot||null,XA=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},ZA=t=>!!(t&&t.open!==!1&&t.size),mF=(t,e=Date.now())=>{let n=YA(t)?.state?.tip;return n?n.open!==!1?!0:typeof n.closedAt=="number"&&e-n.closedAt<Ko.warmWindow:!1},yF=(t,e,n=0)=>{let r=XA(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(()=>yF(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},G7=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},Y7=0,X7=()=>`tooltip_${++Y7}_${Date.now().toString(36)}`;function bF(t={}){let e=YA(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=gF(t.anchorRect);t.anchorRect!=null&&!r&&console.warn("[tooltip] openTooltip: anchorRect is not a rect ({ left, top, right, bottom, width, height }); the anchor element's own box is used.");let o=r||q7(n);if(!o)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let s=t.id||X7(),i=XA(e),a=ZA(i),c={id:s,owner:t.owner||null,text:t.text||"",anchor:o,placement:t.placement||Ko.placement,theme:t.theme||Ko.theme,open:!0,glide:a,size:a?i.size:null};return e.state.update({tip:c}),G7(()=>yF(e,s)),s}function _F(t){let e=YA(this);if(!e)return;let n=XA(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=typeof t=="object"?t?.owner:null;o&&n.owner&&o!==n.owner||e.state.update({tip:{...n,open:!1,closedAt:Date.now()}})}var wF=t=>{let e=t.tip;return e?.anchor?pF(e.anchor,e.size||{width:0,height:0},e.placement):null},JA=t=>ZA(t.tip),Z7=t=>{let e=t.tip;return!e||e.open===!1?"Z opacity defaultBezier, Z translate defaultBezier, Z visibility defaultBezier, Z transform defaultBezier":e.size?e.glide?"A transform defaultBezier, A translate defaultBezier, A opacity defaultBezier, A visibility defaultBezier":"A opacity defaultBezier, A translate defaultBezier, A visibility defaultBezier":"Z opacity defaultBezier, Z visibility defaultBezier"},SF=t=>{let e=typeof window<"u"&&window.devicePixelRatio||1;return Math.round(t*e)/e},xF={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",left:"0",top:"0",tip:(t,e)=>e?.tip||null,transform:t=>{let e=wF(t);return e?`translate3d(${SF(e.left)}px, ${SF(e.top)}px, 0)`:"translate3d(-9999px, -9999px, 0)"},translate:t=>{if(JA(t))return"0 0";let e=wF(t);return hF(e?e.side:"bottom")},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Ko.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>JA(t)?"1":"0",visibility:t=>JA(t)?"visible":"hidden",transition:t=>Z7(t)}};var QA=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},J7=0,AF=t=>t._tooltipOwner||(t._tooltipOwner=`tooltip_trigger_${++J7}`),kF=t=>{t.tooltipText&&(QA(t),t.call("openTooltip",{anchorEl:t,anchorRect:t.tooltipAnchorRect||void 0,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key,owner:AF(t)}))},EF=t=>{if(t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),mF(t)){t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),kF(t);return}t._tooltipShowTimer||(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,kF(t)},t.tooltipDelay??Ko.delay))},vF=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",{id:t.tooltipId||t.key,owner:AF(t)})},t.tooltipHideDelay??Ko.hideDelay))},CF={onMouseenter:(t,e)=>EF(e),onMouseleave:(t,e)=>vF(e),onFocus:(t,e)=>EF(e),onBlur:(t,e)=>vF(e),onMouseover:(t,e)=>QA(e),onFocusin:(t,e)=>QA(e)};var TF={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)}},OF={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]},RF={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 PF={TooltipRoot:xF,TooltipTrigger:CF,Tooltip:TF,TooltipHidden:OF,TooltipParent:RF};var LF={openTooltip:bF,closeTooltip:_F};var Hd={};F(Hd,{LEVELS:()=>Ud,analyzePlugin:()=>nb,attachBrowserListeners:()=>ub,attachNetworkListeners:()=>zd,classifyEvent:()=>aC,createAnalyzeState:()=>VF,createBeaconSink:()=>fC,createConsoleSink:()=>cC,createDedupe:()=>oC,createEnrich:()=>nC,createMemorySink:()=>lC,createPipeline:()=>ib,createRedact:()=>sb,createRemoteSink:()=>cb,createSample:()=>sC,createSummarize:()=>rC,default:()=>nb,emitFetchEvent:()=>jF,makeEvent:()=>ft,meetsLevel:()=>rb,normalizeLevel:()=>Vd,resolveSinks:()=>fb,summarizeElement:()=>xi});var Q7=0,tq=()=>`${Date.now().toString(36)}-${(Q7++).toString(36)}`,ft=(t,e,n={})=>({id:tq(),ts:Date.now(),type:t,level:e,...n}),eq=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(" > ")},xi=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:eq(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Kc=t=>t?.context?.analyze,nq={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"}},rq=(t,{category:e,type:n,level:r})=>o=>{let s=Kc(o);!s||!s.shouldCapture(e)||s.emit(ft(n,r,{hook:t,element:xi(o)}))},DF=t=>(e,n)=>{let r=Kc(e);!r||!r.shouldCapture("state")||r.emit(ft("state","debug",{hook:t,element:xi(e),changedKeys:n?.changedKeys||null}))},nb={name:"analyze",error(t,e){let n=Kc(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(ft("error","error",{hook:e?.hook||"error",element:xi(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Kc(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(ft("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Kc(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Kc(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(ft("update","debug",{hook:"update",element:xi(t),durationMs:n}))},beforeStateUpdate:DF("beforeStateUpdate"),stateUpdate:DF("stateUpdate")};for(let[t,e]of Object.entries(nq))nb[t]=rq(t,e);M();var Ud={error:0,warn:1,info:2,debug:3,trace:4};var rb=(t,e)=>{let n=Ud[t],r=Ud[e];return n==null||r==null?!0:n<=r},Vd=t=>Ud[t]!=null?t:"warn";M();var ob=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var oq=(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},sq=(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"***"}},eC=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>eC(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(oq(s,e)||ob.test(s)){let a=sq(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=eC(t[s],e,n,r+1);return o},sb=(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=eC(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 nC=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=R,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}}}},rC=()=>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},oC=(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}},sC=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},IF={redact:t=>sb(t.config.redact||[],t.config.maskStrategy),enrich:t=>nC(t),summarize:()=>rC(),dedupe:t=>oC(t.config.cache?.dedupeWindowMs||1e3),sample:t=>sC(t.config.sample||{})},iq=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=IF[t];return n?n(e):null}return null},ib=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(IF.redact(t));for(let s of n){let i=iq(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 ab=typeof R<"u"&&typeof R.document<"u",aq=5e3,cq=50,lq=3,fq=1500,uq=1e3,aC=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",dq=t=>{try{return JSON.stringify(t)}catch{return null}},pq=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},hq=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}},gq=()=>{if(!ab)return null;try{let t=R.document?.documentElement?.getAttribute("data-theme")||null,e=typeof R.matchMedia=="function"?R.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}},mq=()=>{if(!ab)return null;let t=R.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:R.document?.referrer||null,title:R.document?.title||null,ua:e?.userAgent||null,browser:hq(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:pq(),viewport:R.innerWidth?{w:R.innerWidth,h:R.innerHeight,dpr:R.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:gq()}},cb=(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:aC,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:aq,y=t.maxBatch||cq,x=t.maxRetries!=null?t.maxRetries:lq,k=t.backoffMs||fq,C=t.queueLimit||uq,_=t.sampleRate!=null?t.sampleRate:1,b=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,w=t.sessionId||b(),S=[],A=[],T=null,O=null,B=()=>{T||!S.length||(T=setTimeout(Y,m))},$=Z=>{if(O)return;let Q=k*Math.pow(2,Math.max(0,Z-1));O=setTimeout(()=>{if(O=null,!A.length)return;let it=A.shift();G(it.envelope,it.attempt)},Q)},N=(Z,Q=!1)=>{let it=u?iC(u):null,rt={id:w,sentAt:Date.now()};Q&&(rt.endedAt=Date.now());let gt={v:1,session:rt,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:mq(),user:it?.user||null,traits:it?.traits||null,tags:it?.tags||null,events:Z};if((h?iC(h)===!0:g)&&(gt.app.debug=!0),p)try{return p(gt)||null}catch{return gt}return gt},G=async(Z,Q=1)=>{if(Z)try{let it=!0;if(n){let rt=await n(Z);it=rt!==!1&&rt?.ok!==!1}else it=await yq(e,Z,{apiKey:o,getAuth:f});!it&&Q<x&&(A.push({envelope:Z,attempt:Q+1}),$(Q+1))}catch{Q<x&&(A.push({envelope:Z,attempt:Q+1}),$(Q+1))}},Y=(Z=!1,Q=!1)=>{if(T&&(clearTimeout(T),T=null),!S.length&&!Q)return;let it=S;S=[];let rt=N(it,Q);if(rt){if(Z&&ab){if(typeof r=="function"&&iC(()=>r(rt)))return;if(navigator.sendBeacon&&e){let gt=dq(rt);if(gt)try{navigator.sendBeacon(e,new R.Blob([gt],{type:"application/json"}));return}catch{}}}G(rt)}},nt=!1,ot=()=>{nt||(nt=!0,Y(!0,!0))};ab&&(R.addEventListener("pagehide",ot,{passive:!0}),R.addEventListener("beforeunload",ot,{passive:!0}),R.addEventListener("visibilitychange",()=>{R.document.visibilityState==="hidden"&&Y(!0)},{passive:!0}));let st=Z=>{if(!Z||_<1&&Math.random()>_)return;nt&&(nt=!1);let Q={...Z,log_type:d(Z)};S.push(Q),S.length>C&&(S=S.slice(-C)),S.length>=y?Y():B()},J=Z=>(Y(!1,!0),w=Z||b(),nt=!1,st.sessionId=w,w);return st.flush=()=>Y(!1),st.endSession=ot,st.startNewSession=J,st.sessionId=w,st},iC=t=>{try{return t()}catch{return null}},yq=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 bq={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},_q="\x1B[0m",lb=typeof R<"u"&&typeof R.document<"u",cC=(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(lb)i(a,s);else{let c=bq[s.level]||"";i(`${c}${a}${_q}`,s)}}},lC=(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},fC=(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=lb?new R.Blob([c],{type:"application/json"}):c;if(lb&&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(()=>{})};lb&&(R.addEventListener("pagehide",i,{passive:!0}),R.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},MF={console:cC,memory:lC,beacon:fC,remote:cb},NF=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},fb=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=MF[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?NF(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=MF[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?NF(t,r):r))}return n};M();var wq=typeof R<"u"&&typeof R.document<"u",Sq=new Set(["password","hidden"]),$F=(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))))}},uC="__analyzeKeyPath",qc=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[uC])return e[uC];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[uC]=i}catch{}return i},xq=(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"***"}},kq=t=>!!(!t||t.tagName==="INPUT"&&Sq.has(t.type)||ob.test(t.name||"")||ob.test(t.id||"")||t.dataset?.analyze==="skip"),ub=t=>{if(!wq)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(R,"error",s=>{t.emit(ft("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(R,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(ft("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(R,"click",i=>{t.emit(ft("pointer","info",{hook:"click",target:qc(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:FF(i)}))},{passive:!0,capture:!0}),o(R,"dblclick",i=>{t.emit(ft("pointer","info",{hook:"dblclick",target:qc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(R,"contextmenu",i=>{t.emit(ft("pointer","info",{hook:"contextmenu",target:qc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=$F(i=>{t.emit(ft("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(R,"pointermove",s,{passive:!0})}if(e.keyboard&&o(R,"keydown",s=>{t.emit(ft("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:FF(s),target:qc(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=kq(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=xq(a.value,t.config.maskStrategy)),t.emit(ft("forms","info",{hook:i.type,target:qc(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(R,"input",s,{passive:!0,capture:!0}),o(R,"change",s,{passive:!0,capture:!0}),o(R,"submit",i=>{t.emit(ft("forms","info",{hook:"submit",target:qc(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=$F(()=>{t.emit(ft("scroll","trace",{hook:"scroll",x:R.scrollX,y:R.scrollY}))},n.scroll);o(R,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Ul(()=>{t.emit(ft("viewport","info",{hook:"resize",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))},n.resize);o(R,"resize",s,{passive:!0}),o(R,"orientationchange",()=>{t.emit(ft("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(R.document,"visibilitychange",()=>{t.emit(ft("viewport","info",{hook:"visibilitychange",hidden:R.document.hidden}))},{passive:!0}),t.emit(ft("viewport","info",{hook:"initial",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(ft("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(BF)}))}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(ft("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{}},FF=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),Eq=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=BF(t.cause)),e},BF=t=>{if(t==null)return t;if(t instanceof Error)return Eq(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};M();var vq=typeof R<"u"&&typeof R.document<"u",jF=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(ft("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},zd=t=>{if(vq&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof R.fetch=="function"){let e=R.fetch.bind(R),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(ft("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(ft("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(ft("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};R.fetch=n,t.__teardown.push(()=>{R.fetch=e})}if(typeof R.XMLHttpRequest=="function"){let e=R.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(ft("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(ft("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(ft("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 Aq={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},Cq={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Tq={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},Oq={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Rq=t=>{let e={...Aq,...t};return e.replay&&Object.assign(e,Cq),e.telemetry&&Object.assign(e,Tq),e.remote&&Object.assign(e,Oq),Object.assign(e,t),e},Pq=64,Lq=()=>{if(typeof R>"u"||!R.location)return null;try{let e=new URLSearchParams(R.location.search).get("analyze");return e||null}catch{return null}},VF=(t={})=>{let e=t===!0?{}:{...t};e.capture=Rq(e.capture||{});let n=Lq();(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=Vd(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=ib(r),r.__sinks=fb(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&&rb(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<Pq&&r.__preBuffer.push(s);return}o(),UF(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)UF(r,a)}try{ub(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{zd(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=Vd(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{zd(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},UF=(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 _C={};F(_C,{shorthandPlugin:()=>pb});var bC={};F(bC,{PRESERVE_VALUE_KEYS:()=>oe,SKIP_INLINE_KEYS:()=>qo,abbrToProp:()=>re,decode:()=>qF,encode:()=>HF,expand:()=>Ei,isComponentKey:()=>Nn,isSelectorKey:()=>$n,parse:()=>vi,parseFurther:()=>Ci,propToAbbr:()=>bn,shorten:()=>Wd,shorthandPlugin:()=>pb,stringify:()=>ki,stringifyFurther:()=>Ai});var bn={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"},re=Object.create(null);for(let t in bn)re[bn[t]]=t;var dC=Object.create(null);for(let t in bn){let e=bn[t];if(dC[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${dC[e]}"`);dC[e]=t}var oe=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),qo=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function Nn(t){return/^[A-Z]/.test(t)}function $n(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function HF(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=bn[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=>db(i));e.push(o+":"+s.join(","))}else e.push(o+":"+db(r))}return e.join(" ")}function db(t){return String(t).replace(/ /g,"_")}function Wd(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Wd(n):n});let e={};for(let n in t){let r=t[n];if(Nn(n)){e[n]=pC(r);continue}if($n(n)){e[n]=pC(r);continue}let o=bn[n]||n;if(oe.has(n)||oe.has(o)){e[o]=r;continue}e[o]=pC(r)}return e}function pC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Wd(e):e}):typeof t=="object"?Wd(t):t}function ki(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?ki(r):r});let e={},n=[];for(let r in t){let o=t[r];if(Nn(r)){e[r]=zF(o);continue}if($n(r)){e[r]=zF(o);continue}let s=bn[r]||r;if(oe.has(r)||oe.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(qo.has(r)||qo.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"?ki(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(db).join(","));continue}if(typeof o=="object"){e[s]=ki(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+":"+db(o))}return n.length&&(e.in=n.join(" ")),e}function zF(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ki(e):e}):typeof t=="object"?ki(t):t}function qF(t){if(!t||typeof t!="string")return{};let e={},n=GF(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=re[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=re[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=re[s]||s;if(i.includes(",")){e[a]=i.split(",").map(WF);continue}e[a]=WF(i)}return e}function GF(t){return t.trim().split(/\s+/).filter(Boolean)}function WF(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function KF(t){return t.replace(/_/g," ")}function Dq(t){if(!t||typeof t!="string")return{};let e={},n=GF(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=re[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=re[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=re[s]||s;if(i.includes(",")){e[a]=i.split(",").map(KF);continue}e[a]=KF(i)}return e}function Ei(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ei(n):n});let e={};for(let n in t){let r=t[n];if(Nn(n)){e[n]=hC(r);continue}let o=re[n]||n;if($n(n)&&o===n){e[n]=hC(r);continue}if(oe.has(o)||oe.has(n)){e[o]=r;continue}e[o]=hC(r)}return e}function hC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ei(e):e}):typeof t=="object"?Ei(t):t}function vi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?vi(n):n});let e={};if(typeof t.in=="string"){let n=Dq(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(Nn(n)){e[n]=gC(r);continue}let o=re[n]||n;if($n(n)&&o===n){e[n]=gC(r);continue}if(oe.has(o)||oe.has(n)){e[o]=r;continue}e[o]=gC(r)}return e}function gC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?vi(e):e}):typeof t=="object"?vi(t):t}function YF(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function Iq(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 Mq(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 XF(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 Ai(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ai(r):r});let e={},n=[];for(let r in t){let o=t[r];if(Nn(r)){let i=ZF(o);e[r]=XF(i)?i.in:i;continue}if($n(r)){let i=ZF(o);e[r]=XF(i)?i.in:i;continue}let s=bn[r]||r;if(oe.has(r)||oe.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(qo.has(r)||qo.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"?Ai(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(YF).join(","));continue}if(typeof o=="object"){e[s]=Ai(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+":"+YF(o))}return n.length&&(e.in=n.join(" ")),e}function ZF(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ai(e):e}):typeof t=="object"?Ai(t):t}function JF(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Iq(t)}function mC(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=re[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=re[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=re[s]||s,c=Mq(i);if(c.length>1){e[a]=c.map(JF);continue}e[a]=JF(i)}return e}function Ci(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ci(n):n});let e={};if(typeof t.in=="string"){let n=mC(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(Nn(n)){typeof r=="string"?e[n]=mC(r):e[n]=yC(r);continue}let o=re[n]||n;if($n(n)&&o===n){typeof r=="string"?e[n]=mC(r):e[n]=yC(r);continue}if(oe.has(o)||oe.has(n)){e[o]=r;continue}e[o]=yC(r)}return e}function yC(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ci(e):e}):typeof t=="object"?Ci(t):t}var Nq={shorten:Ei,stringify:vi,stringifyFurther:Ci};function $q(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 Fq=["components","pages","snippets"],pb={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=Nq[e===!0?"shorten":e];if(r){for(let o of Fq)t[o]&&(t[o]=$q(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var Kd={};F(Kd,{Inspect:()=>hb,inspectPlugin:()=>jq});M();function QF(t){return v(t)?t:I(t)?t.find(e=>v(e)):""}function wC(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&QF(t.extends),r=t.parent&&t.parent.childExtends&&QF(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function gb(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=wC(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?gb(t.parent):o&&(e[o]||n[o])?t:gb(t.parent)}var Bq=(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}))}},hb={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Bq,onMousemove:(t,e,n)=>{let r=t.target.ref,o=gb(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=wC(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=gb(r);if(!o)return;let s=wC(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(E(e)){let{Content:n,...r}=e;for(let o in r)Fc[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
|
+
`,Q7=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=J7,document.head.appendChild(t)},_F=(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")},tq=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},eq=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},nq=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],wF=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of nq){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)},rq='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',oq=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(rq)){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})}},tb={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(Q7(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),ki.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}ki.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 Yr(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 Yr(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":Gc(Yr(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 ZA(e,Yr(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=K(()=>{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,wF(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=tq(t.content)),_F(t,n),wF(t,n),eq(t),n.focusIn&&oq(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;_F(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=bF(t.node);t._lastSize=i;let a=Yr(s.anchor,i,s.placement);t.node.style.maxHeight=ZA(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Gc(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=bF(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=Yr(e.anchor,n,e.placement);t.node.style.maxHeight=ZA(e,s),t.node.style.left=s.left+"px",t.node.style.top=s.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Gc(s.side))}}}};var JA=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)},eb={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),JA(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&JA(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>JA(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var nb={extends:"smbls.Dropdown"},rb={extends:"smbls.DropdownList"},ob={extends:"smbls.DropdownParent"},sb={extends:"smbls.DropdownParentFocus"},ib={extends:"smbls.DropdownSiblingFocus"};var QA={DropdownRoot:tb,DropdownTrigger:eb,Dropdown:nb,DropdownList:rb,DropdownParent:ob,DropdownParentFocus:sb,DropdownSiblingFocus:ib};var nT={};F(nT,{DROPDOWN_DEFAULTS:()=>Go,closeDropdown:()=>ki,computePosition:()=>Yr,dropdownFunctions:()=>eT,fadeInTransform:()=>Gc,openDropdown:()=>Jy,setDropdownInert:()=>Qy});var eT={openDropdown:Jy,closeDropdown:ki,setDropdownInert:Qy};var lT={};F(lT,{components:()=>UF,functions:()=>VF});var sq=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),iq=(t,e,n,r,o)=>{let s=sq(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},SF=(t,e,n)=>Math.max(e,Math.min(n,t)),kF=(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=iq(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=SF(i,6,r-e.width-6),a=SF(a,6,o-e.height-6),{left:i,top:a,side:s}},xF={bottom:["0","-10%"],top:["0","10%"],left:["10%","0"],right:["-10%","0"]},EF=t=>(xF[t]||xF.bottom).join(" ");var Yo={placement:"bottom",theme:"dialog",delay:250,hideDelay:100,warmWindow:300},vF=t=>{if(!t||typeof t!="object")return null;let e=Number(t.left),n=Number(t.top),r=Number(t.width??t.right-t.left),o=Number(t.height??t.bottom-t.top),s={left:e,top:n,right:Number(t.right??e+r),bottom:Number(t.bottom??n+o),width:r,height:o};for(let i in s)if(!Number.isFinite(s[i]))return null;return s},aq=t=>!t||typeof t.getBoundingClientRect!="function"?null:vF(t.getBoundingClientRect()),oT=t=>t?.getRoot?.()?.TooltipRoot||null,sT=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},iT=t=>!!(t&&t.open!==!1&&t.size),AF=(t,e=Date.now())=>{let n=oT(t)?.state?.tip;return n?n.open!==!1?!0:typeof n.closedAt=="number"&&e-n.closedAt<Yo.warmWindow:!1},TF=(t,e,n=0)=>{let r=sT(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(()=>TF(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},cq=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},lq=0,fq=()=>`tooltip_${++lq}_${Date.now().toString(36)}`;function CF(t={}){let e=oT(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=vF(t.anchorRect);t.anchorRect!=null&&!r&&console.warn("[tooltip] openTooltip: anchorRect is not a rect ({ left, top, right, bottom, width, height }); the anchor element's own box is used.");let o=r||aq(n);if(!o)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let s=t.id||fq(),i=sT(e),a=iT(i),c={id:s,owner:t.owner||null,text:t.text||"",anchor:o,placement:t.placement||Yo.placement,theme:t.theme||Yo.theme,open:!0,glide:a,size:a?i.size:null};return e.state.update({tip:c}),cq(()=>TF(e,s)),s}function OF(t){let e=oT(this);if(!e)return;let n=sT(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=typeof t=="object"?t?.owner:null;o&&n.owner&&o!==n.owner||e.state.update({tip:{...n,open:!1,closedAt:Date.now()}})}var RF=t=>{let e=t.tip;return e?.anchor?kF(e.anchor,e.size||{width:0,height:0},e.placement):null},aT=t=>iT(t.tip),uq=t=>{let e=t.tip;return!e||e.open===!1?"Z opacity defaultBezier, Z translate defaultBezier, Z visibility defaultBezier, Z transform defaultBezier":e.size?e.glide?"A transform defaultBezier, A translate defaultBezier, A opacity defaultBezier, A visibility defaultBezier":"A opacity defaultBezier, A translate defaultBezier, A visibility defaultBezier":"Z opacity defaultBezier, Z visibility defaultBezier"},PF=t=>{let e=typeof window<"u"&&window.devicePixelRatio||1;return Math.round(t*e)/e},LF={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",left:"0",top:"0",tip:(t,e)=>e?.tip||null,transform:t=>{let e=RF(t);return e?`translate3d(${PF(e.left)}px, ${PF(e.top)}px, 0)`:"translate3d(-9999px, -9999px, 0)"},translate:t=>{if(aT(t))return"0 0";let e=RF(t);return EF(e?e.side:"bottom")},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Yo.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>aT(t)?"1":"0",visibility:t=>aT(t)?"visible":"hidden",transition:t=>uq(t)}};var cT=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},dq=0,NF=t=>t._tooltipOwner||(t._tooltipOwner=`tooltip_trigger_${++dq}`),DF=t=>{t.tooltipText&&(cT(t),t.call("openTooltip",{anchorEl:t,anchorRect:t.tooltipAnchorRect||void 0,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key,owner:NF(t)}))},IF=t=>{if(t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),AF(t)){t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),DF(t);return}t._tooltipShowTimer||(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,DF(t)},t.tooltipDelay??Yo.delay))},MF=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",{id:t.tooltipId||t.key,owner:NF(t)})},t.tooltipHideDelay??Yo.hideDelay))},$F={onMouseenter:(t,e)=>IF(e),onMouseleave:(t,e)=>MF(e),onFocus:(t,e)=>IF(e),onBlur:(t,e)=>MF(e),onMouseover:(t,e)=>cT(e),onFocusin:(t,e)=>cT(e)};var FF={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)}},BF={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]},jF={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 UF={TooltipRoot:LF,TooltipTrigger:$F,Tooltip:FF,TooltipHidden:BF,TooltipParent:jF};var VF={openTooltip:CF,closeTooltip:OF};var Gd={};F(Gd,{LEVELS:()=>Wd,analyzePlugin:()=>ab,attachBrowserListeners:()=>mb,attachNetworkListeners:()=>qd,classifyEvent:()=>mT,createAnalyzeState:()=>JF,createBeaconSink:()=>_T,createConsoleSink:()=>yT,createDedupe:()=>pT,createEnrich:()=>uT,createMemorySink:()=>bT,createPipeline:()=>ub,createRedact:()=>fb,createRemoteSink:()=>pb,createSample:()=>hT,createSummarize:()=>dT,default:()=>ab,emitFetchEvent:()=>XF,makeEvent:()=>ft,meetsLevel:()=>cb,normalizeLevel:()=>Kd,resolveSinks:()=>gb,summarizeElement:()=>Ei});var pq=0,hq=()=>`${Date.now().toString(36)}-${(pq++).toString(36)}`,ft=(t,e,n={})=>({id:hq(),ts:Date.now(),type:t,level:e,...n}),gq=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(" > ")},Ei=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:gq(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Yc=t=>t?.context?.analyze,mq={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"}},yq=(t,{category:e,type:n,level:r})=>o=>{let s=Yc(o);!s||!s.shouldCapture(e)||s.emit(ft(n,r,{hook:t,element:Ei(o)}))},zF=t=>(e,n)=>{let r=Yc(e);!r||!r.shouldCapture("state")||r.emit(ft("state","debug",{hook:t,element:Ei(e),changedKeys:n?.changedKeys||null}))},ab={name:"analyze",error(t,e){let n=Yc(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(ft("error","error",{hook:e?.hook||"error",element:Ei(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Yc(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(ft("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Yc(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Yc(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(ft("update","debug",{hook:"update",element:Ei(t),durationMs:n}))},beforeStateUpdate:zF("beforeStateUpdate"),stateUpdate:zF("stateUpdate")};for(let[t,e]of Object.entries(mq))ab[t]=yq(t,e);M();var Wd={error:0,warn:1,info:2,debug:3,trace:4};var cb=(t,e)=>{let n=Wd[t],r=Wd[e];return n==null||r==null?!0:n<=r},Kd=t=>Wd[t]!=null?t:"warn";M();var lb=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var bq=(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},_q=(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"***"}},fT=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>fT(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(bq(s,e)||lb.test(s)){let a=_q(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=fT(t[s],e,n,r+1);return o},fb=(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=fT(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 uT=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=R,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}}}},dT=()=>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},pT=(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}},hT=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},HF={redact:t=>fb(t.config.redact||[],t.config.maskStrategy),enrich:t=>uT(t),summarize:()=>dT(),dedupe:t=>pT(t.config.cache?.dedupeWindowMs||1e3),sample:t=>hT(t.config.sample||{})},wq=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=HF[t];return n?n(e):null}return null},ub=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(HF.redact(t));for(let s of n){let i=wq(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 db=typeof R<"u"&&typeof R.document<"u",Sq=5e3,xq=50,kq=3,Eq=1500,vq=1e3,mT=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",Aq=t=>{try{return JSON.stringify(t)}catch{return null}},Tq=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Cq=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}},Oq=()=>{if(!db)return null;try{let t=R.document?.documentElement?.getAttribute("data-theme")||null,e=typeof R.matchMedia=="function"?R.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}},Rq=()=>{if(!db)return null;let t=R.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:R.document?.referrer||null,title:R.document?.title||null,ua:e?.userAgent||null,browser:Cq(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:Tq(),viewport:R.innerWidth?{w:R.innerWidth,h:R.innerHeight,dpr:R.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:Oq()}},pb=(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:mT,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:Sq,y=t.maxBatch||xq,x=t.maxRetries!=null?t.maxRetries:kq,E=t.backoffMs||Eq,T=t.queueLimit||vq,_=t.sampleRate!=null?t.sampleRate:1,b=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,w=t.sessionId||b(),S=[],A=[],C=null,O=null,B=()=>{C||!S.length||(C=setTimeout(Y,m))},$=Z=>{if(O)return;let Q=E*Math.pow(2,Math.max(0,Z-1));O=setTimeout(()=>{if(O=null,!A.length)return;let it=A.shift();G(it.envelope,it.attempt)},Q)},N=(Z,Q=!1)=>{let it=u?gT(u):null,rt={id:w,sentAt:Date.now()};Q&&(rt.endedAt=Date.now());let gt={v:1,session:rt,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:Rq(),user:it?.user||null,traits:it?.traits||null,tags:it?.tags||null,events:Z};if((h?gT(h)===!0:g)&&(gt.app.debug=!0),p)try{return p(gt)||null}catch{return gt}return gt},G=async(Z,Q=1)=>{if(Z)try{let it=!0;if(n){let rt=await n(Z);it=rt!==!1&&rt?.ok!==!1}else it=await Pq(e,Z,{apiKey:o,getAuth:f});!it&&Q<x&&(A.push({envelope:Z,attempt:Q+1}),$(Q+1))}catch{Q<x&&(A.push({envelope:Z,attempt:Q+1}),$(Q+1))}},Y=(Z=!1,Q=!1)=>{if(C&&(clearTimeout(C),C=null),!S.length&&!Q)return;let it=S;S=[];let rt=N(it,Q);if(rt){if(Z&&db){if(typeof r=="function"&&gT(()=>r(rt)))return;if(navigator.sendBeacon&&e){let gt=Aq(rt);if(gt)try{navigator.sendBeacon(e,new R.Blob([gt],{type:"application/json"}));return}catch{}}}G(rt)}},nt=!1,ot=()=>{nt||(nt=!0,Y(!0,!0))};db&&(R.addEventListener("pagehide",ot,{passive:!0}),R.addEventListener("beforeunload",ot,{passive:!0}),R.addEventListener("visibilitychange",()=>{R.document.visibilityState==="hidden"&&Y(!0)},{passive:!0}));let st=Z=>{if(!Z||_<1&&Math.random()>_)return;nt&&(nt=!1);let Q={...Z,log_type:d(Z)};S.push(Q),S.length>T&&(S=S.slice(-T)),S.length>=y?Y():B()},J=Z=>(Y(!1,!0),w=Z||b(),nt=!1,st.sessionId=w,w);return st.flush=()=>Y(!1),st.endSession=ot,st.startNewSession=J,st.sessionId=w,st},gT=t=>{try{return t()}catch{return null}},Pq=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 Lq={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},Dq="\x1B[0m",hb=typeof R<"u"&&typeof R.document<"u",yT=(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(hb)i(a,s);else{let c=Lq[s.level]||"";i(`${c}${a}${Dq}`,s)}}},bT=(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},_T=(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=hb?new R.Blob([c],{type:"application/json"}):c;if(hb&&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(()=>{})};hb&&(R.addEventListener("pagehide",i,{passive:!0}),R.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},WF={console:yT,memory:bT,beacon:_T,remote:pb},KF=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},gb=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=WF[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?KF(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=WF[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?KF(t,r):r))}return n};M();var Iq=typeof R<"u"&&typeof R.document<"u",Mq=new Set(["password","hidden"]),qF=(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))))}},wT="__analyzeKeyPath",Xc=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[wT])return e[wT];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[wT]=i}catch{}return i},Nq=(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"***"}},$q=t=>!!(!t||t.tagName==="INPUT"&&Mq.has(t.type)||lb.test(t.name||"")||lb.test(t.id||"")||t.dataset?.analyze==="skip"),mb=t=>{if(!Iq)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(R,"error",s=>{t.emit(ft("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(R,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(ft("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(R,"click",i=>{t.emit(ft("pointer","info",{hook:"click",target:Xc(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:GF(i)}))},{passive:!0,capture:!0}),o(R,"dblclick",i=>{t.emit(ft("pointer","info",{hook:"dblclick",target:Xc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(R,"contextmenu",i=>{t.emit(ft("pointer","info",{hook:"contextmenu",target:Xc(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=qF(i=>{t.emit(ft("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(R,"pointermove",s,{passive:!0})}if(e.keyboard&&o(R,"keydown",s=>{t.emit(ft("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:GF(s),target:Xc(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=$q(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=Nq(a.value,t.config.maskStrategy)),t.emit(ft("forms","info",{hook:i.type,target:Xc(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(R,"input",s,{passive:!0,capture:!0}),o(R,"change",s,{passive:!0,capture:!0}),o(R,"submit",i=>{t.emit(ft("forms","info",{hook:"submit",target:Xc(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=qF(()=>{t.emit(ft("scroll","trace",{hook:"scroll",x:R.scrollX,y:R.scrollY}))},n.scroll);o(R,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Hl(()=>{t.emit(ft("viewport","info",{hook:"resize",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))},n.resize);o(R,"resize",s,{passive:!0}),o(R,"orientationchange",()=>{t.emit(ft("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(R.document,"visibilitychange",()=>{t.emit(ft("viewport","info",{hook:"visibilitychange",hidden:R.document.hidden}))},{passive:!0}),t.emit(ft("viewport","info",{hook:"initial",w:R.innerWidth,h:R.innerHeight,dpr:R.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(ft("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(YF)}))}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(ft("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{}},GF=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),Fq=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=YF(t.cause)),e},YF=t=>{if(t==null)return t;if(t instanceof Error)return Fq(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};M();var Bq=typeof R<"u"&&typeof R.document<"u",XF=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(ft("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},qd=t=>{if(Bq&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof R.fetch=="function"){let e=R.fetch.bind(R),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(ft("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(ft("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(ft("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};R.fetch=n,t.__teardown.push(()=>{R.fetch=e})}if(typeof R.XMLHttpRequest=="function"){let e=R.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(ft("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(ft("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(ft("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 jq={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},Uq={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Vq={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},zq={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Hq=t=>{let e={...jq,...t};return e.replay&&Object.assign(e,Uq),e.telemetry&&Object.assign(e,Vq),e.remote&&Object.assign(e,zq),Object.assign(e,t),e},Wq=64,Kq=()=>{if(typeof R>"u"||!R.location)return null;try{let e=new URLSearchParams(R.location.search).get("analyze");return e||null}catch{return null}},JF=(t={})=>{let e=t===!0?{}:{...t};e.capture=Hq(e.capture||{});let n=Kq();(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=Kd(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=ub(r),r.__sinks=gb(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&&cb(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<Wq&&r.__preBuffer.push(s);return}o(),ZF(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)ZF(r,a)}try{mb(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{qd(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=Kd(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{qd(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},ZF=(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 CT={};F(CT,{shorthandPlugin:()=>bb});var TT={};F(TT,{PRESERVE_VALUE_KEYS:()=>se,SKIP_INLINE_KEYS:()=>Xo,abbrToProp:()=>oe,decode:()=>rB,encode:()=>tB,expand:()=>Ai,isComponentKey:()=>Fn,isSelectorKey:()=>Bn,parse:()=>Ti,parseFurther:()=>Oi,propToAbbr:()=>xn,shorten:()=>Yd,shorthandPlugin:()=>bb,stringify:()=>vi,stringifyFurther:()=>Ci});var xn={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"},oe=Object.create(null);for(let t in xn)oe[xn[t]]=t;var ST=Object.create(null);for(let t in xn){let e=xn[t];if(ST[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${ST[e]}"`);ST[e]=t}var se=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Xo=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function Fn(t){return/^[A-Z]/.test(t)}function Bn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function tB(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=xn[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=>yb(i));e.push(o+":"+s.join(","))}else e.push(o+":"+yb(r))}return e.join(" ")}function yb(t){return String(t).replace(/ /g,"_")}function Yd(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Yd(n):n});let e={};for(let n in t){let r=t[n];if(Fn(n)){e[n]=xT(r);continue}if(Bn(n)){e[n]=xT(r);continue}let o=xn[n]||n;if(se.has(n)||se.has(o)){e[o]=r;continue}e[o]=xT(r)}return e}function xT(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Yd(e):e}):typeof t=="object"?Yd(t):t}function vi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?vi(r):r});let e={},n=[];for(let r in t){let o=t[r];if(Fn(r)){e[r]=QF(o);continue}if(Bn(r)){e[r]=QF(o);continue}let s=xn[r]||r;if(se.has(r)||se.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Xo.has(r)||Xo.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"?vi(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(yb).join(","));continue}if(typeof o=="object"){e[s]=vi(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+":"+yb(o))}return n.length&&(e.in=n.join(" ")),e}function QF(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?vi(e):e}):typeof t=="object"?vi(t):t}function rB(t){if(!t||typeof t!="string")return{};let e={},n=oB(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=oe[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=oe[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=oe[s]||s;if(i.includes(",")){e[a]=i.split(",").map(eB);continue}e[a]=eB(i)}return e}function oB(t){return t.trim().split(/\s+/).filter(Boolean)}function eB(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function nB(t){return t.replace(/_/g," ")}function qq(t){if(!t||typeof t!="string")return{};let e={},n=oB(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=oe[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=oe[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=oe[s]||s;if(i.includes(",")){e[a]=i.split(",").map(nB);continue}e[a]=nB(i)}return e}function Ai(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ai(n):n});let e={};for(let n in t){let r=t[n];if(Fn(n)){e[n]=kT(r);continue}let o=oe[n]||n;if(Bn(n)&&o===n){e[n]=kT(r);continue}if(se.has(o)||se.has(n)){e[o]=r;continue}e[o]=kT(r)}return e}function kT(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ai(e):e}):typeof t=="object"?Ai(t):t}function Ti(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Ti(n):n});let e={};if(typeof t.in=="string"){let n=qq(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(Fn(n)){e[n]=ET(r);continue}let o=oe[n]||n;if(Bn(n)&&o===n){e[n]=ET(r);continue}if(se.has(o)||se.has(n)){e[o]=r;continue}e[o]=ET(r)}return e}function ET(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ti(e):e}):typeof t=="object"?Ti(t):t}function sB(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function Gq(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 Yq(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 iB(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 Ci(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ci(r):r});let e={},n=[];for(let r in t){let o=t[r];if(Fn(r)){let i=aB(o);e[r]=iB(i)?i.in:i;continue}if(Bn(r)){let i=aB(o);e[r]=iB(i)?i.in:i;continue}let s=xn[r]||r;if(se.has(r)||se.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Xo.has(r)||Xo.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"?Ci(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(sB).join(","));continue}if(typeof o=="object"){e[s]=Ci(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+":"+sB(o))}return n.length&&(e.in=n.join(" ")),e}function aB(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ci(e):e}):typeof t=="object"?Ci(t):t}function cB(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Gq(t)}function vT(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=oe[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=oe[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=oe[s]||s,c=Yq(i);if(c.length>1){e[a]=c.map(cB);continue}e[a]=cB(i)}return e}function Oi(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Oi(n):n});let e={};if(typeof t.in=="string"){let n=vT(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(Fn(n)){typeof r=="string"?e[n]=vT(r):e[n]=AT(r);continue}let o=oe[n]||n;if(Bn(n)&&o===n){typeof r=="string"?e[n]=vT(r):e[n]=AT(r);continue}if(se.has(o)||se.has(n)){e[o]=r;continue}e[o]=AT(r)}return e}function AT(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Oi(e):e}):typeof t=="object"?Oi(t):t}var Xq={shorten:Ai,stringify:Ti,stringifyFurther:Oi};function Zq(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 Jq=["components","pages","snippets"],bb={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=Xq[e===!0?"shorten":e];if(r){for(let o of Jq)t[o]&&(t[o]=Zq(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var Xd={};F(Xd,{Inspect:()=>_b,inspectPlugin:()=>tG});M();function lB(t){return v(t)?t:I(t)?t.find(e=>v(e)):""}function OT(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&lB(t.extends),r=t.parent&&t.parent.childExtends&&lB(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function wb(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=OT(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?wb(t.parent):o&&(e[o]||n[o])?t:wb(t.parent)}var Qq=(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}))}},_b={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Qq,onMousemove:(t,e,n)=>{let r=t.target.ref,o=wb(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=OT(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=wb(r);if(!o)return;let s=OT(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(k(e)){let{Content:n,...r}=e;for(let o in r)Uc[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=`
|
|
161
161
|
display: block !important;
|
|
162
162
|
top: ${a-6}px;
|
|
163
163
|
left: ${i-6}px;
|
|
164
164
|
width: ${c+12}px;
|
|
165
165
|
height: ${l+12}px;
|
|
166
|
-
`}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},jq={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(hb):t.extends?t.extends=[t.extends,hb]:t.extends=[hb]}};var QC={};F(QC,{DefaultSyncApp:()=>RG,FORBIDDEN_SEGMENTS:()=>qd,Notifications:()=>bb,SyncComponent:()=>JC,applyOpsToCtx:()=>Gd,connectToSocket:()=>ZB,deletePath:()=>SC,isSafePath:()=>mb,liveSyncTransport:()=>yb,notificationsPlugin:()=>IG,onOps:()=>vC,onSnapshot:()=>EC,seedRawDesignSystem:()=>Gc,setPath:()=>xC,syncPlugin:()=>DG,wantsLiveSync:()=>Ti});M();M();var qd=new Set(["__proto__","constructor","prototype"]),mb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(qd.has(t[e]))return!1;return!0},SC=(t,e)=>{!t||!mb(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},xC=(t,e,n,r=!1)=>{!t||!mb(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)},Gd=(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":SC(t,o);break;case"update":case"set":xC(t,o,s,!0);break;default:break}return n},eB=(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))qd.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},Uq=()=>typeof R<"u"&&!!R&&!!R.__SYMBOLS_ENV__,Vq=()=>{try{if(R.self!==R.top)return!0}catch{return!0}try{return new URLSearchParams(R.location.search).has("liveSync")}catch{return!1}},tB=Object.freeze({mode:null,baseUrl:null}),yb=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?Uq()&&!Vq()?tB:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:tB},Ti=t=>yb(t).mode!==null,Gc=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},nB=(t,e,n,r="designSystem")=>{for(let o in e){if(qd.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]={}}nB(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},kC=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Gd(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return Nf(n,r,nB)};M();var EC=(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(Gc(n,c),r){let l=kC(n);l&&fr(l)}}else fs(n[a],c);else n[a]=c}),r=!0,i&&(n.schema=i))}},vC=(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=Gd(n,i);if(s.length&&a.add("designSystem"),a.has("designSystem")){let c=kC(n,s);c?fr(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=eB(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 zq={success:"green",error:"red",warning:"yellow"},rB=(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)}},bb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:zq[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 EG=!1,vG=()=>EG?"http://localhost:8080":"https://api.symbols.app",ZC=null,AG=()=>(ZC||(ZC=Promise.resolve().then(()=>(YB(),GB)).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))),ZC),CG=async t=>{try{let e=t||vG(),n=await R.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)}},XB=(t,e,n,r)=>{t.on("snapshot",EC(e,n,r)),t.on("ops",vC(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&rB(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},TG=async(t,e,n,r,o)=>{let s=await CG(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)")}),XB(l,t,e,n),l},OG=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)")}),XB(s,t,e,n),s.on("reload",()=>{typeof R<"u"&&R.location&&R.location.reload()}),s},ZB=async(t,e,n)=>{let{mode:r,baseUrl:o}=yb(n);if(!r)return null;let s=AG();return r==="collab"?TG(t,e,n,o,s):r==="runner"?OG(t,e,n,s):null},JC={onInit:ZB},RG={extends:[JC,bb]},JB=t=>typeof t>"u",PG=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),LG=t=>t?.editor?.runtime==="runner",QB=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},DG={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!JB(n.liveSync)?n.liveSync:Ti(e))&&(PG(e)&&!LG(e)&&!e?.key||QB(t,JC))}},IG={name:"notifications",beforeCreate(t,e){if(!e)return;let n=JB(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&QB(t,bb)}};$h();var eT={};F(eT,{fetchAsync:()=>BG,fetchSync:()=>FG});M();var tj=R&&R.location&&typeof R.location.host=="string"?R.location.host:null,tT=tj!==null?tj.includes("dev."):oo(),ej=tT?"http://localhost:8080/get":"https://api.symbols.app/get",MG={endpoint:ej},nj=async(t,e=MG)=>{let n=e.endpoint||ej,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(L(e.onError))return e.onError(s);console.error(s)}},NG=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await nj(t,n),o=tT||e.isDevelopment?be(r):be(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},$G=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await nj(t,r),s=tT||e.isDevelopment?be(o):be(o.releases[0]);n(s)}},FG=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await NG(t,e)}catch(n){console.error(n)}},BG=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&$G(e,n,r||(o=>{let s=o.designSystem;E(s)&&n.utils.init(s),E(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var jG={windows:()=>Promise.resolve(BA),dropdown:()=>Promise.resolve(GA),tooltip:()=>Promise.resolve(tC),analyze:()=>Promise.resolve(Hd),shorthand:()=>Promise.resolve(_C),inspect:()=>Promise.resolve(Kd),sync:()=>globalThis.__SMBLS_BUILD_DROP_F_liveSync__?Promise.resolve(qt("liveSync")):Promise.resolve(QC),fetch:()=>Promise.resolve(ga),fetchOnCreate:()=>Promise.resolve(eT)},qe=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),rj=t=>{let e=[];return t.shorthand&&e.push("shorthand"),t.analyze&&!qe(t,"analyze")&&e.push("analyze"),t.inspect&&!qe(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},sp={},oj={},he=t=>{if(sp[t])return sp[t];let e=jG[t];return e?(sp[t]=e().then(n=>(oj[t]=n,n),n=>(delete sp[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),sp[t]):Promise.resolve(null)},nl=t=>oj[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{pn(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 aT={};F(aT,{Helmet:()=>Aj,applyElementMetadata:()=>Bb,applyMetadata:()=>WG,default:()=>cY,extractMetadata:()=>zG,generateHeadHtml:()=>aY,helmetPlugin:()=>jb,resolveMetadata:()=>ip});M();Mt();var _n={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"}},Jr=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){let e=`${t.tag}[${t.attr}="${t.key}"]`;return t.key==="theme-color"?`${e}:not([data-smbls-theme-color])`:e}},sj=t=>be({v:t}).v,ij=(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}},Mb=Object.freeze({authored:!0}),ip=(t,e,n,r)=>{if(!t)return{};let o=t;v(o)&&se(o)&&(o=sj(o));let s=L(o),i=!s&&r?.authored===!0,a=s?ij(o,e,n,"metadata"):E(o)?{...o}:{};if(!E(a))return{};for(let c in a){let l=a[c],f=i&&v(l)&&!se(l);v(l)&&se(l)&&(l=sj(l)),L(l)?l=ij(l,e,n,c):v(l)&&se(l)&&(l=void 0),v(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,Mb):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},UG=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),VG=(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(UG(t[n]))return t[n]},zG=(t,e="/",n,r,o)=>{let s=t.pages||{},i=VG(s,e),a={};if(t.integrations?.seo&&(a={...t.integrations.seo}),t.app?.metadata){let f=ip(t.app.metadata,n,r,Mb);a={...a,...f}}let c=new Set;if(i){let f=i.metadata||i.helmet||{},u=o?ip(f,o,o.state,Mb):ip(f,n,r,Mb);for(let d in u)c.add(d);a={...a,...u},!a.title&&i.state?.title&&(a.title=i.state.title,c.add("title")),!a.description&&i.state?.description&&(a.description=i.state.description,c.add("description"))}a.title||(a.title=t.name||"Symbols"),a.title&&(c.has("title")||!a["og:title"])&&(c.has("og:title")||(a["og:title"]=a.title)),a.description&&(c.has("description")||!a["og:description"])&&(c.has("og:description")||(a["og:description"]=a.description)),a.title&&!a["twitter:title"]&&(a["twitter:title"]=a.title),a.description&&!a["twitter:description"]&&(a["twitter:description"]=a.description);let l=c.has("og:url")?a["og:url"]:c.has("url")?a.url:void 0;if(l)a["og:url"]=l;else if(a["og:url"]||a.url){let f=(a["og:url"]||a.url||"").replace(/\/$/,"");if(f&&e&&e!=="/"){let u=e.startsWith("/")?e:"/"+e;a["og:url"]=f+u}}return Os(a,As(t.files,t.sharedLibraries))},dj=(t,e)=>Os(ip(t,e,e.state),e.context?.files),pj=t=>t.context?.document||typeof document<"u"&&document,hj=t=>Object.prototype.hasOwnProperty.call(_n,t),$b=new Map;for(let t in _n){let e=Jr(_n[t]);$b.has(e)||$b.set(e,_n[t])}var Fb=t=>t.head||t.querySelector("head"),oT=(t,e)=>{let n=Fb(t);return n?n.querySelector(e):null},nT=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),sT=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},iT=(t,e)=>{let n=Fb(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},Bi=(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))}},gj=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>v(s)?s:JSON.stringify(s)),o=r.map(Tn);Bi(t,"data-smbls-jsonld",o,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},mj=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Tn);Bi(t,"data-smbls-style",r,(o,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},yj=t=>(t||[]).filter(e=>e&&(v(e)?e.trim():e.src)),bj=t=>v(t)?t:String(t.src),_j=(t,e)=>{let n=t.createElement("script");return v(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},HG=(t,e)=>{let n=yj(e),r=n.map(bj);Bi(t,"data-smbls-script",r,(o,s)=>_j(t,n[s]))},wj=(t,e)=>{let n=(e||[]).filter(o=>E(o)),r=n.map(Cs);Bi(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})},Sj=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(mo);Bi(t,"data-smbls-favicon",r,(o,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),E(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},xj=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";Bi(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})},kj=(t,e)=>{let n=(e||[]).filter(o=>E(o)),r=n.map(Ts);Bi(t,"data-smbls-theme-color",r,(o,s)=>{let i=n[s],a=t.createElement("meta");return a.setAttribute("name","theme-color"),i.content!==void 0&&a.setAttribute("content",i.content),i.media!==void 0&&a.setAttribute("media",i.media),a})},WG=(t,e)=>{if(!(!E(t)||!e)){for(let n in t){let r=t[n];if(r==null||!hj(n)||n==="theme-color"&&Array.isArray(r))continue;let o=_n[n],s=oT(e,Jr(o))||iT(o,e);s&&sT(s,o,r)}Array.isArray(t.jsonLd)&&gj(e,t.jsonLd),Array.isArray(t.styles)&&mj(e,t.styles),Array.isArray(t.scripts)&&HG(e,t.scripts),Array.isArray(t.alternate)&&wj(e,t.alternate),Array.isArray(t.favicons)&&Sj(e,t.favicons),(t.icon||t.favicon)&&xj(e,t.icon||t.favicon),Array.isArray(t["theme-color"])&&kj(e,t["theme-color"])}},aj=new WeakMap,rT=new WeakMap,Ej=t=>{let e=t.location;return e&&v(e.pathname)?e.pathname:null},KG=t=>{let e=aj.get(t);return e||(e={doc:t,layers:[],servedPath:Ej(t),originals:new Map,owned:new Set,lists:new Set},aj.set(t,e)),e},qG=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},cj=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},GG=t=>{if(!E(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},YG=(t,e)=>{let n=rT.get(t);if(n)return n;let r=KG(e),o={element:t,values:null,signature:cj(null),disposed:!1,set(i){if(o.disposed)return;let a=cj(i);o.values=i,!(a!==null&&a===o.signature)&&(o.signature=a,fj(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);if(i!==-1&&r.layers.splice(i,1),!GG(o.values))try{fj(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(qG(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),rT.set(t,o),o},vj=(t,e,n,r)=>{let o=YG(t,e),s=K(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},XG=Jr(_n.title),ZG=Jr(_n.description),JG=Jr(_n["og:title"]),QG=Jr(_n["og:description"]),tY=Jr(_n["twitter:title"]),eY=Jr(_n["twitter:description"]),lj=(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)},Nb={jsonLd:gj,styles:mj,alternate:wj,favicons:Sj,icon:xj,"theme-color":kj},nY=Object.keys(Nb).filter(t=>t!=="icon"),rY=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!E(s))continue;for(let a in s){let c=s[a];c==null||!hj(a)||a==="theme-color"&&Array.isArray(c)||e.set(Jr(_n[a]),{value:String(c),rank:o})}for(let a of nY)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 lj(e,XG,JG,tY),lj(e,ZG,QG,eY),{tags:e,lists:n,scripts:r}},oY=(t,e,n)=>{let{doc:r,originals:o}=t,s=$b.get(e),i=oT(r,e),a=o.get(e);a||(a={value:i?nT(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=iT(s,r)),i&&(nT(i,s)!==n&&sT(i,s,n),t.owned.add(e))},sY=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=$b.get(e),o=oT(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&Ej(n)===t.servedPath){let a=o||iT(r,n);a&&nT(a,r)!==s.value&&sT(a,r,s.value)}else o&&o.remove()},iY=(t,e)=>{let n=yj(e);if(!n.length)return;let r=Fb(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=bj(s);if(o.has(i))continue;let a=_j(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},fj=t=>{let{doc:e}=t;if(!Fb(e))return;let{tags:n,lists:r,scripts:o}=rY(t.layers);for(let s of[...t.owned])n.has(s)||sY(t,s);for(let[s,{value:i}]of n)oY(t,s,i);for(let s in Nb)r[s]!==void 0?(Nb[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&Nb[s](e,null);iY(e,o)},aY=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>${U(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${U(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${U(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=U(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(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${U(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${U(mo(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${U(f)}" data-smbls-favicon="${U(mo(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${U(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${U(Cs(f))}">`)}});continue}if(o==="theme-color"&&Array.isArray(s)){s.forEach(f=>{if(!E(f))return;let u=['name="theme-color"'];f.content!==void 0&&u.push(`content="${U(f.content)}"`),f.media!==void 0&&u.push(`media="${U(f.media)}"`),u.push(`data-smbls-theme-color="${U(Ts(f))}"`),e.push(`<meta ${u.join(" ")}>`)});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="${U(f)}" content="${U(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${U(f)}" content="${U(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${U(o)}" content="${U(f)}">`)):e.push(`<meta property="${U(o)}" content="${U(s)}">`):l?e.push(`<meta name="${U(o)}" content="${U(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${U(o)}" content="${U(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${U(o)}" content="${U(s)}">`)}return r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...Ta(t)),e.join(`
|
|
167
|
-
`)},Aj={define:{metadata:(t,e)=>{Bb(t,e,n=>{let r=e.state?.root;E(r)&&(r.$helmet=n)})}}},Bb=(t,e,n)=>{let r=pj(e);r&&vj(e,r,()=>dj(t,e),n)},uj=t=>{let e=t.metadata;return e?dj(e,t):null},jb={name:"helmet",create(t){if(!t.metadata)return;let e=pj(t);e&&vj(t,e,()=>uj(t))},update(t){let e=rT.get(t);if(!e)return jb.create(t);e.disposed||e.set(uj(t))}},cY=Aj;var Cj=(t,e,n,r)=>{if(!t||!r?.fetch)return;let o=nl("fetch");if(o){o.executeFetch(t,e,n,r);return}he("fetch").then(s=>{s&&s.executeFetch(t,e,n,r)})},Tj=(t,e)=>{t&&Bb(t,e)},Oj=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},rl={routes:t=>t,metadata:Tj,fetch:Cj,$router:Oj},Rj=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=Tj),t.fetch!==!1&&(e.fetch=Cj),t.router!==!1&&(e.$router=Oj),e};var cT={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Ub={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},lT={...cT,router:Ub},lY={state:{},pages:{},components:{},router:Ub,define:rl},Yo=lY;M();M();var Pj=(t,e)=>V(t.extends)?t.extends:[];M();var Lj=(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 va(t,Aa))r[o]||(r[o]=s);return r};var fT={};F(fT,{apiUrl:()=>Vb,channelByApiUrl:()=>Nj,channelNames:()=>uY,channels:()=>Le,currentChannel:()=>Xo,defaultChannel:()=>wY,deployTarget:()=>yY,isKnownChannel:()=>_Y,mermaidUrl:()=>mY,normalizeOwnerSegment:()=>SY,normalizeProjectKey:()=>kY,normalizeProjectSlug:()=>xY,parseSymboLsHost:()=>EY,previewProjectUrl:()=>gY,previewUrl:()=>$j,resolveChannel:()=>Ui,screenshotCdnHost:()=>Fj,screenshotCdnUrl:()=>bY,setChannel:()=>dY,shellUrl:()=>hY,socketUrl:()=>pY});var Le={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 uY=Object.keys(Le.channels),Bn=t=>!!(t&&Le.channels[t]),Ui=t=>Bn(t)?Le.channels[t]:Le.channels[Le.defaultChannel],dY=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Bn(t)?t:null,ol=void 0)},ol,ji=t=>typeof process<"u"&&process.env&&process.env[t]||null,Xo=()=>{if(ol!==void 0)return ol;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=ji("SYMBOLS_CHANNEL"),n=ji("NODE_ENV"),r=ji("SYMBOLS_API_URL")||ji("SYMBOLS_API_BASE_URL"),o=r?Nj(String(r).trim().replace(/\/+$/,"")):null;return ol=Bn(t)&&t||Bn(e)&&e||Bn(o)&&o||Bn(n)&&n||Le.defaultChannel,ol===Le.defaultChannel&&!Bn(t)&&!Bn(e)&&!Bn(o)&&!Bn(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 "${Le.defaultChannel}". Outbound URLs (shellUrl${r?"":"/apiUrl"}) will target production`+(r?` (the API follows ${r}, which is no known channel)`:"")+"; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel."),ol},Dj=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],Ij=t=>{let e=Dj.indexOf(t);return e===-1?Dj.length:e},Nj=t=>{if(!t)return null;let e=Object.keys(Le.channels).filter(n=>Le.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>Ij(n)-Ij(r))[0]},Vb=(t=Xo())=>ji("SYMBOLS_API_URL")||Ui(t).api,pY=(t=Xo())=>ji("SYMBOLS_SOCKET_URL")||Ui(t).socket,hY=(t=Xo())=>Ui(t).shell||null,$j=(t=Xo())=>Ui(t).preview||null,gY=({owner:t,key:e,env:n="production"}={},r=Xo())=>{let o=$j(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)}`},mY=({owner:t,key:e,env:n="production"}={},r=Xo())=>{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}`},yY=(t=Xo())=>Ui(t).deploy||{},Fj=()=>ji("SYMBOLS_SCREENSHOT_CDN")||Le.screenshotCdn,bY=({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://${Fj()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},_Y=Bn,wY=Le.defaultChannel,SY=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",xY=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",kY=(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},Mj={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},EY=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=Mj[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?Mj[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 jj=t=>{let e={faces:0,links:0,kept:0};if(!t)return e;let n=TY(Zn());for(let r in t){let o=t[r];if(!o||!o.fontFace)continue;let s=Array.isArray(o.fontFace)?o.fontFace:[o.fontFace];for(let i of s){if(Uj(i)){let a=AY(i);a&&CY(a)&&e.links++;continue}if(vY(i)){if(!Bj(i))continue;if(n.has(uT(i))){e.kept++;continue}Ot(i.trim()),e.faces++;continue}if(typeof i=="string"&&i.includes("font-family")){if(!Bj(i))continue;if(n.has(uT(i))){e.kept++;continue}Ot(`@font-face { ${i} }`),e.faces++}}}return e},Uj=t=>typeof t=="string"&&t.trim().startsWith("@import"),vY=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),AY=t=>{if(!Uj(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},CY=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||Zn();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},zb=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim().toLowerCase():null},uT=t=>{let e=String(t||""),n=zb(e,"font-family");if(!n)return null;let r=zb(e,"font-weight")||"400";return r==="normal"?r="400":r==="bold"&&(r="700"),n.replace(/^['"]|['"]$/g,"")+"|"+r+"|"+(zb(e,"font-style")||"normal")},Bj=t=>{let e=zb(String(t||""),"src");return!!e&&e!=="none"},dT=t=>{if(!t)return null;let e=t.type;if(e===5)return t.cssText||"";if(typeof e=="number")return null;let n=t.cssText||"";return/^\s*@font-face/i.test(n)?n:null},TY=t=>{let e=new Set,n=t&&t.styleSheets;if(!n)return e;for(let r=0;r<n.length;r++){let o;try{o=n[r].cssRules}catch{continue}if(o)for(let s=0;s<o.length;s++){let i=dT(o[s]);if(i===null)continue;let a=uT(i);a&&e.add(a)}}return e};var Kj='meta[name="brender"]',OY=3e3,pT=t=>t.document||(typeof document<"u"?document:null),qj=(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},Gj=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=pT(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(Kj))return!0;let o=qj(t,n);for(let s=o&&o.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},Yj=t=>{let e=pT(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},Xj=(t,e)=>{if(!e||!e.length)return;let n=[];for(let o of e){let s=null;try{s=o.sheet&&o.sheet.cssRules}catch{s=null}if(s&&s.length)for(let i=0;i<s.length;i++){let a=dT(s[i]);a!==null&&n.push(a)}else{let i=String(o.textContent||"").match(/@font-face\s*\{[^}]*\}/gi);i&&n.push(...i)}}let r=e.find(o=>o.parentNode);if(n.length&&r&&t&&typeof t.createElement=="function"){let o=t.createElement("style");o.setAttribute("data-smbls-faces",""),o.textContent=n.join(`
|
|
168
|
-
`),r.parentNode.insertBefore(o,r)}e.forEach(o=>{o.parentNode&&o.remove()})},Vj=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},hT=["paths","tree"],RY=(t,e)=>{let n=Gn(e,jf,{warn:Vj});if(n)return{map:Uf(n.value),block:n.block};let r=Gn(e,Bf,{warn:Vj});return r?{map:E(r.value)?r.value:null,block:r.block}:t&&E(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},PY=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||E(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,LY=t=>{let e=E(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:OY},Zj=(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(Kj);r&&r.remove();let o=e.documentElement;o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")&&o.removeAttribute("data-brender")}},DY=()=>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)}),Jj=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=nl("fetch"),s=o&&typeof o.whenRequestsIdle=="function"?o.whenRequestsIdle:null;if(s&&await s(),await DY(),!s||!(o.requestsInFlight()>0))return}},IY=["click","keydown"],Qj=(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 IY)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,$o(r),Xj(n,s),e&&(e.__BRENDER_HYDRATION__={adopted:r.adopted,misses:r.misses,removed:u}),Zj(e,n,o),t3(t,e,r.root,!0)};if(!r.pending.size)return f();a=setTimeout(f,LY(t)),l(!0),Jj(t,r).then(f,f)},MY=1e3,NY=(t,e)=>{t&&typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:MY}):setTimeout(e,0)},zj=(t,e)=>{let n=nl("fetch");!n||typeof n.seedIsStale!="function"||!n.seedIsStale()||NY(t,()=>{n.revalidateSeed(e).then(r=>{r&&t&&((t.__BRENDER_HYDRATION__||(t.__BRENDER_HYDRATION__={replaced:!0})).refreshed=r)},r=>console.error("[smbls] refreshing a stale pre-rendered page failed:",r))})},t3=(t,e,n,r)=>{let o=nl("fetch");if(!o||typeof o.seedIsStale!="function")return;let s=()=>{let i=()=>zj(e,n);Jj(t,{pending:{size:1}}).then(i,i)};if(o.seedIsStale())return r?zj(e,n):s();typeof o.whenSeedTaken=="function"&&o.whenSeedTaken(s)},$Y=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}),FY=(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:$Y(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(BY(c,n,r))&&c.dispatchEvent(new a("click",l))}}},BY=(t,e,n)=>{for(let r=t;r&&r!==e;r=r.parentNode)if(n.claimed.has(r))return r;return null},jY=async()=>{for(await Te();!Bo();)await Te()},UY=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=PA(o,{budget:u.budget,progressive:!0,pageOptions:{mountYield:f.mountYield,mountWhole:f.mountWhole}}),h=ai(),m=FY(i,s,r,a),y=u.lease||null;g.lease=y,y&&(o.__mountLease=y);let x=null,k=!1;try{try{x=t(e,n,o.key,f)}catch(C){console.error("[smbls] hydration failed, rendering fresh:",C),delete o.__hydration,$o(a);for(let _ of a.claimed)_.parentNode&&_.remove();return null}k=!await Ho(Vr(x),y)||g.routeReady&&!await Ho(g.routeReady,y)||!await Ho(jY(),y),k&&(o.__hydration===a&&delete o.__hydration,$o(a),OA(x))}finally{f.mountYield=d,f.mountWhole=p,y&&(o.__mountLease=null),LA(o),h(),x||m.replay()}return k?(m.replay(),Uc(E(e)?e:{})):(a.root=x,Qj(o,s,i,a,c,l),m.replay(),x)},Hj=(t,e,n,r,o,s,i,a,c,l,f)=>{if(!r||typeof r.querySelectorAll!="function")return null;let u=k=>{for(let C=k;C&&C!==r;C=C.parentNode)if(C.parentNode===r&&C.localName==="svg"&&C.id)return!0;return!1},d={};for(let k of r.querySelectorAll("[data-br]")){let C=k.getAttribute("data-br");u(k)?k.removeAttribute("data-br"):d[C]=k}let p={},g=new Set,h=new Map,m=a.map;for(let k in m){let C=m[k],_=d[C];if(!_||p[C])continue;p[C]=_,g.add(_);let b=_.parentNode;b&&h.set(b,(h.get(b)||0)+1)}for(let k in d)p[k]||d[k].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 UY(t,e,n,r,o,s,i,y,a,c,l,f);let x;try{x=t(e,n,o.key,l)}catch(k){console.error("[smbls] hydration failed, rendering fresh:",k),delete o.__hydration,$o(y);for(let C of y.claimed)C.parentNode&&C.remove();return null}return y.root=x,Qj(o,s,i,y,a,c),x},Wj=(t,e,n,r,o,s,i,a,c,l)=>{if(Xj(i,c),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")),s&&(s.__BRENDER_HYDRATION__={replaced:!0});let f=t(e,n,o.key,l);return Zj(s,i,a),Promise.resolve(f).then(u=>t3(o,s,u,!1),()=>{}),f},e3=(t,e,n,r,o,s,i,a=null)=>{let c=pT(r),l=n&&n.nodeType?n:n&&n.node||qj(r,c),f=RY(o,c);r.prerendered=!0;let u=ms(c);if(u&&(r.prerender=u),PY(r,o,f)){if(a)return cr().then(()=>jc(a.lease)?Hj(t,e,n,l,r,o,c,f,s,i,a):Uc(E(e)?e:{})).then(p=>p||Wj(t,e,n,l,r,o,c,f,s,i));let d=Hj(t,e,n,l,r,o,c,f,s,i,a);if(d)return d}return Wj(t,e,n,l,r,o,c,f,s,i)};M();var i3=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},n3=(t="smbls")=>{let e={};for(let n in wi)Object.prototype.hasOwnProperty.call(wi,n)&&(Wn(n)?e[`smbls.${n}`]=wi[n]:e[n]=wi[n]);return e},a3=t=>t.components?{...n3(),...t.components}:n3(),c3=t=>({...$d,...Ic,...So,...t.utils,...t.snippets,...t.functions}),l3=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var f3=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,VY=3e3,zY=(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),VY);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},r3={},bT=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=zY})=>{if(o||(o=po[s]||xa(i)||"esmsh"),!t)return null;if(!ks(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=oo()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=An(d,p,o)+l;try{await Promise.race([ka(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([ka(m,{document:n,type:"module"}),new Promise((y,x)=>setTimeout(()=>x(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!r3[d]&&(r3[d]=!0,!ho(d))){if(xs(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}f3(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},o3=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,HY=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof Ne=="function"?Ne(t):Function.prototype.toString.call(t)}catch{return""}return""},WY=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=HY(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;o3.lastIndex=0;let l;for(;(l=o3.exec(c))!==null;)e.add(l[1])}}return e},KY=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},qY=(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},u3=(t,{syncRead:e=WY(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=KY(n)}={})=>{let o=t&&t.dependencies;if(!ks(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)&&qY(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},GY=t=>import(t),gT={},YY=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},XY=(t,{importModule:e=GY}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)if(!(ho(r)||xs(r))&&!f3(r)){if(!gT[r]){let o=()=>e(r);gT[r]=Promise.resolve().then(o).then(s=>(YY(r,s),s||null),()=>null)}n.push(gT[r])}return Promise.all(n)},ZY=2e3,JY=3e3,d3=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=JY}={})=>t?new Promise(o=>{let s=()=>{XY(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:ZY}):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,p3=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||xa(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]&&ho(a))return await u.require(a,c);if(!u.packages[a]){let d=oo()?`?${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=Lt(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)},QY=/\s+/g,h3=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,tX=(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+=` ${h3(o,e)}`)}return n},eX=(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=tX(t,e));let o=t.replace(QY," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},nX=()=>(t,e,n)=>{let r=h3(t,e);if(t){let{__ref:o}=e;o.__class.style=r}g3()(e.classlist,e,e.state,!0)},g3=()=>(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=Ve(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&eX(i,e,e.node)}},rX=()=>({style:nX(),classlist:g3()}),oX=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],mT=new WeakSet,yT=!1,sX=t=>!!t&&typeof t=="object",iX=new Set(["key","document","files","assets","themeRoot","config","newConfig","recordCss","router"]),m3=t=>t.toLowerCase()==="font",aX=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)},s3=(t,e)=>typeof e=="function"?"fn:"+String(e):e,y3=(t,e)=>{let n={};for(let o in t||{})m3(o)||(n[o]=t[o]);let r={};for(let o in e)iX.has(o)||(r[o]=e[o]);return r.globalTheme=Ry(e.globalTheme)||"auto",aX(1+"|"+JSON.stringify(n,s3)+"|"+JSON.stringify(r,s3))},cX=t=>{let e={};for(let n in t||{})m3(n)&&E(t[n])&&bt(e,pt(t[n]),ae);return E(ui.font)&&bt(e,pt(ui.font),ae),e},lX=(t,e)=>{if(t.preparedDesignSystem!==void 0){let r=t.preparedDesignSystem;return delete t.preparedDesignSystem,r}let n=Gn(e,Hf);return n?n.value:null},b3=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(Vf),r=n&&n.href;if(r)return globalThis.fetch(r,{credentials:"same-origin"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);let o=e.querySelector(zf),s=o&&o.getAttribute("content");if(!s)return null;let i=new URL(s,e.baseURI||void 0).href,a=globalThis.fetch(i,{credentials:"same-origin",priority:"low"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);return uX(a,i,t.window||e.defaultView)}catch{return null}},fX=(t,e)=>{let n=e&&e.performance||(typeof performance<"u"?performance:null);if(!n||typeof n.getEntriesByName!="function")return!1;try{let r=n.getEntriesByName(t);for(let o=0;o<r.length;o++)if(r[o].responseEnd>0)return!0}catch{}return!1},uX=(t,e,n)=>{let r=!1,o=t.then(s=>(r=!0,s));return o.deferred=!0,o.ready=()=>r||fX(e,n),o},_3=t=>!!t&&(t.deferred!==!0||t.ready()),dX=t=>E(t)&&t.format===1&&typeof t.fingerprint=="string"&&E(t.config)&&Array.isArray(t.rules),pX=(t,e,n,r)=>{if(r.localFile)return null;let o=Gg(t);return o?{format:1,fingerprint:y3(n.designSystem,r),config:o,rules:e.rules,sprites:e.sprites}:null},w3=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||rX(),s=()=>e.designSystem?bt(pt(e.designSystem),pt(ui),ae):pt(ui),i={};for(let m of oX)e[m]!==void 0&&(i[m]=e[m]);let a,c=sX(n),f=c&&mT.has(n)&&!e.skipDesignSystemInit,u=!f&&!yT,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...lT,...i,...r};if(e.skipDesignSystemInit){if(a=P(t)||P(),a&&(a.__domDocument=n),a?.CSS_VARS){mt(a);try{Ot({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&Ot(Oy(a.CSS_MEDIA_VARS,d));let m=Gs(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&Ot(m)}finally{ht()}}}else if(e.isolateDesignSystem&&!f){let m=Tg();m.__domDocument=n;let y=null,x=e.captureDesignSystem?k=>{y=k}:void 0;mt(m);try{a=fr(s(),{...p,config:m,recordCss:x})}finally{ht()}y&&(e.preparedDesignSystem=pX(a,y,e,p))}else if(u){let m=P();m&&(m.__domDocument=n);let y=m&&m._scratchConfig&&!p.localFile?lX(e,n):null;dX(y)&&y.fingerprint===y3(e.designSystem,p)?(a=AA(y,m,p,cX(e.designSystem)),e.designSystemSource="prepared"):(a=fr(s(),p),e.designSystemSource="processed"),a&&a!==m&&(a.__domDocument=n),c&&mT.add(n),yT=!0}else{let m=su(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=fr(m,p)}finally{ht()}c&&mT.add(n),yT=!0}let g=a?.CONFIG||a,h=g?.font;if(h){mt(g);try{jj(h)}finally{ht()}}return[a,o]},S3=(t,e)=>{let n={};e.state&&io(n,e.state),t&&t.state&&io(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=ws({polyglot:r,pathname:Ss(e.window),stored:o,stateLang:n.lang});(o||s!==wr(n.lang,r))&&s!==n.lang&&(n.lang=s),r.translations&&hX(e,r,n,s)}return n.isRootState=!0,pt(n)},hX=(t,e,n,r)=>{let o=new Set,s=new Set,i=(l,f)=>{if(!s.has(l)){if(!us(t,l,n)){o.add(l);return}n[l]=f,s.add(l),Kn(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(vn(e,!1));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 }}\`.`)},x3=(t,e)=>{E(t.routes)&&E(e.pages)&&Lt(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},_T=t=>{Mf(t,t.sharedLibraries)};var ET={};F(ET,{default:()=>AX,getActiveLang:()=>zi,getLanguages:()=>cp,getLocalStateLang:()=>dp,getPendingLang:()=>ap,initPolyglot:()=>Wb,loadTranslations:()=>Vi,polyglotPlugin:()=>il,setLang:()=>fp,trackLoadTranslations:()=>kT,translate:()=>lp,upsertTranslation:()=>up});M();M();Mt();var gX="smbls_t_",mX="smbls_tv_",wT=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return e?e.localStorage:null},sl={get(t,e){try{return wT(t)?.getItem(e)??null}catch{return null}},set(t,e,n){try{wT(t)?.setItem(e,n)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t,e){try{wT(t)?.removeItem(e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}}},k3=new WeakMap,E3=t=>{let e=k3.get(t);return e||(e={},k3.set(t,e)),e},v3=new WeakMap,O3=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,R3=t=>{let e=v3.get(t);return e||(e={seq:0,pending:Sn(null),wake:null},v3.set(t,e)),e},A3=(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))}),xT=(t,e)=>!!(t?.translations&&t.translations[e]),yX=3e3,bX=2147483647,_X=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,bX):0:yX},wX=new RegExp("\\p{L}","gu"),SX=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(wX);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("")},xX=(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 zi(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return wr(n?.lang||t?.state?.lang,e)}function ap(){let t=this?.context,e=O3(t,this?.state?.root||t?.state?.root);return e?R3(e).pending.get():null}function cp(){let t=this?.context?.polyglot;return t?vn(t):[]}var Hb=(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},C3=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=Hb(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function lp(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=C3(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=Hb(l,t);if(f!==void 0)return f}}let i=s?.root||n?.state?.root,a=i?.translations;if(a){let l=a[o];if(l){let f=Hb(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=C3(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=Hb(l,t);if(f!==void 0)return f}}return kX(r,i,o)&&typeof _a=="function"&&_a(),t}var kX=(t,e,n)=>!!t?.fetch&&!xT(e,n)&&!t._fetchFailed?.[n];async function Vi(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 E3(o)[(r.storagePrefix||"smbls")+":"+t];let s=r.storagePrefix||gX,i=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):mX);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let f=sl.get(n,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=E3(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(sl.get(n,i+t),10)||0,d,p,g;if(L(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(E(f)){let m=l.getDB||(()=>n.fetch),y=L(m)?await m.call(l):n.fetch;if(!y)return;let x=f.rpc||f.from||"get_translations_if_changed",k={p_lang:t,p_cached_version:u,...f.params||{}},C=await y.rpc({from:x,params:k});if(C.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,C.error;let _=C.data;if(!_||!_.changed)return;d=_.translations||{},p=_.version||0,g=!0}else return;if(!g||!d)return;sl.set(n,s+t,JSON.stringify(d)),p&&sl.set(n,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 ST=new WeakMap,T3=Symbol.for("@symbo.ls/polyglot:trackedLoadTranslations");function kT(t){if(!L(t)||t[T3]||t===Vi)return t;let e=function(n,r){let o=this?.context,s=this?.state?.root||o?.state?.root,a=(o?.polyglot?.storagePrefix||"smbls")+":"+n;if(r&&r.inFlight===!0){let l=s&&ST.get(s);return l&&l[a]?l[a]:Vi.call(this,n,r)}let c=t.call(this,n,r);if(s&&c&&typeof c.then=="function"){let l=ST.get(s);l||ST.set(s,l={});let f=Promise.resolve(c);l[a]=f;let u=()=>{l[a]===f&&delete l[a]};f.then(u,u)}return c};return e[T3]=!0,e}var EX=(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 fp(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&&sl.set(n,ba(r),t);let i=R3(O3(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(!xT(o,t)){i.pending.set(t);let u=null;if(await A3(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!xT(o,t)&&!r.translations?.[t])return}}let l=_X(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=xX(s,SX(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await A3(i,f,l),!c()))return}i.pending.set(null),vX(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function vX(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>nf(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"&&Kn(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];Kn(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{EX(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function up(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&&E(o.fetch)){let i=this.getDB||(()=>r.fetch),a=L(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 Wb(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let r=sl.get(t,ba(e)),o=ws({polyglot:e,pathname:Ss(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 dp(t){try{let e=zi.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 il={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Wb.call(t))}},AX=il;var pp={polyglot:lp,getLocalStateLang:dp,getActiveLang:zi,getLang:zi,setLang:fp,getPendingLang:ap,getLanguages:cp,loadTranslations:Vi,upsertTranslation:up};var AT={};F(AT,{SYSTEM_METRICS:()=>hp,capsizeHandler:()=>vT,capsizePlugin:()=>qb,computeCapsize:()=>P3,default:()=>CX,resolveFontSizePx:()=>L3,resolveMetrics:()=>D3});var hp={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}},Kb=t=>parseFloat(t.toFixed(4)),P3=(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:`${Kb(t/16)}rem`,lineHeight:`${Kb(f)}px`,capHeightTrim:`${Kb(-p)}em`,baselineTrim:`${Kb(-g)}em`}},L3=(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},D3=(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(hp[i])return hp[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(hp[a])return hp[a]}}return null},vT=(t,e,n,r)=>{if(!t)return;let o=L3(e.fontSize,r);if(!o)return;let s=D3(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=P3(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},qb={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},CX=qb;var TX="@symbo.ls/fetch:EARLY",OX=()=>new Promise(t=>setTimeout(t,0)),CT=t=>{let e=typeof globalThis<"u"?globalThis[Symbol.for(TX)]:null,n=e&&e.afterFirstView;return typeof n!="function"||e.afterFirstViewRan?null:(e.afterFirstViewRan=!0,Promise.resolve(t&&t.__firstNavigation).catch(()=>{}).then(OX).then(()=>{try{n(e.ctx||{})}catch(r){console.error("[smbls] fetch.early afterFirstView failed:",r)}}))};var RT=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),PT=t=>$e(t)?t.library!==void 0?t.library:t.key??t.name:t,RX=(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=PT(i);if(!RT(a))return i;let c=s(a);return c?$e(i)?{...i,library:c}:c:null}).filter(Boolean)},LT=new WeakMap,PX={lazy:!0,window:globalThis},I3=["components","pages","functions","methods","snippets"],LX=I3.filter(t=>t!=="methods"),TT=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},DX=(t,e)=>{if(cs(e)||cs(t))return"boot-revived";if(TT(t))return"local";if(e&&typeof e=="object"){if(TT(e.app))return"local";for(let n of LX)if(TT(e[n]))return"local"}return"raw-json"},M3=(t,e)=>{let n=e?t[e]:t;if(!E(n))return;let r=be(n,{},PX);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},IX=t=>{if(!E(t)||cs(t))return t;for(let e of[...I3,"app"])M3(t,e);return ea(t)},MX=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=$e(n)?n.library:n;E(r)&&!e.has(r)&&IX(r)}return t},DT=new WeakMap,OT=t=>{let e=LT.get(t);e&&(LT.delete(t),d3(e))},N3=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,$3=t=>t.sync!==!1&&Ti(t)||N3(t),F3=t=>{let e={shorthand:null,analyze:null,inspect:null,fetch:null,sync:null,windows:null,dropdown:null,tooltip:null};for(let n of rj(t))e[n]=he(n);return $3(t)&&(e.sync=he("sync")),e},IT=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(v(t)?t:"smblsapp");e.define=e.define||rl,e.cssPropsRegistry=xt,e.window=i3(e);let s=F3(e),i=DX(t,e);if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&e.sharedLibraries&&e.sharedLibraries.length)_T(e);else if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(x=>{let k=PT(x);return typeof k=="string"||RT(k)})){e.sharedLibraries=RX(e.sharedLibraries,e.symbolsConfig);let x=new Set(e.sharedLibraries.map(C=>PT(C)).filter(C=>E(C)&&!RT(C))),k=await $f(e.sharedLibraries,{apiBaseUrl:Vb()});e.sharedLibraries=i==="raw-json"?k:MX(k,x)}Lj(e.sharedLibraries),_T(e)}Ti(e)&&Gc(e,e.designSystem);let a=DT.get(e);a&&(DT.delete(e),_3(a)&&(e.preparedDesignSystem=await a));let[c,l]=w3(o,e);if(e.designSystem=c,e.registry=l,Kf(e,{apiBaseUrl:Vb()}),e.cases||(e.cases={}),e.shorthand){let y=await(s.shorthand||he("shorthand"));y&&y.shorthandPlugin.prepareContext(e)}let f=S3(t,e);if(e.state=f,mf(f),e.pages=x3(t,e),e.components=a3(e),e.utils=c3(e),po[e.packageManager]){let y=u3(e);y&&y.deferred?(y.blocking&&await bT({...e,dependencies:y.blocking}),LT.set(e,y.deferred)):e.dependencies=await bT(e)}if(e.methods=l3(e),e.routerOptions=nF(t,e),e.defaultExtends=[ey],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope=e.globalScope||{},e.plugins.some(y=>!y||typeof y!="object")){let y=e.plugins.filter(x=>!x||typeof x!="object");e.plugins=e.plugins.filter(x=>x&&typeof x=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${y.length} non-plugin entr${y.length===1?"y":"ies"} (${y.map(x=>JSON.stringify(x)).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&&E(e.globalScope)&&(e.globalScope=ls(e.globalScope));let d=(y,x)=>{i==="raw-json"&&M3(y,x)};d(t),d(e,"components"),d(e,"pages"),d(e,"functions"),d(e,"methods"),d(e,"snippets"),d(e,"app"),Df(e,u),If(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&&!qe(e,"polyglot")){e.plugins.push(il);for(let y in pp)typeof e.functions[y]!="function"&&(e.functions[y]=pp[y])}if(e.polyglot&&e.functions&&typeof e.functions.loadTranslations=="function"&&(e.functions.loadTranslations=kT(e.functions.loadTranslations)),qe(e,"helmet")||e.plugins.push(jb),qe(e,"inertOutside")||e.plugins.push(Xm),e.fetch){let y=await(s.fetch||he("fetch"));if(y){qe(e,"fetch")||e.plugins.push(y.fetchPlugin);let{fetchFunctions:x}=y;for(let k in x)typeof e.functions[k]!="function"&&(e.functions[k]=x[k])}}if(e.designSystem?.typography?.useCapsize!==!1&&!qe(e,"capsize")&&(e.plugins.push(qb),e.cssPropsRegistry.useCapsize=vT),e.shorthand&&!qe(e,"shorthand")){let y=await(s.shorthand||he("shorthand"));y&&e.plugins.push(y.shorthandPlugin)}if(e.analyze&&!qe(e,"analyze")){let y=await(s.analyze||he("analyze"));if(y){let x=e.analyze===!0?{}:e.analyze;e.analyze=y.createAnalyzeState(x),e.plugins.push(y.analyzePlugin)}}let g=e.sync!==!1&&Ti(e),h=$3(e)?await(s.sync||he("sync")):null;if(h&&g&&!qe(e,"sync")&&e.plugins.push(h.syncPlugin),e.inspect&&!qe(e,"inspect")){let y=await(s.inspect||he("inspect"));y&&e.plugins.push(y.inspectPlugin)}h&&N3(e)&&!qe(e,"notifications")&&e.plugins.push(h.notificationsPlugin);let m=async y=>{if(e[y]===!1)return;let x=await(s[y]||he(y));if(!x)return;let{components:k,functions:C}=x;for(let _ in k)E(e.components[_])||(e.components[_]=k[_]);for(let _ in C)typeof e.functions[_]!="function"&&(e.functions[_]=C[_])};return await m("windows"),await m("dropdown"),await m("tooltip"),e},gp=async(t,e)=>{E(e)||(e={});let n=Z2(e);F3(e);let r=b3(e);if(r&&DT.set(e,r),n&&(n.lease=Y2(e),await cr(),!n.lease.live()))return Uc(E(t)?t:{});hr(t)?(e.parent=t,t={}):v(t)?(e.key=t,t={}):E(t)?t={...t}:t={};let o=e.window||(typeof window<"u"?window:null),s=Gj(e,o);globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s&&qt("prerender");let i=!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s?Yj(e):null;if(await IT(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&&E(e.app))for(let u in e.app)t[u]===void 0&&(t[u]=e.app[u]);t.extends=Pj(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await p3({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 OT(e),t;let c=e.parent||a.body,l={verbose:e.verbose,context:e,...e.domqlOptions};if(!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s){let u=await e3(Yt,t,c,e,o,i,l,n);return Fd(u)||(OT(e),CT(e)),u}let f=n?await Q2(t,c,e,l,n):Yt(t,c,e.key,l);return f?(OT(e),CT(e),typeof window<"u"&&!e.document&&(window.__smblsApp=f),f):Uc(t)};var MT=(t,e)=>{if(!E(e))return bt(t,{});let{state:n,...r}=e;return bt(t,r),n!==void 0&&(E(t.state)&&E(n)?io(t.state,n):t.state===void 0&&(t.state=n)),t},NX=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},$X=()=>{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}},B3=t=>{let e=$X();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},NT=(t,e=Yo,n)=>{let r={...Yo,...MT(e,n)};return B3(r),NX(r),gp(t,r).then(s=>{if(Fd(s))return s.destroy=()=>Fi(s),s;if(MA(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=Bd(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})},FX=(t,e=Yo,n)=>{let r=NT(t,e,n),o={...Yo,...MT(e,n)},s=o.key;return s&&o.editor&&o.editor.async&&he("fetchOnCreate").then(i=>{i&&i.fetchAsync(r,s,{utils:$d,...o})}),r},BX=async(t,e=Yo,n)=>{let r={...Yo,...MT(e,n)};B3(r);let o=e.key;if(o&&r.editor){let i=await he("fetchOnCreate");i&&await i.fetchSync(o,r)}let s=await gp(t,r);return Fd(s)?(s.destroy=()=>Fi(s),s):(MA(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=Bd(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)},jX=(t={},e=Yo,n)=>NT({deps:{isUndefined:Xt},...t},bt({domqlOptions:{onlyResolveExtends:!0}},e),n);Mt();M();$h();var j3={"@symbo.ls/signal":gl,"@symbo.ls/scratch":W0,"@symbo.ls/element":Zm,"@symbo.ls/css":sm,"@symbo.ls/utils":Ra,"@symbo.ls/state":tE,"@symbo.ls/router":Ic,"@symbo.ls/polyglot":ET,"@symbo.ls/helmet":aT,"@symbo.ls/fetch":ga,"@symbo.ls/capsize":AT,"@symbo.ls/shorthand":bC,"@symbo.ls/analyze":Hd,"@symbo.ls/inspect":Kd,"@symbo.ls/channels":fT},U3=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in j3)r[o]||(r[o]=j3[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},V3=(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},z3=["@symbo.ls/sdk"],H3=(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 BT={};F(BT,{BUILD_DOMQL_SYSTEM_PROMPT:()=>r4,DEFAULT_MAX_TOKENS:()=>t_,DEFAULT_MODEL:()=>Zo,DEFAULT_PROVIDER:()=>Jb,DEFAULT_TEMPERATURE:()=>Qb,MODEL_TIER_ALIASES:()=>FT,PROVIDER_MODELS:()=>K3,SIMONE_BASE_URL:()=>mp,SIMONE_CHAT_PATH:()=>Gb,SIMONE_CODE_PATH:()=>Yb,SIMONE_CODE_SYMBOLS_PATH:()=>Xb,SIMONE_HEALTH_PATH:()=>Zb,SIMONE_TOOLS_PATH:()=>W3,WORKSPACE_SYSTEM_PROMPT:()=>n4,buildMessages:()=>Z3,chat:()=>yp,health:()=>X3,parseSimoneResponse:()=>t4,resolveModel:()=>o4,streamChat:()=>yp,streamCode:()=>G3,streamCodeSymbols:()=>Y3,toLegacyEnvelope:()=>e4});var mp="https://symbols-service-production.up.railway.app",Gb="/api/chat",Yb="/api/code",Xb="/api/code-symbols",Zb="/api/health",W3="/api/tools",Jb="openai-compatible",Zo="claude-sonnet-4-6",Qb=.7,t_=4096,K3={"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-3-pro-preview"]};function q3(t,e){return t?t.replace(/\/$/,"")+e:e}function UX(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 yp(t,e={},n){let{baseUrl:r=mp,path:o=Gb,provider:s=Jb,model:i=Zo,temperature:a=.7,maxTokens:c=4096,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:s,model:i,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(q3(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let C=g.statusText;try{let b=await g.text();try{let w=JSON.parse(b);C=w.error||w.detail||C}catch{C=b||C}}catch{}let _=new Error(`simone: HTTP ${g.status} \u2014 ${C}`);throw _.status=g.status,_}if(!g.body||typeof g.body.getReader!="function"){let C=await g.text();return n&&n(C),{text:C,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],x=[],k="";try{for(;;){let{done:C,value:_}=await h.read();if(C)break;k+=m.decode(_,{stream:!0});let b=k.indexOf(`
|
|
169
|
-
`);for(;b!==-1;){let w=
|
|
170
|
-
`)}}return{text:y.join(""),errors:x}}finally{h.cancel().catch(()=>{})}}function
|
|
166
|
+
`}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},tG={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(_b):t.extends?t.extends=[t.extends,_b]:t.extends=[_b]}};var lC={};F(lC,{DefaultSyncApp:()=>HG,FORBIDDEN_SEGMENTS:()=>Zd,Notifications:()=>kb,SyncComponent:()=>cC,applyOpsToCtx:()=>Jd,connectToSocket:()=>aj,deletePath:()=>RT,isSafePath:()=>Sb,liveSyncTransport:()=>xb,notificationsPlugin:()=>GG,onOps:()=>MT,onSnapshot:()=>IT,seedRawDesignSystem:()=>Zc,setPath:()=>PT,syncPlugin:()=>qG,wantsLiveSync:()=>Ri});M();M();var Zd=new Set(["__proto__","constructor","prototype"]),Sb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Zd.has(t[e]))return!1;return!0},RT=(t,e)=>{!t||!Sb(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},PT=(t,e,n,r=!1)=>{!t||!Sb(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)},Jd=(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":RT(t,o);break;case"update":case"set":PT(t,o,s,!0);break;default:break}return n},uB=(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))Zd.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},eG=()=>typeof R<"u"&&!!R&&!!R.__SYMBOLS_ENV__,nG=()=>{try{if(R.self!==R.top)return!0}catch{return!0}try{return new URLSearchParams(R.location.search).has("liveSync")}catch{return!1}},fB=Object.freeze({mode:null,baseUrl:null}),xb=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?eG()&&!nG()?fB:{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:fB},Ri=t=>xb(t).mode!==null,Zc=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},dB=(t,e,n,r="designSystem")=>{for(let o in e){if(Zd.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]={}}dB(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},LT=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};Jd(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return Bf(n,r,dB)},DT=t=>{!t||!t.polyglot||!Array.isArray(t.sharedLibraries)||jf(t.polyglot,t.sharedLibraries)};M();var IT=(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(Zc(n,c),r){let l=LT(n);l&&dr(l)}}else ds(n[a],c);else n[a]=c}),"polyglot"in s&&DT(n),r=!0,i&&(n.schema=i))}},MT=(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=Jd(n,i);if(s.length&&a.add("designSystem"),a.has("polyglot")&&DT(n),a.has("designSystem")){let c=LT(n,s);c?dr(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=uB(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 rG={success:"green",error:"red",warning:"yellow"},pB=(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)}},kb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:rG[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 FG=!1,BG=()=>FG?"http://localhost:8080":"https://api.symbols.app",aC=null,jG=()=>(aC||(aC=Promise.resolve().then(()=>(sj(),oj)).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))),aC),UG=async t=>{try{let e=t||BG(),n=await R.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)}},ij=(t,e,n,r)=>{t.on("snapshot",IT(e,n,r)),t.on("ops",MT(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&pB(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},VG=async(t,e,n,r,o)=>{let s=await UG(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)")}),ij(l,t,e,n),l},zG=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)")}),ij(s,t,e,n),s.on("reload",()=>{typeof R<"u"&&R.location&&R.location.reload()}),s},aj=async(t,e,n)=>{let{mode:r,baseUrl:o}=xb(n);if(!r)return null;let s=jG();return r==="collab"?VG(t,e,n,o,s):r==="runner"?zG(t,e,n,s):null},cC={onInit:aj},HG={extends:[cC,kb]},cj=t=>typeof t>"u",WG=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),KG=t=>t?.editor?.runtime==="runner",lj=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},qG={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!cj(n.liveSync)?n.liveSync:Ri(e))&&(WG(e)&&!KG(e)&&!e?.key||lj(t,cC))}},GG={name:"notifications",beforeCreate(t,e){if(!e)return;let n=cj(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&lj(t,kb)}};Uh();var uC={};F(uC,{fetchAsync:()=>QG,fetchSync:()=>JG});M();var fj=R&&R.location&&typeof R.location.host=="string"?R.location.host:null,fC=fj!==null?fj.includes("dev."):ao(),uj=fC?"http://localhost:8080/get":"https://api.symbols.app/get",YG={endpoint:uj},dj=async(t,e=YG)=>{let n=e.endpoint||uj,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(L(e.onError))return e.onError(s);console.error(s)}},XG=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await dj(t,n),o=fC||e.isDevelopment?we(r):we(r.releases[0]);n.serviceRoute?I(n.serviceRoute)?n.serviceRoute.forEach(s=>{ae(e[s],o[s.toLowerCase()])}):ae(e[n.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{ae(e[s],o[s.toLowerCase()])})}return e},ZG=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await dj(t,r),s=fC||e.isDevelopment?we(o):we(o.releases[0]);n(s)}},JG=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await XG(t,e)}catch(n){console.error(n)}},QG=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&ZG(e,n,r||(o=>{let s=o.designSystem;k(s)&&n.utils.init(s),k(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var tY={windows:()=>Promise.resolve(GA),dropdown:()=>Promise.resolve(rT),tooltip:()=>Promise.resolve(lT),analyze:()=>Promise.resolve(Gd),shorthand:()=>Promise.resolve(CT),inspect:()=>Promise.resolve(Xd),sync:()=>globalThis.__SMBLS_BUILD_DROP_F_liveSync__?Promise.resolve(Gt("liveSync")):Promise.resolve(lC),fetch:()=>Promise.resolve(ba),fetchOnCreate:()=>Promise.resolve(uC)},Xe=(t,e)=>Array.isArray(t.plugins)&&t.plugins.some(n=>n&&n.name===e),pj=t=>{let e=[];return t.shorthand&&e.push("shorthand"),t.analyze&&!Xe(t,"analyze")&&e.push("analyze"),t.inspect&&!Xe(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},lp={},hj={},me=t=>{if(lp[t])return lp[t];let e=tY[t];return e?(lp[t]=e().then(n=>(hj[t]=n,n),n=>(delete lp[t],console.error(`[smbls] the ${t} module failed to load; the app runs without it`,n),null)),lp[t]):Promise.resolve(null)},sl=t=>hj[t]||null;var ji=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{yn(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 yC={};F(yC,{Helmet:()=>Nj,applyElementMetadata:()=>Hb,applyMetadata:()=>sY,default:()=>xY,extractMetadata:()=>rY,generateHeadHtml:()=>SY,helmetPlugin:()=>Wb,resolveMetadata:()=>fp});M();Mt();var kn={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"}},eo=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){let e=`${t.tag}[${t.attr}="${t.key}"]`;return t.key==="theme-color"?`${e}:not([data-smbls-theme-color])`:e}},gj=t=>we({v:t}).v,mj=(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}},jb=Object.freeze({authored:!0}),fp=(t,e,n,r)=>{if(!t)return{};let o=t;v(o)&&ie(o)&&(o=gj(o));let s=L(o),i=!s&&r?.authored===!0,a=s?mj(o,e,n,"metadata"):k(o)?{...o}:{};if(!k(a))return{};for(let c in a){let l=a[c],f=i&&v(l)&&!ie(l);v(l)&&ie(l)&&(l=gj(l)),L(l)?l=mj(l,e,n,c):v(l)&&ie(l)&&(l=void 0),v(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,jb):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},eY=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),nY=(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(eY(t[n]))return t[n]},rY=(t,e="/",n,r,o)=>{let s=t.pages||{},i=nY(s,e),a={};if(t.integrations?.seo&&(a={...t.integrations.seo}),t.app?.metadata){let f=fp(t.app.metadata,n,r,jb);a={...a,...f}}let c=new Set;if(i){let f=i.metadata||i.helmet||{},u=o?fp(f,o,o.state,jb):fp(f,n,r,jb);for(let d in u)c.add(d);a={...a,...u},!a.title&&i.state?.title&&(a.title=i.state.title,c.add("title")),!a.description&&i.state?.description&&(a.description=i.state.description,c.add("description"))}a.title||(a.title=t.name||"Symbols"),a.title&&(c.has("title")||!a["og:title"])&&(c.has("og:title")||(a["og:title"]=a.title)),a.description&&(c.has("description")||!a["og:description"])&&(c.has("og:description")||(a["og:description"]=a.description)),a.title&&!a["twitter:title"]&&(a["twitter:title"]=a.title),a.description&&!a["twitter:description"]&&(a["twitter:description"]=a.description);let l=c.has("og:url")?a["og:url"]:c.has("url")?a.url:void 0;if(l)a["og:url"]=l;else if(a["og:url"]||a.url){let f=(a["og:url"]||a.url||"").replace(/\/$/,"");if(f&&e&&e!=="/"){let u=e.startsWith("/")?e:"/"+e;a["og:url"]=f+u}}return Ps(a,Cs(t.files,t.sharedLibraries))},xj=(t,e)=>Ps(fp(t,e,e.state),e.context?.files),kj=t=>t.context?.document||typeof document<"u"&&document,Ej=t=>Object.prototype.hasOwnProperty.call(kn,t),Vb=new Map;for(let t in kn){let e=eo(kn[t]);Vb.has(e)||Vb.set(e,kn[t])}var zb=t=>t.head||t.querySelector("head"),hC=(t,e)=>{let n=zb(t);return n?n.querySelector(e):null},dC=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),gC=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},mC=(t,e)=>{let n=zb(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},Ui=(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))}},vj=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>v(s)?s:JSON.stringify(s)),o=r.map(Rn);Ui(t,"data-smbls-jsonld",o,(s,i)=>{let a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},Aj=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Rn);Ui(t,"data-smbls-style",r,(o,s)=>{let i=t.createElement("style");return i.textContent=String(n[s]),i})},Tj=t=>(t||[]).filter(e=>e&&(v(e)?e.trim():e.src)),Cj=t=>v(t)?t:String(t.src),Oj=(t,e)=>{let n=t.createElement("script");return v(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},oY=(t,e)=>{let n=Tj(e),r=n.map(Cj);Ui(t,"data-smbls-script",r,(o,s)=>Oj(t,n[s]))},Rj=(t,e)=>{let n=(e||[]).filter(o=>k(o)),r=n.map(Os);Ui(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})},Pj=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(_o);Ui(t,"data-smbls-favicon",r,(o,s)=>{let i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),k(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},Lj=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";Ui(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})},Dj=(t,e)=>{let n=(e||[]).filter(o=>k(o)),r=n.map(Rs);Ui(t,"data-smbls-theme-color",r,(o,s)=>{let i=n[s],a=t.createElement("meta");return a.setAttribute("name","theme-color"),i.content!==void 0&&a.setAttribute("content",i.content),i.media!==void 0&&a.setAttribute("media",i.media),a})},sY=(t,e)=>{if(!(!k(t)||!e)){for(let n in t){let r=t[n];if(r==null||!Ej(n)||n==="theme-color"&&Array.isArray(r))continue;let o=kn[n],s=hC(e,eo(o))||mC(o,e);s&&gC(s,o,r)}Array.isArray(t.jsonLd)&&vj(e,t.jsonLd),Array.isArray(t.styles)&&Aj(e,t.styles),Array.isArray(t.scripts)&&oY(e,t.scripts),Array.isArray(t.alternate)&&Rj(e,t.alternate),Array.isArray(t.favicons)&&Pj(e,t.favicons),(t.icon||t.favicon)&&Lj(e,t.icon||t.favicon),Array.isArray(t["theme-color"])&&Dj(e,t["theme-color"])}},yj=new WeakMap,pC=new WeakMap,Ij=t=>{let e=t.location;return e&&v(e.pathname)?e.pathname:null},iY=t=>{let e=yj.get(t);return e||(e={doc:t,layers:[],servedPath:Ij(t),originals:new Map,owned:new Set,lists:new Set},yj.set(t,e)),e},aY=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},bj=t=>{try{return JSON.stringify(t===void 0?null:t)??null}catch{return null}},cY=t=>{if(!k(t))return!0;for(let e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},lY=(t,e)=>{let n=pC.get(t);if(n)return n;let r=iY(e),o={element:t,values:null,signature:bj(null),disposed:!1,set(i){if(o.disposed)return;let a=bj(i);o.values=i,!(a!==null&&a===o.signature)&&(o.signature=a,wj(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);if(i!==-1&&r.layers.splice(i,1),!cY(o.values))try{wj(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(aY(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),pC.set(t,o),o},Mj=(t,e,n,r)=>{let o=lY(t,e),s=K(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},fY=eo(kn.title),uY=eo(kn.description),dY=eo(kn["og:title"]),pY=eo(kn["og:description"]),hY=eo(kn["twitter:title"]),gY=eo(kn["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)},Ub={jsonLd:vj,styles:Aj,alternate:Rj,favicons:Pj,icon:Lj,"theme-color":Dj},mY=Object.keys(Ub).filter(t=>t!=="icon"),yY=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!k(s))continue;for(let a in s){let c=s[a];c==null||!Ej(a)||a==="theme-color"&&Array.isArray(c)||e.set(eo(kn[a]),{value:String(c),rank:o})}for(let a of mY)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,fY,dY,hY),_j(e,uY,pY,gY),{tags:e,lists:n,scripts:r}},bY=(t,e,n)=>{let{doc:r,originals:o}=t,s=Vb.get(e),i=hC(r,e),a=o.get(e);a||(a={value:i?dC(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=mC(s,r)),i&&(dC(i,s)!==n&&gC(i,s,n),t.owned.add(e))},_Y=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=Vb.get(e),o=hC(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&Ij(n)===t.servedPath){let a=o||mC(r,n);a&&dC(a,r)!==s.value&&gC(a,r,s.value)}else o&&o.remove()},wY=(t,e)=>{let n=Tj(e);if(!n.length)return;let r=zb(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=Cj(s);if(o.has(i))continue;let a=Oj(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},wj=t=>{let{doc:e}=t;if(!zb(e))return;let{tags:n,lists:r,scripts:o}=yY(t.layers);for(let s of[...t.owned])n.has(s)||_Y(t,s);for(let[s,{value:i}]of n)bY(t,s,i);for(let s in Ub)r[s]!==void 0?(Ub[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&Ub[s](e,null);wY(e,o)},SY=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>${U(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${U(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${U(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=U(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(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${U(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${U(_o(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${U(f)}" data-smbls-favicon="${U(_o(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(k(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${U(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${U(Os(f))}">`)}});continue}if(o==="theme-color"&&Array.isArray(s)){s.forEach(f=>{if(!k(f))return;let u=['name="theme-color"'];f.content!==void 0&&u.push(`content="${U(f.content)}"`),f.media!==void 0&&u.push(`media="${U(f.media)}"`),u.push(`data-smbls-theme-color="${U(Rs(f))}"`),e.push(`<meta ${u.join(" ")}>`)});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="${U(f)}" content="${U(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${U(f)}" content="${U(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${U(o)}" content="${U(f)}">`)):e.push(`<meta property="${U(o)}" content="${U(s)}">`):l?e.push(`<meta name="${U(o)}" content="${U(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${U(o)}" content="${U(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${U(o)}" content="${U(s)}">`)}return r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),e.push(...Pa(t)),e.join(`
|
|
167
|
+
`)},Nj={define:{metadata:(t,e)=>{Hb(t,e,n=>{let r=e.state?.root;k(r)&&(r.$helmet=n)})}}},Hb=(t,e,n)=>{let r=kj(e);r&&Mj(e,r,()=>xj(t,e),n)},Sj=t=>{let e=t.metadata;return e?xj(e,t):null},Wb={name:"helmet",create(t){if(!t.metadata)return;let e=kj(t);e&&Mj(t,e,()=>Sj(t))},update(t){let e=pC.get(t);if(!e)return Wb.create(t);e.disposed||e.set(Sj(t))}},xY=Nj;var $j=(t,e,n,r)=>{if(!t||!r?.fetch)return;let o=sl("fetch");if(o){o.executeFetch(t,e,n,r);return}me("fetch").then(s=>{s&&s.executeFetch(t,e,n,r)})},Fj=(t,e)=>{t&&Hb(t,e)},Bj=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},Vi={routes:t=>t,metadata:Fj,fetch:$j,$router:Bj},jj=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=Fj),t.fetch!==!1&&(e.fetch=$j),t.router!==!1&&(e.$router=Bj),e};var bC={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},qb={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},_C={...bC,router:qb},Kb={state:{},pages:{},components:{},router:qb,define:Vi},Uj=t=>{let e={...Kb,...t};for(let n of Object.keys(Kb)){let r=Kb[n];e[n]===r&&r&&typeof r=="object"&&(e[n]={...r})}return e},il=Kb;M();M();var Vj=(t,e)=>V(t.extends)?t.extends:[];M();var zj=(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 Ca(t,Oa))r[o]||(r[o]=s);return r};var wC={};F(wC,{apiUrl:()=>Gb,channelByApiUrl:()=>qj,channelNames:()=>EY,channels:()=>Ie,currentChannel:()=>Jo,defaultChannel:()=>DY,deployTarget:()=>RY,isKnownChannel:()=>LY,mermaidUrl:()=>OY,normalizeOwnerSegment:()=>IY,normalizeProjectKey:()=>NY,normalizeProjectSlug:()=>MY,parseSymboLsHost:()=>$Y,previewProjectUrl:()=>CY,previewUrl:()=>Gj,resolveChannel:()=>Hi,screenshotCdnHost:()=>Yj,screenshotCdnUrl:()=>PY,setChannel:()=>vY,shellUrl:()=>TY,socketUrl:()=>AY});var Ie={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 EY=Object.keys(Ie.channels),Un=t=>!!(t&&Ie.channels[t]),Hi=t=>Un(t)?Ie.channels[t]:Ie.channels[Ie.defaultChannel],vY=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Un(t)?t:null,al=void 0)},al,zi=t=>typeof process<"u"&&process.env&&process.env[t]||null,Jo=()=>{if(al!==void 0)return al;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=zi("SYMBOLS_CHANNEL"),n=zi("NODE_ENV"),r=zi("SYMBOLS_API_URL")||zi("SYMBOLS_API_BASE_URL"),o=r?qj(String(r).trim().replace(/\/+$/,"")):null;return al=Un(t)&&t||Un(e)&&e||Un(o)&&o||Un(n)&&n||Ie.defaultChannel,al===Ie.defaultChannel&&!Un(t)&&!Un(e)&&!Un(o)&&!Un(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 "${Ie.defaultChannel}". Outbound URLs (shellUrl${r?"":"/apiUrl"}) will target production`+(r?` (the API follows ${r}, which is no known channel)`:"")+"; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel."),al},Hj=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],Wj=t=>{let e=Hj.indexOf(t);return e===-1?Hj.length:e},qj=t=>{if(!t)return null;let e=Object.keys(Ie.channels).filter(n=>Ie.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>Wj(n)-Wj(r))[0]},Gb=(t=Jo())=>zi("SYMBOLS_API_URL")||Hi(t).api,AY=(t=Jo())=>zi("SYMBOLS_SOCKET_URL")||Hi(t).socket,TY=(t=Jo())=>Hi(t).shell||null,Gj=(t=Jo())=>Hi(t).preview||null,CY=({owner:t,key:e,env:n="production"}={},r=Jo())=>{let o=Gj(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)}`},OY=({owner:t,key:e,env:n="production"}={},r=Jo())=>{let o=Hi(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}`},RY=(t=Jo())=>Hi(t).deploy||{},Yj=()=>zi("SYMBOLS_SCREENSHOT_CDN")||Ie.screenshotCdn,PY=({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://${Yj()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},LY=Un,DY=Ie.defaultChannel,IY=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",MY=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",NY=(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},Kj={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},$Y=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=Kj[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?Kj[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 Zj=t=>{let e={faces:0,links:0,kept:0};if(!t)return e;let n=UY(Qn());for(let r in t){let o=t[r];if(!o||!o.fontFace)continue;let s=Array.isArray(o.fontFace)?o.fontFace:[o.fontFace];for(let i of s){if(Jj(i)){let a=BY(i);a&&jY(a)&&e.links++;continue}if(FY(i)){if(!Xj(i))continue;if(n.has(SC(i))){e.kept++;continue}Ot(i.trim()),e.faces++;continue}if(typeof i=="string"&&i.includes("font-family")){if(!Xj(i))continue;if(n.has(SC(i))){e.kept++;continue}Ot(`@font-face { ${i} }`),e.faces++}}}return e},Jj=t=>typeof t=="string"&&t.trim().startsWith("@import"),FY=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),BY=t=>{if(!Jj(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},jY=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||Qn();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},Yb=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim().toLowerCase():null},SC=t=>{let e=String(t||""),n=Yb(e,"font-family");if(!n)return null;let r=Yb(e,"font-weight")||"400";return r==="normal"?r="400":r==="bold"&&(r="700"),n.replace(/^['"]|['"]$/g,"")+"|"+r+"|"+(Yb(e,"font-style")||"normal")},Xj=t=>{let e=Yb(String(t||""),"src");return!!e&&e!=="none"},xC=t=>{if(!t)return null;let e=t.type;if(e===5)return t.cssText||"";if(typeof e=="number")return null;let n=t.cssText||"";return/^\s*@font-face/i.test(n)?n:null},UY=t=>{let e=new Set,n=t&&t.styleSheets;if(!n)return e;for(let r=0;r<n.length;r++){let o;try{o=n[r].cssRules}catch{continue}if(o)for(let s=0;s<o.length;s++){let i=xC(o[s]);if(i===null)continue;let a=SC(i);a&&e.add(a)}}return e};var r3='meta[name="brender"]',VY=3e3,kC=t=>t.document||(typeof document<"u"?document:null),o3=(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},s3=(t,e)=>{if(e&&e.__BRENDER__)return!0;let n=kC(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(r3))return!0;let o=o3(t,n);for(let s=o&&o.firstElementChild;s;s=s.nextElementSibling)if(s.hasAttribute("data-br"))return!0;return!1},i3=t=>{let e=kC(t);return!e||!e.head?null:Array.from(e.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]'))},a3=(t,e)=>{if(!e||!e.length)return;let n=[];for(let o of e){let s=null;try{s=o.sheet&&o.sheet.cssRules}catch{s=null}if(s&&s.length)for(let i=0;i<s.length;i++){let a=xC(s[i]);a!==null&&n.push(a)}else{let i=String(o.textContent||"").match(/@font-face\s*\{[^}]*\}/gi);i&&n.push(...i)}}let r=e.find(o=>o.parentNode);if(n.length&&r&&t&&typeof t.createElement=="function"){let o=t.createElement("style");o.setAttribute("data-smbls-faces",""),o.textContent=n.join(`
|
|
168
|
+
`),r.parentNode.insertBefore(o,r)}e.forEach(o=>{o.parentNode&&o.remove()})},Qj=t=>{console.warn("[smbls] the pre-render registry is not JSON \u2014 the page renders fresh:",t.message)},EC=["paths","tree"],zY=(t,e)=>{let n=Xn(e,Hf,{warn:Qj});if(n)return{map:Wf(n.value),block:n.block};let r=Xn(e,zf,{warn:Qj});return r?{map:k(r.value)?r.value:null,block:r.block}:t&&k(t.__BR_REGISTRY__)?{map:t.__BR_REGISTRY__,legacy:!0}:null},HY=(t,e,n)=>!n||!n.map||t.hydrate===!1?!1:n.legacy?t.hydrate===!0||k(t.hydrate)||!!e&&e.__BRENDER_HYDRATE__===!0:!0,WY=t=>{let e=k(t.hydrate)?t.hydrate.timeout:void 0;return typeof e=="number"&&e>=0?e:VY},c3=(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(r3);r&&r.remove();let o=e.documentElement;o&&typeof o.hasAttribute=="function"&&o.hasAttribute("data-brender")&&o.removeAttribute("data-brender")}},KY=()=>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)}),l3=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=sl("fetch"),s=o&&typeof o.whenRequestsIdle=="function"?o.whenRequestsIdle:null;if(s&&await s(),await KY(),!s||!(o.requestsInFlight()>0))return}},qY=["click","keydown"],f3=(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 qY)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,jo(r),a3(n,s),e&&(e.__BRENDER_HYDRATION__={adopted:r.adopted,misses:r.misses,removed:u}),c3(e,n,o),u3(t,e,r.root,!0)};if(!r.pending.size)return f();a=setTimeout(f,WY(t)),l(!0),l3(t,r).then(f,f)},GY=1e3,YY=(t,e)=>{t&&typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:GY}):setTimeout(e,0)},t3=(t,e)=>{let n=sl("fetch");!n||typeof n.seedIsStale!="function"||!n.seedIsStale()||YY(t,()=>{n.revalidateSeed(e).then(r=>{r&&t&&((t.__BRENDER_HYDRATION__||(t.__BRENDER_HYDRATION__={replaced:!0})).refreshed=r)},r=>console.error("[smbls] refreshing a stale pre-rendered page failed:",r))})},u3=(t,e,n,r)=>{let o=sl("fetch");if(!o||typeof o.seedIsStale!="function")return;let s=()=>{let i=()=>t3(e,n);l3(t,{pending:{size:1}}).then(i,i)};if(o.seedIsStale())return r?t3(e,n):s();typeof o.whenSeedTaken=="function"&&o.whenSeedTaken(s)},XY=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}),ZY=(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:XY(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(JY(c,n,r))&&c.dispatchEvent(new a("click",l))}}},JY=(t,e,n)=>{for(let r=t;r&&r!==e;r=r.parentNode)if(n.claimed.has(r))return r;return null},QY=async()=>{for(await Re();!Vo();)await Re()},tX=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=jA(o,{budget:u.budget,progressive:!0,pageOptions:{mountYield:f.mountYield,mountWhole:f.mountWhole}}),h=li(),m=ZY(i,s,r,a),y=u.lease||null;g.lease=y,y&&(o.__mountLease=y);let x=null,E=!1;try{try{x=t(e,n,o.key,f)}catch(T){console.error("[smbls] hydration failed, rendering fresh:",T),delete o.__hydration,jo(a);for(let _ of a.claimed)_.parentNode&&_.remove();return null}E=!await qo(Wr(x),y)||g.routeReady&&!await qo(g.routeReady,y)||!await qo(QY(),y),E&&(o.__hydration===a&&delete o.__hydration,jo(a),FA(x))}finally{f.mountYield=d,f.mountWhole=p,y&&(o.__mountLease=null),UA(o),h(),x||m.replay()}return E?(m.replay(),Hc(k(e)?e:{})):(a.root=x,f3(o,s,i,a,c,l),m.replay(),x)},e3=(t,e,n,r,o,s,i,a,c,l,f)=>{if(!r||typeof r.querySelectorAll!="function")return null;let u=E=>{for(let T=E;T&&T!==r;T=T.parentNode)if(T.parentNode===r&&T.localName==="svg"&&T.id)return!0;return!1},d={};for(let E of r.querySelectorAll("[data-br]")){let T=E.getAttribute("data-br");u(E)?E.removeAttribute("data-br"):d[T]=E}let p={},g=new Set,h=new Map,m=a.map;for(let E in m){let T=m[E],_=d[T];if(!_||p[T])continue;p[T]=_,g.add(_);let b=_.parentNode;b&&h.set(b,(h.get(b)||0)+1)}for(let E in d)p[E]||d[E].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 tX(t,e,n,r,o,s,i,y,a,c,l,f);let x;try{x=t(e,n,o.key,l)}catch(E){console.error("[smbls] hydration failed, rendering fresh:",E),delete o.__hydration,jo(y);for(let T of y.claimed)T.parentNode&&T.remove();return null}return y.root=x,f3(o,s,i,y,a,c),x},n3=(t,e,n,r,o,s,i,a,c,l)=>{if(a3(i,c),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")),s&&(s.__BRENDER_HYDRATION__={replaced:!0});let f=t(e,n,o.key,l);return c3(s,i,a),Promise.resolve(f).then(u=>u3(o,s,u,!1),()=>{}),f},d3=(t,e,n,r,o,s,i,a=null)=>{let c=kC(r),l=n&&n.nodeType?n:n&&n.node||o3(r,c),f=zY(o,c);r.prerendered=!0;let u=bs(c);if(u&&(r.prerender=u),HY(r,o,f)){if(a)return fr().then(()=>zc(a.lease)?e3(t,e,n,l,r,o,c,f,s,i,a):Hc(k(e)?e:{})).then(p=>p||n3(t,e,n,l,r,o,c,f,s,i));let d=e3(t,e,n,l,r,o,c,f,s,i,a);if(d)return d}return n3(t,e,n,l,r,o,c,f,s,i)};M();var y3=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},p3=(t="smbls")=>{let e={};for(let n in xi)Object.prototype.hasOwnProperty.call(xi,n)&&(qn(n)?e[`smbls.${n}`]=xi[n]:e[n]=xi[n]);return e},b3=t=>t.components?{...p3(),...t.components}:p3(),_3=t=>({...Ud,...$c,...Eo,...t.utils,...t.snippets,...t.functions}),w3=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var S3=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,eX=3e3,nX=(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),eX);s.then(l=>{clearTimeout(c),a(l)})})}catch{return Promise.resolve(null)}},h3={},CC=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=nX})=>{if(o||(o=mo[s]||va(i)||"esmsh"),!t)return null;if(!vs(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=ao()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=On(d,p,o)+l;try{await Promise.race([Aa(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=On(d,p,"symbols")+l;await Promise.race([Aa(m,{document:n,type:"module"}),new Promise((y,x)=>setTimeout(()=>x(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!h3[d]&&(h3[d]=!0,!yo(d))){if(Es(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}S3(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},g3=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,rX=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof Fe=="function"?Fe(t):Function.prototype.toString.call(t)}catch{return""}return""},oX=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=rX(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;g3.lastIndex=0;let l;for(;(l=g3.exec(c))!==null;)e.add(l[1])}}return e},sX=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},iX=(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},x3=(t,{syncRead:e=oX(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=sX(n)}={})=>{let o=t&&t.dependencies;if(!vs(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)&&iX(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},aX=t=>import(t),vC={},cX=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},lX=(t,{importModule:e=aX}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)if(!(yo(r)||Es(r))&&!S3(r)){if(!vC[r]){let o=()=>e(r);vC[r]=Promise.resolve().then(o).then(s=>(cX(r,s),s||null),()=>null)}n.push(vC[r])}return Promise.all(n)},fX=2e3,uX=3e3,k3=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=uX}={})=>t?new Promise(o=>{let s=()=>{lX(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:fX}):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,E3=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||va(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]&&yo(a))return await u.require(a,c);if(!u.packages[a]){let d=ao()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=On(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=On(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=On(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=On(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=Lt(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)},dX=/\s+/g,v3=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,pX=(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+=` ${v3(o,e)}`)}return n},hX=(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=pX(t,e));let o=t.replace(dX," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},gX=()=>(t,e,n)=>{let r=v3(t,e);if(t){let{__ref:o}=e;o.__class.style=r}A3()(e.classlist,e,e.state,!0)},A3=()=>(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=We(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&hX(i,e,e.node)}},mX=()=>({style:gX(),classlist:A3()}),yX=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],AC=new WeakSet,TC=!1,bX=t=>!!t&&typeof t=="object",_X=new Set(["key","document","files","assets","themeRoot","config","newConfig","recordCss","router"]),T3=t=>t.toLowerCase()==="font",wX=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)},m3=(t,e)=>typeof e=="function"?"fn:"+String(e):e,C3=(t,e)=>{let n={};for(let o in t||{})T3(o)||(n[o]=t[o]);let r={};for(let o in e)_X.has(o)||(r[o]=e[o]);return r.globalTheme=My(e.globalTheme)||"auto",wX(1+"|"+JSON.stringify(n,m3)+"|"+JSON.stringify(r,m3))},SX=t=>{let e={};for(let n in t||{})T3(n)&&k(t[n])&&bt(e,pt(t[n]),le);return k(pi.font)&&bt(e,pt(pi.font),le),e},xX=(t,e)=>{if(t.preparedDesignSystem!==void 0){let r=t.preparedDesignSystem;return delete t.preparedDesignSystem,r}let n=Xn(e,Gf);return n?n.value:null},O3=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(Kf),r=n&&n.href;if(r)return globalThis.fetch(r,{credentials:"same-origin"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);let o=e.querySelector(qf),s=o&&o.getAttribute("content");if(!s)return null;let i=new URL(s,e.baseURI||void 0).href,a=globalThis.fetch(i,{credentials:"same-origin",priority:"low"}).then(c=>c&&c.ok?c.json():null).catch(()=>null);return EX(a,i,t.window||e.defaultView)}catch{return null}},kX=(t,e)=>{let n=e&&e.performance||(typeof performance<"u"?performance:null);if(!n||typeof n.getEntriesByName!="function")return!1;try{let r=n.getEntriesByName(t);for(let o=0;o<r.length;o++)if(r[o].responseEnd>0)return!0}catch{}return!1},EX=(t,e,n)=>{let r=!1,o=t.then(s=>(r=!0,s));return o.deferred=!0,o.ready=()=>r||kX(e,n),o},R3=t=>!!t&&(t.deferred!==!0||t.ready()),vX=t=>k(t)&&t.format===1&&typeof t.fingerprint=="string"&&k(t.config)&&Array.isArray(t.rules),AX=(t,e,n,r)=>{if(r.localFile)return null;let o=Qg(t);return o?{format:1,fingerprint:C3(n.designSystem,r),config:o,rules:e.rules,sprites:e.sprites}:null},P3=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||mX(),s=()=>e.designSystem?bt(pt(e.designSystem),pt(pi),le):pt(pi),i={};for(let m of yX)e[m]!==void 0&&(i[m]=e[m]);let a,c=bX(n),f=c&&AC.has(n)&&!e.skipDesignSystemInit,u=!f&&!TC,d=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=d;let p={key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,..._C,...i,...r};if(e.skipDesignSystemInit){if(a=P(t)||P(),a&&(a.__domDocument=n),a?.CSS_VARS){mt(a);try{Ot({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&Ot(Iy(a.CSS_MEDIA_VARS,d));let m=Xs(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(m).length&&Ot(m)}finally{ht()}}}else if(e.isolateDesignSystem&&!f){let m=Dg();m.__domDocument=n;let y=null,x=e.captureDesignSystem?E=>{y=E}:void 0;mt(m);try{a=dr(s(),{...p,config:m,recordCss:x})}finally{ht()}y&&(e.preparedDesignSystem=AX(a,y,e,p))}else if(u){let m=P();m&&(m.__domDocument=n);let y=m&&m._scratchConfig&&!p.localFile?xX(e,n):null;vX(y)&&y.fingerprint===C3(e.designSystem,p)?(a=MA(y,m,p,SX(e.designSystem)),e.designSystemSource="prepared"):(a=dr(s(),p),e.designSystemSource="processed"),a&&a!==m&&(a.__domDocument=n),c&&AC.add(n),TC=!0}else{let m=lu(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=dr(m,p)}finally{ht()}c&&AC.add(n),TC=!0}let g=a?.CONFIG||a,h=g?.font;if(h){mt(g);try{Zj(h)}finally{ht()}}return[a,o]},L3=(t,e)=>{let n={};e.state&&lo(n,e.state),t&&t.state&&lo(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=xs({polyglot:r,pathname:ks(e.window),stored:o,stateLang:n.lang});(o||s!==kr(n.lang,r))&&s!==n.lang&&(n.lang=s),r.translations&&TX(e,r,n,s)}return n.isRootState=!0,pt(n)},TX=(t,e,n,r)=>{let o=new Set,s=new Set,i=(l,f)=>{if(!s.has(l)){if(!ps(t,l,n)){o.add(l);return}n[l]=f,s.add(l),Gn(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(Be(e,!1));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 }}\`.`)},D3=(t,e)=>{k(t.routes)&&k(e.pages)&&Lt(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},OC=t=>{Ff(t,t.sharedLibraries)};var IC={};F(IC,{default:()=>BX,getActiveLang:()=>Ki,getLanguages:()=>dp,getLocalStateLang:()=>mp,getPendingLang:()=>up,initPolyglot:()=>Zb,loadTranslations:()=>Wi,polyglotPlugin:()=>ll,setLang:()=>hp,trackLoadTranslations:()=>DC,translate:()=>pp,upsertTranslation:()=>gp});M();M();Mt();var CX="smbls_t_",OX="smbls_tv_",RC=t=>{let e=t&&t.window||(typeof window<"u"?window:null);return e?e.localStorage:null},cl={get(t,e){try{return RC(t)?.getItem(e)??null}catch{return null}},set(t,e,n){try{RC(t)?.setItem(e,n)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t,e){try{RC(t)?.removeItem(e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}}},I3=new WeakMap,M3=t=>{let e=I3.get(t);return e||(e={},I3.set(t,e)),e},N3=new WeakMap,j3=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,U3=t=>{let e=N3.get(t);return e||(e={seq:0,pending:vn(null),wake:null},N3.set(t,e)),e},$3=(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))}),LC=(t,e)=>!!(t?.translations&&t.translations[e]),RX=3e3,PX=2147483647,LX=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,PX):0:RX},DX=new RegExp("\\p{L}","gu"),IX=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(DX);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("")},MX=(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 Ki(){let t=this?.context,e=t?.polyglot,n=this?.state?.root||t?.state?.root;return kr(n?.lang||t?.state?.lang,e)}function up(){let t=this?.context,e=j3(t,this?.state?.root||t?.state?.root);return e?U3(e).pending.get():null}function dp(){let t=this?.context?.polyglot;return t?Be(t):[]}var Xb=(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},F3=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=Xb(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function pp(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=F3(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=Xb(l,t);if(f!==void 0)return f}}let i=s?.root||n?.state?.root,a=i?.translations;if(a){let l=a[o];if(l){let f=Xb(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=F3(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=Xb(l,t);if(f!==void 0)return f}}return NX(r,i,o)&&typeof xa=="function"&&xa(),t}var NX=(t,e,n)=>!!t?.fetch&&!LC(e,n)&&!t._fetchFailed?.[n];async function Wi(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 M3(o)[(r.storagePrefix||"smbls")+":"+t];let s=r.storagePrefix||CX,i=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):OX);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let f=cl.get(n,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=M3(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(cl.get(n,i+t),10)||0,d,p,g;if(L(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(k(f)){let m=l.getDB||(()=>n.fetch),y=L(m)?await m.call(l):n.fetch;if(!y)return;let x=f.rpc||f.from||"get_translations_if_changed",E={p_lang:t,p_cached_version:u,...f.params||{}},T=await y.rpc({from:x,params:E});if(T.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,T.error;let _=T.data;if(!_||!_.changed)return;d=_.translations||{},p=_.version||0,g=!0}else return;if(!g||!d)return;cl.set(n,s+t,JSON.stringify(d)),p&&cl.set(n,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 PC=new WeakMap,B3=Symbol.for("@symbo.ls/polyglot:trackedLoadTranslations");function DC(t){if(!L(t)||t[B3]||t===Wi)return t;let e=function(n,r){let o=this?.context,s=this?.state?.root||o?.state?.root,a=(o?.polyglot?.storagePrefix||"smbls")+":"+n;if(r&&r.inFlight===!0){let l=s&&PC.get(s);return l&&l[a]?l[a]:Wi.call(this,n,r)}let c=t.call(this,n,r);if(s&&c&&typeof c.then=="function"){let l=PC.get(s);l||PC.set(s,l={});let f=Promise.resolve(c);l[a]=f;let u=()=>{l[a]===f&&delete l[a]};f.then(u,u)}return c};return e[B3]=!0,e}var $X=(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 hp(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&&cl.set(n,Sa(r),t);let i=U3(j3(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(!LC(o,t)){i.pending.set(t);let u=null;if(await $3(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!LC(o,t)&&!r.translations?.[t])return}}let l=LX(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=MX(s,IX(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await $3(i,f,l),!c()))return}i.pending.set(null),FX(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function FX(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>sf(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"&&Gn(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];Gn(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{$X(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function gp(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&&k(o.fetch)){let i=this.getDB||(()=>r.fetch),a=L(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 Zb(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let r=cl.get(t,Sa(e)),o=xs({polyglot:e,pathname:ks(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 mp(t){try{let e=Ki.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 ll={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Zb.call(t))}},BX=ll;var yp={polyglot:pp,getLocalStateLang:mp,getActiveLang:Ki,getLang:Ki,setLang:hp,getPendingLang:up,getLanguages:dp,loadTranslations:Wi,upsertTranslation:gp};var NC={};F(NC,{SYSTEM_METRICS:()=>bp,capsizeHandler:()=>MC,capsizePlugin:()=>Qb,computeCapsize:()=>V3,default:()=>jX,resolveFontSizePx:()=>z3,resolveMetrics:()=>H3});var bp={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}},Jb=t=>parseFloat(t.toFixed(4)),V3=(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:`${Jb(t/16)}rem`,lineHeight:`${Jb(f)}px`,capHeightTrim:`${Jb(-p)}em`,baselineTrim:`${Jb(-g)}em`}},z3=(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},H3=(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(bp[i])return bp[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(bp[a])return bp[a]}}return null},MC=(t,e,n,r)=>{if(!t)return;let o=z3(e.fontSize,r);if(!o)return;let s=H3(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=V3(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},Qb={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},jX=Qb;var UX="@symbo.ls/fetch:EARLY",VX=()=>new Promise(t=>setTimeout(t,0)),$C=t=>{let e=typeof globalThis<"u"?globalThis[Symbol.for(UX)]:null,n=e&&e.afterFirstView;return typeof n!="function"||e.afterFirstViewRan?null:(e.afterFirstViewRan=!0,Promise.resolve(t&&t.__firstNavigation).catch(()=>{}).then(VX).then(()=>{try{n(e.ctx||{})}catch(r){console.error("[smbls] fetch.early afterFirstView failed:",r)}}))};var jC=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),UC=t=>je(t)?t.library!==void 0?t.library:t.key??t.name:t,zX=(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=UC(i);if(!jC(a))return i;let c=s(a);return c?je(i)?{...i,library:c}:c:null}).filter(Boolean)},VC=new WeakMap,HX={lazy:!0,window:globalThis},W3=["components","pages","functions","methods","snippets"],WX=W3.filter(t=>t!=="methods"),FC=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},KX=(t,e)=>{if(fs(e)||fs(t))return"boot-revived";if(FC(t))return"local";if(e&&typeof e=="object"){if(FC(e.app))return"local";for(let n of WX)if(FC(e[n]))return"local"}return"raw-json"},K3=(t,e)=>{let n=e?t[e]:t;if(!k(n))return;let r=we(n,{},HX);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},qX=t=>{if(!k(t)||fs(t))return t;for(let e of[...W3,"app"])K3(t,e);return oa(t)},GX=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=je(n)?n.library:n;k(r)&&!e.has(r)&&qX(r)}return t},zC=new WeakMap,BC=t=>{let e=VC.get(t);e&&(VC.delete(t),k3(e))},q3=t=>t.notifications===!0||t.notifications!==!1&&!!t.editor&&t.editor.verbose===!0,G3=t=>t.sync!==!1&&Ri(t)||q3(t),Y3=t=>{let e={shorthand:null,analyze:null,inspect:null,fetch:null,sync:null,windows:null,dropdown:null,tooltip:null};for(let n of pj(t))e[n]=me(n);return G3(t)&&(e.sync=me("sync")),e},HC=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(v(t)?t:"smblsapp");(!e.define||e.define===Vi)&&(e.define={...Vi}),e.cssPropsRegistry=xt,e.window=y3(e);let s=Y3(e),i=KX(t,e);if(globalThis.__SMBLS_BUILD_NO_SHARED_LIBRARIES__&&e.sharedLibraries&&e.sharedLibraries.length)OC(e);else if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(x=>{let E=UC(x);return typeof E=="string"||jC(E)})){e.sharedLibraries=zX(e.sharedLibraries,e.symbolsConfig);let x=new Set(e.sharedLibraries.map(T=>UC(T)).filter(T=>k(T)&&!jC(T))),E=await Uf(e.sharedLibraries,{apiBaseUrl:Gb()});e.sharedLibraries=i==="raw-json"?E:GX(E,x)}zj(e.sharedLibraries),OC(e)}Ri(e)&&Zc(e,e.designSystem);let a=zC.get(e);a&&(zC.delete(e),R3(a)&&(e.preparedDesignSystem=await a));let[c,l]=P3(o,e);if(e.designSystem=c,e.registry=l,Xf(e,{apiBaseUrl:Gb()}),e.cases||(e.cases={}),e.shorthand){let y=await(s.shorthand||me("shorthand"));y&&y.shorthandPlugin.prepareContext(e)}let f=L3(t,e);if(e.state=f,_f(f),e.pages=D3(t,e),e.components=b3(e),e.utils=_3(e),mo[e.packageManager]){let y=x3(e);y&&y.deferred?(y.blocking&&await CC({...e,dependencies:y.blocking}),VC.set(e,y.deferred)):e.dependencies=await CC(e)}if(e.methods=w3(e),e.routerOptions=dF(t,e),e.defaultExtends=[iy],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope=e.globalScope||{},e.plugins.some(y=>!y||typeof y!="object")){let y=e.plugins.filter(x=>!x||typeof x!="object");e.plugins=e.plugins.filter(x=>x&&typeof x=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${y.length} non-plugin entr${y.length===1?"y":"ies"} (${y.map(x=>JSON.stringify(x)).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&&k(e.globalScope)&&(e.globalScope=us(e.globalScope));let d=(y,x)=>{i==="raw-json"&&K3(y,x)};d(t),d(e,"components"),d(e,"pages"),d(e,"functions"),d(e,"methods"),d(e,"snippets"),d(e,"app"),Nf(e,u),$f(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&&!Xe(e,"polyglot")){e.plugins.push(ll);for(let y in yp)typeof e.functions[y]!="function"&&(e.functions[y]=yp[y])}if(e.polyglot&&e.functions&&typeof e.functions.loadTranslations=="function"&&(e.functions.loadTranslations=DC(e.functions.loadTranslations)),Xe(e,"helmet")||e.plugins.push(Wb),Xe(e,"inertOutside")||e.plugins.push(ey),e.fetch){let y=await(s.fetch||me("fetch"));if(y){Xe(e,"fetch")||e.plugins.push(y.fetchPlugin);let{fetchFunctions:x}=y;for(let E in x)typeof e.functions[E]!="function"&&(e.functions[E]=x[E])}}if(e.designSystem?.typography?.useCapsize!==!1&&!Xe(e,"capsize")&&(e.plugins.push(Qb),e.cssPropsRegistry.useCapsize=MC),e.shorthand&&!Xe(e,"shorthand")){let y=await(s.shorthand||me("shorthand"));y&&e.plugins.push(y.shorthandPlugin)}if(e.analyze&&!Xe(e,"analyze")){let y=await(s.analyze||me("analyze"));if(y){let x=e.analyze===!0?{}:e.analyze;e.analyze=y.createAnalyzeState(x),e.plugins.push(y.analyzePlugin)}}let g=e.sync!==!1&&Ri(e),h=G3(e)?await(s.sync||me("sync")):null;if(h&&g&&!Xe(e,"sync")&&e.plugins.push(h.syncPlugin),e.inspect&&!Xe(e,"inspect")){let y=await(s.inspect||me("inspect"));y&&e.plugins.push(y.inspectPlugin)}h&&q3(e)&&!Xe(e,"notifications")&&e.plugins.push(h.notificationsPlugin);let m=async y=>{if(e[y]===!1)return;let x=await(s[y]||me(y));if(!x)return;let{components:E,functions:T}=x;for(let _ in E)k(e.components[_])||(e.components[_]=E[_]);for(let _ in T)typeof e.functions[_]!="function"&&(e.functions[_]=T[_])};return await m("windows"),await m("dropdown"),await m("tooltip"),e},_p=async(t,e)=>{k(e)||(e={});let n=aF(e);Y3(e);let r=O3(e);if(r&&zC.set(e,r),n&&(n.lease=sF(e),await fr(),!n.lease.live()))return Hc(k(t)?t:{});mr(t)?(e.parent=t,t={}):v(t)?(e.key=t,t={}):k(t)?t={...t}:t={};let o=e.window||(typeof window<"u"?window:null),s=s3(e,o);globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s&&Gt("prerender");let i=!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s?i3(e):null;if(await HC(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&&k(e.app))for(let u in e.app)t[u]===void 0&&(t[u]=e.app[u]);t.extends=Vj(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await E3({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 BC(e),t;let c=e.parent||a.body,l={verbose:e.verbose,context:e,...e.domqlOptions};if(!globalThis.__SMBLS_BUILD_DROP_F_prerender__&&s){let u=await d3(Xt,t,c,e,o,i,l,n);return Vd(u)||(BC(e),$C(e)),u}let f=n?await lF(t,c,e,l,n):Xt(t,c,e.key,l);return f?(BC(e),$C(e),typeof window<"u"&&!e.document&&(window.__smblsApp=f),f):Hc(t)};var YX=(t,e)=>{if(!k(e))return bt(t,{});let{state:n,...r}=e;return bt(t,r),n!==void 0&&(k(t.state)&&k(n)?lo(t.state,n):t.state===void 0&&(t.state=n)),t},WC=(t,e)=>Uj(YX(t===il?{}:t,e)),XX=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},ZX=()=>{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}},X3=t=>{let e=ZX();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},KC=(t,e=il,n)=>{let r=WC(e,n);return X3(r),XX(r),_p(t,r).then(s=>{if(Vd(s))return s.destroy=()=>ji(s),s;if(HA(s,r),s.destroy=()=>ji(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=zd(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})},JX=(t,e=il,n)=>{let r=KC(t,e,n),o=WC(e,n),s=o.key;return s&&o.editor&&o.editor.async&&me("fetchOnCreate").then(i=>{i&&i.fetchAsync(r,s,{utils:Ud,...o})}),r},QX=async(t,e=il,n)=>{let r=WC(e,n);X3(r);let o=e.key;if(o&&r.editor){let i=await me("fetchOnCreate");i&&await i.fetchSync(o,r)}let s=await _p(t,r);return Vd(s)?(s.destroy=()=>ji(s),s):(HA(s,r),s.destroy=()=>ji(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=zd(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)},tZ=(t={},e=il,n)=>KC({deps:{isUndefined:Zt},...t},bt({domqlOptions:{onlyResolveExtends:!0}},e),n);Mt();M();Uh();var Z3={"@symbo.ls/signal":bl,"@symbo.ls/scratch":tk,"@symbo.ls/element":ny,"@symbo.ls/css":fm,"@symbo.ls/utils":Da,"@symbo.ls/state":lE,"@symbo.ls/router":$c,"@symbo.ls/polyglot":IC,"@symbo.ls/helmet":yC,"@symbo.ls/fetch":ba,"@symbo.ls/capsize":NC,"@symbo.ls/shorthand":TT,"@symbo.ls/analyze":Gd,"@symbo.ls/inspect":Xd,"@symbo.ls/channels":wC},J3=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in Z3)r[o]||(r[o]=Z3[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},Q3=(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},t4=["@symbo.ls/sdk"],e4=(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 YC={};F(YC,{BUILD_DOMQL_SYSTEM_PROMPT:()=>h4,DEFAULT_MAX_TOKENS:()=>i_,DEFAULT_MODEL:()=>Qo,DEFAULT_PROVIDER:()=>o_,DEFAULT_TEMPERATURE:()=>s_,MODEL_TIER_ALIASES:()=>GC,PROVIDER_MODELS:()=>r4,SIMONE_BASE_URL:()=>wp,SIMONE_CHAT_PATH:()=>t_,SIMONE_CODE_PATH:()=>e_,SIMONE_CODE_SYMBOLS_PATH:()=>n_,SIMONE_HEALTH_PATH:()=>r_,SIMONE_TOOLS_PATH:()=>n4,WORKSPACE_SYSTEM_PROMPT:()=>p4,buildMessages:()=>c4,chat:()=>Sp,health:()=>a4,parseSimoneResponse:()=>u4,resolveModel:()=>g4,streamChat:()=>Sp,streamCode:()=>s4,streamCodeSymbols:()=>i4,toLegacyEnvelope:()=>d4});var wp="https://symbols-service-production.up.railway.app",t_="/api/chat",e_="/api/code",n_="/api/code-symbols",r_="/api/health",n4="/api/tools",o_="openai-compatible",Qo="claude-sonnet-4-6",s_=.7,i_=4096,r4={"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-3-pro-preview"]};function o4(t,e){return t?t.replace(/\/$/,"")+e:e}function eZ(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 Sp(t,e={},n){let{baseUrl:r=wp,path:o=t_,provider:s=o_,model:i=Qo,temperature:a=.7,maxTokens:c=4096,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:s,model:i,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(o4(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let T=g.statusText;try{let b=await g.text();try{let w=JSON.parse(b);T=w.error||w.detail||T}catch{T=b||T}}catch{}let _=new Error(`simone: HTTP ${g.status} \u2014 ${T}`);throw _.status=g.status,_}if(!g.body||typeof g.body.getReader!="function"){let T=await g.text();return n&&n(T),{text:T,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],x=[],E="";try{for(;;){let{done:T,value:_}=await h.read();if(T)break;E+=m.decode(_,{stream:!0});let b=E.indexOf(`
|
|
169
|
+
`);for(;b!==-1;){let w=E.slice(0,b).trim();if(E=E.slice(b+1),w){let S=eZ(w);if(S?.done)return{text:y.join(""),errors:x};let A=S?.chunk;A?.delta&&(y.push(A.delta),n&&n(A.delta)),A?.error&&x.push(A.error)}b=E.indexOf(`
|
|
170
|
+
`)}}return{text:y.join(""),errors:x}}finally{h.cancel().catch(()=>{})}}function s4(t,e={},n){return Sp(t,{...e,path:e_},n)}function i4(t,e={},n){return Sp(t,{...e,path:n_},n)}async function a4(t={}){let{baseUrl:e=wp,signal:n,headers:r}=t,o=await fetch(o4(e,r_),{method:"GET",headers:r,signal:n});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function c4({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}
|
|
171
171
|
|
|
172
172
|
---
|
|
173
173
|
Context:
|
|
174
174
|
\`\`\`json
|
|
175
175
|
${i}
|
|
176
|
-
\`\`\``}o.push({role:"user",content:s})}return o}var
|
|
177
|
-
`),
|
|
176
|
+
\`\`\``}o.push({role:"user",content:s})}return o}var f4=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,nZ=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function rZ(t){let e=[];for(let n of t.matchAll(f4))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function oZ(t){return t.replace(f4,"").trim()}function qC(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 l4(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&nZ.has(t.type)}function u4(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=rZ(e),r=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=n.filter(i=>i.lang==="json"),s=oZ(e);for(let i of o){let a=qC(i.code);if(l4(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=qC("["+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=qC(e);if(l4(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 d4(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 p4=["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(" "),h4=["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(`
|
|
177
|
+
`),GC={Starter:Qo,Free:Qo,Pro:"claude-opus-4-6"};function g4(t){return t?GC[t]||t:Qo}Dy(Ku);J3(void 0,{smbls:XC,"@symbo-ls/simone-server":YC});Q3(void 0,{"@symbo.ls/windows":()=>({...qA,...WA}),"@symbo.ls/dropdown":()=>({...tT,...nT})});var m4=Symbol.for("smbls.serverUtils");globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__&&typeof globalThis[m4]!="function"&&(globalThis[m4]=()=>import("@symbo.ls/utils/serverUtils.js"));
|
|
178
178
|
//# sourceMappingURL=smbls.cjs.map
|