smbls 3.14.310 → 3.14.319
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 +12 -0
- package/dist/smbls.cjs +7 -7
- package/dist/smbls.embed.iife.js +3 -3
- package/dist/smbls.esm.js +2 -2
- package/dist/smbls.iife-string.js +1 -1
- package/dist/smbls.iife.js +18 -18
- package/package.json +2 -2
package/dist/smbls.cjs
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
`)){h++;break}h++}o.push([f,h]),s=h;continue}s++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},W_=(e,t,r)=>{let n=String(e).trimStart();if(/^(export|import)\s/.test(n))return e;try{return r.window.eval(`(${e})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),l=null;if(i){let c=String(e).trim();if(/^function[\s(]/.test(c))try{l=r.window.eval("(async "+c+")")}catch{}}else if(a){let c=String(e),u=a[1];for(let d=0;d<5;d++){let f=T2(c,u);if(!f||f===c)break;c=f;try{l=r.window.eval("("+c+")");break}catch(p){let h=/Identifier '([^']+)' has already been declared/.exec(p&&p.message||String(p));if(!h||h[1]!==u)break}}}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+s+`.
|
|
13
13
|
First 200 chars of source: `+String(e).slice(0,200)),e)}},Wt=(e,t={},r={window:{eval:O2}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(C(a))Hn(a)?s[i]=W_(a,`"${i}"`,r):s[i]=a;else if(P(a)){let l=s[i]=[];for(let c=0;c<a.length;c++){let u=a[c];if(C(u))l.push(Hn(u)?W_(u,`array index ${c} (prop "${i}")`,r):u);else if(k(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(k(a)){let l=s[i]&&typeof s[i]=="object"&&!P(s[i])?s[i]:s[i]={};n.push([a,l])}else s[i]=a}}return t},R2="Set",P2="Map",$2=e=>!e||typeof e!="object"?e:e.__type===R2&&Array.isArray(e.values)?new Set(e.values):e.__type===P2&&Array.isArray(e.entries)?new Map(e.entries):e,ps=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];C(o)&&Hn(o)?r.push([n,o]):t[n]=$2(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
14
14
|
`);t[n]=A.eval(`(function(__gs__) { ${s}
|
|
15
|
-
return (${o}); })`)(t)}catch{try{t[n]=A.eval(`(${o})`)}catch{t[n]=o}}return t},mp=(e,t={verbose:!0})=>{try{return e?A.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},yp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),gl=e=>{for(let t in e)return!1;return!0},bp=e=>k(e)&&gl(e),xp=()=>Object.create(null),hs=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&rn(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},nn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)rn(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ke=(e,t,r={},n=new WeakMap)=>{if(!re(e)||!re(t)||He(e)||He(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&rn(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];He(c)?e[a]=c:re(l)&&re(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ml=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!ml(e[i],t[i],r))return!1}return!0},I2=new Set(["node","__ref"]),vp=(e,t,r=I2)=>{if(e===t)return!0;if(!re(e)||!re(t)||He(e)||He(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(He(c)||He(u)){if(c!==u)return!1}else if(re(c)&&re(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},_p=(e,t)=>{if(t==null)return e;if(Ge(t)("string","number"))delete e[t];else if(P(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},yl=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=yl(e[r]));return t},wp=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},Sp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},kp=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},Cp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},Ap=e=>{let r=[],n=0;for(let o=0;o<e.length;o++)if(r.length<2)r.push(e[o]);else if(e[o]===r[o%2]?n++:(r=[e[o-1],e[o]],n=1),n>=20)return(U_==="test"||U_==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Ep=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},Op=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var gs,ms,ys,bl=G(()=>{"use strict";nr();gs=(function(){let e=0;function t(){return e++,e}return t})(),ms=gs,ys=(e,t,r)=>(de(r,e)||r||e.key||gs()).toString()});var kt,Tp,wr,xl,Rp,Pp,$p,Sr,Ip,on,Fp=G(()=>{"use strict";kt="production",Tp=kt,wr=(e=kt)=>e==="production",xl=(e=kt)=>e==="testing"||e==="test",Rp=xl,Pp=(e=kt)=>e==="staging",$p=(e=kt)=>e==="local",Sr=(e=kt)=>e==="development"||e==="dev"||e==="local",Ip=(e,t=kt)=>t[e],on=(e=kt)=>!wr(e)});function bs(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function Mp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var jp,Dp,F2,Lp,qn,Gn,ft,Kn=G(()=>{"use strict";jp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Dp=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},F2=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Lp=e=>F2.test(e),qn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Gn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},ft=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}});var Np,q_=G(()=>{"use strict";Fe();nr();Np=(e,t)=>{let{__ref:r}=e,n=e.if;if(O(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?de(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Bp,Vp,G_=G(()=>{"use strict";Bp=(e,...t)=>{e&&t.map(r=>console.log(r))},Vp=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function qp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function Gp(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var zp,Up,Wp,Hp,K_=G(()=>{"use strict";Fe();Qo();zp=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Up=(e,t,r=365)=>{if(Ie(pe)||Ie(pe.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;pe.cookie=`${e}=${t};${o};path=/`},Wp=e=>{if(Ie(pe)||Ie(pe.cookie))return;let t=`${e}=`,n=decodeURIComponent(pe.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""},Hp=e=>{Ie(pe)||Ie(pe.cookie)||(pe.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Xn,X_,Kp,Xp=G(()=>{"use strict";Xn={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"])},X_=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"]),Kp=e=>Xn.body.has(e)});var Yp,Y_,Yn,_s,Xe,Jp,vl,ws,Zp,Ss,_l,wl,ks,Sl,Jn,j2,Ht,J_,xs,Cs,Qp,vs,eh,th,kl,Cl,Al,El,Ol,Tl,Z_,Rl=G(()=>{"use strict";zn();rh();nr();Fe();Yp="production",Y_=e=>e.sourcemap!==!1&&Yp!=="production",Yn=e=>{if(e.includes("+"))return e.split("+").filter(qt);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!qt(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},_s=(e,t,r)=>{let n=[],o=Yn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=P(s)?[...n,...s]:[...n,s]),n},Xe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Jp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=P(r)?r:[r],o=P(e)?e:[e];return{...t,extends:Bn(o,n)}},vl=()=>Math.random().toString(36).substring(2),ws={},Zp={},Ss=e=>ws[e.__hash],_l=(e,t)=>{let r=vl();return C(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ws[r]=t),t},wl=(e,t)=>e.__hash?t.concat(Ss(e)):_l(e,t),ks=(e,t,r,n=new Set,o,s)=>{for(let i of e)P(i)?ks(i,t,r,n,o,s):Jn(i,t,r,n,o,void 0,s);return t},Sl=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Jn(a,t,r,n,o,s,i),t},Jn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(P(e))return ks(e,t,r,n,o,i);let a=s;return C(e)?(a=e,e=Cs(e,r)):i&&k(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?Sl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},j2=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Ht=(e,t,r,n,o)=>{t=ge(t);for(let s in t){if(j2.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?k(a)&&!P(a)?(r[s]=r[s]||{},J_(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(k(i)&&k(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];qt(s)?e[s]=Ht(i,a,l,n,c):Ht(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(P(i)&&P(a))e[s]=i.concat(a);else if(P(i)&&k(a)){let l=Ht({},i);e[s]=Ht(l,a)}}}}return e},J_=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];k(s)&&!P(s)?(e[o]=e[o]||{},J_(e[o],s,r,n)):e[o]=r}}},xs=(e,t,r)=>e.reduce((n,o,s)=>{let i=ge(o),a=r?r[s]:void 0;return Ht(n,i,t,a)},{}),Cs=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(C(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Yp==="test"||Yp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Qp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),vs=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return Ss(e)||[];let s=Jn(e,[],t,new Set,r,void 0,n);return r?s:wl(e,s)},eh=(e,t)=>{if(!e)return t;let r=P(e)?e:[e];return Bn(r,t)},th=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(qt(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},kl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Xe([l,...a],e):Xe(e.extends,e)}else Xe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Xe(i,e):Xe(e.extends,e)}else Xe(e.extends,e);return Cl(e,t,r),Al(e,t,r),El(e,t,r),e.component&&Xe(de(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Vn(n.__extends)},Cl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},Al=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},El=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Xe(o,e),n.__extends},Ol=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Y_(r),a=i?[...n.__extends]:null,l=Vn(n.__extends.map((c,u)=>Cs(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&k(p)&&C(h)&&c.set(p,h)}let u=[],d=vs(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=vs(l,o);n.__extendsStack=c}return n.__extendsStack},Tl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Y_(r)){let s={},i=n.__extendsNames||[],a=xs(o,s,i),l={};Ht(e,a,l,void 0,s),n.__sourcemap=l}else{let s=xs(o);Ht(e,s)}return e},Z_=(e,t,r={})=>(kl(e,t,r),Ol(e,t,r),Tl(e,t,r),e)});function nh(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function oh(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function sh(e,t,r){let{context:n}=t||{},[o]=Yn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var qt,rh=G(()=>{"use strict";Rl();Fe();qt=e=>{if(!C(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Q_(e,t){let{props:r,on:n}=t,o=en(e.split("on")[1]),s=n[o],i=r[e];O(s)?n[o]=(...a)=>{if(s(...a)!==!1&&O(i))return i(...a)}:n[o]=i}var e0=G(()=>{"use strict";ls();Fe()});function Pl(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(O(o)||o!=null&&qn(this.context))){let h=en(n.slice(2));e.on&&(e.on[h]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let a=this.define?.[n],l=this.context?.define?.[n],c=k(a)||O(a),u=k(l)||O(l);if(c||u)continue;let d=n.charAt(0);if(r0.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=ih.test(n)||t0.test(n)||L2(o),p=vr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function $l(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=O(o)||o!=null&&qn(this.context);if(s&&i){Q_(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(r0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=k(l)||O(l),d=k(c)||O(c),f=ih.test(n)||t0.test(n),p=vr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Il(e=this){let t=[];return Pl.call(this,e,{cachedKeys:t}),$l.call(this,e,{cachedKeys:t}),e}function ah(e={}){return e.on||(e.on={}),e.props||(e.props={}),Il.call(this,e)}function ch(e,t){this.__element.update({props:e},t)}function Rs(e){let t={update:ch.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var ih,t0,r0,D2,L2,Os,As,lh,Ts,Ps,$s,Fl,Es,uh,fh,dh=G(()=>{"use strict";Wn();e0();nr();Fe();ls();Kn();ih=/^[A-Z]/,t0=/^\d+$/,r0=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),D2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),L2=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(D2.has(t)||ih.test(t))return!0;return!1},Os=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return re(n)?{...n}:(o.__propsStack.push(n),{})};As=e=>Ge(e)("string","number")?{inheritedString:e}:e,lh=(e,t)=>!e||!t.length?!1:t.includes(e),Ts=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=As(i);n.unshift(l)}if(s){let l=As(s);n.unshift(l)}return n};Ps=e=>{let t=new Set;return e.filter(r=>!r||_r.has(r)||t.has(r)?!1:(t.add(r),!0))},$s=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(_r.has(o))return n;for(;O(o);)o=de(o,t);return fe(n,ge(o,{exclude:_r}))},{}),Rs(t),t.props),Fl=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Ts(e,t)]),k(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),P(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Ps(o),n.__propsStack},Es=(e,t)=>{let{__ref:r}=e,n=Fl(e,t);n.length?$s(n,e):(r.__propsStack=[],e.props={})},uh=function(e,t,r){let{__ref:n}=e;if(n.__if)Es(e,t);else try{Es(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Rs(e),e},fh=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=Ts(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=Ps(s),n.__propsStack.length&&$s(n.__propsStack,t),t}});var n0,jl,Dl,Ll,Ml,ph,Nl,Bl,Vl,hh,o0=G(()=>{"use strict";Rl();bl();ts();dh();Xp();Fe();n0="production",jl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Xn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Dl=(e,t,r)=>{if(e===void 0)return(n0==="test"||n0==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)("string","number")?jl(e,t,r):O(e)?{props:e}:e},Ll=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Ml=(e,t,r,n,o)=>{if(!t)return o;if(rr(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},ph=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Nl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Bl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Vl=(e,t,r)=>{let n=Ll(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=_s(e,t,r),n.path=Nl(e,t,r),n},hh=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:Dl(e,t,r);if(!i)return;let a=Ml(i,t,r,n,o),l=ys(i,a,r);Vl(i,a,l);let c=Os(i,a,l),u=Bl(i,a,l,n,o),d=i.on||{};return{...i,key:l,props:c,parent:a,context:u,on:d}}});var gh,zl,Ul,Wl,Hl,mh,ql,yh,bh,xh,vh,s0=G(()=>{"use strict";zn();Wn();nr();Fe();gh=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ge(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},zl=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},Ul=(e,t)=>{if(!e.includes("../"))return;let n=e.split("../").length-1;for(let o=0;o<n;o++){if(!t.parent)return null;t=t.parent}return t},Wl=(e,t,r={})=>{let n=C(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Hl=(e,t,r={})=>{let o=e.__ref.__state;if(!ql(e))return;let s=zl(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ul(o,t.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Wl(o,i,r)},mh=(e,t)=>{let r=e.__ref,n=Hl(e,t);if(n===void 0)return e.state;if(Ge(n)("object","array"))return ge(n);if(Ge(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ql=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)("number","string","boolean"))},yh=function(e){return re(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},bh=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},xh=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ge(n,tn),s={[e.key]:o},i=k(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?ss(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},vh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,tn);return}(o?nn:Ke)(e,t,tn)}});var M2,_h,i0=G(()=>{"use strict";M2=(e,t)=>{let r=t;for(;r;){if(r===e)return!0;r=Object.getPrototypeOf(r)}return!1},_h=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&!M2(e.scope,i)&&Object.setPrototypeOf(e.scope,i)}}});var a0,Gl,kr,Kl,wh,Sh=G(()=>{"use strict";Fe();Kn();a0=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Gl=(e,t,r,n,o)=>{if(e=Gn(e,t),!!O(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},kr=(e,t,r)=>{if(!t)throw new Error("Element is required");ft(e,t,r);let n=a0(e,t);if(n){let{state:o,context:s}=t;return Gl(n,t,o,s,r)}},Kl=(e,t,r,n,o,s)=>{if(e=Gn(e,r),!!O(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},wh=(e,t,r,n)=>{ft(e,r,t,n);let o=a0(e,r);if(o){let{state:s,context:i}=r;return Kl(o,t,r,s,i,n)}}});var kh,Is,Ch=G(()=>{"use strict";kh={},Is={}});var u0={};K(u0,{setup:()=>B2,supabaseAdapter:()=>c0});var l0,N2,B2,Ah,V2,c0,f0=G(()=>{"use strict";l0=new Map,N2=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,B2=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=N2(l,t,o===!1),u=l0.get(c);return u||(u=await n(l,t,a),u?.auth&&l0.set(c,u)),!u||!u.auth?null:c0(u)},Ah=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},V2=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},c0=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let l=(r?e.schema(r):e).from(t).select(n||"*");if(l=Ah(l,o),l=V2(l,i),s)try{for(let c in s)l.setHeader?l=l.setHeader(c,s[c]):e.rest&&(e.rest.headers[c]=s[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return l},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=Ah(a,o),a.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Ah(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var p0={};K(p0,{restAdapter:()=>d0,setup:()=>U2});var z2,Cr,U2,d0,h0=G(()=>{"use strict";z2=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},Cr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},U2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return d0(e,t,r,n)},d0=(e,t={},r,n={})=>{let o=r?.token||null,s=u=>{let d={...t,...u};return o&&(d.Authorization=`Bearer ${o}`),d},i=u=>({...s(u),"Content-Type":"application/json"}),a=u=>({...n,...u}),l=(u,d)=>{let f=d||e;if(u&&(u.startsWith("http://")||u.startsWith("https://")))return u;let p=u&&!u.startsWith("/")?"/":"";return`${f}${p}${u||""}`};return{name:"rest",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await Cr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let d=await Cr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(u)}));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await Cr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:u,params:d,select:f,limit:p,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let v={...d};return f&&(v.select=f),p&&(v.limit=p),h&&(v.offset=h),m&&(v.single=!0),g&&(typeof g=="string"?v.order=g:Array.isArray(g)?v.order=g.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):g.by&&(v.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),Cr(z2(b||e,u||"",v),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>Cr(l(`rpc/${u}`,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>Cr(l(u,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),update:({from:u,data:d,params:f,method:p,headers:h,baseUrl:g})=>{let m=f?.id||d?.id,y=m?`${u}/${m}`:u;return Cr(l(y,g),a({method:p||"PATCH",headers:i(h),body:JSON.stringify(d)}))},delete:({from:u,params:d,headers:f,baseUrl:p})=>{let h=d?.id,g=h?`${u}/${h}`:u;return Cr(l(g,p),a({method:"DELETE",headers:s(f)}))}}}});var m0={};K(m0,{localAdapter:()=>g0,setup:()=>H2});var Eh,W2,H2,g0,y0=G(()=>{"use strict";Eh=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},W2=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},H2=async({data:e,...t})=>g0(e,t),g0=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let h=i(u).filter(g=>Eh(g,d));return W2(h,f)},insert:async({from:u,data:d})=>{let f=i(u),h=(Array.isArray(d)?d:[d]).map(g=>{let m={id:g.id||++c,...g};return f.push(m),m});a(u);for(let g of h)l(u,"INSERT",g,null);return{data:Array.isArray(d)?h:h[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(Eh(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)Eh(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}});var zs={};K(zs,{createAdapter:()=>J2,default:()=>a$,executeFetch:()=>Vs,fetchPlugin:()=>Ih,initAdapterAuth:()=>Ql,parseDuration:()=>Ds,queryClient:()=>i$,registerAdapter:()=>Y2,resolveDb:()=>_0});var q2,G2,Xl,js,Yl,Rh,K2,X2,Y2,J2,_0,Ds,Be,w0,Fs,Z2,Bs,Ls,Ms,Jl,Ph,Zl,Q2,b0,Oh,S0,k0,Zn,x0,e$,v0,t$,ec,C0,Ql,$h,dt,Ct,Ns,sn,Gt,Ar,r$,n$,o$,Th,s$,Vs,i$,Ih,a$,an=G(()=>{"use strict";D();q2=["select","rpc","insert","update","delete","subscribe"],G2={supabase:()=>Promise.resolve().then(()=>(f0(),u0)),rest:()=>Promise.resolve().then(()=>(h0(),p0)),local:()=>Promise.resolve().then(()=>(y0(),m0))},Xl=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),js=(()=>{if(typeof globalThis<"u"&&globalThis[Xl])return globalThis[Xl];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Xl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Xl]}catch{}return e})(),Yl=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Rh=(()=>{if(typeof globalThis<"u"&&globalThis[Yl])return globalThis[Yl];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Yl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Yl]}catch{}return e})(),K2=5e3,X2=e=>new Promise(t=>{if(js[e])return t(js[e]);let r=Rh[e]||=[],n=!1,o=()=>{n||(n=!0,t(js[e]||null))};r.push(o),setTimeout(o,K2)}),Y2=(e,t)=>{js[e]=t;let r=Rh[e];if(r&&r.length){Rh[e]=[];for(let n of r)n()}},J2=e=>{let t={};for(let r of q2)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},_0=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=js[n]||G2[n];if(!o&&(o=await X2(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},Ds=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Be=new Map,w0=new Map,Fs=new Map,Z2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=t$(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Bs=e=>Be.get(e)||null,Ls=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=w0.get(e);if(s)for(let i of s)O(i)&&i(o);return o},Ms=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},Jl=e=>{if(e){Be.delete(e);return}Be.clear()},Ph=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:C(e)?{staleTime:Ds(e),gcTime:3e5}:{staleTime:Ds(e.stale||e.staleTime)||6e4,gcTime:Ds(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Zl=null,Q2=()=>{Zl||(Zl=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=w0.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Zl.unref&&Zl.unref())};Q2();b0=3,Oh=e=>Math.min(1e3*2**e,3e4),S0=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:b0,delay:Oh}:typeof t=="number"?{count:t,delay:Oh}:{count:t.count??b0,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Oh}},k0=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=O(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=O(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Zn={focus:new Set,online:new Set},x0=!1,e$=()=>{if(x0||typeof window>"u")return;x0=!0;let e=()=>{for(let r of Zn.focus)r()},t=()=>{for(let r of Zn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},v0=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(C(e))return{from:e,method:"select",query:!0,on:"create"};if(k(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},t$=e=>(!e||O(e),e),ec=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},C0=(e,t,r)=>{let n;if(!e)n=void 0;else if(O(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=O(s)?s(t,t.state):s}}return n},Ql=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},$h=async(e,t)=>{if(O(e.select))return e.auth!==!1&&await Ql(e,t),e;if(e.__resolved)return e.auth!==!1&&await Ql(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=_0(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await Ql(r,t),r):null},dt=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},Ct=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Ns=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},sn=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Gt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Ar=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||O(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||O(e.skip)&&e.skip(t,t.state))return;let s=await $h(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:S,cursor:E,getNextPageParam:F,getPreviousPageParam:w,infinite:$,placeholderData:q,initialData:te,select:j,keepPreviousData:I}=e,Q=C(j)?j:void 0;if(c&&O(t.getQuery)){let V=t.getQuery(s.name||"paths");V&&(Q=V.select||V.length&&V.join(",")||Q)}let oe=C0(u,t,r),ie=Ph(d),Vt=S0(e),Xr=ec(t,r),Id=Xr?`:${Xr}`:"",J=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${S?":p"+JSON.stringify(S):""}${Id}`:null;if(!i.__fetchInitialized&&J&&(i.__fetchInitialized=!0,te!==void 0)){let V=O(te)?te():te;Ls(J,V,null)}if((l==="select"||l==="rpc")&&J&&ie){let V=Bs(J);if(V&&!V.error){let z=Date.now()-V.time,B=V.stale||z>(ie.staleTime||0),U=V.data;if(O(j)&&(U=j(U,t,t.state)),f&&(U=f(U,t,t.state)),sn(t,U,m),!B){Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let z=O(q)?q(t,t.state):q;z!==void 0&&sn(t,z,m)}}if(J&&Fs.has(J)&&!n.force){let V=Fs.get(J);try{let z=await Promise.race([V,new Promise((B,U)=>setTimeout(()=>U("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let B=z.data;O(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),sn(t,B,m),dt(t,"onFetchComplete",B),Ct(e,t,"onFetchComplete",B)}}catch{}return}let Fd=!Bs(J)?.data;Gt(t,{isFetching:!0,isLoading:Fd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Ct(e,t,"onFetchStart");let Oe=r?.analyze?.emitNetwork,Yr=Oe?typeof performance<"u"?performance.now():Date.now():0;Oe&&Oe({phase:"start",mode:"query",from:a,method:l,cacheKey:J,lang:Xr});let ue=k0(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let Te={message:"Not authenticated"};return Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Te,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",Te),Ct(e,t,"onFetchError",Te),{data:null,error:Te}}}let V=s[l];if(!O(V))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let z={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},B=ec(t,r);if(B&&(z.headers={...z.headers,"Accept-Language":B}),S!==void 0){if(k(S))S.offset!==void 0&&(z.offset=S.offset),S.limit!==void 0&&(z.limit=S.limit),S.cursor!==void 0&&(z.params={...z.params,cursor:S.cursor});else if(typeof S=="number"){let U=e.pageSize||y||20;z.offset=(S-1)*U,z.limit=U}}if(E!==void 0&&(z.params={...z.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let U;if(g===!0||e.on==="submit")U=Ns(t);else if(P(g)){let Te=Ns(t);U={};for(let sl of g)U[sl]=Te[sl]}else t.state?.parse?U=t.state.parse():k(t.state)&&(U={...t.state});f&&(U=f(U,t,t.state)),z.data=U}if(l==="rpc"){let U=oe;if(e.on==="submit"){let Te=Ns(t);U=e.transformParams?e.transformParams(Te,t,t.state):Te}z.params=U}if(l==="subscribe"){let U=s.subscribe({from:a,params:oe,on:e.subscribeOn},(Te,sl,XB)=>{sn(t,Te,m),dt(t,"onFetchComplete",Te),Ct(e,t,"onFetchComplete",Te)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return V(z)},Vt);J&&Fs.set(J,ue);try{let V=await ue;if(V?.subscribed)return;let{data:z,error:B}=V||{};if(B){J&&Ls(J,null,B),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",B),Ct(e,t,"onFetchError",B),Oe&&Oe({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:B.message||B,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(z!==void 0){if((l==="select"||l==="rpc")&&J){let Te=Ls(J,z,null);Te.gcTime=ie?.gcTime||3e5}let U=z;$&&P(z)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),U=i.__pages.flat(),F&&(i.__nextPageParam=F(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),w&&(i.__prevPageParam=w(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),O(j)&&(U=j(U,t,t.state)),f&&(U=f(U,t,t.state)),(!I||U!==void 0)&&sn(t,U,m),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",U),Ct(e,t,"onFetchComplete",U),Oe&&Oe({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:J,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(V){Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",V),Ct(e,t,"onFetchError",V),Oe&&Oe({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:V.message||String(V),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{J&&Fs.delete(J)}},r$=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Ar;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},n$=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),e$();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Ds(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Ar(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=ec(t,r),a=Z2(e,i),l=Bs(a),c=Ph(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Ar(e,t,r,{force:!0})};Zn.focus.add(s),n.__fetchCleanups.push(()=>Zn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Ar(e,t,r,{force:!0});Zn.online.add(s),n.__fetchCleanups.push(()=>Zn.online.delete(s))}},o$=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():k(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=O(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&sn(e,i,o),s},Th=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(sn(e,n,t.as),delete r.__optimisticSnapshot)},s$=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await $h(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=Ns(t);else if(P(l)){let w=Ns(t);_={};for(let $ of l)_[$]=w[$]}else t.state?.parse?_=t.state.parse():k(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),O(y)&&y(_,t,t.state);let S=m?o$(t,e,_):null;s.__fetching=!0,Gt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Ct(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,F=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){S!==void 0&&Th(t,e);let ie={message:"Not authenticated"};dt(t,"onFetchError",ie),Ct(e,t,"onFetchError",ie);return}}let w=o[i];if(!O(w))return;let $={from:a,data:_,headers:p,baseUrl:h};e.params&&($.params=C0(e.params,t,r));let q=ec(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=S0(e),j=await k0(()=>w($),te),{data:I,error:Q}=j||{};if(Q){S!==void 0&&Th(t,e),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",Q),O(v)&&v(Q,_,t),O(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",I),Ct(e,t,"onFetchComplete",I),O(b)&&b(I,_,t),O(x)&&x(I,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-F}),g){let oe=P(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Vt]of Be)Vt.startsWith(a+":")&&Ms(Vt);else Ms(ie)}}catch(w){S!==void 0&&Th(t,e),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",w),Ct(e,t,"onFetchError",w),O(v)&&v(w,_,t),O(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},Vs=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=de(e,t);if(!s)return;let i=P(s)?s.map(l=>v0(de(l,t),t)).filter(Boolean):[v0(s,t)].filter(Boolean);for(let l of i){let c=l.method==="insert"||l.method==="update"||l.method==="upsert"||l.method==="delete",u=c?s$:Ar;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{r$({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&n$(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Ar(c,t,n,{force:!0,...l})},a.fetchNextPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__nextPageParam;if(c==null)return;let u={...l,cursor:c};Ar(u,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__prevPageParam;if(c==null)return;let u={...l,cursor:c};Ar(u,t,n,{direction:"previous",force:!0})}},i$={invalidateQueries:e=>{if(!e){Ms();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Ms(t);else if(P(e)){let t=e.join(":");for(let[r]of Be)r.includes(t)&&Ms(r)}},removeQueries:e=>{if(!e){Jl();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Jl(t)},getQueryData:e=>Bs(e)?.data??void 0,setQueryData:(e,t)=>{let r=Bs(e),n=O(t)?t(r?.data):t;Ls(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await $h(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!O(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Ls(o,i.data,null);a.gcTime=Ph(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>Jl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Jl(r))}},Ih={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Fs.clear(),Vs(t,e,e.state,e.context))}},a$=Vs});function Ws(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function jh(e){let t=this,{parent:r}=t;if(O(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function Dh(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(O(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function Lh(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(O(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function tc(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(k(n)&&o)tc.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function E0(e){let t=this;if(kr("beforeRemove",t,e)===!1)return t;O(t.node.remove)?t.node.remove():wr()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=os(t.parent.__ref.__children,t.key)),kr("remove",t,e)}function Mh(e){return this[e]}function Nh(e,t){let r=this;if(e)return r.update(e,t),r}function Bh(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Hs(){return this.getRef("__children").map(t=>this[t])}function qs(){return this.getRef().path}function Ks(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=A0();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=A0()),e?t?.[e]:t}function Xs(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Ys(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Js(e){let t=this.getRoot()?.context;return e?t[e]:t}function Zs(e){let t=this.context;return e?t[e]:t}function rc(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||vr.has(r)&&!cs.has(r)||t.push(r);return t}function nc(e=[]){let t=this,r={},n=rc.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=O(l&&l.parse)?l.parse():l;r[a]=O(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else qe(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Us(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=nc.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>re(a)?Us.call(a,e,t):a):re(i)&&(n[s]=Us.call(i,e,t))}return n}function Qn(...e){if(Er!=="test"&&Er!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
15
|
+
return (${o}); })`)(t)}catch{try{t[n]=A.eval(`(${o})`)}catch{t[n]=o}}return t},mp=(e,t={verbose:!0})=>{try{return e?A.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},yp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),gl=e=>{for(let t in e)return!1;return!0},bp=e=>k(e)&&gl(e),xp=()=>Object.create(null),hs=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&rn(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},nn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)rn(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ke=(e,t,r={},n=new WeakMap)=>{if(!re(e)||!re(t)||He(e)||He(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&rn(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];He(c)?e[a]=c:re(l)&&re(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ml=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!ml(e[i],t[i],r))return!1}return!0},I2=new Set(["node","__ref"]),vp=(e,t,r=I2)=>{if(e===t)return!0;if(!re(e)||!re(t)||He(e)||He(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(He(c)||He(u)){if(c!==u)return!1}else if(re(c)&&re(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},_p=(e,t)=>{if(t==null)return e;if(Ge(t)("string","number"))delete e[t];else if(P(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},yl=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=yl(e[r]));return t},wp=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},Sp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},kp=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},Cp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},Ap=e=>{let r=[],n=0;for(let o=0;o<e.length;o++)if(r.length<2)r.push(e[o]);else if(e[o]===r[o%2]?n++:(r=[e[o-1],e[o]],n=1),n>=20)return(U_==="test"||U_==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Ep=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},Op=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var gs,ms,ys,bl=G(()=>{"use strict";nr();gs=(function(){let e=0;function t(){return e++,e}return t})(),ms=gs,ys=(e,t,r)=>(de(r,e)||r||e.key||gs()).toString()});var kt,Tp,wr,xl,Rp,Pp,$p,Sr,Ip,on,Fp=G(()=>{"use strict";kt="production",Tp=kt,wr=(e=kt)=>e==="production",xl=(e=kt)=>e==="testing"||e==="test",Rp=xl,Pp=(e=kt)=>e==="staging",$p=(e=kt)=>e==="local",Sr=(e=kt)=>e==="development"||e==="dev"||e==="local",Ip=(e,t=kt)=>t[e],on=(e=kt)=>!wr(e)});function bs(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function Mp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var jp,Dp,F2,Lp,qn,Gn,ft,Kn=G(()=>{"use strict";jp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Dp=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},F2=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Lp=e=>F2.test(e),qn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Gn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},ft=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}});var Np,q_=G(()=>{"use strict";Fe();nr();Np=(e,t)=>{let{__ref:r}=e,n=e.if;if(O(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?de(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Bp,Vp,G_=G(()=>{"use strict";Bp=(e,...t)=>{e&&t.map(r=>console.log(r))},Vp=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function qp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function Gp(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var zp,Up,Wp,Hp,K_=G(()=>{"use strict";Fe();Qo();zp=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Up=(e,t,r=365)=>{if(Ie(pe)||Ie(pe.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;pe.cookie=`${e}=${t};${o};path=/`},Wp=e=>{if(Ie(pe)||Ie(pe.cookie))return;let t=`${e}=`,n=decodeURIComponent(pe.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""},Hp=e=>{Ie(pe)||Ie(pe.cookie)||(pe.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Xn,X_,Kp,Xp=G(()=>{"use strict";Xn={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"])},X_=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"]),Kp=e=>Xn.body.has(e)});var Yp,Y_,Yn,_s,Xe,Jp,vl,ws,Zp,Ss,_l,wl,ks,Sl,Jn,j2,Ht,J_,xs,Cs,Qp,vs,eh,th,kl,Cl,Al,El,Ol,Tl,Z_,Rl=G(()=>{"use strict";zn();rh();nr();Fe();Yp="production",Y_=e=>e.sourcemap!==!1&&Yp!=="production",Yn=e=>{if(e.includes("+"))return e.split("+").filter(qt);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!qt(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},_s=(e,t,r)=>{let n=[],o=Yn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=P(s)?[...n,...s]:[...n,s]),n},Xe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Jp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=P(r)?r:[r],o=P(e)?e:[e];return{...t,extends:Bn(o,n)}},vl=()=>Math.random().toString(36).substring(2),ws={},Zp={},Ss=e=>ws[e.__hash],_l=(e,t)=>{let r=vl();return C(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ws[r]=t),t},wl=(e,t)=>e.__hash?t.concat(Ss(e)):_l(e,t),ks=(e,t,r,n=new Set,o,s)=>{for(let i of e)P(i)?ks(i,t,r,n,o,s):Jn(i,t,r,n,o,void 0,s);return t},Sl=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Jn(a,t,r,n,o,s,i),t},Jn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(P(e))return ks(e,t,r,n,o,i);let a=s;return C(e)?(a=e,e=Cs(e,r)):i&&k(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?Sl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},j2=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Ht=(e,t,r,n,o)=>{t=ge(t);for(let s in t){if(j2.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?k(a)&&!P(a)?(r[s]=r[s]||{},J_(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(k(i)&&k(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];qt(s)?e[s]=Ht(i,a,l,n,c):Ht(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(P(i)&&P(a))e[s]=i.concat(a);else if(P(i)&&k(a)){let l=Ht({},i);e[s]=Ht(l,a)}}}}return e},J_=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];k(s)&&!P(s)?(e[o]=e[o]||{},J_(e[o],s,r,n)):e[o]=r}}},xs=(e,t,r)=>e.reduce((n,o,s)=>{let i=ge(o),a=r?r[s]:void 0;return Ht(n,i,t,a)},{}),Cs=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(C(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Yp==="test"||Yp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Qp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),vs=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return Ss(e)||[];let s=Jn(e,[],t,new Set,r,void 0,n);return r?s:wl(e,s)},eh=(e,t)=>{if(!e)return t;let r=P(e)?e:[e];return Bn(r,t)},th=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(qt(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},kl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Xe([l,...a],e):Xe(e.extends,e)}else Xe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Xe(i,e):Xe(e.extends,e)}else Xe(e.extends,e);return Cl(e,t,r),Al(e,t,r),El(e,t,r),e.component&&Xe(de(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Vn(n.__extends)},Cl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},Al=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},El=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Xe(o,e),n.__extends},Ol=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Y_(r),a=i?[...n.__extends]:null,l=Vn(n.__extends.map((c,u)=>Cs(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&k(p)&&C(h)&&c.set(p,h)}let u=[],d=vs(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=vs(l,o);n.__extendsStack=c}return n.__extendsStack},Tl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Y_(r)){let s={},i=n.__extendsNames||[],a=xs(o,s,i),l={};Ht(e,a,l,void 0,s),n.__sourcemap=l}else{let s=xs(o);Ht(e,s)}return e},Z_=(e,t,r={})=>(kl(e,t,r),Ol(e,t,r),Tl(e,t,r),e)});function nh(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function oh(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function sh(e,t,r){let{context:n}=t||{},[o]=Yn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var qt,rh=G(()=>{"use strict";Rl();Fe();qt=e=>{if(!C(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Q_(e,t){let{props:r,on:n}=t,o=en(e.split("on")[1]),s=n[o],i=r[e];O(s)?n[o]=(...a)=>{if(s(...a)!==!1&&O(i))return i(...a)}:n[o]=i}var e0=G(()=>{"use strict";ls();Fe()});function Pl(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(O(o)||o!=null&&qn(this.context))){let h=en(n.slice(2));e.on&&(e.on[h]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let a=this.define?.[n],l=this.context?.define?.[n],c=k(a)||O(a),u=k(l)||O(l);if(c||u)continue;let d=n.charAt(0);if(r0.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=ih.test(n)||t0.test(n)||L2(o),p=vr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function $l(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=O(o)||o!=null&&qn(this.context);if(s&&i){Q_(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(r0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=k(l)||O(l),d=k(c)||O(c),f=ih.test(n)||t0.test(n),p=vr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Il(e=this){let t=[];return Pl.call(this,e,{cachedKeys:t}),$l.call(this,e,{cachedKeys:t}),e}function ah(e={}){return e.on||(e.on={}),e.props||(e.props={}),Il.call(this,e)}function ch(e,t){this.__element.update({props:e},t)}function Rs(e){let t={update:ch.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var ih,t0,r0,D2,L2,Os,As,lh,Ts,Ps,$s,Fl,Es,uh,fh,dh=G(()=>{"use strict";Wn();e0();nr();Fe();ls();Kn();ih=/^[A-Z]/,t0=/^\d+$/,r0=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),D2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),L2=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(D2.has(t)||ih.test(t))return!0;return!1},Os=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return re(n)?{...n}:(o.__propsStack.push(n),{})};As=e=>Ge(e)("string","number")?{inheritedString:e}:e,lh=(e,t)=>!e||!t.length?!1:t.includes(e),Ts=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=As(i);n.unshift(l)}if(s){let l=As(s);n.unshift(l)}return n};Ps=e=>{let t=new Set;return e.filter(r=>!r||_r.has(r)||t.has(r)?!1:(t.add(r),!0))},$s=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(_r.has(o))return n;for(;O(o);)o=de(o,t);return fe(n,ge(o,{exclude:_r}))},{}),Rs(t),t.props),Fl=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Ts(e,t)]),k(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),P(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Ps(o),n.__propsStack},Es=(e,t)=>{let{__ref:r}=e,n=Fl(e,t);n.length?$s(n,e):(r.__propsStack=[],e.props={})},uh=function(e,t,r){let{__ref:n}=e;if(n.__if)Es(e,t);else try{Es(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Rs(e),e},fh=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=Ts(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=Ps(s),n.__propsStack.length&&$s(n.__propsStack,t),t}});var n0,jl,Dl,Ll,Ml,ph,Nl,Bl,Vl,hh,o0=G(()=>{"use strict";Rl();bl();ts();dh();Xp();Fe();n0="production",jl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Xn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Dl=(e,t,r)=>{if(e===void 0)return(n0==="test"||n0==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)("string","number")?jl(e,t,r):O(e)?{props:e}:e},Ll=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Ml=(e,t,r,n,o)=>{if(!t)return o;if(rr(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},ph=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Nl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Bl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Vl=(e,t,r)=>{let n=Ll(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=_s(e,t,r),n.path=Nl(e,t,r),n},hh=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:Dl(e,t,r);if(!i)return;let a=Ml(i,t,r,n,o),l=ys(i,a,r);Vl(i,a,l);let c=Os(i,a,l),u=Bl(i,a,l,n,o),d=i.on||{};return{...i,key:l,props:c,parent:a,context:u,on:d}}});var gh,zl,Ul,Wl,Hl,mh,ql,yh,bh,xh,vh,s0=G(()=>{"use strict";zn();Wn();nr();Fe();gh=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ge(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},zl=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},Ul=(e,t)=>{if(!e.includes("../"))return;let n=e.split("../").length-1;for(let o=0;o<n;o++){if(!t.parent)return null;t=t.parent}return t},Wl=(e,t,r={})=>{let n=C(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Hl=(e,t,r={})=>{let o=e.__ref.__state;if(!ql(e))return;let s=zl(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ul(o,t.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Wl(o,i,r)},mh=(e,t)=>{let r=e.__ref,n=Hl(e,t);if(n===void 0)return e.state;if(Ge(n)("object","array"))return ge(n);if(Ge(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ql=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)("number","string","boolean"))},yh=function(e){return re(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},bh=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},xh=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ge(n,tn),s={[e.key]:o},i=k(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?ss(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},vh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,tn);return}(o?nn:Ke)(e,t,tn)}});var M2,_h,i0=G(()=>{"use strict";M2=(e,t)=>{let r=t;for(;r;){if(r===e)return!0;r=Object.getPrototypeOf(r)}return!1},_h=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&!M2(e.scope,i)&&Object.setPrototypeOf(e.scope,i)}}});var a0,Gl,kr,Kl,wh,Sh=G(()=>{"use strict";Fe();Kn();a0=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Gl=(e,t,r,n,o)=>{if(e=Gn(e,t),!!O(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},kr=(e,t,r)=>{if(!t)throw new Error("Element is required");ft(e,t,r);let n=a0(e,t);if(n){let{state:o,context:s}=t;return Gl(n,t,o,s,r)}},Kl=(e,t,r,n,o,s)=>{if(e=Gn(e,r),!!O(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},wh=(e,t,r,n)=>{ft(e,r,t,n);let o=a0(e,r);if(o){let{state:s,context:i}=r;return Kl(o,t,r,s,i,n)}}});var kh,Is,Ch=G(()=>{"use strict";kh={},Is={}});var u0={};K(u0,{setup:()=>B2,supabaseAdapter:()=>c0});var l0,N2,B2,Ah,V2,c0,f0=G(()=>{"use strict";l0=new Map,N2=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,B2=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=N2(l,t,o===!1),u=l0.get(c);return u||(u=await n(l,t,a),u?.auth&&l0.set(c,u)),!u||!u.auth?null:c0(u)},Ah=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},V2=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},c0=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let l=(r?e.schema(r):e).from(t).select(n||"*");if(l=Ah(l,o),l=V2(l,i),s)try{for(let c in s)l.setHeader?l=l.setHeader(c,s[c]):e.rest&&(e.rest.headers[c]=s[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return l},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=Ah(a,o),a.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Ah(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var p0={};K(p0,{restAdapter:()=>d0,setup:()=>U2});var z2,Cr,U2,d0,h0=G(()=>{"use strict";z2=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},Cr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},U2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return d0(e,t,r,n)},d0=(e,t={},r,n={})=>{let o=r?.token||null,s=u=>{let d={...t,...u};return o&&(d.Authorization=`Bearer ${o}`),d},i=u=>({...s(u),"Content-Type":"application/json"}),a=u=>({...n,...u}),l=(u,d)=>{let f=d||e;if(u&&(u.startsWith("http://")||u.startsWith("https://")))return u;let p=u&&!u.startsWith("/")?"/":"";return`${f}${p}${u||""}`};return{name:"rest",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await Cr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let d=await Cr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(u)}));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await Cr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:u,params:d,select:f,limit:p,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let v={...d};return f&&(v.select=f),p&&(v.limit=p),h&&(v.offset=h),m&&(v.single=!0),g&&(typeof g=="string"?v.order=g:Array.isArray(g)?v.order=g.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):g.by&&(v.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),Cr(z2(b||e,u||"",v),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>Cr(l(`rpc/${u}`,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>Cr(l(u,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),update:({from:u,data:d,params:f,method:p,headers:h,baseUrl:g})=>{let m=f?.id||d?.id,y=m?`${u}/${m}`:u;return Cr(l(y,g),a({method:p||"PATCH",headers:i(h),body:JSON.stringify(d)}))},delete:({from:u,params:d,headers:f,baseUrl:p})=>{let h=d?.id,g=h?`${u}/${h}`:u;return Cr(l(g,p),a({method:"DELETE",headers:s(f)}))}}}});var m0={};K(m0,{localAdapter:()=>g0,setup:()=>H2});var Eh,W2,H2,g0,y0=G(()=>{"use strict";Eh=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},W2=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},H2=async({data:e,...t})=>g0(e,t),g0=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let h=i(u).filter(g=>Eh(g,d));return W2(h,f)},insert:async({from:u,data:d})=>{let f=i(u),h=(Array.isArray(d)?d:[d]).map(g=>{let m={id:g.id||++c,...g};return f.push(m),m});a(u);for(let g of h)l(u,"INSERT",g,null);return{data:Array.isArray(d)?h:h[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(Eh(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)Eh(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}});var zs={};K(zs,{createAdapter:()=>J2,default:()=>a$,executeFetch:()=>Vs,fetchPlugin:()=>Ih,initAdapterAuth:()=>Ql,parseDuration:()=>Ds,queryClient:()=>i$,registerAdapter:()=>Y2,resolveDb:()=>_0});var q2,G2,Xl,js,Yl,Rh,K2,X2,Y2,J2,_0,Ds,Be,w0,Fs,Z2,Bs,Ls,Ms,Jl,Ph,Zl,Q2,b0,Oh,S0,k0,Zn,x0,e$,v0,t$,ec,C0,Ql,$h,dt,Ct,Ns,sn,Gt,Ar,r$,n$,o$,Th,s$,Vs,i$,Ih,a$,an=G(()=>{"use strict";D();q2=["select","rpc","insert","update","delete","subscribe"],G2={supabase:()=>Promise.resolve().then(()=>(f0(),u0)),rest:()=>Promise.resolve().then(()=>(h0(),p0)),local:()=>Promise.resolve().then(()=>(y0(),m0))},Xl=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),js=(()=>{if(typeof globalThis<"u"&&globalThis[Xl])return globalThis[Xl];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Xl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Xl]}catch{}return e})(),Yl=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Rh=(()=>{if(typeof globalThis<"u"&&globalThis[Yl])return globalThis[Yl];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Yl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Yl]}catch{}return e})(),K2=5e3,X2=e=>new Promise(t=>{if(js[e])return t(js[e]);let r=Rh[e]||=[],n=!1,o=()=>{n||(n=!0,t(js[e]||null))};r.push(o),setTimeout(o,K2)}),Y2=(e,t)=>{js[e]=t;let r=Rh[e];if(r&&r.length){Rh[e]=[];for(let n of r)n()}},J2=e=>{let t={};for(let r of q2)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},_0=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=js[n]||G2[n];if(!o&&(o=await X2(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},Ds=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Be=new Map,w0=new Map,Fs=new Map,Z2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=t$(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Bs=e=>Be.get(e)||null,Ls=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=w0.get(e);if(s)for(let i of s)O(i)&&i(o);return o},Ms=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},Jl=e=>{if(e){Be.delete(e);return}Be.clear()},Ph=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:C(e)?{staleTime:Ds(e),gcTime:3e5}:{staleTime:Ds(e.stale||e.staleTime)||6e4,gcTime:Ds(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Zl=null,Q2=()=>{Zl||(Zl=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=w0.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Zl.unref&&Zl.unref())};Q2();b0=3,Oh=e=>Math.min(1e3*2**e,3e4),S0=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:b0,delay:Oh}:typeof t=="number"?{count:t,delay:Oh}:{count:t.count??b0,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Oh}},k0=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=O(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=O(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Zn={focus:new Set,online:new Set},x0=!1,e$=()=>{if(x0||typeof window>"u")return;x0=!0;let e=()=>{for(let r of Zn.focus)r()},t=()=>{for(let r of Zn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},v0=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(C(e))return{from:e,method:"select",query:!0,on:"create"};if(k(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},t$=e=>(!e||O(e),e),ec=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},C0=(e,t,r)=>{let n;if(!e)n=void 0;else if(O(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=O(s)?s(t,t.state):s}}return n},Ql=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},$h=async(e,t)=>{if(O(e.select))return e.auth!==!1&&await Ql(e,t),e;if(e.__resolved)return e.auth!==!1&&await Ql(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=_0(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await Ql(r,t),r):null},dt=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},Ct=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Ns=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},sn=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Gt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Ar=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||O(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||O(e.skip)&&e.skip(t,t.state))return;let s=await $h(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:S,cursor:E,getNextPageParam:F,getPreviousPageParam:w,infinite:$,placeholderData:q,initialData:te,select:j,keepPreviousData:I}=e,Q=C(j)?j:void 0;if(c&&O(t.getQuery)){let V=t.getQuery(s.name||"paths");V&&(Q=V.select||V.length&&V.join(",")||Q)}let oe=C0(u,t,r),ie=Ph(d),Vt=S0(e),Xr=ec(t,r),Id=Xr?`:${Xr}`:"",J=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${S?":p"+JSON.stringify(S):""}${Id}`:null;if(!i.__fetchInitialized&&J&&(i.__fetchInitialized=!0,te!==void 0)){let V=O(te)?te():te;Ls(J,V,null)}if((l==="select"||l==="rpc")&&J&&ie){let V=Bs(J);if(V&&!V.error){let z=Date.now()-V.time,B=V.stale||z>(ie.staleTime||0),U=V.data;if(O(j)&&(U=j(U,t,t.state)),f&&(U=f(U,t,t.state)),sn(t,U,m),!B){Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let z=O(q)?q(t,t.state):q;z!==void 0&&sn(t,z,m)}}if(J&&Fs.has(J)&&!n.force){let V=Fs.get(J);try{let z=await Promise.race([V,new Promise((B,U)=>setTimeout(()=>U("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let B=z.data;O(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),sn(t,B,m),dt(t,"onFetchComplete",B),Ct(e,t,"onFetchComplete",B)}}catch{}return}let Fd=!Bs(J)?.data;Gt(t,{isFetching:!0,isLoading:Fd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Ct(e,t,"onFetchStart");let Te=r?.analyze?.emitNetwork,Yr=Te?typeof performance<"u"?performance.now():Date.now():0;Te&&Te({phase:"start",mode:"query",from:a,method:l,cacheKey:J,lang:Xr});let ue=k0(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let Re={message:"Not authenticated"};return Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Re,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",Re),Ct(e,t,"onFetchError",Re),{data:null,error:Re}}}let V=s[l];if(!O(V))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let z={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},B=ec(t,r);if(B&&(z.headers={...z.headers,"Accept-Language":B}),S!==void 0){if(k(S))S.offset!==void 0&&(z.offset=S.offset),S.limit!==void 0&&(z.limit=S.limit),S.cursor!==void 0&&(z.params={...z.params,cursor:S.cursor});else if(typeof S=="number"){let U=e.pageSize||y||20;z.offset=(S-1)*U,z.limit=U}}if(E!==void 0&&(z.params={...z.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let U;if(g===!0||e.on==="submit")U=Ns(t);else if(P(g)){let Re=Ns(t);U={};for(let sl of g)U[sl]=Re[sl]}else t.state?.parse?U=t.state.parse():k(t.state)&&(U={...t.state});f&&(U=f(U,t,t.state)),z.data=U}if(l==="rpc"){let U=oe;if(e.on==="submit"){let Re=Ns(t);U=e.transformParams?e.transformParams(Re,t,t.state):Re}z.params=U}if(l==="subscribe"){let U=s.subscribe({from:a,params:oe,on:e.subscribeOn},(Re,sl,XB)=>{sn(t,Re,m),dt(t,"onFetchComplete",Re),Ct(e,t,"onFetchComplete",Re)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return V(z)},Vt);J&&Fs.set(J,ue);try{let V=await ue;if(V?.subscribed)return;let{data:z,error:B}=V||{};if(B){J&&Ls(J,null,B),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",B),Ct(e,t,"onFetchError",B),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:B.message||B,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(z!==void 0){if((l==="select"||l==="rpc")&&J){let Re=Ls(J,z,null);Re.gcTime=ie?.gcTime||3e5}let U=z;$&&P(z)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),U=i.__pages.flat(),F&&(i.__nextPageParam=F(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),w&&(i.__prevPageParam=w(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),O(j)&&(U=j(U,t,t.state)),f&&(U=f(U,t,t.state)),(!I||U!==void 0)&&sn(t,U,m),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",U),Ct(e,t,"onFetchComplete",U),Te&&Te({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:J,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(V){Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",V),Ct(e,t,"onFetchError",V),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:V.message||String(V),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{J&&Fs.delete(J)}},r$=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Ar;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},n$=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),e$();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Ds(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Ar(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=ec(t,r),a=Z2(e,i),l=Bs(a),c=Ph(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Ar(e,t,r,{force:!0})};Zn.focus.add(s),n.__fetchCleanups.push(()=>Zn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Ar(e,t,r,{force:!0});Zn.online.add(s),n.__fetchCleanups.push(()=>Zn.online.delete(s))}},o$=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():k(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=O(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&sn(e,i,o),s},Th=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(sn(e,n,t.as),delete r.__optimisticSnapshot)},s$=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await $h(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=Ns(t);else if(P(l)){let w=Ns(t);_={};for(let $ of l)_[$]=w[$]}else t.state?.parse?_=t.state.parse():k(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),O(y)&&y(_,t,t.state);let S=m?o$(t,e,_):null;s.__fetching=!0,Gt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Ct(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,F=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){S!==void 0&&Th(t,e);let ie={message:"Not authenticated"};dt(t,"onFetchError",ie),Ct(e,t,"onFetchError",ie);return}}let w=o[i];if(!O(w))return;let $={from:a,data:_,headers:p,baseUrl:h};e.params&&($.params=C0(e.params,t,r));let q=ec(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=S0(e),j=await k0(()=>w($),te),{data:I,error:Q}=j||{};if(Q){S!==void 0&&Th(t,e),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",Q),O(v)&&v(Q,_,t),O(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",I),Ct(e,t,"onFetchComplete",I),O(b)&&b(I,_,t),O(x)&&x(I,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-F}),g){let oe=P(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Vt]of Be)Vt.startsWith(a+":")&&Ms(Vt);else Ms(ie)}}catch(w){S!==void 0&&Th(t,e),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",w),Ct(e,t,"onFetchError",w),O(v)&&v(w,_,t),O(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},Vs=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=de(e,t);if(!s)return;let i=P(s)?s.map(l=>v0(de(l,t),t)).filter(Boolean):[v0(s,t)].filter(Boolean);for(let l of i){let c=l.method==="insert"||l.method==="update"||l.method==="upsert"||l.method==="delete",u=c?s$:Ar;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{r$({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&n$(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Ar(c,t,n,{force:!0,...l})},a.fetchNextPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__nextPageParam;if(c==null)return;let u={...l,cursor:c};Ar(u,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__prevPageParam;if(c==null)return;let u={...l,cursor:c};Ar(u,t,n,{direction:"previous",force:!0})}},i$={invalidateQueries:e=>{if(!e){Ms();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Ms(t);else if(P(e)){let t=e.join(":");for(let[r]of Be)r.includes(t)&&Ms(r)}},removeQueries:e=>{if(!e){Jl();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Jl(t)},getQueryData:e=>Bs(e)?.data??void 0,setQueryData:(e,t)=>{let r=Bs(e),n=O(t)?t(r?.data):t;Ls(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await $h(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!O(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Ls(o,i.data,null);a.gcTime=Ph(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>Jl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Jl(r))}},Ih={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Fs.clear(),Vs(t,e,e.state,e.context))}},a$=Vs});function Ws(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function jh(e){let t=this,{parent:r}=t;if(O(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function Dh(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(O(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function Lh(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(O(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function tc(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(k(n)&&o)tc.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function E0(e){let t=this;if(kr("beforeRemove",t,e)===!1)return t;O(t.node.remove)?t.node.remove():wr()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=os(t.parent.__ref.__children,t.key)),kr("remove",t,e)}function Mh(e){return this[e]}function Nh(e,t){let r=this;if(e)return r.update(e,t),r}function Bh(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Hs(){return this.getRef("__children").map(t=>this[t])}function qs(){return this.getRef().path}function Ks(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=A0();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=A0()),e?t?.[e]:t}function Xs(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Ys(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Js(e){let t=this.getRoot()?.context;return e?t[e]:t}function Zs(e){let t=this.context;return e?t[e]:t}function rc(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||vr.has(r)&&!cs.has(r)||t.push(r);return t}function nc(e=[]){let t=this,r={},n=rc.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=O(l&&l.parse)?l.parse():l;r[a]=O(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else qe(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Us(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=nc.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>re(a)?Us.call(a,e,t):a):re(i)&&(n[s]=Us.call(i,e,t))}return n}function Qn(...e){if(Er!=="test"&&Er!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
16
16
|
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",t[o]))),console.log(t),console.groupEnd(t.key),t}function zh(...e){(Er==="test"||Er==="development")&&console.log(...e)}function Qs(...e){(Er==="test"||Er==="development")&&console.warn(...e)}function ln(...e){if(Er==="test"||Er==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Qn.call(this),new Error(...e)}}function ei(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function ti(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function ri(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let s in e)e[s]!==r[s]&&(o=!0,n[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(n,ge(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Uh(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(s=>{ln.call(this,s)}),o}catch(o){if(ln.call(this,o),r?.strictMode)throw o}}async function ni(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(an(),zs));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(an(),zs));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(an(),zs)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(an(),zs));await o(n,e.context)}return n}function oi(e){let t=this,r=e||Is.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Fh(t,n),r===!0)return n;let o=g$[r];return o?o(n):n}function Wh(e,t){return!!(Un.has(e)||t?.context?.methods?.[e])}var Er,O0,Gs,A0,Vh,Fh,l$,T0,c$,u$,f$,d$,p$,h$,g$,R0=G(()=>{"use strict";Sh();Wn();Fe();nr();Fp();zn();Ch();Er="production";O0=null,Gs=e=>{O0=e||null},A0=()=>O0||null;Vh=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});Fh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&l$(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Fh(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&Fh(i,t)},l$=(e,t)=>{let n=t.replaceAll("../","").replaceAll("~/","").split("/"),o=e;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},T0=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
|
|
17
17
|
${T0(i,t+1)}
|
|
18
18
|
${r}}`).join(`
|
|
@@ -24,7 +24,7 @@ ${T0(e,1)}
|
|
|
24
24
|
FROM ${a}${c}`},p$=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?t.push(i):r(n[s],i)}};return r(e,""),t},h$=e=>{let t=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${t(n[s])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},g$={graphql:c$,"json-api":u$,odata:f$,sql:d$,supabase:h$,paths:p$}});var m$,Hh,P0=G(()=>{"use strict";bl();m$={snapshotId:ms},Hh=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let a=m$.snapshotId();return r.__currentSnapshot=a,[a,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var oc,qh,$0=G(()=>{oc=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),qh=e=>typeof e=="string"&&oc.has(e)});async function Gh(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var I0=G(()=>{"use strict"});function y$(e){return/^[0-9.]+$/.test(e)&&e!==""}var At,Or,eo,Et,Kh,F0=G(()=>{"use strict";At={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${At.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${At.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${At.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${At.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!y$(t)?`${At.symbols.url}/${e}`:`${At.symbols.url}/${e}/${t}.js`}},Or={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},eo=(e={})=>{let{packageManager:t}=e;return Or[t]||null},Et=(e,t="latest",r="esmsh")=>(At[r]||At.esmsh).formatUrl(e,t),Kh=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Et(s,i,t)}return`<script type="importmap">{
|
|
25
25
|
"imports": ${JSON.stringify(o,null,2)}
|
|
26
26
|
}<\/script>`}});var Xh,j0=G(()=>{"use strict";Xh=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}});var Yh,D0=G(()=>{"use strict";Yh=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var Jh,L0=G(()=>{"use strict";Jh=function(t){let r=[0,1];for(let n=2;n<=t;n++)r[n]=r[n-1]+r[n-2];return r[t]}});var Zh,M0=G(()=>{"use strict";Zh=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function to(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${e}"]`);if(i)return o(i);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function og(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${e}"]`);if(i)return o(i);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var Qh,eg,tg,rg,ng,N0=G(()=>{"use strict";Qh=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.src=e,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),eg=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.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;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),n()},s.onerror=()=>{t.body.removeChild(i),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),tg=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let s=t.createElement("script");s.type=n,s.text=o.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},rg=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),ng=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.id=o,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function v$(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!x$(o))return o;let s=t[o];return s?.src?s.src:o},n={...e};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function sc(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function _$(e,t,r){let o=(t.config||t.settings||{}).polyglot||t.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},l=r?.state||{},c={...e};for(let[u,d]of Object.entries(c))typeof d!="string"||!d.includes("{{")||(c[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(f,p,h)=>{let g=p.trim();if(h==="polyglot")return a[g]??sc(a,g)??f;if(h==="getLocalStateLang")return sc(l,g+s)??f;let m=sc(l,g);return m!==void 0?m:a[g]??sc(a,g)??f}));return c}function B0(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function ig(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=k(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=B0(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=B0(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=_$(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=v$(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var pt,b$,sg,x$,V0=G(()=>{"use strict";Fe();pt=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},b$=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${pt(r)}"`).join(" "),sg=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${pt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${pt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${pt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(u=>{if(typeof u=="string")n.push(`<link rel="icon" href="${pt(u)}">`);else if(typeof u=="object"){let d=b$(u);/rel=/.test(d)?n.push(`<link ${d}>`):n.push(`<link rel="icon" ${d}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(u=>{if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${pt(p)}"`).join(" ");n.push(`<link rel="alternate" ${d}>`)}}),n;let i=(c,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${d}="${pt(c)}" content="${pt(u)}">`);else if(Array.isArray(u))u.forEach(f=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${d}="${pt(c)}" content="${pt(f)}">`);else if(typeof f=="object"){let p=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${pt(g)}"`).join(" ");n.push(`<meta ${p}>`)}});else if(typeof u=="object"){let f=Object.entries(u).filter(([p,h])=>h!==void 0).map(([p,h])=>`${p}="${pt(h)}"`).join(" ");n.push(`<meta ${f}>`)}};if(o.startsWith("http-equiv:")){let c=o.replace("http-equiv:","");return i(c,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let c=o.replace("itemprop:","");return i(c,s,"itemprop"),n}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(c=>o.startsWith(c));if(l){let c=o.replace(l,"");return i(`${l.replace(":","")}:${c}`,s,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let c=o.startsWith("apple:")?"apple-":"msapplication-",u=o.replace(/^apple:|^msapplication:/,"");return i(`${c}${u}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
|
|
27
|
-
`)),x$=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var ic,ag,z0=G(()=>{"use strict";Fe();ic=(e,t)=>(P(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),ag=(e,t)=>(e=parseFloat(e),k(t)&&(t=Object.values(t)),ic(e,t))});function ro(e){let t=String(e||"").trim();if(!t)return{owner:U0,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=U0);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function ac(e,t={}){if((t.provider||"kv")==="api")return W0(e,t);let n=await k$(e,t);return n||W0(e,t)}async function k$(e,t={}){let r=t.kvBaseUrl||w$,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function W0(e,t={}){let r=t.apiBaseUrl||S$,{key:n}=ro(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),l=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:h}=ro(p?.key);return h.toLowerCase()===n.toLowerCase()});if(!l?.id&&!l?._id)return null;let c=l.id||l._id,u=`${r}/core/projects/${encodeURIComponent(c)}/data?branch=main`,d=await fetch(u,{method:"GET"});if(!d.ok)return null;let f=await d.json();return f?.data||f||null}catch{return null}}async function lg(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(k(n))return n;if(C(n)){let{full:o}=ro(n);if(!o)return null;try{let s=await ac(o,t);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var U0,w$,S$,si,ii,H0=G(()=>{"use strict";Fe();U0="system",w$="https://smbls-kv.nika-980.workers.dev",S$="https://api.symbols.app";si=(e,t)=>{for(let r in t)r in e?k(e[r])&&k(t[r])&&si(e[r],t[r]):e[r]=t[r]},ii=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(k(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(k(n[o])&&k(e[o]))if(o==="designSystem")si(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}});var cg,ug,fg,ai,dg,li,pg,cn,q0=G(()=>{"use strict";Fe();cg=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},ug=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},fg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ai=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),dg=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),li=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),pg=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},cn=e=>{if(P(e))return e;if(C(e))return e.split(" ");if(k(e))return Object.values(e);if(Ut(e))return[e]}});var hg,G0=G(()=>{"use strict";hg=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var Ye,no,ci,ui,K0=G(()=>{"use strict";Ye=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},no=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},ci=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return no(t,{keepOneX:!1})},ui=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:no(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=no(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var X0={};K(X0,{CDN_PROVIDERS:()=>At,DOMQL_EVENTS:()=>pp,DOMQ_PROPERTIES:()=>vr,ENV:()=>Tp,HTML_TAGS:()=>Xn,METHODS:()=>Un,METHODS_EXL:()=>us,NODE_ENV:()=>kt,OPTIONS:()=>Is,PACKAGE_MANAGER_TO_CDN:()=>Or,PARSED_DOMQ_PROPERTIES:()=>cs,PROPS_METHODS:()=>_r,STATE_METHODS:()=>tn,STATE_PROPERTIES:()=>dp,SVG_TAGS:()=>X_,TYPES:()=>rs,UNIVERSAL_RESERVED_KEYS:()=>oc,addCaching:()=>Vl,addContext:()=>Bl,addExtend:()=>eh,addExtends:()=>Xe,addItemAfterEveryElement:()=>Qd,addProtoToArray:()=>ss,addRef:()=>Ll,applyDependentState:()=>xh,applyEvent:()=>Gl,applyEventUpdate:()=>Kl,applyExtends:()=>Z_,applyProps:()=>Es,arrayContainsOtherArray:()=>qd,arraysEqual:()=>tp,arrayzeValue:()=>cn,buildImgSrcset:()=>ci,buildSourcesAndImg:()=>ui,cache:()=>kh,call:()=>Uh,captureSnapshot:()=>Hh,checkForStateTypes:()=>gh,checkIfInherits:()=>ql,checkIfStringIsInArray:()=>op,clone:()=>gp,cloneAndMergeArrayExtend:()=>xs,cloneFunction:()=>Mp,concatAddExtends:()=>Jp,copyJavaScriptToClipboard:()=>ug,copyStringToClipboard:()=>cg,createBasedOnType:()=>Dl,createElement:()=>hh,createElementExtends:()=>kl,createExtends:()=>_s,createExtendsFromKeys:()=>Yn,createExtendsStack:()=>Ol,createIfConditionFlag:()=>Np,createInheritedState:()=>mh,createKey:()=>ys,createNestedObject:()=>wp,createNestedObjectByKeyPath:()=>bh,createObjectWithoutPrototype:()=>yl,createParent:()=>Ml,createPath:()=>Nl,createProps:()=>Os,createPropsStack:()=>Fl,createRoot:()=>ph,createScope:()=>_h,createSnapshotId:()=>ms,customDecodeURIComponent:()=>fp,customEncodeURIComponent:()=>up,cutArrayAfterValue:()=>Jd,cutArrayBeforeValue:()=>Yd,debounce:()=>bs,debounceOnContext:()=>jp,decodeNewlines:()=>cp,deepClone:()=>ge,deepContains:()=>vp,deepDefaults:()=>si,deepDestringifyFunctions:()=>Wt,deepExtend:()=>Sl,deepMerge:()=>fe,deepMergeExtends:()=>Ht,deepStringifyFunctions:()=>fs,defineSetter:()=>Vh,destringifyGlobalScope:()=>ps,detectHeightOnInit:()=>Yh,detectInfiniteLoop:()=>Ap,document:()=>pe,encodeNewlines:()=>lp,error:()=>ln,excludeKeysFromObject:()=>Op,exec:()=>de,extendCachedRegistry:()=>Zp,extendStackRegistry:()=>ws,extractArrayExtend:()=>ks,fetchLibraryData:()=>ac,fibonacciNumberByIndex:()=>Jh,filterArrays:()=>rp,filterArraysFast:()=>np,finalizeExtends:()=>Tl,findClosestNumber:()=>ic,findClosestNumberInFactory:()=>ag,findInheritedState:()=>Hl,findKeyPosition:()=>ip,flattenExtend:()=>Jn,formatDate:()=>Xh,generateHash:()=>vl,generateKey:()=>gs,generateMetaTags:()=>sg,get:()=>Mh,getCDNUrl:()=>Et,getCapitalCaseKeys:()=>nh,getCdnProviderFromConfig:()=>eo,getChildStateInKey:()=>Wl,getChildren:()=>Hs,getContext:()=>Zs,getCookie:()=>Wp,getDB:()=>ni,getEmotionStylesheet:()=>hg,getExtendsInElement:()=>th,getExtendsStack:()=>vs,getExtendsStackRegistry:()=>wl,getFrequencyInArray:()=>Gd,getHashedExtend:()=>Ss,getImportMapScript:()=>Kh,getInObjectByPath:()=>Cp,getLocalStorage:()=>qp,getNev:()=>Ip,getPageMetadata:()=>ig,getParentStateInKey:()=>Ul,getPath:()=>qs,getQuery:()=>oi,getRef:()=>Bh,getRoot:()=>Xs,getRootContext:()=>Js,getRootData:()=>Ys,getRootState:()=>Ks,getRootStateInKey:()=>zl,getSpreadChildren:()=>oh,global:()=>Ud,hasFunction:()=>Hn,hasHandlerPlugin:()=>qn,hasOwnProperty:()=>yp,inheritChildExtends:()=>Al,inheritChildPropsExtends:()=>Cl,inheritParentProps:()=>Ts,inheritRecursiveChildExtends:()=>El,initProps:()=>uh,is:()=>Ge,isArray:()=>P,isBoolean:()=>dl,isContextComponent:()=>sh,isCyclic:()=>Ep,isDOMNode:()=>He,isDate:()=>hl,isDefined:()=>qe,isDevelopment:()=>Sr,isEmpty:()=>gl,isEmptyObject:()=>bp,isEqualDeep:()=>ml,isFunction:()=>O,isHtmlElement:()=>es,isLocal:()=>$p,isMethod:()=>Wh,isMobile:()=>zp,isNode:()=>rr,isNot:()=>Hd,isNotProduction:()=>on,isNull:()=>pl,isNumber:()=>Ut,isObject:()=>k,isObjectLike:()=>re,isPhoto:()=>Zh,isProduction:()=>wr,isStaging:()=>Pp,isState:()=>yh,isString:()=>C,isStringFunction:()=>Lp,isTest:()=>xl,isTesting:()=>Rp,isUndefined:()=>Ie,isUniversallyReservedKey:()=>qh,isValidHtmlTag:()=>Kp,joinArrays:()=>Bn,jointStacks:()=>Qp,keys:()=>rc,loadCssFile:()=>rg,loadJavascript:()=>ng,loadJavascriptFile:()=>Qh,loadJavascriptFileEmbedSync:()=>tg,loadJavascriptFileSync:()=>eg,loadRemoteCSS:()=>og,loadRemoteScript:()=>to,log:()=>zh,logGroupIf:()=>Vp,logIf:()=>Bp,lookdown:()=>Dh,lookdownAll:()=>Lh,lookup:()=>jh,lowercaseFirstLetter:()=>en,makeObjectWithoutPrototype:()=>xp,map:()=>hp,mapStringsWithContextComponents:()=>Cs,matchesComponentNaming:()=>qt,memoize:()=>Dp,merge:()=>ye,mergeSharedLibraries:()=>ii,nextElement:()=>ei,normalizeLibraryKey:()=>ro,objectToString:()=>ds,objectizeStringProperty:()=>As,overwrite:()=>hs,overwriteDeep:()=>Ke,overwriteShallow:()=>nn,overwriteState:()=>vh,parse:()=>nc,parseDeep:()=>Us,pickupElementFromProps:()=>$l,pickupPropsFromElement:()=>Pl,previousElement:()=>ti,propExists:()=>lh,propertizeElement:()=>Il,propertizeUpdate:()=>ah,remove:()=>E0,removeChars:()=>fg,removeCookie:()=>Hp,removeDuplicateProps:()=>Ps,removeDuplicatesInArray:()=>Vn,removeFromArray:()=>Kd,removeFromObject:()=>_p,removeNestedKeyByPath:()=>Sp,removeValueFromArray:()=>os,removeValueFromArrayAll:()=>Zd,reorderArrayByValues:()=>ep,replaceLiteralsWithObjectFields:()=>Qr,replaceOctalEscapeSequences:()=>ap,resolveAsset:()=>Ye,resolveHandler:()=>Gn,resolveSharedLibraries:()=>lg,returnValueAsText:()=>jl,runPluginHook:()=>ft,self:()=>Wd,setActiveRootState:()=>Gs,setCookie:()=>Up,setHashedExtend:()=>_l,setInObjectByPath:()=>kp,setLocalStorage:()=>Gp,setNodeStyles:()=>tc,setProps:()=>Nh,setPropsPrototype:()=>Rs,spotByPath:()=>Ws,srcsetFor:()=>no,stringIncludesAny:()=>as,stringToObject:()=>mp,swapItemsInArray:()=>Xd,syncProps:()=>$s,toCamelCase:()=>ai,toDashCase:()=>li,toDescriptionCase:()=>pg,toTitleCase:()=>dg,toggleFullscreen:()=>Gh,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>wh,trimStringFromSymbols:()=>sp,unstackArrayOfObjects:()=>ns,update:()=>ch,updateProps:()=>fh,variables:()=>ri,verbose:()=>Qn,warn:()=>Qs,window:()=>A});var D=G(()=>{"use strict";bl();Fp();Fe();nr();Kn();zn();ts();q_();G_();ls();Qo();K_();Xp();rh();dh();Rl();o0();s0();Wn();i0();R0();Ch();P0();Sh();$0();I0();F0();j0();D0();L0();M0();N0();V0();z0();H0();q0();G0();K0()});var JC=Dd((tK,YC)=>{var ko=1e3,Co=ko*60,Ao=Co*60,kn=Ao*24,Yj=kn*7,Jj=kn*365.25;YC.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Zj(e);if(r==="number"&&isFinite(e))return t.long?eD(e):Qj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Zj(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Jj;case"weeks":case"week":case"w":return r*Yj;case"days":case"day":case"d":return r*kn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ao;case"minutes":case"minute":case"mins":case"min":case"m":return r*Co;case"seconds":case"second":case"secs":case"sec":case"s":return r*ko;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Qj(e){var t=Math.abs(e);return t>=kn?Math.round(e/kn)+"d":t>=Ao?Math.round(e/Ao)+"h":t>=Co?Math.round(e/Co)+"m":t>=ko?Math.round(e/ko)+"s":e+"ms"}function eD(e){var t=Math.abs(e);return t>=kn?Fu(e,t,kn,"day"):t>=Ao?Fu(e,t,Ao,"hour"):t>=Co?Fu(e,t,Co,"minute"):t>=ko?Fu(e,t,ko,"second"):e+" ms"}function Fu(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var QC=Dd((rK,ZC)=>{function tD(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=JC(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,p,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),v=b-(d||b);y.diff=v,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(S,E)=>{if(S==="%%")return"%";x++;let F=r.formatters[E];if(typeof F=="function"){let w=m[x];S=F.call(y,w),m.splice(x,1),x--}return S}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function i(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}ZC.exports=tD});var eA=Dd((Ze,ju)=>{Ze.formatArgs=nD;Ze.save=oD;Ze.load=sD;Ze.useColors=rD;Ze.storage=iD();Ze.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();Ze.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 rD(){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 e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function nD(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ju.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ze.log=console.debug||console.log||(()=>{});function oD(e){try{e?Ze.storage.setItem("debug",e):Ze.storage.removeItem("debug")}catch{}}function sD(){let e;try{e=Ze.storage.getItem("debug")||Ze.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function iD(){try{return localStorage}catch{}}ju.exports=QC()(Ze);var{formatters:aD}=ju.exports;aD.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var KB={};K(KB,{ANIMATION_PROPS:()=>em,ARIA_ROLES:()=>BI,ATTR_TRANSFORMS:()=>gm,BLOCK_PROPS:()=>tm,CDN_PROVIDERS:()=>At,CONFIG:()=>hc,CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_PROPS_REGISTRY:()=>Ae,CSS_UNITS:()=>Nn,DEFAULT_CONFIG:()=>Fi,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>Ai,DESIGN_SYSTEM_OPTIONS:()=>Sy,DOMQL_EVENTS:()=>pp,DOMQ_PROPERTIES:()=>vr,DOM_EVENTS:()=>bS,ENV:()=>Tp,FACTORY:()=>ir,FLEX_PROPS:()=>im,FONT_PROPS:()=>rm,GRID_PROPS:()=>am,HTML_ATTRIBUTES:()=>Xc,HTML_TAGS:()=>Xn,LIFECYCLE_EVENTS:()=>_n,METHODS:()=>Un,METHODS_EXL:()=>us,MISC_PROPS:()=>nm,MIXINS:()=>Xg,NODE_ENV:()=>kt,OPTIONS:()=>Is,PACKAGE_MANAGER_TO_CDN:()=>Or,PARSED_DOMQ_PROPERTIES:()=>cs,POSITION_PROPS:()=>om,PROPS_METHODS:()=>_r,REGISTRY:()=>Je,ROUTER_OPTIONS:()=>cu,STATE_PROPERTIES:()=>dp,SVG_TAGS:()=>ki,THEME_PROPS:()=>sm,TIMING_PROPS:()=>Pi,TYPES:()=>rs,UNIVERSAL_RESERVED_KEYS:()=>oc,VALUE_TRANSFORMERS:()=>Ug,activateConfig:()=>$$,addCaching:()=>Vl,addContext:()=>Bl,addDelegatedEvent:()=>Gc,addExtend:()=>eh,addExtends:()=>Xe,addItemAfterEveryElement:()=>Qd,addMethods:()=>Ii,addProtoToArray:()=>ss,addRef:()=>Ll,animation:()=>vw,appendSVGSprite:()=>Lc,appendSvgIconsSprite:()=>Nc,applyAttrTransforms:()=>bm,applyCSS:()=>by,applyDependentState:()=>xh,applyDocument:()=>Dc,applyEvent:()=>Gl,applyEventUpdate:()=>Kl,applyExtends:()=>Oi,applyHeadings:()=>jg,applyInitialState:()=>pm,applyMediaSequenceVars:()=>pn,applyProps:()=>Es,applyReset:()=>Bc,applySequenceGlobalVars:()=>_c,applySequenceVars:()=>$r,applySpacingSequence:()=>$c,applyStateMethods:()=>yt,applyTimingSequence:()=>jc,applyTrueProps:()=>cm,applyTypographySequence:()=>Tc,arrayContainsOtherArray:()=>qd,arraysEqual:()=>tp,arrayzeValue:()=>cn,batch:()=>xr,breakpoints:()=>bw,buildImgSrcset:()=>ci,buildSourcesAndImg:()=>ui,cache:()=>kh,cacheNode:()=>vn,call:()=>Uh,captureSnapshot:()=>Hh,changeGlobalTheme:()=>Wg,changeLightness:()=>tw,checkAttributeByTagName:()=>jr,checkEventFunctions:()=>ym,checkForStateTypes:()=>gh,checkIfBoxSize:()=>Pc,checkIfInherits:()=>ql,checkIfStringIsInArray:()=>op,class:()=>Cw,clone:()=>gp,cloneAndMergeArrayExtend:()=>xs,cloneFunction:()=>Mp,color:()=>fw,colorStringToRgbaArray:()=>or,components:()=>po,concatAddExtends:()=>Jp,convertSvgToSymbol:()=>wc,copyJavaScriptToClipboard:()=>ug,copyStringToClipboard:()=>cg,create:()=>D_,createAsync:()=>HB,createBasedOnType:()=>Dl,createComputed:()=>B_,createConfig:()=>Eg,createDefine:()=>N1,createEffect:()=>we,createElement:()=>hh,createElementExtends:()=>kl,createExtends:()=>_s,createExtendsFromKeys:()=>Yn,createExtendsStack:()=>Ol,createHTMLNode:()=>Si,createIfConditionFlag:()=>Np,createInheritedState:()=>mh,createKey:()=>ys,createNestedObject:()=>wp,createNestedObjectByKeyPath:()=>bh,createObjectWithoutPrototype:()=>yl,createParent:()=>Ml,createPath:()=>Nl,createProps:()=>Os,createPropsStack:()=>Fl,createRoot:()=>ph,createScope:()=>_h,createScopeStore:()=>fl,createSignal:()=>zt,createSkeleton:()=>GB,createSnapshotId:()=>ms,createState:()=>dS,createStore:()=>ut,createSync:()=>qB,css:()=>Ir,cssMediaVars:()=>Cg,cssVars:()=>kg,customDecodeURIComponent:()=>fp,customEncodeURIComponent:()=>up,cutArrayAfterValue:()=>Jd,cutArrayBeforeValue:()=>Yd,debounce:()=>bs,debounceOnContext:()=>jp,decodeNewlines:()=>cp,deepClone:()=>ge,deepContains:()=>vp,deepDefaults:()=>si,deepDestringifyFunctions:()=>Wt,deepExtend:()=>Sl,deepMerge:()=>fe,deepMergeExtends:()=>Ht,deepStringifyFunctions:()=>fs,defaultDefine:()=>mo,defineSetter:()=>Vh,destringifyGlobalScope:()=>ps,destroy:()=>Ni,detectHeightOnInit:()=>Yh,detectInfiniteLoop:()=>Ap,detectTag:()=>xn,devices:()=>xw,dispose:()=>wn,encodeNewlines:()=>lp,error:()=>ln,excludeKeysFromObject:()=>Op,exec:()=>de,executeAttr:()=>zI,exetuteClassPerComponent:()=>TI,extendCachedRegistry:()=>Zp,extendStackRegistry:()=>ws,extractArrayExtend:()=>ks,extractConditionalAttrs:()=>HI,fetchLibraryData:()=>ac,fibonacciNumberByIndex:()=>Jh,filterArrays:()=>rp,filterArraysFast:()=>np,filterAttributesByTagName:()=>VI,finalizeExtends:()=>Tl,findClosestNumber:()=>ic,findClosestNumberInFactory:()=>ag,findHeadingLetter:()=>Pg,findHeadings:()=>vc,findInheritedState:()=>Hl,findKeyPosition:()=>ip,flattenExtend:()=>Jn,font:()=>sw,fontFace:()=>lw,fontFamily:()=>iw,fontFamilyTypes:()=>aw,formatDate:()=>Xh,generateHash:()=>vl,generateKey:()=>gs,generateMetaTags:()=>sg,generateSequence:()=>et,generateSequencePosition:()=>Pw,generateSprite:()=>mi,generateSubSequence:()=>bc,get:()=>Mh,getActiveConfig:()=>T,getActiveDocument:()=>Gg,getActiveLang:()=>Vi,getCDNUrl:()=>Et,getCacheSize:()=>Xw,getCapitalCaseKeys:()=>nh,getCdnProviderFromConfig:()=>eo,getChildStateInKey:()=>Wl,getChildren:()=>Hs,getColor:()=>me,getColorShade:()=>xg,getContext:()=>Zs,getCookie:()=>Wp,getDB:()=>ni,getDefaultOrFirstKey:()=>oo,getEmotionStylesheet:()=>hg,getExtendsInElement:()=>th,getExtendsStack:()=>vs,getExtendsStackRegistry:()=>wl,getFnPrefixAndValue:()=>Pr,getFontFace:()=>nw,getFontFaceEach:()=>so,getFontFaceEachString:()=>Sg,getFontFaceString:()=>cc,getFontFamily:()=>Oc,getFontFormat:()=>_g,getFontSizeByKey:()=>Rc,getFrequencyInArray:()=>Gd,getHashedExtend:()=>Ss,getImportMapScript:()=>Kh,getInObjectByPath:()=>Cp,getLanguages:()=>du,getLocalStateLang:()=>yu,getLocalStorage:()=>qp,getMediaColor:()=>De,getMediaTheme:()=>Tt,getNev:()=>Ip,getObserver:()=>Ln,getPageMetadata:()=>ig,getParentStateInKey:()=>Ul,getPath:()=>qs,getQuery:()=>oi,getRef:()=>Bh,getRgbTone:()=>fn,getRoot:()=>Xs,getRootContext:()=>Js,getRootData:()=>Ys,getRootState:()=>Ks,getRootStateInKey:()=>zl,getSequenceValue:()=>xc,getSequenceValueBySymbols:()=>Rg,getSequenceValuePropertyPair:()=>lr,getShadow:()=>Fc,getSignals:()=>z_,getSpacingBasedOnRatio:()=>Xt,getSpacingByKey:()=>Re,getSpreadChildren:()=>oh,getSubratio:()=>yc,getSubratioDifference:()=>mc,getSystemGlobalTheme:()=>mt,getTheme:()=>kc,getTimingByKey:()=>ht,getTimingFunction:()=>Rt,global:()=>Ud,gradient:()=>dw,grid:()=>kw,hasFunction:()=>Hn,hasHandlerPlugin:()=>qn,hasOwnProperty:()=>yp,hexToRgb:()=>J0,hexToRgbArray:()=>gg,hexToRgba:()=>Q0,hslToRgb:()=>bg,icons:()=>gw,inheritChildExtends:()=>Al,inheritChildPropsExtends:()=>Cl,inheritParentProps:()=>Ts,inheritRecursiveChildExtends:()=>El,init:()=>go,initPolyglot:()=>ky,initProps:()=>uh,injectGlobal:()=>Ce,is:()=>Ge,isArray:()=>P,isBoolean:()=>dl,isCSSVar:()=>xe,isContextComponent:()=>sh,isCyclic:()=>Ep,isDOMNode:()=>He,isDate:()=>hl,isDefined:()=>qe,isDevelopment:()=>Sr,isEmpty:()=>gl,isEmptyObject:()=>bp,isEqualDeep:()=>ml,isFunction:()=>O,isGoogleFontsUrl:()=>di,isHtmlElement:()=>es,isLocal:()=>$p,isMethod:()=>Wh,isMobile:()=>zp,isNode:()=>rr,isNot:()=>Hd,isNotProduction:()=>on,isNull:()=>pl,isNumber:()=>Ut,isObject:()=>k,isObjectLike:()=>re,isPhoto:()=>Zh,isProduction:()=>wr,isResolvedColor:()=>sr,isScalingUnit:()=>Mn,isStaging:()=>Pp,isState:()=>yh,isStore:()=>Se,isString:()=>C,isStringFunction:()=>Lp,isSvgTag:()=>Ci,isTest:()=>xl,isTesting:()=>Rp,isTracking:()=>mS,isUndefined:()=>Ie,isUniversallyReservedKey:()=>qh,isValidHtmlTag:()=>Kp,isValidTag:()=>wi,isWasmLoaded:()=>A1,joinArrays:()=>Bn,jointStacks:()=>Qp,keyframes:()=>_i,keys:()=>rc,loadCssFile:()=>rg,loadJavascript:()=>ng,loadJavascriptFile:()=>Qh,loadJavascriptFileEmbedSync:()=>tg,loadJavascriptFileSync:()=>eg,loadRemoteCSS:()=>og,loadRemoteScript:()=>to,loadTranslations:()=>hu,loadWasm:()=>C1,log:()=>zh,logGroupIf:()=>Vp,logIf:()=>Bp,lookdown:()=>Dh,lookdownAll:()=>Lh,lookup:()=>jh,lowercaseFirstLetter:()=>en,makeObjectWithoutPrototype:()=>xp,map:()=>hp,mapStringsWithContextComponents:()=>Cs,matchesComponentNaming:()=>qt,media:()=>cw,memoize:()=>Dp,merge:()=>ye,mergeSharedLibraries:()=>ii,mixTwoColors:()=>Y0,mixTwoRgb:()=>ew,mixTwoRgba:()=>vg,nextElement:()=>ei,normalizeLibraryKey:()=>ro,numToLetterMap:()=>ar,objectToString:()=>ds,objectizeStringProperty:()=>As,opacify:()=>fi,overwrite:()=>hs,overwriteDeep:()=>Ke,overwriteShallow:()=>nn,overwriteState:()=>vh,parse:()=>nc,parseColorToken:()=>Tr,parseDeep:()=>Us,pickupElementFromProps:()=>$l,pickupPropsFromElement:()=>Pl,polyglotFunctions:()=>zi,polyglotPlugin:()=>bu,popConfig:()=>ve,previousElement:()=>ti,propExists:()=>lh,propertizeElement:()=>Il,propertizeUpdate:()=>ah,pushConfig:()=>ke,registerEvent:()=>Ei,reinit:()=>yy,remove:()=>Ri,removeChars:()=>fg,removeCookie:()=>Hp,removeDelegatedEvent:()=>Kc,removeDuplicateProps:()=>Ps,removeDuplicatesInArray:()=>Vn,removeFromArray:()=>Kd,removeFromObject:()=>_p,removeNestedKeyByPath:()=>Sp,removeValueFromArray:()=>os,removeValueFromArrayAll:()=>Zd,reorderArrayByValues:()=>ep,replaceLiteralsWithObjectFields:()=>Qr,replaceOctalEscapeSequences:()=>ap,resolveAsset:()=>Ye,resolveColorsInGradient:()=>zc,resolveFileSource:()=>hm,resolveFileUrl:()=>Ot,resolveHandler:()=>Gn,resolvePropValue:()=>Fr,resolveSharedLibraries:()=>lg,returnSubThemeOrDefault:()=>rw,returnValueAsText:()=>jl,rgbArrayToHex:()=>mg,rgbToHSL:()=>yg,rgbToHex:()=>Z0,runPluginHook:()=>ft,runThroughMedia:()=>Fg,scratchDefaultConfig:()=>hi,scratchSystem:()=>vi,scratchUtils:()=>hn,self:()=>Wd,semanticIcons:()=>mw,sequence:()=>Rr,set:()=>io,setActiveConfig:()=>Ag,setActiveDocument:()=>Gw,setActiveRootState:()=>Gs,setClass:()=>kF,setClassname:()=>RI,setColor:()=>gn,setCookie:()=>Up,setCssEngineHook:()=>su,setCustomFont:()=>lc,setCustomFontMedia:()=>dn,setEach:()=>Uw,setFont:()=>Ec,setFontFamily:()=>bi,setFontImport:()=>pi,setGradient:()=>mn,setHashedExtend:()=>_l,setInCustomFontMedia:()=>wg,setInObjectByPath:()=>kp,setLang:()=>gu,setLocalStorage:()=>Gp,setMediaTheme:()=>Ac,setNodeStyles:()=>tc,setObserver:()=>N_,setProps:()=>Nh,setPropsPrototype:()=>Rs,setSVG:()=>xi,setScalingVar:()=>gc,setShadow:()=>yn,setSubScalingVar:()=>Tg,setSvgIcon:()=>Mc,setTheme:()=>Cc,setValue:()=>zw,setVariables:()=>$w,setWasmEngine:()=>qc,shadow:()=>hw,sizes:()=>Ew,spacing:()=>uw,splitSpacedValue:()=>Ic,splitTopLevelCommas:()=>un,splitTransition:()=>zg,spotByPath:()=>Ws,srcsetFor:()=>no,stringIncludesAny:()=>as,stringToObject:()=>mp,svg:()=>_w,svgData:()=>ww,swapItemsInArray:()=>Xd,syncProps:()=>$s,templates:()=>Sw,theme:()=>pw,timing:()=>yw,toCamel:()=>pc,toCamelCase:()=>ai,toDashCase:()=>li,toDescriptionCase:()=>pg,toTitleCase:()=>dg,toggleFullscreen:()=>Gh,transformBackgroundImage:()=>Bg,transformBorder:()=>cr,transformBorderRadius:()=>Wc,transformBoxShadow:()=>Vc,transformClassname:()=>lS,transformDuration:()=>Uc,transformShadow:()=>Ng,transformSize:()=>_e,transformSizeRatio:()=>ne,transformTextStroke:()=>Mg,transformTransition:()=>Vw,transformersByPrefix:()=>um,transfromGap:()=>Vg,translate:()=>pu,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>wh,trimStringFromSymbols:()=>sp,typography:()=>uc,unit:()=>ow,unstackArrayOfObjects:()=>ns,update:()=>Ti,updateProps:()=>fh,updateVars:()=>SF,upsertTranslation:()=>mu,useCssInProps:()=>rt,useHostState:()=>gS,usePropsAsCSS:()=>iS,useSelectorsAsCSS:()=>aS,variables:()=>ri,vars:()=>Aw,verbose:()=>Qn,warn:()=>Qs,window:()=>A});module.exports=y2(KB);var We=null,al=0,ll=[],Ln=()=>We,N_=e=>{We=e},cl=0,Ld=[];function zt(e){let t=new Set;function r(){return We&&(t.add(We),We._sources.add(s)),e}function n(i){i!==e&&(e=i,v2(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function B_(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Nd(o);let s=We;We=o;try{t=e(),r=!1}finally{We=s}},_notify(){r=!0,n.size>0&&V_(n)},get(){return We&&(n.add(We),We._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Jr=new Set,Md=!1;function we(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Nd(n);let o=We;We=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{We=o}},_notify(){n._disposed||(al>0?ll.push(n):cl>0?Ld.push(n):Bd(n))},dispose(){n._disposed=!0,Nd(n)}};return n._execute(),n}function xr(e){al++;try{e()}finally{al--,al===0&&x2()}}function Bd(e){Jr.add(e),Md||(Md=!0,queueMicrotask(b2))}var Dn=[];function b2(){if(Md=!1,Jr.size!==0){if(Jr.size===1){let[e]=Jr;Jr.clear(),e._disposed||e._execute();return}Dn.length=0;for(let e of Jr)Dn.push(e);Jr.clear(),Dn.sort((e,t)=>e._depth-t._depth);for(let e=0;e<Dn.length;e++){let t=Dn[e];t._disposed||t._execute()}Dn.length=0}}function x2(){for(let e=0;e<ll.length;e++)Bd(ll[e]);ll.length=0}function V_(e){cl++;try{for(let t of e)t._notify()}finally{if(cl--,cl===0&&Ld.length>0){let t=Ld.splice(0);for(let r=0;r<t.length;r++)Bd(t[r])}}}function v2(e){V_(e)}function Nd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Zr=Symbol("store"),ul=Symbol("signals"),Vd=e=>!e||typeof e!="object"||Array.isArray(e)||e[Zr]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function ut(e,t,r){r===void 0&&(r=0);let n={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let b=e[y];r<s&&b&&typeof b=="object"&&!Vd(b)?(o[y]=b,n[y]=zt(ut(b,t,r+1))):(o[y]=b,n[y]=zt(b))}let i=new Proxy(o,{get(y,b){if(b===Zr)return!0;if(b===ul)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return p;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Ln()!=null)return n[b]=zt(void 0),n[b].get()},set(y,b,v){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=v,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=v,v&&typeof v=="object"&&!Vd(v)?n[b].set(ut(v,t,r+1)):n[b].set(v)):(y[b]=v,v&&typeof v=="object"&&!Vd(v)?n[b]=zt(ut(v,t,r+1)):n[b]=zt(v)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){xr(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let v=o.__element;return v&&v.onUpdate&&!b?.quiet&&v.onUpdate(v,i,v.context),i}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let v in n){if(v==="parent"||v==="root"||v.startsWith("__"))continue;let x=n[v].peek();x&&x[Zr]?b[v]=x.parse(y):b[v]=x}return b}function u(){return xr(()=>{for(let y in n)delete i[y]}),i}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function p(y){return xr(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){u(),o.__element=null,o.parent=null}return i}function Se(e){return e&&e[Zr]===!0}function z_(e){return e[ul]}function fl(e,t){let r={},n={};if(e&&typeof e=="object")for(let i in e)n[i]=e[i],r[i]=zt(e[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=t;for(;a;){let l=a[ul];if(l&&Object.prototype.hasOwnProperty.call(l,i))return l;a=a[Zr]?a[zd]:null}return null};return new Proxy(n,{get(i,a){return a===Zr?!0:a===ul?r:a===zd?t:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:i[a]},set(i,a,l){let c=o(a);return c?(c===r&&(i[a]=l),c[a].set(l),!0):(i[a]=l,r[a]=zt(l),!0)},has(i,a){if(a in r||a in i)return!0;let l=t;for(;l;){if(a in l)return!0;l=l[Zr]?l[zd]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var zd=Symbol("scope.parent");var hn={};K(hn,{CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_UNITS:()=>Nn,applyMediaSequenceVars:()=>pn,applySequenceGlobalVars:()=>_c,applySequenceVars:()=>$r,changeLightness:()=>tw,colorStringToRgbaArray:()=>or,convertSvgToSymbol:()=>wc,findHeadingLetter:()=>Pg,findHeadings:()=>vc,generateSequence:()=>et,generateSequencePosition:()=>Pw,generateSprite:()=>mi,generateSubSequence:()=>bc,getColorShade:()=>xg,getDefaultOrFirstKey:()=>oo,getFnPrefixAndValue:()=>Pr,getFontFace:()=>nw,getFontFaceEach:()=>so,getFontFaceEachString:()=>Sg,getFontFaceString:()=>cc,getFontFormat:()=>_g,getRgbTone:()=>fn,getSequenceValue:()=>xc,getSequenceValueBySymbols:()=>Rg,getSequenceValuePropertyPair:()=>lr,getSubratio:()=>yc,getSubratioDifference:()=>mc,hexToRgb:()=>J0,hexToRgbArray:()=>gg,hexToRgba:()=>Q0,hslToRgb:()=>bg,isCSSVar:()=>xe,isGoogleFontsUrl:()=>di,isResolvedColor:()=>sr,isScalingUnit:()=>Mn,mixTwoColors:()=>Y0,mixTwoRgb:()=>ew,mixTwoRgba:()=>vg,numToLetterMap:()=>ar,opacify:()=>fi,parseColorToken:()=>Tr,resolveFileUrl:()=>Ot,returnSubThemeOrDefault:()=>rw,rgbArrayToHex:()=>mg,rgbToHSL:()=>yg,rgbToHex:()=>Z0,setCustomFont:()=>lc,setCustomFontMedia:()=>dn,setFontImport:()=>pi,setInCustomFontMedia:()=>wg,setScalingVar:()=>gc,setSubScalingVar:()=>Tg,setVariables:()=>$w,splitTopLevelCommas:()=>un});var Mn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Nn=["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"];D();var or=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&pe&&A){let t=pe.body.appendChild(pe.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){pe.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return pe.body.removeChild(t),[0,0,0,0];e=A.getComputedStyle(t).color,pe.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},Y0=(e,t,r=.5)=>(e=or(e),t=or(t),vg(e,t,r)),J0=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},gg=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Z0=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),mg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),Q0=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},ew=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},tw=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},yg=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},bg=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],xg=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},vg=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},fi=(e,t)=>{let r=or(e);if(!r){on()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Kt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,C$=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Tr=e=>{if(!C(e))return null;if(Kt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(C$);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},sr=e=>C(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),un=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},fn=(e,t)=>{C(e)&&e.includes("rgb")&&(e=or(e).join(", ")),C(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Ut(t)&&(t+="");let r=mg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=xg(r,parseFloat(t));return gg(o).join(", ")}else{let[o,s,i]=e,a=yg(o,s,i),[l,c,u]=a;return bg(l,c,parseFloat(t)/100*255)}};var rw=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Ot=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},oo=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},_g=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},di=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),pi=e=>`@import url('${e}');`,wg=e=>`@font-face { ${e} }`,lc=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=_g(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
|
|
27
|
+
`)),x$=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var ic,ag,z0=G(()=>{"use strict";Fe();ic=(e,t)=>(P(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),ag=(e,t)=>(e=parseFloat(e),k(t)&&(t=Object.values(t)),ic(e,t))});function ro(e){let t=String(e||"").trim();if(!t)return{owner:U0,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=U0);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function ac(e,t={}){if((t.provider||"kv")==="api")return W0(e,t);let n=await k$(e,t);return n||W0(e,t)}async function k$(e,t={}){let r=t.kvBaseUrl||w$,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function W0(e,t={}){let r=t.apiBaseUrl||S$,{key:n}=ro(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),l=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:h}=ro(p?.key);return h.toLowerCase()===n.toLowerCase()});if(!l?.id&&!l?._id)return null;let c=l.id||l._id,u=`${r}/core/projects/${encodeURIComponent(c)}/data?branch=main`,d=await fetch(u,{method:"GET"});if(!d.ok)return null;let f=await d.json();return f?.data||f||null}catch{return null}}async function lg(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(k(n))return n;if(C(n)){let{full:o}=ro(n);if(!o)return null;try{let s=await ac(o,t);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var U0,w$,S$,si,ii,H0=G(()=>{"use strict";Fe();U0="system",w$="https://smbls-kv.nika-980.workers.dev",S$="https://api.symbols.app";si=(e,t)=>{for(let r in t)r in e?k(e[r])&&k(t[r])&&si(e[r],t[r]):e[r]=t[r]},ii=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(k(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(k(n[o])&&k(e[o]))if(o==="designSystem")si(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}});var cg,ug,fg,ai,dg,li,pg,cn,q0=G(()=>{"use strict";Fe();cg=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},ug=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},fg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ai=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),dg=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),li=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),pg=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},cn=e=>{if(P(e))return e;if(C(e))return e.split(" ");if(k(e))return Object.values(e);if(Ut(e))return[e]}});var hg,G0=G(()=>{"use strict";hg=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var Ye,no,ci,ui,K0=G(()=>{"use strict";Ye=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},no=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},ci=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return no(t,{keepOneX:!1})},ui=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:no(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=no(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var X0={};K(X0,{CDN_PROVIDERS:()=>At,DOMQL_EVENTS:()=>pp,DOMQ_PROPERTIES:()=>vr,ENV:()=>Tp,HTML_TAGS:()=>Xn,METHODS:()=>Un,METHODS_EXL:()=>us,NODE_ENV:()=>kt,OPTIONS:()=>Is,PACKAGE_MANAGER_TO_CDN:()=>Or,PARSED_DOMQ_PROPERTIES:()=>cs,PROPS_METHODS:()=>_r,STATE_METHODS:()=>tn,STATE_PROPERTIES:()=>dp,SVG_TAGS:()=>X_,TYPES:()=>rs,UNIVERSAL_RESERVED_KEYS:()=>oc,addCaching:()=>Vl,addContext:()=>Bl,addExtend:()=>eh,addExtends:()=>Xe,addItemAfterEveryElement:()=>Qd,addProtoToArray:()=>ss,addRef:()=>Ll,applyDependentState:()=>xh,applyEvent:()=>Gl,applyEventUpdate:()=>Kl,applyExtends:()=>Z_,applyProps:()=>Es,arrayContainsOtherArray:()=>qd,arraysEqual:()=>tp,arrayzeValue:()=>cn,buildImgSrcset:()=>ci,buildSourcesAndImg:()=>ui,cache:()=>kh,call:()=>Uh,captureSnapshot:()=>Hh,checkForStateTypes:()=>gh,checkIfInherits:()=>ql,checkIfStringIsInArray:()=>op,clone:()=>gp,cloneAndMergeArrayExtend:()=>xs,cloneFunction:()=>Mp,concatAddExtends:()=>Jp,copyJavaScriptToClipboard:()=>ug,copyStringToClipboard:()=>cg,createBasedOnType:()=>Dl,createElement:()=>hh,createElementExtends:()=>kl,createExtends:()=>_s,createExtendsFromKeys:()=>Yn,createExtendsStack:()=>Ol,createIfConditionFlag:()=>Np,createInheritedState:()=>mh,createKey:()=>ys,createNestedObject:()=>wp,createNestedObjectByKeyPath:()=>bh,createObjectWithoutPrototype:()=>yl,createParent:()=>Ml,createPath:()=>Nl,createProps:()=>Os,createPropsStack:()=>Fl,createRoot:()=>ph,createScope:()=>_h,createSnapshotId:()=>ms,customDecodeURIComponent:()=>fp,customEncodeURIComponent:()=>up,cutArrayAfterValue:()=>Jd,cutArrayBeforeValue:()=>Yd,debounce:()=>bs,debounceOnContext:()=>jp,decodeNewlines:()=>cp,deepClone:()=>ge,deepContains:()=>vp,deepDefaults:()=>si,deepDestringifyFunctions:()=>Wt,deepExtend:()=>Sl,deepMerge:()=>fe,deepMergeExtends:()=>Ht,deepStringifyFunctions:()=>fs,defineSetter:()=>Vh,destringifyGlobalScope:()=>ps,detectHeightOnInit:()=>Yh,detectInfiniteLoop:()=>Ap,document:()=>pe,encodeNewlines:()=>lp,error:()=>ln,excludeKeysFromObject:()=>Op,exec:()=>de,extendCachedRegistry:()=>Zp,extendStackRegistry:()=>ws,extractArrayExtend:()=>ks,fetchLibraryData:()=>ac,fibonacciNumberByIndex:()=>Jh,filterArrays:()=>rp,filterArraysFast:()=>np,finalizeExtends:()=>Tl,findClosestNumber:()=>ic,findClosestNumberInFactory:()=>ag,findInheritedState:()=>Hl,findKeyPosition:()=>ip,flattenExtend:()=>Jn,formatDate:()=>Xh,generateHash:()=>vl,generateKey:()=>gs,generateMetaTags:()=>sg,get:()=>Mh,getCDNUrl:()=>Et,getCapitalCaseKeys:()=>nh,getCdnProviderFromConfig:()=>eo,getChildStateInKey:()=>Wl,getChildren:()=>Hs,getContext:()=>Zs,getCookie:()=>Wp,getDB:()=>ni,getEmotionStylesheet:()=>hg,getExtendsInElement:()=>th,getExtendsStack:()=>vs,getExtendsStackRegistry:()=>wl,getFrequencyInArray:()=>Gd,getHashedExtend:()=>Ss,getImportMapScript:()=>Kh,getInObjectByPath:()=>Cp,getLocalStorage:()=>qp,getNev:()=>Ip,getPageMetadata:()=>ig,getParentStateInKey:()=>Ul,getPath:()=>qs,getQuery:()=>oi,getRef:()=>Bh,getRoot:()=>Xs,getRootContext:()=>Js,getRootData:()=>Ys,getRootState:()=>Ks,getRootStateInKey:()=>zl,getSpreadChildren:()=>oh,global:()=>Ud,hasFunction:()=>Hn,hasHandlerPlugin:()=>qn,hasOwnProperty:()=>yp,inheritChildExtends:()=>Al,inheritChildPropsExtends:()=>Cl,inheritParentProps:()=>Ts,inheritRecursiveChildExtends:()=>El,initProps:()=>uh,is:()=>Ge,isArray:()=>P,isBoolean:()=>dl,isContextComponent:()=>sh,isCyclic:()=>Ep,isDOMNode:()=>He,isDate:()=>hl,isDefined:()=>qe,isDevelopment:()=>Sr,isEmpty:()=>gl,isEmptyObject:()=>bp,isEqualDeep:()=>ml,isFunction:()=>O,isHtmlElement:()=>es,isLocal:()=>$p,isMethod:()=>Wh,isMobile:()=>zp,isNode:()=>rr,isNot:()=>Hd,isNotProduction:()=>on,isNull:()=>pl,isNumber:()=>Ut,isObject:()=>k,isObjectLike:()=>re,isPhoto:()=>Zh,isProduction:()=>wr,isStaging:()=>Pp,isState:()=>yh,isString:()=>C,isStringFunction:()=>Lp,isTest:()=>xl,isTesting:()=>Rp,isUndefined:()=>Ie,isUniversallyReservedKey:()=>qh,isValidHtmlTag:()=>Kp,joinArrays:()=>Bn,jointStacks:()=>Qp,keys:()=>rc,loadCssFile:()=>rg,loadJavascript:()=>ng,loadJavascriptFile:()=>Qh,loadJavascriptFileEmbedSync:()=>tg,loadJavascriptFileSync:()=>eg,loadRemoteCSS:()=>og,loadRemoteScript:()=>to,log:()=>zh,logGroupIf:()=>Vp,logIf:()=>Bp,lookdown:()=>Dh,lookdownAll:()=>Lh,lookup:()=>jh,lowercaseFirstLetter:()=>en,makeObjectWithoutPrototype:()=>xp,map:()=>hp,mapStringsWithContextComponents:()=>Cs,matchesComponentNaming:()=>qt,memoize:()=>Dp,merge:()=>ye,mergeSharedLibraries:()=>ii,nextElement:()=>ei,normalizeLibraryKey:()=>ro,objectToString:()=>ds,objectizeStringProperty:()=>As,overwrite:()=>hs,overwriteDeep:()=>Ke,overwriteShallow:()=>nn,overwriteState:()=>vh,parse:()=>nc,parseDeep:()=>Us,pickupElementFromProps:()=>$l,pickupPropsFromElement:()=>Pl,previousElement:()=>ti,propExists:()=>lh,propertizeElement:()=>Il,propertizeUpdate:()=>ah,remove:()=>E0,removeChars:()=>fg,removeCookie:()=>Hp,removeDuplicateProps:()=>Ps,removeDuplicatesInArray:()=>Vn,removeFromArray:()=>Kd,removeFromObject:()=>_p,removeNestedKeyByPath:()=>Sp,removeValueFromArray:()=>os,removeValueFromArrayAll:()=>Zd,reorderArrayByValues:()=>ep,replaceLiteralsWithObjectFields:()=>Qr,replaceOctalEscapeSequences:()=>ap,resolveAsset:()=>Ye,resolveHandler:()=>Gn,resolveSharedLibraries:()=>lg,returnValueAsText:()=>jl,runPluginHook:()=>ft,self:()=>Wd,setActiveRootState:()=>Gs,setCookie:()=>Up,setHashedExtend:()=>_l,setInObjectByPath:()=>kp,setLocalStorage:()=>Gp,setNodeStyles:()=>tc,setProps:()=>Nh,setPropsPrototype:()=>Rs,spotByPath:()=>Ws,srcsetFor:()=>no,stringIncludesAny:()=>as,stringToObject:()=>mp,swapItemsInArray:()=>Xd,syncProps:()=>$s,toCamelCase:()=>ai,toDashCase:()=>li,toDescriptionCase:()=>pg,toTitleCase:()=>dg,toggleFullscreen:()=>Gh,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>wh,trimStringFromSymbols:()=>sp,unstackArrayOfObjects:()=>ns,update:()=>ch,updateProps:()=>fh,variables:()=>ri,verbose:()=>Qn,warn:()=>Qs,window:()=>A});var D=G(()=>{"use strict";bl();Fp();Fe();nr();Kn();zn();ts();q_();G_();ls();Qo();K_();Xp();rh();dh();Rl();o0();s0();Wn();i0();R0();Ch();P0();Sh();$0();I0();F0();j0();D0();L0();M0();N0();V0();z0();H0();q0();G0();K0()});var JC=Dd((tK,YC)=>{var ko=1e3,Co=ko*60,Ao=Co*60,kn=Ao*24,Yj=kn*7,Jj=kn*365.25;YC.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Zj(e);if(r==="number"&&isFinite(e))return t.long?eD(e):Qj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Zj(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Jj;case"weeks":case"week":case"w":return r*Yj;case"days":case"day":case"d":return r*kn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ao;case"minutes":case"minute":case"mins":case"min":case"m":return r*Co;case"seconds":case"second":case"secs":case"sec":case"s":return r*ko;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Qj(e){var t=Math.abs(e);return t>=kn?Math.round(e/kn)+"d":t>=Ao?Math.round(e/Ao)+"h":t>=Co?Math.round(e/Co)+"m":t>=ko?Math.round(e/ko)+"s":e+"ms"}function eD(e){var t=Math.abs(e);return t>=kn?Fu(e,t,kn,"day"):t>=Ao?Fu(e,t,Ao,"hour"):t>=Co?Fu(e,t,Co,"minute"):t>=ko?Fu(e,t,ko,"second"):e+" ms"}function Fu(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var QC=Dd((rK,ZC)=>{function tD(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=JC(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,p,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),v=b-(d||b);y.diff=v,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(S,E)=>{if(S==="%%")return"%";x++;let F=r.formatters[E];if(typeof F=="function"){let w=m[x];S=F.call(y,w),m.splice(x,1),x--}return S}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function i(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}ZC.exports=tD});var eA=Dd((Ze,ju)=>{Ze.formatArgs=nD;Ze.save=oD;Ze.load=sD;Ze.useColors=rD;Ze.storage=iD();Ze.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();Ze.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 rD(){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 e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function nD(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ju.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ze.log=console.debug||console.log||(()=>{});function oD(e){try{e?Ze.storage.setItem("debug",e):Ze.storage.removeItem("debug")}catch{}}function sD(){let e;try{e=Ze.storage.getItem("debug")||Ze.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function iD(){try{return localStorage}catch{}}ju.exports=QC()(Ze);var{formatters:aD}=ju.exports;aD.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var KB={};K(KB,{ANIMATION_PROPS:()=>em,ARIA_ROLES:()=>BI,ATTR_TRANSFORMS:()=>gm,BLOCK_PROPS:()=>tm,CDN_PROVIDERS:()=>At,CONFIG:()=>hc,CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_PROPS_REGISTRY:()=>Ae,CSS_UNITS:()=>Nn,DEFAULT_CONFIG:()=>Fi,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>Ai,DESIGN_SYSTEM_OPTIONS:()=>Sy,DOMQL_EVENTS:()=>pp,DOMQ_PROPERTIES:()=>vr,DOM_EVENTS:()=>bS,ENV:()=>Tp,FACTORY:()=>ir,FLEX_PROPS:()=>im,FONT_PROPS:()=>rm,GRID_PROPS:()=>am,HTML_ATTRIBUTES:()=>Xc,HTML_TAGS:()=>Xn,LIFECYCLE_EVENTS:()=>_n,METHODS:()=>Un,METHODS_EXL:()=>us,MISC_PROPS:()=>nm,MIXINS:()=>Xg,NODE_ENV:()=>kt,OPTIONS:()=>Is,PACKAGE_MANAGER_TO_CDN:()=>Or,PARSED_DOMQ_PROPERTIES:()=>cs,POSITION_PROPS:()=>om,PROPS_METHODS:()=>_r,REGISTRY:()=>Je,ROUTER_OPTIONS:()=>cu,STATE_PROPERTIES:()=>dp,SVG_TAGS:()=>ki,THEME_PROPS:()=>sm,TIMING_PROPS:()=>Pi,TYPES:()=>rs,UNIVERSAL_RESERVED_KEYS:()=>oc,VALUE_TRANSFORMERS:()=>Ug,activateConfig:()=>$$,addCaching:()=>Vl,addContext:()=>Bl,addDelegatedEvent:()=>Gc,addExtend:()=>eh,addExtends:()=>Xe,addItemAfterEveryElement:()=>Qd,addMethods:()=>Ii,addProtoToArray:()=>ss,addRef:()=>Ll,animation:()=>vw,appendSVGSprite:()=>Lc,appendSvgIconsSprite:()=>Nc,applyAttrTransforms:()=>bm,applyCSS:()=>by,applyDependentState:()=>xh,applyDocument:()=>Dc,applyEvent:()=>Gl,applyEventUpdate:()=>Kl,applyExtends:()=>Oi,applyHeadings:()=>jg,applyInitialState:()=>pm,applyMediaSequenceVars:()=>pn,applyProps:()=>Es,applyReset:()=>Bc,applySequenceGlobalVars:()=>_c,applySequenceVars:()=>$r,applySpacingSequence:()=>$c,applyStateMethods:()=>yt,applyTimingSequence:()=>jc,applyTrueProps:()=>cm,applyTypographySequence:()=>Tc,arrayContainsOtherArray:()=>qd,arraysEqual:()=>tp,arrayzeValue:()=>cn,batch:()=>xr,breakpoints:()=>bw,buildImgSrcset:()=>ci,buildSourcesAndImg:()=>ui,cache:()=>kh,cacheNode:()=>vn,call:()=>Uh,captureSnapshot:()=>Hh,changeGlobalTheme:()=>Wg,changeLightness:()=>tw,checkAttributeByTagName:()=>jr,checkEventFunctions:()=>ym,checkForStateTypes:()=>gh,checkIfBoxSize:()=>Pc,checkIfInherits:()=>ql,checkIfStringIsInArray:()=>op,class:()=>Cw,clone:()=>gp,cloneAndMergeArrayExtend:()=>xs,cloneFunction:()=>Mp,color:()=>fw,colorStringToRgbaArray:()=>or,components:()=>po,concatAddExtends:()=>Jp,convertSvgToSymbol:()=>wc,copyJavaScriptToClipboard:()=>ug,copyStringToClipboard:()=>cg,create:()=>D_,createAsync:()=>HB,createBasedOnType:()=>Dl,createComputed:()=>B_,createConfig:()=>Eg,createDefine:()=>N1,createEffect:()=>we,createElement:()=>hh,createElementExtends:()=>kl,createExtends:()=>_s,createExtendsFromKeys:()=>Yn,createExtendsStack:()=>Ol,createHTMLNode:()=>Si,createIfConditionFlag:()=>Np,createInheritedState:()=>mh,createKey:()=>ys,createNestedObject:()=>wp,createNestedObjectByKeyPath:()=>bh,createObjectWithoutPrototype:()=>yl,createParent:()=>Ml,createPath:()=>Nl,createProps:()=>Os,createPropsStack:()=>Fl,createRoot:()=>ph,createScope:()=>_h,createScopeStore:()=>fl,createSignal:()=>zt,createSkeleton:()=>GB,createSnapshotId:()=>ms,createState:()=>dS,createStore:()=>ut,createSync:()=>qB,css:()=>Ir,cssMediaVars:()=>Cg,cssVars:()=>kg,customDecodeURIComponent:()=>fp,customEncodeURIComponent:()=>up,cutArrayAfterValue:()=>Jd,cutArrayBeforeValue:()=>Yd,debounce:()=>bs,debounceOnContext:()=>jp,decodeNewlines:()=>cp,deepClone:()=>ge,deepContains:()=>vp,deepDefaults:()=>si,deepDestringifyFunctions:()=>Wt,deepExtend:()=>Sl,deepMerge:()=>fe,deepMergeExtends:()=>Ht,deepStringifyFunctions:()=>fs,defaultDefine:()=>mo,defineSetter:()=>Vh,destringifyGlobalScope:()=>ps,destroy:()=>Ni,detectHeightOnInit:()=>Yh,detectInfiniteLoop:()=>Ap,detectTag:()=>xn,devices:()=>xw,dispose:()=>wn,encodeNewlines:()=>lp,error:()=>ln,excludeKeysFromObject:()=>Op,exec:()=>de,executeAttr:()=>zI,exetuteClassPerComponent:()=>TI,extendCachedRegistry:()=>Zp,extendStackRegistry:()=>ws,extractArrayExtend:()=>ks,extractConditionalAttrs:()=>HI,fetchLibraryData:()=>ac,fibonacciNumberByIndex:()=>Jh,filterArrays:()=>rp,filterArraysFast:()=>np,filterAttributesByTagName:()=>VI,finalizeExtends:()=>Tl,findClosestNumber:()=>ic,findClosestNumberInFactory:()=>ag,findHeadingLetter:()=>Pg,findHeadings:()=>vc,findInheritedState:()=>Hl,findKeyPosition:()=>ip,flattenExtend:()=>Jn,font:()=>sw,fontFace:()=>lw,fontFamily:()=>iw,fontFamilyTypes:()=>aw,formatDate:()=>Xh,generateHash:()=>vl,generateKey:()=>gs,generateMetaTags:()=>sg,generateSequence:()=>et,generateSequencePosition:()=>Pw,generateSprite:()=>mi,generateSubSequence:()=>bc,get:()=>Mh,getActiveConfig:()=>T,getActiveDocument:()=>Gg,getActiveLang:()=>Vi,getCDNUrl:()=>Et,getCacheSize:()=>Xw,getCapitalCaseKeys:()=>nh,getCdnProviderFromConfig:()=>eo,getChildStateInKey:()=>Wl,getChildren:()=>Hs,getColor:()=>me,getColorShade:()=>xg,getContext:()=>Zs,getCookie:()=>Wp,getDB:()=>ni,getDefaultOrFirstKey:()=>oo,getEmotionStylesheet:()=>hg,getExtendsInElement:()=>th,getExtendsStack:()=>vs,getExtendsStackRegistry:()=>wl,getFnPrefixAndValue:()=>Pr,getFontFace:()=>nw,getFontFaceEach:()=>so,getFontFaceEachString:()=>Sg,getFontFaceString:()=>cc,getFontFamily:()=>Oc,getFontFormat:()=>_g,getFontSizeByKey:()=>Rc,getFrequencyInArray:()=>Gd,getHashedExtend:()=>Ss,getImportMapScript:()=>Kh,getInObjectByPath:()=>Cp,getLanguages:()=>du,getLocalStateLang:()=>yu,getLocalStorage:()=>qp,getMediaColor:()=>De,getMediaTheme:()=>Tt,getNev:()=>Ip,getObserver:()=>Ln,getPageMetadata:()=>ig,getParentStateInKey:()=>Ul,getPath:()=>qs,getQuery:()=>oi,getRef:()=>Bh,getRgbTone:()=>fn,getRoot:()=>Xs,getRootContext:()=>Js,getRootData:()=>Ys,getRootState:()=>Ks,getRootStateInKey:()=>zl,getSequenceValue:()=>xc,getSequenceValueBySymbols:()=>Rg,getSequenceValuePropertyPair:()=>lr,getShadow:()=>Fc,getSignals:()=>z_,getSpacingBasedOnRatio:()=>Xt,getSpacingByKey:()=>Pe,getSpreadChildren:()=>oh,getSubratio:()=>yc,getSubratioDifference:()=>mc,getSystemGlobalTheme:()=>mt,getTheme:()=>kc,getTimingByKey:()=>ht,getTimingFunction:()=>Rt,global:()=>Ud,gradient:()=>dw,grid:()=>kw,hasFunction:()=>Hn,hasHandlerPlugin:()=>qn,hasOwnProperty:()=>yp,hexToRgb:()=>J0,hexToRgbArray:()=>gg,hexToRgba:()=>Q0,hslToRgb:()=>bg,icons:()=>gw,inheritChildExtends:()=>Al,inheritChildPropsExtends:()=>Cl,inheritParentProps:()=>Ts,inheritRecursiveChildExtends:()=>El,init:()=>go,initPolyglot:()=>ky,initProps:()=>uh,injectGlobal:()=>Ce,is:()=>Ge,isArray:()=>P,isBoolean:()=>dl,isCSSVar:()=>xe,isContextComponent:()=>sh,isCyclic:()=>Ep,isDOMNode:()=>He,isDate:()=>hl,isDefined:()=>qe,isDevelopment:()=>Sr,isEmpty:()=>gl,isEmptyObject:()=>bp,isEqualDeep:()=>ml,isFunction:()=>O,isGoogleFontsUrl:()=>di,isHtmlElement:()=>es,isLocal:()=>$p,isMethod:()=>Wh,isMobile:()=>zp,isNode:()=>rr,isNot:()=>Hd,isNotProduction:()=>on,isNull:()=>pl,isNumber:()=>Ut,isObject:()=>k,isObjectLike:()=>re,isPhoto:()=>Zh,isProduction:()=>wr,isResolvedColor:()=>sr,isScalingUnit:()=>Mn,isStaging:()=>Pp,isState:()=>yh,isStore:()=>Se,isString:()=>C,isStringFunction:()=>Lp,isSvgTag:()=>Ci,isTest:()=>xl,isTesting:()=>Rp,isTracking:()=>mS,isUndefined:()=>Ie,isUniversallyReservedKey:()=>qh,isValidHtmlTag:()=>Kp,isValidTag:()=>wi,isWasmLoaded:()=>A1,joinArrays:()=>Bn,jointStacks:()=>Qp,keyframes:()=>_i,keys:()=>rc,loadCssFile:()=>rg,loadJavascript:()=>ng,loadJavascriptFile:()=>Qh,loadJavascriptFileEmbedSync:()=>tg,loadJavascriptFileSync:()=>eg,loadRemoteCSS:()=>og,loadRemoteScript:()=>to,loadTranslations:()=>hu,loadWasm:()=>C1,log:()=>zh,logGroupIf:()=>Vp,logIf:()=>Bp,lookdown:()=>Dh,lookdownAll:()=>Lh,lookup:()=>jh,lowercaseFirstLetter:()=>en,makeObjectWithoutPrototype:()=>xp,map:()=>hp,mapStringsWithContextComponents:()=>Cs,matchesComponentNaming:()=>qt,media:()=>cw,memoize:()=>Dp,merge:()=>ye,mergeSharedLibraries:()=>ii,mixTwoColors:()=>Y0,mixTwoRgb:()=>ew,mixTwoRgba:()=>vg,nextElement:()=>ei,normalizeLibraryKey:()=>ro,numToLetterMap:()=>ar,objectToString:()=>ds,objectizeStringProperty:()=>As,opacify:()=>fi,overwrite:()=>hs,overwriteDeep:()=>Ke,overwriteShallow:()=>nn,overwriteState:()=>vh,parse:()=>nc,parseColorToken:()=>Tr,parseDeep:()=>Us,pickupElementFromProps:()=>$l,pickupPropsFromElement:()=>Pl,polyglotFunctions:()=>zi,polyglotPlugin:()=>bu,popConfig:()=>ve,previousElement:()=>ti,propExists:()=>lh,propertizeElement:()=>Il,propertizeUpdate:()=>ah,pushConfig:()=>ke,registerEvent:()=>Ei,reinit:()=>yy,remove:()=>Ri,removeChars:()=>fg,removeCookie:()=>Hp,removeDelegatedEvent:()=>Kc,removeDuplicateProps:()=>Ps,removeDuplicatesInArray:()=>Vn,removeFromArray:()=>Kd,removeFromObject:()=>_p,removeNestedKeyByPath:()=>Sp,removeValueFromArray:()=>os,removeValueFromArrayAll:()=>Zd,reorderArrayByValues:()=>ep,replaceLiteralsWithObjectFields:()=>Qr,replaceOctalEscapeSequences:()=>ap,resolveAsset:()=>Ye,resolveColorsInGradient:()=>zc,resolveFileSource:()=>hm,resolveFileUrl:()=>Ot,resolveHandler:()=>Gn,resolvePropValue:()=>Fr,resolveSharedLibraries:()=>lg,returnSubThemeOrDefault:()=>rw,returnValueAsText:()=>jl,rgbArrayToHex:()=>mg,rgbToHSL:()=>yg,rgbToHex:()=>Z0,runPluginHook:()=>ft,runThroughMedia:()=>Fg,scratchDefaultConfig:()=>hi,scratchSystem:()=>vi,scratchUtils:()=>hn,self:()=>Wd,semanticIcons:()=>mw,sequence:()=>Rr,set:()=>io,setActiveConfig:()=>Ag,setActiveDocument:()=>Gw,setActiveRootState:()=>Gs,setClass:()=>kF,setClassname:()=>RI,setColor:()=>gn,setCookie:()=>Up,setCssEngineHook:()=>su,setCustomFont:()=>lc,setCustomFontMedia:()=>dn,setEach:()=>Uw,setFont:()=>Ec,setFontFamily:()=>bi,setFontImport:()=>pi,setGradient:()=>mn,setHashedExtend:()=>_l,setInCustomFontMedia:()=>wg,setInObjectByPath:()=>kp,setLang:()=>gu,setLocalStorage:()=>Gp,setMediaTheme:()=>Ac,setNodeStyles:()=>tc,setObserver:()=>N_,setProps:()=>Nh,setPropsPrototype:()=>Rs,setSVG:()=>xi,setScalingVar:()=>gc,setShadow:()=>yn,setSubScalingVar:()=>Tg,setSvgIcon:()=>Mc,setTheme:()=>Cc,setValue:()=>zw,setVariables:()=>$w,setWasmEngine:()=>qc,shadow:()=>hw,sizes:()=>Ew,spacing:()=>uw,splitSpacedValue:()=>Ic,splitTopLevelCommas:()=>un,splitTransition:()=>zg,spotByPath:()=>Ws,srcsetFor:()=>no,stringIncludesAny:()=>as,stringToObject:()=>mp,svg:()=>_w,svgData:()=>ww,swapItemsInArray:()=>Xd,syncProps:()=>$s,templates:()=>Sw,theme:()=>pw,timing:()=>yw,toCamel:()=>pc,toCamelCase:()=>ai,toDashCase:()=>li,toDescriptionCase:()=>pg,toTitleCase:()=>dg,toggleFullscreen:()=>Gh,transformBackgroundImage:()=>Bg,transformBorder:()=>cr,transformBorderRadius:()=>Wc,transformBoxShadow:()=>Vc,transformClassname:()=>lS,transformDuration:()=>Uc,transformShadow:()=>Ng,transformSize:()=>_e,transformSizeRatio:()=>ne,transformTextStroke:()=>Mg,transformTransition:()=>Vw,transformersByPrefix:()=>um,transfromGap:()=>Vg,translate:()=>pu,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>wh,trimStringFromSymbols:()=>sp,typography:()=>uc,unit:()=>ow,unstackArrayOfObjects:()=>ns,update:()=>Ti,updateProps:()=>fh,updateVars:()=>SF,upsertTranslation:()=>mu,useCssInProps:()=>rt,useHostState:()=>gS,usePropsAsCSS:()=>iS,useSelectorsAsCSS:()=>aS,variables:()=>ri,vars:()=>Aw,verbose:()=>Qn,warn:()=>Qs,window:()=>A});module.exports=y2(KB);var We=null,al=0,ll=[],Ln=()=>We,N_=e=>{We=e},cl=0,Ld=[];function zt(e){let t=new Set;function r(){return We&&(t.add(We),We._sources.add(s)),e}function n(i){i!==e&&(e=i,v2(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function B_(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Nd(o);let s=We;We=o;try{t=e(),r=!1}finally{We=s}},_notify(){r=!0,n.size>0&&V_(n)},get(){return We&&(n.add(We),We._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Jr=new Set,Md=!1;function we(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Nd(n);let o=We;We=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{We=o}},_notify(){n._disposed||(al>0?ll.push(n):cl>0?Ld.push(n):Bd(n))},dispose(){n._disposed=!0,Nd(n)}};return n._execute(),n}function xr(e){al++;try{e()}finally{al--,al===0&&x2()}}function Bd(e){Jr.add(e),Md||(Md=!0,queueMicrotask(b2))}var Dn=[];function b2(){if(Md=!1,Jr.size!==0){if(Jr.size===1){let[e]=Jr;Jr.clear(),e._disposed||e._execute();return}Dn.length=0;for(let e of Jr)Dn.push(e);Jr.clear(),Dn.sort((e,t)=>e._depth-t._depth);for(let e=0;e<Dn.length;e++){let t=Dn[e];t._disposed||t._execute()}Dn.length=0}}function x2(){for(let e=0;e<ll.length;e++)Bd(ll[e]);ll.length=0}function V_(e){cl++;try{for(let t of e)t._notify()}finally{if(cl--,cl===0&&Ld.length>0){let t=Ld.splice(0);for(let r=0;r<t.length;r++)Bd(t[r])}}}function v2(e){V_(e)}function Nd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Zr=Symbol("store"),ul=Symbol("signals"),Vd=e=>!e||typeof e!="object"||Array.isArray(e)||e[Zr]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function ut(e,t,r){r===void 0&&(r=0);let n={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let b=e[y];r<s&&b&&typeof b=="object"&&!Vd(b)?(o[y]=b,n[y]=zt(ut(b,t,r+1))):(o[y]=b,n[y]=zt(b))}let i=new Proxy(o,{get(y,b){if(b===Zr)return!0;if(b===ul)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return p;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Ln()!=null)return n[b]=zt(void 0),n[b].get()},set(y,b,v){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=v,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=v,v&&typeof v=="object"&&!Vd(v)?n[b].set(ut(v,t,r+1)):n[b].set(v)):(y[b]=v,v&&typeof v=="object"&&!Vd(v)?n[b]=zt(ut(v,t,r+1)):n[b]=zt(v)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){xr(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let v=o.__element;return v&&v.onUpdate&&!b?.quiet&&v.onUpdate(v,i,v.context),i}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let v in n){if(v==="parent"||v==="root"||v.startsWith("__"))continue;let x=n[v].peek();x&&x[Zr]?b[v]=x.parse(y):b[v]=x}return b}function u(){return xr(()=>{for(let y in n)delete i[y]}),i}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function p(y){return xr(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){u(),o.__element=null,o.parent=null}return i}function Se(e){return e&&e[Zr]===!0}function z_(e){return e[ul]}function fl(e,t){let r={},n={};if(e&&typeof e=="object")for(let i in e)n[i]=e[i],r[i]=zt(e[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=t;for(;a;){let l=a[ul];if(l&&Object.prototype.hasOwnProperty.call(l,i))return l;a=a[Zr]?a[zd]:null}return null};return new Proxy(n,{get(i,a){return a===Zr?!0:a===ul?r:a===zd?t:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:i[a]},set(i,a,l){let c=o(a);return c?(c===r&&(i[a]=l),c[a].set(l),!0):(i[a]=l,r[a]=zt(l),!0)},has(i,a){if(a in r||a in i)return!0;let l=t;for(;l;){if(a in l)return!0;l=l[Zr]?l[zd]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var zd=Symbol("scope.parent");var hn={};K(hn,{CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_UNITS:()=>Nn,applyMediaSequenceVars:()=>pn,applySequenceGlobalVars:()=>_c,applySequenceVars:()=>$r,changeLightness:()=>tw,colorStringToRgbaArray:()=>or,convertSvgToSymbol:()=>wc,findHeadingLetter:()=>Pg,findHeadings:()=>vc,generateSequence:()=>et,generateSequencePosition:()=>Pw,generateSprite:()=>mi,generateSubSequence:()=>bc,getColorShade:()=>xg,getDefaultOrFirstKey:()=>oo,getFnPrefixAndValue:()=>Pr,getFontFace:()=>nw,getFontFaceEach:()=>so,getFontFaceEachString:()=>Sg,getFontFaceString:()=>cc,getFontFormat:()=>_g,getRgbTone:()=>fn,getSequenceValue:()=>xc,getSequenceValueBySymbols:()=>Rg,getSequenceValuePropertyPair:()=>lr,getSubratio:()=>yc,getSubratioDifference:()=>mc,hexToRgb:()=>J0,hexToRgbArray:()=>gg,hexToRgba:()=>Q0,hslToRgb:()=>bg,isCSSVar:()=>xe,isGoogleFontsUrl:()=>di,isResolvedColor:()=>sr,isScalingUnit:()=>Mn,mixTwoColors:()=>Y0,mixTwoRgb:()=>ew,mixTwoRgba:()=>vg,numToLetterMap:()=>ar,opacify:()=>fi,parseColorToken:()=>Tr,resolveFileUrl:()=>Ot,returnSubThemeOrDefault:()=>rw,rgbArrayToHex:()=>mg,rgbToHSL:()=>yg,rgbToHex:()=>Z0,setCustomFont:()=>lc,setCustomFontMedia:()=>dn,setFontImport:()=>pi,setInCustomFontMedia:()=>wg,setScalingVar:()=>gc,setSubScalingVar:()=>Tg,setVariables:()=>$w,splitTopLevelCommas:()=>un});var Mn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Nn=["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"];D();var or=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&pe&&A){let t=pe.body.appendChild(pe.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){pe.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return pe.body.removeChild(t),[0,0,0,0];e=A.getComputedStyle(t).color,pe.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},Y0=(e,t,r=.5)=>(e=or(e),t=or(t),vg(e,t,r)),J0=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},gg=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Z0=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),mg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),Q0=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},ew=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},tw=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},yg=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},bg=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],xg=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},vg=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},fi=(e,t)=>{let r=or(e);if(!r){on()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Kt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,C$=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Tr=e=>{if(!C(e))return null;if(Kt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(C$);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},sr=e=>C(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),un=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},fn=(e,t)=>{C(e)&&e.includes("rgb")&&(e=or(e).join(", ")),C(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Ut(t)&&(t+="");let r=mg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=xg(r,parseFloat(t));return gg(o).join(", ")}else{let[o,s,i]=e,a=yg(o,s,i),[l,c,u]=a;return bg(l,c,parseFloat(t)/100*255)}};var rw=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Ot=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},oo=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},_g=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},di=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),pi=e=>`@import url('${e}');`,wg=e=>`@font-face { ${e} }`,lc=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=_g(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
|
|
28
28
|
`);return`
|
|
29
29
|
font-family: '${e}';
|
|
30
30
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
@@ -32,8 +32,8 @@ FROM ${a}${c}`},p$=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
|
|
|
32
32
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
33
33
|
font-display: ${n.fontDisplay};`:""}
|
|
34
34
|
src: ${i};`},dn=(e,t,r,n)=>`@font-face {${lc(e,t,r,n)}
|
|
35
|
-
}`,so=(e,t,r)=>Object.keys(t).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:l,fontStretch:c}=t[o],u=Array.isArray(s)?s.map(d=>Ot(d,r)||d):Ot(s,r)||s;return lc(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),nw=e=>Object.keys(e).map(r=>so(r,e[r].value)),Sg=(e,t,r)=>{if(t&&t.isVariable){let s=Ot(t.url,r)||t.url;return di(s)?pi(s):dn(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return so(e,t,r).map(wg);let o=Array.isArray(t.url)?t.url.map(s=>Ot(s,r)||s):Ot(t.url,r)||t.url;return dn(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},cc=(e,t)=>Object.keys(e).map(n=>Sg(n,e[n].value,t));D();D();D();var hi={};K(hi,{animation:()=>vw,breakpoints:()=>bw,class:()=>Cw,color:()=>fw,devices:()=>xw,document:()=>T$,font:()=>sw,fontFace:()=>lw,fontFamily:()=>iw,fontFamilyTypes:()=>aw,gradient:()=>dw,grid:()=>kw,icons:()=>gw,media:()=>cw,reset:()=>P$,semanticIcons:()=>mw,sequence:()=>Rr,shadow:()=>hw,sizes:()=>Ew,spacing:()=>uw,svg:()=>_w,svgData:()=>ww,templates:()=>Sw,theme:()=>pw,timing:()=>yw,typography:()=>uc,unit:()=>ow,vars:()=>Aw});var Rr={"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 ow={default:"em"};var A$={browserDefault:16,base:16,type:"font-size",ratio:Rr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},uc=A$;var sw={};var iw={},aw={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},lw={};var cw={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var E$={base:uc.base,type:"spacing",ratio:Rr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},uw=E$;var fw={},dw={};var pw={};var hw={};var gw={},mw={};var O$={default:150,base:150,type:"timing",ratio:Rr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},yw=O$;var T$={};var bw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},xw={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 vw={};var _w={},ww={};var Sw={};var R$={},kw=R$;var Cw={};var P$={},Aw={},Ew={};var kg={},Cg={},fc=hi,dc={},pc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in fc){let t=e.toLowerCase();dc[t]=fc[e];let r=pc(t);r!==t&&(dc[r]=fc[e]),t!==e&&(dc[e]=fc[e])}var hc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:kg,cssMediaVars:Cg,CSS_VARS:kg,CSS_MEDIA_VARS:Cg,_scratchConfig:!0,...dc},Ow=ge(hc),ir={active:"0",0:hc},$$=e=>(qe(e)&&(ir.active=e),ir[e||ir.active]),gi=[],ke=e=>{e&&e._scratchConfig&&gi.push(e)},ve=()=>{gi.pop()},T=e=>gi.length?gi[gi.length-1]:ir[e||ir.active]||hc,Ag=e=>{if(k(e))return ir.active="1",ir[1]=fe(e,ge(Ow)),e},I$=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],F$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],j$=e=>{for(let t of F$){let r;for(let n of t){let o=e[n];k(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)k(e[n])&&(e[n]=r)}},Eg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:T(),o=ge(!r&&n&&n._scratchConfig?n:Ow);for(let i of I$)delete o[i];let s=fe(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,j$(s),e&&(ir[e]=s),s};var ar={"-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"},Og=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=Tw.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Pr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},Tw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),gc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=Tw.has(o)?"rem":o,i=(Mn(s)?1:r)+s;if(e===0)return i;let l="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),c=`${l}-ratio`;if(e>0){let u=ar[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=ar[e+1],d=Math.abs(e),f=Math.pow(Rw,2*d),p=ar[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},Tg=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,c=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},mc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},yc=(e,t)=>mc(e,t).map(r=>r/e),bc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=mc(o,s);c>16?u=[d,f,p]:u=[d,p],u.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,v=Tg(g+1,u,i,t),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:v,index:b};Og(x,t)})},Rw=1.618,D$=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(Rw,2*n);return Math.max(o,s)},et=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),l="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let c=0;c<=i;c++){let u=o[1]-c,d=ar[u],f=D$(u,r,n),p=~~(f/r*100)/100,h=l+d,g=gc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};Og(m,e),s&&bc(m,e)}return e},Pw=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=C(t)?t:ar[t],a=C(t)?Object.entries(ar).find(([,m])=>m===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,p="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=gc(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return Og(g,l),s&&bc(g,l),l},xc=(e="A",t)=>{let r=T(),{unit:n}=r;if(C(e)&&xe(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Nn.some(x=>e.includes(x))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let f=`--${t.varPrefix?t.varPrefix+"-":""}${li(t.type.replace(".","-"))}-`,p=e.toUpperCase(),h=p.slice(0,1)==="-"?"-":"",g=h?p.slice(1):p,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${f}${x}${m})`:x;if(g.includes("+")){let[x,_]=g.split("+"),S=`${y(x)} + ${y(_)}`;return h?`calc((${S}) * -1)`:`calc(${S})`}else if(g.includes("*")){let[x,_]=g.split("*"),S=`${y(x)} * ${y(_)}`;return h?`calc((${S}) * -1)`:`calc(${S})`}else if(g.includes("-")){let[x,_]=g.split("-"),S=`${y(x)} - ${y(_)}`;return h?`calc((${S}) * -1)`:`calc(${S})`}let b=r.sizes;if(b){let x=b[e]||b[e.toLowerCase()];if(x!==void 0)return h?`calc(${x} * -1)`:x}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${f}${g}${m})`;return h?`calc(${x} * -1)`:x}let v=o?o[g]:null;return v?s==="ms"||s==="s"?h+v.val+s:h+v.scaling+s:console.warn("can't find",o,g)},Rg=(e,t)=>{if(!["+","-","*","/",","].filter(s=>e.includes(s+" ")).length)return e;let n=/(\s*[+\-*/,]\s*)/;return e.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:xc(i,t)}).join("")},lr=(e,t,r,n)=>{if(typeof e!="string")return T().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=Pr(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=Rg(e,r):e=xc(e,r),{[t]:n?`${n}(${e})`:e}},Pg=(e,t)=>ar[e-t],vc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=Pg(t,o);return r[s]})};D();var $w=(e,t)=>{let r=T(),{cssVars:n}=r;re(e.value)||(n[e.var]=e.value)},_c=(e,t,r)=>{let n=T(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,u="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${u}-base`]=i,e[`${u}-unit`]=s;let d=`${u}-ratio`;e[d]=a;let[f,p,h]=yc(i,a);e[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${f/a})`,e[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,e[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${h/a})`},Iw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),$r=(e,t={})=>{let r=T(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=Iw.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||_c(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},pn=(e,t,r={})=>{let n=T(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=Iw.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),_c(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Mn(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};D();var jw=on(),mi=e=>{let t=T(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},L$=e=>{let t=e&&(e.default||e);if(!C(t))return jw&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,l]=i.split("=");return s[a]=l.replace(/['"]/g,""),s},{}):{}},M$=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},Fw=new Set,wc=(e,t)=>{let r=t&&t.default?t.default:t;if(!C(r))return jw&&!Fw.has(e)&&(Fw.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=L$(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,c=M$(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=V$(c),c},N$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",B$=new RegExp(`<(${N$})\\b([^>]*?)\\s*/>`,"g"),V$=e=>e.replace(B$,"<$1$2></$1>");var vi={};K(vi,{appendSVGSprite:()=>Lc,appendSvgIconsSprite:()=>Nc,applyDocument:()=>Dc,applyHeadings:()=>jg,applyReset:()=>Bc,applySpacingSequence:()=>$c,applyTimingSequence:()=>jc,applyTypographySequence:()=>Tc,checkIfBoxSize:()=>Pc,getColor:()=>me,getFontFamily:()=>Oc,getFontSizeByKey:()=>Rc,getMediaColor:()=>De,getMediaTheme:()=>Tt,getShadow:()=>Fc,getSpacingBasedOnRatio:()=>Xt,getSpacingByKey:()=>Re,getTheme:()=>kc,getTimingByKey:()=>ht,getTimingFunction:()=>Rt,runThroughMedia:()=>Fg,setColor:()=>gn,setFont:()=>Ec,setFontFamily:()=>bi,setGradient:()=>mn,setMediaTheme:()=>Ac,setSVG:()=>xi,setShadow:()=>yn,setSvgIcon:()=>Mc,setTheme:()=>Cc,splitSpacedValue:()=>Ic});D();var me=(e,t,r)=>{let n=r||T();if(!C(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(P(e))[o,s,i]=e;else{let d=Tr(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=fn(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},De=(e,t,r)=>{let n=r||T();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!C(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let o;if(P(e))o=e[0];else{let c=Tr(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=k(a);if(l&&a.value)return me(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return me(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=me(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},gn=(e,t,r)=>{let n=T();if(C(e)&&xe(e)){let g=e.slice(2);if(e=me(g),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(C(y)||P(y)||k(y))&&(n.color[m[0]]=gn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,v=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=fn(b,x)),e=`rgba(${b}, ${v})`}else{let b=m[2],v=m[1]!==void 0?m[1]:"1";if(b)try{let x=or(m[0]);x&&x.length>=3?e=`rgba(${fn(x.slice(0,3).join(", "),b)}, ${v})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if(P(e)&&(e={"@light":e[0],"@dark":e[1]}),k(e)){let g={};for(let m in e)g[m]=gn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,v={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let _=x.slice(1),S=g[x],E=S&&(S.value||S);!E||typeof E!="string"||(v[_]=E,(_==="light"||b===void 0)&&(b=E))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in v){let _=`[data-theme="${x}"]`;if(n.cssMediaVars[_]||(n.cssMediaVars[_]={}),n.cssMediaVars[_][y]=v[x],x==="light"||x==="dark"){let S=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[S]||(n.cssMediaVars[S]={}),n.cssMediaVars[S][y]=v[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(C(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(C(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Tr(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(C(m)||P(m)||k(m))&&(n.color[g.name]=gn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=fn(b,g.tone));let v=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${v})`}}}let a=or(i),[l,c,u,d=1]=a,f=parseFloat(d.toFixed(2)),p=`${l}, ${c}, ${u}`,h=`rgba(${p}, ${f})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:p,alpha:f,value:h}},mn=(e,t,r)=>{let n=T();if(C(e)&&xe(e)&&(e=me(e.slice(2))),P(e))return{"@light":mn(e[0],t,"light"),"@dark":mn(e[0],t,"dark")};if(k(e)){let i={};for(let a in e)i[a]=mn(e[a],t,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=e.value||e),{var:s,value:e.value||e}};D();var z$=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"]),Dw=["color","Color","background","Background","fill","Fill","stroke","Stroke"],U$=e=>{for(let t=0;t<Dw.length;t++)if(e.includes(Dw[t]))return!0;return!1},Sc=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(a=>{let c=["color","Color","background","border"].some(u=>a.includes(u));return t[a]=c?me(e[a]):e[a]}),t},yi=e=>(e.value||(e.value=Sc(e)),e.value),kc=(e,t)=>{let r=T();if(r.useVariable)return Tt(e,t);let n=r.theme;if(C(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return yi(i);e=[o,s||t]}}if(re(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return yi(a[s]);if(i&&i[s])return yi(i[s]);if(l&&l[s])return yi(l[s])}else if(k(e))return Sc(e)},W$=(e,t,r)=>{if(k(t))e.variants.inverse.value=Sc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},H$=(e,t,r,n)=>{let o=kc(r);n[`&:${t}`]=o,k(r)&&!r.value&&(r.value=o)},q$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return H$(e,o,s,t),e}),e):void 0},G$=(e,t,r,n)=>{let o=kc(r);n[`@media (prefers-color-scheme: ${t})`]=o,k(r)&&!r.value&&(r.value=o)},K$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&G$(e,o,s,t),o==="inverse"&&W$(e,s,t),e}),e):void 0},X$=(e,t)=>{let r=T(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return C(i)?n[s]=r.theme[i]:yi(n[s]),e}),e):void 0},Cc=(e,t)=>{let r=T();if(r.useVariable)return Ac(e,t);let{state:n,media:o,helpers:s}=e,i=Sc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return q$(e,i),K$(e,i),X$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var $g=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&U$(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=me(f,`@${d}`);p!==void 0&&C(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!z$.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>re(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=$g(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=$g(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let p=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in e){if(l.has(m))continue;let y=e[m]?.[c];if(y===void 0)continue;let b=me(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let v=`[data-theme="${m}"]`;if(o[v]||(o[v]={}),o[v][p]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][p]=b}}g!==void 0&&(n[p]=g),i[c]=`var(${p})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ac=(e,t,r,n)=>{let o=T(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(re(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&re(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=$g(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=Ac(u,t,l,n||d)}else if(!a){let d=me(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?"-"+f.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=d),i[l]=`var(${g})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(C(e)&&xe(e)){let c=o.theme[e.slice(2)];return Tt(c,n)}return i},Ig=e=>{let t=T(),r={};for(let n in e){let o=n.slice(0,1);if(re(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Ig(e[n]):o==="."&&(r[`&${n}`]=Ig(e[n]))}else r[n]=e[n]}return r},Mw=(e,t)=>{let r=t.shift();return e[r]?Mw(e[r],t):e},Lw=(e,t)=>P(t)?Mw(e,t):C(t)&&e[t]?e[t]:e;var Tt=(e,t)=>{let r=T();if(C(e)&&xe(e)&&(e=Tt(e.slice(2))),!e||!C(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=P(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=Lw(s,o):s&&t&&(s=Lw(s,t)),Ig(s)};D();D();var Ec=(e,t)=>{let r=T(),n=`--font-${t}`;if(!e||P(e)&&!e[0])return;let o;if(e.isVariable){let s=Ot(e.url,r.files)||e.url;di(s)?o=pi(s):o=dn(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=so(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Ot(i,r.files)||i):Ot(e.url,r.files)||e.url;o=dn(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},Oc=(e,t)=>{let r=T(),{fontFamily:n}=r;return oo(t||n,e)},bi=(e,t)=>{let r=T(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),k(s)&&(s=cn(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};D();var Fg=e=>{let t=T(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;ye(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){ye(i,{sequence:{},scales:{},vars:{}}),et(i),pn(e,o);continue}ye(i,{sequence:{},scales:{},templates:{},vars:{}}),et(i),pn(e,o)}},jg=e=>{let t=T();if(e.h1Matches){let r=e.unit,n=vc(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Tc=()=>{let e=T(),{typography:t}=e;et(t),jg(t),$r(t),Fg(t)},Rc=e=>{let t=T(),{typography:r}=t;return lr(e,"fontSize",r)};D();D();var Y$=e=>{let r=T().spacing||{},n=parseFloat(e.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return et(o),o},J$=e=>{for(let t in e){let r=e[t];if(!(t.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u}=e;ye(r,{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),et(r),pn(e,t)}},Pc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},$c=()=>{let e=T(),{spacing:t}=e;et(t),$r(t),J$(t)},Z$=e=>{let t=T(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:et(e)},Re=(e,t="padding",r,n)=>{let o=Z$(r);if(C(e)&&!n&&e.includes("(")){let i=Pr(e);n=i[0],e=i[1]}let s=n?[e]:cn(e);if(P(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>lr(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return lr(e,t,o,n)}},Xt=(e,t,r,n)=>{let o=T(),{spacing:s}=o,i=r||e[t];if(!n&&C(i)&&i.includes("(")){let a=Pr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=Y$(e);return Re(i,t,a,n)}return Re(i,t,s,n)},Ic=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Nn.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};D();var yn=(e,t,r,n)=>{let o=T();if(P(e))return{"@light":yn(e[0],t,"light"),"@dark":yn(e[1],t,"dark")};if(k(e)){let a={};for(let l in e)a[l]=yn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}C(e)&&!Kt.test(e)&&(e=un(e).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(l=l.trim(),!l)return"";if(l.startsWith("--"))return`var(${l})`;let c=me(l);if(sr(c))return c;if(/^\d/.test(l)||l==="0"||l.includes("px")||l.slice(-2)==="em"||l==="inset"||l==="none")return l;let u=Re(l,"shadow");return u&&u.shadow?u.shadow:l}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},Fc=(e,t)=>{let r=T();if(t||(t=r.globalTheme),!C(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let[n]=P(e)?e:e.split(" "),s=r.shadow[n],i=k(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(s[t])return s[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&s.value)return s.value;if(i){let a={};for(let l in s){let c=r.media[l.slice(1)],u="@media "+(c==="print"?`${c}`:`screen and ${c}`);a[u]=s.value}return a}return r.verbose&&console.warn("Can't find color",e),e};D();var jc=()=>{let e=T(),{timing:t}=e;et(t),$r(t)},Rt=e=>{let t=T(),{timing:r}=t;return r[e]||r[ai(e)]||e},ht=(e,t="timing")=>{let r=T(),{timing:n}=r;return lr(e,t,n)};D();var Dc=()=>{let e=T(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ye(t,{theme:n.document,fontFamily:oo(r),fontSize:o.base,lineHeight:o.lineHeight})};D();var Lg={document:pe},xi=(e,t)=>{let r=T();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?wc(t,e):e},Lc=(e,t=Lg)=>{let r=T(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];Bw(n,t)},Mc=(e,t)=>{let r=T();return r.useIconSprite&&!r.semanticIcons?.[t]?xi(e,t):e},Nc=(e,t=Lg)=>{let r=T(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];Bw(n,t)},Dg=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},Q$=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},Nw=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},Bw=(e,t=Lg)=>{let r=T(),n=t.document||pe;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),mi(e);let o=n.querySelector("#svgSprite"),s=mi(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=Q$(n,s);if(o)if(a)Nw(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Dg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Dg(n);l&&l.nodeType&&(Nw(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Dg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};D();var Bc=(e={})=>{let t=T(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Tt("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Tt("document"):{};if(r.html&&Ke(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return fe(ye(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.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}})}};D();var eI=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),tI=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),rI=e=>eI.has(e),cr=e=>{let t=e+"";if(Kt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(xe(o))return`var(${o})`;if(rI(o)||/^\d/.test(o)||o==="0")return o;let s=me(o);if(sr(s))return s;let i=Re(o,"border");return i&&i.border?i.border:o}).join(" ")},Mg=e=>Kt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(xe(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=me(t);return sr(r)?r:t}).join(" "),Ng=(e,t)=>Fc(e,t),Vc=(e,t)=>Kt.test(e)?e:un(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(xe(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=me(n);if(sr(o)){let i=De(n,t);return k(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Re(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),zc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",a=un(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||tI.has(u)||u==="transparent"||Kt.test(u))return u;let d=me(u);return sr(d)?d:u}).join(" ")));return n+a.join(", ")+s},Bg=(e,t)=>{let r=T();return e.split(", ").map(n=>xe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?zc(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Tr(n)?`url(${n})`:n).join(" ")},Vg=e=>C(e)&&e.split(" ").map(t=>Re(t,"gap").gap).join(" "),Vw=e=>{let t=e.split(" ");return t.length?t.map(r=>xe(r)?`var(${r})`:r.length<3||r.includes("ms")?ht(r).timing||r:Rt(r)?Rt(r):r).join(" "):e},Uc=(e,t,r)=>{if(C(e))return e.split(",").map(n=>ht(n).timing||n).join(",")},zg=e=>{let t=e.split(",");if(t.length)return t.map(Vw).join(",")};function _e(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let s;if(C(o)){if(o.includes("(")){let l=Pr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=Pc(e);!i&&a&&!n.ratio&&(o=Ic(o))}return n.ratio?Xt(r,e,o,s):Re(o,e,void 0,s)}var ne=(e,t=null,r)=>_e(e,t,r,{ratio:!0}),Wc=(e,t,r)=>{if(C(e))return{borderRadius:e.split(" ").map((n,o)=>Xt(t,r,n)[r]).join(" ")}};D();var nI=(e,t)=>{let r=T(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},tt=e=>e,Ug={color:gn,gradient:mn,font:Ec,fontFamily:bi,fontfamily:bi,theme:Cc,icons:Mc,semanticIcons:tt,semanticicons:tt,svg:xi,svgData:tt,typography:tt,shadow:yn,spacing:tt,media:tt,grid:tt,class:tt,timing:tt,reset:tt,unit:tt,animation:tt,vars:nI,sizes:tt},zw=(e,t,r)=>{let n=T(),o=pc(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=Ug[o]||Ug[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},Uw=(e,t)=>{let r=T(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=k(t[s])||P(t[s])?1:0,l=k(t[i])||P(t[i])?1:0;return a-l}).forEach(s=>{try{return zw(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},Wg=(e,t)=>{let r=t||T();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(e&&e!=="auto")a.setAttribute("data-theme",e),e==="dark"||e==="light"?a.style.colorScheme=e:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let c=d=>{a.setAttribute("data-theme",d.matches?"dark":"light")},u=s.matchMedia("(prefers-color-scheme: dark)");if(c(u),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=c;try{u.addEventListener("change",c)}catch{u.addListener(c)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",l=o.styleSheets;for(let c=0;c<l.length;c++)try{let u=l[c].cssRules;for(let d=0;d<u.length;d++)if(u[d].selectorText===a){for(let f in r.cssVars)u[d].style.setProperty(f,r.cssVars[f]);return r}}catch{}}return r},oI={},io=(e,t=oI)=>{let r=t.config||T(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=Ag(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let v=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=v&&v.defaultView||(typeof window<"u"?window:null),_=v&&(r.themeRoot||v.documentElement);if(_&&typeof _.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")_.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?_.style.colorScheme=r.globalTheme:_.style.colorScheme="light dark";else if(x&&x.matchMedia){let $=te=>{_.setAttribute("data-theme",te.matches?"dark":"light")},q=x.matchMedia("(prefers-color-scheme: dark)");if($(q),_.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=$;try{q.addEventListener("change",$)}catch{q.addListener($)}}}else _.setAttribute("data-theme","light"),_.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let S=Object.keys(y),E=new Set(S);if(S.forEach(w=>{let $=w.toLowerCase();$!==w&&E.has($)&&fe(y[$],y[w])}),S.map(w=>{let $=w.toLowerCase();if(!($!==w&&E.has($)))return Uw(w,y[w])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{Tc()}catch(w){r.verbose&&console.warn("Error applying typography sequence",w)}if(y.spacing)try{$c()}catch(w){r.verbose&&console.warn("Error applying spacing sequence",w)}if(y.timing)try{jc()}catch(w){r.verbose&&console.warn("Error applying timing sequence",w)}Dc();let F=Bc();return F&&(r.reset=F),r};var ao=new Map,sI=null,qg=null,iI=null;function qc(e){e.batchAtomicCss&&(qg=e.batchAtomicCss),e.compoundCssClass&&(iI=e.compoundCssClass)}var aI=new Set;function Gw(e){try{let t=T();t&&(t.document=e)}catch{}e&&aI.add(e)}function Gg(){try{let e=T();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var lI={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 bn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Hc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function cI(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Hc(t)}function Ww(e,t,r){let n=(r?r+"":"")+e+":"+t,o=ao.get(n),s=o?null:bn(e);if(!o){let a=lI[e]||Hc(e),l=cI(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,ao.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||bn(e)}:${t}}`;return gt(i),o}var Hw=new WeakMap;function gt(e,t){let r=Kw(t);if(!r)return;let n=Hw.get(r);if(n||(n=new Set,Hw.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var qw=new WeakMap;function Kw(e){let t=e||Gg();if(!t||!t.head)return null;let r=qw.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return qw.set(t,o),sI=o,o}var uI=8;function Ir(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,s=[],i=[];for(let l in e){let c=e[l];c==null||c===!1||c===""||(typeof c=="object"?i.push([l,c]):qg?(n||(n=[]),n.push(l,String(c)),o++):s.push(Ww(l,String(c),r)))}if(n&&o>=uI){let l=n.join("\0"),c=qg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
|
|
36
|
-
`);for(let h=0;h<p.length;h++)p[h]&>(p[h])}s.push(d)}else if(n)for(let l=0;l<n.length;l+=2)s.push(Ww(n[l],n[l+1],r));let a=[];for(let l=0;l<i.length;l++)a.push(fI(i[l][0],i[l][1],r));return s.concat(a).join(" ").trim()}var Hg=new Map;function fI(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=ao.get(n);if(o){let f=Hg.get(o);if(f)for(let p=0;p<f.length;p++)gt(f[p]);return o}o=r?`_${r}_c${Hc(n)}`:`_c${Hc(n)}`;let s="",i=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,p)=>{let h="";for(let g in p){let m=p[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;h+=`${bn(g)}:${m};`}}h&&(f.length===0?s+=h:i.push({chain:f,body:h}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let p=f[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<f.length;h++){let g=f[h].split(",").map(y=>y.trim()),m=[];for(let y of p)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);p=m}return p.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let f=`${e}{.${o}{${s}}}`;u.push(f),gt(f)}for(let f of i){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),gt(h)}return Hg.set(o,u),ao.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),gt(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),gt(h)}return Hg.set(o,u),ao.set(n,o),o}function Ce(e){if(Kw(),typeof e=="string"){gt(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:bn(l);a+=`${c}:${i[l]};`}gt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:bn(s);gt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:bn(a);s+=`${c}:${l};`}}if(s&>(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Ce({[`${n} ${c}`]:o[c]});for(let c of a)Ce({[c]:{[n]:o[c]}})}}}}function _i(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${bn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return gt(`@keyframes ${e}{${r}}`),e}function Xw(){return ao.size}D();var Kg="http://www.w3.org/2000/svg",ki=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"]),dI=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 wi(e){return dI.has(e)||ki.has(e)}function Ci(e){return ki.has(e)}function xn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&wi(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),wi(o)&&!n.has(o)?o:"div"}var Yw={};function Si(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(Ci(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Kg)return r.createElementNS(Kg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function vn(e){let t=e.tag=xn(e),n=Ci(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Kg)?"svg:"+t:t,o=e?.context?.document||globalThis.document,s=Yw[n];if(s||(s=Yw[n]=Si(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?Si(t,e):s.cloneNode(!0);return t==="string"&&(i.nodeValue=e.text||""),i}var Je=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]),Xg={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},_n=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),Yg=new Set(["load","error","abort","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Jw=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ai=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Jg=new WeakMap,pI={passive:!0},hI={passive:!0,capture:!0},Zg=(e,t)=>Jw.has(e)?t?hI:pI:t||!1;function Qw(e){let t=Jg.get(e);return t||(t={handlers:new Map,installed:new Set},Jg.set(e,t)),t}function gI(e,t){let r=Qw(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let l=a.get(i);if(l){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(l(s),s.cancelBubble)return}}i=i.parentNode}},Zg(e,n))}function Gc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=Qw(n);gI(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Kc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Jg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function Zw(e){return Ai.has(e)&&!_n.has(e)}function Ei(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=l=>{s&&ke(s);try{let c=r.call(t,l,t,t.state,o);if(c&&typeof c.then=="function"){c.catch(u=>{t.error=u,console.error("[DOMQL] Async event error:",u)}).finally(()=>{s&&ve()});return}}catch(c){if(t.error=c,console.error("[DOMQL] Event error:",c),o?.strictMode)throw c}s&&ve()},a=Yg.has(e);if(!a&&Zw(e)){let l=o?.rootNode||n.ownerDocument?.documentElement;Gc(e,n,i,l)}else n.addEventListener(e,i,Zg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(!a&&Zw(e)){let l=o?.rootNode||n.ownerDocument?.documentElement;Kc(e,n,l)}else n.removeEventListener(e,i,Zg(e,!1))})}function eS(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function Oi(e,t,r){let n=eS(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=tS(n[i],s);a&&a!==t&&rS(e,a,r,new Set([t]))}}function tS(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function rS(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=eS(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=tS(o[a],i);l&&rS(e,l,r,n)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=nS(e[s],i):e[s]=i}}function nS(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=nS(o,s):r[n]=s}return r}Kn();function Ti(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(xr(()=>{if(e.state&&Se(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let s=e.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Je.has(o)||o==="state")continue;let s=e[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Pt(s,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return ft("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function wn(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&wn(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Ri(){wn(this)}D();D();var mI=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],yI=["none","forwards","backwards","both"],bI=["normal","reverse","alternate","alternate-reverse"],xI=["running","paused"],vI=e=>/^[\d.]+m?s$/.test(e),_I=0,oS=new Map,Qg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(k(e)){let o=JSON.stringify(e),s=oS.get(o);if(s)return s;let i=`smbls-anim-${_I++}`,a=_i(i,e);return oS.set(o,a),a}let n=r&&r[e];return k(n)?_i(e,n):e},wI=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:vI(d)?s.push(d):mI.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):bI.includes(d)?l=d:yI.includes(d)?c=d:xI.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},em={animation:(e,t)=>{if(C(e)&&e.includes(" ")){let r=wI(e,t);return{animationName:Qg(r.name||e,t),animationDuration:r.durations[0]||ht(t.animationDuration||"A").timing,animationDelay:r.durations[1]||ht(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Qg(e,t),animationDuration:ht(t.animationDuration||"A").timing,animationDelay:ht(t.animationDelay||"0s").timing,animationTimingFunction:Rt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Qg(e,t)}),animationDuration:e=>({animationDuration:ht(e).timing}),animationDelay:e=>({animationDelay:ht(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};D();var tm={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ne("height",e,t),width:(e,t)=>ne("width",e,t),boxSizing:e=>Ie(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("height",t),..._e("width",r||t)}},inlineSize:(e,t)=>ne("inlineSize",e,t),blockSize:(e,t)=>ne("blockSize",e,t),minWidth:(e,t)=>ne("minWidth",e,t),maxWidth:(e,t)=>ne("maxWidth",e,t),widthRange:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("minWidth",t),..._e("maxWidth",r||t)}},minHeight:(e,t)=>ne("minHeight",e,t),maxHeight:(e,t)=>ne("maxHeight",e,t),heightRange:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("minHeight",t),..._e("maxHeight",r||t)}},size:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ne("inlineSize",t),...ne("blockSize",r||t)}},minBlockSize:(e,t)=>ne("minBlockSize",e,t),minInlineSize:(e,t)=>ne("minInlineSize",e,t),maxBlockSize:(e,t)=>ne("maxBlockSize",e,t),maxInlineSize:(e,t)=>ne("maxInlineSize",e,t),minSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("minInlineSize",t),..._e("minBlockSize",r||t)}},maxSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("maxInlineSize",t),..._e("maxBlockSize",r||t)}},borderWidth:(e,t)=>ne("borderWidth",e,t),padding:(e,t)=>ne("padding",e,t),scrollPadding:(e,t)=>ne("scrollPadding",e,t),paddingInline:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("paddingInlineStart",t),..._e("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("paddingBlockStart",t),..._e("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ne("paddingBlockStart",e,t),paddingBottom:(e,t)=>ne("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ne("paddingInlineStart",e,t),paddingRight:(e,t)=>ne("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ne("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ne("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ne("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ne("paddingInlineEnd",e,t),margin:(e,t)=>ne("margin",e,t),marginInline:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("marginInlineStart",t),..._e("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!C(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{..._e("marginBlockStart",r),..._e("marginBlockEnd",n||r)}},marginTop:(e,t)=>ne("marginBlockStart",e,t),marginBottom:(e,t)=>ne("marginBlockEnd",e,t),marginLeft:(e,t)=>ne("marginInlineStart",e,t),marginRight:(e,t)=>ne("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ne("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ne("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ne("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ne("marginBlockEnd",e,t),gap:e=>({gap:Vg(e)}),columnGap:(e,t)=>Xt(t,"columnGap",e),rowGap:(e,t)=>Xt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Wc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Wc(e??t.round,t,"borderRadius")};var rm={fontSize:e=>Rc(e)||e,fontFamily:e=>({fontFamily:Oc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var nm={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var om={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Re(r,"k").k).join(" ")}},left:e=>Re(e,"left"),top:e=>Re(e,"top"),right:e=>Re(e,"right"),bottom:e=>Re(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Re(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Re(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};D();var mt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},sm={theme:(e,t)=>{if(e)return t.themeModifier?Tt(e,`@${t.themeModifier}`):Tt(e)},color:(e,t)=>{let r=mt(t);if(e)return{color:De(e,r)}},background:(e,t)=>{let r=mt(t);if(e)return C(e)&&e.includes("gradient")?{background:zc(e,r)}:{background:De(e,r)}},backgroundColor:(e,t)=>{let r=mt(t);if(e)return{backgroundColor:De(e,r)}},backgroundImage:(e,t,r,n)=>{let o=mt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:Bg(e,o)}},textStroke:e=>({WebkitTextStroke:Mg(e)}),outline:e=>({outline:cr(e)}),outlineOffset:(e,t)=>ne("outlineOffset",e,t),border:e=>({border:cr(e)}),borderColor:(e,t)=>{let r=mt(t);if(e)return{borderColor:De(e,r)}},borderTopColor:(e,t)=>{let r=mt(t);if(e)return{borderTopColor:De(e,r)}},borderBottomColor:(e,t)=>{let r=mt(t);if(e)return{borderBottomColor:De(e,r)}},borderLeftColor:(e,t)=>{let r=mt(t);if(e)return{borderLeftColor:De(e,r)}},borderRightColor:(e,t)=>{let r=mt(t);if(e)return{borderRightColor:De(e,r)}},borderLeft:e=>({borderLeft:cr(e)}),borderTop:e=>({borderTop:cr(e)}),borderRight:e=>({borderRight:cr(e)}),borderBottom:e=>({borderBottom:cr(e)}),shadow:(e,t)=>{let r=mt(t);if(e)return{boxShadow:Ng(e,r)}},boxShadow:(e,t)=>{if(!C(e))return;let[r,n]=e.split("!importan"),o=mt(t),s=n?" !important":"";return{boxShadow:Vc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Vc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:cr(e)})};var Pi={transition:e=>({transition:zg(e)}),transitionDuration:e=>({transitionDuration:Uc(e)}),transitionDelay:e=>({transitionDelay:Uc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};D();var im={flow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var am={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var Ae={...em,...tm,...rm,...nm,...om,...sm,...Pi,...im,...am};var Le=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);D();var SI=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,kI=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=rt(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(SI),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},sS=(e,t,r)=>({[e]:rt(t,r)}),$i=(e,t,r)=>{let n=`&${e}`,o=rt(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},lm=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},CI=(e,t,r)=>{let n=e.slice(1),o=lm(n,r);if(o===void 0&&(o=!!r[n]),!!o)return rt(t,r)},AI=(e,t,r)=>({[e]:t}),EI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=lm(n,r);s!==void 0&&(o=s)}if(o)return rt(t,r)},OI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=lm(n,r);s!==void 0&&(o=s)}if(!o)return rt(t,r)},cm=(e,t)=>rt(e,t),um={"@":kI,":":$i,"[":$i,"*":$i,"+":$i,"~":$i,"&":sS,">":sS,$:CI,"-":AI,".":EI,"!":OI};var fm=wr(),iS=(e,t,r)=>{let n=t?.context?.designSystem;n&&ke(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>ye(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=de(l,t);ye(o,cm(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=O(c)?c(t,t.state,t.context):c;u&&i(a,u),!fm&&k(o[a])&&(o[a].label=a)}else if(Ae[a]){let c=de(l,t);P(c)&&(c=c.reduce((d,f)=>ye(d,f),{}));let u=Ae[a](c,t,t.state,t.context);P(u)&&(u=u.reduce((d,f)=>ye(d,f),{})),u&&i(a,u),!fm&&k(o[a])&&(o[a].label=a)}else if(Le.has(a)){let c=de(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!fm&&k(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&ve()}},aS=(e,t)=>{let r={};for(let n in e){let o=um[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Ke(r[i],s[i]):r[i]=s[i])}}return r},rt=(e,t,r={unpack:!0})=>{let[n,o]=iS(e,t,r),s=aS(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return hs(n,s);n._selectors=s}return n},TI=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};D();var lS=e=>{if(k(e))return rt(e,e)},RI=(e,t)=>{let r=lS(e);return typeof t=="function"?t(r):Ir(r)};D();function fS(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function PI(...e){return fS(this,"warn",e),Qs.apply(this,e)}function $I(...e){return fS(this,"error",e),ln.apply(this,e)}var cS={update:Ti,remove:Ri,getDB:ni,getQuery:oi,getRootData:Ys,getChildren:Hs,getPath:qs,nextElement:ei,previousElement:ti,verbose:Qn,warn:PI,error:$I,variables:ri,spotByPath:Ws,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Xs,getRootState:Ks,getRootContext:Js,getContext:Zs,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},uS=new WeakMap;function II(e){if(!e)return cS;let t=uS.get(e);if(t)return t;t=Object.create(cS);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return uS.set(e,t),t}function Ii(e){let t=II(e.context);Object.setPrototypeOf(e,t)}D();Kn();var FI=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},yt=(e,t)=>{if(Se(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let l=s.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=i,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=t;for(let l=0;l<i.length;l++){if(a==null)return;a=a[i[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&Se(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t,i=Se(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,Se(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&FI(t,o,n[o])};var dS=function(e,t,r){return e.state=pm(e,t,r),e.state},pm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return yt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",jI(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=ut({value:o});return s.__element=e,t?.state&&(s.parent=t.state),yt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!Se(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=ut({...o});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),yt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return Se(o)?(o.__element=e,o):t?.state||{}};function dm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function jI(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),s=r.state?.parent;return o&&s?dm(s,o):s??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=e.slice(2);return s?dm(o,s):o??{}}let n=dm(r.state,e);if(n&&typeof n=="object"&&!Se(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var gS=(e,t)=>{if(!e)return hS;let r=LI(e,t);return!r||!r.state?hS:NI(r.state)},mS=()=>Ln()!=null,DI=128;function LI(e,t){let r=typeof t=="function"?t:typeof t=="string"?s=>!!s?.[t]:s=>!!s?.state,n=e,o=null;for(let s=0;s<DI&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var MI={get(e,t){return e[t]}},pS=new WeakMap,NI=e=>{let t=pS.get(e);return t||(t=new Proxy(e,MI),pS.set(e,t)),t},hS=new Proxy(Object.create(null),{get(){},has(){return!1}});D();var BI=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],Xc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},bS=["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"],mm=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,jr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||mm(t)||Xc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Xc,e)?Xc[e].includes(t):!1,ym=e=>{if(!C(e))return!1;let t=e.toLowerCase();return bS.includes(t)},VI=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])qe(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(qe(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let s=jr(e,o),i=ym(o);if(qe(t[o])&&(s||i)){let a=mm(o)||o;n[a]=t[o]}}return n},zI=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(t,t.state,t.context)}}return r},Fr=(e,t)=>{let r=e.call("exec",t,e);if(r)return C(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},hm=(e,t)=>{let r=(e.preSrc||"")+(Fr(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},gm={src:e=>hm(e,e.src),href:e=>Fr(e,e.href),action:e=>Fr(e,e.action),poster:e=>hm(e,e.poster),data:e=>Fr(e,e.data)},bm=e=>{let t=e.tag||"div",r={};for(let n in gm)if(e[n]!==void 0&&jr(t,n)){let o=gm[n](e);o!==void 0&&(r[n]=o)}return r},yS=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},UI=(e,t,r)=>{if(e==="$"){let o=yS(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=yS(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},WI=new Set(["$",".","!"]),HI=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(UI(a,l,u))return O(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!WI.has(i))continue;let a=e[s];if(!a||typeof a!="object")continue;let l=s.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let p in a[c])o("aria-"+p,a[c][p],i,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let p in a[c]){let h=p.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[c][p],i,l)}continue}let u=jr(t,c),d=ym(c);if(!u&&!d)continue;let f=mm(c)||c;o(f,a[c],i,l)}}return n};var qI=1;function co(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function GI(e){return e.charAt(2).toLowerCase()+e.slice(3)}function KI(e){return e.toLowerCase()}function wm(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=wm(o,s):r[n]=s}return r}function Pt(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${qI++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=Pt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}Oi(s,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=s.props&&typeof s.props=="object"?s.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=wm(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function c(g){for(let m in g){let y=g[m],b=s[m],v=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";v&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=wm(b,y):v&&a.has(m)?s[m]={...b,...y}:s[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let u=s.scope&&typeof s.scope=="object"?s.scope:null,d=t?.scope,f=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,p=d||f||null;if(e.scope!==void 0||u){let g={};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=fl(g,p)}else p&&(s.scope=p);if(e.if!==void 0&&(s.if=e.if),Ii(s),XI(s,t,e),s.if!=null){let g;if(typeof s.if=="function")try{g=s.if(s,s.state,s.context)}catch(m){if(g=!1,i.__ifError=m,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,m?.message||m)}}else g=s.if;i.__if=!!g}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&Sm(s,{if:e.if}),s;s.tag||(s.tag=xn(s)),Dr("Init",s,n);let h=s.node=vn(s);if(!h)return s;Dr("AttachNode",s,n),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),SS(s,n),Sm(s,e),km(s),_S(s),nF(s);try{kS(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
35
|
+
}`,so=(e,t,r)=>Object.keys(t).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:l,fontStretch:c}=t[o],u=Array.isArray(s)?s.map(d=>Ot(d,r)||d):Ot(s,r)||s;return lc(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),nw=e=>Object.keys(e).map(r=>so(r,e[r].value)),Sg=(e,t,r)=>{if(t&&t.isVariable){let s=Ot(t.url,r)||t.url;return di(s)?pi(s):dn(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return so(e,t,r).map(wg);let o=Array.isArray(t.url)?t.url.map(s=>Ot(s,r)||s):Ot(t.url,r)||t.url;return dn(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},cc=(e,t)=>Object.keys(e).map(n=>Sg(n,e[n].value,t));D();D();D();var hi={};K(hi,{animation:()=>vw,breakpoints:()=>bw,class:()=>Cw,color:()=>fw,devices:()=>xw,document:()=>T$,font:()=>sw,fontFace:()=>lw,fontFamily:()=>iw,fontFamilyTypes:()=>aw,gradient:()=>dw,grid:()=>kw,icons:()=>gw,media:()=>cw,reset:()=>P$,semanticIcons:()=>mw,sequence:()=>Rr,shadow:()=>hw,sizes:()=>Ew,spacing:()=>uw,svg:()=>_w,svgData:()=>ww,templates:()=>Sw,theme:()=>pw,timing:()=>yw,typography:()=>uc,unit:()=>ow,vars:()=>Aw});var Rr={"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 ow={default:"em"};var A$={browserDefault:16,base:16,type:"font-size",ratio:Rr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},uc=A$;var sw={};var iw={},aw={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},lw={};var cw={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var E$={base:uc.base,type:"spacing",ratio:Rr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},uw=E$;var fw={},dw={};var pw={};var hw={};var gw={},mw={};var O$={default:150,base:150,type:"timing",ratio:Rr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},yw=O$;var T$={};var bw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},xw={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 vw={};var _w={},ww={};var Sw={};var R$={},kw=R$;var Cw={};var P$={},Aw={},Ew={};var kg={},Cg={},fc=hi,dc={},pc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in fc){let t=e.toLowerCase();dc[t]=fc[e];let r=pc(t);r!==t&&(dc[r]=fc[e]),t!==e&&(dc[e]=fc[e])}var hc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:kg,cssMediaVars:Cg,CSS_VARS:kg,CSS_MEDIA_VARS:Cg,_scratchConfig:!0,...dc},Ow=ge(hc),ir={active:"0",0:hc},$$=e=>(qe(e)&&(ir.active=e),ir[e||ir.active]),gi=[],ke=e=>{e&&e._scratchConfig&&gi.push(e)},ve=()=>{gi.pop()},T=e=>gi.length?gi[gi.length-1]:ir[e||ir.active]||hc,Ag=e=>{if(k(e))return ir.active="1",ir[1]=fe(e,ge(Ow)),e},I$=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],F$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],j$=e=>{for(let t of F$){let r;for(let n of t){let o=e[n];k(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)k(e[n])&&(e[n]=r)}},Eg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:T(),o=ge(!r&&n&&n._scratchConfig?n:Ow);for(let i of I$)delete o[i];let s=fe(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,j$(s),e&&(ir[e]=s),s};var ar={"-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"},Og=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=Tw.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Pr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},Tw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),gc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=Tw.has(o)?"rem":o,i=(Mn(s)?1:r)+s;if(e===0)return i;let l="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),c=`${l}-ratio`;if(e>0){let u=ar[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=ar[e+1],d=Math.abs(e),f=Math.pow(Rw,2*d),p=ar[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},Tg=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,c=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},mc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},yc=(e,t)=>mc(e,t).map(r=>r/e),bc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=mc(o,s);c>16?u=[d,f,p]:u=[d,p],u.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,v=Tg(g+1,u,i,t),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:v,index:b};Og(x,t)})},Rw=1.618,D$=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(Rw,2*n);return Math.max(o,s)},et=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),l="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let c=0;c<=i;c++){let u=o[1]-c,d=ar[u],f=D$(u,r,n),p=~~(f/r*100)/100,h=l+d,g=gc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};Og(m,e),s&&bc(m,e)}return e},Pw=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=C(t)?t:ar[t],a=C(t)?Object.entries(ar).find(([,m])=>m===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,p="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=gc(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return Og(g,l),s&&bc(g,l),l},xc=(e="A",t)=>{let r=T(),{unit:n}=r;if(C(e)&&xe(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Nn.some(x=>e.includes(x))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let f=`--${t.varPrefix?t.varPrefix+"-":""}${li(t.type.replace(".","-"))}-`,p=e.toUpperCase(),h=p.slice(0,1)==="-"?"-":"",g=h?p.slice(1):p,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${f}${x}${m})`:x;if(g.includes("+")){let[x,_]=g.split("+"),S=`${y(x)} + ${y(_)}`;return h?`calc((${S}) * -1)`:`calc(${S})`}else if(g.includes("*")){let[x,_]=g.split("*"),S=`${y(x)} * ${y(_)}`;return h?`calc((${S}) * -1)`:`calc(${S})`}else if(g.includes("-")){let[x,_]=g.split("-"),S=`${y(x)} - ${y(_)}`;return h?`calc((${S}) * -1)`:`calc(${S})`}let b=r.sizes;if(b){let x=b[e]||b[e.toLowerCase()];if(x!==void 0)return h?`calc(${x} * -1)`:x}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${f}${g}${m})`;return h?`calc(${x} * -1)`:x}let v=o?o[g]:null;return v?s==="ms"||s==="s"?h+v.val+s:h+v.scaling+s:console.warn("can't find",o,g)},Rg=(e,t)=>{if(!["+","-","*","/",","].filter(s=>e.includes(s+" ")).length)return e;let n=/(\s*[+\-*/,]\s*)/;return e.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:xc(i,t)}).join("")},lr=(e,t,r,n)=>{if(typeof e!="string")return T().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=Pr(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=Rg(e,r):e=xc(e,r),{[t]:n?`${n}(${e})`:e}},Pg=(e,t)=>ar[e-t],vc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=Pg(t,o);return r[s]})};D();var $w=(e,t)=>{let r=T(),{cssVars:n}=r;re(e.value)||(n[e.var]=e.value)},_c=(e,t,r)=>{let n=T(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,u="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${u}-base`]=i,e[`${u}-unit`]=s;let d=`${u}-ratio`;e[d]=a;let[f,p,h]=yc(i,a);e[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${f/a})`,e[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,e[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${h/a})`},Iw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),$r=(e,t={})=>{let r=T(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=Iw.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||_c(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},pn=(e,t,r={})=>{let n=T(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=Iw.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),_c(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Mn(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};D();var jw=on(),mi=e=>{let t=T(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},L$=e=>{let t=e&&(e.default||e);if(!C(t))return jw&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,l]=i.split("=");return s[a]=l.replace(/['"]/g,""),s},{}):{}},M$=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},Fw=new Set,wc=(e,t)=>{let r=t&&t.default?t.default:t;if(!C(r))return jw&&!Fw.has(e)&&(Fw.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=L$(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,c=M$(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=V$(c),c},N$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",B$=new RegExp(`<(${N$})\\b([^>]*?)\\s*/>`,"g"),V$=e=>e.replace(B$,"<$1$2></$1>");var vi={};K(vi,{appendSVGSprite:()=>Lc,appendSvgIconsSprite:()=>Nc,applyDocument:()=>Dc,applyHeadings:()=>jg,applyReset:()=>Bc,applySpacingSequence:()=>$c,applyTimingSequence:()=>jc,applyTypographySequence:()=>Tc,checkIfBoxSize:()=>Pc,getColor:()=>me,getFontFamily:()=>Oc,getFontSizeByKey:()=>Rc,getMediaColor:()=>De,getMediaTheme:()=>Tt,getShadow:()=>Fc,getSpacingBasedOnRatio:()=>Xt,getSpacingByKey:()=>Pe,getTheme:()=>kc,getTimingByKey:()=>ht,getTimingFunction:()=>Rt,runThroughMedia:()=>Fg,setColor:()=>gn,setFont:()=>Ec,setFontFamily:()=>bi,setGradient:()=>mn,setMediaTheme:()=>Ac,setSVG:()=>xi,setShadow:()=>yn,setSvgIcon:()=>Mc,setTheme:()=>Cc,splitSpacedValue:()=>Ic});D();var me=(e,t,r)=>{let n=r||T();if(!C(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(P(e))[o,s,i]=e;else{let d=Tr(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?(t&&h[t]&&(h=h[t]),n.useVariable?`var(${h.var})`:h.value):e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;if(!u){let d=n.useVariable?`var(${c.var})`:c.value;if(s&&d){let f=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${d} ${f}%, transparent)`}return d}return i&&!c[i]&&(u=fn(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`},De=(e,t,r)=>{let n=r||T();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!C(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let o,s,i;if(P(e))o=e[0];else{let d=Tr(e);if(d){if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}else o=e}let{color:a,gradient:l}=n,c=a[o]||l[o],u=k(c);if(u&&c.value)return me(e,`@${t}`,r);if(u){if(n.useVariable&&c.var)return s||i?me(e,null,r):`var(${c.var})`;if(t)return me(e,`@${t}`,r);{let d={};for(let f in c){if(f.charCodeAt(0)!==64)continue;let p=n.media[f.slice(1)];if(!p)continue;let h="@media "+(p==="print"?`${p}`:`screen and ${p}`);d[h]=me(e,f,r)}return d}}else return n.verbose&&console.warn("Can't find color",e),e},gn=(e,t,r)=>{let n=T();if(C(e)&&xe(e)){let g=e.slice(2);if(e=me(g),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(C(y)||P(y)||k(y))&&(n.color[m[0]]=gn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,v=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=fn(b,x)),e=`rgba(${b}, ${v})`}else{let b=m[2],v=m[1]!==void 0?m[1]:"1";if(b)try{let x=or(m[0]);x&&x.length>=3?e=`rgba(${fn(x.slice(0,3).join(", "),b)}, ${v})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if(P(e)&&(e={"@light":e[0],"@dark":e[1]}),k(e)){let g={};for(let m in e)g[m]=gn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,v={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let _=x.slice(1),S=g[x],E=S&&(S.value||S);!E||typeof E!="string"||(v[_]=E,(_==="light"||b===void 0)&&(b=E))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in v){let _=`[data-theme="${x}"]`;if(n.cssMediaVars[_]||(n.cssMediaVars[_]={}),n.cssMediaVars[_][y]=v[x],x==="light"||x==="dark"){let S=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[S]||(n.cssMediaVars[S]={}),n.cssMediaVars[S][y]=v[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(C(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(C(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Tr(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(C(m)||P(m)||k(m))&&(n.color[g.name]=gn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=fn(b,g.tone));let v=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${v})`}}}let a=or(i),[l,c,u,d=1]=a,f=parseFloat(d.toFixed(2)),p=`${l}, ${c}, ${u}`,h=`rgba(${p}, ${f})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:p,alpha:f,value:h}},mn=(e,t,r)=>{let n=T();if(C(e)&&xe(e)&&(e=me(e.slice(2))),P(e))return{"@light":mn(e[0],t,"light"),"@dark":mn(e[0],t,"dark")};if(k(e)){let i={};for(let a in e)i[a]=mn(e[a],t,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=e.value||e),{var:s,value:e.value||e}};D();var z$=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"]),Dw=["color","Color","background","Background","fill","Fill","stroke","Stroke"],U$=e=>{for(let t=0;t<Dw.length;t++)if(e.includes(Dw[t]))return!0;return!1},Sc=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(a=>{let c=["color","Color","background","border"].some(u=>a.includes(u));return t[a]=c?me(e[a]):e[a]}),t},yi=e=>(e.value||(e.value=Sc(e)),e.value),kc=(e,t)=>{let r=T();if(r.useVariable)return Tt(e,t);let n=r.theme;if(C(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return yi(i);e=[o,s||t]}}if(re(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return yi(a[s]);if(i&&i[s])return yi(i[s]);if(l&&l[s])return yi(l[s])}else if(k(e))return Sc(e)},W$=(e,t,r)=>{if(k(t))e.variants.inverse.value=Sc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},H$=(e,t,r,n)=>{let o=kc(r);n[`&:${t}`]=o,k(r)&&!r.value&&(r.value=o)},q$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return H$(e,o,s,t),e}),e):void 0},G$=(e,t,r,n)=>{let o=kc(r);n[`@media (prefers-color-scheme: ${t})`]=o,k(r)&&!r.value&&(r.value=o)},K$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&G$(e,o,s,t),o==="inverse"&&W$(e,s,t),e}),e):void 0},X$=(e,t)=>{let r=T(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return C(i)?n[s]=r.theme[i]:yi(n[s]),e}),e):void 0},Cc=(e,t)=>{let r=T();if(r.useVariable)return Ac(e,t);let{state:n,media:o,helpers:s}=e,i=Sc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return q$(e,i),K$(e,i),X$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var $g=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&U$(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=me(f,`@${d}`);p!==void 0&&C(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!z$.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>re(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=$g(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=$g(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let p=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in e){if(l.has(m))continue;let y=e[m]?.[c];if(y===void 0)continue;let b=me(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let v=`[data-theme="${m}"]`;if(o[v]||(o[v]={}),o[v][p]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][p]=b}}g!==void 0&&(n[p]=g),i[c]=`var(${p})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ac=(e,t,r,n)=>{let o=T(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(re(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&re(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=$g(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=Ac(u,t,l,n||d)}else if(!a){let d=me(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?"-"+f.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=d),i[l]=`var(${g})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(C(e)&&xe(e)){let c=o.theme[e.slice(2)];return Tt(c,n)}return i},Ig=e=>{let t=T(),r={};for(let n in e){let o=n.slice(0,1);if(re(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Ig(e[n]):o==="."&&(r[`&${n}`]=Ig(e[n]))}else r[n]=e[n]}return r},Mw=(e,t)=>{let r=t.shift();return e[r]?Mw(e[r],t):e},Lw=(e,t)=>P(t)?Mw(e,t):C(t)&&e[t]?e[t]:e;var Tt=(e,t)=>{let r=T();if(C(e)&&xe(e)&&(e=Tt(e.slice(2))),!e||!C(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=P(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=Lw(s,o):s&&t&&(s=Lw(s,t)),Ig(s)};D();D();var Ec=(e,t)=>{let r=T(),n=`--font-${t}`;if(!e||P(e)&&!e[0])return;let o;if(e.isVariable){let s=Ot(e.url,r.files)||e.url;di(s)?o=pi(s):o=dn(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=so(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Ot(i,r.files)||i):Ot(e.url,r.files)||e.url;o=dn(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},Oc=(e,t)=>{let r=T(),{fontFamily:n}=r;return oo(t||n,e)},bi=(e,t)=>{let r=T(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),k(s)&&(s=cn(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};D();var Fg=e=>{let t=T(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;ye(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){ye(i,{sequence:{},scales:{},vars:{}}),et(i),pn(e,o);continue}ye(i,{sequence:{},scales:{},templates:{},vars:{}}),et(i),pn(e,o)}},jg=e=>{let t=T();if(e.h1Matches){let r=e.unit,n=vc(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Tc=()=>{let e=T(),{typography:t}=e;et(t),jg(t),$r(t),Fg(t)},Rc=e=>{let t=T(),{typography:r}=t;return lr(e,"fontSize",r)};D();D();var Y$=e=>{let r=T().spacing||{},n=parseFloat(e.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return et(o),o},J$=e=>{for(let t in e){let r=e[t];if(!(t.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u}=e;ye(r,{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),et(r),pn(e,t)}},Pc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},$c=()=>{let e=T(),{spacing:t}=e;et(t),$r(t),J$(t)},Z$=e=>{let t=T(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:et(e)},Pe=(e,t="padding",r,n)=>{let o=Z$(r);if(C(e)&&!n&&e.includes("(")){let i=Pr(e);n=i[0],e=i[1]}let s=n?[e]:cn(e);if(P(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>lr(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return lr(e,t,o,n)}},Xt=(e,t,r,n)=>{let o=T(),{spacing:s}=o,i=r||e[t];if(!n&&C(i)&&i.includes("(")){let a=Pr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=Y$(e);return Pe(i,t,a,n)}return Pe(i,t,s,n)},Ic=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Nn.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};D();var yn=(e,t,r,n)=>{let o=T();if(P(e))return{"@light":yn(e[0],t,"light"),"@dark":yn(e[1],t,"dark")};if(k(e)){let a={};for(let l in e)a[l]=yn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}C(e)&&!Kt.test(e)&&(e=un(e).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(l=l.trim(),!l)return"";if(l.startsWith("--"))return`var(${l})`;let c=me(l);if(sr(c))return c;if(/^\d/.test(l)||l==="0"||l.includes("px")||l.slice(-2)==="em"||l==="inset"||l==="none")return l;let u=Pe(l,"shadow");return u&&u.shadow?u.shadow:l}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},Fc=(e,t)=>{let r=T();if(t||(t=r.globalTheme),!C(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let[n]=P(e)?e:e.split(" "),s=r.shadow[n],i=k(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(s[t])return s[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&s.value)return s.value;if(i){let a={};for(let l in s){let c=r.media[l.slice(1)],u="@media "+(c==="print"?`${c}`:`screen and ${c}`);a[u]=s.value}return a}return r.verbose&&console.warn("Can't find color",e),e};D();var jc=()=>{let e=T(),{timing:t}=e;et(t),$r(t)},Rt=e=>{let t=T(),{timing:r}=t;return r[e]||r[ai(e)]||e},ht=(e,t="timing")=>{let r=T(),{timing:n}=r;return lr(e,t,n)};D();var Dc=()=>{let e=T(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ye(t,{theme:n.document,fontFamily:oo(r),fontSize:o.base,lineHeight:o.lineHeight})};D();var Lg={document:pe},xi=(e,t)=>{let r=T();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?wc(t,e):e},Lc=(e,t=Lg)=>{let r=T(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];Bw(n,t)},Mc=(e,t)=>{let r=T();return r.useIconSprite&&!r.semanticIcons?.[t]?xi(e,t):e},Nc=(e,t=Lg)=>{let r=T(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];Bw(n,t)},Dg=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},Q$=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},Nw=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},Bw=(e,t=Lg)=>{let r=T(),n=t.document||pe;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),mi(e);let o=n.querySelector("#svgSprite"),s=mi(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=Q$(n,s);if(o)if(a)Nw(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Dg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Dg(n);l&&l.nodeType&&(Nw(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Dg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};D();var Bc=(e={})=>{let t=T(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Tt("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Tt("document"):{};if(r.html&&Ke(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return fe(ye(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.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}})}};D();var eI=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),tI=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),rI=e=>eI.has(e),cr=e=>{let t=e+"";if(Kt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(xe(o))return`var(${o})`;if(rI(o)||/^\d/.test(o)||o==="0")return o;let s=me(o);if(sr(s))return s;let i=Pe(o,"border");return i&&i.border?i.border:o}).join(" ")},Mg=e=>Kt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(xe(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=me(t);return sr(r)?r:t}).join(" "),Ng=(e,t)=>Fc(e,t),Vc=(e,t)=>Kt.test(e)?e:un(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(xe(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=me(n);if(sr(o)){let i=De(n,t);return k(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Pe(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),zc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",a=un(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||tI.has(u)||u==="transparent"||Kt.test(u))return u;let d=me(u);return sr(d)?d:u}).join(" ")));return n+a.join(", ")+s},Bg=(e,t)=>{let r=T();return e.split(", ").map(n=>xe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?zc(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Tr(n)?`url(${n})`:n).join(" ")},Vg=e=>C(e)&&e.split(" ").map(t=>Pe(t,"gap").gap).join(" "),Vw=e=>{let t=e.split(" ");return t.length?t.map(r=>xe(r)?`var(${r})`:r.length<3||r.includes("ms")?ht(r).timing||r:Rt(r)?Rt(r):r).join(" "):e},Uc=(e,t,r)=>{if(C(e))return e.split(",").map(n=>ht(n).timing||n).join(",")},zg=e=>{let t=e.split(",");if(t.length)return t.map(Vw).join(",")};function _e(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let s;if(C(o)){if(o.includes("(")){let l=Pr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=Pc(e);!i&&a&&!n.ratio&&(o=Ic(o))}return n.ratio?Xt(r,e,o,s):Pe(o,e,void 0,s)}var ne=(e,t=null,r)=>_e(e,t,r,{ratio:!0}),Wc=(e,t,r)=>{if(C(e))return{borderRadius:e.split(" ").map((n,o)=>Xt(t,r,n)[r]).join(" ")}};D();var nI=(e,t)=>{let r=T(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},tt=e=>e,Ug={color:gn,gradient:mn,font:Ec,fontFamily:bi,fontfamily:bi,theme:Cc,icons:Mc,semanticIcons:tt,semanticicons:tt,svg:xi,svgData:tt,typography:tt,shadow:yn,spacing:tt,media:tt,grid:tt,class:tt,timing:tt,reset:tt,unit:tt,animation:tt,vars:nI,sizes:tt},zw=(e,t,r)=>{let n=T(),o=pc(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=Ug[o]||Ug[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},Uw=(e,t)=>{let r=T(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=k(t[s])||P(t[s])?1:0,l=k(t[i])||P(t[i])?1:0;return a-l}).forEach(s=>{try{return zw(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},Wg=(e,t)=>{let r=t||T();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(e&&e!=="auto")a.setAttribute("data-theme",e),e==="dark"||e==="light"?a.style.colorScheme=e:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let c=d=>{a.setAttribute("data-theme",d.matches?"dark":"light")},u=s.matchMedia("(prefers-color-scheme: dark)");if(c(u),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=c;try{u.addEventListener("change",c)}catch{u.addListener(c)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",l=o.styleSheets;for(let c=0;c<l.length;c++)try{let u=l[c].cssRules;for(let d=0;d<u.length;d++)if(u[d].selectorText===a){for(let f in r.cssVars)u[d].style.setProperty(f,r.cssVars[f]);return r}}catch{}}return r},oI={},io=(e,t=oI)=>{let r=t.config||T(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=Ag(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let v=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=v&&v.defaultView||(typeof window<"u"?window:null),_=v&&(r.themeRoot||v.documentElement);if(_&&typeof _.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")_.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?_.style.colorScheme=r.globalTheme:_.style.colorScheme="light dark";else if(x&&x.matchMedia){let $=te=>{_.setAttribute("data-theme",te.matches?"dark":"light")},q=x.matchMedia("(prefers-color-scheme: dark)");if($(q),_.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=$;try{q.addEventListener("change",$)}catch{q.addListener($)}}}else _.setAttribute("data-theme","light"),_.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let S=Object.keys(y),E=new Set(S);if(S.forEach(w=>{let $=w.toLowerCase();$!==w&&E.has($)&&fe(y[$],y[w])}),S.map(w=>{let $=w.toLowerCase();if(!($!==w&&E.has($)))return Uw(w,y[w])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{Tc()}catch(w){r.verbose&&console.warn("Error applying typography sequence",w)}if(y.spacing)try{$c()}catch(w){r.verbose&&console.warn("Error applying spacing sequence",w)}if(y.timing)try{jc()}catch(w){r.verbose&&console.warn("Error applying timing sequence",w)}Dc();let F=Bc();return F&&(r.reset=F),r};var ao=new Map,sI=null,qg=null,iI=null;function qc(e){e.batchAtomicCss&&(qg=e.batchAtomicCss),e.compoundCssClass&&(iI=e.compoundCssClass)}var aI=new Set;function Gw(e){try{let t=T();t&&(t.document=e)}catch{}e&&aI.add(e)}function Gg(){try{let e=T();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var lI={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 bn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Hc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function cI(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Hc(t)}function Ww(e,t,r){let n=(r?r+"":"")+e+":"+t,o=ao.get(n),s=o?null:bn(e);if(!o){let a=lI[e]||Hc(e),l=cI(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,ao.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||bn(e)}:${t}}`;return gt(i),o}var Hw=new WeakMap;function gt(e,t){let r=Kw(t);if(!r)return;let n=Hw.get(r);if(n||(n=new Set,Hw.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var qw=new WeakMap;function Kw(e){let t=e||Gg();if(!t||!t.head)return null;let r=qw.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return qw.set(t,o),sI=o,o}var uI=8;function Ir(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,s=[],i=[];for(let l in e){let c=e[l];c==null||c===!1||c===""||(typeof c=="object"?i.push([l,c]):qg?(n||(n=[]),n.push(l,String(c)),o++):s.push(Ww(l,String(c),r)))}if(n&&o>=uI){let l=n.join("\0"),c=qg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
|
|
36
|
+
`);for(let h=0;h<p.length;h++)p[h]&>(p[h])}s.push(d)}else if(n)for(let l=0;l<n.length;l+=2)s.push(Ww(n[l],n[l+1],r));let a=[];for(let l=0;l<i.length;l++)a.push(fI(i[l][0],i[l][1],r));return s.concat(a).join(" ").trim()}var Hg=new Map;function fI(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=ao.get(n);if(o){let f=Hg.get(o);if(f)for(let p=0;p<f.length;p++)gt(f[p]);return o}o=r?`_${r}_c${Hc(n)}`:`_c${Hc(n)}`;let s="",i=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,p)=>{let h="";for(let g in p){let m=p[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;h+=`${bn(g)}:${m};`}}h&&(f.length===0?s+=h:i.push({chain:f,body:h}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let p=f[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<f.length;h++){let g=f[h].split(",").map(y=>y.trim()),m=[];for(let y of p)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);p=m}return p.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let f=`${e}{.${o}{${s}}}`;u.push(f),gt(f)}for(let f of i){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),gt(h)}return Hg.set(o,u),ao.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),gt(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),gt(h)}return Hg.set(o,u),ao.set(n,o),o}function Ce(e){if(Kw(),typeof e=="string"){gt(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:bn(l);a+=`${c}:${i[l]};`}gt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:bn(s);gt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:bn(a);s+=`${c}:${l};`}}if(s&>(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Ce({[`${n} ${c}`]:o[c]});for(let c of a)Ce({[c]:{[n]:o[c]}})}}}}function _i(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${bn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return gt(`@keyframes ${e}{${r}}`),e}function Xw(){return ao.size}D();var Kg="http://www.w3.org/2000/svg",ki=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"]),dI=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 wi(e){return dI.has(e)||ki.has(e)}function Ci(e){return ki.has(e)}function xn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&wi(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),wi(o)&&!n.has(o)?o:"div"}var Yw={};function Si(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(Ci(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Kg)return r.createElementNS(Kg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function vn(e){let t=e.tag=xn(e),n=Ci(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Kg)?"svg:"+t:t,o=e?.context?.document||globalThis.document,s=Yw[n];if(s||(s=Yw[n]=Si(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?Si(t,e):s.cloneNode(!0);return t==="string"&&(i.nodeValue=e.text||""),i}var Je=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]),Xg={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},_n=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),Yg=new Set(["load","error","abort","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Jw=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ai=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Jg=new WeakMap,pI={passive:!0},hI={passive:!0,capture:!0},Zg=(e,t)=>Jw.has(e)?t?hI:pI:t||!1;function Qw(e){let t=Jg.get(e);return t||(t={handlers:new Map,installed:new Set},Jg.set(e,t)),t}function gI(e,t){let r=Qw(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let l=a.get(i);if(l){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(l(s),s.cancelBubble)return}}i=i.parentNode}},Zg(e,n))}function Gc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=Qw(n);gI(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Kc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Jg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function Zw(e){return Ai.has(e)&&!_n.has(e)}function Ei(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=l=>{s&&ke(s);try{let c=r.call(t,l,t,t.state,o);if(c&&typeof c.then=="function"){c.catch(u=>{t.error=u,console.error("[DOMQL] Async event error:",u)}).finally(()=>{s&&ve()});return}}catch(c){if(t.error=c,console.error("[DOMQL] Event error:",c),o?.strictMode)throw c}s&&ve()},a=Yg.has(e);if(!a&&Zw(e)){let l=o?.rootNode||n.ownerDocument?.documentElement;Gc(e,n,i,l)}else n.addEventListener(e,i,Zg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(!a&&Zw(e)){let l=o?.rootNode||n.ownerDocument?.documentElement;Kc(e,n,l)}else n.removeEventListener(e,i,Zg(e,!1))})}function eS(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function Oi(e,t,r){let n=eS(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=tS(n[i],s);a&&a!==t&&rS(e,a,r,new Set([t]))}}function tS(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function rS(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=eS(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=tS(o[a],i);l&&rS(e,l,r,n)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=nS(e[s],i):e[s]=i}}function nS(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=nS(o,s):r[n]=s}return r}Kn();function Ti(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(xr(()=>{if(e.state&&Se(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let s=e.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Je.has(o)||o==="state")continue;let s=e[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Pt(s,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return ft("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function wn(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&wn(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Ri(){wn(this)}D();D();var mI=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],yI=["none","forwards","backwards","both"],bI=["normal","reverse","alternate","alternate-reverse"],xI=["running","paused"],vI=e=>/^[\d.]+m?s$/.test(e),_I=0,oS=new Map,Qg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(k(e)){let o=JSON.stringify(e),s=oS.get(o);if(s)return s;let i=`smbls-anim-${_I++}`,a=_i(i,e);return oS.set(o,a),a}let n=r&&r[e];return k(n)?_i(e,n):e},wI=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:vI(d)?s.push(d):mI.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):bI.includes(d)?l=d:yI.includes(d)?c=d:xI.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},em={animation:(e,t)=>{if(C(e)&&e.includes(" ")){let r=wI(e,t);return{animationName:Qg(r.name||e,t),animationDuration:r.durations[0]||ht(t.animationDuration||"A").timing,animationDelay:r.durations[1]||ht(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Qg(e,t),animationDuration:ht(t.animationDuration||"A").timing,animationDelay:ht(t.animationDelay||"0s").timing,animationTimingFunction:Rt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Qg(e,t)}),animationDuration:e=>({animationDuration:ht(e).timing}),animationDelay:e=>({animationDelay:ht(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};D();var tm={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ne("height",e,t),width:(e,t)=>ne("width",e,t),boxSizing:e=>Ie(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("height",t),..._e("width",r||t)}},inlineSize:(e,t)=>ne("inlineSize",e,t),blockSize:(e,t)=>ne("blockSize",e,t),minWidth:(e,t)=>ne("minWidth",e,t),maxWidth:(e,t)=>ne("maxWidth",e,t),widthRange:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("minWidth",t),..._e("maxWidth",r||t)}},minHeight:(e,t)=>ne("minHeight",e,t),maxHeight:(e,t)=>ne("maxHeight",e,t),heightRange:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("minHeight",t),..._e("maxHeight",r||t)}},size:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{...ne("inlineSize",t),...ne("blockSize",r||t)}},minBlockSize:(e,t)=>ne("minBlockSize",e,t),minInlineSize:(e,t)=>ne("minInlineSize",e,t),maxBlockSize:(e,t)=>ne("maxBlockSize",e,t),maxInlineSize:(e,t)=>ne("maxInlineSize",e,t),minSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("minInlineSize",t),..._e("minBlockSize",r||t)}},maxSize:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("maxInlineSize",t),..._e("maxBlockSize",r||t)}},borderWidth:(e,t)=>ne("borderWidth",e,t),padding:(e,t)=>ne("padding",e,t),scrollPadding:(e,t)=>ne("scrollPadding",e,t),paddingInline:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("paddingInlineStart",t),..._e("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("paddingBlockStart",t),..._e("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ne("paddingBlockStart",e,t),paddingBottom:(e,t)=>ne("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ne("paddingInlineStart",e,t),paddingRight:(e,t)=>ne("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ne("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ne("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ne("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ne("paddingInlineEnd",e,t),margin:(e,t)=>ne("margin",e,t),marginInline:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{..._e("marginInlineStart",t),..._e("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!C(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{..._e("marginBlockStart",r),..._e("marginBlockEnd",n||r)}},marginTop:(e,t)=>ne("marginBlockStart",e,t),marginBottom:(e,t)=>ne("marginBlockEnd",e,t),marginLeft:(e,t)=>ne("marginInlineStart",e,t),marginRight:(e,t)=>ne("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ne("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ne("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ne("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ne("marginBlockEnd",e,t),gap:e=>({gap:Vg(e)}),columnGap:(e,t)=>Xt(t,"columnGap",e),rowGap:(e,t)=>Xt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!C(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Wc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Wc(e??t.round,t,"borderRadius")};var rm={fontSize:e=>Rc(e)||e,fontFamily:e=>({fontFamily:Oc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var nm={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var om={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Pe(r,"k").k).join(" ")}},left:e=>Pe(e,"left"),top:e=>Pe(e,"top"),right:e=>Pe(e,"right"),bottom:e=>Pe(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Pe(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Pe(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};D();var mt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},sm={theme:(e,t)=>{if(e)return t.themeModifier?Tt(e,`@${t.themeModifier}`):Tt(e)},color:(e,t)=>{let r=mt(t);if(e)return{color:De(e,r)}},background:(e,t)=>{let r=mt(t);if(e)return C(e)&&e.includes("gradient")?{background:zc(e,r)}:{background:De(e,r)}},backgroundColor:(e,t)=>{let r=mt(t);if(e)return{backgroundColor:De(e,r)}},backgroundImage:(e,t,r,n)=>{let o=mt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:Bg(e,o)}},textStroke:e=>({WebkitTextStroke:Mg(e)}),outline:e=>({outline:cr(e)}),outlineOffset:(e,t)=>ne("outlineOffset",e,t),border:e=>({border:cr(e)}),borderColor:(e,t)=>{let r=mt(t);if(e)return{borderColor:De(e,r)}},borderTopColor:(e,t)=>{let r=mt(t);if(e)return{borderTopColor:De(e,r)}},borderBottomColor:(e,t)=>{let r=mt(t);if(e)return{borderBottomColor:De(e,r)}},borderLeftColor:(e,t)=>{let r=mt(t);if(e)return{borderLeftColor:De(e,r)}},borderRightColor:(e,t)=>{let r=mt(t);if(e)return{borderRightColor:De(e,r)}},borderLeft:e=>({borderLeft:cr(e)}),borderTop:e=>({borderTop:cr(e)}),borderRight:e=>({borderRight:cr(e)}),borderBottom:e=>({borderBottom:cr(e)}),shadow:(e,t)=>{let r=mt(t);if(e)return{boxShadow:Ng(e,r)}},boxShadow:(e,t)=>{if(!C(e))return;let[r,n]=e.split("!importan"),o=mt(t),s=n?" !important":"";return{boxShadow:Vc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Vc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:cr(e)})};var Pi={transition:e=>({transition:zg(e)}),transitionDuration:e=>({transitionDuration:Uc(e)}),transitionDelay:e=>({transitionDelay:Uc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};D();var im={flow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var am={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var Ae={...em,...tm,...rm,...nm,...om,...sm,...Pi,...im,...am};var Le=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);D();var SI=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,kI=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=rt(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(SI),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},sS=(e,t,r)=>({[e]:rt(t,r)}),$i=(e,t,r)=>{let n=`&${e}`,o=rt(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},lm=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},CI=(e,t,r)=>{let n=e.slice(1),o=lm(n,r);if(o===void 0&&(o=!!r[n]),!!o)return rt(t,r)},AI=(e,t,r)=>({[e]:t}),EI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=lm(n,r);s!==void 0&&(o=s)}if(o)return rt(t,r)},OI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=lm(n,r);s!==void 0&&(o=s)}if(!o)return rt(t,r)},cm=(e,t)=>rt(e,t),um={"@":kI,":":$i,"[":$i,"*":$i,"+":$i,"~":$i,"&":sS,">":sS,$:CI,"-":AI,".":EI,"!":OI};var fm=wr(),iS=(e,t,r)=>{let n=t?.context?.designSystem;n&&ke(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>ye(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=de(l,t);ye(o,cm(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=O(c)?c(t,t.state,t.context):c;u&&i(a,u),!fm&&k(o[a])&&(o[a].label=a)}else if(Ae[a]){let c=de(l,t);P(c)&&(c=c.reduce((d,f)=>ye(d,f),{}));let u=Ae[a](c,t,t.state,t.context);P(u)&&(u=u.reduce((d,f)=>ye(d,f),{})),u&&i(a,u),!fm&&k(o[a])&&(o[a].label=a)}else if(Le.has(a)){let c=de(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!fm&&k(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&ve()}},aS=(e,t)=>{let r={};for(let n in e){let o=um[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Ke(r[i],s[i]):r[i]=s[i])}}return r},rt=(e,t,r={unpack:!0})=>{let[n,o]=iS(e,t,r),s=aS(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return hs(n,s);n._selectors=s}return n},TI=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};D();var lS=e=>{if(k(e))return rt(e,e)},RI=(e,t)=>{let r=lS(e);return typeof t=="function"?t(r):Ir(r)};D();function fS(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function PI(...e){return fS(this,"warn",e),Qs.apply(this,e)}function $I(...e){return fS(this,"error",e),ln.apply(this,e)}var cS={update:Ti,remove:Ri,getDB:ni,getQuery:oi,getRootData:Ys,getChildren:Hs,getPath:qs,nextElement:ei,previousElement:ti,verbose:Qn,warn:PI,error:$I,variables:ri,spotByPath:Ws,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Xs,getRootState:Ks,getRootContext:Js,getContext:Zs,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},uS=new WeakMap;function II(e){if(!e)return cS;let t=uS.get(e);if(t)return t;t=Object.create(cS);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return uS.set(e,t),t}function Ii(e){let t=II(e.context);Object.setPrototypeOf(e,t)}D();Kn();var FI=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},yt=(e,t)=>{if(Se(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let l=s.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=i,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=t;for(let l=0;l<i.length;l++){if(a==null)return;a=a[i[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&Se(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t,i=Se(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,Se(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&FI(t,o,n[o])};var dS=function(e,t,r){return e.state=pm(e,t,r),e.state},pm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return yt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",jI(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=ut({value:o});return s.__element=e,t?.state&&(s.parent=t.state),yt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!Se(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=ut({...o});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),yt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return Se(o)?(o.__element=e,o):t?.state||{}};function dm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function jI(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),s=r.state?.parent;return o&&s?dm(s,o):s??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=e.slice(2);return s?dm(o,s):o??{}}let n=dm(r.state,e);if(n&&typeof n=="object"&&!Se(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var gS=(e,t)=>{if(!e)return hS;let r=LI(e,t);return!r||!r.state?hS:NI(r.state)},mS=()=>Ln()!=null,DI=128;function LI(e,t){let r=typeof t=="function"?t:typeof t=="string"?s=>!!s?.[t]:s=>!!s?.state,n=e,o=null;for(let s=0;s<DI&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var MI={get(e,t){return e[t]}},pS=new WeakMap,NI=e=>{let t=pS.get(e);return t||(t=new Proxy(e,MI),pS.set(e,t)),t},hS=new Proxy(Object.create(null),{get(){},has(){return!1}});D();var BI=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],Xc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},bS=["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"],mm=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,jr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||mm(t)||Xc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Xc,e)?Xc[e].includes(t):!1,ym=e=>{if(!C(e))return!1;let t=e.toLowerCase();return bS.includes(t)},VI=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])qe(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(qe(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let s=jr(e,o),i=ym(o);if(qe(t[o])&&(s||i)){let a=mm(o)||o;n[a]=t[o]}}return n},zI=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(t,t.state,t.context)}}return r},Fr=(e,t)=>{let r=e.call("exec",t,e);if(r)return C(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},hm=(e,t)=>{let r=(e.preSrc||"")+(Fr(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},gm={src:e=>hm(e,e.src),href:e=>Fr(e,e.href),action:e=>Fr(e,e.action),poster:e=>hm(e,e.poster),data:e=>Fr(e,e.data)},bm=e=>{let t=e.tag||"div",r={};for(let n in gm)if(e[n]!==void 0&&jr(t,n)){let o=gm[n](e);o!==void 0&&(r[n]=o)}return r},yS=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},UI=(e,t,r)=>{if(e==="$"){let o=yS(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=yS(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},WI=new Set(["$",".","!"]),HI=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(UI(a,l,u))return O(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!WI.has(i))continue;let a=e[s];if(!a||typeof a!="object")continue;let l=s.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let p in a[c])o("aria-"+p,a[c][p],i,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let p in a[c]){let h=p.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[c][p],i,l)}continue}let u=jr(t,c),d=ym(c);if(!u&&!d)continue;let f=mm(c)||c;o(f,a[c],i,l)}}return n};var qI=1;function co(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function GI(e){return e.charAt(2).toLowerCase()+e.slice(3)}function KI(e){return e.toLowerCase()}function wm(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=wm(o,s):r[n]=s}return r}function Pt(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${qI++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=Pt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}Oi(s,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=s.props&&typeof s.props=="object"?s.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=wm(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function c(g){for(let m in g){let y=g[m],b=s[m],v=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";v&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=wm(b,y):v&&a.has(m)?s[m]={...b,...y}:s[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let u=s.scope&&typeof s.scope=="object"?s.scope:null,d=t?.scope,f=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,p=d||f||null;if(e.scope!==void 0||u){let g={};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=fl(g,p)}else p&&(s.scope=p);if(e.if!==void 0&&(s.if=e.if),Ii(s),XI(s,t,e),s.if!=null){let g;if(typeof s.if=="function")try{g=s.if(s,s.state,s.context)}catch(m){if(g=!1,i.__ifError=m,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,m?.message||m)}}else g=s.if;i.__if=!!g}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&Sm(s,{if:e.if}),s;s.tag||(s.tag=xn(s)),Dr("Init",s,n);let h=s.node=vn(s);if(!h)return s;Dr("AttachNode",s,n),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),SS(s,n),Sm(s,e),km(s),_S(s),nF(s);try{kS(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
37
37
|
`+g.stack.split(`
|
|
38
38
|
`).slice(0,6).join(`
|
|
39
39
|
`):"")}}if(Em(s,t,o),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&ke(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&ve()}}if(Dr("Create",s,n),Dr("Complete",s,n),Dr("Render",s,n),Dr("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ke(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&ve()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function XI(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&e.context?.state,i=r.state!==void 0&&!s?r.state:e.state&&!Se(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,yt(e,e.state);else if(e.context?.state){let a=e.context.state,l={...a},c=e.context?.polyglot;if(c?.translations){let u=a.lang||c.defaultLang||"en",d=c.translations[u];if(d&&typeof d=="object")for(let p in d)l[p]===void 0&&(l[p]=d[p]);let f=new Set(c.languages||[]);for(let p in c.translations)!f.has(p)&&l[p]===void 0&&(l[p]=c.translations[p])}e.state=Se(l)?l:ut(l),e.state.__element=e,e.state.root=e.state,yt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),yt(e,e.state);return}if(typeof i=="string"){if(e.state=vS(i,t),e.state&&typeof e.state=="object"&&!Se(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}yt(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=ut(a||{})}else e.state=ut({...i});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,yt(e,e.state)}function xm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function vS(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?xm(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?xm(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=xm(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[e]!==void 0)return s[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function YI(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||Je.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||co(a)||Ae[a]||Le&&Le.has(a)||jr(r,a)||o.push({prop:a,fn:e[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:l}=o[i];t.__exec[a]=l,Object.defineProperty(e,a,{get(){n&&ke(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&ve()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Sm(e,t){let r=e.__ref;if(YI(e),typeof e.text=="function"){let o=e.text,s=we(()=>{if(!r.contentManaged)try{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=Qr.call(e,i,e.state)),e.tag==="string"?e.node.nodeValue=i:e.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,s=we(()=>{if(r.contentManaged)return;let i=Qr.call(e,o,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Je.has(o)&&!co(o)&&!r.__exec[o]){if(Ae[o]){let s=e[o],i=o,a,l=we(()=>{let c=e.context?.designSystem;c&&ke(c);try{let u=s(e,e.state,e.context),d=Ae[i](u,e,e.state,e.context);if(d&&e.node){let f=xS(d);(f===null||f!==a)&&(a=f,lo(e.node,d))}else e.node&&(i==="show"||i==="hide")&&(a=void 0,e.node.style.display="")}finally{c&&ve()}},{depth:r.path.length});r.__effects.push(l),r.__exec[o]=s}else if(Le&&Le.has(o)){let s=e[o],i=o,a,l=we(()=>{let c=e.context?.designSystem;c&&ke(c);try{let u=s(e,e.state,e.context);if(e.node)if(u!=null){let d=i+":"+String(u);d!==a&&(a=d,lo(e.node,{[i]:u}))}else a=void 0,e.node.style[i]=""}finally{c&&ve()}},{depth:r.path.length});r.__effects.push(l),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=we(()=>{let i=e.context?.designSystem;i&&ke(i);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{i&&ve()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=we(()=>{try{let i=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let l=typeof document<"u"&&document.activeElement===e.node,c=l&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,u=l&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,l&&c!=null&&u!=null)try{e.node.setSelectionRange(c,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof t.style=="function"){let o=t.style,s,i=we(()=>{let a=o(e,e.state,e.context),l=xS(a);(l===null||l!==s)&&(s=l,lo(e.node,a))},{depth:r.path.length});r.__effects.push(i),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let s=e.style[o];if(typeof s!="function")continue;let i,a=we(()=>{try{let l=s(e,e.state,e.context);if(e.node){let c=o+":"+String(l);c!==i&&(i=c,lo(e.node,{[o]:l}))}}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let s=e.attr[o],i=o,a=we(()=>{try{let l=s(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=we(()=>{try{let l=s(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let s=e.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),l=we(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(a):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(a,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(l)}let n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=we(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof t.if=="function"){let o=t.if,s=we(()=>{let i;try{i=o(e,e.state,e.context)}catch(l){if(i=!1,r.__ifError=l,typeof console<"u"&&console.warn){let c=e.key||e.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${c} \u2014 treating as false:`,l?.message||l)}return}let a=r.__if;if(r.__if=!!i,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=vn(e));let l=e.parent,c=l?.node;if(c&&e.node){let u=null,d=Object.keys(l),f=d.indexOf(e.key);for(let p=f+1;p<d.length;p++){let h=l[d[p]];if(h?.node?.parentNode===c){u=h.node;break}}u?c.insertBefore(e.node,u):c.appendChild(e.node)}else Em(e,e.parent);km(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=xn(e)),Dr("Init",e,{}),e.node||(e.node=vn(e)),!e.node)return;Dr("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id),SS(e,{});let l=t.if;delete t.if;try{Sm(e,t)}finally{t.if=l}km(e),_S(e),kS(e,{}),Em(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Je.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||co(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(jr(a,o)&&!Ae[o]&&!(Le&&Le.has(o))){let l=o,c=we(()=>{try{let u=i(e,e.state,e.context);e.node?.setAttribute&&(u==null||u===!1?e.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in e.node?e.node.src=u:e.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(c)}}QI(e),eF(e)}function km(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),rF(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&lo(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function xS(e){if(e==null||typeof e!="object")return"s:"+String(e);try{return"o:"+JSON.stringify(e)}catch{return null}}function lo(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,u=>"-"+u.toLowerCase()),a=s.trim(),l=/\s*!important\s*$/.test(a),c=a.replace(/\s*!important\s*$/,"");e.style.setProperty(i,c,l?"important":"")}catch{}}}r&&ZI(e,r)}var JI=0;function ZI(e,t){let r=`_ds${JI++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in t){let a="."+r,l=i.replace(/&/g,a).split(",").map(u=>{let d=u.trim();return d.includes(a)?d:a+d}).join(", "),c=t[i];if(typeof c=="object"){let u="",d="";for(let f in c){let p=c[f];if(typeof p=="object"){let h=f.includes("&")?l.split(", ").map(m=>f.replace(/&/g,m)).join(", "):l.split(", ").map(m=>`${m} ${f}`).join(", "),g="";for(let m in p)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${p[m]};`;d+=`${h} { ${g} }
|
|
@@ -83,7 +83,7 @@ ${i}`}var my=null;function su(e){my=e}var $t={structuralHash:ru,deepEqual:nu,mer
|
|
|
83
83
|
`)){h++;break}h++}o.push([f,h]),s=h;continue}s++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},nb=(e,t,r)=>{let n=String(e).trimStart();if(/^(export|import)\s/.test(n))return e;try{return r.window.eval(`(${e})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),l=null;if(i){let c=String(e).trim();if(/^function[\s(]/.test(c))try{l=r.window.eval("(async "+c+")")}catch{}}else if(a){let c=String(e),u=a[1];for(let d=0;d<5;d++){let f=hA(c,u);if(!f||f===c)break;c=f;try{l=r.window.eval("("+c+")");break}catch(p){let h=/Identifier '([^']+)' has already been declared/.exec(p&&p.message||String(p));if(!h||h[1]!==u)break}}}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+s+`.
|
|
84
84
|
First 200 chars of source: `+String(e).slice(0,200)),e)}},xx=(e,t={},r={window:{eval:pA}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(R(a))No(a)?s[i]=nb(a,`"${i}"`,r):s[i]=a;else if(W(a)){let l=s[i]=[];for(let c=0;c<a.length;c++){let u=a[c];if(R(u))l.push(No(u)?nb(u,`array index ${c} (prop "${i}")`,r):u);else if(M(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(M(a)){let l=s[i]&&typeof s[i]=="object"&&!W(s[i])?s[i]:s[i]={};n.push([a,l])}else s[i]=a}}return t},gA="Set",mA="Map",yA=e=>!e||typeof e!="object"?e:e.__type===gA&&Array.isArray(e.values)?new Set(e.values):e.__type===mA&&Array.isArray(e.entries)?new Map(e.entries):e,vx=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];R(o)&&No(o)?r.push([n,o]):t[n]=yA(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
85
85
|
`);t[n]=le.eval(`(function(__gs__) { ${s}
|
|
86
|
-
return (${o}); })`)(t)}catch{try{t[n]=le.eval(`(${o})`)}catch{t[n]=o}}return t},_x=(e,t={verbose:!0})=>{try{return e?le.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},wx=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),uf=e=>{for(let t in e)return!1;return!0},Sx=e=>M(e)&&uf(e),kx=()=>Object.create(null),fd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&Ur(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},dd=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Ur(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},In=(e,t,r={},n=new WeakMap)=>{if(!ce(e)||!ce(t)||at(e)||at(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&Ur(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];at(c)?e[a]=c:ce(l)&&ce(c)?e[a]=In(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ff=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!ff(e[i],t[i],r))return!1}return!0},bA=new Set(["node","__ref"]),Cx=(e,t,r=bA)=>{if(e===t)return!0;if(!ce(e)||!ce(t)||at(e)||at(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(at(c)||at(u)){if(c!==u)return!1}else if(ce(c)&&ce(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},Ax=(e,t)=>{if(t==null)return e;if(Zt(t)("string","number"))delete e[t];else if(W(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},df=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=df(e[r]));return t},Ex=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},Ox=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},Tx=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},Rx=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},Px=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(tb==="test"||tb==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},$x=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},Ix=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),va,pd,hd,Fx=X(()=>{"use strict";Gr(),va=(function(){let e=0;function t(){return e++,e}return t})(),pd=va,hd=(e,t,r)=>(Ne(r,e)||r||e.key||va()).toString()}),Dt,jx,qo,pf,Dx,Lx,Mx,gd,Nx,Qa,wE=X(()=>{"use strict";Dt="production",jx=Dt,qo=(e=Dt)=>e==="production",pf=(e=Dt)=>e==="testing"||e==="test",Dx=pf,Lx=(e=Dt)=>e==="staging",Mx=(e=Dt)=>e==="local",gd=(e=Dt)=>e==="development"||e==="dev"||e==="local",Nx=(e,t=Dt)=>t[e],Qa=(e=Dt)=>!qo(e)});function SE(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function kE(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Bx,Vx,xA,zx,el,za,Ua,tl=X(()=>{"use strict";Bx=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Vx=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},xA=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,zx=e=>xA.test(e),el=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},za=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Ua=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}}),Ux,SD=X(()=>{"use strict";je(),Gr(),Ux=(e,t)=>{let{__ref:r}=e,n=e.if;if(L(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?Ne(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),Wx,Hx,kD=X(()=>{"use strict";Wx=(e,...t)=>{e&&t.map(r=>console.log(r))},Hx=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function CE(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function AE(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var qx,Gx,Kx,Xx,CD=X(()=>{"use strict";je(),td(),qx=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Gx=(e,t,r=365)=>{if(Nt(be)||Nt(be.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;be.cookie=`${e}=${t};${o};path=/`},Kx=e=>{if(Nt(be)||Nt(be.cookie))return;let t=`${e}=`,r=decodeURIComponent(be.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Xx=e=>{Nt(be)||Nt(be.cookie)||(be.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Wa,Yx,Jx,EE=X(()=>{"use strict";Wa={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"])},Yx=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"]),Jx=e=>Wa.body.has(e)}),Lu,ob,Ha,md,Qe,Zx,hf,_a,Qx,wa,gf,mf,Sa,yf,Bo,vA,Jt,sb,ka,Ca,ev,Aa,tv,rv,bf,xf,vf,_f,wf,Sf,nv,ov=X(()=>{"use strict";Ya(),PE(),Gr(),je(),Lu="production",ob=e=>e.sourcemap!==!1&&Lu!=="production",Ha=e=>{if(e.includes("+"))return e.split("+").filter(On);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!On(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},md=(e,t,r)=>{let n=[],o=Ha(r);o&&(n=[...o]);let s=e.extends;return s&&(n=W(s)?[...n,...s]:[...n,s]),n},Qe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Zx=(e,t)=>{if(!e)return t;let{extends:r}=t,n=W(r)?r:[r],o=W(e)?e:[e];return{...t,extends:Na(o,n)}},hf=()=>Math.random().toString(36).substring(2),_a={},Qx={},wa=e=>_a[e.__hash],gf=(e,t)=>{let r=hf();return R(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(_a[r]=t),t},mf=(e,t)=>e.__hash?t.concat(wa(e)):gf(e,t),Sa=(e,t,r,n=new Set,o,s)=>{for(let i of e)W(i)?Sa(i,t,r,n,o,s):Bo(i,t,r,n,o,void 0,s);return t},yf=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Bo(a,t,r,n,o,s,i),t},Bo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(W(e))return Sa(e,t,r,n,o,i);let a=s;return R(e)?(a=e,e=Ca(e,r)):i&&M(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?yf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},vA=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Jt=(e,t,r,n,o)=>{t=ct(t);for(let s in t){if(vA.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?M(a)&&!W(a)?(r[s]=r[s]||{},sb(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(M(i)&&M(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];On(s)?e[s]=Jt(i,a,l,n,c):Jt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(W(i)&&W(a))e[s]=i.concat(a);else if(W(i)&&M(a)){let l=Jt({},i);e[s]=Jt(l,a)}}}}return e},sb=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];M(s)&&!W(s)?(e[o]=e[o]||{},sb(e[o],s,r,n)):e[o]=r}}},ka=(e,t,r)=>e.reduce((n,o,s)=>{let i=ct(o),a=r?r[s]:void 0;return Jt(n,i,t,a)},{}),Ca=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(R(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Lu==="test"||Lu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},ev=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),Aa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return wa(e)||[];let o=Bo(e,[],t,new Set,r,void 0,n);return r?o:mf(e,o)},tv=(e,t)=>{if(!e)return t;let r=W(e)?e:[e];return Na(r,t)},rv=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(On(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},bf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Qe([l,...a],e):Qe(e.extends,e)}else Qe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Qe(i,e):Qe(e.extends,e)}else Qe(e.extends,e);return xf(e,t,r),vf(e,t,r),_f(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),Ba(n.__extends)},xf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},vf=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},_f=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Qe(o,e),n.__extends},wf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=ob(r),a=i?[...n.__extends]:null,l=Ba(n.__extends.map((c,u)=>Ca(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&M(p)&&R(h)&&c.set(p,h)}let u=[],d=Aa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=Aa(l,o);n.__extendsStack=c}return n.__extendsStack},Sf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(ob(r)){let s={},i=n.__extendsNames||[],a=ka(o,s,i),l={};Jt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ka(o);Jt(e,s)}return e},nv=(e,t,r={})=>(bf(e,t,r),wf(e,t,r),Sf(e,t,r),e)});function OE(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function TE(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function RE(e,t,r){let{context:n}=t||{},[o]=Ha(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var On,PE=X(()=>{"use strict";ov(),je(),On=e=>{if(!R(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function AD(e,t){let{props:r,on:n}=t,o=Ja(e.split("on")[1]),s=n[o],i=r[e];L(s)?n[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:n[o]=i}var ED=X(()=>{"use strict";ld(),je()});function sv(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(L(o)||o!=null&&el(this.context))){let f=Ja(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=M(s)||L(s),l=M(i)||L(i);if(a||l)continue;let c=n.charAt(0);if(uv.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=Cf.test(n)||cv.test(n)||IE(o),d=Xo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function iv(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=L(o)||o!=null&&el(this.context);if(s&&i){AD(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(uv.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=M(l)||L(l),d=M(c)||L(c),f=Cf.test(n)||cv.test(n),p=Xo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function av(e=this){let t=[];return sv.call(this,e,{cachedKeys:t}),iv.call(this,e,{cachedKeys:t}),e}function $E(e={}){return e.on||(e.on={}),e.props||(e.props={}),av.call(this,e)}function lv(e,t){this.__element.update({props:e},t)}function kf(e){let t={update:lv.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Cf,cv,uv,_A,IE,yd,Ea,fv,Oa,Ta,Ra,Af,Pa,dv,pv,FE=X(()=>{"use strict";Za(),ED(),Gr(),je(),ld(),tl(),Cf=/^[A-Z]/,cv=/^\d+$/,uv=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),_A=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),IE=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(_A.has(t)||Cf.test(t))return!0;return!1},yd=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return ce(n)?{...n}:(o.__propsStack.push(n),{})},Ea=e=>Zt(e)("string","number")?{inheritedString:e}:e,fv=(e,t)=>!e||!t.length?!1:t.includes(e),Oa=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=Ea(i);n.unshift(l)}if(s){let l=Ea(s);n.unshift(l)}return n},Ta=e=>{let t=new Set;return e.filter(r=>!r||Rn.has(r)||t.has(r)?!1:(t.add(r),!0))},Ra=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Rn.has(o))return n;for(;L(o);)o=Ne(o,t);return tr(n,ct(o,{exclude:Rn}))},{}),kf(t),t.props),Af=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Oa(e,t)]),M(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),W(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Ta(o),n.__propsStack},Pa=(e,t)=>{let{__ref:r}=e,n=Af(e,t);n.length?Ra(n,e):(r.__propsStack=[],e.props={})},dv=function(e,t,r){let{__ref:n}=e;if(n.__if)Pa(e,t);else try{Pa(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return kf(e),e},pv=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Oa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=Ta(o),n.__propsStack.length&&Ra(n.__propsStack,t),t}}),ib,Ef,Of,Tf,Rf,hv,Pf,$f,If,gv,OD=X(()=>{"use strict";ov(),Fx(),nd(),FE(),EE(),je(),ib="production",Ef=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Wa.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Of=(e,t,r)=>{if(e===void 0)return(ib==="test"||ib==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Zt(e)("string","number")?Ef(e,t,r):L(e)?{props:e}:e},Tf=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Rf=(e,t,r,n,o)=>{if(!t)return o;if(Xa(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},hv=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Pf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},$f=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),If=(e,t,r)=>{let n=Tf(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=md(e,t,r),n.path=Pf(e,t,r),n},gv=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:Of(e,t,r);if(!s)return;let i=Rf(s,t,r,n,o),a=hd(s,i,r);If(s,i,a);let l=yd(s,i,a),c=$f(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),mv,Ff,jf,Df,Lf,yv,Mf,bv,xv,vv,_v,TD=X(()=>{"use strict";Ya(),Za(),Gr(),je(),mv=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Zt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Ff=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},jf=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Df=(e,t,r={})=>{let n=R(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Lf=(e,t,r={})=>{let n=e.__ref.__state;if(!Mf(e))return;let o=Ff(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=jf(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Df(n,s,r)},yv=(e,t)=>{let r=e.__ref,n=Lf(e,t);if(n===void 0)return e.state;if(Zt(n)("object","array"))return ct(n);if(Zt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Mf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Zt(r)("number","string","boolean"))},bv=function(e){return ce(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},xv=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},vv=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ct(n,Tn),s={[e.key]:o},i=M(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?id(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},_v=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){tr(e,t,Tn);return}(o?dd:In)(e,t,Tn)}}),wA,wv,RD=X(()=>{"use strict";wA=(e,t)=>{let r=t;for(;r;){if(r===e)return!0;r=Object.getPrototypeOf(r)}return!1},wv=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&!wA(e.scope,i)&&Object.setPrototypeOf(e.scope,i)}}}),ab,Nf,Go,Bf,Sv,jE=X(()=>{"use strict";je(),tl(),ab=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Nf=(e,t,r,n,o)=>{if(e=za(e,t),!!L(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Go=(e,t,r)=>{if(!t)throw new Error("Element is required");Ua(e,t,r);let n=ab(e,t);if(n){let{state:o,context:s}=t;return Nf(n,t,o,s,r)}},Bf=(e,t,r,n,o,s)=>{if(e=za(e,r),!!L(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},Sv=(e,t,r,n)=>{Ua(e,r,t,n);let o=ab(e,r);if(o){let{state:s,context:i}=r;return Bf(o,t,r,s,i,n)}}}),kv,bd,DE=X(()=>{"use strict";kv={},bd={}}),LE={};Y(LE,{setup:()=>ME,supabaseAdapter:()=>Ab});var lb,SA,ME,Mu,kA,Ab,PD=X(()=>{"use strict";lb=new Map,SA=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,ME=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=SA(l,t,o===!1),u=lb.get(c);return u||(u=await n(l,t,a),u?.auth&&lb.set(c,u)),!u||!u.auth?null:Ab(u)},Mu=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},kA=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Ab=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=Mu(a,o),a=kA(a,i),s)try{for(let l in s)a.setHeader?a=a.setHeader(l,s[l]):e.rest&&(e.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let i=(r?e.schema(r):e).from(t).update(n);return i=Mu(i,o),i.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Mu(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),NE={};Y(NE,{restAdapter:()=>Eb,setup:()=>BE});var CA,pr,BE,Eb,$D=X(()=>{"use strict";CA=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},pr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},BE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return Eb(e,t,r,n)},Eb=(e,t={},r,n={})=>{let o=r?.token||null,s=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},i=c=>({...s(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await pr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await pr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await pr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),pr(CA(y||e,c||"",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>pr(l(`rpc/${c}`,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>pr(l(c,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return pr(l(m,h),a({method:f||"PATCH",headers:i(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return pr(l(h,f),a({method:"DELETE",headers:s(d)}))}}}}),VE={};Y(VE,{localAdapter:()=>Ob,setup:()=>zE});var Nu,AA,zE,Ob,ID=X(()=>{"use strict";Nu=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},AA=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},zE=async({data:e,...t})=>Ob(e,t),Ob=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=i(u).filter(h=>Nu(h,d));return AA(p,f)},insert:async({from:u,data:d})=>{let f=i(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(Nu(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)Nu(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}}),da={};Y(da,{createAdapter:()=>WE,default:()=>GE,executeFetch:()=>Yu,fetchPlugin:()=>qE,initAdapterAuth:()=>pa,parseDuration:()=>Mo,queryClient:()=>HE,registerAdapter:()=>UE,resolveDb:()=>Tb});var EA,OA,sa,Ro,ia,Bu,TA,RA,UE,WE,Tb,Mo,Me,cb,Po,PA,$o,Io,Fo,aa,Vu,la,$A,ub,zu,fb,db,An,pb,IA,hb,FA,ca,gb,pa,Uu,ot,vt,jo,Wr,Ft,hr,jA,DA,LA,Wu,MA,Yu,HE,qE,GE,Vo=X(()=>{"use strict";N(),EA=["select","rpc","insert","update","delete","subscribe"],OA={supabase:()=>Promise.resolve().then(()=>(PD(),LE)),rest:()=>Promise.resolve().then(()=>($D(),NE)),local:()=>Promise.resolve().then(()=>(ID(),VE))},sa=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Ro=(()=>{if(typeof globalThis<"u"&&globalThis[sa])return globalThis[sa];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,sa,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[sa]}catch{}return e})(),ia=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Bu=(()=>{if(typeof globalThis<"u"&&globalThis[ia])return globalThis[ia];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ia,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ia]}catch{}return e})(),TA=5e3,RA=e=>new Promise(t=>{if(Ro[e])return t(Ro[e]);let r=Bu[e]||=[],n=!1,o=()=>{n||(n=!0,t(Ro[e]||null))};r.push(o),setTimeout(o,TA)}),UE=(e,t)=>{Ro[e]=t;let r=Bu[e];if(r&&r.length){Bu[e]=[];for(let n of r)n()}},WE=e=>{let t={};for(let r of EA)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},Tb=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=Ro[n]||OA[n];if(!o&&(o=await RA(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},Mo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Me=new Map,cb=new Map,Po=new Map,PA=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=FA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},$o=e=>Me.get(e)||null,Io=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=cb.get(e);if(s)for(let i of s)L(i)&&i(o);return o},Fo=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},aa=e=>{if(e){Me.delete(e);return}Me.clear()},Vu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:R(e)?{staleTime:Mo(e),gcTime:3e5}:{staleTime:Mo(e.stale||e.staleTime)||6e4,gcTime:Mo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},la=null,$A=()=>{la||(la=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=cb.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),la.unref&&la.unref())},$A(),ub=3,zu=e=>Math.min(1e3*2**e,3e4),fb=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:ub,delay:zu}:typeof t=="number"?{count:t,delay:zu}:{count:t.count??ub,delay:L(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:zu}},db=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=L(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=L(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},An={focus:new Set,online:new Set},pb=!1,IA=()=>{if(pb||typeof window>"u")return;pb=!0;let e=()=>{for(let r of An.focus)r()},t=()=>{for(let r of An.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},hb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(R(e))return{from:e,method:"select",query:!0,on:"create"};if(M(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},FA=e=>(!e||L(e),e),ca=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},gb=(e,t,r)=>{let n;if(!e)n=void 0;else if(L(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=L(s)?s(t,t.state):s}}return n},pa=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Uu=async(e,t)=>{if(L(e.select))return e.auth!==!1&&await pa(e,t),e;if(e.__resolved)return e.auth!==!1&&await pa(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=Tb(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await pa(r,t),r):null},ot=(e,t,...r)=>{let n=L(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},vt=(e,t,r,...n)=>{let o=e&&L(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},jo=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Wr=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Ft=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},hr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||L(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||L(e.skip)&&e.skip(t,t.state))return;let s=await Uu(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:S,cursor:E,getNextPageParam:F,getPreviousPageParam:w,infinite:$,placeholderData:q,initialData:te,select:j,keepPreviousData:I}=e,Q=R(j)?j:void 0;if(c&&L(t.getQuery)){let ue=t.getQuery(s.name||"paths");ue&&(Q=ue.select||ue.length&&ue.join(",")||Q)}let oe=gb(u,t,r),ie=Vu(d),Vt=fb(e),Xr=ca(t,r),Id=Xr?`:${Xr}`:"",J=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${S?":p"+JSON.stringify(S):""}${Id}`:null;if(!i.__fetchInitialized&&J&&(i.__fetchInitialized=!0,te!==void 0)){let ue=L(te)?te():te;Io(J,ue,null)}if((l==="select"||l==="rpc")&&J&&ie){let ue=$o(J);if(ue&&!ue.error){let V=Date.now()-ue.time,z=ue.stale||V>(ie.staleTime||0),B=ue.data;if(L(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),Wr(t,B,m),!z){Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let V=L(q)?q(t,t.state):q;V!==void 0&&Wr(t,V,m)}}if(J&&Po.has(J)&&!n.force){let ue=Po.get(J);try{let V=await Promise.race([ue,new Promise((z,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(V?.data!==void 0){let z=V.data;L(j)&&(z=j(z,t,t.state)),f&&(z=f(z,t,t.state)),Wr(t,z,m),ot(t,"onFetchComplete",z),vt(e,t,"onFetchComplete",z)}}catch{}return}let Fd=!$o(J)?.data;Ft(t,{isFetching:!0,isLoading:Fd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ot(t,"onFetchStart"),vt(e,t,"onFetchStart");let Oe=r?.analyze?.emitNetwork,Yr=Oe?typeof performance<"u"?performance.now():Date.now():0;Oe&&Oe({phase:"start",mode:"query",from:a,method:l,cacheKey:J,lang:Xr});let jd=db(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let U={message:"Not authenticated"};return Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",U),vt(e,t,"onFetchError",U),{data:null,error:U}}}let ue=s[l];if(!L(ue))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let V={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},z=ca(t,r);if(z&&(V.headers={...V.headers,"Accept-Language":z}),S!==void 0){if(M(S))S.offset!==void 0&&(V.offset=S.offset),S.limit!==void 0&&(V.limit=S.limit),S.cursor!==void 0&&(V.params={...V.params,cursor:S.cursor});else if(typeof S=="number"){let B=e.pageSize||y||20;V.offset=(S-1)*B,V.limit=B}}if(E!==void 0&&(V.params={...V.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let B;if(g===!0||e.on==="submit")B=jo(t);else if(W(g)){let U=jo(t);B={};for(let Te of g)B[Te]=U[Te]}else t.state?.parse?B=t.state.parse():M(t.state)&&(B={...t.state});f&&(B=f(B,t,t.state)),V.data=B}if(l==="rpc"){let B=oe;if(e.on==="submit"){let U=jo(t);B=e.transformParams?e.transformParams(U,t,t.state):U}V.params=B}if(l==="subscribe"){let B=s.subscribe({from:a,params:oe,on:e.subscribeOn},(U,Te,sl)=>{Wr(t,U,m),ot(t,"onFetchComplete",U),vt(e,t,"onFetchComplete",U)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return ue(V)},Vt);J&&Po.set(J,jd);try{let ue=await jd;if(ue?.subscribed)return;let{data:V,error:z}=ue||{};if(z){J&&Io(J,null,z),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",z),vt(e,t,"onFetchError",z),Oe&&Oe({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:z.message||z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(V!==void 0){if((l==="select"||l==="rpc")&&J){let U=Io(J,V,null);U.gcTime=ie?.gcTime||3e5}let B=V;$&&W(V)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(V):i.__pages.push(V),B=i.__pages.flat(),F&&(i.__nextPageParam=F(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),w&&(i.__prevPageParam=w(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),L(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),(!I||B!==void 0)&&Wr(t,B,m),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ot(t,"onFetchComplete",B),vt(e,t,"onFetchComplete",B),Oe&&Oe({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:J,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(ue){Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ue,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",ue),vt(e,t,"onFetchError",ue),Oe&&Oe({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:ue.message||String(ue),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{J&&Po.delete(J)}},jA=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||hr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},DA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),IA();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Mo(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&hr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=ca(t,r),a=PA(e,i),l=$o(a),c=Vu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&hr(e,t,r,{force:!0})};An.focus.add(s),n.__fetchCleanups.push(()=>An.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>hr(e,t,r,{force:!0});An.online.add(s),n.__fetchCleanups.push(()=>An.online.delete(s))}},LA=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():M(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=L(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Wr(e,i,o),s},Wu=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Wr(e,n,t.as),delete r.__optimisticSnapshot)},MA=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Uu(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=jo(t);else if(W(l)){let w=jo(t);_={};for(let $ of l)_[$]=w[$]}else t.state?.parse?_=t.state.parse():M(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),L(y)&&y(_,t,t.state);let S=m?LA(t,e,_):null;s.__fetching=!0,Ft(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ot(t,"onFetchStart"),vt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,F=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){S!==void 0&&Wu(t,e);let ie={message:"Not authenticated"};ot(t,"onFetchError",ie),vt(e,t,"onFetchError",ie);return}}let w=o[i];if(!L(w))return;let $={from:a,data:_,headers:p,baseUrl:h};e.params&&($.params=gb(e.params,t,r));let q=ca(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=fb(e),j=await db(()=>w($),te),{data:I,error:Q}=j||{};if(Q){S!==void 0&&Wu(t,e),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",Q),L(v)&&v(Q,_,t),L(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ot(t,"onFetchComplete",I),vt(e,t,"onFetchComplete",I),L(b)&&b(I,_,t),L(x)&&x(I,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-F}),g){let oe=W(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Vt]of Me)Vt.startsWith(a+":")&&Fo(Vt);else Fo(ie)}}catch(w){S!==void 0&&Wu(t,e),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",w),vt(e,t,"onFetchError",w),L(v)&&v(w,_,t),L(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},Yu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=W(o)?o.map(a=>hb(Ne(a,t),t)).filter(Boolean):[hb(o,t)].filter(Boolean);for(let a of s){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?MA:hr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{jA({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&DA(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)hr(l,t,n,{force:!0,...a})},i.fetchNextPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__nextPageParam;if(l==null)return;let c={...a,cursor:l};hr(c,t,n,{direction:"next",force:!0})},i.fetchPreviousPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__prevPageParam;if(l==null)return;let c={...a,cursor:l};hr(c,t,n,{direction:"previous",force:!0})}},HE={invalidateQueries:e=>{if(!e){Fo();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Fo(t);else if(W(e)){let t=e.join(":");for(let[r]of Me)r.includes(t)&&Fo(r)}},removeQueries:e=>{if(!e){aa();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&aa(t)},getQueryData:e=>$o(e)?.data??void 0,setQueryData:(e,t)=>{let r=$o(e),n=L(t)?t(r?.data):t;Io(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Uu(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!L(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Io(o,i.data,null);a.gcTime=Vu(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>aa(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||aa(r))}},qE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Po.clear(),Yu(t,e,e.state,e.context))}},GE=Yu});function KE(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function XE(e){let t=this,{parent:r}=t;if(L(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function YE(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(L(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function JE(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(L(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Cv(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(M(n)&&o)Cv.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function ZE(e){let t=this;if(Go("beforeRemove",t,e)===!1)return t;L(t.node.remove)?t.node.remove():qo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=sd(t.parent.__ref.__children,t.key)),Go("remove",t,e)}function QE(e){return this[e]}function eO(e,t){let r=this;if(e)return r.update(e,t),r}function tO(e){return e?this.__ref&&this.__ref[e]:this.__ref}function rO(){return this.getRef("__children").map(e=>this[e])}function nO(){return this.getRef().path}function oO(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=Rb();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=L(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=Rb()),e?t?.[e]:t}function sO(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function iO(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function aO(e){let t=this.getRoot()?.context;return e?t[e]:t}function lO(e){let t=this.context;return e?t[e]:t}function Av(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Xo.has(r)&&!cd.has(r)||t.push(r);return t}function Ev(e=[]){let t=this,r={},n=Av.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=L(l&&l.parse)?l.parse():l;r[a]=L(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else Ho(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Vf(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Ev.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>ce(a)?Vf.call(a,e,t):a):ce(i)&&(n[s]=Vf.call(i,e,t))}return n}function Ov(...e){if(yr!=="test"&&yr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
86
|
+
return (${o}); })`)(t)}catch{try{t[n]=le.eval(`(${o})`)}catch{t[n]=o}}return t},_x=(e,t={verbose:!0})=>{try{return e?le.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},wx=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),uf=e=>{for(let t in e)return!1;return!0},Sx=e=>M(e)&&uf(e),kx=()=>Object.create(null),fd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&Ur(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},dd=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Ur(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},In=(e,t,r={},n=new WeakMap)=>{if(!ce(e)||!ce(t)||at(e)||at(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&Ur(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];at(c)?e[a]=c:ce(l)&&ce(c)?e[a]=In(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ff=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!ff(e[i],t[i],r))return!1}return!0},bA=new Set(["node","__ref"]),Cx=(e,t,r=bA)=>{if(e===t)return!0;if(!ce(e)||!ce(t)||at(e)||at(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(at(c)||at(u)){if(c!==u)return!1}else if(ce(c)&&ce(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},Ax=(e,t)=>{if(t==null)return e;if(Zt(t)("string","number"))delete e[t];else if(W(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},df=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=df(e[r]));return t},Ex=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},Ox=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},Tx=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},Rx=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},Px=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(tb==="test"||tb==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},$x=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},Ix=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),va,pd,hd,Fx=X(()=>{"use strict";Gr(),va=(function(){let e=0;function t(){return e++,e}return t})(),pd=va,hd=(e,t,r)=>(Ne(r,e)||r||e.key||va()).toString()}),Dt,jx,qo,pf,Dx,Lx,Mx,gd,Nx,Qa,wE=X(()=>{"use strict";Dt="production",jx=Dt,qo=(e=Dt)=>e==="production",pf=(e=Dt)=>e==="testing"||e==="test",Dx=pf,Lx=(e=Dt)=>e==="staging",Mx=(e=Dt)=>e==="local",gd=(e=Dt)=>e==="development"||e==="dev"||e==="local",Nx=(e,t=Dt)=>t[e],Qa=(e=Dt)=>!qo(e)});function SE(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function kE(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Bx,Vx,xA,zx,el,za,Ua,tl=X(()=>{"use strict";Bx=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Vx=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},xA=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,zx=e=>xA.test(e),el=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},za=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Ua=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}}),Ux,SD=X(()=>{"use strict";je(),Gr(),Ux=(e,t)=>{let{__ref:r}=e,n=e.if;if(L(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?Ne(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),Wx,Hx,kD=X(()=>{"use strict";Wx=(e,...t)=>{e&&t.map(r=>console.log(r))},Hx=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function CE(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function AE(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var qx,Gx,Kx,Xx,CD=X(()=>{"use strict";je(),td(),qx=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Gx=(e,t,r=365)=>{if(Nt(be)||Nt(be.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;be.cookie=`${e}=${t};${o};path=/`},Kx=e=>{if(Nt(be)||Nt(be.cookie))return;let t=`${e}=`,r=decodeURIComponent(be.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Xx=e=>{Nt(be)||Nt(be.cookie)||(be.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Wa,Yx,Jx,EE=X(()=>{"use strict";Wa={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"])},Yx=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"]),Jx=e=>Wa.body.has(e)}),Lu,ob,Ha,md,Qe,Zx,hf,_a,Qx,wa,gf,mf,Sa,yf,Bo,vA,Jt,sb,ka,Ca,ev,Aa,tv,rv,bf,xf,vf,_f,wf,Sf,nv,ov=X(()=>{"use strict";Ya(),PE(),Gr(),je(),Lu="production",ob=e=>e.sourcemap!==!1&&Lu!=="production",Ha=e=>{if(e.includes("+"))return e.split("+").filter(On);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!On(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},md=(e,t,r)=>{let n=[],o=Ha(r);o&&(n=[...o]);let s=e.extends;return s&&(n=W(s)?[...n,...s]:[...n,s]),n},Qe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Zx=(e,t)=>{if(!e)return t;let{extends:r}=t,n=W(r)?r:[r],o=W(e)?e:[e];return{...t,extends:Na(o,n)}},hf=()=>Math.random().toString(36).substring(2),_a={},Qx={},wa=e=>_a[e.__hash],gf=(e,t)=>{let r=hf();return R(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(_a[r]=t),t},mf=(e,t)=>e.__hash?t.concat(wa(e)):gf(e,t),Sa=(e,t,r,n=new Set,o,s)=>{for(let i of e)W(i)?Sa(i,t,r,n,o,s):Bo(i,t,r,n,o,void 0,s);return t},yf=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Bo(a,t,r,n,o,s,i),t},Bo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(W(e))return Sa(e,t,r,n,o,i);let a=s;return R(e)?(a=e,e=Ca(e,r)):i&&M(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?yf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},vA=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Jt=(e,t,r,n,o)=>{t=ct(t);for(let s in t){if(vA.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?M(a)&&!W(a)?(r[s]=r[s]||{},sb(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(M(i)&&M(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];On(s)?e[s]=Jt(i,a,l,n,c):Jt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(W(i)&&W(a))e[s]=i.concat(a);else if(W(i)&&M(a)){let l=Jt({},i);e[s]=Jt(l,a)}}}}return e},sb=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];M(s)&&!W(s)?(e[o]=e[o]||{},sb(e[o],s,r,n)):e[o]=r}}},ka=(e,t,r)=>e.reduce((n,o,s)=>{let i=ct(o),a=r?r[s]:void 0;return Jt(n,i,t,a)},{}),Ca=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(R(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Lu==="test"||Lu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},ev=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),Aa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return wa(e)||[];let o=Bo(e,[],t,new Set,r,void 0,n);return r?o:mf(e,o)},tv=(e,t)=>{if(!e)return t;let r=W(e)?e:[e];return Na(r,t)},rv=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(On(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},bf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Qe([l,...a],e):Qe(e.extends,e)}else Qe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Qe(i,e):Qe(e.extends,e)}else Qe(e.extends,e);return xf(e,t,r),vf(e,t,r),_f(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),Ba(n.__extends)},xf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},vf=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},_f=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Qe(o,e),n.__extends},wf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=ob(r),a=i?[...n.__extends]:null,l=Ba(n.__extends.map((c,u)=>Ca(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&M(p)&&R(h)&&c.set(p,h)}let u=[],d=Aa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=Aa(l,o);n.__extendsStack=c}return n.__extendsStack},Sf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(ob(r)){let s={},i=n.__extendsNames||[],a=ka(o,s,i),l={};Jt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ka(o);Jt(e,s)}return e},nv=(e,t,r={})=>(bf(e,t,r),wf(e,t,r),Sf(e,t,r),e)});function OE(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function TE(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function RE(e,t,r){let{context:n}=t||{},[o]=Ha(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var On,PE=X(()=>{"use strict";ov(),je(),On=e=>{if(!R(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function AD(e,t){let{props:r,on:n}=t,o=Ja(e.split("on")[1]),s=n[o],i=r[e];L(s)?n[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:n[o]=i}var ED=X(()=>{"use strict";ld(),je()});function sv(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(L(o)||o!=null&&el(this.context))){let f=Ja(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=M(s)||L(s),l=M(i)||L(i);if(a||l)continue;let c=n.charAt(0);if(uv.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=Cf.test(n)||cv.test(n)||IE(o),d=Xo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function iv(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=L(o)||o!=null&&el(this.context);if(s&&i){AD(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(uv.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=M(l)||L(l),d=M(c)||L(c),f=Cf.test(n)||cv.test(n),p=Xo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function av(e=this){let t=[];return sv.call(this,e,{cachedKeys:t}),iv.call(this,e,{cachedKeys:t}),e}function $E(e={}){return e.on||(e.on={}),e.props||(e.props={}),av.call(this,e)}function lv(e,t){this.__element.update({props:e},t)}function kf(e){let t={update:lv.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Cf,cv,uv,_A,IE,yd,Ea,fv,Oa,Ta,Ra,Af,Pa,dv,pv,FE=X(()=>{"use strict";Za(),ED(),Gr(),je(),ld(),tl(),Cf=/^[A-Z]/,cv=/^\d+$/,uv=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),_A=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),IE=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(_A.has(t)||Cf.test(t))return!0;return!1},yd=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return ce(n)?{...n}:(o.__propsStack.push(n),{})},Ea=e=>Zt(e)("string","number")?{inheritedString:e}:e,fv=(e,t)=>!e||!t.length?!1:t.includes(e),Oa=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=Ea(i);n.unshift(l)}if(s){let l=Ea(s);n.unshift(l)}return n},Ta=e=>{let t=new Set;return e.filter(r=>!r||Rn.has(r)||t.has(r)?!1:(t.add(r),!0))},Ra=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Rn.has(o))return n;for(;L(o);)o=Ne(o,t);return tr(n,ct(o,{exclude:Rn}))},{}),kf(t),t.props),Af=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Oa(e,t)]),M(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),W(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Ta(o),n.__propsStack},Pa=(e,t)=>{let{__ref:r}=e,n=Af(e,t);n.length?Ra(n,e):(r.__propsStack=[],e.props={})},dv=function(e,t,r){let{__ref:n}=e;if(n.__if)Pa(e,t);else try{Pa(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return kf(e),e},pv=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Oa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=Ta(o),n.__propsStack.length&&Ra(n.__propsStack,t),t}}),ib,Ef,Of,Tf,Rf,hv,Pf,$f,If,gv,OD=X(()=>{"use strict";ov(),Fx(),nd(),FE(),EE(),je(),ib="production",Ef=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Wa.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Of=(e,t,r)=>{if(e===void 0)return(ib==="test"||ib==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Zt(e)("string","number")?Ef(e,t,r):L(e)?{props:e}:e},Tf=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Rf=(e,t,r,n,o)=>{if(!t)return o;if(Xa(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},hv=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Pf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},$f=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),If=(e,t,r)=>{let n=Tf(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=md(e,t,r),n.path=Pf(e,t,r),n},gv=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:Of(e,t,r);if(!s)return;let i=Rf(s,t,r,n,o),a=hd(s,i,r);If(s,i,a);let l=yd(s,i,a),c=$f(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),mv,Ff,jf,Df,Lf,yv,Mf,bv,xv,vv,_v,TD=X(()=>{"use strict";Ya(),Za(),Gr(),je(),mv=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Zt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Ff=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},jf=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Df=(e,t,r={})=>{let n=R(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Lf=(e,t,r={})=>{let n=e.__ref.__state;if(!Mf(e))return;let o=Ff(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=jf(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Df(n,s,r)},yv=(e,t)=>{let r=e.__ref,n=Lf(e,t);if(n===void 0)return e.state;if(Zt(n)("object","array"))return ct(n);if(Zt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Mf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Zt(r)("number","string","boolean"))},bv=function(e){return ce(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},xv=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},vv=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ct(n,Tn),s={[e.key]:o},i=M(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?id(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},_v=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){tr(e,t,Tn);return}(o?dd:In)(e,t,Tn)}}),wA,wv,RD=X(()=>{"use strict";wA=(e,t)=>{let r=t;for(;r;){if(r===e)return!0;r=Object.getPrototypeOf(r)}return!1},wv=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&!wA(e.scope,i)&&Object.setPrototypeOf(e.scope,i)}}}),ab,Nf,Go,Bf,Sv,jE=X(()=>{"use strict";je(),tl(),ab=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Nf=(e,t,r,n,o)=>{if(e=za(e,t),!!L(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Go=(e,t,r)=>{if(!t)throw new Error("Element is required");Ua(e,t,r);let n=ab(e,t);if(n){let{state:o,context:s}=t;return Nf(n,t,o,s,r)}},Bf=(e,t,r,n,o,s)=>{if(e=za(e,r),!!L(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},Sv=(e,t,r,n)=>{Ua(e,r,t,n);let o=ab(e,r);if(o){let{state:s,context:i}=r;return Bf(o,t,r,s,i,n)}}}),kv,bd,DE=X(()=>{"use strict";kv={},bd={}}),LE={};Y(LE,{setup:()=>ME,supabaseAdapter:()=>Ab});var lb,SA,ME,Mu,kA,Ab,PD=X(()=>{"use strict";lb=new Map,SA=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,ME=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=SA(l,t,o===!1),u=lb.get(c);return u||(u=await n(l,t,a),u?.auth&&lb.set(c,u)),!u||!u.auth?null:Ab(u)},Mu=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},kA=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Ab=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=Mu(a,o),a=kA(a,i),s)try{for(let l in s)a.setHeader?a=a.setHeader(l,s[l]):e.rest&&(e.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let i=(r?e.schema(r):e).from(t).update(n);return i=Mu(i,o),i.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Mu(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),NE={};Y(NE,{restAdapter:()=>Eb,setup:()=>BE});var CA,pr,BE,Eb,$D=X(()=>{"use strict";CA=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},pr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},BE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return Eb(e,t,r,n)},Eb=(e,t={},r,n={})=>{let o=r?.token||null,s=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},i=c=>({...s(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await pr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await pr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await pr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),pr(CA(y||e,c||"",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>pr(l(`rpc/${c}`,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>pr(l(c,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return pr(l(m,h),a({method:f||"PATCH",headers:i(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return pr(l(h,f),a({method:"DELETE",headers:s(d)}))}}}}),VE={};Y(VE,{localAdapter:()=>Ob,setup:()=>zE});var Nu,AA,zE,Ob,ID=X(()=>{"use strict";Nu=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},AA=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},zE=async({data:e,...t})=>Ob(e,t),Ob=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=i(u).filter(h=>Nu(h,d));return AA(p,f)},insert:async({from:u,data:d})=>{let f=i(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(Nu(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)Nu(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}}),da={};Y(da,{createAdapter:()=>WE,default:()=>GE,executeFetch:()=>Yu,fetchPlugin:()=>qE,initAdapterAuth:()=>pa,parseDuration:()=>Mo,queryClient:()=>HE,registerAdapter:()=>UE,resolveDb:()=>Tb});var EA,OA,sa,Ro,ia,Bu,TA,RA,UE,WE,Tb,Mo,Me,cb,Po,PA,$o,Io,Fo,aa,Vu,la,$A,ub,zu,fb,db,An,pb,IA,hb,FA,ca,gb,pa,Uu,ot,vt,jo,Wr,Ft,hr,jA,DA,LA,Wu,MA,Yu,HE,qE,GE,Vo=X(()=>{"use strict";N(),EA=["select","rpc","insert","update","delete","subscribe"],OA={supabase:()=>Promise.resolve().then(()=>(PD(),LE)),rest:()=>Promise.resolve().then(()=>($D(),NE)),local:()=>Promise.resolve().then(()=>(ID(),VE))},sa=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Ro=(()=>{if(typeof globalThis<"u"&&globalThis[sa])return globalThis[sa];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,sa,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[sa]}catch{}return e})(),ia=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Bu=(()=>{if(typeof globalThis<"u"&&globalThis[ia])return globalThis[ia];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ia,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ia]}catch{}return e})(),TA=5e3,RA=e=>new Promise(t=>{if(Ro[e])return t(Ro[e]);let r=Bu[e]||=[],n=!1,o=()=>{n||(n=!0,t(Ro[e]||null))};r.push(o),setTimeout(o,TA)}),UE=(e,t)=>{Ro[e]=t;let r=Bu[e];if(r&&r.length){Bu[e]=[];for(let n of r)n()}},WE=e=>{let t={};for(let r of EA)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},Tb=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=Ro[n]||OA[n];if(!o&&(o=await RA(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},Mo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Me=new Map,cb=new Map,Po=new Map,PA=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=FA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},$o=e=>Me.get(e)||null,Io=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=cb.get(e);if(s)for(let i of s)L(i)&&i(o);return o},Fo=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},aa=e=>{if(e){Me.delete(e);return}Me.clear()},Vu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:R(e)?{staleTime:Mo(e),gcTime:3e5}:{staleTime:Mo(e.stale||e.staleTime)||6e4,gcTime:Mo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},la=null,$A=()=>{la||(la=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=cb.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),la.unref&&la.unref())},$A(),ub=3,zu=e=>Math.min(1e3*2**e,3e4),fb=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:ub,delay:zu}:typeof t=="number"?{count:t,delay:zu}:{count:t.count??ub,delay:L(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:zu}},db=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=L(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=L(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},An={focus:new Set,online:new Set},pb=!1,IA=()=>{if(pb||typeof window>"u")return;pb=!0;let e=()=>{for(let r of An.focus)r()},t=()=>{for(let r of An.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},hb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(R(e))return{from:e,method:"select",query:!0,on:"create"};if(M(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},FA=e=>(!e||L(e),e),ca=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},gb=(e,t,r)=>{let n;if(!e)n=void 0;else if(L(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=L(s)?s(t,t.state):s}}return n},pa=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Uu=async(e,t)=>{if(L(e.select))return e.auth!==!1&&await pa(e,t),e;if(e.__resolved)return e.auth!==!1&&await pa(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=Tb(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await pa(r,t),r):null},ot=(e,t,...r)=>{let n=L(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},vt=(e,t,r,...n)=>{let o=e&&L(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},jo=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Wr=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Ft=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},hr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||L(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||L(e.skip)&&e.skip(t,t.state))return;let s=await Uu(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:S,cursor:E,getNextPageParam:F,getPreviousPageParam:w,infinite:$,placeholderData:q,initialData:te,select:j,keepPreviousData:I}=e,Q=R(j)?j:void 0;if(c&&L(t.getQuery)){let ue=t.getQuery(s.name||"paths");ue&&(Q=ue.select||ue.length&&ue.join(",")||Q)}let oe=gb(u,t,r),ie=Vu(d),Vt=fb(e),Xr=ca(t,r),Id=Xr?`:${Xr}`:"",J=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${S?":p"+JSON.stringify(S):""}${Id}`:null;if(!i.__fetchInitialized&&J&&(i.__fetchInitialized=!0,te!==void 0)){let ue=L(te)?te():te;Io(J,ue,null)}if((l==="select"||l==="rpc")&&J&&ie){let ue=$o(J);if(ue&&!ue.error){let V=Date.now()-ue.time,z=ue.stale||V>(ie.staleTime||0),B=ue.data;if(L(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),Wr(t,B,m),!z){Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let V=L(q)?q(t,t.state):q;V!==void 0&&Wr(t,V,m)}}if(J&&Po.has(J)&&!n.force){let ue=Po.get(J);try{let V=await Promise.race([ue,new Promise((z,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(V?.data!==void 0){let z=V.data;L(j)&&(z=j(z,t,t.state)),f&&(z=f(z,t,t.state)),Wr(t,z,m),ot(t,"onFetchComplete",z),vt(e,t,"onFetchComplete",z)}}catch{}return}let Fd=!$o(J)?.data;Ft(t,{isFetching:!0,isLoading:Fd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ot(t,"onFetchStart"),vt(e,t,"onFetchStart");let Te=r?.analyze?.emitNetwork,Yr=Te?typeof performance<"u"?performance.now():Date.now():0;Te&&Te({phase:"start",mode:"query",from:a,method:l,cacheKey:J,lang:Xr});let jd=db(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let U={message:"Not authenticated"};return Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",U),vt(e,t,"onFetchError",U),{data:null,error:U}}}let ue=s[l];if(!L(ue))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let V={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},z=ca(t,r);if(z&&(V.headers={...V.headers,"Accept-Language":z}),S!==void 0){if(M(S))S.offset!==void 0&&(V.offset=S.offset),S.limit!==void 0&&(V.limit=S.limit),S.cursor!==void 0&&(V.params={...V.params,cursor:S.cursor});else if(typeof S=="number"){let B=e.pageSize||y||20;V.offset=(S-1)*B,V.limit=B}}if(E!==void 0&&(V.params={...V.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let B;if(g===!0||e.on==="submit")B=jo(t);else if(W(g)){let U=jo(t);B={};for(let Re of g)B[Re]=U[Re]}else t.state?.parse?B=t.state.parse():M(t.state)&&(B={...t.state});f&&(B=f(B,t,t.state)),V.data=B}if(l==="rpc"){let B=oe;if(e.on==="submit"){let U=jo(t);B=e.transformParams?e.transformParams(U,t,t.state):U}V.params=B}if(l==="subscribe"){let B=s.subscribe({from:a,params:oe,on:e.subscribeOn},(U,Re,sl)=>{Wr(t,U,m),ot(t,"onFetchComplete",U),vt(e,t,"onFetchComplete",U)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return ue(V)},Vt);J&&Po.set(J,jd);try{let ue=await jd;if(ue?.subscribed)return;let{data:V,error:z}=ue||{};if(z){J&&Io(J,null,z),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",z),vt(e,t,"onFetchError",z),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:z.message||z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(V!==void 0){if((l==="select"||l==="rpc")&&J){let U=Io(J,V,null);U.gcTime=ie?.gcTime||3e5}let B=V;$&&W(V)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(V):i.__pages.push(V),B=i.__pages.flat(),F&&(i.__nextPageParam=F(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),w&&(i.__prevPageParam=w(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),L(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),(!I||B!==void 0)&&Wr(t,B,m),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ot(t,"onFetchComplete",B),vt(e,t,"onFetchComplete",B),Te&&Te({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:J,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(ue){Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ue,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",ue),vt(e,t,"onFetchError",ue),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:ue.message||String(ue),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{J&&Po.delete(J)}},jA=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||hr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},DA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),IA();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Mo(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&hr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=ca(t,r),a=PA(e,i),l=$o(a),c=Vu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&hr(e,t,r,{force:!0})};An.focus.add(s),n.__fetchCleanups.push(()=>An.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>hr(e,t,r,{force:!0});An.online.add(s),n.__fetchCleanups.push(()=>An.online.delete(s))}},LA=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():M(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=L(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Wr(e,i,o),s},Wu=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Wr(e,n,t.as),delete r.__optimisticSnapshot)},MA=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Uu(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=jo(t);else if(W(l)){let w=jo(t);_={};for(let $ of l)_[$]=w[$]}else t.state?.parse?_=t.state.parse():M(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),L(y)&&y(_,t,t.state);let S=m?LA(t,e,_):null;s.__fetching=!0,Ft(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ot(t,"onFetchStart"),vt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,F=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){S!==void 0&&Wu(t,e);let ie={message:"Not authenticated"};ot(t,"onFetchError",ie),vt(e,t,"onFetchError",ie);return}}let w=o[i];if(!L(w))return;let $={from:a,data:_,headers:p,baseUrl:h};e.params&&($.params=gb(e.params,t,r));let q=ca(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=fb(e),j=await db(()=>w($),te),{data:I,error:Q}=j||{};if(Q){S!==void 0&&Wu(t,e),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",Q),L(v)&&v(Q,_,t),L(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ot(t,"onFetchComplete",I),vt(e,t,"onFetchComplete",I),L(b)&&b(I,_,t),L(x)&&x(I,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-F}),g){let oe=W(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Vt]of Me)Vt.startsWith(a+":")&&Fo(Vt);else Fo(ie)}}catch(w){S!==void 0&&Wu(t,e),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),ot(t,"onFetchError",w),vt(e,t,"onFetchError",w),L(v)&&v(w,_,t),L(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},Yu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=W(o)?o.map(a=>hb(Ne(a,t),t)).filter(Boolean):[hb(o,t)].filter(Boolean);for(let a of s){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?MA:hr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{jA({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&DA(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)hr(l,t,n,{force:!0,...a})},i.fetchNextPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__nextPageParam;if(l==null)return;let c={...a,cursor:l};hr(c,t,n,{direction:"next",force:!0})},i.fetchPreviousPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__prevPageParam;if(l==null)return;let c={...a,cursor:l};hr(c,t,n,{direction:"previous",force:!0})}},HE={invalidateQueries:e=>{if(!e){Fo();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Fo(t);else if(W(e)){let t=e.join(":");for(let[r]of Me)r.includes(t)&&Fo(r)}},removeQueries:e=>{if(!e){aa();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&aa(t)},getQueryData:e=>$o(e)?.data??void 0,setQueryData:(e,t)=>{let r=$o(e),n=L(t)?t(r?.data):t;Io(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Uu(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!L(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Io(o,i.data,null);a.gcTime=Vu(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>aa(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||aa(r))}},qE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Po.clear(),Yu(t,e,e.state,e.context))}},GE=Yu});function KE(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function XE(e){let t=this,{parent:r}=t;if(L(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function YE(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(L(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function JE(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(L(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Cv(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(M(n)&&o)Cv.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function ZE(e){let t=this;if(Go("beforeRemove",t,e)===!1)return t;L(t.node.remove)?t.node.remove():qo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=sd(t.parent.__ref.__children,t.key)),Go("remove",t,e)}function QE(e){return this[e]}function eO(e,t){let r=this;if(e)return r.update(e,t),r}function tO(e){return e?this.__ref&&this.__ref[e]:this.__ref}function rO(){return this.getRef("__children").map(e=>this[e])}function nO(){return this.getRef().path}function oO(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=Rb();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=L(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=Rb()),e?t?.[e]:t}function sO(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function iO(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function aO(e){let t=this.getRoot()?.context;return e?t[e]:t}function lO(e){let t=this.context;return e?t[e]:t}function Av(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Xo.has(r)&&!cd.has(r)||t.push(r);return t}function Ev(e=[]){let t=this,r={},n=Av.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=L(l&&l.parse)?l.parse():l;r[a]=L(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else Ho(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Vf(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Ev.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>ce(a)?Vf.call(a,e,t):a):ce(i)&&(n[s]=Vf.call(i,e,t))}return n}function Ov(...e){if(yr!=="test"&&yr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
87
87
|
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function cO(...e){(yr==="test"||yr==="development")&&console.log(...e)}function uO(...e){(yr==="test"||yr==="development")&&console.warn(...e)}function zf(...e){if(yr==="test"||yr==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Ov.call(this),new Error(...e)}}function fO(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function dO(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function pO(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let s in e)e[s]!==r[s]&&(o=!0,n[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(n,ct(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function hO(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(s=>{zf.call(this,s)}),o}catch(o){if(zf.call(this,o),r?.strictMode)throw o}}async function gO(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Vo(),da));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Vo(),da));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Vo(),da)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Vo(),da));await o(n,e.context)}return n}function mO(e){let t=this,r=e||bd.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Ju(t,n),r===!0)return n;let o=bO[r];return o?o(n):n}function yO(e,t){return!!(Va.has(e)||t?.context?.methods?.[e])}var yr,mb,Tv,Rb,Rv,Ju,NA,yb,BA,VA,zA,UA,WA,HA,bO,FD=X(()=>{"use strict";jE(),Za(),je(),Gr(),wE(),Ya(),DE(),yr="production",mb=null,Tv=e=>{mb=e||null},Rb=()=>mb||null,Rv=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),Ju=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&NA(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Ju(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&Ju(i,t)},NA=(e,t)=>{let r=t.replaceAll("../","").replaceAll("~/","").split("/"),n=e;for(let o=0;o<r.length;o++){let s=r[o];o===r.length-1?n[s]||(n[s]=!0):(n[s]===!0&&(n[s]={}),n[s]||(n[s]={}),n=n[s])}},yb=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([o,s])=>s===!0?`${r}${o}`:`${r}${o} {
|
|
88
88
|
${yb(s,t+1)}
|
|
89
89
|
${r}}`).join(`
|
|
@@ -95,7 +95,7 @@ ${yb(e,1)}
|
|
|
95
95
|
FROM ${a}${c}`},WA=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?t.push(i):r(n[s],i)}};return r(e,""),t},HA=e=>{let t=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${t(n[s])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},bO={graphql:BA,"json-api":VA,odata:zA,sql:UA,supabase:HA,paths:WA}}),qA,Pv,jD=X(()=>{"use strict";Fx(),qA={snapshotId:pd},Pv=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let i=qA.snapshotId();return r.__currentSnapshot=i,[i,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}}),Uf,$v,DD=X(()=>{Uf=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),$v=e=>typeof e=="string"&&Uf.has(e)});async function xO(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var LD=X(()=>{"use strict"});function MD(e){return/^[0-9.]+$/.test(e)&&e!==""}var Lt,Wf,Iv,Hf,Fv,ND=X(()=>{"use strict";Lt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Lt.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Lt.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Lt.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Lt.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!MD(t)?`${Lt.symbols.url}/${e}`:`${Lt.symbols.url}/${e}/${t}.js`}},Wf={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Iv=(e={})=>{let{packageManager:t}=e;return Wf[t]||null},Hf=(e,t="latest",r="esmsh")=>(Lt[r]||Lt.esmsh).formatUrl(e,t),Fv=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Hf(s,i,t)}return`<script type="importmap">{
|
|
96
96
|
"imports": ${JSON.stringify(o,null,2)}
|
|
97
97
|
}<\/script>`}}),jv,BD=X(()=>{"use strict";jv=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}}),Dv,VD=X(()=>{"use strict";Dv=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}}),Lv,zD=X(()=>{"use strict";Lv=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),Mv,UD=X(()=>{"use strict";Mv=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function vO(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${e}"]`);if(i)return o(i);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function _O(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${e}"]`);if(i)return o(i);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var Nv,Bv,Vv,zv,Uv,WD=X(()=>{"use strict";Nv=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.src=e,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Bv=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.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;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),n()},s.onerror=()=>{t.body.removeChild(i),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),Vv=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let s=t.createElement("script");s.type=n,s.text=o.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},zv=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Uv=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.id=o,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function HD(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!SO(o))return o;let s=t[o];return s?.src?s.src:o},n={...e};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function Hu(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function qD(e,t,r){let n=(t.config||t.settings||{}).polyglot||t.polyglot,o=r?.lang||n?.defaultLang||"en",s=(n?.translations||{})[o]||{},i=r?.state||{},a={...e};for(let[l,c]of Object.entries(a))typeof c!="string"||!c.includes("{{")||(a[l]=c.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,f)=>{let p=d.trim();if(f==="polyglot")return s[p]??Hu(s,p)??u;if(f==="getLocalStateLang")return Hu(i,p+o)??u;let h=Hu(i,p);return h!==void 0?h:s[p]??Hu(s,p)??u}));return a}function GA(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function wO(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=M(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=GA(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=GA(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=qD(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=HD(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var st,KA,Wv,SO,GD=X(()=>{"use strict";je(),st=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},KA=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${st(r)}"`).join(" "),Wv=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((r,[n,o])=>{if(!o&&o!==0&&o!==!1)return r;if(n==="title")return r.push(`<title>${st(o)}</title>`),r;if(n==="canonical")return r.push(`<link rel="canonical" href="${st(o)}">`),r;if(n==="manifest")return r.push(`<link rel="manifest" href="${st(o)}">`),r;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="string")r.push(`<link rel="icon" href="${st(a)}">`);else if(typeof a=="object"){let l=KA(a);/rel=/.test(l)?r.push(`<link ${l}>`):r.push(`<link rel="icon" ${l}>`)}}),r;if(n==="alternate")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="object"){let l=Object.entries(a).filter(([c,u])=>u!==void 0).map(([c,u])=>`${c}="${st(u)}"`).join(" ");r.push(`<link rel="alternate" ${l}>`)}}),r;let s=(a,l,c="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")r.push(`<meta ${c}="${st(a)}" content="${st(l)}">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${c}="${st(a)}" content="${st(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${st(p)}"`).join(" ");r.push(`<meta ${d}>`)}});else if(typeof l=="object"){let u=Object.entries(l).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d}="${st(f)}"`).join(" ");r.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let a=n.replace("http-equiv:","");return s(a,o,"http-equiv"),r}if(n.startsWith("itemprop:")){let a=n.replace("itemprop:","");return s(a,o,"itemprop"),r}let i=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(a=>n.startsWith(a));if(i){let a=n.replace(i,"");return s(`${i.replace(":","")}:${a}`,o,i==="twitter:"||i==="DC:"||i==="DCTERMS:"?"name":"property"),r}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let a=n.startsWith("apple:")?"apple-":"msapplication-",l=n.replace(/^apple:|^msapplication:/,"");return s(`${a}${l}`,o,"name"),r}return s(n,o),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
|
|
98
|
-
`)),SO=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),qf,Hv,KD=X(()=>{"use strict";je(),qf=(e,t)=>(W(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Hv=(e,t)=>(e=parseFloat(e),M(t)&&(t=Object.values(t)),qf(e,t))});function qa(e){let t=String(e||"").trim();if(!t)return{owner:Pb,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=Pb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function qv(e,t={}){return(t.provider||"kv")==="api"?XA(e,t):await XD(e,t)||XA(e,t)}async function XD(e,t={}){let r=t.kvBaseUrl||CO,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function XA(e,t={}){let r=t.apiBaseUrl||AO,{key:n}=qa(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:p}=qa(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function kO(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(M(r))return r;if(R(r)){let{full:n}=qa(r);if(!n)return null;try{let o=await qv(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var Pb,CO,AO,$a,Gv,YD=X(()=>{"use strict";je(),Pb="system",CO="https://smbls-kv.nika-980.workers.dev",AO="https://api.symbols.app",$a=(e,t)=>{for(let r in t)r in e?M(e[r])&&M(t[r])&&$a(e[r],t[r]):e[r]=t[r]},Gv=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(M(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(M(n[o])&&M(e[o]))if(o==="designSystem")$a(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}}),Kv,Xv,Yv,xd,Jv,vd,Zv,rl,JD=X(()=>{"use strict";je(),Kv=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Xv=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},Yv=e=>e.replace(/[^a-zA-Z0-9_]/g,""),xd=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),Jv=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),vd=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Zv=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},rl=e=>{if(W(e))return e;if(R(e))return e.split(" ");if(M(e))return Object.values(e);if($n(e))return[e]}}),Qv,ZD=X(()=>{"use strict";Qv=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Qt,zo,_d,wd,QD=X(()=>{"use strict";Qt=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},zo=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},_d=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return zo(t,{keepOneX:!1})},wd=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:zo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=zo(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}}),eL={};Y(eL,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>mx,DOMQ_PROPERTIES:()=>Xo,ENV:()=>jx,HTML_TAGS:()=>Wa,METHODS:()=>Va,METHODS_EXL:()=>ud,NODE_ENV:()=>Dt,OPTIONS:()=>bd,PACKAGE_MANAGER_TO_CDN:()=>Wf,PARSED_DOMQ_PROPERTIES:()=>cd,PROPS_METHODS:()=>Rn,STATE_METHODS:()=>Tn,STATE_PROPERTIES:()=>gx,SVG_TAGS:()=>Yx,TYPES:()=>ya,UNIVERSAL_RESERVED_KEYS:()=>Uf,addCaching:()=>If,addContext:()=>$f,addExtend:()=>tv,addExtends:()=>Qe,addItemAfterEveryElement:()=>rx,addProtoToArray:()=>id,addRef:()=>Tf,applyDependentState:()=>vv,applyEvent:()=>Nf,applyEventUpdate:()=>Bf,applyExtends:()=>nv,applyProps:()=>Pa,arrayContainsOtherArray:()=>Xb,arraysEqual:()=>ox,arrayzeValue:()=>rl,buildImgSrcset:()=>_d,buildSourcesAndImg:()=>wd,cache:()=>kv,call:()=>hO,captureSnapshot:()=>Pv,checkForStateTypes:()=>mv,checkIfInherits:()=>Mf,checkIfStringIsInArray:()=>ax,clone:()=>bx,cloneAndMergeArrayExtend:()=>ka,cloneFunction:()=>kE,concatAddExtends:()=>Zx,copyJavaScriptToClipboard:()=>Xv,copyStringToClipboard:()=>Kv,createBasedOnType:()=>Of,createElement:()=>gv,createElementExtends:()=>bf,createExtends:()=>md,createExtendsFromKeys:()=>Ha,createExtendsStack:()=>wf,createIfConditionFlag:()=>Ux,createInheritedState:()=>yv,createKey:()=>hd,createNestedObject:()=>Ex,createNestedObjectByKeyPath:()=>xv,createObjectWithoutPrototype:()=>df,createParent:()=>Rf,createPath:()=>Pf,createProps:()=>yd,createPropsStack:()=>Af,createRoot:()=>hv,createScope:()=>wv,createSnapshotId:()=>pd,customDecodeURIComponent:()=>hx,customEncodeURIComponent:()=>px,cutArrayAfterValue:()=>ex,cutArrayBeforeValue:()=>Qb,debounce:()=>SE,debounceOnContext:()=>Bx,decodeNewlines:()=>dx,deepClone:()=>ct,deepContains:()=>Cx,deepDefaults:()=>$a,deepDestringifyFunctions:()=>xx,deepExtend:()=>yf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>ba,defineSetter:()=>Rv,destringifyGlobalScope:()=>vx,detectHeightOnInit:()=>Dv,detectInfiniteLoop:()=>Px,document:()=>be,encodeNewlines:()=>fx,error:()=>zf,excludeKeysFromObject:()=>Ix,exec:()=>Ne,extendCachedRegistry:()=>Qx,extendStackRegistry:()=>_a,extractArrayExtend:()=>Sa,fetchLibraryData:()=>qv,fibonacciNumberByIndex:()=>Lv,filterArrays:()=>sx,filterArraysFast:()=>ix,finalizeExtends:()=>Sf,findClosestNumber:()=>qf,findClosestNumberInFactory:()=>Hv,findInheritedState:()=>Lf,findKeyPosition:()=>cx,flattenExtend:()=>Bo,formatDate:()=>jv,generateHash:()=>hf,generateKey:()=>va,generateMetaTags:()=>Wv,get:()=>QE,getCDNUrl:()=>Hf,getCapitalCaseKeys:()=>OE,getCdnProviderFromConfig:()=>Iv,getChildStateInKey:()=>Df,getChildren:()=>rO,getContext:()=>lO,getCookie:()=>Kx,getDB:()=>gO,getEmotionStylesheet:()=>Qv,getExtendsInElement:()=>rv,getExtendsStack:()=>Aa,getExtendsStackRegistry:()=>mf,getFrequencyInArray:()=>Yb,getHashedExtend:()=>wa,getImportMapScript:()=>Fv,getInObjectByPath:()=>Rx,getLocalStorage:()=>CE,getNev:()=>Nx,getPageMetadata:()=>wO,getParentStateInKey:()=>jf,getPath:()=>nO,getQuery:()=>mO,getRef:()=>tO,getRoot:()=>sO,getRootContext:()=>aO,getRootData:()=>iO,getRootState:()=>oO,getRootStateInKey:()=>Ff,getSpreadChildren:()=>TE,global:()=>qb,hasFunction:()=>No,hasHandlerPlugin:()=>el,hasOwnProperty:()=>wx,inheritChildExtends:()=>vf,inheritChildPropsExtends:()=>xf,inheritParentProps:()=>Oa,inheritRecursiveChildExtends:()=>_f,initProps:()=>dv,is:()=>Zt,isArray:()=>W,isBoolean:()=>af,isContextComponent:()=>RE,isCyclic:()=>$x,isDOMNode:()=>at,isDate:()=>cf,isDefined:()=>Ho,isDevelopment:()=>gd,isEmpty:()=>uf,isEmptyObject:()=>Sx,isEqualDeep:()=>ff,isFunction:()=>L,isHtmlElement:()=>rd,isLocal:()=>Mx,isMethod:()=>yO,isMobile:()=>qx,isNode:()=>Xa,isNot:()=>Kb,isNotProduction:()=>Qa,isNull:()=>lf,isNumber:()=>$n,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Mv,isProduction:()=>qo,isStaging:()=>Lx,isState:()=>bv,isString:()=>R,isStringFunction:()=>zx,isTest:()=>pf,isTesting:()=>Dx,isUndefined:()=>Nt,isUniversallyReservedKey:()=>$v,isValidHtmlTag:()=>Jx,joinArrays:()=>Na,jointStacks:()=>ev,keys:()=>Av,loadCssFile:()=>zv,loadJavascript:()=>Uv,loadJavascriptFile:()=>Nv,loadJavascriptFileEmbedSync:()=>Vv,loadJavascriptFileSync:()=>Bv,loadRemoteCSS:()=>_O,loadRemoteScript:()=>vO,log:()=>cO,logGroupIf:()=>Hx,logIf:()=>Wx,lookdown:()=>YE,lookdownAll:()=>JE,lookup:()=>XE,lowercaseFirstLetter:()=>Ja,makeObjectWithoutPrototype:()=>kx,map:()=>yx,mapStringsWithContextComponents:()=>Ca,matchesComponentNaming:()=>On,memoize:()=>Vx,merge:()=>lt,mergeSharedLibraries:()=>Gv,nextElement:()=>fO,normalizeLibraryKey:()=>qa,objectToString:()=>xa,objectizeStringProperty:()=>Ea,overwrite:()=>fd,overwriteDeep:()=>In,overwriteShallow:()=>dd,overwriteState:()=>_v,parse:()=>Ev,parseDeep:()=>Vf,pickupElementFromProps:()=>iv,pickupPropsFromElement:()=>sv,previousElement:()=>dO,propExists:()=>fv,propertizeElement:()=>av,propertizeUpdate:()=>$E,remove:()=>ZE,removeChars:()=>Yv,removeCookie:()=>Xx,removeDuplicateProps:()=>Ta,removeDuplicatesInArray:()=>Ba,removeFromArray:()=>Jb,removeFromObject:()=>Ax,removeNestedKeyByPath:()=>Ox,removeValueFromArray:()=>sd,removeValueFromArrayAll:()=>tx,reorderArrayByValues:()=>nx,replaceLiteralsWithObjectFields:()=>vE,replaceOctalEscapeSequences:()=>ux,resolveAsset:()=>Qt,resolveHandler:()=>za,resolveSharedLibraries:()=>kO,returnValueAsText:()=>Ef,runPluginHook:()=>Ua,self:()=>Gb,setActiveRootState:()=>Tv,setCookie:()=>Gx,setHashedExtend:()=>gf,setInObjectByPath:()=>Tx,setLocalStorage:()=>AE,setNodeStyles:()=>Cv,setProps:()=>eO,setPropsPrototype:()=>kf,spotByPath:()=>KE,srcsetFor:()=>zo,stringIncludesAny:()=>ad,stringToObject:()=>_x,swapItemsInArray:()=>Zb,syncProps:()=>Ra,toCamelCase:()=>xd,toDashCase:()=>vd,toDescriptionCase:()=>Zv,toTitleCase:()=>Jv,toggleFullscreen:()=>xO,triggerEventOn:()=>Go,triggerEventOnUpdate:()=>Sv,trimStringFromSymbols:()=>lx,unstackArrayOfObjects:()=>od,update:()=>lv,updateProps:()=>pv,variables:()=>pO,verbose:()=>Ov,warn:()=>uO,window:()=>le});var N=X(()=>{"use strict";Fx(),wE(),je(),Gr(),tl(),Ya(),nd(),SD(),kD(),ld(),td(),CD(),EE(),PE(),FE(),ov(),OD(),TD(),Za(),RD(),FD(),DE(),jD(),jE(),DD(),LD(),ND(),BD(),VD(),zD(),UD(),WD(),GD(),KD(),YD(),JD(),ZD(),QD()}),tL=Hb((e,t)=>{var r=1e3,n=r*60,o=n*60,s=o*24,i=s*7,a=s*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=s?Math.round(f/s)+"d":p>=o?Math.round(f/o)+"h":p>=n?Math.round(f/n)+"m":p>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=s?d(f,p,s,"day"):p>=o?d(f,p,o,"hour"):p>=n?d(f,p,n,"minute"):p>=r?d(f,p,r,"second"):f+" ms"}function d(f,p,h,g){var m=p>=h*1.5;return Math.round(f/h)+" "+g+(m?"s":"")}}),rL=Hb((e,t)=>{function r(n){s.debug=s,s.default=s,s.coerce=d,s.disable=c,s.enable=a,s.enabled=u,s.humanize=tL(),s.destroy=f,Object.keys(n).forEach(p=>{s[p]=n[p]}),s.names=[],s.skips=[],s.formatters={};function o(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return s.colors[Math.abs(h)%s.colors.length]}s.selectColor=o;function s(p){let h,g=null,m,y;function b(...v){if(!b.enabled)return;let x=b,_=Number(new Date),S=_-(h||_);x.diff=S,x.prev=h,x.curr=_,h=_,v[0]=s.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let E=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(F,w)=>{if(F==="%%")return"%";E++;let $=s.formatters[w];if(typeof $=="function"){let q=v[E];F=$.call(x,q),v.splice(E,1),E--}return F}),s.formatArgs.call(x,v),(x.log||s.log).apply(x,v)}return b.namespace=p,b.useColors=s.useColors(),b.color=s.selectColor(p),b.extend=i,b.destroy=s.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==s.namespaces&&(m=s.namespaces,y=s.enabled(p)),y),set:v=>{g=v}}),typeof s.init=="function"&&s.init(b),b}function i(p,h){let g=s(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function a(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?s.skips.push(g.slice(1)):s.names.push(g)}function l(p,h){let g=0,m=0,y=-1,b=0;for(;g<p.length;)if(m<h.length&&(h[m]===p[g]||h[m]==="*"))h[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function c(){let p=[...s.names,...s.skips.map(h=>"-"+h)].join(",");return s.enable(""),p}function u(p){for(let h of s.skips)if(l(p,h))return!1;for(let h of s.names)if(l(p,h))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){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 s.enable(s.load()),s}t.exports=r}),nL=Hb((e,t)=>{e.formatArgs=n,e.save=o,e.load=s,e.useColors=r,e.storage=i(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!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`."))}})(),e.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 r(){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 l;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&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function i(){try{return localStorage}catch{}}t.exports=rL()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var EO={};Y(EO,{CSS_NATIVE_COLOR_REGEX:()=>jn,CSS_UNITS:()=>t_,applyMediaSequenceVars:()=>Kf,applySequenceGlobalVars:()=>d_,applySequenceVars:()=>Ad,changeLightness:()=>cL,colorStringToRgbaArray:()=>Fn,convertSvgToSymbol:()=>YO,findHeadingLetter:()=>qO,findHeadings:()=>GO,generateSequence:()=>br,generateSequencePosition:()=>KL,generateSprite:()=>Ib,generateSubSequence:()=>u_,getColorShade:()=>$O,getDefaultOrFirstKey:()=>r_,getFnPrefixAndValue:()=>ol,getFontFace:()=>dL,getFontFaceEach:()=>kd,getFontFaceEachString:()=>DO,getFontFaceString:()=>LO,getFontFormat:()=>FO,getRgbTone:()=>Ia,getSequenceValue:()=>f_,getSequenceValueBySymbols:()=>HO,getSequenceValuePropertyPair:()=>Ka,getSubratio:()=>UO,getSubratioDifference:()=>c_,hexToRgb:()=>sL,hexToRgbArray:()=>OO,hexToRgba:()=>aL,hslToRgb:()=>PO,isCSSVar:()=>Ue,isGoogleFontsUrl:()=>n_,isResolvedColor:()=>Yo,isScalingUnit:()=>e_,mixTwoColors:()=>oL,mixTwoRgb:()=>lL,mixTwoRgba:()=>IO,numToLetterMap:()=>Hr,opacify:()=>$b,parseColorToken:()=>nl,resolveFileUrl:()=>mr,returnSubThemeOrDefault:()=>fL,rgbArrayToHex:()=>TO,rgbToHSL:()=>RO,rgbToHex:()=>iL,setCustomFont:()=>s_,setCustomFontMedia:()=>Ga,setFontImport:()=>o_,setInCustomFontMedia:()=>jO,setScalingVar:()=>l_,setSubScalingVar:()=>zO,setVariables:()=>XL,splitTopLevelCommas:()=>Sd});var e_=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",t_=["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"];N();var Fn=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&be&&le){let t=be.body.appendChild(be.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){be.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return be.body.removeChild(t),[0,0,0,0];e=le.getComputedStyle(t).color,be.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},oL=(e,t,r=.5)=>(e=Fn(e),t=Fn(t),IO(e,t,r)),sL=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},OO=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},iL=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),TO=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),aL=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},lL=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},cL=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},RO=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},PO=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],$O=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},IO=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},$b=(e,t)=>{let r=Fn(e);if(!r){Qa()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},Ue=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,jn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,uL=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,nl=e=>{if(!R(e))return null;if(jn.test(e))return{passthrough:e};if(Ue(e))return{cssVar:e};let t=e.match(uL);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},Yo=e=>R(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),Sd=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},Ia=(e,t)=>{R(e)&&e.includes("rgb")&&(e=Fn(e).join(", ")),R(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),$n(t)&&(t+="");let r=TO(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=$O(r,parseFloat(t));return OO(o).join(", ")}else{let[o,s,i]=e,a=RO(o,s,i),[l,c,u]=a;return PO(l,c,parseFloat(t)/100*255)}},fL=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},mr=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},r_=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},FO=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},n_=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),o_=e=>`@import url('${e}');`,jO=e=>`@font-face { ${e} }`,s_=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=FO(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
|
|
98
|
+
`)),SO=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),qf,Hv,KD=X(()=>{"use strict";je(),qf=(e,t)=>(W(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Hv=(e,t)=>(e=parseFloat(e),M(t)&&(t=Object.values(t)),qf(e,t))});function qa(e){let t=String(e||"").trim();if(!t)return{owner:Pb,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=Pb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function qv(e,t={}){return(t.provider||"kv")==="api"?XA(e,t):await XD(e,t)||XA(e,t)}async function XD(e,t={}){let r=t.kvBaseUrl||CO,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function XA(e,t={}){let r=t.apiBaseUrl||AO,{key:n}=qa(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:p}=qa(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function kO(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(M(r))return r;if(R(r)){let{full:n}=qa(r);if(!n)return null;try{let o=await qv(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var Pb,CO,AO,$a,Gv,YD=X(()=>{"use strict";je(),Pb="system",CO="https://smbls-kv.nika-980.workers.dev",AO="https://api.symbols.app",$a=(e,t)=>{for(let r in t)r in e?M(e[r])&&M(t[r])&&$a(e[r],t[r]):e[r]=t[r]},Gv=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(M(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(M(n[o])&&M(e[o]))if(o==="designSystem")$a(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}}),Kv,Xv,Yv,xd,Jv,vd,Zv,rl,JD=X(()=>{"use strict";je(),Kv=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Xv=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},Yv=e=>e.replace(/[^a-zA-Z0-9_]/g,""),xd=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),Jv=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),vd=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Zv=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},rl=e=>{if(W(e))return e;if(R(e))return e.split(" ");if(M(e))return Object.values(e);if($n(e))return[e]}}),Qv,ZD=X(()=>{"use strict";Qv=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Qt,zo,_d,wd,QD=X(()=>{"use strict";Qt=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},zo=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},_d=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return zo(t,{keepOneX:!1})},wd=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:zo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=zo(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}}),eL={};Y(eL,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>mx,DOMQ_PROPERTIES:()=>Xo,ENV:()=>jx,HTML_TAGS:()=>Wa,METHODS:()=>Va,METHODS_EXL:()=>ud,NODE_ENV:()=>Dt,OPTIONS:()=>bd,PACKAGE_MANAGER_TO_CDN:()=>Wf,PARSED_DOMQ_PROPERTIES:()=>cd,PROPS_METHODS:()=>Rn,STATE_METHODS:()=>Tn,STATE_PROPERTIES:()=>gx,SVG_TAGS:()=>Yx,TYPES:()=>ya,UNIVERSAL_RESERVED_KEYS:()=>Uf,addCaching:()=>If,addContext:()=>$f,addExtend:()=>tv,addExtends:()=>Qe,addItemAfterEveryElement:()=>rx,addProtoToArray:()=>id,addRef:()=>Tf,applyDependentState:()=>vv,applyEvent:()=>Nf,applyEventUpdate:()=>Bf,applyExtends:()=>nv,applyProps:()=>Pa,arrayContainsOtherArray:()=>Xb,arraysEqual:()=>ox,arrayzeValue:()=>rl,buildImgSrcset:()=>_d,buildSourcesAndImg:()=>wd,cache:()=>kv,call:()=>hO,captureSnapshot:()=>Pv,checkForStateTypes:()=>mv,checkIfInherits:()=>Mf,checkIfStringIsInArray:()=>ax,clone:()=>bx,cloneAndMergeArrayExtend:()=>ka,cloneFunction:()=>kE,concatAddExtends:()=>Zx,copyJavaScriptToClipboard:()=>Xv,copyStringToClipboard:()=>Kv,createBasedOnType:()=>Of,createElement:()=>gv,createElementExtends:()=>bf,createExtends:()=>md,createExtendsFromKeys:()=>Ha,createExtendsStack:()=>wf,createIfConditionFlag:()=>Ux,createInheritedState:()=>yv,createKey:()=>hd,createNestedObject:()=>Ex,createNestedObjectByKeyPath:()=>xv,createObjectWithoutPrototype:()=>df,createParent:()=>Rf,createPath:()=>Pf,createProps:()=>yd,createPropsStack:()=>Af,createRoot:()=>hv,createScope:()=>wv,createSnapshotId:()=>pd,customDecodeURIComponent:()=>hx,customEncodeURIComponent:()=>px,cutArrayAfterValue:()=>ex,cutArrayBeforeValue:()=>Qb,debounce:()=>SE,debounceOnContext:()=>Bx,decodeNewlines:()=>dx,deepClone:()=>ct,deepContains:()=>Cx,deepDefaults:()=>$a,deepDestringifyFunctions:()=>xx,deepExtend:()=>yf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>ba,defineSetter:()=>Rv,destringifyGlobalScope:()=>vx,detectHeightOnInit:()=>Dv,detectInfiniteLoop:()=>Px,document:()=>be,encodeNewlines:()=>fx,error:()=>zf,excludeKeysFromObject:()=>Ix,exec:()=>Ne,extendCachedRegistry:()=>Qx,extendStackRegistry:()=>_a,extractArrayExtend:()=>Sa,fetchLibraryData:()=>qv,fibonacciNumberByIndex:()=>Lv,filterArrays:()=>sx,filterArraysFast:()=>ix,finalizeExtends:()=>Sf,findClosestNumber:()=>qf,findClosestNumberInFactory:()=>Hv,findInheritedState:()=>Lf,findKeyPosition:()=>cx,flattenExtend:()=>Bo,formatDate:()=>jv,generateHash:()=>hf,generateKey:()=>va,generateMetaTags:()=>Wv,get:()=>QE,getCDNUrl:()=>Hf,getCapitalCaseKeys:()=>OE,getCdnProviderFromConfig:()=>Iv,getChildStateInKey:()=>Df,getChildren:()=>rO,getContext:()=>lO,getCookie:()=>Kx,getDB:()=>gO,getEmotionStylesheet:()=>Qv,getExtendsInElement:()=>rv,getExtendsStack:()=>Aa,getExtendsStackRegistry:()=>mf,getFrequencyInArray:()=>Yb,getHashedExtend:()=>wa,getImportMapScript:()=>Fv,getInObjectByPath:()=>Rx,getLocalStorage:()=>CE,getNev:()=>Nx,getPageMetadata:()=>wO,getParentStateInKey:()=>jf,getPath:()=>nO,getQuery:()=>mO,getRef:()=>tO,getRoot:()=>sO,getRootContext:()=>aO,getRootData:()=>iO,getRootState:()=>oO,getRootStateInKey:()=>Ff,getSpreadChildren:()=>TE,global:()=>qb,hasFunction:()=>No,hasHandlerPlugin:()=>el,hasOwnProperty:()=>wx,inheritChildExtends:()=>vf,inheritChildPropsExtends:()=>xf,inheritParentProps:()=>Oa,inheritRecursiveChildExtends:()=>_f,initProps:()=>dv,is:()=>Zt,isArray:()=>W,isBoolean:()=>af,isContextComponent:()=>RE,isCyclic:()=>$x,isDOMNode:()=>at,isDate:()=>cf,isDefined:()=>Ho,isDevelopment:()=>gd,isEmpty:()=>uf,isEmptyObject:()=>Sx,isEqualDeep:()=>ff,isFunction:()=>L,isHtmlElement:()=>rd,isLocal:()=>Mx,isMethod:()=>yO,isMobile:()=>qx,isNode:()=>Xa,isNot:()=>Kb,isNotProduction:()=>Qa,isNull:()=>lf,isNumber:()=>$n,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Mv,isProduction:()=>qo,isStaging:()=>Lx,isState:()=>bv,isString:()=>R,isStringFunction:()=>zx,isTest:()=>pf,isTesting:()=>Dx,isUndefined:()=>Nt,isUniversallyReservedKey:()=>$v,isValidHtmlTag:()=>Jx,joinArrays:()=>Na,jointStacks:()=>ev,keys:()=>Av,loadCssFile:()=>zv,loadJavascript:()=>Uv,loadJavascriptFile:()=>Nv,loadJavascriptFileEmbedSync:()=>Vv,loadJavascriptFileSync:()=>Bv,loadRemoteCSS:()=>_O,loadRemoteScript:()=>vO,log:()=>cO,logGroupIf:()=>Hx,logIf:()=>Wx,lookdown:()=>YE,lookdownAll:()=>JE,lookup:()=>XE,lowercaseFirstLetter:()=>Ja,makeObjectWithoutPrototype:()=>kx,map:()=>yx,mapStringsWithContextComponents:()=>Ca,matchesComponentNaming:()=>On,memoize:()=>Vx,merge:()=>lt,mergeSharedLibraries:()=>Gv,nextElement:()=>fO,normalizeLibraryKey:()=>qa,objectToString:()=>xa,objectizeStringProperty:()=>Ea,overwrite:()=>fd,overwriteDeep:()=>In,overwriteShallow:()=>dd,overwriteState:()=>_v,parse:()=>Ev,parseDeep:()=>Vf,pickupElementFromProps:()=>iv,pickupPropsFromElement:()=>sv,previousElement:()=>dO,propExists:()=>fv,propertizeElement:()=>av,propertizeUpdate:()=>$E,remove:()=>ZE,removeChars:()=>Yv,removeCookie:()=>Xx,removeDuplicateProps:()=>Ta,removeDuplicatesInArray:()=>Ba,removeFromArray:()=>Jb,removeFromObject:()=>Ax,removeNestedKeyByPath:()=>Ox,removeValueFromArray:()=>sd,removeValueFromArrayAll:()=>tx,reorderArrayByValues:()=>nx,replaceLiteralsWithObjectFields:()=>vE,replaceOctalEscapeSequences:()=>ux,resolveAsset:()=>Qt,resolveHandler:()=>za,resolveSharedLibraries:()=>kO,returnValueAsText:()=>Ef,runPluginHook:()=>Ua,self:()=>Gb,setActiveRootState:()=>Tv,setCookie:()=>Gx,setHashedExtend:()=>gf,setInObjectByPath:()=>Tx,setLocalStorage:()=>AE,setNodeStyles:()=>Cv,setProps:()=>eO,setPropsPrototype:()=>kf,spotByPath:()=>KE,srcsetFor:()=>zo,stringIncludesAny:()=>ad,stringToObject:()=>_x,swapItemsInArray:()=>Zb,syncProps:()=>Ra,toCamelCase:()=>xd,toDashCase:()=>vd,toDescriptionCase:()=>Zv,toTitleCase:()=>Jv,toggleFullscreen:()=>xO,triggerEventOn:()=>Go,triggerEventOnUpdate:()=>Sv,trimStringFromSymbols:()=>lx,unstackArrayOfObjects:()=>od,update:()=>lv,updateProps:()=>pv,variables:()=>pO,verbose:()=>Ov,warn:()=>uO,window:()=>le});var N=X(()=>{"use strict";Fx(),wE(),je(),Gr(),tl(),Ya(),nd(),SD(),kD(),ld(),td(),CD(),EE(),PE(),FE(),ov(),OD(),TD(),Za(),RD(),FD(),DE(),jD(),jE(),DD(),LD(),ND(),BD(),VD(),zD(),UD(),WD(),GD(),KD(),YD(),JD(),ZD(),QD()}),tL=Hb((e,t)=>{var r=1e3,n=r*60,o=n*60,s=o*24,i=s*7,a=s*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=s?Math.round(f/s)+"d":p>=o?Math.round(f/o)+"h":p>=n?Math.round(f/n)+"m":p>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=s?d(f,p,s,"day"):p>=o?d(f,p,o,"hour"):p>=n?d(f,p,n,"minute"):p>=r?d(f,p,r,"second"):f+" ms"}function d(f,p,h,g){var m=p>=h*1.5;return Math.round(f/h)+" "+g+(m?"s":"")}}),rL=Hb((e,t)=>{function r(n){s.debug=s,s.default=s,s.coerce=d,s.disable=c,s.enable=a,s.enabled=u,s.humanize=tL(),s.destroy=f,Object.keys(n).forEach(p=>{s[p]=n[p]}),s.names=[],s.skips=[],s.formatters={};function o(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return s.colors[Math.abs(h)%s.colors.length]}s.selectColor=o;function s(p){let h,g=null,m,y;function b(...v){if(!b.enabled)return;let x=b,_=Number(new Date),S=_-(h||_);x.diff=S,x.prev=h,x.curr=_,h=_,v[0]=s.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let E=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(F,w)=>{if(F==="%%")return"%";E++;let $=s.formatters[w];if(typeof $=="function"){let q=v[E];F=$.call(x,q),v.splice(E,1),E--}return F}),s.formatArgs.call(x,v),(x.log||s.log).apply(x,v)}return b.namespace=p,b.useColors=s.useColors(),b.color=s.selectColor(p),b.extend=i,b.destroy=s.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==s.namespaces&&(m=s.namespaces,y=s.enabled(p)),y),set:v=>{g=v}}),typeof s.init=="function"&&s.init(b),b}function i(p,h){let g=s(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function a(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?s.skips.push(g.slice(1)):s.names.push(g)}function l(p,h){let g=0,m=0,y=-1,b=0;for(;g<p.length;)if(m<h.length&&(h[m]===p[g]||h[m]==="*"))h[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function c(){let p=[...s.names,...s.skips.map(h=>"-"+h)].join(",");return s.enable(""),p}function u(p){for(let h of s.skips)if(l(p,h))return!1;for(let h of s.names)if(l(p,h))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){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 s.enable(s.load()),s}t.exports=r}),nL=Hb((e,t)=>{e.formatArgs=n,e.save=o,e.load=s,e.useColors=r,e.storage=i(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!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`."))}})(),e.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 r(){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 l;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&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function i(){try{return localStorage}catch{}}t.exports=rL()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var EO={};Y(EO,{CSS_NATIVE_COLOR_REGEX:()=>jn,CSS_UNITS:()=>t_,applyMediaSequenceVars:()=>Kf,applySequenceGlobalVars:()=>d_,applySequenceVars:()=>Ad,changeLightness:()=>cL,colorStringToRgbaArray:()=>Fn,convertSvgToSymbol:()=>YO,findHeadingLetter:()=>qO,findHeadings:()=>GO,generateSequence:()=>br,generateSequencePosition:()=>KL,generateSprite:()=>Ib,generateSubSequence:()=>u_,getColorShade:()=>$O,getDefaultOrFirstKey:()=>r_,getFnPrefixAndValue:()=>ol,getFontFace:()=>dL,getFontFaceEach:()=>kd,getFontFaceEachString:()=>DO,getFontFaceString:()=>LO,getFontFormat:()=>FO,getRgbTone:()=>Ia,getSequenceValue:()=>f_,getSequenceValueBySymbols:()=>HO,getSequenceValuePropertyPair:()=>Ka,getSubratio:()=>UO,getSubratioDifference:()=>c_,hexToRgb:()=>sL,hexToRgbArray:()=>OO,hexToRgba:()=>aL,hslToRgb:()=>PO,isCSSVar:()=>Ue,isGoogleFontsUrl:()=>n_,isResolvedColor:()=>Yo,isScalingUnit:()=>e_,mixTwoColors:()=>oL,mixTwoRgb:()=>lL,mixTwoRgba:()=>IO,numToLetterMap:()=>Hr,opacify:()=>$b,parseColorToken:()=>nl,resolveFileUrl:()=>mr,returnSubThemeOrDefault:()=>fL,rgbArrayToHex:()=>TO,rgbToHSL:()=>RO,rgbToHex:()=>iL,setCustomFont:()=>s_,setCustomFontMedia:()=>Ga,setFontImport:()=>o_,setInCustomFontMedia:()=>jO,setScalingVar:()=>l_,setSubScalingVar:()=>zO,setVariables:()=>XL,splitTopLevelCommas:()=>Sd});var e_=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",t_=["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"];N();var Fn=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&be&&le){let t=be.body.appendChild(be.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){be.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return be.body.removeChild(t),[0,0,0,0];e=le.getComputedStyle(t).color,be.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},oL=(e,t,r=.5)=>(e=Fn(e),t=Fn(t),IO(e,t,r)),sL=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},OO=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},iL=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),TO=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),aL=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},lL=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},cL=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},RO=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},PO=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],$O=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},IO=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},$b=(e,t)=>{let r=Fn(e);if(!r){Qa()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},Ue=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,jn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,uL=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,nl=e=>{if(!R(e))return null;if(jn.test(e))return{passthrough:e};if(Ue(e))return{cssVar:e};let t=e.match(uL);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},Yo=e=>R(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),Sd=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},Ia=(e,t)=>{R(e)&&e.includes("rgb")&&(e=Fn(e).join(", ")),R(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),$n(t)&&(t+="");let r=TO(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=$O(r,parseFloat(t));return OO(o).join(", ")}else{let[o,s,i]=e,a=RO(o,s,i),[l,c,u]=a;return PO(l,c,parseFloat(t)/100*255)}},fL=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},mr=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},r_=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},FO=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},n_=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),o_=e=>`@import url('${e}');`,jO=e=>`@font-face { ${e} }`,s_=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=FO(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
|
|
99
99
|
`);return`
|
|
100
100
|
font-family: '${e}';
|
|
101
101
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
@@ -103,7 +103,7 @@ FROM ${a}${c}`},WA=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
|
|
|
103
103
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
104
104
|
font-display: ${n.fontDisplay};`:""}
|
|
105
105
|
src: ${o};`},Ga=(e,t,r,n)=>`@font-face {${s_(e,t,r,n)}
|
|
106
|
-
}`,kd=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>mr(u,r)||u):mr(o,r)||o;return s_(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),dL=e=>Object.keys(e).map(t=>kd(t,e[t].value)),DO=(e,t,r)=>{if(t&&t.isVariable){let o=mr(t.url,r)||t.url;return n_(o)?o_(o):Ga(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return kd(e,t,r).map(jO);let n=Array.isArray(t.url)?t.url.map(o=>mr(o,r)||o):mr(t.url,r)||t.url;return Ga(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},LO=(e,t)=>Object.keys(e).map(r=>DO(r,e[r].value,t));N();N();N();var MO={};Y(MO,{animation:()=>IL,breakpoints:()=>PL,class:()=>NL,color:()=>wL,devices:()=>$L,document:()=>RL,font:()=>gL,fontFace:()=>bL,fontFamily:()=>mL,fontFamilyTypes:()=>yL,gradient:()=>SL,grid:()=>ML,icons:()=>AL,media:()=>xL,reset:()=>BL,semanticIcons:()=>EL,sequence:()=>Cd,shadow:()=>CL,sizes:()=>zL,spacing:()=>_L,svg:()=>FL,svgData:()=>jL,templates:()=>DL,theme:()=>kL,timing:()=>TL,typography:()=>NO,unit:()=>pL,vars:()=>VL});var Cd={"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},pL={default:"em"},hL={browserDefault:16,base:16,type:"font-size",ratio:Cd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},NO=hL,gL={},mL={},yL={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},bL={},xL={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},vL={base:NO.base,type:"spacing",ratio:Cd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},_L=vL,wL={},SL={},kL={},CL={},AL={},EL={},OL={default:150,base:150,type:"timing",ratio:Cd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},TL=OL,RL={},PL={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},$L={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]},IL={},FL={},jL={},DL={},LL={},ML=LL,NL={},BL={},VL={},zL={},YA={},JA={},qu=MO,Zu={},BO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in qu){let t=e.toLowerCase();Zu[t]=qu[e];let r=BO(t);r!==t&&(Zu[r]=qu[e]),t!==e&&(Zu[e]=qu[e])}var i_={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:YA,cssMediaVars:JA,CSS_VARS:YA,CSS_MEDIA_VARS:JA,_scratchConfig:!0,...Zu},UL=ct(i_),Gf={active:"0",0:i_};var Fa=[],WL=e=>{e&&e._scratchConfig&&Fa.push(e)},HL=()=>{Fa.pop()},H=e=>Fa.length?Fa[Fa.length-1]:Gf[e||Gf.active]||i_,qL=e=>{if(M(e))return Gf.active="1",Gf[1]=tr(e,ct(UL)),e};var Hr={"-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"},a_=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=VO.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},ol=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},VO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),l_=(e,t)=>{let{base:r,type:n,unit:o}=t,s=VO.has(o)?"rem":o,i=(e_(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Hr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Hr[e+1],u=Math.abs(e),d=Math.pow(WO,2*u),f=Hr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},zO=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},c_=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},UO=(e,t)=>c_(e,t).map(r=>r/e),u_=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=c_(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=i+(h+1),y=a+(h+1)/10,b=zO(h+1,c,i,t),v={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};a_(v,t)})},WO=1.618,GL=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(WO,2*n);return Math.max(o,s)},br=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Hr[c],d=GL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=l_(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};a_(g,e),s&&u_(g,e)}return e},KL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Hr[t],a=R(t)?Object.entries(Hr).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=l_(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return a_(p,l),s&&u_(p,l),l},f_=(e="A",t)=>{let r=H(),{unit:n}=r;if(R(e)&&Ue(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(t_.some(y=>e.includes(y))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${vd(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=y=>a.test(y)?`var(${c}${y}${p})`:y;if(f.includes("+")){let[y,b]=f.split("+"),v=`${h(y)} + ${h(b)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}else if(f.includes("*")){let[y,b]=f.split("*"),v=`${h(y)} * ${h(b)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}else if(f.includes("-")){let[y,b]=f.split("-"),v=`${h(y)} - ${h(b)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}let g=r.sizes;if(g){let y=g[e]||g[e.toLowerCase()];if(y!==void 0)return d?`calc(${y} * -1)`:y}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let y=`var(${c}${f}${p})`;return d?`calc(${y} * -1)`:y}let m=o?o[f]:null;return m?s==="ms"||s==="s"?d+m.val+s:d+m.scaling+s:console.warn("can't find",o,f)},HO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:f_(o,t)}).join("")},Ka=(e,t,r,n)=>{if(typeof e!="string")return H().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=ol(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=HO(e,r):e=f_(e,r),{[t]:n?`${n}(${e})`:e}},qO=(e,t)=>Hr[e-t],GO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=qO(t,o);return r[s]})};N();var XL=(e,t)=>{let r=H(),{cssVars:n}=r;ce(e.value)||(n[e.var]=e.value)},d_=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=UO(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},KO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ad=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=KO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||d_(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},Kf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=KO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),d_(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(e_(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};N();var XO=Qa(),Ib=e=>{let t=H(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},YL=e=>{let t=e&&(e.default||e);if(!R(t))return XO&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},JL=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},ZA=new Set,YO=(e,t)=>{let r=t&&t.default?t.default:t;if(!R(r))return XO&&!ZA.has(e)&&(ZA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=YL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=JL(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=eM(a),a},ZL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",QL=new RegExp(`<(${ZL})\\b([^>]*?)\\s*/>`,"g"),eM=e=>e.replace(QL,"<$1$2></$1>"),JO={};Y(JO,{appendSVGSprite:()=>dT,appendSvgIconsSprite:()=>hT,applyDocument:()=>fT,applyHeadings:()=>nT,applyReset:()=>mT,applySpacingSequence:()=>aT,applyTimingSequence:()=>uT,applyTypographySequence:()=>oT,checkIfBoxSize:()=>iT,getColor:()=>$e,getFontFamily:()=>tT,getFontSizeByKey:()=>sT,getMediaColor:()=>wt,getMediaTheme:()=>qr,getShadow:()=>cT,getSpacingBasedOnRatio:()=>Ko,getSpacingByKey:()=>ze,getTheme:()=>p_,getTimingByKey:()=>gr,getTimingFunction:()=>Pn,runThroughMedia:()=>rT,setColor:()=>ja,setFont:()=>eT,setFontFamily:()=>Db,setGradient:()=>Da,setMediaTheme:()=>h_,setSVG:()=>m_,setShadow:()=>La,setSvgIcon:()=>pT,setTheme:()=>ZO,splitSpacedValue:()=>lT});N();var $e=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(W(e))[o,s,i]=e;else{let d=nl(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=Ia(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},wt=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let o;if(W(e))o=e[0];else{let c=nl(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=M(a);if(l&&a.value)return $e(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return $e(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=$e(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},ja=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)){let h=e.slice(2);if(e=$e(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||W(m)||M(m))&&(n.color[g[0]]=ja(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=Ia(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=Fn(g[0]);v&&v.length>=3?e=`rgba(${Ia(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(W(e)&&(e={"@light":e[0],"@dark":e[1]}),M(e)){let h={};for(let g in e)h[g]=ja(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=h[b],_=x&&(x.value||x);!_||typeof _!="string"||(y[v]=_,(v==="light"||m===void 0)&&(m=_))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(R(s)&&s.includes(".")&&!s.includes("(")){let[h,g]=s.split("."),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(R(s)&&!s.includes("(")&&!s.startsWith("#")){let h=nl(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||W(g)||M(g))&&(n.color[h.name]=ja(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Ia(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=Fn(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Da=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)&&(e=$e(e.slice(2))),W(e))return{"@light":Da(e[0],t,"light"),"@dark":Da(e[0],t,"dark")};if(M(e)){let s={};for(let i in e)s[i]=Da(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};N();var tM=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"]),QA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],rM=e=>{for(let t=0;t<QA.length;t++)if(e.includes(QA[t]))return!0;return!1},Ed=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?$e(e[i]):e[i]}),t},ha=e=>(e.value||(e.value=Ed(e)),e.value),p_=(e,t)=>{let r=H();if(r.useVariable)return qr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return ha(i);e=[o,s||t]}}if(ce(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return ha(a[s]);if(i&&i[s])return ha(i[s]);if(l&&l[s])return ha(l[s])}else if(M(e))return Ed(e)},nM=(e,t,r)=>{if(M(t))e.variants.inverse.value=Ed(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},oM=(e,t,r,n)=>{let o=p_(r);n[`&:${t}`]=o,M(r)&&!r.value&&(r.value=o)},sM=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return oM(e,n,o,t),e}),e):void 0},iM=(e,t,r,n)=>{let o=p_(r);n[`@media (prefers-color-scheme: ${t})`]=o,M(r)&&!r.value&&(r.value=o)},aM=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&iM(e,n,o,t),n==="inverse"&&nM(e,o,t),e}),e):void 0},lM=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:ha(n[o]),e}),e):void 0},ZO=(e,t)=>{let r=H();if(r.useVariable)return h_(e,t);let{state:n,media:o,helpers:s}=e,i=Ed(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return sM(e,i),aM(e,i),lM(e,i),{var:a,value:i,state:n,media:o,helpers:s}},Fb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&rM(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=$e(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!tM.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ce(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Fb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Fb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=$e(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}h!==void 0&&(n[f]=h),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},h_=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(ce(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ce(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=Fb(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=h_(u,t,l,n||d)}else if(!a){let d=$e(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&Ue(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},jb=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(ce(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=jb(e[n]):o==="."&&(r[`&${n}`]=jb(e[n]))}else r[n]=e[n]}return r},QO=(e,t)=>{let r=t.shift();return e[r]?QO(e[r],t):e},eE=(e,t)=>W(t)?QO(e,t):R(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=H();if(R(e)&&Ue(e)&&(e=qr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=W(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=eE(s,o):s&&t&&(s=eE(s,t)),jb(s)};N();N();var eT=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||W(e)&&!e[0])return;let o;if(e.isVariable){let s=mr(e.url,r.files)||e.url;n_(s)?o=o_(s):o=Ga(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=kd(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>mr(i,r.files)||i):mr(e.url,r.files)||e.url;o=Ga(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},tT=(e,t)=>{let r=H(),{fontFamily:n}=r;return r_(t||n,e)},Db=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),M(s)&&(s=rl(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};N();var rT=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;lt(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){lt(i,{sequence:{},scales:{},vars:{}}),br(i),Kf(e,o);continue}lt(i,{sequence:{},scales:{},templates:{},vars:{}}),br(i),Kf(e,o)}},nT=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=GO(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},oT=()=>{let e=H(),{typography:t}=e;br(t),nT(t),Ad(t),rT(t)},sT=e=>{let t=H(),{typography:r}=t;return Ka(e,"fontSize",r)};N();N();var cM=e=>{let t=H().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return br(n),n},uM=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;lt(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),br(r),Kf(e,t)}},iT=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},aT=()=>{let e=H(),{spacing:t}=e;br(t),Ad(t),uM(t)},fM=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:br(e)},ze=(e,t="padding",r,n)=>{let o=fM(r);if(R(e)&&!n&&e.includes("(")){let i=ol(e);n=i[0],e=i[1]}let s=n?[e]:rl(e);if(W(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ka(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Ka(e,t,o,n)}},Ko=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes("(")){let a=ol(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=cM(e);return ze(i,t,a,n)}return ze(i,t,s,n)},lT=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=t_.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};N();var La=(e,t,r,n)=>{let o=H();if(W(e))return{"@light":La(e[0],t,"light"),"@dark":La(e[1],t,"dark")};if(M(e)){let i={};for(let a in e)i[a]=La(e[a],t,a.startsWith("@")?a.slice(1):a);return i}R(e)&&!jn.test(e)&&(e=Sd(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=$e(a);if(Yo(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=ze(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},cT=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let[n]=W(e)?e:e.split(" "),o=r.shadow[n],s=M(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};N();var uT=()=>{let e=H(),{timing:t}=e;br(t),Ad(t)},Pn=e=>{let t=H(),{timing:r}=t;return r[e]||r[xd(e)]||e},gr=(e,t="timing")=>{let r=H(),{timing:n}=r;return Ka(e,t,n)};N();var fT=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return lt(t,{theme:n.document,fontFamily:r_(r),fontSize:o.base,lineHeight:o.lineHeight})};N();var g_={document:be},m_=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?YO(t,e):e},dT=(e,t=g_)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];gT(n,t)},pT=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?m_(e,t):e},hT=(e,t=g_)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];gT(n,t)},bb=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},dM=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},tE=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},gT=(e,t=g_)=>{let r=H(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Ib(e);let o=n.querySelector("#svgSprite"),s=Ib(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=dM(n,s);if(o)if(a)tE(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=bb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=bb(n);l&&l.nodeType&&(tE(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=bb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};N();var mT=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?qr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?qr("document"):{};if(r.html&&In(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return tr(lt(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.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}})}};N();var pM=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),hM=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),gM=e=>pM.has(e),En=e=>{let t=e+"";if(jn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(gM(n)||/^\d/.test(n)||n==="0")return n;let o=$e(n);if(Yo(o))return o;let s=ze(n,"border");return s&&s.border?s.border:n}).join(" ")},mM=e=>jn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ue(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=$e(t);return Yo(r)?r:t}).join(" "),yM=(e,t)=>cT(e,t),rE=(e,t)=>jn.test(e)?e:Sd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=$e(n);if(Yo(o)){let i=wt(n,t);return M(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=ze(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),yT=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=Sd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||hM.has(l)||l==="transparent"||jn.test(l))return l;let c=$e(l);return Yo(c)?c:l}).join(" ")));return n+i.join(", ")+s},bM=(e,t)=>{let r=H();return e.split(", ").map(n=>Ue(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?yT(n,t):r.gradient[e]?{backgroundImage:wt(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!nl(n)?`url(${n})`:n).join(" ")},xM=e=>R(e)&&e.split(" ").map(t=>ze(t,"gap").gap).join(" "),vM=e=>{let t=e.split(" ");return t.length?t.map(r=>Ue(r)?`var(${r})`:r.length<3||r.includes("ms")?gr(r).timing||r:Pn(r)?Pn(r):r).join(" "):e},nE=(e,t,r)=>{if(R(e))return e.split(",").map(n=>gr(n).timing||n).join(",")},_M=e=>{let t=e.split(",");if(t.length)return t.map(vM).join(",")};function Pe(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes("(")){let l=ol(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=iT(e);!i&&a&&!n.ratio&&(o=lT(o))}return n.ratio?Ko(r,e,o,s):ze(o,e,void 0,s)}var se=(e,t=null,r)=>Pe(e,t,r,{ratio:!0}),oE=(e,t,r)=>{if(R(e))return{borderRadius:e.split(" ").map((n,o)=>Ko(t,r,n)[r]).join(" ")}};N();var wM=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},it=e=>e,sE={color:ja,gradient:Da,font:eT,fontFamily:Db,fontfamily:Db,theme:ZO,icons:pT,semanticIcons:it,semanticicons:it,svg:m_,svgData:it,typography:it,shadow:La,spacing:it,media:it,grid:it,class:it,timing:it,reset:it,unit:it,animation:it,vars:wM,sizes:it},SM=(e,t,r)=>{let n=H(),o=BO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=sE[o]||sE[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},kM=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=M(t[o])||W(t[o])?1:0,a=M(t[s])||W(t[s])?1:0;return i-a}).forEach(o=>{try{return SM(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var CM={},y_=(e,t=CM)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=qL(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let F=$=>{x.setAttribute("data-theme",$.matches?"dark":"light")},w=v.matchMedia("(prefers-color-scheme: dark)");if(F(w),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=F;try{w.addEventListener("change",F)}catch{w.addListener(F)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let _=Object.keys(y),S=new Set(_);if(_.forEach(F=>{let w=F.toLowerCase();w!==F&&S.has(w)&&tr(y[w],y[F])}),_.map(F=>{let w=F.toLowerCase();if(!(w!==F&&S.has(w)))return kM(F,y[F])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{oT()}catch(F){r.verbose&&console.warn("Error applying typography sequence",F)}if(y.spacing)try{aT()}catch(F){r.verbose&&console.warn("Error applying spacing sequence",F)}if(y.timing)try{uT()}catch(F){r.verbose&&console.warn("Error applying timing sequence",F)}fT();let E=mT();return E&&(r.reset=E),r};var AM=null,EM=null,OM=null;function TM(e){e.batchAtomicCss&&(EM=e.batchAtomicCss),e.compoundCssClass&&(OM=e.compoundCssClass)}function RM(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Qu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var iE=new WeakMap;function ga(e,t){let r=bT(t);if(!r)return;let n=iE.get(r);if(n||(n=new Set,iE.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var aE=new WeakMap;function bT(e){let t=e||RM();if(!t||!t.head)return null;let r=aE.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return aE.set(t,o),AM=o,o}function Bt(e){if(bT(),typeof e=="string"){ga(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:Qu(l);a+=`${c}:${i[l]};`}ga(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Qu(s);ga(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:Qu(a);s+=`${c}:${l};`}}if(s&&ga(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Bt({[`${n} ${c}`]:o[c]});for(let c of a)Bt({[c]:{[n]:o[c]}})}}}}function lE(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Qu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ga(`@keyframes ${e}{${r}}`),e}N();tl();N();N();var PM=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],$M=["none","forwards","backwards","both"],IM=["normal","reverse","alternate","alternate-reverse"],FM=["running","paused"],jM=e=>/^[\d.]+m?s$/.test(e),DM=0,cE=new Map,xb=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(M(e)){let o=JSON.stringify(e),s=cE.get(o);if(s)return s;let i=`smbls-anim-${DM++}`,a=lE(i,e);return cE.set(o,a),a}let n=r&&r[e];return M(n)?lE(e,n):e},LM=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:jM(d)?s.push(d):PM.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):IM.includes(d)?l=d:$M.includes(d)?c=d:FM.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},MM={animation:(e,t)=>{if(R(e)&&e.includes(" ")){let r=LM(e,t);return{animationName:xb(r.name||e,t),animationDuration:r.durations[0]||gr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||gr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Pn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:xb(e,t),animationDuration:gr(t.animationDuration||"A").timing,animationDelay:gr(t.animationDelay||"0s").timing,animationTimingFunction:Pn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:xb(e,t)}),animationDuration:e=>({animationDuration:gr(e).timing}),animationDelay:e=>({animationDelay:gr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Pn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};N();var NM={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>se("height",e,t),width:(e,t)=>se("width",e,t),boxSizing:e=>Nt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("height",t),...Pe("width",r||t)}},inlineSize:(e,t)=>se("inlineSize",e,t),blockSize:(e,t)=>se("blockSize",e,t),minWidth:(e,t)=>se("minWidth",e,t),maxWidth:(e,t)=>se("maxWidth",e,t),widthRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("minWidth",t),...Pe("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("minHeight",t),...Pe("maxHeight",r||t)}},size:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...se("inlineSize",t),...se("blockSize",r||t)}},minBlockSize:(e,t)=>se("minBlockSize",e,t),minInlineSize:(e,t)=>se("minInlineSize",e,t),maxBlockSize:(e,t)=>se("maxBlockSize",e,t),maxInlineSize:(e,t)=>se("maxInlineSize",e,t),minSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("minInlineSize",t),...Pe("minBlockSize",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("maxInlineSize",t),...Pe("maxBlockSize",r||t)}},borderWidth:(e,t)=>se("borderWidth",e,t),padding:(e,t)=>se("padding",e,t),scrollPadding:(e,t)=>se("scrollPadding",e,t),paddingInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("paddingInlineStart",t),...Pe("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("paddingBlockStart",t),...Pe("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>se("paddingBlockStart",e,t),paddingBottom:(e,t)=>se("paddingBlockEnd",e,t),paddingLeft:(e,t)=>se("paddingInlineStart",e,t),paddingRight:(e,t)=>se("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>se("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>se("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>se("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>se("paddingInlineEnd",e,t),margin:(e,t)=>se("margin",e,t),marginInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Pe("marginInlineStart",t),...Pe("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Pe("marginBlockStart",r),...Pe("marginBlockEnd",n||r)}},marginTop:(e,t)=>se("marginBlockStart",e,t),marginBottom:(e,t)=>se("marginBlockEnd",e,t),marginLeft:(e,t)=>se("marginInlineStart",e,t),marginRight:(e,t)=>se("marginInlineEnd",e,t),marginInlineStart:(e,t)=>se("marginInlineStart",e,t),marginInlineEnd:(e,t)=>se("marginInlineEnd",e,t),marginBlockStart:(e,t)=>se("marginBlockStart",e,t),marginBlockEnd:(e,t)=>se("marginBlockEnd",e,t),gap:e=>({gap:xM(e)}),columnGap:(e,t)=>Ko(t,"columnGap",e),rowGap:(e,t)=>Ko(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>oE(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>oE(e??t.round,t,"borderRadius")},BM={fontSize:e=>sT(e)||e,fontFamily:e=>({fontFamily:tT(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},VM={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},zM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>ze(r,"k").k).join(" ")}},left:e=>ze(e,"left"),top:e=>ze(e,"top"),right:e=>ze(e,"right"),bottom:e=>ze(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};N();var jt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},UM={theme:(e,t)=>{if(e)return t.themeModifier?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=jt(t);if(e)return{color:wt(e,r)}},background:(e,t)=>{let r=jt(t);if(e)return R(e)&&e.includes("gradient")?{background:yT(e,r)}:{background:wt(e,r)}},backgroundColor:(e,t)=>{let r=jt(t);if(e)return{backgroundColor:wt(e,r)}},backgroundImage:(e,t,r,n)=>{let o=jt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:bM(e,o)}},textStroke:e=>({WebkitTextStroke:mM(e)}),outline:e=>({outline:En(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:En(e)}),borderColor:(e,t)=>{let r=jt(t);if(e)return{borderColor:wt(e,r)}},borderTopColor:(e,t)=>{let r=jt(t);if(e)return{borderTopColor:wt(e,r)}},borderBottomColor:(e,t)=>{let r=jt(t);if(e)return{borderBottomColor:wt(e,r)}},borderLeftColor:(e,t)=>{let r=jt(t);if(e)return{borderLeftColor:wt(e,r)}},borderRightColor:(e,t)=>{let r=jt(t);if(e)return{borderRightColor:wt(e,r)}},borderLeft:e=>({borderLeft:En(e)}),borderTop:e=>({borderTop:En(e)}),borderRight:e=>({borderRight:En(e)}),borderBottom:e=>({borderBottom:En(e)}),shadow:(e,t)=>{let r=jt(t);if(e)return{boxShadow:yM(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split("!importan"),o=jt(t),s=n?" !important":"";return{boxShadow:rE(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:rE(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:En(e)})},xT={transition:e=>({transition:_M(e)}),transitionDuration:e=>({transitionDuration:nE(e)}),transitionDelay:e=>({transitionDelay:nE(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Pn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};N();var WM={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},HM={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},uE={...MM,...NM,...BM,...VM,...zM,...UM,...xT,...WM,...HM},qM=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);N();var GM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,KM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Kr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(GM),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},fE=(e,t,r)=>({[e]:Kr(t,r)}),ua=(e,t,r)=>{let n=`&${e}`,o=Kr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},b_=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return L(r)?r.call(t,t):!!r},XM=(e,t,r)=>{let n=e.slice(1),o=b_(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},YM=(e,t,r)=>({[e]:t}),JM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=b_(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},ZM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=b_(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},QM=(e,t)=>Kr(e,t),eN={"@":KM,":":ua,"[":ua,"*":ua,"+":ua,"~":ua,"&":fE,">":fE,$:XM,"-":YM,".":JM,"!":ZM},vb=qo(),tN=(e,t,r)=>{let n=t?.context?.designSystem;n&&WL(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>lt(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);lt(o,QM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=L(c)?c(t,t.state,t.context):c;u&&i(a,u),!vb&&M(o[a])&&(o[a].label=a)}else if(uE[a]){let c=Ne(l,t);W(c)&&(c=c.reduce((d,f)=>lt(d,f),{}));let u=uE[a](c,t,t.state,t.context);W(u)&&(u=u.reduce((d,f)=>lt(d,f),{})),u&&i(a,u),!vb&&M(o[a])&&(o[a].label=a)}else if(qM.has(a)){let c=Ne(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!vb&&M(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&HL()}},rN=(e,t)=>{let r={};for(let n in e){let o=eN[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?In(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=tN(e,t,r),s=rN(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fd(n,s);n._selectors=s}return n};N();N();N();tl();var CK=new Proxy(Object.create(null),{get(){},has(){return!1}});N();var dE=(e,t)=>{let r=e.call("exec",t,e);if(r)return R(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var nN={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"}}}},oN={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},sN={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"}}},AK={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...nN,...oN,...sN,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var iN={};Y(iN,{A:()=>tP,AssetPicture:()=>qT,Audio:()=>ZT,Avatar:()=>_P,B:()=>bR,Block:()=>_T,Box:()=>wR,Br:()=>kR,Button:()=>iP,ButtonSet:()=>uP,COMPONENTS:()=>yN,Caption:()=>cR,Checkbox:()=>LR,CheckboxHgroup:()=>MR,Circle:()=>zT,CircleButton:()=>lP,Clickable:()=>DT,Data:()=>vR,Dialog:()=>pP,DialogFooter:()=>gP,DialogHeader:()=>hP,Dropdown:()=>CP,DropdownList:()=>AP,DropdownParent:()=>EP,DropdownParentFocus:()=>OP,DropdownSiblingFocus:()=>TP,FileIcon:()=>JR,Flex:()=>ST,Focusable:()=>LT,FocusableComponent:()=>MT,Footnote:()=>yR,Form:()=>PT,Grid:()=>CT,Gutter:()=>ET,H1:()=>rR,H2:()=>nR,H3:()=>oR,H4:()=>sR,H5:()=>iR,H6:()=>aR,Headline:()=>gR,Hgroup:()=>TR,HgroupButton:()=>PR,HgroupRows:()=>RR,Hoverable:()=>jT,Hr:()=>SR,I:()=>xR,Icon:()=>XR,IconButton:()=>fP,IconText:()=>YR,Iframe:()=>IT,Img:()=>TT,Inline:()=>wT,InlineFlex:()=>kT,InlineGrid:()=>AT,Input:()=>IR,Italic:()=>pR,KangorooButton:()=>cP,Li:()=>CR,Link:()=>A_,Notification:()=>PP,NumberInput:()=>jR,Ol:()=>ER,P:()=>lR,Picture:()=>WT,Radio:()=>BR,RadioHgroup:()=>VR,Range:()=>SP,RouteLink:()=>rP,RouterLink:()=>E_,SHAPES:()=>Xf,Select:()=>oP,Shape:()=>v_,Span:()=>tR,SquareButton:()=>aP,Strong:()=>uR,Subhead:()=>mR,Svg:()=>KT,Text:()=>eR,Textarea:()=>qR,TextareaWithButton:()=>GR,Theme:()=>UT,Title:()=>hR,Toggle:()=>UR,ToggleHgroup:()=>WR,Tooltip:()=>yP,TooltipHidden:()=>bP,TooltipParent:()=>xP,U:()=>fR,Ul:()=>AR,Underline:()=>dR,Video:()=>YT,depth:()=>x_,getSystemGlobalTheme:()=>Yf});var vT={};Y(vT,{Block:()=>_T,Flex:()=>ST,Grid:()=>CT,Gutter:()=>ET,Inline:()=>wT,InlineFlex:()=>kT,InlineGrid:()=>AT});var _T={display:"block"},wT={display:"inline"},ST={display:"flex"},kT={display:"inline-flex"},CT={display:"grid"},AT={display:"inline-grid"},ET={boxSize:"C1"},OT={};Y(OT,{Img:()=>TT});N();var TT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Qt(e);return t&&t.src||e.src},srcset:e=>{let t=Qt(e);return(t?_d(t):"")||e.srcset}}},RT={};Y(RT,{Form:()=>PT});var PT={tag:"form"},$T={};Y($T,{Iframe:()=>IT});var IT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},FT={};Y(FT,{Clickable:()=>DT,Focusable:()=>LT,FocusableComponent:()=>MT,Hoverable:()=>jT});var aN={appearance:"none",cursor:"pointer",fontFamily:"inherit"},jT={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},DT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},LT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},MT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:aN},NT={};Y(NT,{Picture:()=>WT});var BT={};Y(BT,{Theme:()=>UT,getSystemGlobalTheme:()=>Yf});var VT={};Y(VT,{Circle:()=>zT,SHAPES:()=>Xf,Shape:()=>v_,default:()=>lN,depth:()=>x_});N();var _t=H(),x_={4:{boxShadow:`rgba(0,0,0,.10) 0 2${_t.unit.default} 4${_t.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${_t.unit.default} 6${_t.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${_t.unit.default} 10${_t.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${_t.unit.default} 16${_t.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${_t.unit.default} 26${_t.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${_t.unit.default} 42${_t.unit.default}`}},Do=e=>$e(e.shapeDirectionColor)||$e(e.borderColor)||$e(e.backgroundColor)||$e(e.background),Gu=e=>{let t=xT.transition(e.transition,e);return t&&t.transition},Xf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Do(e),transition:Gu(e),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:e=>({position:"relative","&:before":{content:'""',display:"block",background:Do(e),transition:Gu(e),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:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Do(e),transition:Gu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Gu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Do(e)} 25%, transparent 25%), linear-gradient(315deg, ${Do(e)} 25%, transparent 25%)`},"&:after":{background:Do(e),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)"}}}},v_={deps:{exec:Ne,getSpacingBasedOnRatio:Ko,getMediaColor:wt},classlist:{shape:e=>e.deps.exec(Xf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Xf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},zT={round:"100%"},lN=v_;N();var Yf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},UT={deps:{depth:x_},classlist:{depth:e=>!Nt(e.depth)&&e.deps.depth[e.depth]}},WT={deps:{getSystemGlobalTheme:Yf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Yf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).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:(e,t)=>e.parent?.src||t.src}},HT={};Y(HT,{AssetPicture:()=>qT});N();var qT={tag:"picture",children:e=>{let t=Qt(e);if(t)return wd(t,e.alt)}},GT={};Y(GT,{Svg:()=>KT});var KT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);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 d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},XT={};Y(XT,{Video:()=>YT});N();var YT={tag:"video",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},JT={};Y(JT,{Audio:()=>ZT});N();var ZT={tag:"audio",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},QT={};Y(QT,{B:()=>bR,Caption:()=>cR,Data:()=>vR,Footnote:()=>yR,H1:()=>rR,H2:()=>nR,H3:()=>oR,H4:()=>sR,H5:()=>iR,H6:()=>aR,Headline:()=>gR,I:()=>xR,Italic:()=>pR,P:()=>lR,Span:()=>tR,Strong:()=>uR,Subhead:()=>mR,Text:()=>eR,Title:()=>hR,U:()=>fR,Underline:()=>dR});var eR={},tR={tag:"span"},rR={tag:"h1"},nR={tag:"h2"},oR={tag:"h3"},sR={tag:"h4"},iR={tag:"h5"},aR={tag:"h6"},lR={tag:"p"},cR={tag:"caption"},uR={tag:"strong",fontWeight:"700"},fR={tag:"u"},dR={tag:"u"},pR={tag:"i"},hR={},gR={tag:"h6",fontSize:"B",fontWeight:500},mR={tag:"span",fontSize:"Z1"},yR={tag:"span",fontSize:"Z"},bR={tag:"b"},xR={tag:"i"},vR={tag:"data"},_R={};Y(_R,{Box:()=>wR,Br:()=>kR,Hr:()=>SR,Li:()=>CR,Ol:()=>ER,Ul:()=>AR});var cN=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},wR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:cN},SR={tag:"hr",margin:"C1 0"},kR={tag:"br"},CR={tag:"li"},AR={tag:"ul",childExtends:{extends:"Li"}},ER={tag:"ol",childExtends:{extends:"Li"}},OR={};Y(OR,{Hgroup:()=>TR,HgroupButton:()=>PR,HgroupRows:()=>RR});var pE=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},TR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:pE,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:pE,margin:"0",color:"paragraph"}},RR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},PR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},$R={};Y($R,{Input:()=>IR});var IR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},FR={};Y(FR,{NumberInput:()=>jR});var jR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},DR={};Y(DR,{Checkbox:()=>LR,CheckboxHgroup:()=>MR});var LR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.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"}}},MR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},NR={};Y(NR,{Radio:()=>BR,RadioHgroup:()=>VR});var BR={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}},VR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},zR={};Y(zR,{Toggle:()=>UR,ToggleHgroup:()=>WR});var UR={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},WR={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},HR={};Y(HR,{Textarea:()=>qR,TextareaWithButton:()=>GR});var qR={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"}},GR={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"}}},KR={};Y(KR,{FileIcon:()=>JR,Icon:()=>XR,IconText:()=>YR});var XR={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let _=x[".isActive"];if(_)return x.call("exec",_.name||_.icon)},c=(x,_,S)=>{let{semanticIcons:E}=S&&S.designSystem,{toCamelCase:F}=S&&S.utils,w=u(x,_),$=F(w).split(/([a-z])([A-Z])/g),q=$[1]?$[0]:w.split(".")[0].split(" ")[0],te=E&&E[q];if(te){let j=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=te[j]||te[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,_)=>{let{key:S}=x,E=x.call("exec",x.name||x.icon||S,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:S},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},YR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},JR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},ZR={};Y(ZR,{A:()=>tP,Link:()=>A_,RouteLink:()=>rP,RouterLink:()=>E_});var uN={};Y(uN,{default:()=>gN,getActiveRoute:()=>C_,lastLevel:()=>Od,lastPathname:()=>Jf,matchRoute:()=>w_,parseQuery:()=>S_,parseRoutePattern:()=>__,router:()=>Jo,runGuards:()=>k_});N();var QR=/^:(.+)/,eP=/^\*$/,hE=new Map,__=e=>{let t=hE.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(QR);a?n.push({index:i,name:a[1]}):eP.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return hE.set(e,s),s},w_=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||"");if(!t)return{key:null,content:null,params:{},routePath:o};let s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=__(l),u=fN(n,c);u>i&&(i=u,s=l,a=dN(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},fN=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(QR.test(r[i]))o+=1;else if(eP.test(r[i]))o+=.5;else return-1;return o},dN=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},S_=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},k_=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},C_=(e=0,t)=>{t||(t=typeof le<"u"?le.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Jf,Od=0,pN=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,hN={level:Od,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:be&&be.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Jo=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||le,i=o?.context?.document||be,a={...hN,...o.context.routerOptions,...n};Od=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=pN(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=S_(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Jf;Jf=p;let x,_,S,E;if(a.useParamsMatching){let w=w_(p,o.routes,a.level);x=w.key,_=w.routePath,S=w.content,E=w.params}else{x=C_(a.level,p),_=x;let w=o.routes;S=w?w[x||"/"]||w["/*"]:null,E={}}let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!S){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await k_(a.guards,w);if($===!1)return;if(typeof $=="string")return Jo($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let w={route:x,routePath:_,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof S=="object"?S:{extends:S}};a.useFragment&&(te.tag="fragment");try{if(typeof o?.set!="function")return;o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&S[c]?.node?.scrollTo&&S[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=i.getElementById(g);if(w&&F?.scrollTo){let $=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Go("routeChanged",o,a)},gN=Jo,mN=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__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){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Jo)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},A_={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>dE(e,e.href)||dE(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:mN},tP={extends:"Link"},E_={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__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){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Jo)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},rP={extends:[A_,E_]},nP={};Y(nP,{Select:()=>oP});var oP={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},sP={};Y(sP,{Button:()=>iP,ButtonSet:()=>uP,CircleButton:()=>lP,IconButton:()=>fP,KangorooButton:()=>cP,SquareButton:()=>aP});var iP={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},aP={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},lP={extends:"SquareButton",round:"C"},cP={extends:"Button",childExtends:"IconText"},uP={tag:"nav",display:"flex",childExtends:"SquareButton"},fP={extends:["SquareButton","ClickableItem"],round:"Z"},dP={};Y(dP,{Dialog:()=>pP,DialogFooter:()=>gP,DialogHeader:()=>hP});var pP={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},hP={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},gP={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},mP={};Y(mP,{Tooltip:()=>yP,TooltipHidden:()=>bP,TooltipParent:()=>xP});N();var yP={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:e=>Ho(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},bP={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},xP={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},vP={};Y(vP,{Avatar:()=>_P});var _P={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},wP={};Y(wP,{Range:()=>SP});var SP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.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:$b("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:$b("#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:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},kP={};Y(kP,{Dropdown:()=>CP,DropdownList:()=>AP,DropdownParent:()=>EP,DropdownParentFocus:()=>OP,DropdownSiblingFocus:()=>TP});var CP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},AP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},EP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},OP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},TP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},RP={};Y(RP,{Notification:()=>PP});var PP={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}}}},yN=Object.assign({},vT,OT,RT,$T,FT,NT,HT,GT,VT,XT,JT,BT,QT,_R,OR,$R,FR,DR,NR,zR,HR,KR,ZR,nP,sP,dP,mP,vP,wP,kP,RP);var bN=null;function xN(e){bN=e}N();var vN={};Y(vN,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>mx,DOMQ_PROPERTIES:()=>Xo,ENV:()=>jx,HTML_TAGS:()=>Wa,METHODS:()=>Va,METHODS_EXL:()=>ud,NODE_ENV:()=>Dt,OPTIONS:()=>bd,PACKAGE_MANAGER_TO_CDN:()=>Wf,PARSED_DOMQ_PROPERTIES:()=>cd,PROPS_METHODS:()=>Rn,STATE_METHODS:()=>Tn,STATE_PROPERTIES:()=>gx,SVG_TAGS:()=>Yx,TYPES:()=>ya,UNIVERSAL_RESERVED_KEYS:()=>Uf,addCaching:()=>If,addContext:()=>$f,addExtend:()=>tv,addExtends:()=>Qe,addItemAfterEveryElement:()=>rx,addProtoToArray:()=>id,addRef:()=>Tf,applyCSS:()=>kN,applyDependentState:()=>vv,applyEvent:()=>Nf,applyEventUpdate:()=>Bf,applyExtends:()=>nv,applyProps:()=>Pa,arrayContainsOtherArray:()=>Xb,arraysEqual:()=>ox,arrayzeValue:()=>rl,buildImgSrcset:()=>_d,buildSourcesAndImg:()=>wd,cache:()=>kv,call:()=>hO,captureSnapshot:()=>Pv,checkForStateTypes:()=>mv,checkIfInherits:()=>Mf,checkIfStringIsInArray:()=>ax,clone:()=>bx,cloneAndMergeArrayExtend:()=>ka,cloneFunction:()=>kE,concatAddExtends:()=>Zx,copyJavaScriptToClipboard:()=>Xv,copyStringToClipboard:()=>Kv,createBasedOnType:()=>Of,createElement:()=>gv,createElementExtends:()=>bf,createExtends:()=>md,createExtendsFromKeys:()=>Ha,createExtendsStack:()=>wf,createIfConditionFlag:()=>Ux,createInheritedState:()=>yv,createKey:()=>hd,createNestedObject:()=>Ex,createNestedObjectByKeyPath:()=>xv,createObjectWithoutPrototype:()=>df,createParent:()=>Rf,createPath:()=>Pf,createProps:()=>yd,createPropsStack:()=>Af,createRoot:()=>hv,createScope:()=>wv,createSnapshotId:()=>pd,customDecodeURIComponent:()=>hx,customEncodeURIComponent:()=>px,cutArrayAfterValue:()=>ex,cutArrayBeforeValue:()=>Qb,debounce:()=>SE,debounceOnContext:()=>Bx,decodeNewlines:()=>dx,deepClone:()=>ct,deepContains:()=>Cx,deepDefaults:()=>$a,deepDestringifyFunctions:()=>xx,deepExtend:()=>yf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>ba,defineSetter:()=>Rv,destringifyGlobalScope:()=>vx,detectHeightOnInit:()=>Dv,detectInfiniteLoop:()=>Px,document:()=>be,encodeNewlines:()=>fx,error:()=>zf,excludeKeysFromObject:()=>Ix,exec:()=>Ne,extendCachedRegistry:()=>Qx,extendStackRegistry:()=>_a,extractArrayExtend:()=>Sa,fetchLibraryData:()=>qv,fibonacciNumberByIndex:()=>Lv,filterArrays:()=>sx,filterArraysFast:()=>ix,finalizeExtends:()=>Sf,findClosestNumber:()=>qf,findClosestNumberInFactory:()=>Hv,findInheritedState:()=>Lf,findKeyPosition:()=>cx,flattenExtend:()=>Bo,formatDate:()=>jv,generateHash:()=>hf,generateKey:()=>va,generateMetaTags:()=>Wv,get:()=>QE,getActiveRoute:()=>C_,getCDNUrl:()=>Hf,getCapitalCaseKeys:()=>OE,getCdnProviderFromConfig:()=>Iv,getChildStateInKey:()=>Df,getChildren:()=>rO,getContext:()=>lO,getCookie:()=>Kx,getDB:()=>gO,getEmotionStylesheet:()=>Qv,getExtendsInElement:()=>rv,getExtendsStack:()=>Aa,getExtendsStackRegistry:()=>mf,getFrequencyInArray:()=>Yb,getHashedExtend:()=>wa,getImportMapScript:()=>Fv,getInObjectByPath:()=>Rx,getLocalStorage:()=>CE,getNev:()=>Nx,getPageMetadata:()=>wO,getParentStateInKey:()=>jf,getPath:()=>nO,getQuery:()=>mO,getRef:()=>tO,getRoot:()=>sO,getRootContext:()=>aO,getRootData:()=>iO,getRootState:()=>oO,getRootStateInKey:()=>Ff,getSpreadChildren:()=>TE,global:()=>qb,hasFunction:()=>No,hasHandlerPlugin:()=>el,hasOwnProperty:()=>wx,inheritChildExtends:()=>vf,inheritChildPropsExtends:()=>xf,inheritParentProps:()=>Oa,inheritRecursiveChildExtends:()=>_f,init:()=>Td,initProps:()=>dv,is:()=>Zt,isArray:()=>W,isBoolean:()=>af,isContextComponent:()=>RE,isCyclic:()=>$x,isDOMNode:()=>at,isDate:()=>cf,isDefined:()=>Ho,isDevelopment:()=>gd,isEmpty:()=>uf,isEmptyObject:()=>Sx,isEqualDeep:()=>ff,isFunction:()=>L,isHtmlElement:()=>rd,isLocal:()=>Mx,isMethod:()=>yO,isMobile:()=>qx,isNode:()=>Xa,isNot:()=>Kb,isNotProduction:()=>Qa,isNull:()=>lf,isNumber:()=>$n,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Mv,isProduction:()=>qo,isStaging:()=>Lx,isState:()=>bv,isString:()=>R,isStringFunction:()=>zx,isTest:()=>pf,isTesting:()=>Dx,isUndefined:()=>Nt,isUniversallyReservedKey:()=>$v,isValidHtmlTag:()=>Jx,joinArrays:()=>Na,jointStacks:()=>ev,keys:()=>Av,lastLevel:()=>Od,lastPathname:()=>Jf,loadCssFile:()=>zv,loadJavascript:()=>Uv,loadJavascriptFile:()=>Nv,loadJavascriptFileEmbedSync:()=>Vv,loadJavascriptFileSync:()=>Bv,loadRemoteCSS:()=>_O,loadRemoteScript:()=>vO,log:()=>cO,logGroupIf:()=>Hx,logIf:()=>Wx,lookdown:()=>YE,lookdownAll:()=>JE,lookup:()=>XE,lowercaseFirstLetter:()=>Ja,makeObjectWithoutPrototype:()=>kx,map:()=>yx,mapStringsWithContextComponents:()=>Ca,matchRoute:()=>w_,matchesComponentNaming:()=>On,memoize:()=>Vx,merge:()=>lt,mergeSharedLibraries:()=>Gv,nextElement:()=>fO,normalizeLibraryKey:()=>qa,objectToString:()=>xa,objectizeStringProperty:()=>Ea,overwrite:()=>fd,overwriteDeep:()=>In,overwriteShallow:()=>dd,overwriteState:()=>_v,parse:()=>Ev,parseDeep:()=>Vf,parseQuery:()=>S_,parseRoutePattern:()=>__,pickupElementFromProps:()=>iv,pickupPropsFromElement:()=>sv,previousElement:()=>dO,propExists:()=>fv,propertizeElement:()=>av,propertizeUpdate:()=>$E,reinit:()=>SN,remove:()=>ZE,removeChars:()=>Yv,removeCookie:()=>Xx,removeDuplicateProps:()=>Ta,removeDuplicatesInArray:()=>Ba,removeFromArray:()=>Jb,removeFromObject:()=>Ax,removeNestedKeyByPath:()=>Ox,removeValueFromArray:()=>sd,removeValueFromArrayAll:()=>tx,reorderArrayByValues:()=>nx,replaceLiteralsWithObjectFields:()=>vE,replaceOctalEscapeSequences:()=>ux,resolveAsset:()=>Qt,resolveHandler:()=>za,resolveSharedLibraries:()=>kO,returnValueAsText:()=>Ef,router:()=>Jo,runGuards:()=>k_,runPluginHook:()=>Ua,scratchSystem:()=>JO,scratchUtils:()=>EO,self:()=>Gb,set:()=>y_,setActiveRootState:()=>Tv,setCookie:()=>Gx,setHashedExtend:()=>gf,setInObjectByPath:()=>Tx,setLocalStorage:()=>AE,setNodeStyles:()=>Cv,setProps:()=>eO,setPropsPrototype:()=>kf,spotByPath:()=>KE,srcsetFor:()=>zo,stringIncludesAny:()=>ad,stringToObject:()=>_x,swapItemsInArray:()=>Zb,syncProps:()=>Ra,toCamelCase:()=>xd,toDashCase:()=>vd,toDescriptionCase:()=>Zv,toTitleCase:()=>Jv,toggleFullscreen:()=>xO,triggerEventOn:()=>Go,triggerEventOnUpdate:()=>Sv,trimStringFromSymbols:()=>lx,unstackArrayOfObjects:()=>od,update:()=>lv,updateProps:()=>pv,variables:()=>pO,verbose:()=>Ov,warn:()=>uO,window:()=>le});N();N();var _N=H(),$P=(e=_N,t)=>{let r=M(t.localFile)?t.localFile:{},n=ct(r.designSystem||{});return tr(e,n)},wN={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Td=(e,t=wN)=>{let r=$P(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=y_({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=LO(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Bt(a),c&&(Bt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Bt(m)}l&&Bt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Bt(m)}return(f||d)&&dT(i.svg,{document:t.document}),(h||p)&&hT(i.icons,{document:t.document}),i},IP={},SN=(e,t=IP)=>{let r=$P(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=y_({verbose:!1,...r});if(!t.preventInject){if(Bt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Bt(i)}Bt(s.reset)}return s},kN=(e,t=IP)=>{Bt(e)};N();N();var EK=le&&le.location?le.location.host.includes("dev."):gd();N();Vo();var CN={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},AN={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},OK={...CN,router:AN};N();N();N();N();Vo();var Zf={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"},EN=Object.create(null);for(let e in Zf)EN[Zf[e]]=e;var _b=Object.create(null);for(let e in Zf){let t=Zf[e];if(_b[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${_b[t]}"`);_b[t]=e}var ON=0,TN=()=>`${Date.now().toString(36)}-${(ON++).toString(36)}`,Ma=(e,t,r={})=>({id:TN(),ts:Date.now(),type:e,level:t,...r}),RN=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Qf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:RN(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Uo=e=>e?.context?.analyze,PN={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"}},$N=(e,{category:t,type:r,level:n})=>o=>{let s=Uo(o);!s||!s.shouldCapture(t)||s.emit(Ma(r,n,{hook:e,element:Qf(o)}))},gE=e=>(t,r)=>{let n=Uo(t);!n||!n.shouldCapture("state")||n.emit(Ma("state","debug",{hook:e,element:Qf(t),changedKeys:r?.changedKeys||null}))},IN={name:"analyze",error(e,t){let r=Uo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ma("error","error",{hook:t?.hook||"error",element:Qf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Uo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ma("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Uo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Uo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Ma("update","debug",{hook:"update",element:Qf(e),durationMs:r}))},beforeStateUpdate:gE("beforeStateUpdate"),stateUpdate:gE("stateUpdate")};for(let[e,t]of Object.entries(PN))IN[e]=$N(e,t);N();N();N();N();var TK=typeof le<"u"&&typeof le.document<"u";var RK=typeof le<"u"&&typeof le.document<"u";N();var PK=typeof le<"u"&&typeof le.document<"u";N();var $K=typeof le<"u"&&typeof le.document<"u";var er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";var ef=Object.create(null);Object.keys(er).forEach(e=>{ef[er[e]]=e});var Lb={type:"error",data:"parser error"},FP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jP=typeof ArrayBuffer=="function",DP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,O_=({type:e,data:t},r,n)=>FP&&t instanceof Blob?r?n(t):mE(t,n):jP&&(t instanceof ArrayBuffer||DP(t))?r?n(t):mE(new Blob([t]),n):n(er[e]+(t||"")),mE=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function yE(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var wb;function FN(e,t){if(FP&&e.data instanceof Blob)return e.data.arrayBuffer().then(yE).then(t);if(jP&&(e.data instanceof ArrayBuffer||DP(e.data)))return t(yE(e.data));O_(e,!1,r=>{wb||(wb=new TextEncoder),t(wb.encode(r))})}var bE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ma=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<bE.length;e++)ma[bE.charCodeAt(e)]=e;var jN=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=ma[e.charCodeAt(n)],i=ma[e.charCodeAt(n+1)],a=ma[e.charCodeAt(n+2)],l=ma[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},DN=typeof ArrayBuffer=="function",T_=(e,t)=>{if(typeof e!="string")return{type:"message",data:LP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:LN(e.substring(1),t)}:ef[r]?e.length>1?{type:ef[r],data:e.substring(1)}:{type:ef[r]}:Lb},LN=(e,t)=>{if(DN){let r=jN(e);return LP(r,t)}else return{base64:!0,data:e}},LP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,MP="",MN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{O_(s,!1,a=>{n[i]=a,++o===r&&t(n.join(MP))})})},NN=(e,t)=>{let r=e.split(MP),n=[];for(let o=0;o<r.length;o++){let s=T_(r[o],t);if(n.push(s),s.type==="error")break}return n};function BN(){return new TransformStream({transform(e,t){FN(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Sb;function Ku(e){return e.reduce((t,r)=>t+r.length,0)}function Xu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function VN(e,t){Sb||(Sb=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Ku(r)<1)break;let l=Xu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Ku(r)<2)break;let l=Xu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Ku(r)<8)break;let l=Xu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Lb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Ku(r)<o)break;let l=Xu(r,o);a.enqueue(T_(s?l:Sb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Lb);break}}}})}var NP=4;function Ee(e){if(e)return zN(e)}function zN(e){for(var t in Ee.prototype)e[t]=Ee.prototype[t];return e}Ee.prototype.on=Ee.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ee.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Ee.prototype.off=Ee.prototype.removeListener=Ee.prototype.removeAllListeners=Ee.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Ee.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Ee.prototype.emitReserved=Ee.prototype.emit;Ee.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ee.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Rd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),UN="arraybuffer";function BP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var WN=St.setTimeout,HN=St.clearTimeout;function Pd(e,t){t.useNativeTimers?(e.setTimeoutFn=WN.bind(St),e.clearTimeoutFn=HN.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var qN=1.33;function GN(e){return typeof e=="string"?KN(e):Math.ceil((e.byteLength||e.size)*qN)}function KN(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function VP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function XN(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function YN(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var JN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},R_=class extends Ee{constructor(e){super(),this.writable=!1,Pd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new JN(e,t,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 t=T_(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_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 t=XN(e);return t.length?"?"+t:""}},ZN=class extends R_{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=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)};NN(e,this.socket.binaryType).forEach(t),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,MN(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=VP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},zP=!1;try{zP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var QN=zP;function eB(){}var tB=class extends ZN{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Wo=class tf extends Ee{constructor(t,r,n){super(),this.createRequest=t,Pd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=BP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=tf.requestsCount++,tf.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=eB,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete tf.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Wo.requestsCount=0;Wo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",xE);else if(typeof addEventListener=="function"){let e="onpagehide"in St?"pagehide":"unload";addEventListener(e,xE,!1)}}function xE(){for(let e in Wo.requests)Wo.requests.hasOwnProperty(e)&&Wo.requests[e].abort()}var rB=(function(){let e=UP({xdomain:!1});return e&&e.responseType!==null})(),nB=class extends tB{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=rB&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Wo(UP,this.uri(),e)}};function UP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||QN))return new XMLHttpRequest}catch{}if(!t)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var WP=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",oB=class extends R_{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=WP?{}:BP(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,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;O_(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&Rd(()=>{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",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=VP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},kb=St.WebSocket||St.MozWebSocket,sB=class extends oB{createSocket(e,t,r){return WP?new kb(e,t,r):t?new kb(e,t):new kb(e)}doWrite(e,t){this.ws.send(t)}},iB=class extends R_{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 t=VN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=BN();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&Rd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},aB={websocket:sB,webtransport:iB,polling:nB},lB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Mb(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=lB.exec(e||""),s={},i=14;for(;i--;)s[cB[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,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=uB(s,s.path),s.queryKey=fB(s,s.query),s}function uB(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function fB(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Nb=typeof addEventListener=="function"&&typeof removeEventListener=="function",rf=[];Nb&&addEventListener("offline",()=>{rf.forEach(e=>e())},!1);var nf=class of extends Ee{constructor(t,r){if(super(),this.binaryType=UN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Mb(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Mb(r.host).host);Pd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=YN(this.opts.query)),Nb&&(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"})},rf.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=NP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&of.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",of.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=GN(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Rd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(of.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Nb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=rf.indexOf(this._offlineEventListener);n!==-1&&rf.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};nf.protocol=NP;var dB=class extends nf{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 t=this.createTransport(e),r=!1;nf.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;nf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},HP=class extends dB{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>aB[n]).filter(n=>!!n)),super(e,r)}},IK=HP.protocol;function pB(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Mb(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var qP={};Y(qP,{Decoder:()=>SB,Encoder:()=>wB,PacketType:()=>ee,isPacketValid:()=>OB,protocol:()=>_B});var hB=typeof ArrayBuffer=="function",gB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,GP=Object.prototype.toString,mB=typeof Blob=="function"||typeof Blob<"u"&&GP.call(Blob)==="[object BlobConstructor]",yB=typeof File=="function"||typeof File<"u"&&GP.call(File)==="[object FileConstructor]";function P_(e){return hB&&(e instanceof ArrayBuffer||gB(e))||mB&&e instanceof Blob||yB&&e instanceof File}function sf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(sf(e[r]))return!0;return!1}if(P_(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return sf(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&sf(e[r]))return!0;return!1}function bB(e){let t=[],r=e.data,n=e;return n.data=Bb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Bb(e,t){if(!e)return e;if(P_(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Bb(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Bb(e[n],t));return r}return e}function xB(e,t){return e.data=Vb(e.data,t),delete e.attachments,e}function Vb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Vb(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Vb(e[r],t));return e}var vB=wD(nL(),1),zb=(0,vB.default)("socket.io-parser"),KP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],_B=5,ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ee||(ee={}));var wB=class{constructor(e){this.replacer=e}encode(e){return zb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&sf(e)?this.encodeAsBinary({type:e.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ee.BINARY_EVENT||e.type===ee.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),zb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=bB(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},SB=class XP extends Ee{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===ee.BINARY_EVENT;n||r.type===ee.BINARY_ACK?(r.type=n?ee.EVENT:ee.ACK,this.reconstructor=new kB(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(P_(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(ee[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ee.BINARY_EVENT||n.type===ee.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!YP(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(XP.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return zb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ee.CONNECT:return ed(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||ed(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&KP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},kB=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 t=xB(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function CB(e){return typeof e=="string"}var YP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function AB(e){return e===void 0||YP(e)}function ed(e){return Object.prototype.toString.call(e)==="[object Object]"}function EB(e,t){switch(e){case ee.CONNECT:return t===void 0||ed(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&KP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||ed(t);default:return!1}}function OB(e){return CB(e.nsp)&&AB(e.id)&&EB(e.type,e.data)}function Mt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var TB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),JP=class extends Ee{constructor(e,t,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=t,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=[Mt(e,"open",this.onopen.bind(this)),Mt(e,"packet",this.onpacket.bind(this)),Mt(e,"error",this.onerror.bind(this)),Mt(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,...t){var r,n,o;if(TB.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:ee.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.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:ee.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,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ee.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 ee.EVENT:case ee.BINARY_EVENT:this.onevent(e);break;case ee.ACK:case ee.BINARY_ACK:this.onack(e);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)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 t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:ee.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,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:ee.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 t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.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 t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Zo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Zo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Zo.prototype.reset=function(){this.attempts=0};Zo.prototype.setMin=function(e){this.ms=e};Zo.prototype.setMax=function(e){this.max=e};Zo.prototype.setJitter=function(e){this.jitter=e};var Ub=class extends Ee{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Pd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Zo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||qP;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.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 t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.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 HP(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Mt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Mt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Mt(e,"ping",this.onping.bind(this)),Mt(e,"data",this.ondata.bind(this)),Mt(e,"error",this.onerror.bind(this)),Mt(e,"close",this.onclose.bind(this)),Mt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Rd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new JP(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[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,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),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 t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);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)}},fa={};function Cb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=pB(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=fa[o]&&s in fa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Ub(n,t):(fa[o]||(fa[o]=new Ub(n,t)),l=fa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Cb,{Manager:Ub,Socket:JP,io:Cb,connect:Cb});N();N();N();xN(TM);D();var ZP=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Td(a):nn(r[i],a):r[i]=a}),s&&(r.schema=s))},QP=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=iA(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Td(r.designSystem)};var RB={success:"green",error:"red",warning:"yellow"},e2=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},t2={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:RB[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var PB=!1,$B=()=>PB?"http://localhost:8080":"https://api.symbols.app",IB=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},FB=async e=>{try{let t=e||$B(),r=await A.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},o2=(e,t,r,n)=>{e.on("snapshot",ZP(t,r,n)),e.on("ops",QP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&e2(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},jB=async(e,t,r,n)=>{let o=await FB(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=To(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),o2(a,e,t,r),a},DB=(e,t,r)=>{let n=To({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),o2(n,e,t,r),n.on("reload",()=>{typeof A<"u"&&A.location&&A.location.reload()}),n},LB=async(e,t,r)=>{let{mode:n,baseUrl:o}=IB(r);return n?n==="collab"?jB(e,t,r,o):n==="runner"?DB(e,t,r):null:null},MB={onInit:LB};var s2=e=>typeof e>"u",r2=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),n2=e=>e?.editor?.runtime==="runner",i2=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},a2={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!s2(r.liveSync)?r.liveSync:r2(t)||n2(t))&&(r2(t)&&!n2(t)&&!t?.key||i2(e,MB))}},l2={name:"notifications",beforeCreate(e,t){if(!t)return;let r=s2(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&i2(e,t2)}};D();function c2(e){return C(e)?e:P(e)?e.find(t=>C(t)):""}function I_(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&c2(e.extends),n=e.parent&&e.parent.childExtends&&c2(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function $d(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=I_(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?$d(e.parent):o&&(t[o]||r[o])?e:$d(e.parent)}var NB=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},$_={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:NB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=$d(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=I_(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=$d(n);if(!o)return;let s=I_(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.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:e})=>{let{components:t}=e;if(k(t)){let{Content:r,...n}=t;for(let o in n)po[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
|
|
106
|
+
}`,kd=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>mr(u,r)||u):mr(o,r)||o;return s_(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),dL=e=>Object.keys(e).map(t=>kd(t,e[t].value)),DO=(e,t,r)=>{if(t&&t.isVariable){let o=mr(t.url,r)||t.url;return n_(o)?o_(o):Ga(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return kd(e,t,r).map(jO);let n=Array.isArray(t.url)?t.url.map(o=>mr(o,r)||o):mr(t.url,r)||t.url;return Ga(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},LO=(e,t)=>Object.keys(e).map(r=>DO(r,e[r].value,t));N();N();N();var MO={};Y(MO,{animation:()=>IL,breakpoints:()=>PL,class:()=>NL,color:()=>wL,devices:()=>$L,document:()=>RL,font:()=>gL,fontFace:()=>bL,fontFamily:()=>mL,fontFamilyTypes:()=>yL,gradient:()=>SL,grid:()=>ML,icons:()=>AL,media:()=>xL,reset:()=>BL,semanticIcons:()=>EL,sequence:()=>Cd,shadow:()=>CL,sizes:()=>zL,spacing:()=>_L,svg:()=>FL,svgData:()=>jL,templates:()=>DL,theme:()=>kL,timing:()=>TL,typography:()=>NO,unit:()=>pL,vars:()=>VL});var Cd={"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},pL={default:"em"},hL={browserDefault:16,base:16,type:"font-size",ratio:Cd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},NO=hL,gL={},mL={},yL={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},bL={},xL={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},vL={base:NO.base,type:"spacing",ratio:Cd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},_L=vL,wL={},SL={},kL={},CL={},AL={},EL={},OL={default:150,base:150,type:"timing",ratio:Cd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},TL=OL,RL={},PL={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},$L={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]},IL={},FL={},jL={},DL={},LL={},ML=LL,NL={},BL={},VL={},zL={},YA={},JA={},qu=MO,Zu={},BO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in qu){let t=e.toLowerCase();Zu[t]=qu[e];let r=BO(t);r!==t&&(Zu[r]=qu[e]),t!==e&&(Zu[e]=qu[e])}var i_={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:YA,cssMediaVars:JA,CSS_VARS:YA,CSS_MEDIA_VARS:JA,_scratchConfig:!0,...Zu},UL=ct(i_),Gf={active:"0",0:i_};var Fa=[],WL=e=>{e&&e._scratchConfig&&Fa.push(e)},HL=()=>{Fa.pop()},H=e=>Fa.length?Fa[Fa.length-1]:Gf[e||Gf.active]||i_,qL=e=>{if(M(e))return Gf.active="1",Gf[1]=tr(e,ct(UL)),e};var Hr={"-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"},a_=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=VO.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},ol=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},VO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),l_=(e,t)=>{let{base:r,type:n,unit:o}=t,s=VO.has(o)?"rem":o,i=(e_(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Hr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Hr[e+1],u=Math.abs(e),d=Math.pow(WO,2*u),f=Hr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},zO=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},c_=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},UO=(e,t)=>c_(e,t).map(r=>r/e),u_=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=c_(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=i+(h+1),y=a+(h+1)/10,b=zO(h+1,c,i,t),v={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};a_(v,t)})},WO=1.618,GL=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(WO,2*n);return Math.max(o,s)},br=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Hr[c],d=GL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=l_(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};a_(g,e),s&&u_(g,e)}return e},KL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Hr[t],a=R(t)?Object.entries(Hr).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=l_(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return a_(p,l),s&&u_(p,l),l},f_=(e="A",t)=>{let r=H(),{unit:n}=r;if(R(e)&&Ue(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(t_.some(y=>e.includes(y))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${vd(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=y=>a.test(y)?`var(${c}${y}${p})`:y;if(f.includes("+")){let[y,b]=f.split("+"),v=`${h(y)} + ${h(b)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}else if(f.includes("*")){let[y,b]=f.split("*"),v=`${h(y)} * ${h(b)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}else if(f.includes("-")){let[y,b]=f.split("-"),v=`${h(y)} - ${h(b)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}let g=r.sizes;if(g){let y=g[e]||g[e.toLowerCase()];if(y!==void 0)return d?`calc(${y} * -1)`:y}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let y=`var(${c}${f}${p})`;return d?`calc(${y} * -1)`:y}let m=o?o[f]:null;return m?s==="ms"||s==="s"?d+m.val+s:d+m.scaling+s:console.warn("can't find",o,f)},HO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:f_(o,t)}).join("")},Ka=(e,t,r,n)=>{if(typeof e!="string")return H().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=ol(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=HO(e,r):e=f_(e,r),{[t]:n?`${n}(${e})`:e}},qO=(e,t)=>Hr[e-t],GO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=qO(t,o);return r[s]})};N();var XL=(e,t)=>{let r=H(),{cssVars:n}=r;ce(e.value)||(n[e.var]=e.value)},d_=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=UO(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},KO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ad=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=KO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||d_(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},Kf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=KO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),d_(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(e_(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};N();var XO=Qa(),Ib=e=>{let t=H(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},YL=e=>{let t=e&&(e.default||e);if(!R(t))return XO&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},JL=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},ZA=new Set,YO=(e,t)=>{let r=t&&t.default?t.default:t;if(!R(r))return XO&&!ZA.has(e)&&(ZA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=YL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=JL(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=eM(a),a},ZL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",QL=new RegExp(`<(${ZL})\\b([^>]*?)\\s*/>`,"g"),eM=e=>e.replace(QL,"<$1$2></$1>"),JO={};Y(JO,{appendSVGSprite:()=>dT,appendSvgIconsSprite:()=>hT,applyDocument:()=>fT,applyHeadings:()=>nT,applyReset:()=>mT,applySpacingSequence:()=>aT,applyTimingSequence:()=>uT,applyTypographySequence:()=>oT,checkIfBoxSize:()=>iT,getColor:()=>Ee,getFontFamily:()=>tT,getFontSizeByKey:()=>sT,getMediaColor:()=>wt,getMediaTheme:()=>qr,getShadow:()=>cT,getSpacingBasedOnRatio:()=>Ko,getSpacingByKey:()=>ze,getTheme:()=>p_,getTimingByKey:()=>gr,getTimingFunction:()=>Pn,runThroughMedia:()=>rT,setColor:()=>ja,setFont:()=>eT,setFontFamily:()=>Db,setGradient:()=>Da,setMediaTheme:()=>h_,setSVG:()=>m_,setShadow:()=>La,setSvgIcon:()=>pT,setTheme:()=>ZO,splitSpacedValue:()=>lT});N();var Ee=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(W(e))[o,s,i]=e;else{let d=nl(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?(t&&h[t]&&(h=h[t]),n.useVariable?`var(${h.var})`:h.value):e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;if(!u){let d=n.useVariable?`var(${c.var})`:c.value;if(s&&d){let f=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${d} ${f}%, transparent)`}return d}return i&&!c[i]&&(u=Ia(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`},wt=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let o,s,i;if(W(e))o=e[0];else{let d=nl(e);if(d){if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}else o=e}let{color:a,gradient:l}=n,c=a[o]||l[o],u=M(c);if(u&&c.value)return Ee(e,`@${t}`,r);if(u){if(n.useVariable&&c.var)return s||i?Ee(e,null,r):`var(${c.var})`;if(t)return Ee(e,`@${t}`,r);{let d={};for(let f in c){if(f.charCodeAt(0)!==64)continue;let p=n.media[f.slice(1)];if(!p)continue;let h="@media "+(p==="print"?`${p}`:`screen and ${p}`);d[h]=Ee(e,f,r)}return d}}else return n.verbose&&console.warn("Can't find color",e),e},ja=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)){let h=e.slice(2);if(e=Ee(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||W(m)||M(m))&&(n.color[g[0]]=ja(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=Ia(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=Fn(g[0]);v&&v.length>=3?e=`rgba(${Ia(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(W(e)&&(e={"@light":e[0],"@dark":e[1]}),M(e)){let h={};for(let g in e)h[g]=ja(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=h[b],_=x&&(x.value||x);!_||typeof _!="string"||(y[v]=_,(v==="light"||m===void 0)&&(m=_))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(R(s)&&s.includes(".")&&!s.includes("(")){let[h,g]=s.split("."),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(R(s)&&!s.includes("(")&&!s.startsWith("#")){let h=nl(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||W(g)||M(g))&&(n.color[h.name]=ja(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Ia(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=Fn(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Da=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)&&(e=Ee(e.slice(2))),W(e))return{"@light":Da(e[0],t,"light"),"@dark":Da(e[0],t,"dark")};if(M(e)){let s={};for(let i in e)s[i]=Da(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};N();var tM=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"]),QA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],rM=e=>{for(let t=0;t<QA.length;t++)if(e.includes(QA[t]))return!0;return!1},Ed=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?Ee(e[i]):e[i]}),t},ha=e=>(e.value||(e.value=Ed(e)),e.value),p_=(e,t)=>{let r=H();if(r.useVariable)return qr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return ha(i);e=[o,s||t]}}if(ce(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return ha(a[s]);if(i&&i[s])return ha(i[s]);if(l&&l[s])return ha(l[s])}else if(M(e))return Ed(e)},nM=(e,t,r)=>{if(M(t))e.variants.inverse.value=Ed(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},oM=(e,t,r,n)=>{let o=p_(r);n[`&:${t}`]=o,M(r)&&!r.value&&(r.value=o)},sM=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return oM(e,n,o,t),e}),e):void 0},iM=(e,t,r,n)=>{let o=p_(r);n[`@media (prefers-color-scheme: ${t})`]=o,M(r)&&!r.value&&(r.value=o)},aM=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&iM(e,n,o,t),n==="inverse"&&nM(e,o,t),e}),e):void 0},lM=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:ha(n[o]),e}),e):void 0},ZO=(e,t)=>{let r=H();if(r.useVariable)return h_(e,t);let{state:n,media:o,helpers:s}=e,i=Ed(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return sM(e,i),aM(e,i),lM(e,i),{var:a,value:i,state:n,media:o,helpers:s}},Fb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&rM(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Ee(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!tM.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ce(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Fb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Fb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=Ee(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}h!==void 0&&(n[f]=h),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},h_=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(ce(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ce(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=Fb(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=h_(u,t,l,n||d)}else if(!a){let d=Ee(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&Ue(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},jb=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(ce(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=jb(e[n]):o==="."&&(r[`&${n}`]=jb(e[n]))}else r[n]=e[n]}return r},QO=(e,t)=>{let r=t.shift();return e[r]?QO(e[r],t):e},eE=(e,t)=>W(t)?QO(e,t):R(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=H();if(R(e)&&Ue(e)&&(e=qr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=W(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=eE(s,o):s&&t&&(s=eE(s,t)),jb(s)};N();N();var eT=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||W(e)&&!e[0])return;let o;if(e.isVariable){let s=mr(e.url,r.files)||e.url;n_(s)?o=o_(s):o=Ga(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=kd(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>mr(i,r.files)||i):mr(e.url,r.files)||e.url;o=Ga(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},tT=(e,t)=>{let r=H(),{fontFamily:n}=r;return r_(t||n,e)},Db=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),M(s)&&(s=rl(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};N();var rT=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;lt(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){lt(i,{sequence:{},scales:{},vars:{}}),br(i),Kf(e,o);continue}lt(i,{sequence:{},scales:{},templates:{},vars:{}}),br(i),Kf(e,o)}},nT=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=GO(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},oT=()=>{let e=H(),{typography:t}=e;br(t),nT(t),Ad(t),rT(t)},sT=e=>{let t=H(),{typography:r}=t;return Ka(e,"fontSize",r)};N();N();var cM=e=>{let t=H().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return br(n),n},uM=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;lt(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),br(r),Kf(e,t)}},iT=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},aT=()=>{let e=H(),{spacing:t}=e;br(t),Ad(t),uM(t)},fM=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:br(e)},ze=(e,t="padding",r,n)=>{let o=fM(r);if(R(e)&&!n&&e.includes("(")){let i=ol(e);n=i[0],e=i[1]}let s=n?[e]:rl(e);if(W(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ka(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Ka(e,t,o,n)}},Ko=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes("(")){let a=ol(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=cM(e);return ze(i,t,a,n)}return ze(i,t,s,n)},lT=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=t_.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};N();var La=(e,t,r,n)=>{let o=H();if(W(e))return{"@light":La(e[0],t,"light"),"@dark":La(e[1],t,"dark")};if(M(e)){let i={};for(let a in e)i[a]=La(e[a],t,a.startsWith("@")?a.slice(1):a);return i}R(e)&&!jn.test(e)&&(e=Sd(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=Ee(a);if(Yo(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=ze(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},cT=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let[n]=W(e)?e:e.split(" "),o=r.shadow[n],s=M(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};N();var uT=()=>{let e=H(),{timing:t}=e;br(t),Ad(t)},Pn=e=>{let t=H(),{timing:r}=t;return r[e]||r[xd(e)]||e},gr=(e,t="timing")=>{let r=H(),{timing:n}=r;return Ka(e,t,n)};N();var fT=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return lt(t,{theme:n.document,fontFamily:r_(r),fontSize:o.base,lineHeight:o.lineHeight})};N();var g_={document:be},m_=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?YO(t,e):e},dT=(e,t=g_)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];gT(n,t)},pT=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?m_(e,t):e},hT=(e,t=g_)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];gT(n,t)},bb=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},dM=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},tE=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},gT=(e,t=g_)=>{let r=H(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Ib(e);let o=n.querySelector("#svgSprite"),s=Ib(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=dM(n,s);if(o)if(a)tE(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=bb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=bb(n);l&&l.nodeType&&(tE(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=bb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};N();var mT=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?qr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?qr("document"):{};if(r.html&&In(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return tr(lt(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.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}})}};N();var pM=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),hM=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),gM=e=>pM.has(e),En=e=>{let t=e+"";if(jn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(gM(n)||/^\d/.test(n)||n==="0")return n;let o=Ee(n);if(Yo(o))return o;let s=ze(n,"border");return s&&s.border?s.border:n}).join(" ")},mM=e=>jn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ue(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Ee(t);return Yo(r)?r:t}).join(" "),yM=(e,t)=>cT(e,t),rE=(e,t)=>jn.test(e)?e:Sd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Ee(n);if(Yo(o)){let i=wt(n,t);return M(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=ze(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),yT=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=Sd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||hM.has(l)||l==="transparent"||jn.test(l))return l;let c=Ee(l);return Yo(c)?c:l}).join(" ")));return n+i.join(", ")+s},bM=(e,t)=>{let r=H();return e.split(", ").map(n=>Ue(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?yT(n,t):r.gradient[e]?{backgroundImage:wt(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!nl(n)?`url(${n})`:n).join(" ")},xM=e=>R(e)&&e.split(" ").map(t=>ze(t,"gap").gap).join(" "),vM=e=>{let t=e.split(" ");return t.length?t.map(r=>Ue(r)?`var(${r})`:r.length<3||r.includes("ms")?gr(r).timing||r:Pn(r)?Pn(r):r).join(" "):e},nE=(e,t,r)=>{if(R(e))return e.split(",").map(n=>gr(n).timing||n).join(",")},_M=e=>{let t=e.split(",");if(t.length)return t.map(vM).join(",")};function $e(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes("(")){let l=ol(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=iT(e);!i&&a&&!n.ratio&&(o=lT(o))}return n.ratio?Ko(r,e,o,s):ze(o,e,void 0,s)}var se=(e,t=null,r)=>$e(e,t,r,{ratio:!0}),oE=(e,t,r)=>{if(R(e))return{borderRadius:e.split(" ").map((n,o)=>Ko(t,r,n)[r]).join(" ")}};N();var wM=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},it=e=>e,sE={color:ja,gradient:Da,font:eT,fontFamily:Db,fontfamily:Db,theme:ZO,icons:pT,semanticIcons:it,semanticicons:it,svg:m_,svgData:it,typography:it,shadow:La,spacing:it,media:it,grid:it,class:it,timing:it,reset:it,unit:it,animation:it,vars:wM,sizes:it},SM=(e,t,r)=>{let n=H(),o=BO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=sE[o]||sE[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},kM=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=M(t[o])||W(t[o])?1:0,a=M(t[s])||W(t[s])?1:0;return i-a}).forEach(o=>{try{return SM(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var CM={},y_=(e,t=CM)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=qL(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let F=$=>{x.setAttribute("data-theme",$.matches?"dark":"light")},w=v.matchMedia("(prefers-color-scheme: dark)");if(F(w),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=F;try{w.addEventListener("change",F)}catch{w.addListener(F)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let _=Object.keys(y),S=new Set(_);if(_.forEach(F=>{let w=F.toLowerCase();w!==F&&S.has(w)&&tr(y[w],y[F])}),_.map(F=>{let w=F.toLowerCase();if(!(w!==F&&S.has(w)))return kM(F,y[F])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{oT()}catch(F){r.verbose&&console.warn("Error applying typography sequence",F)}if(y.spacing)try{aT()}catch(F){r.verbose&&console.warn("Error applying spacing sequence",F)}if(y.timing)try{uT()}catch(F){r.verbose&&console.warn("Error applying timing sequence",F)}fT();let E=mT();return E&&(r.reset=E),r};var AM=null,EM=null,OM=null;function TM(e){e.batchAtomicCss&&(EM=e.batchAtomicCss),e.compoundCssClass&&(OM=e.compoundCssClass)}function RM(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Qu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var iE=new WeakMap;function ga(e,t){let r=bT(t);if(!r)return;let n=iE.get(r);if(n||(n=new Set,iE.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var aE=new WeakMap;function bT(e){let t=e||RM();if(!t||!t.head)return null;let r=aE.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return aE.set(t,o),AM=o,o}function Bt(e){if(bT(),typeof e=="string"){ga(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:Qu(l);a+=`${c}:${i[l]};`}ga(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Qu(s);ga(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:Qu(a);s+=`${c}:${l};`}}if(s&&ga(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Bt({[`${n} ${c}`]:o[c]});for(let c of a)Bt({[c]:{[n]:o[c]}})}}}}function lE(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Qu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ga(`@keyframes ${e}{${r}}`),e}N();tl();N();N();var PM=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],$M=["none","forwards","backwards","both"],IM=["normal","reverse","alternate","alternate-reverse"],FM=["running","paused"],jM=e=>/^[\d.]+m?s$/.test(e),DM=0,cE=new Map,xb=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(M(e)){let o=JSON.stringify(e),s=cE.get(o);if(s)return s;let i=`smbls-anim-${DM++}`,a=lE(i,e);return cE.set(o,a),a}let n=r&&r[e];return M(n)?lE(e,n):e},LM=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:jM(d)?s.push(d):PM.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):IM.includes(d)?l=d:$M.includes(d)?c=d:FM.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},MM={animation:(e,t)=>{if(R(e)&&e.includes(" ")){let r=LM(e,t);return{animationName:xb(r.name||e,t),animationDuration:r.durations[0]||gr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||gr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Pn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:xb(e,t),animationDuration:gr(t.animationDuration||"A").timing,animationDelay:gr(t.animationDelay||"0s").timing,animationTimingFunction:Pn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:xb(e,t)}),animationDuration:e=>({animationDuration:gr(e).timing}),animationDelay:e=>({animationDelay:gr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Pn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};N();var NM={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>se("height",e,t),width:(e,t)=>se("width",e,t),boxSizing:e=>Nt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("height",t),...$e("width",r||t)}},inlineSize:(e,t)=>se("inlineSize",e,t),blockSize:(e,t)=>se("blockSize",e,t),minWidth:(e,t)=>se("minWidth",e,t),maxWidth:(e,t)=>se("maxWidth",e,t),widthRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("minWidth",t),...$e("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("minHeight",t),...$e("maxHeight",r||t)}},size:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...se("inlineSize",t),...se("blockSize",r||t)}},minBlockSize:(e,t)=>se("minBlockSize",e,t),minInlineSize:(e,t)=>se("minInlineSize",e,t),maxBlockSize:(e,t)=>se("maxBlockSize",e,t),maxInlineSize:(e,t)=>se("maxInlineSize",e,t),minSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("minInlineSize",t),...$e("minBlockSize",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("maxInlineSize",t),...$e("maxBlockSize",r||t)}},borderWidth:(e,t)=>se("borderWidth",e,t),padding:(e,t)=>se("padding",e,t),scrollPadding:(e,t)=>se("scrollPadding",e,t),paddingInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("paddingInlineStart",t),...$e("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("paddingBlockStart",t),...$e("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>se("paddingBlockStart",e,t),paddingBottom:(e,t)=>se("paddingBlockEnd",e,t),paddingLeft:(e,t)=>se("paddingInlineStart",e,t),paddingRight:(e,t)=>se("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>se("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>se("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>se("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>se("paddingInlineEnd",e,t),margin:(e,t)=>se("margin",e,t),marginInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...$e("marginInlineStart",t),...$e("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...$e("marginBlockStart",r),...$e("marginBlockEnd",n||r)}},marginTop:(e,t)=>se("marginBlockStart",e,t),marginBottom:(e,t)=>se("marginBlockEnd",e,t),marginLeft:(e,t)=>se("marginInlineStart",e,t),marginRight:(e,t)=>se("marginInlineEnd",e,t),marginInlineStart:(e,t)=>se("marginInlineStart",e,t),marginInlineEnd:(e,t)=>se("marginInlineEnd",e,t),marginBlockStart:(e,t)=>se("marginBlockStart",e,t),marginBlockEnd:(e,t)=>se("marginBlockEnd",e,t),gap:e=>({gap:xM(e)}),columnGap:(e,t)=>Ko(t,"columnGap",e),rowGap:(e,t)=>Ko(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>oE(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>oE(e??t.round,t,"borderRadius")},BM={fontSize:e=>sT(e)||e,fontFamily:e=>({fontFamily:tT(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},VM={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},zM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>ze(r,"k").k).join(" ")}},left:e=>ze(e,"left"),top:e=>ze(e,"top"),right:e=>ze(e,"right"),bottom:e=>ze(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};N();var jt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},UM={theme:(e,t)=>{if(e)return t.themeModifier?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=jt(t);if(e)return{color:wt(e,r)}},background:(e,t)=>{let r=jt(t);if(e)return R(e)&&e.includes("gradient")?{background:yT(e,r)}:{background:wt(e,r)}},backgroundColor:(e,t)=>{let r=jt(t);if(e)return{backgroundColor:wt(e,r)}},backgroundImage:(e,t,r,n)=>{let o=jt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:bM(e,o)}},textStroke:e=>({WebkitTextStroke:mM(e)}),outline:e=>({outline:En(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:En(e)}),borderColor:(e,t)=>{let r=jt(t);if(e)return{borderColor:wt(e,r)}},borderTopColor:(e,t)=>{let r=jt(t);if(e)return{borderTopColor:wt(e,r)}},borderBottomColor:(e,t)=>{let r=jt(t);if(e)return{borderBottomColor:wt(e,r)}},borderLeftColor:(e,t)=>{let r=jt(t);if(e)return{borderLeftColor:wt(e,r)}},borderRightColor:(e,t)=>{let r=jt(t);if(e)return{borderRightColor:wt(e,r)}},borderLeft:e=>({borderLeft:En(e)}),borderTop:e=>({borderTop:En(e)}),borderRight:e=>({borderRight:En(e)}),borderBottom:e=>({borderBottom:En(e)}),shadow:(e,t)=>{let r=jt(t);if(e)return{boxShadow:yM(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split("!importan"),o=jt(t),s=n?" !important":"";return{boxShadow:rE(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:rE(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:En(e)})},xT={transition:e=>({transition:_M(e)}),transitionDuration:e=>({transitionDuration:nE(e)}),transitionDelay:e=>({transitionDelay:nE(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Pn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};N();var WM={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},HM={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},uE={...MM,...NM,...BM,...VM,...zM,...UM,...xT,...WM,...HM},qM=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);N();var GM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,KM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Kr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(GM),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},fE=(e,t,r)=>({[e]:Kr(t,r)}),ua=(e,t,r)=>{let n=`&${e}`,o=Kr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},b_=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return L(r)?r.call(t,t):!!r},XM=(e,t,r)=>{let n=e.slice(1),o=b_(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},YM=(e,t,r)=>({[e]:t}),JM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=b_(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},ZM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=b_(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},QM=(e,t)=>Kr(e,t),eN={"@":KM,":":ua,"[":ua,"*":ua,"+":ua,"~":ua,"&":fE,">":fE,$:XM,"-":YM,".":JM,"!":ZM},vb=qo(),tN=(e,t,r)=>{let n=t?.context?.designSystem;n&&WL(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>lt(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);lt(o,QM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=L(c)?c(t,t.state,t.context):c;u&&i(a,u),!vb&&M(o[a])&&(o[a].label=a)}else if(uE[a]){let c=Ne(l,t);W(c)&&(c=c.reduce((d,f)=>lt(d,f),{}));let u=uE[a](c,t,t.state,t.context);W(u)&&(u=u.reduce((d,f)=>lt(d,f),{})),u&&i(a,u),!vb&&M(o[a])&&(o[a].label=a)}else if(qM.has(a)){let c=Ne(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!vb&&M(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&HL()}},rN=(e,t)=>{let r={};for(let n in e){let o=eN[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?In(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=tN(e,t,r),s=rN(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fd(n,s);n._selectors=s}return n};N();N();N();tl();var CK=new Proxy(Object.create(null),{get(){},has(){return!1}});N();var dE=(e,t)=>{let r=e.call("exec",t,e);if(r)return R(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var nN={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"}}}},oN={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},sN={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"}}},AK={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...nN,...oN,...sN,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var iN={};Y(iN,{A:()=>tP,AssetPicture:()=>qT,Audio:()=>ZT,Avatar:()=>_P,B:()=>bR,Block:()=>_T,Box:()=>wR,Br:()=>kR,Button:()=>iP,ButtonSet:()=>uP,COMPONENTS:()=>yN,Caption:()=>cR,Checkbox:()=>LR,CheckboxHgroup:()=>MR,Circle:()=>zT,CircleButton:()=>lP,Clickable:()=>DT,Data:()=>vR,Dialog:()=>pP,DialogFooter:()=>gP,DialogHeader:()=>hP,Dropdown:()=>CP,DropdownList:()=>AP,DropdownParent:()=>EP,DropdownParentFocus:()=>OP,DropdownSiblingFocus:()=>TP,FileIcon:()=>JR,Flex:()=>ST,Focusable:()=>LT,FocusableComponent:()=>MT,Footnote:()=>yR,Form:()=>PT,Grid:()=>CT,Gutter:()=>ET,H1:()=>rR,H2:()=>nR,H3:()=>oR,H4:()=>sR,H5:()=>iR,H6:()=>aR,Headline:()=>gR,Hgroup:()=>TR,HgroupButton:()=>PR,HgroupRows:()=>RR,Hoverable:()=>jT,Hr:()=>SR,I:()=>xR,Icon:()=>XR,IconButton:()=>fP,IconText:()=>YR,Iframe:()=>IT,Img:()=>TT,Inline:()=>wT,InlineFlex:()=>kT,InlineGrid:()=>AT,Input:()=>IR,Italic:()=>pR,KangorooButton:()=>cP,Li:()=>CR,Link:()=>A_,Notification:()=>PP,NumberInput:()=>jR,Ol:()=>ER,P:()=>lR,Picture:()=>WT,Radio:()=>BR,RadioHgroup:()=>VR,Range:()=>SP,RouteLink:()=>rP,RouterLink:()=>E_,SHAPES:()=>Xf,Select:()=>oP,Shape:()=>v_,Span:()=>tR,SquareButton:()=>aP,Strong:()=>uR,Subhead:()=>mR,Svg:()=>KT,Text:()=>eR,Textarea:()=>qR,TextareaWithButton:()=>GR,Theme:()=>UT,Title:()=>hR,Toggle:()=>UR,ToggleHgroup:()=>WR,Tooltip:()=>yP,TooltipHidden:()=>bP,TooltipParent:()=>xP,U:()=>fR,Ul:()=>AR,Underline:()=>dR,Video:()=>YT,depth:()=>x_,getSystemGlobalTheme:()=>Yf});var vT={};Y(vT,{Block:()=>_T,Flex:()=>ST,Grid:()=>CT,Gutter:()=>ET,Inline:()=>wT,InlineFlex:()=>kT,InlineGrid:()=>AT});var _T={display:"block"},wT={display:"inline"},ST={display:"flex"},kT={display:"inline-flex"},CT={display:"grid"},AT={display:"inline-grid"},ET={boxSize:"C1"},OT={};Y(OT,{Img:()=>TT});N();var TT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Qt(e);return t&&t.src||e.src},srcset:e=>{let t=Qt(e);return(t?_d(t):"")||e.srcset}}},RT={};Y(RT,{Form:()=>PT});var PT={tag:"form"},$T={};Y($T,{Iframe:()=>IT});var IT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},FT={};Y(FT,{Clickable:()=>DT,Focusable:()=>LT,FocusableComponent:()=>MT,Hoverable:()=>jT});var aN={appearance:"none",cursor:"pointer",fontFamily:"inherit"},jT={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},DT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},LT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},MT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:aN},NT={};Y(NT,{Picture:()=>WT});var BT={};Y(BT,{Theme:()=>UT,getSystemGlobalTheme:()=>Yf});var VT={};Y(VT,{Circle:()=>zT,SHAPES:()=>Xf,Shape:()=>v_,default:()=>lN,depth:()=>x_});N();var _t=H(),x_={4:{boxShadow:`rgba(0,0,0,.10) 0 2${_t.unit.default} 4${_t.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${_t.unit.default} 6${_t.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${_t.unit.default} 10${_t.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${_t.unit.default} 16${_t.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${_t.unit.default} 26${_t.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${_t.unit.default} 42${_t.unit.default}`}},Do=e=>Ee(e.shapeDirectionColor)||Ee(e.borderColor)||Ee(e.backgroundColor)||Ee(e.background),Gu=e=>{let t=xT.transition(e.transition,e);return t&&t.transition},Xf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Do(e),transition:Gu(e),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:e=>({position:"relative","&:before":{content:'""',display:"block",background:Do(e),transition:Gu(e),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:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Do(e),transition:Gu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Gu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Do(e)} 25%, transparent 25%), linear-gradient(315deg, ${Do(e)} 25%, transparent 25%)`},"&:after":{background:Do(e),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)"}}}},v_={deps:{exec:Ne,getSpacingBasedOnRatio:Ko,getMediaColor:wt},classlist:{shape:e=>e.deps.exec(Xf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Xf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},zT={round:"100%"},lN=v_;N();var Yf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},UT={deps:{depth:x_},classlist:{depth:e=>!Nt(e.depth)&&e.deps.depth[e.depth]}},WT={deps:{getSystemGlobalTheme:Yf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Yf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).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:(e,t)=>e.parent?.src||t.src}},HT={};Y(HT,{AssetPicture:()=>qT});N();var qT={tag:"picture",children:e=>{let t=Qt(e);if(t)return wd(t,e.alt)}},GT={};Y(GT,{Svg:()=>KT});var KT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);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 d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},XT={};Y(XT,{Video:()=>YT});N();var YT={tag:"video",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},JT={};Y(JT,{Audio:()=>ZT});N();var ZT={tag:"audio",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},QT={};Y(QT,{B:()=>bR,Caption:()=>cR,Data:()=>vR,Footnote:()=>yR,H1:()=>rR,H2:()=>nR,H3:()=>oR,H4:()=>sR,H5:()=>iR,H6:()=>aR,Headline:()=>gR,I:()=>xR,Italic:()=>pR,P:()=>lR,Span:()=>tR,Strong:()=>uR,Subhead:()=>mR,Text:()=>eR,Title:()=>hR,U:()=>fR,Underline:()=>dR});var eR={},tR={tag:"span"},rR={tag:"h1"},nR={tag:"h2"},oR={tag:"h3"},sR={tag:"h4"},iR={tag:"h5"},aR={tag:"h6"},lR={tag:"p"},cR={tag:"caption"},uR={tag:"strong",fontWeight:"700"},fR={tag:"u"},dR={tag:"u"},pR={tag:"i"},hR={},gR={tag:"h6",fontSize:"B",fontWeight:500},mR={tag:"span",fontSize:"Z1"},yR={tag:"span",fontSize:"Z"},bR={tag:"b"},xR={tag:"i"},vR={tag:"data"},_R={};Y(_R,{Box:()=>wR,Br:()=>kR,Hr:()=>SR,Li:()=>CR,Ol:()=>ER,Ul:()=>AR});var cN=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},wR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:cN},SR={tag:"hr",margin:"C1 0"},kR={tag:"br"},CR={tag:"li"},AR={tag:"ul",childExtends:{extends:"Li"}},ER={tag:"ol",childExtends:{extends:"Li"}},OR={};Y(OR,{Hgroup:()=>TR,HgroupButton:()=>PR,HgroupRows:()=>RR});var pE=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},TR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:pE,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:pE,margin:"0",color:"paragraph"}},RR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},PR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},$R={};Y($R,{Input:()=>IR});var IR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},FR={};Y(FR,{NumberInput:()=>jR});var jR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},DR={};Y(DR,{Checkbox:()=>LR,CheckboxHgroup:()=>MR});var LR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.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"}}},MR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},NR={};Y(NR,{Radio:()=>BR,RadioHgroup:()=>VR});var BR={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}},VR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},zR={};Y(zR,{Toggle:()=>UR,ToggleHgroup:()=>WR});var UR={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},WR={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},HR={};Y(HR,{Textarea:()=>qR,TextareaWithButton:()=>GR});var qR={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"}},GR={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"}}},KR={};Y(KR,{FileIcon:()=>JR,Icon:()=>XR,IconText:()=>YR});var XR={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let _=x[".isActive"];if(_)return x.call("exec",_.name||_.icon)},c=(x,_,S)=>{let{semanticIcons:E}=S&&S.designSystem,{toCamelCase:F}=S&&S.utils,w=u(x,_),$=F(w).split(/([a-z])([A-Z])/g),q=$[1]?$[0]:w.split(".")[0].split(" ")[0],te=E&&E[q];if(te){let j=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=te[j]||te[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,_)=>{let{key:S}=x,E=x.call("exec",x.name||x.icon||S,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:S},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},YR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},JR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},ZR={};Y(ZR,{A:()=>tP,Link:()=>A_,RouteLink:()=>rP,RouterLink:()=>E_});var uN={};Y(uN,{default:()=>gN,getActiveRoute:()=>C_,lastLevel:()=>Od,lastPathname:()=>Jf,matchRoute:()=>w_,parseQuery:()=>S_,parseRoutePattern:()=>__,router:()=>Jo,runGuards:()=>k_});N();var QR=/^:(.+)/,eP=/^\*$/,hE=new Map,__=e=>{let t=hE.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(QR);a?n.push({index:i,name:a[1]}):eP.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return hE.set(e,s),s},w_=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||"");if(!t)return{key:null,content:null,params:{},routePath:o};let s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=__(l),u=fN(n,c);u>i&&(i=u,s=l,a=dN(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},fN=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(QR.test(r[i]))o+=1;else if(eP.test(r[i]))o+=.5;else return-1;return o},dN=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},S_=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},k_=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},C_=(e=0,t)=>{t||(t=typeof le<"u"?le.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Jf,Od=0,pN=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,hN={level:Od,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:be&&be.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Jo=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||le,i=o?.context?.document||be,a={...hN,...o.context.routerOptions,...n};Od=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=pN(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=S_(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Jf;Jf=p;let x,_,S,E;if(a.useParamsMatching){let w=w_(p,o.routes,a.level);x=w.key,_=w.routePath,S=w.content,E=w.params}else{x=C_(a.level,p),_=x;let w=o.routes;S=w?w[x||"/"]||w["/*"]:null,E={}}let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!S){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await k_(a.guards,w);if($===!1)return;if(typeof $=="string")return Jo($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let w={route:x,routePath:_,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof S=="object"?S:{extends:S}};a.useFragment&&(te.tag="fragment");try{if(typeof o?.set!="function")return;o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&S[c]?.node?.scrollTo&&S[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=i.getElementById(g);if(w&&F?.scrollTo){let $=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Go("routeChanged",o,a)},gN=Jo,mN=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__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){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Jo)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},A_={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>dE(e,e.href)||dE(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:mN},tP={extends:"Link"},E_={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__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){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Jo)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},rP={extends:[A_,E_]},nP={};Y(nP,{Select:()=>oP});var oP={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},sP={};Y(sP,{Button:()=>iP,ButtonSet:()=>uP,CircleButton:()=>lP,IconButton:()=>fP,KangorooButton:()=>cP,SquareButton:()=>aP});var iP={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},aP={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},lP={extends:"SquareButton",round:"C"},cP={extends:"Button",childExtends:"IconText"},uP={tag:"nav",display:"flex",childExtends:"SquareButton"},fP={extends:["SquareButton","ClickableItem"],round:"Z"},dP={};Y(dP,{Dialog:()=>pP,DialogFooter:()=>gP,DialogHeader:()=>hP});var pP={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},hP={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},gP={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},mP={};Y(mP,{Tooltip:()=>yP,TooltipHidden:()=>bP,TooltipParent:()=>xP});N();var yP={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:e=>Ho(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},bP={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},xP={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},vP={};Y(vP,{Avatar:()=>_P});var _P={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},wP={};Y(wP,{Range:()=>SP});var SP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.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:$b("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:$b("#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:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},kP={};Y(kP,{Dropdown:()=>CP,DropdownList:()=>AP,DropdownParent:()=>EP,DropdownParentFocus:()=>OP,DropdownSiblingFocus:()=>TP});var CP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},AP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},EP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},OP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},TP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},RP={};Y(RP,{Notification:()=>PP});var PP={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}}}},yN=Object.assign({},vT,OT,RT,$T,FT,NT,HT,GT,VT,XT,JT,BT,QT,_R,OR,$R,FR,DR,NR,zR,HR,KR,ZR,nP,sP,dP,mP,vP,wP,kP,RP);var bN=null;function xN(e){bN=e}N();var vN={};Y(vN,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>mx,DOMQ_PROPERTIES:()=>Xo,ENV:()=>jx,HTML_TAGS:()=>Wa,METHODS:()=>Va,METHODS_EXL:()=>ud,NODE_ENV:()=>Dt,OPTIONS:()=>bd,PACKAGE_MANAGER_TO_CDN:()=>Wf,PARSED_DOMQ_PROPERTIES:()=>cd,PROPS_METHODS:()=>Rn,STATE_METHODS:()=>Tn,STATE_PROPERTIES:()=>gx,SVG_TAGS:()=>Yx,TYPES:()=>ya,UNIVERSAL_RESERVED_KEYS:()=>Uf,addCaching:()=>If,addContext:()=>$f,addExtend:()=>tv,addExtends:()=>Qe,addItemAfterEveryElement:()=>rx,addProtoToArray:()=>id,addRef:()=>Tf,applyCSS:()=>kN,applyDependentState:()=>vv,applyEvent:()=>Nf,applyEventUpdate:()=>Bf,applyExtends:()=>nv,applyProps:()=>Pa,arrayContainsOtherArray:()=>Xb,arraysEqual:()=>ox,arrayzeValue:()=>rl,buildImgSrcset:()=>_d,buildSourcesAndImg:()=>wd,cache:()=>kv,call:()=>hO,captureSnapshot:()=>Pv,checkForStateTypes:()=>mv,checkIfInherits:()=>Mf,checkIfStringIsInArray:()=>ax,clone:()=>bx,cloneAndMergeArrayExtend:()=>ka,cloneFunction:()=>kE,concatAddExtends:()=>Zx,copyJavaScriptToClipboard:()=>Xv,copyStringToClipboard:()=>Kv,createBasedOnType:()=>Of,createElement:()=>gv,createElementExtends:()=>bf,createExtends:()=>md,createExtendsFromKeys:()=>Ha,createExtendsStack:()=>wf,createIfConditionFlag:()=>Ux,createInheritedState:()=>yv,createKey:()=>hd,createNestedObject:()=>Ex,createNestedObjectByKeyPath:()=>xv,createObjectWithoutPrototype:()=>df,createParent:()=>Rf,createPath:()=>Pf,createProps:()=>yd,createPropsStack:()=>Af,createRoot:()=>hv,createScope:()=>wv,createSnapshotId:()=>pd,customDecodeURIComponent:()=>hx,customEncodeURIComponent:()=>px,cutArrayAfterValue:()=>ex,cutArrayBeforeValue:()=>Qb,debounce:()=>SE,debounceOnContext:()=>Bx,decodeNewlines:()=>dx,deepClone:()=>ct,deepContains:()=>Cx,deepDefaults:()=>$a,deepDestringifyFunctions:()=>xx,deepExtend:()=>yf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>ba,defineSetter:()=>Rv,destringifyGlobalScope:()=>vx,detectHeightOnInit:()=>Dv,detectInfiniteLoop:()=>Px,document:()=>be,encodeNewlines:()=>fx,error:()=>zf,excludeKeysFromObject:()=>Ix,exec:()=>Ne,extendCachedRegistry:()=>Qx,extendStackRegistry:()=>_a,extractArrayExtend:()=>Sa,fetchLibraryData:()=>qv,fibonacciNumberByIndex:()=>Lv,filterArrays:()=>sx,filterArraysFast:()=>ix,finalizeExtends:()=>Sf,findClosestNumber:()=>qf,findClosestNumberInFactory:()=>Hv,findInheritedState:()=>Lf,findKeyPosition:()=>cx,flattenExtend:()=>Bo,formatDate:()=>jv,generateHash:()=>hf,generateKey:()=>va,generateMetaTags:()=>Wv,get:()=>QE,getActiveRoute:()=>C_,getCDNUrl:()=>Hf,getCapitalCaseKeys:()=>OE,getCdnProviderFromConfig:()=>Iv,getChildStateInKey:()=>Df,getChildren:()=>rO,getContext:()=>lO,getCookie:()=>Kx,getDB:()=>gO,getEmotionStylesheet:()=>Qv,getExtendsInElement:()=>rv,getExtendsStack:()=>Aa,getExtendsStackRegistry:()=>mf,getFrequencyInArray:()=>Yb,getHashedExtend:()=>wa,getImportMapScript:()=>Fv,getInObjectByPath:()=>Rx,getLocalStorage:()=>CE,getNev:()=>Nx,getPageMetadata:()=>wO,getParentStateInKey:()=>jf,getPath:()=>nO,getQuery:()=>mO,getRef:()=>tO,getRoot:()=>sO,getRootContext:()=>aO,getRootData:()=>iO,getRootState:()=>oO,getRootStateInKey:()=>Ff,getSpreadChildren:()=>TE,global:()=>qb,hasFunction:()=>No,hasHandlerPlugin:()=>el,hasOwnProperty:()=>wx,inheritChildExtends:()=>vf,inheritChildPropsExtends:()=>xf,inheritParentProps:()=>Oa,inheritRecursiveChildExtends:()=>_f,init:()=>Td,initProps:()=>dv,is:()=>Zt,isArray:()=>W,isBoolean:()=>af,isContextComponent:()=>RE,isCyclic:()=>$x,isDOMNode:()=>at,isDate:()=>cf,isDefined:()=>Ho,isDevelopment:()=>gd,isEmpty:()=>uf,isEmptyObject:()=>Sx,isEqualDeep:()=>ff,isFunction:()=>L,isHtmlElement:()=>rd,isLocal:()=>Mx,isMethod:()=>yO,isMobile:()=>qx,isNode:()=>Xa,isNot:()=>Kb,isNotProduction:()=>Qa,isNull:()=>lf,isNumber:()=>$n,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Mv,isProduction:()=>qo,isStaging:()=>Lx,isState:()=>bv,isString:()=>R,isStringFunction:()=>zx,isTest:()=>pf,isTesting:()=>Dx,isUndefined:()=>Nt,isUniversallyReservedKey:()=>$v,isValidHtmlTag:()=>Jx,joinArrays:()=>Na,jointStacks:()=>ev,keys:()=>Av,lastLevel:()=>Od,lastPathname:()=>Jf,loadCssFile:()=>zv,loadJavascript:()=>Uv,loadJavascriptFile:()=>Nv,loadJavascriptFileEmbedSync:()=>Vv,loadJavascriptFileSync:()=>Bv,loadRemoteCSS:()=>_O,loadRemoteScript:()=>vO,log:()=>cO,logGroupIf:()=>Hx,logIf:()=>Wx,lookdown:()=>YE,lookdownAll:()=>JE,lookup:()=>XE,lowercaseFirstLetter:()=>Ja,makeObjectWithoutPrototype:()=>kx,map:()=>yx,mapStringsWithContextComponents:()=>Ca,matchRoute:()=>w_,matchesComponentNaming:()=>On,memoize:()=>Vx,merge:()=>lt,mergeSharedLibraries:()=>Gv,nextElement:()=>fO,normalizeLibraryKey:()=>qa,objectToString:()=>xa,objectizeStringProperty:()=>Ea,overwrite:()=>fd,overwriteDeep:()=>In,overwriteShallow:()=>dd,overwriteState:()=>_v,parse:()=>Ev,parseDeep:()=>Vf,parseQuery:()=>S_,parseRoutePattern:()=>__,pickupElementFromProps:()=>iv,pickupPropsFromElement:()=>sv,previousElement:()=>dO,propExists:()=>fv,propertizeElement:()=>av,propertizeUpdate:()=>$E,reinit:()=>SN,remove:()=>ZE,removeChars:()=>Yv,removeCookie:()=>Xx,removeDuplicateProps:()=>Ta,removeDuplicatesInArray:()=>Ba,removeFromArray:()=>Jb,removeFromObject:()=>Ax,removeNestedKeyByPath:()=>Ox,removeValueFromArray:()=>sd,removeValueFromArrayAll:()=>tx,reorderArrayByValues:()=>nx,replaceLiteralsWithObjectFields:()=>vE,replaceOctalEscapeSequences:()=>ux,resolveAsset:()=>Qt,resolveHandler:()=>za,resolveSharedLibraries:()=>kO,returnValueAsText:()=>Ef,router:()=>Jo,runGuards:()=>k_,runPluginHook:()=>Ua,scratchSystem:()=>JO,scratchUtils:()=>EO,self:()=>Gb,set:()=>y_,setActiveRootState:()=>Tv,setCookie:()=>Gx,setHashedExtend:()=>gf,setInObjectByPath:()=>Tx,setLocalStorage:()=>AE,setNodeStyles:()=>Cv,setProps:()=>eO,setPropsPrototype:()=>kf,spotByPath:()=>KE,srcsetFor:()=>zo,stringIncludesAny:()=>ad,stringToObject:()=>_x,swapItemsInArray:()=>Zb,syncProps:()=>Ra,toCamelCase:()=>xd,toDashCase:()=>vd,toDescriptionCase:()=>Zv,toTitleCase:()=>Jv,toggleFullscreen:()=>xO,triggerEventOn:()=>Go,triggerEventOnUpdate:()=>Sv,trimStringFromSymbols:()=>lx,unstackArrayOfObjects:()=>od,update:()=>lv,updateProps:()=>pv,variables:()=>pO,verbose:()=>Ov,warn:()=>uO,window:()=>le});N();N();var _N=H(),$P=(e=_N,t)=>{let r=M(t.localFile)?t.localFile:{},n=ct(r.designSystem||{});return tr(e,n)},wN={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Td=(e,t=wN)=>{let r=$P(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=y_({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=LO(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Bt(a),c&&(Bt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Bt(m)}l&&Bt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Bt(m)}return(f||d)&&dT(i.svg,{document:t.document}),(h||p)&&hT(i.icons,{document:t.document}),i},IP={},SN=(e,t=IP)=>{let r=$P(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=y_({verbose:!1,...r});if(!t.preventInject){if(Bt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Bt(i)}Bt(s.reset)}return s},kN=(e,t=IP)=>{Bt(e)};N();N();var EK=le&&le.location?le.location.host.includes("dev."):gd();N();Vo();var CN={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},AN={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},OK={...CN,router:AN};N();N();N();N();Vo();var Zf={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"},EN=Object.create(null);for(let e in Zf)EN[Zf[e]]=e;var _b=Object.create(null);for(let e in Zf){let t=Zf[e];if(_b[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${_b[t]}"`);_b[t]=e}var ON=0,TN=()=>`${Date.now().toString(36)}-${(ON++).toString(36)}`,Ma=(e,t,r={})=>({id:TN(),ts:Date.now(),type:e,level:t,...r}),RN=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Qf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:RN(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Uo=e=>e?.context?.analyze,PN={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"}},$N=(e,{category:t,type:r,level:n})=>o=>{let s=Uo(o);!s||!s.shouldCapture(t)||s.emit(Ma(r,n,{hook:e,element:Qf(o)}))},gE=e=>(t,r)=>{let n=Uo(t);!n||!n.shouldCapture("state")||n.emit(Ma("state","debug",{hook:e,element:Qf(t),changedKeys:r?.changedKeys||null}))},IN={name:"analyze",error(e,t){let r=Uo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ma("error","error",{hook:t?.hook||"error",element:Qf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Uo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ma("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Uo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Uo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Ma("update","debug",{hook:"update",element:Qf(e),durationMs:r}))},beforeStateUpdate:gE("beforeStateUpdate"),stateUpdate:gE("stateUpdate")};for(let[e,t]of Object.entries(PN))IN[e]=$N(e,t);N();N();N();N();var TK=typeof le<"u"&&typeof le.document<"u";var RK=typeof le<"u"&&typeof le.document<"u";N();var PK=typeof le<"u"&&typeof le.document<"u";N();var $K=typeof le<"u"&&typeof le.document<"u";var er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";var ef=Object.create(null);Object.keys(er).forEach(e=>{ef[er[e]]=e});var Lb={type:"error",data:"parser error"},FP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jP=typeof ArrayBuffer=="function",DP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,O_=({type:e,data:t},r,n)=>FP&&t instanceof Blob?r?n(t):mE(t,n):jP&&(t instanceof ArrayBuffer||DP(t))?r?n(t):mE(new Blob([t]),n):n(er[e]+(t||"")),mE=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function yE(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var wb;function FN(e,t){if(FP&&e.data instanceof Blob)return e.data.arrayBuffer().then(yE).then(t);if(jP&&(e.data instanceof ArrayBuffer||DP(e.data)))return t(yE(e.data));O_(e,!1,r=>{wb||(wb=new TextEncoder),t(wb.encode(r))})}var bE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ma=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<bE.length;e++)ma[bE.charCodeAt(e)]=e;var jN=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=ma[e.charCodeAt(n)],i=ma[e.charCodeAt(n+1)],a=ma[e.charCodeAt(n+2)],l=ma[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},DN=typeof ArrayBuffer=="function",T_=(e,t)=>{if(typeof e!="string")return{type:"message",data:LP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:LN(e.substring(1),t)}:ef[r]?e.length>1?{type:ef[r],data:e.substring(1)}:{type:ef[r]}:Lb},LN=(e,t)=>{if(DN){let r=jN(e);return LP(r,t)}else return{base64:!0,data:e}},LP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,MP="",MN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{O_(s,!1,a=>{n[i]=a,++o===r&&t(n.join(MP))})})},NN=(e,t)=>{let r=e.split(MP),n=[];for(let o=0;o<r.length;o++){let s=T_(r[o],t);if(n.push(s),s.type==="error")break}return n};function BN(){return new TransformStream({transform(e,t){FN(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Sb;function Ku(e){return e.reduce((t,r)=>t+r.length,0)}function Xu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function VN(e,t){Sb||(Sb=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Ku(r)<1)break;let l=Xu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Ku(r)<2)break;let l=Xu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Ku(r)<8)break;let l=Xu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Lb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Ku(r)<o)break;let l=Xu(r,o);a.enqueue(T_(s?l:Sb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Lb);break}}}})}var NP=4;function Oe(e){if(e)return zN(e)}function zN(e){for(var t in Oe.prototype)e[t]=Oe.prototype[t];return e}Oe.prototype.on=Oe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Oe.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Oe.prototype.off=Oe.prototype.removeListener=Oe.prototype.removeAllListeners=Oe.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Oe.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Oe.prototype.emitReserved=Oe.prototype.emit;Oe.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Oe.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Rd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),UN="arraybuffer";function BP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var WN=St.setTimeout,HN=St.clearTimeout;function Pd(e,t){t.useNativeTimers?(e.setTimeoutFn=WN.bind(St),e.clearTimeoutFn=HN.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var qN=1.33;function GN(e){return typeof e=="string"?KN(e):Math.ceil((e.byteLength||e.size)*qN)}function KN(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function VP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function XN(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function YN(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var JN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},R_=class extends Oe{constructor(e){super(),this.writable=!1,Pd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new JN(e,t,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 t=T_(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_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 t=XN(e);return t.length?"?"+t:""}},ZN=class extends R_{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=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)};NN(e,this.socket.binaryType).forEach(t),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,MN(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=VP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},zP=!1;try{zP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var QN=zP;function eB(){}var tB=class extends ZN{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Wo=class tf extends Oe{constructor(t,r,n){super(),this.createRequest=t,Pd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=BP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=tf.requestsCount++,tf.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=eB,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete tf.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Wo.requestsCount=0;Wo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",xE);else if(typeof addEventListener=="function"){let e="onpagehide"in St?"pagehide":"unload";addEventListener(e,xE,!1)}}function xE(){for(let e in Wo.requests)Wo.requests.hasOwnProperty(e)&&Wo.requests[e].abort()}var rB=(function(){let e=UP({xdomain:!1});return e&&e.responseType!==null})(),nB=class extends tB{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=rB&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Wo(UP,this.uri(),e)}};function UP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||QN))return new XMLHttpRequest}catch{}if(!t)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var WP=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",oB=class extends R_{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=WP?{}:BP(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,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;O_(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&Rd(()=>{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",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=VP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},kb=St.WebSocket||St.MozWebSocket,sB=class extends oB{createSocket(e,t,r){return WP?new kb(e,t,r):t?new kb(e,t):new kb(e)}doWrite(e,t){this.ws.send(t)}},iB=class extends R_{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 t=VN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=BN();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&Rd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},aB={websocket:sB,webtransport:iB,polling:nB},lB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Mb(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=lB.exec(e||""),s={},i=14;for(;i--;)s[cB[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,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=uB(s,s.path),s.queryKey=fB(s,s.query),s}function uB(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function fB(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Nb=typeof addEventListener=="function"&&typeof removeEventListener=="function",rf=[];Nb&&addEventListener("offline",()=>{rf.forEach(e=>e())},!1);var nf=class of extends Oe{constructor(t,r){if(super(),this.binaryType=UN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Mb(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Mb(r.host).host);Pd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=YN(this.opts.query)),Nb&&(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"})},rf.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=NP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&of.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",of.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=GN(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Rd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(of.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Nb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=rf.indexOf(this._offlineEventListener);n!==-1&&rf.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};nf.protocol=NP;var dB=class extends nf{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 t=this.createTransport(e),r=!1;nf.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;nf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},HP=class extends dB{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>aB[n]).filter(n=>!!n)),super(e,r)}},IK=HP.protocol;function pB(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Mb(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var qP={};Y(qP,{Decoder:()=>SB,Encoder:()=>wB,PacketType:()=>ee,isPacketValid:()=>OB,protocol:()=>_B});var hB=typeof ArrayBuffer=="function",gB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,GP=Object.prototype.toString,mB=typeof Blob=="function"||typeof Blob<"u"&&GP.call(Blob)==="[object BlobConstructor]",yB=typeof File=="function"||typeof File<"u"&&GP.call(File)==="[object FileConstructor]";function P_(e){return hB&&(e instanceof ArrayBuffer||gB(e))||mB&&e instanceof Blob||yB&&e instanceof File}function sf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(sf(e[r]))return!0;return!1}if(P_(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return sf(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&sf(e[r]))return!0;return!1}function bB(e){let t=[],r=e.data,n=e;return n.data=Bb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Bb(e,t){if(!e)return e;if(P_(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Bb(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Bb(e[n],t));return r}return e}function xB(e,t){return e.data=Vb(e.data,t),delete e.attachments,e}function Vb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Vb(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Vb(e[r],t));return e}var vB=wD(nL(),1),zb=(0,vB.default)("socket.io-parser"),KP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],_B=5,ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ee||(ee={}));var wB=class{constructor(e){this.replacer=e}encode(e){return zb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&sf(e)?this.encodeAsBinary({type:e.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ee.BINARY_EVENT||e.type===ee.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),zb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=bB(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},SB=class XP extends Oe{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===ee.BINARY_EVENT;n||r.type===ee.BINARY_ACK?(r.type=n?ee.EVENT:ee.ACK,this.reconstructor=new kB(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(P_(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(ee[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ee.BINARY_EVENT||n.type===ee.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!YP(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(XP.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return zb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ee.CONNECT:return ed(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||ed(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&KP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},kB=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 t=xB(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function CB(e){return typeof e=="string"}var YP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function AB(e){return e===void 0||YP(e)}function ed(e){return Object.prototype.toString.call(e)==="[object Object]"}function EB(e,t){switch(e){case ee.CONNECT:return t===void 0||ed(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&KP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||ed(t);default:return!1}}function OB(e){return CB(e.nsp)&&AB(e.id)&&EB(e.type,e.data)}function Mt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var TB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),JP=class extends Oe{constructor(e,t,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=t,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=[Mt(e,"open",this.onopen.bind(this)),Mt(e,"packet",this.onpacket.bind(this)),Mt(e,"error",this.onerror.bind(this)),Mt(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,...t){var r,n,o;if(TB.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:ee.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.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:ee.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,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ee.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 ee.EVENT:case ee.BINARY_EVENT:this.onevent(e);break;case ee.ACK:case ee.BINARY_ACK:this.onack(e);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)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 t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:ee.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,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:ee.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 t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.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 t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Zo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Zo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Zo.prototype.reset=function(){this.attempts=0};Zo.prototype.setMin=function(e){this.ms=e};Zo.prototype.setMax=function(e){this.max=e};Zo.prototype.setJitter=function(e){this.jitter=e};var Ub=class extends Oe{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Pd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Zo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||qP;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.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 t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.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 HP(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Mt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Mt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Mt(e,"ping",this.onping.bind(this)),Mt(e,"data",this.ondata.bind(this)),Mt(e,"error",this.onerror.bind(this)),Mt(e,"close",this.onclose.bind(this)),Mt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Rd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new JP(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[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,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),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 t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);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)}},fa={};function Cb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=pB(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=fa[o]&&s in fa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Ub(n,t):(fa[o]||(fa[o]=new Ub(n,t)),l=fa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Cb,{Manager:Ub,Socket:JP,io:Cb,connect:Cb});N();N();N();xN(TM);D();var ZP=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Td(a):nn(r[i],a):r[i]=a}),s&&(r.schema=s))},QP=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=iA(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Td(r.designSystem)};var RB={success:"green",error:"red",warning:"yellow"},e2=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},t2={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:RB[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var PB=!1,$B=()=>PB?"http://localhost:8080":"https://api.symbols.app",IB=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},FB=async e=>{try{let t=e||$B(),r=await A.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},o2=(e,t,r,n)=>{e.on("snapshot",ZP(t,r,n)),e.on("ops",QP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&e2(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},jB=async(e,t,r,n)=>{let o=await FB(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=To(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),o2(a,e,t,r),a},DB=(e,t,r)=>{let n=To({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),o2(n,e,t,r),n.on("reload",()=>{typeof A<"u"&&A.location&&A.location.reload()}),n},LB=async(e,t,r)=>{let{mode:n,baseUrl:o}=IB(r);return n?n==="collab"?jB(e,t,r,o):n==="runner"?DB(e,t,r):null:null},MB={onInit:LB};var s2=e=>typeof e>"u",r2=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),n2=e=>e?.editor?.runtime==="runner",i2=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},a2={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!s2(r.liveSync)?r.liveSync:r2(t)||n2(t))&&(r2(t)&&!n2(t)&&!t?.key||i2(e,MB))}},l2={name:"notifications",beforeCreate(e,t){if(!t)return;let r=s2(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&i2(e,t2)}};D();function c2(e){return C(e)?e:P(e)?e.find(t=>C(t)):""}function I_(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&c2(e.extends),n=e.parent&&e.parent.childExtends&&c2(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function $d(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=I_(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?$d(e.parent):o&&(t[o]||r[o])?e:$d(e.parent)}var NB=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},$_={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:NB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=$d(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=I_(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=$d(n);if(!o)return;let s=I_(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.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:e})=>{let{components:t}=e;if(k(t)){let{Content:r,...n}=t;for(let o in n)po[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
|
|
107
107
|
display: block !important;
|
|
108
108
|
top: ${a-6}px;
|
|
109
109
|
left: ${i-6}px;
|