smbls 3.14.38 → 3.14.39
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 +6 -0
- package/dist/smbls.cjs +31 -31
- package/dist/smbls.embed.iife.js +15 -15
- package/dist/smbls.esm.js +6 -6
- package/dist/smbls.iife-string.js +1 -1
- package/dist/smbls.iife.js +31 -31
- package/package.json +3 -3
package/dist/smbls.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var WP=Object.create;var tl=Object.defineProperty;var UP=Object.getOwnPropertyDescriptor;var HP=Object.getOwnPropertyNames;var qP=Object.getPrototypeOf,
|
|
2
|
-
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},
|
|
3
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),QP=/[^a-zA-Z0-9\s]/g,ep=e=>e.replace(QP,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),tp=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var xr,is,rp,en,vr,
|
|
1
|
+
"use strict";var WP=Object.create;var tl=Object.defineProperty;var UP=Object.getOwnPropertyDescriptor;var HP=Object.getOwnPropertyNames;var qP=Object.getPrototypeOf,GP=Object.prototype.hasOwnProperty;var G=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ed=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),K=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},Sv=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of HP(t))!GP.call(e,o)&&o!==r&&tl(e,o,{get:()=>t[o],enumerable:!(n=UP(t,o))||n.enumerable});return e};var kv=(e,t,r)=>(r=e!=null?WP(qP(e)):{},Sv(t||!e||!e.__esModule?tl(r,"default",{value:e,enumerable:!0}):r,e)),KP=e=>Sv(tl({},"__esModule",{value:!0}),e);var Id,Fd,C,pe,Yo=G(()=>{"use strict";Id=globalThis,Fd=globalThis,C=globalThis,pe=C.document});var rr,Zo,He,Jo=G(()=>{"use strict";Yo();rr=e=>(typeof Node=="object"?e instanceof C.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Zo=e=>(typeof HTMLElement=="object"?e instanceof C.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,He=e=>typeof C<"u"&&(C.Node&&e instanceof C.Node||C.Window&&e instanceof C.Window||e===C||e===document)});var _,k,Wt,O,il,al,$,ll,te,qe,$e,Qo,Ge,jd,Ie=G(()=>{"use strict";Jo();_=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,k=e=>typeof e=="string",Wt=e=>typeof e=="number",O=e=>typeof e=="function",il=e=>e===!0||e===!1,al=e=>e===null,$=e=>Array.isArray(e),ll=e=>e instanceof Date,te=e=>e===null?!1:typeof e=="object",qe=e=>e!==void 0,$e=e=>e===void 0,Qo={boolean:il,array:$,object:_,string:k,date:ll,number:Wt,null:al,function:O,objectLike:te,node:rr,htmlElement:Zo,defined:qe},Ge=e=>(...t)=>t.some(r=>Qo[r](e)),jd=e=>(...t)=>!t.some(r=>Qo[r](e))});var Dd,Ld,Md,Nd,Mn,es,Bd,zd,ts,Vd,Wd,Ud,Hd,qd,Gd,Kd,Nn,rs,Bn=G(()=>{"use strict";nr();Ie();Dd=(e,t)=>t.every(r=>e.includes(r)),Ld=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Md=(e,t)=>{if(k(t)&&(t=parseInt(t)),Wt(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Nd=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Mn=(...e)=>[].concat(...e),es=(e,t=[])=>e.reduce((r,n)=>fe(r,he(n,{exclude:t}),t),{}),Bd=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},zd=(e,t)=>{if(!$(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},ts=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Vd=(e,t)=>e.filter(r=>r!==t),Wd=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Ud=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Hd=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},qd=(e,t)=>e.filter(r=>!t.includes(r)),Gd=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Kd=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Nn=e=>$(e)?[...new Set(e)]:e,rs=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function Jr(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=ZP[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=ns(h,f);return String(g??"")}else{let p=ns(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=ns(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let w=ns(v,f);if(w!=null&&typeof w!="object")return String(w)}}}let y=ns(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var os,Xd,ZP,ns,Qr,Yd,JP,Zd,Jd,Qd,QP,ep,tp,ss=G(()=>{"use strict";os=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Xd=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},ZP={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},ns=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e);Qr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Yd=(e,t)=>{let r=e.split(`
|
|
2
|
+
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},JP=/\\([0-7]{1,3})/g,Zd=e=>e.replace(JP,(t,r)=>String.fromCharCode(parseInt(r,8))),Jd=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Qd=e=>e.replace(/\/\/\/\/\/n/g,`
|
|
3
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),QP=/[^a-zA-Z0-9\s]/g,ep=e=>e.replace(QP,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),tp=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var xr,is,rp,en,vr,zn,as,np,Vn=G(()=>{"use strict";xr=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),is=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),rp=["ref","parent","__element","__depends","__ref","__children","root"],en=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),vr=new Set(["update","__element"]),zn=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),as=new Set(["node","context","extends","__element","__ref",...zn,...en,...vr]),np=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Rv,tn,de,op,ye,fe,Pv,sp,he,ls,e2,cs,t2,r2,n2,Wn,o2,s2,lt,i2,a2,l2,us,ip,ap,cl,lp,cp,fs,rn,Ke,ul,c2,up,fp,fl,dp,pp,hp,gp,mp,yp,bp,nr=G(()=>{"use strict";Yo();Ie();Bn();ss();Jo();Vn();Rv="production",tn=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,de=(e,t,r,n)=>{if(O(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&($(e)||_(e)&&!He(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return de(i,t,r,n)}}return e},op=(e,t,r)=>{for(let n in t)e[n]=de(t[n],r)},ye=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(tn(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},fe=(e,t,r=as)=>Pv(e,t,r,null),Pv=(e,t,r,n)=>{if(e===t)return e;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===e&&n[s+1]===t)return e}let o=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||tn(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(te(i)&&te(a)){let l=n||[];l.push(e,t),Pv(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},sp=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(tn(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},he=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=t,l=s||C||globalThis;if(!te(e)||He(e))return e;if(i.has(e))return i.get(e);let u=$(e)?[]:{};i.set(e,u);let d=r instanceof Set?r:r.length>3?new Set(r):null;for(let f in e){if(!Object.prototype.hasOwnProperty.call(e,f)||tn(f)||f==="__proto__"||(d?d.has(f):r.includes(f)))continue;let p=e[f];if(!(n&&p===void 0)&&!(o&&p===null)){if(He(p)){u[f]=p;continue}if(a&&f==="extends"&&$(p)){u[f]=es(p,r);continue}if(O(p)){u[f]=p;continue}te(p)?u[f]=he(p,{...t,visited:i}):u[f]=p}}return u},ls=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(O(n))t[r]=n.toString();else if(_(n))t[r]={},ls(n,t[r]);else if($(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];_(i)?(o[s]={},ls(i,o[s])):O(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},e2=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),cs=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
|
|
4
4
|
`;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(e2.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,$(i)){o+=`[
|
|
5
|
-
`;for(let c of i)
|
|
5
|
+
`;for(let c of i)te(c)&&c!==null?o+=`${n} ${cs(c,t+2)},
|
|
6
6
|
`:k(c)?o+=`${n} '${c}',
|
|
7
7
|
`:o+=`${n} ${c},
|
|
8
|
-
`;o+=`${n} ]`}else
|
|
8
|
+
`;o+=`${n} ]`}else te(i)?o+=cs(i,t+1):k(i)?o+=os(i,[`
|
|
9
9
|
`,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
|
|
10
10
|
`}return o+=`${n}}`,o},t2=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],r2=/^["[{]/,n2=/^(export|import)\s/,Wn=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||n2.test(t)||!t2.some(s=>s.test(t)))return!1;let n=t.charCodeAt(0),o=t.includes("=>");return!(n===123&&!o||n===91||r2.test(t)&&!o)},o2=e=>(0,eval)(e),s2=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;s<l&&i>0;){let d=e[s];if(d==="/"&&e[s+1]==="/"){let f=e.indexOf(`
|
|
11
11
|
`,s);s=f===-1?l:f;continue}if(d==="/"&&e[s+1]==="*"){let f=e.indexOf("*/",s+2);s=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(s++;s<l;){if(e[s]==="\\"){s+=2;continue}if(e[s]===f){s++;break}if(f==="`"&&e[s]==="$"&&e[s+1]==="{"){s+=2;let p=1;for(;s<l&&p>0;)e[s]==="{"?p++:e[s]==="}"&&p--,s++;continue}s++}continue}if(d==="{"){i++,s++;continue}if(d==="}"){i--,s++;continue}if(i===1&&c.test(e.slice(s))){let f=s,p=0,h=s;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
First 200 chars of source: `+String(o).slice(0,200)),t[n]=o)}else t[n]=o;else if($(o)){let s=t[n]=[];for(let i=0;i<o.length;i++){let a=o[i];if(k(a))if(Wn(a))try{s.push(r.window.eval(`(${a})`))}catch(l){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${n}"). Reason: ${l&&l.message?l.message:String(l)}.
|
|
14
14
|
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else _(a)?s.push(lt(a)):s.push(a)}}else _(o)?t[n]=lt(o,t[n]):t[n]=o}return t},i2="Set",a2="Map",l2=e=>!e||typeof e!="object"?e:e.__type===i2&&Array.isArray(e.values)?new Set(e.values):e.__type===a2&&Array.isArray(e.entries)?new Map(e.entries):e,us=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];k(o)&&Wn(o)?r.push([n,o]):t[n]=l2(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
15
15
|
`);t[n]=C.eval(`(function(__gs__) { ${s}
|
|
16
|
-
return (${o}); })`)(t)}catch{try{t[n]=C.eval(`(${o})`)}catch{t[n]=o}}return t},ip=(e,t={verbose:!0})=>{try{return e?C.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},ap=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),cl=e=>{for(let t in e)return!1;return!0},lp=e=>_(e)&&cl(e),cp=()=>Object.create(null),fs=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&tn(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},rn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)tn(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ge=(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&&tn(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];He(c)?e[a]=c:re(l)&&re(c)?e[a]=Ge(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ul=(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)||!ul(e[i],t[i],r))return!1}return!0},c2=new Set(["node","__ref"]),up=(e,t,r=c2)=>{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)},fp=(e,t)=>{if(t==null)return e;if(Ke(t)("string","number"))delete e[t];else if($(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},fl=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]=fl(e[r]));return t},dp=(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},pp=(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]},hp=(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},gp=(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},mp=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(R0==="test"||R0==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},yp=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)},bp=(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 ds,ps,hs,dl=G(()=>{"use strict";nr();ds=(function(){let e=0;function t(){return e++,e}return t})(),ps=ds,hs=(e,t,r)=>(de(r,e)||r||e.key||ds()).toString()});var kt,xp,wr,pl,vp,wp,_p,_r,Sp,nn,kp=G(()=>{"use strict";kt="production",xp=kt,wr=(e=kt)=>e==="production",pl=(e=kt)=>e==="testing"||e==="test",vp=pl,wp=(e=kt)=>e==="staging",_p=(e=kt)=>e==="local",_r=(e=kt)=>e==="development"||e==="dev"||e==="local",Sp=(e,t=kt)=>t[e],nn=(e=kt)=>!wr(e)});function gs(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 Op(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 Cp,Ap,u2,Ep,Un,Hn,Ct,qn=G(()=>{"use strict";Cp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Ap=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}}},u2=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Ep=e=>u2.test(e),Un=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Hn=(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},Ct=(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 Tp,$0=G(()=>{"use strict";Ie();nr();Tp=(e,t)=>{let{__ref:r}=e,n=e.if;if(T(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 Rp,Pp,I0=G(()=>{"use strict";Rp=(e,...t)=>{e&&t.map(r=>console.log(r))},Pp=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Dp(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 Lp(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 $p,Ip,Fp,jp,F0=G(()=>{"use strict";Ie();Yo();$p=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Ip=(e,t,r=365)=>{if($e(pe)||$e(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=/`},Fp=e=>{if($e(pe)||$e(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""},jp=e=>{$e(pe)||$e(pe.cookie)||(pe.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Kn,j0,Mp,Np=G(()=>{"use strict";Kn={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"])},j0=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"]),Mp=e=>Kn.body.has(e)});var Bp,D0,Gn,bs,Xe,Vp,hl,xs,zp,vs,gl,ml,ws,yl,Xn,f2,Ut,L0,ms,_s,Wp,ys,Up,Hp,bl,xl,vl,wl,_l,Sl,M0,kl=G(()=>{"use strict";Bn();qp();nr();Ie();Bp="production",D0=e=>e.sourcemap!==!1&&Bp!=="production",Gn=e=>{if(e.includes("+"))return e.split("+").filter(Ht);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!Ht(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},bs=(e,t,r)=>{let n=[],o=Gn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=$(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},Vp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=$(r)?r:[r],o=$(e)?e:[e];return{...t,extends:Mn(o,n)}},hl=()=>Math.random().toString(36).substring(2),xs={},zp={},vs=e=>xs[e.__hash],gl=(e,t)=>{let r=hl();return k(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(xs[r]=t),t},ml=(e,t)=>e.__hash?t.concat(vs(e)):gl(e,t),ws=(e,t,r,n=new Set,o,s)=>{for(let i of e)$(i)?ws(i,t,r,n,o,s):Xn(i,t,r,n,o,void 0,s);return t},yl=(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&&Xn(a,t,r,n,o,s,i),t},Xn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if($(e))return ws(e,t,r,n,o,i);let a=s;return k(e)?(a=e,e=_s(e,r)):i&&_(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?yl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},f2=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Ut=(e,t,r,n,o)=>{t=he(t);for(let s in t){if(f2.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?_(a)&&!$(a)?(r[s]=r[s]||{},L0(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(_(i)&&_(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];Ht(s)?e[s]=Ut(i,a,l,n,c):Ut(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if($(i)&&$(a))e[s]=i.concat(a);else if($(i)&&_(a)){let l=Ut({},i);e[s]=Ut(l,a)}}}}return e},L0=(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];_(s)&&!$(s)?(e[o]=e[o]||{},L0(e[o],s,r,n)):e[o]=r}}},ms=(e,t,r)=>e.reduce((n,o,s)=>{let i=he(o),a=r?r[s]:void 0;return Ut(n,i,t,a)},{}),_s=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(k(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&&(Bp==="test"||Bp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Wp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),ys=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return vs(e)||[];let s=Xn(e,[],t,new Set,r,void 0,n);return r?s:ml(e,s)},Up=(e,t)=>{if(!e)return t;let r=$(e)?e:[e];return Mn(r,t)},Hp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Ht(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},bl=(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 xl(e,t,r),vl(e,t,r),wl(e,t,r),e.component&&Xe(de(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Nn(n.__extends)},xl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},vl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},wl=(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},_l=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=D0(r),a=i?[...n.__extends]:null,l=Nn(n.__extends.map((c,u)=>_s(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&&_(p)&&k(h)&&c.set(p,h)}let u=[],d=ys(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=ys(l,o);n.__extendsStack=c}return n.__extendsStack},Sl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(D0(r)){let s={},i=n.__extendsNames||[],a=ms(o,s,i),l={};Ut(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ms(o);Ut(e,s)}return e},M0=(e,t,r={})=>(bl(e,t,r),_l(e,t,r),Sl(e,t,r),e)});function Kp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Gp(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function Xp(e,t,r){let{context:n}=t||{},[o]=Gn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Ht,qp=G(()=>{"use strict";kl();Ie();Ht=e=>{if(!k(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function N0(e,t){let{props:r,on:n}=t,o=Qr(e.split("on")[1]),s=n[o],i=r[e];T(s)?n[o]=(...a)=>{if(s(...a)!==!1&&T(i))return i(...a)}:n[o]=i}var B0=G(()=>{"use strict";ss();Ie()});function Cl(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()&&(T(o)||o!=null&&Un(this.context))){let h=Qr(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=_(a)||T(a),u=_(l)||T(l);if(c||u)continue;let d=n.charAt(0);if(z0.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=Yp.test(n)||V0.test(n)||p2(o),p=xr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Al(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=T(o)||o!=null&&Un(this.context);if(s&&i){N0(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(z0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=_(l)||T(l),d=_(c)||T(c),f=Yp.test(n)||V0.test(n),p=xr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function El(e=this){let t=[];return Cl.call(this,e,{cachedKeys:t}),Al.call(this,e,{cachedKeys:t}),e}function Jp(e={}){return e.on||(e.on={}),e.props||(e.props={}),El.call(this,e)}function Qp(e,t){this.__element.update({props:e},t)}function Es(e){let t={update:Qp.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Yp,V0,z0,d2,p2,Cs,Ss,Zp,As,Os,Ts,Ol,ks,eh,th,rh=G(()=>{"use strict";zn();B0();nr();Ie();ss();qn();Yp=/^[A-Z]/,V0=/^\d+$/,z0=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),d2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),p2=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(d2.has(t)||Yp.test(t))return!0;return!1},Cs=(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),{})};Ss=e=>Ke(e)("string","number")?{inheritedString:e}:e,Zp=(e,t)=>!e||!t.length?!1:t.includes(e),As=(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=Ss(i);n.unshift(l)}if(s){let l=Ss(s);n.unshift(l)}return n};Os=e=>{let t=new Set;return e.filter(r=>!r||vr.has(r)||t.has(r)?!1:(t.add(r),!0))},Ts=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(vr.has(o))return n;for(;T(o);)o=de(o,t);return fe(n,he(o,{exclude:vr}))},{}),Es(t),t.props),Ol=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...As(e,t)]),_(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),$(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Os(o),n.__propsStack},ks=(e,t)=>{let{__ref:r}=e,n=Ol(e,t);n.length?Ts(n,e):(r.__propsStack=[],e.props={})},eh=function(e,t,r){let{__ref:n}=e;if(n.__if)ks(e,t);else try{ks(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Es(e),e},th=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=As(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=Os(s),n.__propsStack.length&&Ts(n.__propsStack,t),t}});var W0,Tl,Rl,Pl,$l,nh,Il,Fl,jl,oh,U0=G(()=>{"use strict";kl();dl();Zo();rh();Np();Ie();W0="production",Tl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Kn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Rl=(e,t,r)=>{if(e===void 0)return(W0==="test"||W0==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ke(e)("string","number")?Tl(e,t,r):T(e)?{props:e}:e},Pl=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},$l=(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},nh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Il=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Fl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),jl=(e,t,r)=>{let n=Pl(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=bs(e,t,r),n.path=Il(e,t,r),n},oh=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:Rl(e,t,r);if(!i)return;let a=$l(i,t,r,n,o),l=hs(i,a,r);jl(i,a,l);let c=Cs(i,a,l),u=Fl(i,a,l,n,o),d=i.on||{};return{...i,key:l,props:c,parent:a,context:u,on:d}}});var sh,Dl,Ll,Ml,Nl,ih,Bl,ah,lh,ch,uh,H0=G(()=>{"use strict";Bn();zn();nr();Ie();sh=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ke(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Dl=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},Ll=(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},Ml=(e,t,r={})=>{let n=k(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]},Nl=(e,t,r={})=>{let o=e.__ref.__state;if(!Bl(e))return;let s=Dl(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ll(o,t.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ml(o,i,r)},ih=(e,t)=>{let r=e.__ref,n=Nl(e,t);if(n===void 0)return e.state;if(Ke(n)("object","array"))return he(n);if(Ke(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Bl=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ke(r)("number","string","boolean"))},ah=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},lh=(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},ch=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=he(n,en),s={[e.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?rs(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},uh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,en);return}(o?rn:Ge)(e,t,en)}});var fh,q0=G(()=>{"use strict";fh=(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&&Object.setPrototypeOf(e.scope,i)}}});var K0,Vl,Sr,zl,dh,ph=G(()=>{"use strict";Ie();qn();K0=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Vl=(e,t,r,n,o)=>{if(e=Hn(e,t),!!T(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}},Sr=(e,t,r)=>{if(!t)throw new Error("Element is required");Ct(e,t,r);let n=K0(e,t);if(n){let{state:o,context:s}=t;return Vl(n,t,o,s,r)}},zl=(e,t,r,n,o,s)=>{if(e=Hn(e,r),!!T(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}},dh=(e,t,r,n)=>{Ct(e,r,t,n);let o=K0(e,r);if(o){let{state:s,context:i}=r;return zl(o,t,r,s,i,n)}}});var hh,Rs,gh=G(()=>{"use strict";hh={},Rs={}});var Y0={};X(Y0,{setup:()=>g2,supabaseAdapter:()=>X0});var G0,h2,g2,mh,m2,X0,J0=G(()=>{"use strict";G0=new Map,h2=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,g2=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=h2(l,t,o===!1),u=G0.get(c);return u||(u=await n(l,t,a),u?.auth&&G0.set(c,u)),!u||!u.auth?null:X0(u)},mh=(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},m2=(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},X0=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=mh(l,o),l=m2(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=mh(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=mh(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 Q0={};X(Q0,{restAdapter:()=>Z0,setup:()=>b2});var y2,kr,b2,Z0,ew=G(()=>{"use strict";y2=(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()},kr=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}},b2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return Z0(e,t,r,n)},Z0=(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 kr(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 kr(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 kr(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 x={...d};return f&&(x.select=f),p&&(x.limit=p),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),kr(y2(b||e,u||"",x),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>kr(l(`rpc/${u}`,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>kr(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 kr(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 kr(l(g,p),a({method:"DELETE",headers:s(f)}))}}}});var rw={};X(rw,{localAdapter:()=>tw,setup:()=>v2});var yh,x2,v2,tw,nw=G(()=>{"use strict";yh=(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},x2=(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}},v2=async({data:e,...t})=>tw(e,t),tw=(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=>yh(g,d));return x2(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(yh(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--)yh(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 Ms={};X(Ms,{createAdapter:()=>S2,default:()=>I2,executeFetch:()=>Ls,fetchPlugin:()=>_h,initAdapterAuth:()=>ql,parseDuration:()=>$s,queryClient:()=>$2,registerAdapter:()=>_2,resolveDb:()=>lw});var w2,Wl,aw,_2,S2,lw,$s,Be,cw,Ps,k2,Ds,Is,Fs,Ul,vh,Hl,C2,ow,bh,uw,fw,Yn,sw,A2,iw,E2,Kl,dw,ql,wh,ct,At,js,on,qt,Cr,O2,T2,R2,xh,P2,Ls,$2,_h,I2,sn=G(()=>{"use strict";I();w2=["select","rpc","insert","update","delete","subscribe"],Wl=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),aw=(()=>{if(typeof globalThis<"u"&&globalThis[Wl])return globalThis[Wl];let e={supabase:()=>Promise.resolve().then(()=>(J0(),Y0)),rest:()=>Promise.resolve().then(()=>(ew(),Q0)),local:()=>Promise.resolve().then(()=>(nw(),rw))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Wl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Wl]}catch{}return e})(),_2=(e,t)=>{aw[e]=t},S2=e=>{let t={};for(let r of w2)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},lw=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=aw[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},$s=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,cw=new Map,Ps=new Map,k2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=E2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Ds=e=>Be.get(e)||null,Is=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=cw.get(e);if(s)for(let i of s)T(i)&&i(o);return o},Fs=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},Ul=e=>{if(e){Be.delete(e);return}Be.clear()},vh=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)}:k(e)?{staleTime:$s(e),gcTime:3e5}:{staleTime:$s(e.stale||e.staleTime)||6e4,gcTime:$s(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Hl=null,C2=()=>{Hl||(Hl=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=cw.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Hl.unref&&Hl.unref())};C2();ow=3,bh=e=>Math.min(1e3*2**e,3e4),uw=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:ow,delay:bh}:typeof t=="number"?{count:t,delay:bh}:{count:t.count??ow,delay:T(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:bh}},fw=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=T(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=T(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Yn={focus:new Set,online:new Set},sw=!1,A2=()=>{if(sw||typeof window>"u")return;sw=!0;let e=()=>{for(let r of Yn.focus)r()},t=()=>{for(let r of Yn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},iw=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(k(e))return{from:e,method:"select",query:!0,on:"create"};if(_(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},E2=e=>(!e||T(e),e),Kl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},dw=(e,t,r)=>{let n;if(!e)n=void 0;else if(T(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=T(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)})},wh=async(e,t)=>{if(T(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=lw(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},ct=(e,t,...r)=>{let n=T(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},At=(e,t,r,...n)=>{let o=e&&T(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},js=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},on=(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})}},qt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Cr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||T(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||T(e.skip)&&e.skip(t,t.state))return;let s=await wh(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:x,headers:v,baseUrl:w,page:A,cursor:E,getNextPageParam:O,getPreviousPageParam:S,infinite:B,placeholderData:K,initialData:z,select:D,keepPreviousData:U}=e,ee=k(D)?D:void 0;if(c&&T(t.getQuery)){let N=t.getQuery(s.name||"paths");N&&(ee=N.select||N.length&&N.join(",")||ee)}let oe=dw(u,t,r),ce=vh(d),tr=uw(e),Xr=Kl(t,r),kd=Xr?`:${Xr}`:"",Z=ce?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${B?":infinite":""}${A?":p"+JSON.stringify(A):""}${kd}`:null;if(!i.__fetchInitialized&&Z&&(i.__fetchInitialized=!0,z!==void 0)){let N=T(z)?z():z;Is(Z,N,null)}if((l==="select"||l==="rpc")&&Z&&ce){let N=Ds(Z);if(N&&!N.error){let V=Date.now()-N.time,M=N.stale||V>(ce.staleTime||0),W=N.data;if(T(D)&&(W=D(W,t,t.state)),f&&(W=f(W,t,t.state)),on(t,W,m),!M){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(K!==void 0){let V=T(K)?K(t,t.state):K;V!==void 0&&on(t,V,m)}}if(Z&&Ps.has(Z)&&!n.force){let N=Ps.get(Z);try{let V=await Promise.race([N,new Promise((M,W)=>setTimeout(()=>W("DEDUP_TIMEOUT"),15e3))]);if(V?.data!==void 0){let M=V.data;T(D)&&(M=D(M,t,t.state)),f&&(M=f(M,t,t.state)),on(t,M,m),ct(t,"onFetchComplete",M),At(e,t,"onFetchComplete",M)}}catch{}return}let Cd=!Ds(Z)?.data;qt(t,{isFetching:!0,isLoading:Cd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),At(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Yr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Xr});let ue=fw(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let W=await s.getSession();if(h===!0&&!W){let Ae={message:"Not authenticated"};return qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Ae,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Ae),At(e,t,"onFetchError",Ae),{data:null,error:Ae}}}let N=s[l];if(!T(N))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let V={from:a,select:ee,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},M=Kl(t,r);if(M&&(V.headers={...V.headers,"Accept-Language":M}),A!==void 0){if(_(A))A.offset!==void 0&&(V.offset=A.offset),A.limit!==void 0&&(V.limit=A.limit),A.cursor!==void 0&&(V.params={...V.params,cursor:A.cursor});else if(typeof A=="number"){let W=e.pageSize||y||20;V.offset=(A-1)*W,V.limit=W}}if(E!==void 0&&(V.params={...V.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let W;if(g===!0||e.on==="submit")W=js(t);else if($(g)){let Ae=js(t);W={};for(let el of g)W[el]=Ae[el]}else t.state?.parse?W=t.state.parse():_(t.state)&&(W={...t.state});f&&(W=f(W,t,t.state)),V.data=W}if(l==="rpc"){let W=oe;if(e.on==="submit"){let Ae=js(t);W=e.transformParams?e.transformParams(Ae,t,t.state):Ae}V.params=W}if(l==="subscribe"){let W=s.subscribe({from:a,params:oe,on:e.subscribeOn},(Ae,el,fB)=>{on(t,Ae,m),ct(t,"onFetchComplete",Ae),At(e,t,"onFetchComplete",Ae)});return i.__unsubscribe=W,{data:null,error:null,subscribed:!0}}return N(V)},tr);Z&&Ps.set(Z,ue);try{let N=await ue;if(N?.subscribed)return;let{data:V,error:M}=N||{};if(M){Z&&Is(Z,null,M),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:M,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",M),At(e,t,"onFetchError",M),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:M.message||M,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(V!==void 0){if((l==="select"||l==="rpc")&&Z){let Ae=Is(Z,V,null);Ae.gcTime=ce?.gcTime||3e5}let W=V;B&&$(V)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(V):i.__pages.push(V),W=i.__pages.flat(),O&&(i.__nextPageParam=O(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),S&&(i.__prevPageParam=S(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),T(D)&&(W=D(W,t,t.state)),f&&(W=f(W,t,t.state)),(!U||W!==void 0)&&on(t,W,m),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",W),At(e,t,"onFetchComplete",W),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(N){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",N),At(e,t,"onFetchError",N),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:N.message||String(N),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{Z&&Ps.delete(Z)}},O2=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Cr;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))},T2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),A2();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:$s(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Cr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Kl(t,r),a=k2(e,i),l=Ds(a),c=vh(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Cr(e,t,r,{force:!0})};Yn.focus.add(s),n.__fetchCleanups.push(()=>Yn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Cr(e,t,r,{force:!0});Yn.online.add(s),n.__fetchCleanups.push(()=>Yn.online.delete(s))}},R2=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():_(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=T(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&on(e,i,o),s},xh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(on(e,n,t.as),delete r.__optimisticSnapshot)},P2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await wh(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:x,onSettled:v}=e,w;if(l===!0||d==="submit")w=js(t);else if($(l)){let S=js(t);w={};for(let B of l)w[B]=S[B]}else t.state?.parse?w=t.state.parse():_(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),T(y)&&y(w,t,t.state);let A=m?R2(t,e,w):null;s.__fetching=!0,qt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),At(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,O=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){A!==void 0&&xh(t,e);let ce={message:"Not authenticated"};ct(t,"onFetchError",ce),At(e,t,"onFetchError",ce);return}}let S=o[i];if(!T(S))return;let B={from:a,data:w,headers:p,baseUrl:h};e.params&&(B.params=dw(e.params,t,r));let K=Kl(t,r);K&&(B.headers={...B.headers,"Accept-Language":K});let z=uw(e),D=await fw(()=>S(B),z),{data:U,error:ee}=D||{};if(ee){A!==void 0&&xh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ee,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",ee),T(x)&&x(ee,w,t),T(v)&&v(null,ee,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:ee.message||String(ee),durationMs:(typeof performance<"u"?performance.now():Date.now())-O});return}if(delete s.__optimisticSnapshot,U!==void 0){let oe=u?{[u]:U}:U;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",U),At(e,t,"onFetchComplete",U),T(b)&&b(U,w,t),T(v)&&v(U,null,w,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-O}),g){let oe=$(g)?g:[g];for(let ce of oe)if(ce===!0||ce==="*")for(let[tr]of Be)tr.startsWith(a+":")&&Fs(tr);else Fs(ce)}}catch(S){A!==void 0&&xh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:S,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",S),At(e,t,"onFetchError",S),T(x)&&x(S,w,t),T(v)&&v(null,S,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:S.message||String(S),durationMs:(typeof performance<"u"?performance.now():Date.now())-O})}finally{s.__fetching=!1}},Ls=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=de(e,t);if(!s)return;let i=$(s)?s.map(l=>iw(de(l,t),t)).filter(Boolean):[iw(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?P2:Cr;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{O2({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&T2(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Cr(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};Cr(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};Cr(u,t,n,{direction:"previous",force:!0})}},$2={invalidateQueries:e=>{if(!e){Fs();return}if(k(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Fs(t);else if($(e)){let t=e.join(":");for(let[r]of Be)r.includes(t)&&Fs(r)}},removeQueries:e=>{if(!e){Ul();return}if(k(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Ul(t)},getQueryData:e=>Ds(e)?.data??void 0,setQueryData:(e,t)=>{let r=Ds(e),n=T(t)?t(r?.data):t;Is(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await wh(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(!T(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=Is(o,i.data,null);a.gcTime=vh(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>Ul(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Ul(r))}},_h={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Ps.clear(),Ls(t,e,e.state,e.context))}},I2=Ls});function Bs(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 kh(e){let t=this,{parent:r}=t;if(T(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 Ch(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(T(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 Ah(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(T(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 Gl(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(_(n)&&o)Gl.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 hw(e){let t=this;if(Sr("beforeRemove",t,e)===!1)return t;T(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=ts(t.parent.__ref.__children,t.key)),Sr("remove",t,e)}function Eh(e){return this[e]}function Oh(e,t){let r=this;if(e)return r.update(e,t),r}function Th(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Vs(){return this.getRef("__children").map(t=>this[t])}function zs(){return this.getRef().path}function Us(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=pw();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=T(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=pw()),e?t?.[e]:t}function Hs(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function qs(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Ks(e){let t=this.getRoot()?.context;return e?t[e]:t}function Gs(e){let t=this.context;return e?t[e]:t}function Xl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||xr.has(r)&&!is.has(r)||t.push(r);return t}function Yl(e=[]){let t=this,r={},n=Xl.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=T(l&&l.parse)?l.parse():l;r[a]=T(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 Ns(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Yl.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)?Ns.call(a,e,t):a):re(i)&&(n[s]=Ns.call(i,e,t))}return n}function Jn(...e){if(Ar!=="test"&&Ar!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
17
|
-
`,"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 Ph(...e){(Ar==="test"||Ar==="development")&&console.log(...e)}function Xs(...e){(Ar==="test"||Ar==="development")&&console.warn(...e)}function an(...e){if(Ar==="test"||Ar==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&
|
|
16
|
+
return (${o}); })`)(t)}catch{try{t[n]=C.eval(`(${o})`)}catch{t[n]=o}}return t},ip=(e,t={verbose:!0})=>{try{return e?C.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},ap=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),cl=e=>{for(let t in e)return!1;return!0},lp=e=>_(e)&&cl(e),cp=()=>Object.create(null),fs=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&tn(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},rn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)tn(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(!te(e)||!te(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&&tn(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];He(c)?e[a]=c:te(l)&&te(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ul=(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)||!ul(e[i],t[i],r))return!1}return!0},c2=new Set(["node","__ref"]),up=(e,t,r=c2)=>{if(e===t)return!0;if(!te(e)||!te(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(te(c)&&te(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},fp=(e,t)=>{if(t==null)return e;if(Ge(t)("string","number"))delete e[t];else if($(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},fl=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]=fl(e[r]));return t},dp=(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},pp=(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]},hp=(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},gp=(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},mp=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(Rv==="test"||Rv==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},yp=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)},bp=(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 ds,ps,hs,dl=G(()=>{"use strict";nr();ds=(function(){let e=0;function t(){return e++,e}return t})(),ps=ds,hs=(e,t,r)=>(de(r,e)||r||e.key||ds()).toString()});var kt,xp,wr,pl,vp,wp,_p,_r,Sp,nn,kp=G(()=>{"use strict";kt="production",xp=kt,wr=(e=kt)=>e==="production",pl=(e=kt)=>e==="testing"||e==="test",vp=pl,wp=(e=kt)=>e==="staging",_p=(e=kt)=>e==="local",_r=(e=kt)=>e==="development"||e==="dev"||e==="local",Sp=(e,t=kt)=>t[e],nn=(e=kt)=>!wr(e)});function gs(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 Op(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 Cp,Ap,u2,Ep,Un,Hn,Ct,qn=G(()=>{"use strict";Cp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Ap=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}}},u2=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Ep=e=>u2.test(e),Un=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Hn=(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},Ct=(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 Tp,$v=G(()=>{"use strict";Ie();nr();Tp=(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 Rp,Pp,Iv=G(()=>{"use strict";Rp=(e,...t)=>{e&&t.map(r=>console.log(r))},Pp=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Dp(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 Lp(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 $p,Ip,Fp,jp,Fv=G(()=>{"use strict";Ie();Yo();$p=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Ip=(e,t,r=365)=>{if($e(pe)||$e(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=/`},Fp=e=>{if($e(pe)||$e(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""},jp=e=>{$e(pe)||$e(pe.cookie)||(pe.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Gn,jv,Mp,Np=G(()=>{"use strict";Gn={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"])},jv=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"]),Mp=e=>Gn.body.has(e)});var Bp,Dv,Kn,bs,Xe,zp,hl,xs,Vp,vs,gl,ml,ws,yl,Xn,f2,Ut,Lv,ms,_s,Wp,ys,Up,Hp,bl,xl,vl,wl,_l,Sl,Mv,kl=G(()=>{"use strict";Bn();qp();nr();Ie();Bp="production",Dv=e=>e.sourcemap!==!1&&Bp!=="production",Kn=e=>{if(e.includes("+"))return e.split("+").filter(Ht);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!Ht(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},bs=(e,t,r)=>{let n=[],o=Kn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=$(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},zp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=$(r)?r:[r],o=$(e)?e:[e];return{...t,extends:Mn(o,n)}},hl=()=>Math.random().toString(36).substring(2),xs={},Vp={},vs=e=>xs[e.__hash],gl=(e,t)=>{let r=hl();return k(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(xs[r]=t),t},ml=(e,t)=>e.__hash?t.concat(vs(e)):gl(e,t),ws=(e,t,r,n=new Set,o,s)=>{for(let i of e)$(i)?ws(i,t,r,n,o,s):Xn(i,t,r,n,o,void 0,s);return t},yl=(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&&Xn(a,t,r,n,o,s,i),t},Xn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if($(e))return ws(e,t,r,n,o,i);let a=s;return k(e)?(a=e,e=_s(e,r)):i&&_(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?yl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},f2=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Ut=(e,t,r,n,o)=>{t=he(t);for(let s in t){if(f2.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?_(a)&&!$(a)?(r[s]=r[s]||{},Lv(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(_(i)&&_(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];Ht(s)?e[s]=Ut(i,a,l,n,c):Ut(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if($(i)&&$(a))e[s]=i.concat(a);else if($(i)&&_(a)){let l=Ut({},i);e[s]=Ut(l,a)}}}}return e},Lv=(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];_(s)&&!$(s)?(e[o]=e[o]||{},Lv(e[o],s,r,n)):e[o]=r}}},ms=(e,t,r)=>e.reduce((n,o,s)=>{let i=he(o),a=r?r[s]:void 0;return Ut(n,i,t,a)},{}),_s=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(k(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&&(Bp==="test"||Bp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Wp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),ys=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return vs(e)||[];let s=Xn(e,[],t,new Set,r,void 0,n);return r?s:ml(e,s)},Up=(e,t)=>{if(!e)return t;let r=$(e)?e:[e];return Mn(r,t)},Hp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Ht(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},bl=(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 xl(e,t,r),vl(e,t,r),wl(e,t,r),e.component&&Xe(de(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Nn(n.__extends)},xl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},vl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},wl=(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},_l=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Dv(r),a=i?[...n.__extends]:null,l=Nn(n.__extends.map((c,u)=>_s(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&&_(p)&&k(h)&&c.set(p,h)}let u=[],d=ys(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=ys(l,o);n.__extendsStack=c}return n.__extendsStack},Sl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Dv(r)){let s={},i=n.__extendsNames||[],a=ms(o,s,i),l={};Ut(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ms(o);Ut(e,s)}return e},Mv=(e,t,r={})=>(bl(e,t,r),_l(e,t,r),Sl(e,t,r),e)});function Gp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Kp(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function Xp(e,t,r){let{context:n}=t||{},[o]=Kn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Ht,qp=G(()=>{"use strict";kl();Ie();Ht=e=>{if(!k(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Nv(e,t){let{props:r,on:n}=t,o=Qr(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 Bv=G(()=>{"use strict";ss();Ie()});function Cl(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&&Un(this.context))){let h=Qr(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=_(a)||O(a),u=_(l)||O(l);if(c||u)continue;let d=n.charAt(0);if(Vv.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=Yp.test(n)||zv.test(n)||p2(o),p=xr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Al(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&&Un(this.context);if(s&&i){Nv(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Vv.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=_(l)||O(l),d=_(c)||O(c),f=Yp.test(n)||zv.test(n),p=xr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function El(e=this){let t=[];return Cl.call(this,e,{cachedKeys:t}),Al.call(this,e,{cachedKeys:t}),e}function Zp(e={}){return e.on||(e.on={}),e.props||(e.props={}),El.call(this,e)}function Qp(e,t){this.__element.update({props:e},t)}function Es(e){let t={update:Qp.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Yp,zv,Vv,d2,p2,Cs,Ss,Jp,As,Os,Ts,Ol,ks,eh,th,rh=G(()=>{"use strict";Vn();Bv();nr();Ie();ss();qn();Yp=/^[A-Z]/,zv=/^\d+$/,Vv=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),d2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),p2=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(d2.has(t)||Yp.test(t))return!0;return!1},Cs=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return te(n)?{...n}:(o.__propsStack.push(n),{})};Ss=e=>Ge(e)("string","number")?{inheritedString:e}:e,Jp=(e,t)=>!e||!t.length?!1:t.includes(e),As=(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=Ss(i);n.unshift(l)}if(s){let l=Ss(s);n.unshift(l)}return n};Os=e=>{let t=new Set;return e.filter(r=>!r||vr.has(r)||t.has(r)?!1:(t.add(r),!0))},Ts=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(vr.has(o))return n;for(;O(o);)o=de(o,t);return fe(n,he(o,{exclude:vr}))},{}),Es(t),t.props),Ol=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...As(e,t)]),_(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),$(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Os(o),n.__propsStack},ks=(e,t)=>{let{__ref:r}=e,n=Ol(e,t);n.length?Ts(n,e):(r.__propsStack=[],e.props={})},eh=function(e,t,r){let{__ref:n}=e;if(n.__if)ks(e,t);else try{ks(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Es(e),e},th=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=As(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=Os(s),n.__propsStack.length&&Ts(n.__propsStack,t),t}});var Wv,Tl,Rl,Pl,$l,nh,Il,Fl,jl,oh,Uv=G(()=>{"use strict";kl();dl();Jo();rh();Np();Ie();Wv="production",Tl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Gn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Rl=(e,t,r)=>{if(e===void 0)return(Wv==="test"||Wv==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)("string","number")?Tl(e,t,r):O(e)?{props:e}:e},Pl=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},$l=(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},nh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Il=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Fl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),jl=(e,t,r)=>{let n=Pl(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=bs(e,t,r),n.path=Il(e,t,r),n},oh=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:Rl(e,t,r);if(!i)return;let a=$l(i,t,r,n,o),l=hs(i,a,r);jl(i,a,l);let c=Cs(i,a,l),u=Fl(i,a,l,n,o),d=i.on||{};return{...i,key:l,props:c,parent:a,context:u,on:d}}});var sh,Dl,Ll,Ml,Nl,ih,Bl,ah,lh,ch,uh,Hv=G(()=>{"use strict";Bn();Vn();nr();Ie();sh=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},Dl=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},Ll=(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},Ml=(e,t,r={})=>{let n=k(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]},Nl=(e,t,r={})=>{let o=e.__ref.__state;if(!Bl(e))return;let s=Dl(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ll(o,t.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ml(o,i,r)},ih=(e,t)=>{let r=e.__ref,n=Nl(e,t);if(n===void 0)return e.state;if(Ge(n)("object","array"))return he(n);if(Ge(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Bl=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)("number","string","boolean"))},ah=function(e){return te(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},lh=(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},ch=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=he(n,en),s={[e.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?rs(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},uh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,en);return}(o?rn:Ke)(e,t,en)}});var fh,qv=G(()=>{"use strict";fh=(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&&Object.setPrototypeOf(e.scope,i)}}});var Gv,zl,Sr,Vl,dh,ph=G(()=>{"use strict";Ie();qn();Gv=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},zl=(e,t,r,n,o)=>{if(e=Hn(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}},Sr=(e,t,r)=>{if(!t)throw new Error("Element is required");Ct(e,t,r);let n=Gv(e,t);if(n){let{state:o,context:s}=t;return zl(n,t,o,s,r)}},Vl=(e,t,r,n,o,s)=>{if(e=Hn(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}},dh=(e,t,r,n)=>{Ct(e,r,t,n);let o=Gv(e,r);if(o){let{state:s,context:i}=r;return Vl(o,t,r,s,i,n)}}});var hh,Rs,gh=G(()=>{"use strict";hh={},Rs={}});var Yv={};K(Yv,{setup:()=>g2,supabaseAdapter:()=>Xv});var Kv,h2,g2,mh,m2,Xv,Zv=G(()=>{"use strict";Kv=new Map,h2=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,g2=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=h2(l,t,o===!1),u=Kv.get(c);return u||(u=await n(l,t,a),u?.auth&&Kv.set(c,u)),!u||!u.auth?null:Xv(u)},mh=(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},m2=(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},Xv=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=mh(l,o),l=m2(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=mh(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=mh(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 Qv={};K(Qv,{restAdapter:()=>Jv,setup:()=>b2});var y2,kr,b2,Jv,ew=G(()=>{"use strict";y2=(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()},kr=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}},b2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return Jv(e,t,r,n)},Jv=(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 kr(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 kr(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 kr(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 x={...d};return f&&(x.select=f),p&&(x.limit=p),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),kr(y2(b||e,u||"",x),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>kr(l(`rpc/${u}`,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>kr(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 kr(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 kr(l(g,p),a({method:"DELETE",headers:s(f)}))}}}});var rw={};K(rw,{localAdapter:()=>tw,setup:()=>v2});var yh,x2,v2,tw,nw=G(()=>{"use strict";yh=(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},x2=(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}},v2=async({data:e,...t})=>tw(e,t),tw=(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=>yh(g,d));return x2(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(yh(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--)yh(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 Ms={};K(Ms,{createAdapter:()=>S2,default:()=>I2,executeFetch:()=>Ls,fetchPlugin:()=>_h,initAdapterAuth:()=>ql,parseDuration:()=>$s,queryClient:()=>$2,registerAdapter:()=>_2,resolveDb:()=>lw});var w2,Wl,aw,_2,S2,lw,$s,Be,cw,Ps,k2,Ds,Is,Fs,Ul,vh,Hl,C2,ow,bh,uw,fw,Yn,sw,A2,iw,E2,Gl,dw,ql,wh,ct,At,js,on,qt,Cr,O2,T2,R2,xh,P2,Ls,$2,_h,I2,sn=G(()=>{"use strict";I();w2=["select","rpc","insert","update","delete","subscribe"],Wl=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),aw=(()=>{if(typeof globalThis<"u"&&globalThis[Wl])return globalThis[Wl];let e={supabase:()=>Promise.resolve().then(()=>(Zv(),Yv)),rest:()=>Promise.resolve().then(()=>(ew(),Qv)),local:()=>Promise.resolve().then(()=>(nw(),rw))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Wl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Wl]}catch{}return e})(),_2=(e,t)=>{aw[e]=t},S2=e=>{let t={};for(let r of w2)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},lw=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=aw[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},$s=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,cw=new Map,Ps=new Map,k2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=E2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Ds=e=>Be.get(e)||null,Is=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=cw.get(e);if(s)for(let i of s)O(i)&&i(o);return o},Fs=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},Ul=e=>{if(e){Be.delete(e);return}Be.clear()},vh=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)}:k(e)?{staleTime:$s(e),gcTime:3e5}:{staleTime:$s(e.stale||e.staleTime)||6e4,gcTime:$s(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Hl=null,C2=()=>{Hl||(Hl=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=cw.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Hl.unref&&Hl.unref())};C2();ow=3,bh=e=>Math.min(1e3*2**e,3e4),uw=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:ow,delay:bh}:typeof t=="number"?{count:t,delay:bh}:{count:t.count??ow,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:bh}},fw=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}},Yn={focus:new Set,online:new Set},sw=!1,A2=()=>{if(sw||typeof window>"u")return;sw=!0;let e=()=>{for(let r of Yn.focus)r()},t=()=>{for(let r of Yn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},iw=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(k(e))return{from:e,method:"select",query:!0,on:"create"};if(_(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},E2=e=>(!e||O(e),e),Gl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},dw=(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)})},wh=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=lw(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},ct=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},At=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},js=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},on=(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})}},qt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Cr=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 wh(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:x,headers:v,baseUrl:w,page:A,cursor:T,getNextPageParam:E,getPreviousPageParam:S,infinite:F,placeholderData:H,initialData:V,select:W,keepPreviousData:ne}=e,Q=k(W)?W:void 0;if(c&&O(t.getQuery)){let N=t.getQuery(s.name||"paths");N&&(Q=N.select||N.length&&N.join(",")||Q)}let oe=dw(u,t,r),ce=vh(d),tr=uw(e),Xr=Gl(t,r),kd=Xr?`:${Xr}`:"",Z=ce?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${F?":infinite":""}${A?":p"+JSON.stringify(A):""}${kd}`:null;if(!i.__fetchInitialized&&Z&&(i.__fetchInitialized=!0,V!==void 0)){let N=O(V)?V():V;Is(Z,N,null)}if((l==="select"||l==="rpc")&&Z&&ce){let N=Ds(Z);if(N&&!N.error){let B=Date.now()-N.time,M=N.stale||B>(ce.staleTime||0),z=N.data;if(O(W)&&(z=W(z,t,t.state)),f&&(z=f(z,t,t.state)),on(t,z,m),!M){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(H!==void 0){let B=O(H)?H(t,t.state):H;B!==void 0&&on(t,B,m)}}if(Z&&Ps.has(Z)&&!n.force){let N=Ps.get(Z);try{let B=await Promise.race([N,new Promise((M,z)=>setTimeout(()=>z("DEDUP_TIMEOUT"),15e3))]);if(B?.data!==void 0){let M=B.data;O(W)&&(M=W(M,t,t.state)),f&&(M=f(M,t,t.state)),on(t,M,m),ct(t,"onFetchComplete",M),At(e,t,"onFetchComplete",M)}}catch{}return}let Cd=!Ds(Z)?.data;qt(t,{isFetching:!0,isLoading:Cd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),At(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Yr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Xr});let ue=fw(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let z=await s.getSession();if(h===!0&&!z){let Ae={message:"Not authenticated"};return qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Ae,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Ae),At(e,t,"onFetchError",Ae),{data:null,error:Ae}}}let N=s[l];if(!O(N))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let B={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},M=Gl(t,r);if(M&&(B.headers={...B.headers,"Accept-Language":M}),A!==void 0){if(_(A))A.offset!==void 0&&(B.offset=A.offset),A.limit!==void 0&&(B.limit=A.limit),A.cursor!==void 0&&(B.params={...B.params,cursor:A.cursor});else if(typeof A=="number"){let z=e.pageSize||y||20;B.offset=(A-1)*z,B.limit=z}}if(T!==void 0&&(B.params={...B.params,cursor:T}),l==="insert"||l==="update"||l==="upsert"){let z;if(g===!0||e.on==="submit")z=js(t);else if($(g)){let Ae=js(t);z={};for(let el of g)z[el]=Ae[el]}else t.state?.parse?z=t.state.parse():_(t.state)&&(z={...t.state});f&&(z=f(z,t,t.state)),B.data=z}if(l==="rpc"){let z=oe;if(e.on==="submit"){let Ae=js(t);z=e.transformParams?e.transformParams(Ae,t,t.state):Ae}B.params=z}if(l==="subscribe"){let z=s.subscribe({from:a,params:oe,on:e.subscribeOn},(Ae,el,dB)=>{on(t,Ae,m),ct(t,"onFetchComplete",Ae),At(e,t,"onFetchComplete",Ae)});return i.__unsubscribe=z,{data:null,error:null,subscribed:!0}}return N(B)},tr);Z&&Ps.set(Z,ue);try{let N=await ue;if(N?.subscribed)return;let{data:B,error:M}=N||{};if(M){Z&&Is(Z,null,M),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:M,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",M),At(e,t,"onFetchError",M),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:M.message||M,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(B!==void 0){if((l==="select"||l==="rpc")&&Z){let Ae=Is(Z,B,null);Ae.gcTime=ce?.gcTime||3e5}let z=B;F&&$(B)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(B):i.__pages.push(B),z=i.__pages.flat(),E&&(i.__nextPageParam=E(B,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),S&&(i.__prevPageParam=S(B,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),O(W)&&(z=W(z,t,t.state)),f&&(z=f(z,t,t.state)),(!ne||z!==void 0)&&on(t,z,m),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",z),At(e,t,"onFetchComplete",z),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(N){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",N),At(e,t,"onFetchError",N),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:N.message||String(N),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{Z&&Ps.delete(Z)}},O2=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Cr;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))},T2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),A2();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:$s(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Cr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Gl(t,r),a=k2(e,i),l=Ds(a),c=vh(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Cr(e,t,r,{force:!0})};Yn.focus.add(s),n.__fetchCleanups.push(()=>Yn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Cr(e,t,r,{force:!0});Yn.online.add(s),n.__fetchCleanups.push(()=>Yn.online.delete(s))}},R2=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():_(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&&on(e,i,o),s},xh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(on(e,n,t.as),delete r.__optimisticSnapshot)},P2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await wh(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:x,onSettled:v}=e,w;if(l===!0||d==="submit")w=js(t);else if($(l)){let S=js(t);w={};for(let F of l)w[F]=S[F]}else t.state?.parse?w=t.state.parse():_(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),O(y)&&y(w,t,t.state);let A=m?R2(t,e,w):null;s.__fetching=!0,qt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),At(e,t,"onFetchStart");let T=r?.analyze?.emitNetwork,E=T?typeof performance<"u"?performance.now():Date.now():0;T&&T({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){A!==void 0&&xh(t,e);let ce={message:"Not authenticated"};ct(t,"onFetchError",ce),At(e,t,"onFetchError",ce);return}}let S=o[i];if(!O(S))return;let F={from:a,data:w,headers:p,baseUrl:h};e.params&&(F.params=dw(e.params,t,r));let H=Gl(t,r);H&&(F.headers={...F.headers,"Accept-Language":H});let V=uw(e),W=await fw(()=>S(F),V),{data:ne,error:Q}=W||{};if(Q){A!==void 0&&xh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Q),O(x)&&x(Q,w,t),O(v)&&v(null,Q,w,t),T&&T({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-E});return}if(delete s.__optimisticSnapshot,ne!==void 0){let oe=u?{[u]:ne}:ne;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",ne),At(e,t,"onFetchComplete",ne),O(b)&&b(ne,w,t),O(v)&&v(ne,null,w,t),T&&T({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-E}),g){let oe=$(g)?g:[g];for(let ce of oe)if(ce===!0||ce==="*")for(let[tr]of Be)tr.startsWith(a+":")&&Fs(tr);else Fs(ce)}}catch(S){A!==void 0&&xh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:S,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",S),At(e,t,"onFetchError",S),O(x)&&x(S,w,t),O(v)&&v(null,S,w,t),T&&T({phase:"error",mode:"mutation",from:a,method:i,error:S.message||String(S),durationMs:(typeof performance<"u"?performance.now():Date.now())-E})}finally{s.__fetching=!1}},Ls=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=de(e,t);if(!s)return;let i=$(s)?s.map(l=>iw(de(l,t),t)).filter(Boolean):[iw(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?P2:Cr;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{O2({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&T2(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Cr(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};Cr(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};Cr(u,t,n,{direction:"previous",force:!0})}},$2={invalidateQueries:e=>{if(!e){Fs();return}if(k(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Fs(t);else if($(e)){let t=e.join(":");for(let[r]of Be)r.includes(t)&&Fs(r)}},removeQueries:e=>{if(!e){Ul();return}if(k(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Ul(t)},getQueryData:e=>Ds(e)?.data??void 0,setQueryData:(e,t)=>{let r=Ds(e),n=O(t)?t(r?.data):t;Is(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await wh(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=Is(o,i.data,null);a.gcTime=vh(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>Ul(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Ul(r))}},_h={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Ps.clear(),Ls(t,e,e.state,e.context))}},I2=Ls});function Bs(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 kh(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 Ch(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 Ah(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 Kl(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(_(n)&&o)Kl.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 hw(e){let t=this;if(Sr("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=ts(t.parent.__ref.__children,t.key)),Sr("remove",t,e)}function Eh(e){return this[e]}function Oh(e,t){let r=this;if(e)return r.update(e,t),r}function Th(e){return e?this.__ref&&this.__ref[e]:this.__ref}function zs(){return this.getRef("__children").map(t=>this[t])}function Vs(){return this.getRef().path}function Us(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=pw();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=pw()),e?t?.[e]:t}function Hs(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function qs(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Gs(e){let t=this.getRoot()?.context;return e?t[e]:t}function Ks(e){let t=this.context;return e?t[e]:t}function Xl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||xr.has(r)&&!is.has(r)||t.push(r);return t}function Yl(e=[]){let t=this,r={},n=Xl.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 Ns(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Yl.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=>te(a)?Ns.call(a,e,t):a):te(i)&&(n[s]=Ns.call(i,e,t))}return n}function Zn(...e){if(Ar!=="test"&&Ar!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
17
|
+
`,"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 Ph(...e){(Ar==="test"||Ar==="development")&&console.log(...e)}function Xs(...e){(Ar==="test"||Ar==="development")&&console.warn(...e)}function an(...e){if(Ar==="test"||Ar==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Zn.call(this),new Error(...e)}}function Ys(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function Zs(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 Js(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,he(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 $h(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=>{an.call(this,s)}),o}catch(o){if(an.call(this,o),r?.strictMode)throw o}}async function Qs(){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(()=>(sn(),Ms));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(sn(),Ms));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(sn(),Ms)).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(()=>(sn(),Ms));await o(n,e.context)}return n}function ei(e){let t=this,r=e||Rs.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Sh(t,n),r===!0)return n;let o=z2[r];return o?o(n):n}function Ih(e,t){return!!(zn.has(e)||t?.context?.methods?.[e])}var Ar,gw,Ws,pw,Rh,Sh,F2,mw,j2,D2,L2,M2,N2,B2,z2,yw=G(()=>{"use strict";ph();Vn();Ie();nr();kp();Bn();gh();Ar="production";gw=null,Ws=e=>{gw=e||null},pw=()=>gw||null;Rh=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});Sh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&F2(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Sh(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&Sh(i,t)},F2=(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])}},mw=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
|
|
18
18
|
${mw(i,t+1)}
|
|
19
19
|
${r}}`).join(`
|
|
20
20
|
`):""},j2=e=>`{
|
|
@@ -22,10 +22,10 @@ ${mw(e,1)}
|
|
|
22
22
|
}`,D2=e=>{let t={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;t.include.push(a),r(n[i],a)}s.length&&(t.fields[o||"_root"]=s)};return r(e,""),t},L2=e=>{let t=s=>{let i=[],a=[];for(let l in s)if(s[l]===!0)i.push(l);else{let c=t(s[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},M2=(e,t)=>{let r=[],n=[],o=new Set,s=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):s(u[p],p,d)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
|
|
23
23
|
`+n.join(`
|
|
24
24
|
`):"";return`SELECT ${l}
|
|
25
|
-
FROM ${a}${c}`},N2=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},B2=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)}},
|
|
25
|
+
FROM ${a}${c}`},N2=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},B2=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)}},z2={graphql:j2,"json-api":D2,odata:L2,sql:M2,supabase:B2,paths:N2}});var V2,Fh,bw=G(()=>{"use strict";dl();V2={snapshotId:ps},Fh=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let a=V2.snapshotId();return r.__currentSnapshot=a,[a,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Zl,jh,xw=G(()=>{Zl=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),jh=e=>typeof e=="string"&&Zl.has(e)});async function Dh(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 vw=G(()=>{"use strict"});function W2(e){return/^[0-9.]+$/.test(e)&&e!==""}var Et,Er,Jn,Ot,Lh,ww=G(()=>{"use strict";Et={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Et.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Et.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Et.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Et.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!W2(t)?`${Et.symbols.url}/${e}`:`${Et.symbols.url}/${e}/${t}.js`}},Er={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Jn=(e={})=>{let{packageManager:t}=e;return Er[t]||null},Ot=(e,t="latest",r="esmsh")=>(Et[r]||Et.esmsh).formatUrl(e,t),Lh=(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]=Ot(s,i,t)}return`<script type="importmap">{
|
|
26
26
|
"imports": ${JSON.stringify(o,null,2)}
|
|
27
|
-
}<\/script>`}});var Mh,_w=G(()=>{"use strict";Mh=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 Nh,Sw=G(()=>{"use strict";Nh=(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 Bh,kw=G(()=>{"use strict";Bh=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
|
|
28
|
-
`)),H2=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var Ql,Yh,Tw=G(()=>{"use strict";Ie();Ql=(e,t)=>($(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Yh=(e,t)=>(e=parseFloat(e),_(t)&&(t=Object.values(t)),Ql(e,t))});function eo(e){let t=String(e||"").trim();if(!t)return{owner:Rw,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=Rw);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function ec(e,t={}){if((t.provider||"kv")==="api")return Pw(e,t);let n=await Y2(e,t);return n||Pw(e,t)}async function Y2(e,t={}){let r=t.kvBaseUrl||G2,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 Pw(e,t={}){let r=t.apiBaseUrl||X2,{key:n}=eo(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}=eo(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 Jh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(_(n))return n;if(k(n)){let{full:o}=eo(n);if(!o)return null;try{let s=await ec(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 Rw,G2,X2,ti,ri,$w=G(()=>{"use strict";Ie();Rw="system",G2="https://smbls-kv.nika-980.workers.dev",X2="https://api.symbols.app";ti=(e,t)=>{for(let r in t)r in e?_(e[r])&&_(t[r])&&ti(e[r],t[r]):e[r]=t[r]},ri=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(e[o]))if(o==="designSystem")ti(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 Zh,Qh,eg,ni,tg,oi,rg,ln,Iw=G(()=>{"use strict";Ie();Zh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Qh=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)}},eg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ni=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,"")),tg=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),oi=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),rg=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},ln=e=>{if($(e))return e;if(k(e))return e.split(" ");if(_(e))return Object.values(e);if(Wt(e))return[e]}});var ng,Fw=G(()=>{"use strict";ng=()=>{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,to,si,ii,jw=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},to=(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(", ")},si=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return to(t,{keepOneX:!1})},ii=(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:to(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=to(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Dw={};X(Dw,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>np,DOMQ_PROPERTIES:()=>xr,ENV:()=>xp,HTML_TAGS:()=>Kn,METHODS:()=>Vn,METHODS_EXL:()=>as,NODE_ENV:()=>kt,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>is,PROPS_METHODS:()=>vr,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>rp,SVG_TAGS:()=>j0,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Jl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Up,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>rs,addRef:()=>Pl,applyDependentState:()=>ch,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>M0,applyProps:()=>ks,arrayContainsOtherArray:()=>Dd,arraysEqual:()=>Hd,arrayzeValue:()=>ln,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>hh,call:()=>$h,captureSnapshot:()=>Fh,checkForStateTypes:()=>sh,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Gd,clone:()=>sp,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Op,concatAddExtends:()=>Vp,copyJavaScriptToClipboard:()=>Qh,copyStringToClipboard:()=>Zh,createBasedOnType:()=>Rl,createElement:()=>oh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>_l,createIfConditionFlag:()=>Tp,createInheritedState:()=>ih,createKey:()=>hs,createNestedObject:()=>dp,createNestedObjectByKeyPath:()=>lh,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>nh,createScope:()=>fh,createSnapshotId:()=>ps,customDecodeURIComponent:()=>tp,customEncodeURIComponent:()=>ep,cutArrayAfterValue:()=>Vd,cutArrayBeforeValue:()=>Bd,debounce:()=>gs,debounceOnContext:()=>Cp,decodeNewlines:()=>Qd,deepClone:()=>he,deepContains:()=>up,deepDefaults:()=>ti,deepDestringifyFunctions:()=>lt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>ls,defineSetter:()=>Rh,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>Nh,detectInfiniteLoop:()=>mp,document:()=>pe,encodeNewlines:()=>Zd,error:()=>an,excludeKeysFromObject:()=>bp,exec:()=>de,extendCachedRegistry:()=>zp,extendStackRegistry:()=>xs,extractArrayExtend:()=>ws,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Bh,filterArrays:()=>qd,filterArraysFast:()=>Kd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Yh,findInheritedState:()=>Nl,findKeyPosition:()=>Yd,flattenExtend:()=>Xn,formatDate:()=>Mh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Gh,get:()=>Eh,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Ml,getChildren:()=>Vs,getContext:()=>Gs,getCookie:()=>Fp,getDB:()=>Qs,getEmotionStylesheet:()=>ng,getExtendsInElement:()=>Hp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Ld,getHashedExtend:()=>vs,getImportMapScript:()=>Lh,getInObjectByPath:()=>gp,getLocalStorage:()=>Dp,getNev:()=>Sp,getPageMetadata:()=>Xh,getParentStateInKey:()=>Ll,getPath:()=>zs,getQuery:()=>ei,getRef:()=>Th,getRoot:()=>Hs,getRootContext:()=>Ks,getRootData:()=>qs,getRootState:()=>Us,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Gp,global:()=>Id,hasFunction:()=>Wn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>ap,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>wl,initProps:()=>eh,is:()=>Ke,isArray:()=>$,isBoolean:()=>il,isContextComponent:()=>Xp,isCyclic:()=>yp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>lp,isEqualDeep:()=>ul,isFunction:()=>T,isHtmlElement:()=>Jo,isLocal:()=>_p,isMethod:()=>Ih,isMobile:()=>$p,isNode:()=>rr,isNot:()=>jd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Wt,isObject:()=>_,isObjectLike:()=>re,isPhoto:()=>Vh,isProduction:()=>wr,isStaging:()=>wp,isState:()=>ah,isString:()=>k,isStringFunction:()=>Ep,isTest:()=>pl,isTesting:()=>vp,isUndefined:()=>$e,isUniversallyReservedKey:()=>jh,isValidHtmlTag:()=>Mp,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,loadCssFile:()=>Hh,loadJavascript:()=>qh,loadJavascriptFile:()=>zh,loadJavascriptFileEmbedSync:()=>Uh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,log:()=>Ph,logGroupIf:()=>Pp,logIf:()=>Rp,lookdown:()=>Ch,lookdownAll:()=>Ah,lookup:()=>kh,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>cp,map:()=>op,mapStringsWithContextComponents:()=>_s,matchesComponentNaming:()=>Ht,memoize:()=>Ap,merge:()=>ye,mergeSharedLibraries:()=>ri,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,objectToString:()=>cs,objectizeStringProperty:()=>Ss,overwrite:()=>fs,overwriteDeep:()=>Ge,overwriteShallow:()=>rn,overwriteState:()=>uh,parse:()=>Yl,parseDeep:()=>Ns,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Js,propExists:()=>Zp,propertizeElement:()=>El,propertizeUpdate:()=>Jp,remove:()=>hw,removeChars:()=>eg,removeCookie:()=>jp,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Md,removeFromObject:()=>fp,removeNestedKeyByPath:()=>pp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>zd,reorderArrayByValues:()=>Ud,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Jd,resolveAsset:()=>Ye,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Jh,returnValueAsText:()=>Tl,runPluginHook:()=>Ct,self:()=>Fd,setActiveRootState:()=>Ws,setCookie:()=>Ip,setHashedExtend:()=>gl,setInObjectByPath:()=>hp,setLocalStorage:()=>Lp,setNodeStyles:()=>Gl,setProps:()=>Oh,setPropsPrototype:()=>Es,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ip,swapItemsInArray:()=>Nd,syncProps:()=>Ts,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>rg,toTitleCase:()=>tg,toggleFullscreen:()=>Dh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>dh,trimStringFromSymbols:()=>Xd,unstackArrayOfObjects:()=>es,update:()=>Qp,updateProps:()=>th,variables:()=>Zs,verbose:()=>Jn,warn:()=>Xs,window:()=>C});var I=G(()=>{"use strict";dl();kp();Ie();nr();qn();Bn();Zo();$0();I0();ss();Yo();F0();Np();qp();rh();kl();U0();H0();zn();q0();yw();gh();bw();ph();xw();vw();ww();_w();Sw();kw();Cw();Aw();Ow();Tw();$w();Iw();Fw();jw()});var IC=Ed((m7,$C)=>{var _o=1e3,So=_o*60,ko=So*60,Sn=ko*24,hj=Sn*7,gj=Sn*365.25;$C.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return mj(e);if(r==="number"&&isFinite(e))return t.long?bj(e):yj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function mj(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*gj;case"weeks":case"week":case"w":return r*hj;case"days":case"day":case"d":return r*Sn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ko;case"minutes":case"minute":case"mins":case"min":case"m":return r*So;case"seconds":case"second":case"secs":case"sec":case"s":return r*_o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function yj(e){var t=Math.abs(e);return t>=Sn?Math.round(e/Sn)+"d":t>=ko?Math.round(e/ko)+"h":t>=So?Math.round(e/So)+"m":t>=_o?Math.round(e/_o)+"s":e+"ms"}function bj(e){var t=Math.abs(e);return t>=Sn?Au(e,t,Sn,"day"):t>=ko?Au(e,t,ko,"hour"):t>=So?Au(e,t,So,"minute"):t>=_o?Au(e,t,_o,"second"):e+" ms"}function Au(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var jC=Ed((y7,FC)=>{function xj(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=IC(),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),x=b-(d||b);y.diff=x,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let v=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(A,E)=>{if(A==="%%")return"%";v++;let O=r.formatters[E];if(typeof O=="function"){let S=m[v];A=O.call(y,S),m.splice(v,1),v--}return A}),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}FC.exports=xj});var DC=Ed((Ze,Eu)=>{Ze.formatArgs=wj;Ze.save=_j;Ze.load=Sj;Ze.useColors=vj;Ze.storage=kj();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 vj(){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 wj(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Eu.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 _j(e){try{e?Ze.storage.setItem("debug",e):Ze.storage.removeItem("debug")}catch{}}function Sj(){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 kj(){try{return localStorage}catch{}}Eu.exports=jC()(Ze);var{formatters:Cj}=Eu.exports;Cj.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var uB={};X(uB,{ANIMATION_PROPS:()=>zg,ARIA_ROLES:()=>fI,ATTR_TRANSFORMS:()=>nm,BLOCK_PROPS:()=>Wg,CDN_PROVIDERS:()=>Et,CONFIG:()=>ac,CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_PROPS_REGISTRY:()=>Se,CSS_UNITS:()=>Ln,DEFAULT_CONFIG:()=>Ri,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>_i,DESIGN_SYSTEM_OPTIONS:()=>cy,DOMQL_EVENTS:()=>np,DOMQ_PROPERTIES:()=>xr,DOM_EVENTS:()=>nS,ENV:()=>xp,FACTORY:()=>ir,FLEX_PROPS:()=>Gg,FONT_PROPS:()=>Ug,GRID_PROPS:()=>Xg,HTML_ATTRIBUTES:()=>zc,HTML_TAGS:()=>Kn,LIFECYCLE_EVENTS:()=>vn,METHODS:()=>Vn,METHODS_EXL:()=>as,MISC_PROPS:()=>Hg,MIXINS:()=>Mg,NODE_ENV:()=>kt,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>is,POSITION_PROPS:()=>qg,PROPS_METHODS:()=>vr,REGISTRY:()=>Je,ROUTER_OPTIONS:()=>ru,STATE_PROPERTIES:()=>rp,SVG_TAGS:()=>vi,THEME_PROPS:()=>Kg,TIMING_PROPS:()=>Ei,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Jl,VALUE_TRANSFORMERS:()=>$g,activateConfig:()=>o$,addCaching:()=>jl,addContext:()=>Fl,addDelegatedEvent:()=>Bc,addExtend:()=>Up,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addMethods:()=>Ti,addProtoToArray:()=>rs,addRef:()=>Pl,animation:()=>a_,appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyAttrTransforms:()=>im,applyCSS:()=>sy,applyDependentState:()=>ch,applyDocument:()=>Tc,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>ki,applyHeadings:()=>kg,applyInitialState:()=>tm,applyMediaSequenceVars:()=>dn,applyProps:()=>ks,applyReset:()=>Ic,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>Pr,applySpacingSequence:()=>Cc,applyStateMethods:()=>mt,applyTimingSequence:()=>Oc,applyTrueProps:()=>Jg,applyTypographySequence:()=>_c,arrayContainsOtherArray:()=>Dd,arraysEqual:()=>Hd,arrayzeValue:()=>ln,batch:()=>br,breakpoints:()=>s_,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>hh,cacheNode:()=>xn,call:()=>$h,captureSnapshot:()=>Fh,changeGlobalTheme:()=>Ig,changeLightness:()=>zw,checkAttributeByTagName:()=>Fr,checkEventFunctions:()=>sm,checkForStateTypes:()=>sh,checkIfBoxSize:()=>kc,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Gd,class:()=>d_,clone:()=>sp,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Op,color:()=>Zw,colorStringToRgbaArray:()=>or,components:()=>uo,concatAddExtends:()=>Vp,convertSvgToSymbol:()=>gc,copyJavaScriptToClipboard:()=>Qh,copyStringToClipboard:()=>Zh,create:()=>_0,createAsync:()=>aB,createBasedOnType:()=>Rl,createComputed:()=>A0,createConfig:()=>mg,createDefine:()=>_1,createEffect:()=>Ee,createElement:()=>oh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>_l,createHTMLNode:()=>xi,createIfConditionFlag:()=>Tp,createInheritedState:()=>ih,createKey:()=>hs,createNestedObject:()=>dp,createNestedObjectByKeyPath:()=>lh,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>nh,createScope:()=>fh,createScopeStore:()=>sl,createSignal:()=>zt,createSkeleton:()=>cB,createSnapshotId:()=>ps,createState:()=>J_,createStore:()=>at,createSync:()=>lB,css:()=>$r,cssMediaVars:()=>hg,cssVars:()=>pg,customDecodeURIComponent:()=>tp,customEncodeURIComponent:()=>ep,cutArrayAfterValue:()=>Vd,cutArrayBeforeValue:()=>Bd,debounce:()=>gs,debounceOnContext:()=>Cp,decodeNewlines:()=>Qd,deepClone:()=>he,deepContains:()=>up,deepDefaults:()=>ti,deepDestringifyFunctions:()=>lt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>ls,defaultDefine:()=>ho,defineSetter:()=>Rh,destringifyGlobalScope:()=>us,destroy:()=>Fi,detectHeightOnInit:()=>Nh,detectInfiniteLoop:()=>mp,detectTag:()=>bn,devices:()=>i_,dispose:()=>wn,encodeNewlines:()=>Zd,error:()=>an,excludeKeysFromObject:()=>bp,exec:()=>de,executeAttr:()=>pI,exetuteClassPerComponent:()=>eI,extendCachedRegistry:()=>zp,extendStackRegistry:()=>xs,extractArrayExtend:()=>ws,extractConditionalAttrs:()=>mI,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Bh,filterArrays:()=>qd,filterArraysFast:()=>Kd,filterAttributesByTagName:()=>dI,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Yh,findHeadingLetter:()=>vg,findHeadings:()=>pc,findInheritedState:()=>Nl,findKeyPosition:()=>Yd,flattenExtend:()=>Xn,font:()=>qw,fontFace:()=>Xw,fontFamily:()=>Kw,fontFamilyTypes:()=>Gw,formatDate:()=>Mh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Gh,generateSequence:()=>ft,generateSequencePosition:()=>y_,generateSprite:()=>di,generateSubSequence:()=>fc,get:()=>Eh,getActiveConfig:()=>R,getActiveDocument:()=>Dg,getActiveLang:()=>Di,getCDNUrl:()=>Ot,getCacheSize:()=>j_,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Ml,getChildren:()=>Vs,getColor:()=>me,getColorShade:()=>lg,getContext:()=>Gs,getCookie:()=>Fp,getDB:()=>Qs,getDefaultOrFirstKey:()=>ro,getEmotionStylesheet:()=>ng,getExtendsInElement:()=>Hp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFnPrefixAndValue:()=>Rr,getFontFace:()=>Uw,getFontFaceEach:()=>no,getFontFaceEachString:()=>dg,getFontFaceString:()=>rc,getFontFamily:()=>wc,getFontFormat:()=>ug,getFontSizeByKey:()=>Sc,getFrequencyInArray:()=>Ld,getHashedExtend:()=>vs,getImportMapScript:()=>Lh,getInObjectByPath:()=>gp,getLanguages:()=>su,getLocalStateLang:()=>uu,getLocalStorage:()=>Dp,getMediaColor:()=>De,getMediaTheme:()=>Rt,getNev:()=>Sp,getObserver:()=>jn,getPageMetadata:()=>Xh,getParentStateInKey:()=>Ll,getPath:()=>zs,getQuery:()=>ei,getRef:()=>Th,getRgbTone:()=>un,getRoot:()=>Hs,getRootContext:()=>Ks,getRootData:()=>qs,getRootState:()=>Us,getRootStateInKey:()=>Dl,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>xg,getSequenceValuePropertyPair:()=>lr,getShadow:()=>Ec,getSignals:()=>T0,getSpacingBasedOnRatio:()=>Gt,getSpacingByKey:()=>Te,getSpreadChildren:()=>Gp,getSubratio:()=>uc,getSubratioDifference:()=>cc,getSystemGlobalTheme:()=>gt,getTheme:()=>yc,getTimingByKey:()=>dt,getTimingFunction:()=>Pt,global:()=>Id,gradient:()=>Qw,grid:()=>f_,hasFunction:()=>Wn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>ap,hexToRgb:()=>Mw,hexToRgbArray:()=>og,hexToRgba:()=>Bw,hslToRgb:()=>ag,icons:()=>r_,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>wl,init:()=>po,initPolyglot:()=>uy,initProps:()=>eh,injectGlobal:()=>_e,is:()=>Ke,isArray:()=>$,isBoolean:()=>il,isCSSVar:()=>xe,isContextComponent:()=>Xp,isCyclic:()=>yp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>lp,isEqualDeep:()=>ul,isFunction:()=>T,isGoogleFontsUrl:()=>li,isHtmlElement:()=>Jo,isLocal:()=>_p,isMethod:()=>Ih,isMobile:()=>$p,isNode:()=>rr,isNot:()=>jd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Wt,isObject:()=>_,isObjectLike:()=>re,isPhoto:()=>Vh,isProduction:()=>wr,isResolvedColor:()=>sr,isScalingUnit:()=>Dn,isStaging:()=>wp,isState:()=>ah,isStore:()=>je,isString:()=>k,isStringFunction:()=>Ep,isSvgTag:()=>wi,isTest:()=>pl,isTesting:()=>vp,isTracking:()=>tS,isUndefined:()=>$e,isUniversallyReservedKey:()=>jh,isValidHtmlTag:()=>Mp,isValidTag:()=>bi,isWasmLoaded:()=>c1,joinArrays:()=>Mn,jointStacks:()=>Wp,keyframes:()=>yi,keys:()=>Xl,loadCssFile:()=>Hh,loadJavascript:()=>qh,loadJavascriptFile:()=>zh,loadJavascriptFileEmbedSync:()=>Uh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,loadTranslations:()=>au,loadWasm:()=>l1,log:()=>Ph,logGroupIf:()=>Pp,logIf:()=>Rp,lookdown:()=>Ch,lookdownAll:()=>Ah,lookup:()=>kh,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>cp,map:()=>op,mapStringsWithContextComponents:()=>_s,matchesComponentNaming:()=>Ht,media:()=>Yw,memoize:()=>Ap,merge:()=>ye,mergeSharedLibraries:()=>ri,mixTwoColors:()=>Lw,mixTwoRgb:()=>Vw,mixTwoRgba:()=>cg,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,numToLetterMap:()=>ar,objectToString:()=>cs,objectizeStringProperty:()=>Ss,opacify:()=>ai,overwrite:()=>fs,overwriteDeep:()=>Ge,overwriteShallow:()=>rn,overwriteState:()=>uh,parse:()=>Yl,parseColorToken:()=>Or,parseDeep:()=>Ns,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,polyglotFunctions:()=>Li,polyglotPlugin:()=>fu,popConfig:()=>we,previousElement:()=>Js,propExists:()=>Zp,propertizeElement:()=>El,propertizeUpdate:()=>Jp,pushConfig:()=>Oe,registerEvent:()=>Si,reinit:()=>oy,remove:()=>Ai,removeChars:()=>eg,removeCookie:()=>jp,removeDelegatedEvent:()=>Vc,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Md,removeFromObject:()=>fp,removeNestedKeyByPath:()=>pp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>zd,reorderArrayByValues:()=>Ud,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Jd,resolveAsset:()=>Ye,resolveColorsInGradient:()=>jc,resolveFileSource:()=>rm,resolveFileUrl:()=>Tt,resolveHandler:()=>Hn,resolvePropValue:()=>Ir,resolveSharedLibraries:()=>Jh,returnSubThemeOrDefault:()=>Ww,returnValueAsText:()=>Tl,rgbArrayToHex:()=>sg,rgbToHSL:()=>ig,rgbToHex:()=>Nw,runPluginHook:()=>Ct,runThroughMedia:()=>Sg,scratchDefaultConfig:()=>ui,scratchSystem:()=>mi,scratchUtils:()=>pn,self:()=>Fd,semanticIcons:()=>n_,sequence:()=>Tr,set:()=>oo,setActiveConfig:()=>gg,setActiveDocument:()=>I_,setActiveRootState:()=>Ws,setClass:()=>HI,setClassname:()=>tI,setColor:()=>hn,setCookie:()=>Ip,setCssEngineHook:()=>Zc,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setEach:()=>T_,setFont:()=>vc,setFontFamily:()=>hi,setFontImport:()=>ci,setGradient:()=>gn,setHashedExtend:()=>gl,setInCustomFontMedia:()=>fg,setInObjectByPath:()=>hp,setLang:()=>lu,setLocalStorage:()=>Lp,setMediaTheme:()=>xc,setNodeStyles:()=>Gl,setObserver:()=>C0,setProps:()=>Oh,setPropsPrototype:()=>Es,setSVG:()=>gi,setScalingVar:()=>lc,setShadow:()=>mn,setSubScalingVar:()=>bg,setSvgIcon:()=>Pc,setTheme:()=>bc,setValue:()=>O_,setVariables:()=>b_,setWasmEngine:()=>Nc,shadow:()=>t_,spacing:()=>Jw,splitSpacedValue:()=>Ac,splitTopLevelCommas:()=>cn,splitTransition:()=>Pg,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ip,svg:()=>l_,svgData:()=>c_,swapItemsInArray:()=>Nd,syncProps:()=>Ts,templates:()=>u_,theme:()=>e_,timing:()=>o_,toCamel:()=>ic,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>rg,toTitleCase:()=>tg,toggleFullscreen:()=>Dh,transformBackgroundImage:()=>Tg,transformBorder:()=>cr,transformBorderRadius:()=>Lc,transformBoxShadow:()=>Fc,transformClassname:()=>K_,transformDuration:()=>Dc,transformShadow:()=>Og,transformSize:()=>ve,transformSizeRatio:()=>ne,transformTextStroke:()=>Eg,transformTransition:()=>E_,transformersByPrefix:()=>Zg,transfromGap:()=>Rg,translate:()=>iu,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>dh,trimStringFromSymbols:()=>Xd,typography:()=>nc,unit:()=>Hw,unstackArrayOfObjects:()=>es,update:()=>Ci,updateProps:()=>th,updateVars:()=>UI,upsertTranslation:()=>cu,useCssInProps:()=>tt,useHostState:()=>eS,usePropsAsCSS:()=>H_,useSelectorsAsCSS:()=>q_,variables:()=>Zs,vars:()=>p_,verbose:()=>Jn,warn:()=>Xs,window:()=>C});module.exports=GP(uB);var Ue=null,rl=0,nl=[],jn=()=>Ue,C0=e=>{Ue=e};function zt(e){let t=new Set;function r(){return Ue&&(t.add(Ue),Ue._sources.add(s)),e}function n(i){i!==e&&(e=i,O0(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function A0(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Rd(o);let s=Ue;Ue=o;try{let i=e();i!==t?(t=i,r=!1,O0(n)):r=!1}finally{Ue=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return Ue&&(n.add(Ue),Ue._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Od=new Set,Td=!1;function Ee(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;Rd(n);let o=Ue;Ue=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{Ue=o}},_notify(){n._disposed||(rl>0?nl.push(n):E0(n))},dispose(){n._disposed=!0,Rd(n)}};return n._execute(),n}function br(e){rl++;try{e()}finally{rl--,rl===0&&YP()}}function E0(e){Od.add(e),Td||(Td=!0,queueMicrotask(XP))}function XP(){Td=!1;let e=Array.from(Od).sort((t,r)=>t._depth-r._depth);Od=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function YP(){for(let e=0;e<nl.length;e++)E0(nl[e]);nl.length=0}function O0(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Rd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Jr=Symbol("store"),ol=Symbol("signals"),Pd=e=>!e||typeof e!="object"||Array.isArray(e)||e[Jr]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function at(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"&&!Pd(b)?(o[y]=b,n[y]=zt(at(b,t,r+1))):(o[y]=b,n[y]=zt(b))}let i=new Proxy(o,{get(y,b){if(b===Jr)return!0;if(b===ol)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"&&jn()!=null)return n[b]=zt(void 0),n[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!Pd(x)?n[b].set(at(x,t,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!Pd(x)?n[b]=zt(at(x,t,r+1)):n[b]=zt(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){br(()=>{for(let v in y)v!=="__proto__"&&(i[v]=y[v])});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.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 x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let v=n[x].peek();v&&v[Jr]?b[x]=v.parse(y):b[x]=v}return b}function u(){return br(()=>{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 br(()=>{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 je(e){return e&&e[Jr]===!0}function T0(e){return e[ol]}function sl(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[ol];if(l&&Object.prototype.hasOwnProperty.call(l,i))return l;a=a[Jr]?a[$d]:null}return null};return new Proxy(n,{get(i,a){return a===Jr?!0:a===ol?r:a===$d?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[Jr]?l[$d]: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 $d=Symbol("scope.parent");var pn={};X(pn,{CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_UNITS:()=>Ln,applyMediaSequenceVars:()=>dn,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>Pr,changeLightness:()=>zw,colorStringToRgbaArray:()=>or,convertSvgToSymbol:()=>gc,findHeadingLetter:()=>vg,findHeadings:()=>pc,generateSequence:()=>ft,generateSequencePosition:()=>y_,generateSprite:()=>di,generateSubSequence:()=>fc,getColorShade:()=>lg,getDefaultOrFirstKey:()=>ro,getFnPrefixAndValue:()=>Rr,getFontFace:()=>Uw,getFontFaceEach:()=>no,getFontFaceEachString:()=>dg,getFontFaceString:()=>rc,getFontFormat:()=>ug,getRgbTone:()=>un,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>xg,getSequenceValuePropertyPair:()=>lr,getSubratio:()=>uc,getSubratioDifference:()=>cc,hexToRgb:()=>Mw,hexToRgbArray:()=>og,hexToRgba:()=>Bw,hslToRgb:()=>ag,isCSSVar:()=>xe,isGoogleFontsUrl:()=>li,isResolvedColor:()=>sr,isScalingUnit:()=>Dn,mixTwoColors:()=>Lw,mixTwoRgb:()=>Vw,mixTwoRgba:()=>cg,numToLetterMap:()=>ar,opacify:()=>ai,parseColorToken:()=>Or,resolveFileUrl:()=>Tt,returnSubThemeOrDefault:()=>Ww,rgbArrayToHex:()=>sg,rgbToHSL:()=>ig,rgbToHex:()=>Nw,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setFontImport:()=>ci,setInCustomFontMedia:()=>fg,setScalingVar:()=>lc,setSubScalingVar:()=>bg,setVariables:()=>b_,splitTopLevelCommas:()=>cn});var Dn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Ln=["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"];I();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&&C){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=C.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]},Lw=(e,t,r=.5)=>(e=or(e),t=or(t),cg(e,t,r)),Mw=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},og=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Nw=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),sg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),Bw=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},Vw=(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})`},zw=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},ig=(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]},ag=(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)],lg=(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)},cg=(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})`},ai=(e,t)=>{let r=or(e);if(!r){nn()&&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)/,J2=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Or=e=>{if(!k(e))return null;if(Kt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(J2);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=>k(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),cn=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},un=(e,t)=>{k(e)&&e.includes("rgb")&&(e=or(e).join(", ")),k(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Wt(t)&&(t+="");let r=sg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=lg(r,parseFloat(t));return og(o).join(", ")}else{let[o,s,i]=e,a=ig(o,s,i),[l,c,u]=a;return ag(l,c,parseFloat(t)/100*255)}};var Ww=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Tt=(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},ro=(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},ug=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},li=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),ci=e=>`@import url('${e}');`,fg=e=>`@font-face { ${e} }`,tc=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=ug(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
|
|
27
|
+
}<\/script>`}});var Mh,_w=G(()=>{"use strict";Mh=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 Nh,Sw=G(()=>{"use strict";Nh=(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 Bh,kw=G(()=>{"use strict";Bh=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,Cw=G(()=>{"use strict";zh=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function Qn(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 Gh(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 Vh,Wh,Uh,Hh,qh,Aw=G(()=>{"use strict";Vh=(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)}}),Wh=(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)}),Uh=(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}`)},Hh=(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)}}),qh=(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 q2(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!H2(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 Jl(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 G2(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]??Jl(a,g)??f;if(h==="getLocalStateLang")return Jl(l,g+s)??f;let m=Jl(l,g);return m!==void 0?m:a[g]??Jl(a,g)??f}));return c}function Ew(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 Xh(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=_(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=Ew(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=Ew(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=G2(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=q2(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 ut,U2,Kh,H2,Ow=G(()=>{"use strict";Ie();ut=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},U2=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${ut(r)}"`).join(" "),Kh=(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>${ut(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${ut(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${ut(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="${ut(u)}">`);else if(typeof u=="object"){let d=U2(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}="${ut(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}="${ut(c)}" content="${ut(u)}">`);else if(Array.isArray(u))u.forEach(f=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${d}="${ut(c)}" content="${ut(f)}">`);else if(typeof f=="object"){let p=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${ut(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}="${ut(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(`
|
|
28
|
+
`)),H2=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var Ql,Yh,Tw=G(()=>{"use strict";Ie();Ql=(e,t)=>($(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Yh=(e,t)=>(e=parseFloat(e),_(t)&&(t=Object.values(t)),Ql(e,t))});function eo(e){let t=String(e||"").trim();if(!t)return{owner:Rw,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=Rw);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function ec(e,t={}){if((t.provider||"kv")==="api")return Pw(e,t);let n=await Y2(e,t);return n||Pw(e,t)}async function Y2(e,t={}){let r=t.kvBaseUrl||K2,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 Pw(e,t={}){let r=t.apiBaseUrl||X2,{key:n}=eo(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}=eo(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 Zh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(_(n))return n;if(k(n)){let{full:o}=eo(n);if(!o)return null;try{let s=await ec(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 Rw,K2,X2,ti,ri,$w=G(()=>{"use strict";Ie();Rw="system",K2="https://smbls-kv.nika-980.workers.dev",X2="https://api.symbols.app";ti=(e,t)=>{for(let r in t)r in e?_(e[r])&&_(t[r])&&ti(e[r],t[r]):e[r]=t[r]},ri=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(e[o]))if(o==="designSystem")ti(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 Jh,Qh,eg,ni,tg,oi,rg,ln,Iw=G(()=>{"use strict";Ie();Jh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Qh=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)}},eg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ni=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,"")),tg=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),oi=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),rg=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},ln=e=>{if($(e))return e;if(k(e))return e.split(" ");if(_(e))return Object.values(e);if(Wt(e))return[e]}});var ng,Fw=G(()=>{"use strict";ng=()=>{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,to,si,ii,jw=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},to=(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(", ")},si=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return to(t,{keepOneX:!1})},ii=(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:to(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=to(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Dw={};K(Dw,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>np,DOMQ_PROPERTIES:()=>xr,ENV:()=>xp,HTML_TAGS:()=>Gn,METHODS:()=>zn,METHODS_EXL:()=>as,NODE_ENV:()=>kt,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>is,PROPS_METHODS:()=>vr,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>rp,SVG_TAGS:()=>jv,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Zl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Up,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>rs,addRef:()=>Pl,applyDependentState:()=>ch,applyEvent:()=>zl,applyEventUpdate:()=>Vl,applyExtends:()=>Mv,applyProps:()=>ks,arrayContainsOtherArray:()=>Dd,arraysEqual:()=>Hd,arrayzeValue:()=>ln,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>hh,call:()=>$h,captureSnapshot:()=>Fh,checkForStateTypes:()=>sh,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Kd,clone:()=>sp,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Op,concatAddExtends:()=>zp,copyJavaScriptToClipboard:()=>Qh,copyStringToClipboard:()=>Jh,createBasedOnType:()=>Rl,createElement:()=>oh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>_l,createIfConditionFlag:()=>Tp,createInheritedState:()=>ih,createKey:()=>hs,createNestedObject:()=>dp,createNestedObjectByKeyPath:()=>lh,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>nh,createScope:()=>fh,createSnapshotId:()=>ps,customDecodeURIComponent:()=>tp,customEncodeURIComponent:()=>ep,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Bd,debounce:()=>gs,debounceOnContext:()=>Cp,decodeNewlines:()=>Qd,deepClone:()=>he,deepContains:()=>up,deepDefaults:()=>ti,deepDestringifyFunctions:()=>lt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>ls,defineSetter:()=>Rh,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>Nh,detectInfiniteLoop:()=>mp,document:()=>pe,encodeNewlines:()=>Jd,error:()=>an,excludeKeysFromObject:()=>bp,exec:()=>de,extendCachedRegistry:()=>Vp,extendStackRegistry:()=>xs,extractArrayExtend:()=>ws,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Bh,filterArrays:()=>qd,filterArraysFast:()=>Gd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Yh,findInheritedState:()=>Nl,findKeyPosition:()=>Yd,flattenExtend:()=>Xn,formatDate:()=>Mh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Kh,get:()=>Eh,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>Gp,getCdnProviderFromConfig:()=>Jn,getChildStateInKey:()=>Ml,getChildren:()=>zs,getContext:()=>Ks,getCookie:()=>Fp,getDB:()=>Qs,getEmotionStylesheet:()=>ng,getExtendsInElement:()=>Hp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Ld,getHashedExtend:()=>vs,getImportMapScript:()=>Lh,getInObjectByPath:()=>gp,getLocalStorage:()=>Dp,getNev:()=>Sp,getPageMetadata:()=>Xh,getParentStateInKey:()=>Ll,getPath:()=>Vs,getQuery:()=>ei,getRef:()=>Th,getRoot:()=>Hs,getRootContext:()=>Gs,getRootData:()=>qs,getRootState:()=>Us,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Kp,global:()=>Id,hasFunction:()=>Wn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>ap,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>wl,initProps:()=>eh,is:()=>Ge,isArray:()=>$,isBoolean:()=>il,isContextComponent:()=>Xp,isCyclic:()=>yp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>lp,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Zo,isLocal:()=>_p,isMethod:()=>Ih,isMobile:()=>$p,isNode:()=>rr,isNot:()=>jd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Wt,isObject:()=>_,isObjectLike:()=>te,isPhoto:()=>zh,isProduction:()=>wr,isStaging:()=>wp,isState:()=>ah,isString:()=>k,isStringFunction:()=>Ep,isTest:()=>pl,isTesting:()=>vp,isUndefined:()=>$e,isUniversallyReservedKey:()=>jh,isValidHtmlTag:()=>Mp,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,loadCssFile:()=>Hh,loadJavascript:()=>qh,loadJavascriptFile:()=>Vh,loadJavascriptFileEmbedSync:()=>Uh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Gh,loadRemoteScript:()=>Qn,log:()=>Ph,logGroupIf:()=>Pp,logIf:()=>Rp,lookdown:()=>Ch,lookdownAll:()=>Ah,lookup:()=>kh,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>cp,map:()=>op,mapStringsWithContextComponents:()=>_s,matchesComponentNaming:()=>Ht,memoize:()=>Ap,merge:()=>ye,mergeSharedLibraries:()=>ri,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,objectToString:()=>cs,objectizeStringProperty:()=>Ss,overwrite:()=>fs,overwriteDeep:()=>Ke,overwriteShallow:()=>rn,overwriteState:()=>uh,parse:()=>Yl,parseDeep:()=>Ns,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Zs,propExists:()=>Jp,propertizeElement:()=>El,propertizeUpdate:()=>Zp,remove:()=>hw,removeChars:()=>eg,removeCookie:()=>jp,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Md,removeFromObject:()=>fp,removeNestedKeyByPath:()=>pp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>Vd,reorderArrayByValues:()=>Ud,replaceLiteralsWithObjectFields:()=>Jr,replaceOctalEscapeSequences:()=>Zd,resolveAsset:()=>Ye,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Zh,returnValueAsText:()=>Tl,runPluginHook:()=>Ct,self:()=>Fd,setActiveRootState:()=>Ws,setCookie:()=>Ip,setHashedExtend:()=>gl,setInObjectByPath:()=>hp,setLocalStorage:()=>Lp,setNodeStyles:()=>Kl,setProps:()=>Oh,setPropsPrototype:()=>Es,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ip,swapItemsInArray:()=>Nd,syncProps:()=>Ts,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>rg,toTitleCase:()=>tg,toggleFullscreen:()=>Dh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>dh,trimStringFromSymbols:()=>Xd,unstackArrayOfObjects:()=>es,update:()=>Qp,updateProps:()=>th,variables:()=>Js,verbose:()=>Zn,warn:()=>Xs,window:()=>C});var I=G(()=>{"use strict";dl();kp();Ie();nr();qn();Bn();Jo();$v();Iv();ss();Yo();Fv();Np();qp();rh();kl();Uv();Hv();Vn();qv();yw();gh();bw();ph();xw();vw();ww();_w();Sw();kw();Cw();Aw();Ow();Tw();$w();Iw();Fw();jw()});var IC=Ed((h7,$C)=>{var _o=1e3,So=_o*60,ko=So*60,Sn=ko*24,gj=Sn*7,mj=Sn*365.25;$C.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return yj(e);if(r==="number"&&isFinite(e))return t.long?xj(e):bj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function yj(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*mj;case"weeks":case"week":case"w":return r*gj;case"days":case"day":case"d":return r*Sn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ko;case"minutes":case"minute":case"mins":case"min":case"m":return r*So;case"seconds":case"second":case"secs":case"sec":case"s":return r*_o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function bj(e){var t=Math.abs(e);return t>=Sn?Math.round(e/Sn)+"d":t>=ko?Math.round(e/ko)+"h":t>=So?Math.round(e/So)+"m":t>=_o?Math.round(e/_o)+"s":e+"ms"}function xj(e){var t=Math.abs(e);return t>=Sn?Au(e,t,Sn,"day"):t>=ko?Au(e,t,ko,"hour"):t>=So?Au(e,t,So,"minute"):t>=_o?Au(e,t,_o,"second"):e+" ms"}function Au(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var jC=Ed((g7,FC)=>{function vj(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=IC(),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),x=b-(d||b);y.diff=x,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let v=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(A,T)=>{if(A==="%%")return"%";v++;let E=r.formatters[T];if(typeof E=="function"){let S=m[v];A=E.call(y,S),m.splice(v,1),v--}return A}),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}FC.exports=vj});var DC=Ed((Je,Eu)=>{Je.formatArgs=_j;Je.save=Sj;Je.load=kj;Je.useColors=wj;Je.storage=Cj();Je.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`."))}})();Je.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 wj(){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 _j(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Eu.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)}Je.log=console.debug||console.log||(()=>{});function Sj(e){try{e?Je.storage.setItem("debug",e):Je.storage.removeItem("debug")}catch{}}function kj(){let e;try{e=Je.storage.getItem("debug")||Je.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Cj(){try{return localStorage}catch{}}Eu.exports=jC()(Je);var{formatters:Aj}=Eu.exports;Aj.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var fB={};K(fB,{ANIMATION_PROPS:()=>Vg,ARIA_ROLES:()=>fI,ATTR_TRANSFORMS:()=>nm,BLOCK_PROPS:()=>Wg,CDN_PROVIDERS:()=>Et,CONFIG:()=>ac,CSS_NATIVE_COLOR_REGEX:()=>Gt,CSS_PROPS_REGISTRY:()=>Se,CSS_UNITS:()=>Ln,DEFAULT_CONFIG:()=>Ri,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>_i,DESIGN_SYSTEM_OPTIONS:()=>cy,DOMQL_EVENTS:()=>np,DOMQ_PROPERTIES:()=>xr,DOM_EVENTS:()=>nS,ENV:()=>xp,FACTORY:()=>ir,FLEX_PROPS:()=>Kg,FONT_PROPS:()=>Ug,GRID_PROPS:()=>Xg,HTML_ATTRIBUTES:()=>Vc,HTML_TAGS:()=>Gn,LIFECYCLE_EVENTS:()=>vn,METHODS:()=>zn,METHODS_EXL:()=>as,MISC_PROPS:()=>Hg,MIXINS:()=>Mg,NODE_ENV:()=>kt,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>is,POSITION_PROPS:()=>qg,PROPS_METHODS:()=>vr,REGISTRY:()=>Ze,ROUTER_OPTIONS:()=>ru,STATE_PROPERTIES:()=>rp,SVG_TAGS:()=>vi,THEME_PROPS:()=>Gg,TIMING_PROPS:()=>Ei,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Zl,VALUE_TRANSFORMERS:()=>$g,activateConfig:()=>o$,addCaching:()=>jl,addContext:()=>Fl,addDelegatedEvent:()=>Bc,addExtend:()=>Up,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addMethods:()=>Ti,addProtoToArray:()=>rs,addRef:()=>Pl,animation:()=>a_,appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyAttrTransforms:()=>im,applyCSS:()=>sy,applyDependentState:()=>ch,applyDocument:()=>Tc,applyEvent:()=>zl,applyEventUpdate:()=>Vl,applyExtends:()=>ki,applyHeadings:()=>kg,applyInitialState:()=>tm,applyMediaSequenceVars:()=>dn,applyProps:()=>ks,applyReset:()=>Ic,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>Pr,applySpacingSequence:()=>Cc,applyStateMethods:()=>mt,applyTimingSequence:()=>Oc,applyTrueProps:()=>Zg,applyTypographySequence:()=>_c,arrayContainsOtherArray:()=>Dd,arraysEqual:()=>Hd,arrayzeValue:()=>ln,batch:()=>br,breakpoints:()=>s_,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>hh,cacheNode:()=>xn,call:()=>$h,captureSnapshot:()=>Fh,changeGlobalTheme:()=>Ig,changeLightness:()=>Vw,checkAttributeByTagName:()=>Fr,checkEventFunctions:()=>sm,checkForStateTypes:()=>sh,checkIfBoxSize:()=>kc,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Kd,class:()=>d_,clone:()=>sp,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Op,color:()=>Jw,colorStringToRgbaArray:()=>or,components:()=>uo,concatAddExtends:()=>zp,convertSvgToSymbol:()=>gc,copyJavaScriptToClipboard:()=>Qh,copyStringToClipboard:()=>Jh,create:()=>_v,createAsync:()=>lB,createBasedOnType:()=>Rl,createComputed:()=>Av,createConfig:()=>mg,createDefine:()=>_1,createEffect:()=>Ee,createElement:()=>oh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>_l,createHTMLNode:()=>xi,createIfConditionFlag:()=>Tp,createInheritedState:()=>ih,createKey:()=>hs,createNestedObject:()=>dp,createNestedObjectByKeyPath:()=>lh,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>nh,createScope:()=>fh,createScopeStore:()=>sl,createSignal:()=>Vt,createSkeleton:()=>uB,createSnapshotId:()=>ps,createState:()=>Z_,createStore:()=>at,createSync:()=>cB,css:()=>$r,cssMediaVars:()=>hg,cssVars:()=>pg,customDecodeURIComponent:()=>tp,customEncodeURIComponent:()=>ep,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Bd,debounce:()=>gs,debounceOnContext:()=>Cp,decodeNewlines:()=>Qd,deepClone:()=>he,deepContains:()=>up,deepDefaults:()=>ti,deepDestringifyFunctions:()=>lt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>ls,defaultDefine:()=>ho,defineSetter:()=>Rh,destringifyGlobalScope:()=>us,destroy:()=>Fi,detectHeightOnInit:()=>Nh,detectInfiniteLoop:()=>mp,detectTag:()=>bn,devices:()=>i_,dispose:()=>wn,encodeNewlines:()=>Jd,error:()=>an,excludeKeysFromObject:()=>bp,exec:()=>de,executeAttr:()=>pI,exetuteClassPerComponent:()=>eI,extendCachedRegistry:()=>Vp,extendStackRegistry:()=>xs,extractArrayExtend:()=>ws,extractConditionalAttrs:()=>mI,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Bh,filterArrays:()=>qd,filterArraysFast:()=>Gd,filterAttributesByTagName:()=>dI,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Yh,findHeadingLetter:()=>vg,findHeadings:()=>pc,findInheritedState:()=>Nl,findKeyPosition:()=>Yd,flattenExtend:()=>Xn,font:()=>qw,fontFace:()=>Xw,fontFamily:()=>Gw,fontFamilyTypes:()=>Kw,formatDate:()=>Mh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Kh,generateSequence:()=>ft,generateSequencePosition:()=>y_,generateSprite:()=>di,generateSubSequence:()=>fc,get:()=>Eh,getActiveConfig:()=>R,getActiveDocument:()=>Dg,getActiveLang:()=>Di,getCDNUrl:()=>Ot,getCacheSize:()=>j_,getCapitalCaseKeys:()=>Gp,getCdnProviderFromConfig:()=>Jn,getChildStateInKey:()=>Ml,getChildren:()=>zs,getColor:()=>me,getColorShade:()=>lg,getContext:()=>Ks,getCookie:()=>Fp,getDB:()=>Qs,getDefaultOrFirstKey:()=>ro,getEmotionStylesheet:()=>ng,getExtendsInElement:()=>Hp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFnPrefixAndValue:()=>Rr,getFontFace:()=>Uw,getFontFaceEach:()=>no,getFontFaceEachString:()=>dg,getFontFaceString:()=>rc,getFontFamily:()=>wc,getFontFormat:()=>ug,getFontSizeByKey:()=>Sc,getFrequencyInArray:()=>Ld,getHashedExtend:()=>vs,getImportMapScript:()=>Lh,getInObjectByPath:()=>gp,getLanguages:()=>su,getLocalStateLang:()=>uu,getLocalStorage:()=>Dp,getMediaColor:()=>De,getMediaTheme:()=>Rt,getNev:()=>Sp,getObserver:()=>jn,getPageMetadata:()=>Xh,getParentStateInKey:()=>Ll,getPath:()=>Vs,getQuery:()=>ei,getRef:()=>Th,getRgbTone:()=>un,getRoot:()=>Hs,getRootContext:()=>Gs,getRootData:()=>qs,getRootState:()=>Us,getRootStateInKey:()=>Dl,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>xg,getSequenceValuePropertyPair:()=>lr,getShadow:()=>Ec,getSignals:()=>Tv,getSpacingBasedOnRatio:()=>Kt,getSpacingByKey:()=>Te,getSpreadChildren:()=>Kp,getSubratio:()=>uc,getSubratioDifference:()=>cc,getSystemGlobalTheme:()=>gt,getTheme:()=>yc,getTimingByKey:()=>dt,getTimingFunction:()=>Pt,global:()=>Id,gradient:()=>Qw,grid:()=>f_,hasFunction:()=>Wn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>ap,hexToRgb:()=>Mw,hexToRgbArray:()=>og,hexToRgba:()=>Bw,hslToRgb:()=>ag,icons:()=>r_,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>wl,init:()=>po,initPolyglot:()=>uy,initProps:()=>eh,injectGlobal:()=>_e,is:()=>Ge,isArray:()=>$,isBoolean:()=>il,isCSSVar:()=>xe,isContextComponent:()=>Xp,isCyclic:()=>yp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>lp,isEqualDeep:()=>ul,isFunction:()=>O,isGoogleFontsUrl:()=>li,isHtmlElement:()=>Zo,isLocal:()=>_p,isMethod:()=>Ih,isMobile:()=>$p,isNode:()=>rr,isNot:()=>jd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Wt,isObject:()=>_,isObjectLike:()=>te,isPhoto:()=>zh,isProduction:()=>wr,isResolvedColor:()=>sr,isScalingUnit:()=>Dn,isStaging:()=>wp,isState:()=>ah,isStore:()=>je,isString:()=>k,isStringFunction:()=>Ep,isSvgTag:()=>wi,isTest:()=>pl,isTesting:()=>vp,isTracking:()=>tS,isUndefined:()=>$e,isUniversallyReservedKey:()=>jh,isValidHtmlTag:()=>Mp,isValidTag:()=>bi,isWasmLoaded:()=>c1,joinArrays:()=>Mn,jointStacks:()=>Wp,keyframes:()=>yi,keys:()=>Xl,loadCssFile:()=>Hh,loadJavascript:()=>qh,loadJavascriptFile:()=>Vh,loadJavascriptFileEmbedSync:()=>Uh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Gh,loadRemoteScript:()=>Qn,loadTranslations:()=>au,loadWasm:()=>l1,log:()=>Ph,logGroupIf:()=>Pp,logIf:()=>Rp,lookdown:()=>Ch,lookdownAll:()=>Ah,lookup:()=>kh,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>cp,map:()=>op,mapStringsWithContextComponents:()=>_s,matchesComponentNaming:()=>Ht,media:()=>Yw,memoize:()=>Ap,merge:()=>ye,mergeSharedLibraries:()=>ri,mixTwoColors:()=>Lw,mixTwoRgb:()=>zw,mixTwoRgba:()=>cg,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,numToLetterMap:()=>ar,objectToString:()=>cs,objectizeStringProperty:()=>Ss,opacify:()=>ai,overwrite:()=>fs,overwriteDeep:()=>Ke,overwriteShallow:()=>rn,overwriteState:()=>uh,parse:()=>Yl,parseColorToken:()=>Or,parseDeep:()=>Ns,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,polyglotFunctions:()=>Li,polyglotPlugin:()=>fu,popConfig:()=>we,previousElement:()=>Zs,propExists:()=>Jp,propertizeElement:()=>El,propertizeUpdate:()=>Zp,pushConfig:()=>Oe,registerEvent:()=>Si,reinit:()=>oy,remove:()=>Ai,removeChars:()=>eg,removeCookie:()=>jp,removeDelegatedEvent:()=>zc,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Md,removeFromObject:()=>fp,removeNestedKeyByPath:()=>pp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>Vd,reorderArrayByValues:()=>Ud,replaceLiteralsWithObjectFields:()=>Jr,replaceOctalEscapeSequences:()=>Zd,resolveAsset:()=>Ye,resolveColorsInGradient:()=>jc,resolveFileSource:()=>rm,resolveFileUrl:()=>Tt,resolveHandler:()=>Hn,resolvePropValue:()=>Ir,resolveSharedLibraries:()=>Zh,returnSubThemeOrDefault:()=>Ww,returnValueAsText:()=>Tl,rgbArrayToHex:()=>sg,rgbToHSL:()=>ig,rgbToHex:()=>Nw,runPluginHook:()=>Ct,runThroughMedia:()=>Sg,scratchDefaultConfig:()=>ui,scratchSystem:()=>mi,scratchUtils:()=>pn,self:()=>Fd,semanticIcons:()=>n_,sequence:()=>Tr,set:()=>oo,setActiveConfig:()=>gg,setActiveDocument:()=>I_,setActiveRootState:()=>Ws,setClass:()=>HI,setClassname:()=>tI,setColor:()=>hn,setCookie:()=>Ip,setCssEngineHook:()=>Jc,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setEach:()=>T_,setFont:()=>vc,setFontFamily:()=>hi,setFontImport:()=>ci,setGradient:()=>gn,setHashedExtend:()=>gl,setInCustomFontMedia:()=>fg,setInObjectByPath:()=>hp,setLang:()=>lu,setLocalStorage:()=>Lp,setMediaTheme:()=>xc,setNodeStyles:()=>Kl,setObserver:()=>Cv,setProps:()=>Oh,setPropsPrototype:()=>Es,setSVG:()=>gi,setScalingVar:()=>lc,setShadow:()=>mn,setSubScalingVar:()=>bg,setSvgIcon:()=>Pc,setTheme:()=>bc,setValue:()=>O_,setVariables:()=>b_,setWasmEngine:()=>Nc,shadow:()=>t_,spacing:()=>Zw,splitSpacedValue:()=>Ac,splitTopLevelCommas:()=>cn,splitTransition:()=>Pg,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ip,svg:()=>l_,svgData:()=>c_,swapItemsInArray:()=>Nd,syncProps:()=>Ts,templates:()=>u_,theme:()=>e_,timing:()=>o_,toCamel:()=>ic,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>rg,toTitleCase:()=>tg,toggleFullscreen:()=>Dh,transformBackgroundImage:()=>Tg,transformBorder:()=>cr,transformBorderRadius:()=>Lc,transformBoxShadow:()=>Fc,transformClassname:()=>G_,transformDuration:()=>Dc,transformShadow:()=>Og,transformSize:()=>ve,transformSizeRatio:()=>re,transformTextStroke:()=>Eg,transformTransition:()=>E_,transformersByPrefix:()=>Jg,transfromGap:()=>Rg,translate:()=>iu,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>dh,trimStringFromSymbols:()=>Xd,typography:()=>nc,unit:()=>Hw,unstackArrayOfObjects:()=>es,update:()=>Ci,updateProps:()=>th,updateVars:()=>UI,upsertTranslation:()=>cu,useCssInProps:()=>tt,useHostState:()=>eS,usePropsAsCSS:()=>H_,useSelectorsAsCSS:()=>q_,variables:()=>Js,vars:()=>p_,verbose:()=>Zn,warn:()=>Xs,window:()=>C});module.exports=KP(fB);var Ue=null,rl=0,nl=[],jn=()=>Ue,Cv=e=>{Ue=e};function Vt(e){let t=new Set;function r(){return Ue&&(t.add(Ue),Ue._sources.add(s)),e}function n(i){i!==e&&(e=i,Ov(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function Av(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Rd(o);let s=Ue;Ue=o;try{let i=e();i!==t?(t=i,r=!1,Ov(n)):r=!1}finally{Ue=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return Ue&&(n.add(Ue),Ue._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Od=new Set,Td=!1;function Ee(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;Rd(n);let o=Ue;Ue=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{Ue=o}},_notify(){n._disposed||(rl>0?nl.push(n):Ev(n))},dispose(){n._disposed=!0,Rd(n)}};return n._execute(),n}function br(e){rl++;try{e()}finally{rl--,rl===0&&YP()}}function Ev(e){Od.add(e),Td||(Td=!0,queueMicrotask(XP))}function XP(){Td=!1;let e=Array.from(Od).sort((t,r)=>t._depth-r._depth);Od=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function YP(){for(let e=0;e<nl.length;e++)Ev(nl[e]);nl.length=0}function Ov(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Rd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Zr=Symbol("store"),ol=Symbol("signals"),Pd=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 at(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"&&!Pd(b)?(o[y]=b,n[y]=Vt(at(b,t,r+1))):(o[y]=b,n[y]=Vt(b))}let i=new Proxy(o,{get(y,b){if(b===Zr)return!0;if(b===ol)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"&&jn()!=null)return n[b]=Vt(void 0),n[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!Pd(x)?n[b].set(at(x,t,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!Pd(x)?n[b]=Vt(at(x,t,r+1)):n[b]=Vt(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){br(()=>{for(let v in y)v!=="__proto__"&&(i[v]=y[v])});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.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 x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let v=n[x].peek();v&&v[Zr]?b[x]=v.parse(y):b[x]=v}return b}function u(){return br(()=>{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 br(()=>{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 je(e){return e&&e[Zr]===!0}function Tv(e){return e[ol]}function sl(e,t){let r={},n={};if(e&&typeof e=="object")for(let i in e)n[i]=e[i],r[i]=Vt(e[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=t;for(;a;){let l=a[ol];if(l&&Object.prototype.hasOwnProperty.call(l,i))return l;a=a[Zr]?a[$d]:null}return null};return new Proxy(n,{get(i,a){return a===Zr?!0:a===ol?r:a===$d?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]=Vt(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[$d]: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 $d=Symbol("scope.parent");var pn={};K(pn,{CSS_NATIVE_COLOR_REGEX:()=>Gt,CSS_UNITS:()=>Ln,applyMediaSequenceVars:()=>dn,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>Pr,changeLightness:()=>Vw,colorStringToRgbaArray:()=>or,convertSvgToSymbol:()=>gc,findHeadingLetter:()=>vg,findHeadings:()=>pc,generateSequence:()=>ft,generateSequencePosition:()=>y_,generateSprite:()=>di,generateSubSequence:()=>fc,getColorShade:()=>lg,getDefaultOrFirstKey:()=>ro,getFnPrefixAndValue:()=>Rr,getFontFace:()=>Uw,getFontFaceEach:()=>no,getFontFaceEachString:()=>dg,getFontFaceString:()=>rc,getFontFormat:()=>ug,getRgbTone:()=>un,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>xg,getSequenceValuePropertyPair:()=>lr,getSubratio:()=>uc,getSubratioDifference:()=>cc,hexToRgb:()=>Mw,hexToRgbArray:()=>og,hexToRgba:()=>Bw,hslToRgb:()=>ag,isCSSVar:()=>xe,isGoogleFontsUrl:()=>li,isResolvedColor:()=>sr,isScalingUnit:()=>Dn,mixTwoColors:()=>Lw,mixTwoRgb:()=>zw,mixTwoRgba:()=>cg,numToLetterMap:()=>ar,opacify:()=>ai,parseColorToken:()=>Or,resolveFileUrl:()=>Tt,returnSubThemeOrDefault:()=>Ww,rgbArrayToHex:()=>sg,rgbToHSL:()=>ig,rgbToHex:()=>Nw,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setFontImport:()=>ci,setInCustomFontMedia:()=>fg,setScalingVar:()=>lc,setSubScalingVar:()=>bg,setVariables:()=>b_,splitTopLevelCommas:()=>cn});var Dn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Ln=["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"];I();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&&C){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=C.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]},Lw=(e,t,r=.5)=>(e=or(e),t=or(t),cg(e,t,r)),Mw=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},og=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Nw=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),sg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),Bw=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},zw=(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})`},Vw=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},ig=(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]},ag=(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)],lg=(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)},cg=(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})`},ai=(e,t)=>{let r=or(e);if(!r){nn()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Gt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Z2=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Or=e=>{if(!k(e))return null;if(Gt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(Z2);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=>k(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),cn=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},un=(e,t)=>{k(e)&&e.includes("rgb")&&(e=or(e).join(", ")),k(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Wt(t)&&(t+="");let r=sg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=lg(r,parseFloat(t));return og(o).join(", ")}else{let[o,s,i]=e,a=ig(o,s,i),[l,c,u]=a;return ag(l,c,parseFloat(t)/100*255)}};var Ww=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Tt=(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},ro=(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},ug=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},li=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),ci=e=>`@import url('${e}');`,fg=e=>`@font-face { ${e} }`,tc=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=ug(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
|
|
29
29
|
`);return`
|
|
30
30
|
font-family: '${e}';
|
|
31
31
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
@@ -33,13 +33,13 @@ FROM ${a}${c}`},N2=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
|
|
|
33
33
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
34
34
|
font-display: ${n.fontDisplay};`:""}
|
|
35
35
|
src: ${i};`},fn=(e,t,r,n)=>`@font-face {${tc(e,t,r,n)}
|
|
36
|
-
}`,no=(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=>Tt(d,r)||d):Tt(s,r)||s;return tc(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),Uw=e=>Object.keys(e).map(r=>no(r,e[r].value)),dg=(e,t,r)=>{if(t&&t.isVariable){let s=Tt(t.url,r)||t.url;return li(s)?ci(s):fn(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return no(e,t,r).map(fg);let o=Array.isArray(t.url)?t.url.map(s=>Tt(s,r)||s):Tt(t.url,r)||t.url;return fn(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},rc=(e,t)=>Object.keys(e).map(n=>dg(n,e[n].value,t));I();I();I();var ui={};X(ui,{animation:()=>a_,breakpoints:()=>s_,class:()=>d_,color:()=>Zw,devices:()=>i_,document:()=>t$,font:()=>qw,fontFace:()=>Xw,fontFamily:()=>Kw,fontFamilyTypes:()=>Gw,gradient:()=>Qw,grid:()=>f_,icons:()=>r_,media:()=>Yw,reset:()=>n$,semanticIcons:()=>n_,sequence:()=>Tr,shadow:()=>t_,spacing:()=>Jw,svg:()=>l_,svgData:()=>c_,templates:()=>u_,theme:()=>e_,timing:()=>o_,typography:()=>nc,unit:()=>Hw,vars:()=>p_});var Tr={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var Hw={default:"em"};var Z2={browserDefault:16,base:16,type:"font-size",ratio:Tr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},nc=Z2;var qw={};var Kw={},Gw={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Xw={};var Yw={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Q2={base:nc.base,type:"spacing",ratio:Tr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Jw=Q2;var Zw={},Qw={};var e_={};var t_={};var r_={},n_={};var e$={default:150,base:150,type:"timing",ratio:Tr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},o_=e$;var t$={};var s_={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},i_={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 a_={};var l_={},c_={};var u_={};var r$={},f_=r$;var d_={};var n$={},p_={};var pg={},hg={},oc=ui,sc={},ic=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in oc){let t=e.toLowerCase();sc[t]=oc[e];let r=ic(t);r!==t&&(sc[r]=oc[e]),t!==e&&(sc[e]=oc[e])}var ac={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:pg,cssMediaVars:hg,CSS_VARS:pg,CSS_MEDIA_VARS:hg,_scratchConfig:!0,...sc},h_=he(ac),ir={active:"0",0:ac},o$=e=>(qe(e)&&(ir.active=e),ir[e||ir.active]),fi=[],Oe=e=>{e&&e._scratchConfig&&fi.push(e)},we=()=>{fi.pop()},R=e=>fi.length?fi[fi.length-1]:ir[e||ir.active]||ac,gg=e=>{if(_(e))return ir.active="1",ir[1]=fe(e,he(h_)),e},s$=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],i$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],a$=e=>{for(let t of i$){let r;for(let n of t){let o=e[n];_(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)_(e[n])&&(e[n]=r)}},mg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:R(),o=he(!r&&n&&n._scratchConfig?n:h_);for(let i of s$)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,a$(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"},yg=(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=g_.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Rr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},g_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),lc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=g_.has(o)?"rem":o,i=(Dn(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(m_,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}))`}},bg=(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}))`},cc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},uc=(e,t)=>cc(e,t).map(r=>r/e),fc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=cc(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,x=bg(g+1,u,i,t),v={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};yg(v,t)})},m_=1.618,l$=(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(m_,2*n);return Math.max(o,s)},ft=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=l$(u,r,n),p=~~(f/r*100)/100,h=l+d,g=lc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};yg(m,e),s&&fc(m,e)}return e},y_=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=k(t)?t:ar[t],a=k(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=lc(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return yg(g,l),s&&fc(g,l),l},dc=(e="A",t)=>{let r=R(),{unit:n}=r;if(k(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(Ln.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+"-":""}${oi(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,v]=g.split("+"),w=`${y(x)} + ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes("*")){let[x,v]=g.split("*"),w=`${y(x)} * ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes("-")){let[x,v]=g.split("-"),w=`${y(x)} - ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${f}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=o?o[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",o,g)},xg=(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:dc(i,t)}).join("")},lr=(e,t,r,n)=>{if(typeof e!="string")return R().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=Rr(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=xg(e,r):e=dc(e,r),{[t]:n?`${n}(${e})`:e}},vg=(e,t)=>ar[e-t],pc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=vg(t,o);return r[s]})};I();var b_=(e,t)=>{let r=R(),{cssVars:n}=r;re(e.value)||(n[e.var]=e.value)},hc=(e,t,r)=>{let n=R(),{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]=uc(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})`},x_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pr=(e,t={})=>{let r=R(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=x_.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||hc(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"})`)}},dn=(e,t,r={})=>{let n=R(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=x_.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}`]={}),hc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Dn(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}};I();var w_=nn(),di=e=>{let t=R(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},c$=e=>{let t=e&&(e.default||e);if(!k(t))return w_&&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},{}):{}},u$=(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},v_=new Set,gc=(e,t)=>{let r=t&&t.default?t.default:t;if(!k(r))return w_&&!v_.has(e)&&(v_.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=c$(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,c=u$(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=p$(c),c},f$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",d$=new RegExp(`<(${f$})\\b([^>]*?)\\s*/>`,"g"),p$=e=>e.replace(d$,"<$1$2></$1>");var mi={};X(mi,{appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyDocument:()=>Tc,applyHeadings:()=>kg,applyReset:()=>Ic,applySpacingSequence:()=>Cc,applyTimingSequence:()=>Oc,applyTypographySequence:()=>_c,checkIfBoxSize:()=>kc,getColor:()=>me,getFontFamily:()=>wc,getFontSizeByKey:()=>Sc,getMediaColor:()=>De,getMediaTheme:()=>Rt,getShadow:()=>Ec,getSpacingBasedOnRatio:()=>Gt,getSpacingByKey:()=>Te,getTheme:()=>yc,getTimingByKey:()=>dt,getTimingFunction:()=>Pt,runThroughMedia:()=>Sg,setColor:()=>hn,setFont:()=>vc,setFontFamily:()=>hi,setGradient:()=>gn,setMediaTheme:()=>xc,setSVG:()=>gi,setShadow:()=>mn,setSvgIcon:()=>Pc,setTheme:()=>bc,splitSpacedValue:()=>Ac});I();var me=(e,t,r)=>{let n=r||R();if(!k(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($(e))[o,s,i]=e;else{let d=Or(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=un(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||R();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!k(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let o;if($(e))o=e[0];else{let c=Or(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=_(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},hn=(e,t,r)=>{let n=R();if(k(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&&(k(y)||$(y)||_(y))&&(n.color[m[0]]=hn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",v=m[2];v&&(b=un(b,v)),e=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let v=or(m[0]);v&&v.length>=3?e=`rgba(${un(v.slice(0,3).join(", "),b)}, ${x})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if($(e)&&(e={"@light":e[0],"@dark":e[1]}),_(e)){let g={};for(let m in e)g[m]=hn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,x={};for(let v in g){if(v.charCodeAt(0)!==64)continue;let w=v.slice(1),A=g[v],E=A&&(A.value||A);!E||typeof E!="string"||(x[w]=E,(w==="light"||b===void 0)&&(b=E))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let v in x){let w=`[data-theme="${v}"]`;if(n.cssMediaVars[w]||(n.cssMediaVars[w]={}),n.cssMediaVars[w][y]=x[v],v==="light"||v==="dark"){let A=`@media (prefers-color-scheme: ${v})`;n.cssMediaVars[A]||(n.cssMediaVars[A]={}),n.cssMediaVars[A][y]=x[v]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(k(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(k(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Or(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(k(m)||$(m)||_(m))&&(n.color[g.name]=hn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=un(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}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}},gn=(e,t,r)=>{let n=R();if(k(e)&&xe(e)&&(e=me(e.slice(2))),$(e))return{"@light":gn(e[0],t,"light"),"@dark":gn(e[0],t,"dark")};if(_(e)){let i={};for(let a in e)i[a]=gn(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}};I();var h$=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"]),__=["color","Color","background","Background","fill","Fill","stroke","Stroke"],g$=e=>{for(let t=0;t<__.length;t++)if(e.includes(__[t]))return!0;return!1},mc=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},pi=e=>(e.value||(e.value=mc(e)),e.value),yc=(e,t)=>{let r=R();if(r.useVariable)return Rt(e,t);let n=r.theme;if(k(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return pi(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 pi(a[s]);if(i&&i[s])return pi(i[s]);if(l&&l[s])return pi(l[s])}else if(_(e))return mc(e)},m$=(e,t,r)=>{if(_(t))e.variants.inverse.value=mc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},y$=(e,t,r,n)=>{let o=yc(r);n[`&:${t}`]=o,_(r)&&!r.value&&(r.value=o)},b$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return y$(e,o,s,t),e}),e):void 0},x$=(e,t,r,n)=>{let o=yc(r);n[`@media (prefers-color-scheme: ${t})`]=o,_(r)&&!r.value&&(r.value=o)},v$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&x$(e,o,s,t),o==="inverse"&&m$(e,s,t),e}),e):void 0},w$=(e,t)=>{let r=R(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return k(i)?n[s]=r.theme[i]:pi(n[s]),e}),e):void 0},bc=(e,t)=>{let r=R();if(r.useVariable)return xc(e,t);let{state:n,media:o,helpers:s}=e,i=mc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return b$(e,i),v$(e,i),w$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var wg=(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===":")&&g$(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&&k(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!h$.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]=wg(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]=wg(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 x=`[data-theme="${m}"]`;if(o[x]||(o[x]={}),o[x][p]=b,m==="dark"||m==="light"){let v=`@media (prefers-color-scheme: ${m})`;o[v]||(o[v]={}),o[v][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},xc=(e,t,r,n)=>{let o=R(),{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=wg(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]=xc(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(k(e)&&xe(e)){let c=o.theme[e.slice(2)];return Rt(c,n)}return i},_g=e=>{let t=R(),r={};for(let n in e){let o=n.slice(0,1);if(re(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=_g(e[n]):o==="."&&(r[`&${n}`]=_g(e[n]))}else r[n]=e[n]}return r},k_=(e,t)=>{let r=t.shift();return e[r]?k_(e[r],t):e},S_=(e,t)=>$(t)?k_(e,t):k(t)&&e[t]?e[t]:e;var Rt=(e,t)=>{let r=R();if(k(e)&&xe(e)&&(e=Rt(e.slice(2))),!e||!k(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=$(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=S_(s,o):s&&t&&(s=S_(s,t)),_g(s)};I();I();var vc=(e,t)=>{let r=R(),n=`--font-${t}`;if(!e||$(e)&&!e[0])return;let o;if(e.isVariable){let s=Tt(e.url,r.files)||e.url;li(s)?o=ci(s):o=fn(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=no(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Tt(i,r.files)||i):Tt(e.url,r.files)||e.url;o=fn(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},wc=(e,t)=>{let r=R(),{fontFamily:n}=r;return ro(t||n,e)},hi=(e,t)=>{let r=R(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),_(s)&&(s=ln(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};I();var Sg=e=>{let t=R(),{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,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){ye(i,{sequence:{},scales:{},vars:{}}),ft(i),dn(e,o);continue}ye(i,{sequence:{},scales:{},templates:{},vars:{}}),ft(i),dn(e,o)}},kg=e=>{let t=R();if(e.h1Matches){let r=e.unit,n=pc(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}}}},_c=()=>{let e=R(),{typography:t}=e;ft(t),kg(t),Pr(t),Sg(t)},Sc=e=>{let t=R(),{typography:r}=t;return lr(e,"fontSize",r)};I();I();var _$=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:{}}),ft(r),dn(e,t)}},kc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},Cc=()=>{let e=R(),{spacing:t}=e;ft(t),Pr(t),_$(t)},S$=e=>{let t=R(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:ft(e)},Te=(e,t="padding",r,n)=>{let o=S$(r);if(k(e)&&!n&&e.includes("(")){let i=Rr(e);n=i[0],e=i[1]}let s=n?[e]:ln(e);if($(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)}},Gt=(e,t,r,n)=>{let o=R(),{spacing:s}=o,i=r||e[t];if(!n&&k(i)&&i.includes("(")){let a=Rr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Te(i,t,a,n)}return Te(i,t,s,n)},Ac=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Ln.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(" ")};I();var mn=(e,t,r,n)=>{let o=R();if($(e))return{"@light":mn(e[0],t,"light"),"@dark":mn(e[1],t,"dark")};if(_(e)){let a={};for(let l in e)a[l]=mn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}k(e)&&!Kt.test(e)&&(e=cn(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=Te(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}},Ec=(e,t)=>{let r=R();if(t||(t=r.globalTheme),!k(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let[n]=$(e)?e:e.split(" "),s=r.shadow[n],i=_(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};I();var Oc=()=>{let e=R(),{timing:t}=e;ft(t),Pr(t)},Pt=e=>{let t=R(),{timing:r}=t;return r[e]||r[ni(e)]||e},dt=(e,t="timing")=>{let r=R(),{timing:n}=r;return lr(e,t,n)};I();var Tc=()=>{let e=R(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ye(t,{theme:n.document,fontFamily:ro(r),fontSize:o.base,lineHeight:o.lineHeight})};I();var Ag={document:pe},gi=(e,t)=>{let r=R();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?gc(t,e):e},Rc=(e,t=Ag)=>{let r=R(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];A_(n,t)},Pc=(e,t)=>{let r=R();return r.useIconSprite&&!r.semanticIcons?.[t]?gi(e,t):e},$c=(e,t=Ag)=>{let r=R(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];A_(n,t)},Cg=(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},k$=(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},C_=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},A_=(e,t=Ag)=>{let r=R(),n=t.document||pe;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),di(e);let o=n.querySelector("#svgSprite"),s=di(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=k$(n,s);if(o)if(a)C_(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Cg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Cg(n);l&&l.nodeType&&(C_(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Cg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};I();var Ic=(e={})=>{let t=R(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Rt("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?Rt("document"):{};if(r.html&&Ge(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}})}};I();var C$=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),A$=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),E$=e=>C$.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(E$(o)||/^\d/.test(o)||o==="0")return o;let s=me(o);if(sr(s))return s;let i=Te(o,"border");return i&&i.border?i.border:o}).join(" ")},Eg=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(" "),Og=(e,t)=>Ec(e,t),Fc=(e,t)=>Kt.test(e)?e:cn(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 _(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=Te(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),jc=(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=cn(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||A$.has(u)||u==="transparent"||Kt.test(u))return u;let d=me(u);return sr(d)?d:u}).join(" ")));return n+a.join(", ")+s},Tg=(e,t)=>{let r=R();return e.split(", ").map(n=>xe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?jc(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Or(n)?`url(${n})`:n).join(" ")},Rg=e=>k(e)&&e.split(" ").map(t=>Te(t,"gap").gap).join(" "),E_=e=>{let t=e.split(" ");return t.length?t.map(r=>xe(r)?`var(${r})`:r.length<3||r.includes("ms")?dt(r).timing||r:Pt(r)?Pt(r):r).join(" "):e},Dc=(e,t,r)=>{if(k(e))return e.split(",").map(n=>dt(n).timing||n).join(",")},Pg=e=>{let t=e.split(",");if(t.length)return t.map(E_).join(",")};function ve(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let s;if(k(o)){if(o.includes("(")){let l=Rr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=kc(e);!i&&a&&!n.ratio&&(o=Ac(o))}return n.ratio?Gt(r,e,o,s):Te(o,e,void 0,s)}var ne=(e,t=null,r)=>ve(e,t,r,{ratio:!0}),Lc=(e,t,r)=>{if(k(e))return{borderRadius:e.split(" ").map((n,o)=>Gt(t,r,n)[r]).join(" ")}};I();var O$=(e,t)=>{let r=R(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},pt=e=>e,$g={color:hn,gradient:gn,font:vc,fontFamily:hi,fontfamily:hi,theme:bc,icons:Pc,semanticIcons:pt,semanticicons:pt,svg:gi,svgData:pt,typography:pt,shadow:mn,spacing:pt,media:pt,grid:pt,class:pt,timing:pt,reset:pt,unit:pt,animation:pt,vars:O$},O_=(e,t,r)=>{let n=R(),o=ic(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=$g[o]||$g[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")},T_=(e,t)=>{let r=R(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=_(t[s])||$(t[s])?1:0,l=_(t[i])||$(t[i])?1:0;return a-l}).forEach(s=>{try{return O_(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},Ig=(e,t)=>{let r=t||R();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},T$={},oo=(e,t=T$)=>{let r=t.config||R(),{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=gg(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 x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=x&&x.defaultView||(typeof window<"u"?window:null),w=x&&(r.themeRoot||x.documentElement);if(w&&typeof w.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")w.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?w.style.colorScheme=r.globalTheme:w.style.colorScheme="light dark";else if(v&&v.matchMedia){let B=z=>{w.setAttribute("data-theme",z.matches?"dark":"light")},K=v.matchMedia("(prefers-color-scheme: dark)");if(B(K),w.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=B;try{K.addEventListener("change",B)}catch{K.addListener(B)}}}else w.setAttribute("data-theme","light"),w.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let A=Object.keys(y),E=new Set(A);if(A.forEach(S=>{let B=S.toLowerCase();B!==S&&E.has(B)&&fe(y[B],y[S])}),A.map(S=>{let B=S.toLowerCase();if(!(B!==S&&E.has(B)))return T_(S,y[S])}),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{_c()}catch(S){r.verbose&&console.warn("Error applying typography sequence",S)}if(y.spacing)try{Cc()}catch(S){r.verbose&&console.warn("Error applying spacing sequence",S)}if(y.timing)try{Oc()}catch(S){r.verbose&&console.warn("Error applying timing sequence",S)}Tc();let O=Ic();return O&&(r.reset=O),r};var so=new Map,R$=null,jg=null,P$=null;function Nc(e){e.batchAtomicCss&&(jg=e.batchAtomicCss),e.compoundCssClass&&(P$=e.compoundCssClass)}var $$=new Set;function I_(e){try{let t=R();t&&(t.document=e)}catch{}e&&$$.add(e)}function Dg(){try{let e=R();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var I$={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function yn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Mc(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 F$(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Mc(t)}function R_(e,t,r){let n=(r?r+"":"")+e+":"+t,o=so.get(n),s=o?null:yn(e);if(!o){let a=I$[e]||Mc(e),l=F$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,so.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||yn(e)}:${t}}`;return ht(i),o}var P_=new WeakMap;function ht(e,t){let r=F_(t);if(!r)return;let n=P_.get(r);if(n||(n=new Set,P_.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var $_=new WeakMap;function F_(e){let t=e||Dg();if(!t||!t.head)return null;let r=$_.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 $_.set(t,o),R$=o,o}var j$=8;function $r(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]):jg?(n||(n=[]),n.push(l,String(c)),o++):s.push(R_(l,String(c),r)))}if(n&&o>=j$){let l=n.join("\0"),c=jg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
|
|
37
|
-
`);for(let h=0;h<p.length;h++)p[h]&&ht(p[h])}s.push(d)}else if(n)for(let l=0;l<n.length;l+=2)s.push(R_(n[l],n[l+1],r));let a=[];for(let l=0;l<i.length;l++)a.push(D$(i[l][0],i[l][1],r));return s.concat(a).join(" ").trim()}var Fg=new Map;function D$(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=so.get(n);if(o){let f=Fg.get(o);if(f)for(let p=0;p<f.length;p++)ht(f[p]);return o}o=r?`_${r}_c${Mc(n)}`:`_c${Mc(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+=`${yn(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),ht(f)}for(let f of i){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),ht(h)}return Fg.set(o,u),so.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),ht(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),ht(h)}return Fg.set(o,u),so.set(n,o),o}function _e(e){if(F_(),typeof e=="string"){ht(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:yn(l);a+=`${c}:${i[l]};`}ht(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:yn(s);ht(`${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:yn(a);s+=`${c}:${l};`}}if(s&&ht(`${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)_e({[`${n} ${c}`]:o[c]});for(let c of a)_e({[c]:{[n]:o[c]}})}}}}function yi(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${yn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ht(`@keyframes ${e}{${r}}`),e}function j_(){return so.size}I();var Lg="http://www.w3.org/2000/svg",vi=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"]),L$=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 bi(e){return L$.has(e)||vi.has(e)}function wi(e){return vi.has(e)}function bn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&bi(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]),bi(o)&&!n.has(o)?o:"div"}var D_={};function xi(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(wi(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Lg)return r.createElementNS(Lg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function xn(e){let t=e.tag=bn(e),n=wi(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Lg)?"svg:"+t:t,o=e?.context?.document||globalThis.document,s=D_[n];if(s||(s=D_[n]=xi(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?xi(t,e):s.cloneNode(!0);return t==="string"&&(i.nodeValue=e.text||""),i}var Je=new Set(["extends","children","content","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","__name","__ref","__hash","__text","parent","node"]),Mg={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),L_=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),_i=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 Ng=new WeakMap,M$={passive:!0},N$={passive:!0,capture:!0},Bg=(e,t)=>L_.has(e)?t?N$:M$:t||!1;function N_(e){let t=Ng.get(e);return t||(t={handlers:new Map,installed:new Set},Ng.set(e,t)),t}function B$(e,t){let r=N_(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}},Bg(e,n))}function Bc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=N_(n);B$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Vc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Ng.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function M_(e){return _i.has(e)&&!vn.has(e)}function Si(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Oe(s);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{s&&we()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&we()};if(M_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Bc(e,n,i,a)}else n.addEventListener(e,i,Bg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(M_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Vc(e,n,a)}else n.removeEventListener(e,i,Bg(e,!1))})}function B_(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 ki(e,t,r){let n=B_(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=V_(n[i],s);a&&a!==t&&z_(e,a,r,new Set([t]))}}function V_(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 z_(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=B_(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=V_(o[a],i);l&&z_(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]=W_(e[s],i):e[s]=i}}function W_(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]=W_(o,s):r[n]=s}return r}qn();function Ci(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(br(()=>{if(e.state&&je(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&&$t(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 Ct("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 Ai(){wn(this)}I();I();var V$=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],z$=["none","forwards","backwards","both"],W$=["normal","reverse","alternate","alternate-reverse"],U$=["running","paused"],H$=e=>/^[\d.]+m?s$/.test(e),q$=0,Vg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(_(e)){let o=`smbls-anim-${q$++}`;return{animationName:yi(o,e)}}let n=r&&r[e];return _(n)?yi(e,n):e},K$=(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:H$(d)?s.push(d):V$.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):W$.includes(d)?l=d:z$.includes(d)?c=d:U$.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},zg={animation:(e,t)=>{if(k(e)&&e.includes(" ")){let r=K$(e,t);return{animationName:Vg(r.name||e,t),animationDuration:r.durations[0]||dt(t.animationDuration||"A").timing,animationDelay:r.durations[1]||dt(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Pt(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:Vg(e,t),animationDuration:dt(t.animationDuration||"A").timing,animationDelay:dt(t.animationDelay||"0s").timing,animationTimingFunction:Pt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Vg(e,t)}),animationDuration:e=>({animationDuration:dt(e).timing}),animationDelay:e=>({animationDelay:dt(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Pt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};I();var Wg={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=>$e(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("height",t),...ve("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(!k(e))return;let[t,r]=e.split(" ");return{...ve("minWidth",t),...ve("maxWidth",r||t)}},minHeight:(e,t)=>ne("minHeight",e,t),maxHeight:(e,t)=>ne("maxHeight",e,t),heightRange:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("minHeight",t),...ve("maxHeight",r||t)}},size:e=>{if(!k(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(!k(e))return;let[t,r]=e.split(" ");return{...ve("minInlineSize",t),...ve("minBlockSize",r||t)}},maxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("maxInlineSize",t),...ve("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(!k(e))return;let[t,r]=e.split(" ");return{...ve("paddingInlineStart",t),...ve("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("paddingBlockStart",t),...ve("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(!k(e))return;let[t,r]=e.split(" ");return{...ve("marginInlineStart",t),...ve("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!k(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...ve("marginBlockStart",r),...ve("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:Rg(e)}),columnGap:(e,t)=>Gt(t,"columnGap",e),rowGap:(e,t)=>Gt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!k(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(!k(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Lc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Lc(e??t.round,t,"borderRadius")};var Ug={fontSize:e=>Sc(e)||e,fontFamily:e=>({fontFamily:wc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var Hg={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 qg={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Te(r,"k").k).join(" ")}},left:e=>Te(e,"left"),top:e=>Te(e,"top"),right:e=>Te(e,"right"),bottom:e=>Te(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Te(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=>Te(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};I();var gt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},Kg={theme:(e,t)=>{if(e)return t.themeModifier?Rt(e,`@${t.themeModifier}`):Rt(e)},color:(e,t)=>{let r=gt(t);if(e)return{color:De(e,r)}},background:(e,t)=>{let r=gt(t);if(e)return k(e)&&e.includes("gradient")?{background:jc(e,r)}:{background:De(e,r)}},backgroundColor:(e,t)=>{let r=gt(t);if(e)return{backgroundColor:De(e,r)}},backgroundImage:(e,t,r,n)=>{let o=gt(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:Tg(e,o)}},textStroke:e=>({WebkitTextStroke:Eg(e)}),outline:e=>({outline:cr(e)}),outlineOffset:(e,t)=>ne("outlineOffset",e,t),border:e=>({border:cr(e)}),borderColor:(e,t)=>{let r=gt(t);if(e)return{borderColor:De(e,r)}},borderTopColor:(e,t)=>{let r=gt(t);if(e)return{borderTopColor:De(e,r)}},borderBottomColor:(e,t)=>{let r=gt(t);if(e)return{borderBottomColor:De(e,r)}},borderLeftColor:(e,t)=>{let r=gt(t);if(e)return{borderLeftColor:De(e,r)}},borderRightColor:(e,t)=>{let r=gt(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=gt(t);if(e)return{boxShadow:Og(e,r)}},boxShadow:(e,t)=>{if(!k(e))return;let[r,n]=e.split("!importan"),o=gt(t),s=n?" !important":"";return{boxShadow:Fc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Fc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:cr(e)})};var Ei={transition:e=>({transition:Pg(e)}),transitionDuration:e=>({transitionDuration:Dc(e)}),transitionDelay:e=>({transitionDelay:Dc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Pt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};I();var Gg={flow:(e,t)=>{let r=t.reverse;if(!k(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 Xg={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 Se={...zg,...Wg,...Ug,...Hg,...qg,...Kg,...Ei,...Gg,...Xg};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"]);I();var G$=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,X$=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=tt(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(G$),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},U_=(e,t,r)=>({[e]:tt(t,r)}),Oi=(e,t,r)=>{let n=`&${e}`,o=tt(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}},Yg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return T(r)?r.call(t,t):!!r},Y$=(e,t,r)=>{let n=e.slice(1),o=Yg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return tt(t,r)},J$=(e,t,r)=>({[e]:t}),Z$=(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=Yg(n,r);s!==void 0&&(o=s)}if(o)return tt(t,r)},Q$=(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=Yg(n,r);s!==void 0&&(o=s)}if(!o)return tt(t,r)},Jg=(e,t)=>tt(e,t),Zg={"@":X$,":":Oi,"[":Oi,"*":Oi,"+":Oi,"~":Oi,"&":U_,">":U_,$:Y$,"-":J$,".":Z$,"!":Q$};var Qg=wr(),H_=(e,t,r)=>{let n=t?.context?.designSystem;n&&Oe(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,Jg(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=T(c)?c(t,t.state,t.context):c;u&&i(a,u),!Qg&&_(o[a])&&(o[a].label=a)}else if(Se[a]){let c=de(l,t);$(c)&&(c=c.reduce((d,f)=>ye(d,f),{}));let u=Se[a](c,t,t.state,t.context);$(u)&&(u=u.reduce((d,f)=>ye(d,f),{})),u&&i(a,u),!Qg&&_(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}),!Qg&&_(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&we()}},q_=(e,t)=>{let r={};for(let n in e){let o=Zg[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"?Ge(r[i],s[i]):r[i]=s[i])}}return r},tt=(e,t,r={unpack:!0})=>{let[n,o]=H_(e,t,r),s=q_(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fs(n,s);n._selectors=s}return n},eI=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};I();var K_=e=>{if(_(e))return tt(e,e)},tI=(e,t)=>{let r=K_(e);return typeof t=="function"?t(r):$r(r)};I();function Y_(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 rI(...e){return Y_(this,"warn",e),Xs.apply(this,e)}function nI(...e){return Y_(this,"error",e),an.apply(this,e)}var G_={update:Ci,remove:Ai,getDB:Qs,getQuery:ei,getRootData:qs,getChildren:Vs,getPath:zs,nextElement:Ys,previousElement:Js,verbose:Jn,warn:rI,error:nI,variables:Zs,spotByPath:Bs,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:Hs,getRootState:Us,getRootContext:Ks,getContext:Gs,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)}},X_=new WeakMap;function oI(e){if(!e)return G_;let t=X_.get(e);if(t)return t;t=Object.create(G_);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return X_.set(e,t),t}function Ti(e){let t=oI(e.context);Object.setPrototypeOf(e,t)}I();qn();var sI=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},mt=(e,t)=>{if(je(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&&je(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;for(;s?.parent&&je(s.parent);)s=s.parent;return 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"&&sI(t,o,n[o])};var J_=function(e,t,r){return e.state=tm(e,t,r),e.state},tm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return mt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",iI(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=at({value:o});return s.__element=e,t?.state&&(s.parent=t.state),mt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!je(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=at({...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)),mt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return je(o)?(o.__element=e,o):t?.state||{}};function em(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 iI(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?em(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?em(o,s):o??{}}let n=em(r.state,e);if(n&&typeof n=="object"&&!je(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 eS=(e,t)=>{if(!e)return Q_;let r=lI(e,t);return!r||!r.state?Q_:uI(r.state)},tS=()=>jn()!=null,aI=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<aI&&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 cI={get(e,t){return e[t]}},Z_=new WeakMap,uI=e=>{let t=Z_.get(e);return t||(t=new Proxy(e,cI),Z_.set(e,t)),t},Q_=new Proxy(Object.create(null),{get(){},has(){return!1}});I();var fI=["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"],zc={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"]},nS=["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"],om=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,Fr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||om(t)||zc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(zc,e)?zc[e].includes(t):!1,sm=e=>{if(!k(e))return!1;let t=e.toLowerCase();return nS.includes(t)},dI=(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=Fr(e,o),i=sm(o);if(qe(t[o])&&(s||i)){let a=om(o)||o;n[a]=t[o]}}return n},pI=(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},Ir=(e,t)=>{let r=e.call("exec",t,e);if(r)return k(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},rm=(e,t)=>{let r=(e.preSrc||"")+(Ir(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},nm={src:e=>rm(e,e.src),href:e=>Ir(e,e.href),action:e=>Ir(e,e.action),poster:e=>rm(e,e.poster),data:e=>Ir(e,e.data)},im=e=>{let t=e.tag||"div",r={};for(let n in nm)if(e[n]!==void 0&&Fr(t,n)){let o=nm[n](e);o!==void 0&&(r[n]=o)}return r},rS=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return T(r)?r.call(t,t):!!r},hI=(e,t,r)=>{if(e==="$"){let o=rS(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=rS(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},gI=new Set(["$",".","!"]),mI=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(hI(a,l,u))return T(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!gI.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=Fr(t,c),d=sm(c);if(!u&&!d)continue;let f=om(c)||c;o(f,a[c],i,l)}}return n};var yI=1;function ao(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function bI(e){return e.charAt(2).toLowerCase()+e.slice(3)}function xI(e){return e.toLowerCase()}function cm(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]=cm(o,s):r[n]=s}return r}function $t(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||`_${yI++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=$t);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})}}ki(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]=cm(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],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=cm(b,y):x&&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=sl(g,p)}else p&&(s.scope=p);if(e.if!==void 0&&(s.if=e.if),Ti(s),vI(s,t,e),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):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"&&um(s,{if:e.if}),s;s.tag||(s.tag=bn(s)),jr("Init",s,n);let h=s.node=xn(s);if(!h)return s;jr("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),um(s,e),fm(s),sS(s),iS(s,n);try{aS(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?`
|
|
36
|
+
}`,no=(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=>Tt(d,r)||d):Tt(s,r)||s;return tc(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),Uw=e=>Object.keys(e).map(r=>no(r,e[r].value)),dg=(e,t,r)=>{if(t&&t.isVariable){let s=Tt(t.url,r)||t.url;return li(s)?ci(s):fn(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return no(e,t,r).map(fg);let o=Array.isArray(t.url)?t.url.map(s=>Tt(s,r)||s):Tt(t.url,r)||t.url;return fn(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},rc=(e,t)=>Object.keys(e).map(n=>dg(n,e[n].value,t));I();I();I();var ui={};K(ui,{animation:()=>a_,breakpoints:()=>s_,class:()=>d_,color:()=>Jw,devices:()=>i_,document:()=>t$,font:()=>qw,fontFace:()=>Xw,fontFamily:()=>Gw,fontFamilyTypes:()=>Kw,gradient:()=>Qw,grid:()=>f_,icons:()=>r_,media:()=>Yw,reset:()=>n$,semanticIcons:()=>n_,sequence:()=>Tr,shadow:()=>t_,spacing:()=>Zw,svg:()=>l_,svgData:()=>c_,templates:()=>u_,theme:()=>e_,timing:()=>o_,typography:()=>nc,unit:()=>Hw,vars:()=>p_});var Tr={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var Hw={default:"em"};var J2={browserDefault:16,base:16,type:"font-size",ratio:Tr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},nc=J2;var qw={};var Gw={},Kw={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Xw={};var Yw={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Q2={base:nc.base,type:"spacing",ratio:Tr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Zw=Q2;var Jw={},Qw={};var e_={};var t_={};var r_={},n_={};var e$={default:150,base:150,type:"timing",ratio:Tr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},o_=e$;var t$={};var s_={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},i_={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 a_={};var l_={},c_={};var u_={};var r$={},f_=r$;var d_={};var n$={},p_={};var pg={},hg={},oc=ui,sc={},ic=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in oc){let t=e.toLowerCase();sc[t]=oc[e];let r=ic(t);r!==t&&(sc[r]=oc[e]),t!==e&&(sc[e]=oc[e])}var ac={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:pg,cssMediaVars:hg,CSS_VARS:pg,CSS_MEDIA_VARS:hg,_scratchConfig:!0,...sc},h_=he(ac),ir={active:"0",0:ac},o$=e=>(qe(e)&&(ir.active=e),ir[e||ir.active]),fi=[],Oe=e=>{e&&e._scratchConfig&&fi.push(e)},we=()=>{fi.pop()},R=e=>fi.length?fi[fi.length-1]:ir[e||ir.active]||ac,gg=e=>{if(_(e))return ir.active="1",ir[1]=fe(e,he(h_)),e},s$=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],i$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],a$=e=>{for(let t of i$){let r;for(let n of t){let o=e[n];_(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)_(e[n])&&(e[n]=r)}},mg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:R(),o=he(!r&&n&&n._scratchConfig?n:h_);for(let i of s$)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,a$(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"},yg=(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=g_.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Rr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},g_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),lc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=g_.has(o)?"rem":o,i=(Dn(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(m_,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}))`}},bg=(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}))`},cc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},uc=(e,t)=>cc(e,t).map(r=>r/e),fc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=cc(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,x=bg(g+1,u,i,t),v={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};yg(v,t)})},m_=1.618,l$=(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(m_,2*n);return Math.max(o,s)},ft=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=l$(u,r,n),p=~~(f/r*100)/100,h=l+d,g=lc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};yg(m,e),s&&fc(m,e)}return e},y_=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=k(t)?t:ar[t],a=k(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=lc(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return yg(g,l),s&&fc(g,l),l},dc=(e="A",t)=>{let r=R(),{unit:n}=r;if(k(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(Ln.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+"-":""}${oi(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,v]=g.split("+"),w=`${y(x)} + ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes("*")){let[x,v]=g.split("*"),w=`${y(x)} * ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes("-")){let[x,v]=g.split("-"),w=`${y(x)} - ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${f}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=o?o[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",o,g)},xg=(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:dc(i,t)}).join("")},lr=(e,t,r,n)=>{if(typeof e!="string")return R().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=Rr(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=xg(e,r):e=dc(e,r),{[t]:n?`${n}(${e})`:e}},vg=(e,t)=>ar[e-t],pc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=vg(t,o);return r[s]})};I();var b_=(e,t)=>{let r=R(),{cssVars:n}=r;te(e.value)||(n[e.var]=e.value)},hc=(e,t,r)=>{let n=R(),{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]=uc(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})`},x_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pr=(e,t={})=>{let r=R(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=x_.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||hc(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"})`)}},dn=(e,t,r={})=>{let n=R(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=x_.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}`]={}),hc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Dn(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}};I();var w_=nn(),di=e=>{let t=R(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},c$=e=>{let t=e&&(e.default||e);if(!k(t))return w_&&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},{}):{}},u$=(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},v_=new Set,gc=(e,t)=>{let r=t&&t.default?t.default:t;if(!k(r))return w_&&!v_.has(e)&&(v_.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=c$(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,c=u$(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=p$(c),c},f$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",d$=new RegExp(`<(${f$})\\b([^>]*?)\\s*/>`,"g"),p$=e=>e.replace(d$,"<$1$2></$1>");var mi={};K(mi,{appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyDocument:()=>Tc,applyHeadings:()=>kg,applyReset:()=>Ic,applySpacingSequence:()=>Cc,applyTimingSequence:()=>Oc,applyTypographySequence:()=>_c,checkIfBoxSize:()=>kc,getColor:()=>me,getFontFamily:()=>wc,getFontSizeByKey:()=>Sc,getMediaColor:()=>De,getMediaTheme:()=>Rt,getShadow:()=>Ec,getSpacingBasedOnRatio:()=>Kt,getSpacingByKey:()=>Te,getTheme:()=>yc,getTimingByKey:()=>dt,getTimingFunction:()=>Pt,runThroughMedia:()=>Sg,setColor:()=>hn,setFont:()=>vc,setFontFamily:()=>hi,setGradient:()=>gn,setMediaTheme:()=>xc,setSVG:()=>gi,setShadow:()=>mn,setSvgIcon:()=>Pc,setTheme:()=>bc,splitSpacedValue:()=>Ac});I();var me=(e,t,r)=>{let n=r||R();if(!k(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($(e))[o,s,i]=e;else{let d=Or(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=un(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||R();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!k(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let o;if($(e))o=e[0];else{let c=Or(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=_(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},hn=(e,t,r)=>{let n=R();if(k(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&&(k(y)||$(y)||_(y))&&(n.color[m[0]]=hn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",v=m[2];v&&(b=un(b,v)),e=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let v=or(m[0]);v&&v.length>=3?e=`rgba(${un(v.slice(0,3).join(", "),b)}, ${x})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if($(e)&&(e={"@light":e[0],"@dark":e[1]}),_(e)){let g={};for(let m in e)g[m]=hn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,x={};for(let v in g){if(v.charCodeAt(0)!==64)continue;let w=v.slice(1),A=g[v],T=A&&(A.value||A);!T||typeof T!="string"||(x[w]=T,(w==="light"||b===void 0)&&(b=T))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let v in x){let w=`[data-theme="${v}"]`;if(n.cssMediaVars[w]||(n.cssMediaVars[w]={}),n.cssMediaVars[w][y]=x[v],v==="light"||v==="dark"){let A=`@media (prefers-color-scheme: ${v})`;n.cssMediaVars[A]||(n.cssMediaVars[A]={}),n.cssMediaVars[A][y]=x[v]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(k(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(k(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Or(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(k(m)||$(m)||_(m))&&(n.color[g.name]=hn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=un(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}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}},gn=(e,t,r)=>{let n=R();if(k(e)&&xe(e)&&(e=me(e.slice(2))),$(e))return{"@light":gn(e[0],t,"light"),"@dark":gn(e[0],t,"dark")};if(_(e)){let i={};for(let a in e)i[a]=gn(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}};I();var h$=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"]),__=["color","Color","background","Background","fill","Fill","stroke","Stroke"],g$=e=>{for(let t=0;t<__.length;t++)if(e.includes(__[t]))return!0;return!1},mc=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},pi=e=>(e.value||(e.value=mc(e)),e.value),yc=(e,t)=>{let r=R();if(r.useVariable)return Rt(e,t);let n=r.theme;if(k(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return pi(i);e=[o,s||t]}}if(te(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return pi(a[s]);if(i&&i[s])return pi(i[s]);if(l&&l[s])return pi(l[s])}else if(_(e))return mc(e)},m$=(e,t,r)=>{if(_(t))e.variants.inverse.value=mc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},y$=(e,t,r,n)=>{let o=yc(r);n[`&:${t}`]=o,_(r)&&!r.value&&(r.value=o)},b$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return y$(e,o,s,t),e}),e):void 0},x$=(e,t,r,n)=>{let o=yc(r);n[`@media (prefers-color-scheme: ${t})`]=o,_(r)&&!r.value&&(r.value=o)},v$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&x$(e,o,s,t),o==="inverse"&&m$(e,s,t),e}),e):void 0},w$=(e,t)=>{let r=R(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return k(i)?n[s]=r.theme[i]:pi(n[s]),e}),e):void 0},bc=(e,t)=>{let r=R();if(r.useVariable)return xc(e,t);let{state:n,media:o,helpers:s}=e,i=mc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return b$(e,i),v$(e,i),w$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var wg=(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===":")&&g$(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&&k(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!h$.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>te(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)te(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wg(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)te(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wg(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 x=`[data-theme="${m}"]`;if(o[x]||(o[x]={}),o[x][p]=b,m==="dark"||m==="light"){let v=`@media (prefers-color-scheme: ${m})`;o[v]||(o[v]={}),o[v][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},xc=(e,t,r,n)=>{let o=R(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(te(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&te(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wg(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]=xc(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(k(e)&&xe(e)){let c=o.theme[e.slice(2)];return Rt(c,n)}return i},_g=e=>{let t=R(),r={};for(let n in e){let o=n.slice(0,1);if(te(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=_g(e[n]):o==="."&&(r[`&${n}`]=_g(e[n]))}else r[n]=e[n]}return r},k_=(e,t)=>{let r=t.shift();return e[r]?k_(e[r],t):e},S_=(e,t)=>$(t)?k_(e,t):k(t)&&e[t]?e[t]:e;var Rt=(e,t)=>{let r=R();if(k(e)&&xe(e)&&(e=Rt(e.slice(2))),!e||!k(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=$(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=S_(s,o):s&&t&&(s=S_(s,t)),_g(s)};I();I();var vc=(e,t)=>{let r=R(),n=`--font-${t}`;if(!e||$(e)&&!e[0])return;let o;if(e.isVariable){let s=Tt(e.url,r.files)||e.url;li(s)?o=ci(s):o=fn(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=no(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Tt(i,r.files)||i):Tt(e.url,r.files)||e.url;o=fn(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},wc=(e,t)=>{let r=R(),{fontFamily:n}=r;return ro(t||n,e)},hi=(e,t)=>{let r=R(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),_(s)&&(s=ln(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};I();var Sg=e=>{let t=R(),{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,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){ye(i,{sequence:{},scales:{},vars:{}}),ft(i),dn(e,o);continue}ye(i,{sequence:{},scales:{},templates:{},vars:{}}),ft(i),dn(e,o)}},kg=e=>{let t=R();if(e.h1Matches){let r=e.unit,n=pc(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}}}},_c=()=>{let e=R(),{typography:t}=e;ft(t),kg(t),Pr(t),Sg(t)},Sc=e=>{let t=R(),{typography:r}=t;return lr(e,"fontSize",r)};I();I();var _$=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:{}}),ft(r),dn(e,t)}},kc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},Cc=()=>{let e=R(),{spacing:t}=e;ft(t),Pr(t),_$(t)},S$=e=>{let t=R(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:ft(e)},Te=(e,t="padding",r,n)=>{let o=S$(r);if(k(e)&&!n&&e.includes("(")){let i=Rr(e);n=i[0],e=i[1]}let s=n?[e]:ln(e);if($(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)}},Kt=(e,t,r,n)=>{let o=R(),{spacing:s}=o,i=r||e[t];if(!n&&k(i)&&i.includes("(")){let a=Rr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Te(i,t,a,n)}return Te(i,t,s,n)},Ac=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Ln.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(" ")};I();var mn=(e,t,r,n)=>{let o=R();if($(e))return{"@light":mn(e[0],t,"light"),"@dark":mn(e[1],t,"dark")};if(_(e)){let a={};for(let l in e)a[l]=mn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}k(e)&&!Gt.test(e)&&(e=cn(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=Te(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}},Ec=(e,t)=>{let r=R();if(t||(t=r.globalTheme),!k(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let[n]=$(e)?e:e.split(" "),s=r.shadow[n],i=_(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};I();var Oc=()=>{let e=R(),{timing:t}=e;ft(t),Pr(t)},Pt=e=>{let t=R(),{timing:r}=t;return r[e]||r[ni(e)]||e},dt=(e,t="timing")=>{let r=R(),{timing:n}=r;return lr(e,t,n)};I();var Tc=()=>{let e=R(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ye(t,{theme:n.document,fontFamily:ro(r),fontSize:o.base,lineHeight:o.lineHeight})};I();var Ag={document:pe},gi=(e,t)=>{let r=R();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?gc(t,e):e},Rc=(e,t=Ag)=>{let r=R(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];A_(n,t)},Pc=(e,t)=>{let r=R();return r.useIconSprite&&!r.semanticIcons?.[t]?gi(e,t):e},$c=(e,t=Ag)=>{let r=R(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];A_(n,t)},Cg=(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},k$=(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},C_=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},A_=(e,t=Ag)=>{let r=R(),n=t.document||pe;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),di(e);let o=n.querySelector("#svgSprite"),s=di(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=k$(n,s);if(o)if(a)C_(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Cg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Cg(n);l&&l.nodeType&&(C_(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Cg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};I();var Ic=(e={})=>{let t=R(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Rt("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?Rt("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}})}};I();var C$=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),A$=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),E$=e=>C$.has(e),cr=e=>{let t=e+"";if(Gt.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(E$(o)||/^\d/.test(o)||o==="0")return o;let s=me(o);if(sr(s))return s;let i=Te(o,"border");return i&&i.border?i.border:o}).join(" ")},Eg=e=>Gt.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(" "),Og=(e,t)=>Ec(e,t),Fc=(e,t)=>Gt.test(e)?e:cn(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 _(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=Te(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),jc=(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=cn(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||A$.has(u)||u==="transparent"||Gt.test(u))return u;let d=me(u);return sr(d)?d:u}).join(" ")));return n+a.join(", ")+s},Tg=(e,t)=>{let r=R();return e.split(", ").map(n=>xe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?jc(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Or(n)?`url(${n})`:n).join(" ")},Rg=e=>k(e)&&e.split(" ").map(t=>Te(t,"gap").gap).join(" "),E_=e=>{let t=e.split(" ");return t.length?t.map(r=>xe(r)?`var(${r})`:r.length<3||r.includes("ms")?dt(r).timing||r:Pt(r)?Pt(r):r).join(" "):e},Dc=(e,t,r)=>{if(k(e))return e.split(",").map(n=>dt(n).timing||n).join(",")},Pg=e=>{let t=e.split(",");if(t.length)return t.map(E_).join(",")};function ve(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let s;if(k(o)){if(o.includes("(")){let l=Rr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=kc(e);!i&&a&&!n.ratio&&(o=Ac(o))}return n.ratio?Kt(r,e,o,s):Te(o,e,void 0,s)}var re=(e,t=null,r)=>ve(e,t,r,{ratio:!0}),Lc=(e,t,r)=>{if(k(e))return{borderRadius:e.split(" ").map((n,o)=>Kt(t,r,n)[r]).join(" ")}};I();var O$=(e,t)=>{let r=R(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},pt=e=>e,$g={color:hn,gradient:gn,font:vc,fontFamily:hi,fontfamily:hi,theme:bc,icons:Pc,semanticIcons:pt,semanticicons:pt,svg:gi,svgData:pt,typography:pt,shadow:mn,spacing:pt,media:pt,grid:pt,class:pt,timing:pt,reset:pt,unit:pt,animation:pt,vars:O$},O_=(e,t,r)=>{let n=R(),o=ic(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=$g[o]||$g[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")},T_=(e,t)=>{let r=R(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=_(t[s])||$(t[s])?1:0,l=_(t[i])||$(t[i])?1:0;return a-l}).forEach(s=>{try{return O_(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},Ig=(e,t)=>{let r=t||R();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},T$={},oo=(e,t=T$)=>{let r=t.config||R(),{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=gg(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 x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=x&&x.defaultView||(typeof window<"u"?window:null),w=x&&(r.themeRoot||x.documentElement);if(w&&typeof w.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")w.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?w.style.colorScheme=r.globalTheme:w.style.colorScheme="light dark";else if(v&&v.matchMedia){let F=V=>{w.setAttribute("data-theme",V.matches?"dark":"light")},H=v.matchMedia("(prefers-color-scheme: dark)");if(F(H),w.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=F;try{H.addEventListener("change",F)}catch{H.addListener(F)}}}else w.setAttribute("data-theme","light"),w.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let A=Object.keys(y),T=new Set(A);if(A.forEach(S=>{let F=S.toLowerCase();F!==S&&T.has(F)&&fe(y[F],y[S])}),A.map(S=>{let F=S.toLowerCase();if(!(F!==S&&T.has(F)))return T_(S,y[S])}),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{_c()}catch(S){r.verbose&&console.warn("Error applying typography sequence",S)}if(y.spacing)try{Cc()}catch(S){r.verbose&&console.warn("Error applying spacing sequence",S)}if(y.timing)try{Oc()}catch(S){r.verbose&&console.warn("Error applying timing sequence",S)}Tc();let E=Ic();return E&&(r.reset=E),r};var so=new Map,R$=null,jg=null,P$=null;function Nc(e){e.batchAtomicCss&&(jg=e.batchAtomicCss),e.compoundCssClass&&(P$=e.compoundCssClass)}var $$=new Set;function I_(e){try{let t=R();t&&(t.document=e)}catch{}e&&$$.add(e)}function Dg(){try{let e=R();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var I$={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function yn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Mc(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 F$(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Mc(t)}function R_(e,t,r){let n=(r?r+"":"")+e+":"+t,o=so.get(n),s=o?null:yn(e);if(!o){let a=I$[e]||Mc(e),l=F$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,so.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||yn(e)}:${t}}`;return ht(i),o}var P_=new WeakMap;function ht(e,t){let r=F_(t);if(!r)return;let n=P_.get(r);if(n||(n=new Set,P_.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var $_=new WeakMap;function F_(e){let t=e||Dg();if(!t||!t.head)return null;let r=$_.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 $_.set(t,o),R$=o,o}var j$=8;function $r(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]):jg?(n||(n=[]),n.push(l,String(c)),o++):s.push(R_(l,String(c),r)))}if(n&&o>=j$){let l=n.join("\0"),c=jg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
|
|
37
|
+
`);for(let h=0;h<p.length;h++)p[h]&&ht(p[h])}s.push(d)}else if(n)for(let l=0;l<n.length;l+=2)s.push(R_(n[l],n[l+1],r));let a=[];for(let l=0;l<i.length;l++)a.push(D$(i[l][0],i[l][1],r));return s.concat(a).join(" ").trim()}var Fg=new Map;function D$(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=so.get(n);if(o){let f=Fg.get(o);if(f)for(let p=0;p<f.length;p++)ht(f[p]);return o}o=r?`_${r}_c${Mc(n)}`:`_c${Mc(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+=`${yn(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),ht(f)}for(let f of i){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),ht(h)}return Fg.set(o,u),so.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),ht(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),ht(h)}return Fg.set(o,u),so.set(n,o),o}function _e(e){if(F_(),typeof e=="string"){ht(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:yn(l);a+=`${c}:${i[l]};`}ht(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:yn(s);ht(`${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:yn(a);s+=`${c}:${l};`}}if(s&&ht(`${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)_e({[`${n} ${c}`]:o[c]});for(let c of a)_e({[c]:{[n]:o[c]}})}}}}function yi(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${yn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ht(`@keyframes ${e}{${r}}`),e}function j_(){return so.size}I();var Lg="http://www.w3.org/2000/svg",vi=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"]),L$=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 bi(e){return L$.has(e)||vi.has(e)}function wi(e){return vi.has(e)}function bn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&bi(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]),bi(o)&&!n.has(o)?o:"div"}var D_={};function xi(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(wi(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Lg)return r.createElementNS(Lg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function xn(e){let t=e.tag=bn(e),r=wi(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Lg)?"svg:"+t:t,n=e?.context?.document||globalThis.document,o=D_[r];if(o||(o=D_[r]=xi(t,e)),!o)return null;let s=n&&o.ownerDocument!==n?xi(t,e):o.cloneNode(!0);return t==="string"&&(s.nodeValue=e.text||""),s}var Ze=new Set(["extends","children","content","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","__name","__ref","__hash","__text","parent","node"]),Mg={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),L_=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),_i=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 Ng=new WeakMap,M$={passive:!0},N$={passive:!0,capture:!0},Bg=(e,t)=>L_.has(e)?t?N$:M$:t||!1;function N_(e){let t=Ng.get(e);return t||(t={handlers:new Map,installed:new Set},Ng.set(e,t)),t}function B$(e,t){let r=N_(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}},Bg(e,n))}function Bc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=N_(n);B$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function zc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Ng.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function M_(e){return _i.has(e)&&!vn.has(e)}function Si(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Oe(s);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{s&&we()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&we()};if(M_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Bc(e,n,i,a)}else n.addEventListener(e,i,Bg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(M_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;zc(e,n,a)}else n.removeEventListener(e,i,Bg(e,!1))})}function B_(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 ki(e,t,r){let n=B_(t);if(!n.length)return;let o=(e.context||r?.context||{}).components||{};for(let s=0;s<n.length;s++){let i=z_(n[s],o);i&&i!==t&&V_(e,i,r,new Set([t]))}}function z_(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 V_(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=B_(t);if(o.length){let s=(e.context||r?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=z_(o[i],s);a&&V_(e,a,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]=W_(e[s],i):e[s]=i}}function W_(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]=W_(o,s):r[n]=s}return r}qn();function Ci(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(br(()=>{if(e.state&&je(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(Ze.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&&$t(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 Ct("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 Ai(){wn(this)}I();I();var z$=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],V$=["none","forwards","backwards","both"],W$=["normal","reverse","alternate","alternate-reverse"],U$=["running","paused"],H$=e=>/^[\d.]+m?s$/.test(e),q$=0,zg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(_(e)){let o=`smbls-anim-${q$++}`;return{animationName:yi(o,e)}}let n=r&&r[e];return _(n)?yi(e,n):e},G$=(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:H$(d)?s.push(d):z$.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):W$.includes(d)?l=d:V$.includes(d)?c=d:U$.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},Vg={animation:(e,t)=>{if(k(e)&&e.includes(" ")){let r=G$(e,t);return{animationName:zg(r.name||e,t),animationDuration:r.durations[0]||dt(t.animationDuration||"A").timing,animationDelay:r.durations[1]||dt(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Pt(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:zg(e,t),animationDuration:dt(t.animationDuration||"A").timing,animationDelay:dt(t.animationDelay||"0s").timing,animationTimingFunction:Pt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:zg(e,t)}),animationDuration:e=>({animationDuration:dt(e).timing}),animationDelay:e=>({animationDelay:dt(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Pt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};I();var Wg={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>re("height",e,t),width:(e,t)=>re("width",e,t),boxSizing:e=>$e(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("height",t),...ve("width",r||t)}},inlineSize:(e,t)=>re("inlineSize",e,t),blockSize:(e,t)=>re("blockSize",e,t),minWidth:(e,t)=>re("minWidth",e,t),maxWidth:(e,t)=>re("maxWidth",e,t),widthRange:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("minWidth",t),...ve("maxWidth",r||t)}},minHeight:(e,t)=>re("minHeight",e,t),maxHeight:(e,t)=>re("maxHeight",e,t),heightRange:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("minHeight",t),...ve("maxHeight",r||t)}},size:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...re("inlineSize",t),...re("blockSize",r||t)}},minBlockSize:(e,t)=>re("minBlockSize",e,t),minInlineSize:(e,t)=>re("minInlineSize",e,t),maxBlockSize:(e,t)=>re("maxBlockSize",e,t),maxInlineSize:(e,t)=>re("maxInlineSize",e,t),minSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("minInlineSize",t),...ve("minBlockSize",r||t)}},maxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("maxInlineSize",t),...ve("maxBlockSize",r||t)}},borderWidth:(e,t)=>re("borderWidth",e,t),padding:(e,t)=>re("padding",e,t),scrollPadding:(e,t)=>re("scrollPadding",e,t),paddingInline:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("paddingInlineStart",t),...ve("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("paddingBlockStart",t),...ve("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>re("paddingBlockStart",e,t),paddingBottom:(e,t)=>re("paddingBlockEnd",e,t),paddingLeft:(e,t)=>re("paddingInlineStart",e,t),paddingRight:(e,t)=>re("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>re("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>re("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>re("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>re("paddingInlineEnd",e,t),margin:(e,t)=>re("margin",e,t),marginInline:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("marginInlineStart",t),...ve("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!k(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...ve("marginBlockStart",r),...ve("marginBlockEnd",n||r)}},marginTop:(e,t)=>re("marginBlockStart",e,t),marginBottom:(e,t)=>re("marginBlockEnd",e,t),marginLeft:(e,t)=>re("marginInlineStart",e,t),marginRight:(e,t)=>re("marginInlineEnd",e,t),marginInlineStart:(e,t)=>re("marginInlineStart",e,t),marginInlineEnd:(e,t)=>re("marginInlineEnd",e,t),marginBlockStart:(e,t)=>re("marginBlockStart",e,t),marginBlockEnd:(e,t)=>re("marginBlockEnd",e,t),gap:e=>({gap:Rg(e)}),columnGap:(e,t)=>Kt(t,"columnGap",e),rowGap:(e,t)=>Kt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!k(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(!k(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Lc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Lc(e??t.round,t,"borderRadius")};var Ug={fontSize:e=>Sc(e)||e,fontFamily:e=>({fontFamily:wc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var Hg={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 qg={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Te(r,"k").k).join(" ")}},left:e=>Te(e,"left"),top:e=>Te(e,"top"),right:e=>Te(e,"right"),bottom:e=>Te(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Te(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=>Te(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};I();var gt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},Gg={theme:(e,t)=>{if(e)return t.themeModifier?Rt(e,`@${t.themeModifier}`):Rt(e)},color:(e,t)=>{let r=gt(t);if(e)return{color:De(e,r)}},background:(e,t)=>{let r=gt(t);if(e)return k(e)&&e.includes("gradient")?{background:jc(e,r)}:{background:De(e,r)}},backgroundColor:(e,t)=>{let r=gt(t);if(e)return{backgroundColor:De(e,r)}},backgroundImage:(e,t,r,n)=>{let o=gt(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:Tg(e,o)}},textStroke:e=>({WebkitTextStroke:Eg(e)}),outline:e=>({outline:cr(e)}),outlineOffset:(e,t)=>re("outlineOffset",e,t),border:e=>({border:cr(e)}),borderColor:(e,t)=>{let r=gt(t);if(e)return{borderColor:De(e,r)}},borderTopColor:(e,t)=>{let r=gt(t);if(e)return{borderTopColor:De(e,r)}},borderBottomColor:(e,t)=>{let r=gt(t);if(e)return{borderBottomColor:De(e,r)}},borderLeftColor:(e,t)=>{let r=gt(t);if(e)return{borderLeftColor:De(e,r)}},borderRightColor:(e,t)=>{let r=gt(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=gt(t);if(e)return{boxShadow:Og(e,r)}},boxShadow:(e,t)=>{if(!k(e))return;let[r,n]=e.split("!importan"),o=gt(t),s=n?" !important":"";return{boxShadow:Fc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Fc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:cr(e)})};var Ei={transition:e=>({transition:Pg(e)}),transitionDuration:e=>({transitionDuration:Dc(e)}),transitionDelay:e=>({transitionDelay:Dc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Pt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};I();var Kg={flow:(e,t)=>{let r=t.reverse;if(!k(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 Xg={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 Se={...Vg,...Wg,...Ug,...Hg,...qg,...Gg,...Ei,...Kg,...Xg};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"]);I();var K$=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,X$=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=tt(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(K$),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},U_=(e,t,r)=>({[e]:tt(t,r)}),Oi=(e,t,r)=>{let n=`&${e}`,o=tt(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}},Yg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},Y$=(e,t,r)=>{let n=e.slice(1),o=Yg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return tt(t,r)},Z$=(e,t,r)=>({[e]:t}),J$=(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=Yg(n,r);s!==void 0&&(o=s)}if(o)return tt(t,r)},Q$=(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=Yg(n,r);s!==void 0&&(o=s)}if(!o)return tt(t,r)},Zg=(e,t)=>tt(e,t),Jg={"@":X$,":":Oi,"[":Oi,"*":Oi,"+":Oi,"~":Oi,"&":U_,">":U_,$:Y$,"-":Z$,".":J$,"!":Q$};var Qg=wr(),H_=(e,t,r)=>{let n=t?.context?.designSystem;n&&Oe(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,Zg(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),!Qg&&_(o[a])&&(o[a].label=a)}else if(Se[a]){let c=de(l,t);$(c)&&(c=c.reduce((d,f)=>ye(d,f),{}));let u=Se[a](c,t,t.state,t.context);$(u)&&(u=u.reduce((d,f)=>ye(d,f),{})),u&&i(a,u),!Qg&&_(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}),!Qg&&_(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&we()}},q_=(e,t)=>{let r={};for(let n in e){let o=Jg[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},tt=(e,t,r={unpack:!0})=>{let[n,o]=H_(e,t,r),s=q_(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fs(n,s);n._selectors=s}return n},eI=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};I();var G_=e=>{if(_(e))return tt(e,e)},tI=(e,t)=>{let r=G_(e);return typeof t=="function"?t(r):$r(r)};I();function Y_(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 rI(...e){return Y_(this,"warn",e),Xs.apply(this,e)}function nI(...e){return Y_(this,"error",e),an.apply(this,e)}var K_={update:Ci,remove:Ai,getDB:Qs,getQuery:ei,getRootData:qs,getChildren:zs,getPath:Vs,nextElement:Ys,previousElement:Zs,verbose:Zn,warn:rI,error:nI,variables:Js,spotByPath:Bs,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:Hs,getRootState:Us,getRootContext:Gs,getContext:Ks,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)}},X_=new WeakMap;function oI(e){if(!e)return K_;let t=X_.get(e);if(t)return t;t=Object.create(K_);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return X_.set(e,t),t}function Ti(e){let t=oI(e.context);Object.setPrototypeOf(e,t)}I();qn();var sI=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},mt=(e,t)=>{if(je(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&&je(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;for(;s?.parent&&je(s.parent);)s=s.parent;return 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"&&sI(t,o,n[o])};var Z_=function(e,t,r){return e.state=tm(e,t,r),e.state},tm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return mt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",iI(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=at({value:o});return s.__element=e,t?.state&&(s.parent=t.state),mt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!je(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=at({...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)),mt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return je(o)?(o.__element=e,o):t?.state||{}};function em(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 iI(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?em(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?em(o,s):o??{}}let n=em(r.state,e);if(n&&typeof n=="object"&&!je(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 eS=(e,t)=>{if(!e)return Q_;let r=lI(e,t);return!r||!r.state?Q_:uI(r.state)},tS=()=>jn()!=null,aI=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<aI&&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 cI={get(e,t){return e[t]}},J_=new WeakMap,uI=e=>{let t=J_.get(e);return t||(t=new Proxy(e,cI),J_.set(e,t)),t},Q_=new Proxy(Object.create(null),{get(){},has(){return!1}});I();var fI=["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"],Vc={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"]},nS=["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"],om=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,Fr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||om(t)||Vc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Vc,e)?Vc[e].includes(t):!1,sm=e=>{if(!k(e))return!1;let t=e.toLowerCase();return nS.includes(t)},dI=(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=Fr(e,o),i=sm(o);if(qe(t[o])&&(s||i)){let a=om(o)||o;n[a]=t[o]}}return n},pI=(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},Ir=(e,t)=>{let r=e.call("exec",t,e);if(r)return k(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},rm=(e,t)=>{let r=(e.preSrc||"")+(Ir(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},nm={src:e=>rm(e,e.src),href:e=>Ir(e,e.href),action:e=>Ir(e,e.action),poster:e=>rm(e,e.poster),data:e=>Ir(e,e.data)},im=e=>{let t=e.tag||"div",r={};for(let n in nm)if(e[n]!==void 0&&Fr(t,n)){let o=nm[n](e);o!==void 0&&(r[n]=o)}return r},rS=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},hI=(e,t,r)=>{if(e==="$"){let o=rS(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=rS(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},gI=new Set(["$",".","!"]),mI=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(hI(a,l,u))return O(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!gI.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=Fr(t,c),d=sm(c);if(!u&&!d)continue;let f=om(c)||c;o(f,a[c],i,l)}}return n};var yI=1;function ao(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function bI(e){return e.charAt(2).toLowerCase()+e.slice(3)}function xI(e){return e.toLowerCase()}function cm(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]=cm(o,s):r[n]=s}return r}function $t(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||`_${yI++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=$t);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})}}ki(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]=cm(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],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=cm(b,y):x&&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=sl(g,p)}else p&&(s.scope=p);if(e.if!==void 0&&(s.if=e.if),Ti(s),vI(s,t,e),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):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"&&um(s,{if:e.if}),s;s.tag||(s.tag=bn(s)),jr("Init",s,n);let h=s.node=xn(s);if(!h)return s;jr("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),um(s,e),fm(s),sS(s),iS(s,n);try{aS(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?`
|
|
38
38
|
`+g.stack.split(`
|
|
39
39
|
`).slice(0,6).join(`
|
|
40
|
-
`):"")}}if(hm(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&&Oe(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&we()}}if(jr("Create",s,n),jr("Complete",s,n),jr("Render",s,n),jr("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&Oe(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&we()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function vI(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&&!je(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,mt(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=je(l)?l:at(l),e.state.__element=e,e.state.root=e.state,mt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),mt(e,e.state);return}if(typeof i=="string"){if(e.state=oS(i,t),e.state&&typeof e.state=="object"&&!je(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}mt(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=at(a||{})}else e.state=at({...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,mt(e,e.state)}function am(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 oS(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?am(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?am(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=am(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 wI(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||ao(a)||Se[a]||Le&&Le.has(a)||Fr(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&&Oe(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&we()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function um(e,t){let r=e.__ref;if(wI(e),typeof e.text=="function"){let o=e.text,s=Ee(()=>{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=Zr.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=Ee(()=>{if(r.contentManaged)return;let i=Zr.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)&&!ao(o)&&!r.__exec[o]){if(Se[o]){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context),u=Se[i](c,e,e.state,e.context);u&&e.node?io(e.node,u):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{l&&we()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(Le&&Le.has(o)){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?io(e.node,{[i]:c}):e.node.style[i]="")}finally{l&&we()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=Ee(()=>{let i=e.context?.designSystem;i&&Oe(i);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{i&&we()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=Ee(()=>{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=Ee(()=>{let i=o(e,e.state,e.context);io(e.node,i)},{depth:r.path.length});r.__effects.push(s),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=Ee(()=>{try{let a=s(e,e.state,e.context);e.node&&io(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}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=Ee(()=>{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=Ee(()=>{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=Ee(()=>{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=Ee(()=>{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=Ee(()=>{let i=o(e,e.state,e.context),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=xn(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 hm(e,e.parent);fm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=bn(e)),jr("Init",e,{}),e.node||(e.node=xn(e)),!e.node)return;jr("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{um(e,t)}finally{t.if=l}fm(e),sS(e),iS(e,{}),aS(e,{}),hm(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||ao(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(Fr(a,o)&&!Se[o]&&!(Le&&Le.has(o))){let l=o,c=Ee(()=>{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)}}kI(e)}function fm(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),CI(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"&&io(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 io(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&&SI(e,r)}var _I=0;function SI(e,t){let r=`_ds${_I++}`;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} }
|
|
40
|
+
`):"")}}if(hm(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&&Oe(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&we()}}if(jr("Create",s,n),jr("Complete",s,n),jr("Render",s,n),jr("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&Oe(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&we()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function vI(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&&!je(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,mt(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=je(l)?l:at(l),e.state.__element=e,e.state.root=e.state,mt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),mt(e,e.state);return}if(typeof i=="string"){if(e.state=oS(i,t),e.state&&typeof e.state=="object"&&!je(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}mt(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=at(a||{})}else e.state=at({...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,mt(e,e.state)}function am(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 oS(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?am(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?am(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=am(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 wI(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"||Ze.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||ao(a)||Se[a]||Le&&Le.has(a)||Fr(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&&Oe(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&we()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function um(e,t){let r=e.__ref;if(wI(e),typeof e.text=="function"){let o=e.text,s=Ee(()=>{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=Jr.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=Ee(()=>{if(r.contentManaged)return;let i=Jr.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"&&!Ze.has(o)&&!ao(o)&&!r.__exec[o]){if(Se[o]){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context),u=Se[i](c,e,e.state,e.context);u&&e.node?io(e.node,u):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{l&&we()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(Le&&Le.has(o)){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?io(e.node,{[i]:c}):e.node.style[i]="")}finally{l&&we()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=Ee(()=>{let i=e.context?.designSystem;i&&Oe(i);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{i&&we()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=Ee(()=>{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=Ee(()=>{let i=o(e,e.state,e.context);io(e.node,i)},{depth:r.path.length});r.__effects.push(s),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=Ee(()=>{try{let a=s(e,e.state,e.context);e.node&&io(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}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=Ee(()=>{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=Ee(()=>{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 i="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Ee(()=>{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)}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=Ee(()=>{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=Ee(()=>{let i=o(e,e.state,e.context),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=xn(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 hm(e,e.parent);fm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=bn(e)),jr("Init",e,{}),e.node||(e.node=xn(e)),!e.node)return;jr("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{um(e,t)}finally{t.if=l}fm(e),sS(e),iS(e,{}),aS(e,{}),hm(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Ze.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||ao(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(Fr(a,o)&&!Se[o]&&!(Le&&Le.has(o))){let l=o,c=Ee(()=>{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)}}kI(e)}function fm(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),CI(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"&&io(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 io(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&&SI(e,r)}var _I=0;function SI(e,t){let r=`_ds${_I++}`;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} }
|
|
41
41
|
`}else u+=`${f.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${p};`}u&&(s+=`${l} { ${u} }
|
|
42
|
-
`),d&&(s+=d)}}s&&(o.textContent+=s)}function kI(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let h=e.context?.cases?.[o];if(h===void 0)return;u=typeof h=="function"?h.call(e,e):h}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=i?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let p=e.context?.designSystem;p&&Oe(p);try{if(f){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](e,e.state,e.context):s[m];if(y!=null)if(Se[m]){let b=Se[m](y,e,e.state,e.context);if(b){let x=Array.isArray(b)?b:[b];for(let v of x)v&&Object.assign(h,v)}}else Le&&Le.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(io(e.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{p&&we()}};t.__conditionalRunners.push(l);let c=Ee(l,{depth:t.path.length});t.__effects.push(c)}}var lm=new WeakSet;function CI(e){let{node:t}=e;if(!t)return;if(lm.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}lm.add(e);let r=e.context?.designSystem;r&&Oe(r);try{let n={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Je.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!ao(s)){if(Se[s]){let a=e[s],l=Se[s](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(Le&&Le.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(Se[c]){let d=Se[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!e.context?.designSystem?.media?.[s.slice(1)])){let u={};for(let f in l){let p=l[f];u[f]=typeof p=="string"&&!p.includes("!important")?p+" !important":p}let d=s.slice(1);n[`[data-theme="${d}"] &`]=u}else{let u=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let f=s.slice(1),p=e.context?.designSystem?.media?.[f]||e.context?.designSystem?.media?.[f];p&&(u=`@media ${p}`)}let d={};for(let f in l){let p=l[f];if(p&&typeof p=="object"&&!Array.isArray(p)){let h={};for(let m in p)if(Se[m]){let y=Se[m](p[m],e,e.state,e.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(h,b);else Object.assign(h,y)}else h[m]=p[m];let g=f.startsWith(":")?"":" ";if(u.includes(",")){let m=u.split(",").map(y=>`${y.trim()}${g}${f}`).join(", ");n[m]=h}else n[`${u}${g}${f}`]=h}else d[f]=p}Object.keys(d).length&&(n[u]=d)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=$r(n,null,e.context?.cssPrefix);s&&t.classList&&s.split(" ").forEach(a=>a&&t.classList.add(a));let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&we(),lm.delete(e)}}function sS(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=im(e);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Je.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!ao(o)&&!(Se[o]||Le&&Le.has(o))&&Fr(n,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=Zr(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function iS(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!ao(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return e.call(s,a)}}if(typeof n!="function")continue;let o=bI(r);vn.has(o)||Si(xI(o),e,n)}}function dm(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]=dm(o,s):r[n]=s}return r}function pm(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let s=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=e.childProps,a=e.childrenAs;for(let l=0;l<t.length;l++){let c=t[l],u=c;(typeof c=="string"||typeof c=="number")&&(c={text:c});let d=i;if(typeof i=="function")try{d=i(e,c)}catch{d=null}if(a==="state"){let h=u;(typeof u=="string"||typeof u=="number")&&(h={value:u,text:u}),c=d?{...d,state:h}:{state:h}}else d&&(c=dm(d,c));if(n&&!c.ignoreChildExtends)if(c.extends){let h=Array.isArray(c.extends)?c.extends:[c.extends],g=Array.isArray(n)?n:[n];c={...c,extends:[...g,...h]}}else c={extends:n,...c};let f=c?.key||`${l}`,p=$t(c,e,f,r);p?.node&&s.appendChild(p.node)}e.node.appendChild(s);return}if(typeof t=="string"){let o=oS(t,e);if(Array.isArray(o)){pm(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Je.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=dm(e.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};$t(s,e,o,r)}}}function aS(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Ee(()=>{let u=i(e,e.state,e.context);if(!l){l=!0;return}if(u===e.children)return;if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let p=e.childProps,h=[],g=new Map;for(let w=0;w<u.length;w++){let A=u[w],E=p;if(typeof p=="function")try{E=p(e,A)}catch{E=null}let O=E&&E.key||A&&A.key||`${w}`;h.push(O),g.set(O,{rawChild:A,childProps:E})}let m=new Set(h),y=a.__children.slice();for(let w of y)if(!m.has(w)){let A=e[w];A?.remove&&A.remove(),delete e[w]}let b=e.childExtends,v=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let w of h){let A=g.get(w),E=A.rawChild,O=e[w];if(O&&O.state){if(E&&typeof E=="object"){let D=O.state;if(typeof D.replace=="function")D.replace(E);else if(typeof D.update=="function"){for(let U in D)if(!(U==="__element"||U==="root"||U==="parent"||U==="update")&&!Object.prototype.hasOwnProperty.call(E,U))try{D[U]=void 0}catch{}D.update(E)}else for(let U in E)D[U]=E[U]}continue}let S=E;(typeof E=="string"||typeof E=="number")&&(S={value:E,text:E});let B=A.childProps,K=B?{...B,state:S}:{state:S};if(b&&!K.ignoreChildExtends)if(K.extends){let D=Array.isArray(K.extends)?K.extends:[K.extends],U=Array.isArray(b)?b:[b];K={...K,extends:[...U,...D]}}else K={extends:b,...K};let z=$t(K,e,w,t);z?.node&&v&&v.appendChild(z.node)}v&&v.childNodes.length&&e.node&&e.node.appendChild(v),a.__children=h;return}for(let p of[...a.__children]){let h=e[p];h?.remove&&h.remove(),delete e[p]}a.__children=[],pm(e,u,t)},{depth:a.path.length});a.__effects.push(c)}if(pm(e,r||n,t),r||n)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let l=i[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<i.length;d++){let f=i[d],p=f.charCodeAt(0);if(p>=65&&p<=90||Je.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let h=e[f];h!==void 0&&(u[f]=h,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||Je.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let l=e[i];if(!l.__ref){if(!l.extends&&!l.extend){let c=s[i]||s[`smbls.${i}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};$t(l,e,i,t)}}}function hm(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function jr(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Ct(n,t,r);let o="on"+e,s=t[o];if(typeof s=="function"){let i=t.context?.designSystem;i&&Oe(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&Ct("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{i&&we()}}return!0}var lS={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},cS={"gradient-blue-light":`linear-gradient(to right,
|
|
42
|
+
`),d&&(s+=d)}}s&&(o.textContent+=s)}function kI(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let h=e.context?.cases?.[o];if(h===void 0)return;u=typeof h=="function"?h.call(e,e):h}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=i?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let p=e.context?.designSystem;p&&Oe(p);try{if(f){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](e,e.state,e.context):s[m];if(y!=null)if(Se[m]){let b=Se[m](y,e,e.state,e.context);if(b){let x=Array.isArray(b)?b:[b];for(let v of x)v&&Object.assign(h,v)}}else Le&&Le.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(io(e.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{p&&we()}};t.__conditionalRunners.push(l);let c=Ee(l,{depth:t.path.length});t.__effects.push(c)}}var lm=new WeakSet;function CI(e){let{node:t}=e;if(!t)return;if(lm.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}lm.add(e);let r=e.context?.designSystem;r&&Oe(r);try{let n={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Ze.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!ao(s)){if(Se[s]){let a=e[s],l=Se[s](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(Le&&Le.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(Se[c]){let d=Se[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!e.context?.designSystem?.media?.[s.slice(1)])){let c={};for(let d in l){let f=l[d];c[d]=typeof f=="string"&&!f.includes("!important")?f+" !important":f}let u=s.slice(1);n[`[data-theme="${u}"] &`]=c}else{let c=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let d=s.slice(1),f=e.context?.designSystem?.media?.[d]||e.context?.designSystem?.media?.[d];f&&(c=`@media ${f}`)}let u={};for(let d in l){let f=l[d];if(f&&typeof f=="object"&&!Array.isArray(f)){let p={};for(let g in f)if(Se[g]){let m=Se[g](f[g],e,e.state,e.context);if(m)if(Array.isArray(m))for(let y of m)y&&Object.assign(p,y);else Object.assign(p,m)}else p[g]=f[g];let h=d.startsWith(":")?"":" ";if(c.includes(",")){let g=c.split(",").map(m=>`${m.trim()}${h}${d}`).join(", ");n[g]=p}else n[`${c}${h}${d}`]=p}else u[d]=f}Object.keys(u).length&&(n[c]=u)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=$r(n,null,e.context?.cssPrefix);s&&t.classList&&s.split(" ").forEach(a=>a&&t.classList.add(a));let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&we(),lm.delete(e)}}function sS(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=im(e);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Ze.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!ao(o)&&!(Se[o]||Le&&Le.has(o))&&Fr(n,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=Jr(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function iS(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!ao(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(i){return e.call(s,i)}}if(typeof n!="function")continue;let o=bI(r);vn.has(o)||Si(xI(o),e,n)}}function dm(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]=dm(o,s):r[n]=s}return r}function pm(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let o=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!o)return;let s=e.childProps,i=e.childrenAs;for(let a=0;a<t.length;a++){let l=t[a],c=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let u=s;if(typeof s=="function")try{u=s(e,l)}catch{u=null}if(i==="state"){let p=c;(typeof c=="string"||typeof c=="number")&&(p={value:c,text:c}),l=u?{...u,state:p}:{state:p}}else u&&(l=dm(u,l));if(n&&!l.ignoreChildExtends)if(l.extends){let p=Array.isArray(l.extends)?l.extends:[l.extends],h=Array.isArray(n)?n:[n];l={...l,extends:[...h,...p]}}else l={extends:n,...l};let d=l?.key||`${a}`,f=$t(l,e,d,r);f?.node&&o.appendChild(f.node)}e.node.appendChild(o);return}if(typeof t=="string"){let o=oS(t,e);if(Array.isArray(o)){pm(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Ze.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=dm(e.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};$t(s,e,o,r)}}}function aS(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Ee(()=>{let u=i(e,e.state,e.context);if(!l){l=!0;return}if(u!==e.children){if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let d=e.childProps,f=[],p=new Map;for(let b=0;b<u.length;b++){let x=u[b],v=d;if(typeof d=="function")try{v=d(e,x)}catch{v=null}let w=v&&v.key||x&&x.key||`${b}`;f.push(w),p.set(w,{rawChild:x,childProps:v})}let h=new Set(f),g=a.__children.slice();for(let b of g)if(!h.has(b)){let x=e[b];x?.remove&&x.remove(),delete e[b]}let m=e.childExtends,y=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let b of f){let x=p.get(b),v=x.rawChild,w=e[b];if(w&&w.state){if(v&&typeof v=="object"){let F=w.state;if(typeof F.replace=="function")F.replace(v);else if(typeof F.update=="function"){for(let H in F)if(!(H==="__element"||H==="root"||H==="parent"||H==="update")&&!Object.prototype.hasOwnProperty.call(v,H))try{F[H]=void 0}catch{}F.update(v)}else for(let H in v)F[H]=v[H]}continue}let A=v;(typeof v=="string"||typeof v=="number")&&(A={value:v,text:v});let T=x.childProps,E=T?{...T,state:A}:{state:A};if(m&&!E.ignoreChildExtends)if(E.extends){let F=Array.isArray(E.extends)?E.extends:[E.extends],H=Array.isArray(m)?m:[m];E={...E,extends:[...H,...F]}}else E={extends:m,...E};let S=$t(E,e,b,t);S?.node&&y&&y.appendChild(S.node)}y&&y.childNodes.length&&e.node&&e.node.appendChild(y),a.__children=f;return}for(let d of[...a.__children]){let f=e[d];f?.remove&&f.remove(),delete e[d]}a.__children=[],pm(e,u,t)}},{depth:a.path.length});a.__effects.push(c)}if(pm(e,r||n,t),r||n)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let l=i[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<i.length;d++){let f=i[d],p=f.charCodeAt(0);if(p>=65&&p<=90||Ze.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let h=e[f];h!==void 0&&(u[f]=h,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||Ze.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let l=e[i];if(!l.__ref){if(!l.extends&&!l.extend){let c=s[i]||s[`smbls.${i}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};$t(l,e,i,t)}}}function hm(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function jr(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Ct(n,t,r);let o="on"+e,s=t[o];if(typeof s=="function"){let i=t.context?.designSystem;i&&Oe(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&Ct("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{i&&we()}}return!0}var lS={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},cS={"gradient-blue-light":`linear-gradient(to right,
|
|
43
43
|
rgba(4, 116, 242, 1),
|
|
44
44
|
rgba(0, 48, 103, 1)
|
|
45
45
|
)`,"gradient-blue-dark":`linear-gradient(to right,
|
|
@@ -65,28 +65,28 @@ FROM ${a}${c}`},N2=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
|
|
|
65
65
|
#1E54F0 36%,
|
|
66
66
|
#8B4CCA 69%,
|
|
67
67
|
#C66894 100%
|
|
68
|
-
)`};var AI={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"}}}},EI={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},OI={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"}}},uS={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...AI,...EI,...OI,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var fS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var dS={ratio:1.618,subSequence:!0};var pS={SourceSans:[{url:""}]},hS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var gS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var mS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var yS={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ri={version:"0.0.1",color:lS,gradient:cS,theme:uS,typography:fS,spacing:dS,font:pS,fontFamily:hS,timing:yS,icons:gS,media:mS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var uo={};X(uo,{A:()=>Pk,AssetPicture:()=>jS,Audio:()=>MS,Avatar:()=>qk,B:()=>nk,Block:()=>bS,Box:()=>qc,Br:()=>ak,Button:()=>Fk,ButtonSet:()=>Mk,COMPONENTS:()=>co,Caption:()=>GS,Checkbox:()=>yk,CheckboxHgroup:()=>bk,Circle:()=>$S,CircleButton:()=>Dk,Clickable:()=>TS,Data:()=>sk,Dialog:()=>Bk,DialogFooter:()=>zk,DialogHeader:()=>Vk,Dropdown:()=>Gk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Jk,DropdownSiblingFocus:()=>Zk,FileIcon:()=>Ek,Flex:()=>vS,Focusable:()=>RS,FocusableComponent:()=>PS,Footnote:()=>rk,Form:()=>AS,Grid:()=>_S,Gutter:()=>kS,H1:()=>VS,H2:()=>zS,H3:()=>WS,H4:()=>US,H5:()=>HS,H6:()=>qS,Headline:()=>ek,Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk,Hoverable:()=>OS,Hr:()=>ik,I:()=>ok,Icon:()=>Ck,IconButton:()=>Nk,IconText:()=>Ak,Iframe:()=>ES,Img:()=>CS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS,Input:()=>gk,Italic:()=>ZS,KangorooButton:()=>Lk,Li:()=>lk,Link:()=>Um,Notification:()=>Qk,NumberInput:()=>mk,Ol:()=>uk,P:()=>KS,Picture:()=>FS,Radio:()=>xk,RadioHgroup:()=>vk,Range:()=>Kk,RouteLink:()=>$k,RouterLink:()=>Hm,SHAPES:()=>Uc,Select:()=>Ik,Shape:()=>vm,Span:()=>BS,SquareButton:()=>jk,Strong:()=>XS,Subhead:()=>tk,Svg:()=>DS,Text:()=>NS,Textarea:()=>Sk,TextareaWithButton:()=>kk,Theme:()=>IS,Title:()=>QS,Toggle:()=>wk,ToggleHgroup:()=>_k,Tooltip:()=>Wk,TooltipHidden:()=>Uk,TooltipParent:()=>Hk,U:()=>YS,Ul:()=>ck,Underline:()=>JS,Video:()=>LS,depth:()=>Hc,getSystemGlobalTheme:()=>Pi});var gm={};X(gm,{Block:()=>bS,Flex:()=>vS,Grid:()=>_S,Gutter:()=>kS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS});var bS={display:"block"},xS={display:"inline"},vS={display:"flex"},wS={display:"inline-flex"},_S={display:"grid"},SS={display:"inline-grid"},kS={boxSize:"C1"};var mm={};X(mm,{Img:()=>CS});I();var CS={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Ye(e);return t&&t.src||e.src},srcset:e=>{let t=Ye(e);return(t?si(t):"")||e.srcset}}};var ym={};X(ym,{Form:()=>AS});var AS={tag:"form"};var bm={};X(bm,{Iframe:()=>ES});var ES={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var xm={};X(xm,{Clickable:()=>TS,Focusable:()=>RS,FocusableComponent:()=>PS,Hoverable:()=>OS});var TI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},OS={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}}},TS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},RS={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},PS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:TI};var Sm={};X(Sm,{Picture:()=>FS});var _m={};X(_m,{Theme:()=>IS,getSystemGlobalTheme:()=>Pi});var wm={};X(wm,{Circle:()=>$S,SHAPES:()=>Uc,Shape:()=>vm,default:()=>RI,depth:()=>Hc});I();var yt=R(),Hc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${yt.unit.default} 4${yt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${yt.unit.default} 6${yt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${yt.unit.default} 10${yt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${yt.unit.default} 16${yt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${yt.unit.default} 26${yt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${yt.unit.default} 42${yt.unit.default}`}},lo=e=>me(e.shapeDirectionColor)||me(e.borderColor)||me(e.backgroundColor)||me(e.background),Wc=e=>{let t=Ei.transition(e.transition,e);return t&&t.transition},Uc={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:lo(e),transition:Wc(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:lo(e),transition:Wc(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:lo(e),transition:Wc(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:Wc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${lo(e)} 25%, transparent 25%), linear-gradient(315deg, ${lo(e)} 25%, transparent 25%)`},"&:after":{background:lo(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)"}}}},vm={deps:{exec:de,getSpacingBasedOnRatio:Gt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(Uc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Uc[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}}},$S={round:"100%"},RI=vm;I();var Pi=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},IS={deps:{depth:Hc},classlist:{depth:e=>!$e(e.depth)&&e.deps.depth[e.depth]}};var FS={deps:{getSystemGlobalTheme:Pi},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Pi},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}};var km={};X(km,{AssetPicture:()=>jS});I();var jS={tag:"picture",children:e=>{let t=Ye(e);if(t)return ii(t,e.alt)}};var Cm={};X(Cm,{Svg:()=>DS});var DS={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)}};var Am={};X(Am,{Video:()=>LS});I();var LS={tag:"video",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(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"}};var Em={};X(Em,{Audio:()=>MS});I();var MS={tag:"audio",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(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"}};var Om={};X(Om,{B:()=>nk,Caption:()=>GS,Data:()=>sk,Footnote:()=>rk,H1:()=>VS,H2:()=>zS,H3:()=>WS,H4:()=>US,H5:()=>HS,H6:()=>qS,Headline:()=>ek,I:()=>ok,Italic:()=>ZS,P:()=>KS,Span:()=>BS,Strong:()=>XS,Subhead:()=>tk,Text:()=>NS,Title:()=>QS,U:()=>YS,Underline:()=>JS});var NS={},BS={tag:"span"},VS={tag:"h1"},zS={tag:"h2"},WS={tag:"h3"},US={tag:"h4"},HS={tag:"h5"},qS={tag:"h6"},KS={tag:"p"},GS={tag:"caption"},XS={tag:"strong",fontWeight:"700"},YS={tag:"u"},JS={tag:"u"},ZS={tag:"i"},QS={},ek={tag:"h6",fontSize:"B",fontWeight:500},tk={tag:"span",fontSize:"Z1"},rk={tag:"span",fontSize:"Z"},nk={tag:"b"},ok={tag:"i"},sk={tag:"data"};var Tm={};X(Tm,{Box:()=>qc,Br:()=>ak,Hr:()=>ik,Li:()=>lk,Ol:()=>uk,Ul:()=>ck});var PI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=tt(t,e,{unpack:!1});r.__class=n},qc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:PI},ik={tag:"hr",margin:"C1 0"},ak={tag:"br"},lk={tag:"li"},ck={tag:"ul",childExtends:{extends:"Li"}},uk={tag:"ol",childExtends:{extends:"Li"}};var Rm={};X(Rm,{Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk});var fk=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},dk={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:fk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:fk,margin:"0",color:"paragraph"}},pk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},hk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Pm={};X(Pm,{Input:()=>gk});var gk={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}};var $m={};X($m,{NumberInput:()=>mk});var mk={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}};var Im={};X(Im,{Checkbox:()=>yk,CheckboxHgroup:()=>bk});var yk={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"}}},bk={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Fm={};X(Fm,{Radio:()=>xk,RadioHgroup:()=>vk});var xk={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}},vk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var jm={};X(jm,{Toggle:()=>wk,ToggleHgroup:()=>_k});var wk={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}},_k={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Dm={};X(Dm,{Textarea:()=>Sk,TextareaWithButton:()=>kk});var Sk={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"}},kk={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Lm={};X(Lm,{FileIcon:()=>Ek,Icon:()=>Ck,IconText:()=>Ak});var Ck={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=v=>{let w=v[".isActive"];if(w)return v.call("exec",w.name||w.icon)},c=(v,w,A)=>{let{semanticIcons:E}=A&&A.designSystem,{toCamelCase:O}=A&&A.utils,S=u(v,w),K=O(S).split(/([a-z])([A-Z])/g),z=K[1]?K[0]:S.split(".")[0].split(" ")[0],D=E&&E[z];if(D){let U=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=D[U]||D[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,w)=>{let{key:A}=v,E=v.call("exec",v.name||v.icon||A,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:A},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(w=>w.charAt(0).toUpperCase()+w.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],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Ak={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},Ek={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var qm={};X(qm,{A:()=>Pk,Link:()=>Um,RouteLink:()=>$k,RouterLink:()=>Hm});var Wm={};X(Wm,{default:()=>DI,getActiveRoute:()=>zm,lastLevel:()=>Gc,lastPathname:()=>Kc,matchRoute:()=>Nm,parseQuery:()=>Bm,parseRoutePattern:()=>Mm,router:()=>Xt,runGuards:()=>Vm});I();var Tk=/^:(.+)/,Rk=/^\*$/,Ok=new Map,Mm=e=>{let t=Ok.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(Tk);a?n.push({index:i,name:a[1]}):Rk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return Ok.set(e,s),s},Nm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Mm(c),d=$I(o,u);d>a&&(a=d,i=c,l=II(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},$I=(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(Tk.test(r[i]))o+=1;else if(Rk.test(r[i]))o+=.5;else return-1;return o},II=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Bm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},Vm=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},zm=(e=0,t)=>{t||(t=typeof C<"u"?C.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Kc,Gc=0,FI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,jI={level:Gc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:pe&&pe.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Xt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||C,i=o?.context?.document||pe,a={...jI,...o.context.routerOptions,...n};Gc=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=FI(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=Bm(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Kc;Kc=f;let x,v,w,A;if(a.useParamsMatching){let O=Nm(f,o.routes,a.level);x=O.key,v=O.routePath,w=O.content,A=O.params}else x=zm(a.level,f),v=x,w=o.routes[x||"/"]||o.routes["/*"],A={};let E=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!w){a.onNotFound?a.onNotFound({pathname:f,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let O={pathname:f,route:x,params:A,query:g,hash:h,element:o,state:r},S=await Vm(a.guards,O);if(S===!1)return;if(typeof S=="string")return Xt(S,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||"")+(h||""))}catch{}if(b||!y){let O={route:x,routePath:v,hash:h,debugging:!1};Object.keys(A).length&&(O.params=A),Object.keys(g).length&&(O.query=g),a.updateState&&o.state.update(O,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let S=o.__ref?.origin?.content,B={};if(S)for(let z in S){let D=S[z];z==="__ref"||z==="props"||z==="node"||z==="parent"||z==="key"||(typeof D=="string"||typeof D=="number"||typeof D=="boolean"||typeof D=="object"&&D!==null&&!D.node&&!D.__ref)&&(B[z]=D)}let K={...B,...typeof w=="object"?w:{extends:w}};a.useFragment&&(K.tag="fragment");try{o.set(K,{contentElementKey:c})}catch(z){console.error("[smbls/router] failed to render route content",f,z)}}if(a.scrollToTop&&E?.scrollTo&&E.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&w[c]?.node?.scrollTo&&w[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let O=i.getElementById(h);if(O&&E?.scrollTo){let S=O.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);E.scrollTo({...a.scrollToOptions||{},top:S,left:0})}}Sr("routeChanged",o,a)},DI=Xt;var LI=(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||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Um={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Ir(e,e.href)||Ir(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:LI},Pk={extends:"Link"},Hm={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||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},$k={extends:[Um,Hm]};var Km={};X(Km,{Select:()=>Ik});var Ik={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}}};var Gm={};X(Gm,{Button:()=>Fk,ButtonSet:()=>Mk,CircleButton:()=>Dk,IconButton:()=>Nk,KangorooButton:()=>Lk,SquareButton:()=>jk});var Fk={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)},jk={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"},Dk={extends:"SquareButton",round:"C"},Lk={extends:"Button",childExtends:"IconText"},Mk={tag:"nav",display:"flex",childExtends:"SquareButton"},Nk={extends:["SquareButton","ClickableItem"],round:"Z"};var Xm={};X(Xm,{Dialog:()=>Bk,DialogFooter:()=>zk,DialogHeader:()=>Vk});var Bk={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Vk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},zk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Ym={};X(Ym,{Tooltip:()=>Wk,TooltipHidden:()=>Uk,TooltipParent:()=>Hk});I();var Wk={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=>qe(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)}},Uk={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)}},Hk={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"}}})}};var Jm={};X(Jm,{Avatar:()=>qk});var qk={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"}`};var Zm={};X(Zm,{Range:()=>Kk});var Kk={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:ai("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ai("#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)}};var Qm={};X(Qm,{Dropdown:()=>Gk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Jk,DropdownSiblingFocus:()=>Zk});var Gk={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"},Xk={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"}}},Yk={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Jk={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()}}},Zk={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()}}};var ey={};X(ey,{Notification:()=>Qk});var Qk={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var co=Object.assign({},gm,mm,ym,bm,xm,Sm,km,Cm,wm,Am,Em,_m,Om,Tm,Rm,Pm,$m,Im,Fm,jm,Dm,Lm,qm,Km,Gm,Xm,Ym,Jm,Zm,Qm,ey);function Xc(e){if(e==null)return 0;if(typeof e!="object")return e1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Xc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^e1(r[n]))*16777619,t=(t^Xc(e[r[n]]))*16777619;return t>>>0}function e1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Yc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Yc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Yc(e[s],t[s]))return!1}return!0}function ty(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=ty(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function ry(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?ry(e[n],o,r):e[n]=o}return e}function Dr(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 fo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function $i(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Dr(t)}function t1(e){return e.split(`
|
|
68
|
+
)`};var AI={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"}}}},EI={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},OI={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"}}},uS={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...AI,...EI,...OI,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var fS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var dS={ratio:1.618,subSequence:!0};var pS={SourceSans:[{url:""}]},hS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var gS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var mS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var yS={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ri={version:"0.0.1",color:lS,gradient:cS,theme:uS,typography:fS,spacing:dS,font:pS,fontFamily:hS,timing:yS,icons:gS,media:mS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var uo={};K(uo,{A:()=>Pk,AssetPicture:()=>jS,Audio:()=>MS,Avatar:()=>qk,B:()=>nk,Block:()=>bS,Box:()=>qc,Br:()=>ak,Button:()=>Fk,ButtonSet:()=>Mk,COMPONENTS:()=>co,Caption:()=>KS,Checkbox:()=>yk,CheckboxHgroup:()=>bk,Circle:()=>$S,CircleButton:()=>Dk,Clickable:()=>TS,Data:()=>sk,Dialog:()=>Bk,DialogFooter:()=>Vk,DialogHeader:()=>zk,Dropdown:()=>Kk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Zk,DropdownSiblingFocus:()=>Jk,FileIcon:()=>Ek,Flex:()=>vS,Focusable:()=>RS,FocusableComponent:()=>PS,Footnote:()=>rk,Form:()=>AS,Grid:()=>_S,Gutter:()=>kS,H1:()=>zS,H2:()=>VS,H3:()=>WS,H4:()=>US,H5:()=>HS,H6:()=>qS,Headline:()=>ek,Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk,Hoverable:()=>OS,Hr:()=>ik,I:()=>ok,Icon:()=>Ck,IconButton:()=>Nk,IconText:()=>Ak,Iframe:()=>ES,Img:()=>CS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS,Input:()=>gk,Italic:()=>JS,KangorooButton:()=>Lk,Li:()=>lk,Link:()=>Um,Notification:()=>Qk,NumberInput:()=>mk,Ol:()=>uk,P:()=>GS,Picture:()=>FS,Radio:()=>xk,RadioHgroup:()=>vk,Range:()=>Gk,RouteLink:()=>$k,RouterLink:()=>Hm,SHAPES:()=>Uc,Select:()=>Ik,Shape:()=>vm,Span:()=>BS,SquareButton:()=>jk,Strong:()=>XS,Subhead:()=>tk,Svg:()=>DS,Text:()=>NS,Textarea:()=>Sk,TextareaWithButton:()=>kk,Theme:()=>IS,Title:()=>QS,Toggle:()=>wk,ToggleHgroup:()=>_k,Tooltip:()=>Wk,TooltipHidden:()=>Uk,TooltipParent:()=>Hk,U:()=>YS,Ul:()=>ck,Underline:()=>ZS,Video:()=>LS,depth:()=>Hc,getSystemGlobalTheme:()=>Pi});var gm={};K(gm,{Block:()=>bS,Flex:()=>vS,Grid:()=>_S,Gutter:()=>kS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS});var bS={display:"block"},xS={display:"inline"},vS={display:"flex"},wS={display:"inline-flex"},_S={display:"grid"},SS={display:"inline-grid"},kS={boxSize:"C1"};var mm={};K(mm,{Img:()=>CS});I();var CS={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Ye(e);return t&&t.src||e.src},srcset:e=>{let t=Ye(e);return(t?si(t):"")||e.srcset}}};var ym={};K(ym,{Form:()=>AS});var AS={tag:"form"};var bm={};K(bm,{Iframe:()=>ES});var ES={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var xm={};K(xm,{Clickable:()=>TS,Focusable:()=>RS,FocusableComponent:()=>PS,Hoverable:()=>OS});var TI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},OS={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}}},TS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},RS={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},PS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:TI};var Sm={};K(Sm,{Picture:()=>FS});var _m={};K(_m,{Theme:()=>IS,getSystemGlobalTheme:()=>Pi});var wm={};K(wm,{Circle:()=>$S,SHAPES:()=>Uc,Shape:()=>vm,default:()=>RI,depth:()=>Hc});I();var yt=R(),Hc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${yt.unit.default} 4${yt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${yt.unit.default} 6${yt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${yt.unit.default} 10${yt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${yt.unit.default} 16${yt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${yt.unit.default} 26${yt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${yt.unit.default} 42${yt.unit.default}`}},lo=e=>me(e.shapeDirectionColor)||me(e.borderColor)||me(e.backgroundColor)||me(e.background),Wc=e=>{let t=Ei.transition(e.transition,e);return t&&t.transition},Uc={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:lo(e),transition:Wc(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:lo(e),transition:Wc(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:lo(e),transition:Wc(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:Wc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${lo(e)} 25%, transparent 25%), linear-gradient(315deg, ${lo(e)} 25%, transparent 25%)`},"&:after":{background:lo(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)"}}}},vm={deps:{exec:de,getSpacingBasedOnRatio:Kt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(Uc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Uc[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}}},$S={round:"100%"},RI=vm;I();var Pi=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},IS={deps:{depth:Hc},classlist:{depth:e=>!$e(e.depth)&&e.deps.depth[e.depth]}};var FS={deps:{getSystemGlobalTheme:Pi},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Pi},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}};var km={};K(km,{AssetPicture:()=>jS});I();var jS={tag:"picture",children:e=>{let t=Ye(e);if(t)return ii(t,e.alt)}};var Cm={};K(Cm,{Svg:()=>DS});var DS={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)}};var Am={};K(Am,{Video:()=>LS});I();var LS={tag:"video",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(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"}};var Em={};K(Em,{Audio:()=>MS});I();var MS={tag:"audio",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(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"}};var Om={};K(Om,{B:()=>nk,Caption:()=>KS,Data:()=>sk,Footnote:()=>rk,H1:()=>zS,H2:()=>VS,H3:()=>WS,H4:()=>US,H5:()=>HS,H6:()=>qS,Headline:()=>ek,I:()=>ok,Italic:()=>JS,P:()=>GS,Span:()=>BS,Strong:()=>XS,Subhead:()=>tk,Text:()=>NS,Title:()=>QS,U:()=>YS,Underline:()=>ZS});var NS={},BS={tag:"span"},zS={tag:"h1"},VS={tag:"h2"},WS={tag:"h3"},US={tag:"h4"},HS={tag:"h5"},qS={tag:"h6"},GS={tag:"p"},KS={tag:"caption"},XS={tag:"strong",fontWeight:"700"},YS={tag:"u"},ZS={tag:"u"},JS={tag:"i"},QS={},ek={tag:"h6",fontSize:"B",fontWeight:500},tk={tag:"span",fontSize:"Z1"},rk={tag:"span",fontSize:"Z"},nk={tag:"b"},ok={tag:"i"},sk={tag:"data"};var Tm={};K(Tm,{Box:()=>qc,Br:()=>ak,Hr:()=>ik,Li:()=>lk,Ol:()=>uk,Ul:()=>ck});var PI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=tt(t,e,{unpack:!1});r.__class=n},qc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:PI},ik={tag:"hr",margin:"C1 0"},ak={tag:"br"},lk={tag:"li"},ck={tag:"ul",childExtends:{extends:"Li"}},uk={tag:"ol",childExtends:{extends:"Li"}};var Rm={};K(Rm,{Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk});var fk=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},dk={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:fk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:fk,margin:"0",color:"paragraph"}},pk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},hk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Pm={};K(Pm,{Input:()=>gk});var gk={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}};var $m={};K($m,{NumberInput:()=>mk});var mk={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}};var Im={};K(Im,{Checkbox:()=>yk,CheckboxHgroup:()=>bk});var yk={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"}}},bk={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Fm={};K(Fm,{Radio:()=>xk,RadioHgroup:()=>vk});var xk={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}},vk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var jm={};K(jm,{Toggle:()=>wk,ToggleHgroup:()=>_k});var wk={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}},_k={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Dm={};K(Dm,{Textarea:()=>Sk,TextareaWithButton:()=>kk});var Sk={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"}},kk={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Lm={};K(Lm,{FileIcon:()=>Ek,Icon:()=>Ck,IconText:()=>Ak});var Ck={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=v=>{let w=v[".isActive"];if(w)return v.call("exec",w.name||w.icon)},c=(v,w,A)=>{let{semanticIcons:T}=A&&A.designSystem,{toCamelCase:E}=A&&A.utils,S=u(v,w),H=E(S).split(/([a-z])([A-Z])/g),V=H[1]?H[0]:S.split(".")[0].split(" ")[0],W=T&&T[V];if(W){let ne=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=W[ne]||W[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,w)=>{let{key:A}=v,T=v.call("exec",v.name||v.icon||A,v);return v.call("isString",T)&&T.includes("{{")&&(T=v.call("replaceLiteralsWithObjectFields",T)),v.call("isString",T)?T:A},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(w=>w.charAt(0).toUpperCase()+w.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],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Ak={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},Ek={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var qm={};K(qm,{A:()=>Pk,Link:()=>Um,RouteLink:()=>$k,RouterLink:()=>Hm});var Wm={};K(Wm,{default:()=>DI,getActiveRoute:()=>Vm,lastLevel:()=>Kc,lastPathname:()=>Gc,matchRoute:()=>Nm,parseQuery:()=>Bm,parseRoutePattern:()=>Mm,router:()=>Xt,runGuards:()=>zm});I();var Tk=/^:(.+)/,Rk=/^\*$/,Ok=new Map,Mm=e=>{let t=Ok.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(Tk);a?n.push({index:i,name:a[1]}):Rk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return Ok.set(e,s),s},Nm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Mm(c),d=$I(o,u);d>a&&(a=d,i=c,l=II(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},$I=(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(Tk.test(r[i]))o+=1;else if(Rk.test(r[i]))o+=.5;else return-1;return o},II=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Bm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},zm=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},Vm=(e=0,t)=>{t||(t=typeof C<"u"?C.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Gc,Kc=0,FI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,jI={level:Kc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:pe&&pe.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Xt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||C,i=o?.context?.document||pe,a={...jI,...o.context.routerOptions,...n};Kc=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=FI(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=Bm(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Gc;Gc=f;let x,v,w,A;if(a.useParamsMatching){let E=Nm(f,o.routes,a.level);x=E.key,v=E.routePath,w=E.content,A=E.params}else x=Vm(a.level,f),v=x,w=o.routes[x||"/"]||o.routes["/*"],A={};let T=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!w){a.onNotFound?a.onNotFound({pathname:f,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let E={pathname:f,route:x,params:A,query:g,hash:h,element:o,state:r},S=await zm(a.guards,E);if(S===!1)return;if(typeof S=="string")return Xt(S,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||"")+(h||""))}catch{}if(b||!y){let E={route:x,routePath:v,hash:h,debugging:!1};Object.keys(A).length&&(E.params=A),Object.keys(g).length&&(E.query=g),a.updateState&&o.state.update(E,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let S=o.__ref?.origin?.content,F={};if(S)for(let V in S){let W=S[V];V==="__ref"||V==="props"||V==="node"||V==="parent"||V==="key"||(typeof W=="string"||typeof W=="number"||typeof W=="boolean"||typeof W=="object"&&W!==null&&!W.node&&!W.__ref)&&(F[V]=W)}let H={...F,...typeof w=="object"?w:{extends:w}};a.useFragment&&(H.tag="fragment");try{o.set(H,{contentElementKey:c})}catch(V){console.error("[smbls/router] failed to render route content",f,V)}}if(a.scrollToTop&&T?.scrollTo&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&w[c]?.node?.scrollTo&&w[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let E=i.getElementById(h);if(E&&T?.scrollTo){let S=E.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:S,left:0})}}Sr("routeChanged",o,a)},DI=Xt;var LI=(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||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Um={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Ir(e,e.href)||Ir(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:LI},Pk={extends:"Link"},Hm={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||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},$k={extends:[Um,Hm]};var Gm={};K(Gm,{Select:()=>Ik});var Ik={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}}};var Km={};K(Km,{Button:()=>Fk,ButtonSet:()=>Mk,CircleButton:()=>Dk,IconButton:()=>Nk,KangorooButton:()=>Lk,SquareButton:()=>jk});var Fk={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)},jk={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"},Dk={extends:"SquareButton",round:"C"},Lk={extends:"Button",childExtends:"IconText"},Mk={tag:"nav",display:"flex",childExtends:"SquareButton"},Nk={extends:["SquareButton","ClickableItem"],round:"Z"};var Xm={};K(Xm,{Dialog:()=>Bk,DialogFooter:()=>Vk,DialogHeader:()=>zk});var Bk={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},zk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Vk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Ym={};K(Ym,{Tooltip:()=>Wk,TooltipHidden:()=>Uk,TooltipParent:()=>Hk});I();var Wk={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=>qe(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)}},Uk={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)}},Hk={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"}}})}};var Zm={};K(Zm,{Avatar:()=>qk});var qk={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"}`};var Jm={};K(Jm,{Range:()=>Gk});var Gk={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:ai("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ai("#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)}};var Qm={};K(Qm,{Dropdown:()=>Kk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Zk,DropdownSiblingFocus:()=>Jk});var Kk={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"},Xk={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"}}},Yk={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Zk={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()}}},Jk={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()}}};var ey={};K(ey,{Notification:()=>Qk});var Qk={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var co=Object.assign({},gm,mm,ym,bm,xm,Sm,km,Cm,wm,Am,Em,_m,Om,Tm,Rm,Pm,$m,Im,Fm,jm,Dm,Lm,qm,Gm,Km,Xm,Ym,Zm,Jm,Qm,ey);function Xc(e){if(e==null)return 0;if(typeof e!="object")return e1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Xc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^e1(r[n]))*16777619,t=(t^Xc(e[r[n]]))*16777619;return t>>>0}function e1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Yc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Yc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Yc(e[s],t[s]))return!1}return!0}function ty(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=ty(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function ry(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?ry(e[n],o,r):e[n]=o}return e}function Dr(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 fo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function $i(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Dr(t)}function t1(e){return e.split(`
|
|
69
69
|
`).map(Dr).join(`
|
|
70
70
|
`)}var r1={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function n1(e,t){let r=r1[e]||Dr(e),n=$i(t),o=`_${r}-${n}`,s=fo(e),i=`.${o}{${s}: ${t}}`;return`${o}
|
|
71
71
|
${i}`}var o1=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function s1(e){let t=e.split("\0"),r=[],n=[];for(let o=0;o+1<t.length;o+=2){let s=t[o],i=t[o+1];if(!i||o1(i))continue;let a=r1[s]||Dr(s),l=$i(i),c=`_${a}-${l}`,u=fo(s);r.push(c),n.push(`.${c}{${u}:${i}}`)}return r.join(" ")+"\0"+n.join(`
|
|
72
72
|
`)}function i1(e,t){let r=e+t,n=`_c${Dr(r)}`,o=t.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let l=o[a],c=o[a+1];c&&(o1(c)||(s+=`${fo(l)}:${c};`))}let i;if(e.startsWith("@media"))i=`${e}{.${n}{${s}}}`;else if(e.startsWith(":")||e.startsWith("&")){let a=e.startsWith("&")?e.slice(1):e;i=`.${n}${a}{${s}}`}else e.includes("&")?i=`${e.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${e}{${s}}`;return`${n}
|
|
73
|
-
${i}`}var ny=null;function Zc(e){ny=e}var It={structuralHash:Xc,deepEqual:Yc,mergeStructural:ty,overwriteDeep:ry,shortHash:Dr,toKebab:fo,sanitizeValue:$i,batchShortHash:t1,atomicCssClass:n1,batchAtomicCss:s1,compoundCssClass:i1},a1=!1,Jc=null;function l1(e){return Jc||(Jc=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(It.structuralHash=t.structuralHash),t.deepEqual&&(It.deepEqual=t.deepEqual),t.mergeStructural&&(It.mergeStructural=t.mergeStructural),t.overwriteDeep&&(It.overwriteDeep=t.overwriteDeep),t.shortHash&&(It.shortHash=t.shortHash),t.toKebab&&(It.toKebab=t.toKebab),t.sanitizeValue&&(It.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(It.batchShortHash=t.batchShortHash),t.atomicCssClass&&(It.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(It.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(It.compoundCssClass=t.compoundCssClass),a1=!0,ny&&t.batchAtomicCss&&ny({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),Jc)}function c1(){return a1}I();var Ii={};X(Ii,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>np,DOMQ_PROPERTIES:()=>xr,ENV:()=>xp,HTML_TAGS:()=>Kn,METHODS:()=>Vn,METHODS_EXL:()=>as,NODE_ENV:()=>kt,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>is,PROPS_METHODS:()=>vr,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>rp,SVG_TAGS:()=>j0,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Jl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Up,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>rs,addRef:()=>Pl,applyCSS:()=>sy,applyDependentState:()=>ch,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>M0,applyProps:()=>ks,arrayContainsOtherArray:()=>Dd,arraysEqual:()=>Hd,arrayzeValue:()=>ln,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>hh,call:()=>$h,captureSnapshot:()=>Fh,checkForStateTypes:()=>sh,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Gd,clone:()=>sp,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Op,concatAddExtends:()=>Vp,copyJavaScriptToClipboard:()=>Qh,copyStringToClipboard:()=>Zh,createBasedOnType:()=>Rl,createElement:()=>oh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>_l,createIfConditionFlag:()=>Tp,createInheritedState:()=>ih,createKey:()=>hs,createNestedObject:()=>dp,createNestedObjectByKeyPath:()=>lh,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>nh,createScope:()=>fh,createSnapshotId:()=>ps,customDecodeURIComponent:()=>tp,customEncodeURIComponent:()=>ep,cutArrayAfterValue:()=>Vd,cutArrayBeforeValue:()=>Bd,debounce:()=>gs,debounceOnContext:()=>Cp,decodeNewlines:()=>Qd,deepClone:()=>he,deepContains:()=>up,deepDefaults:()=>ti,deepDestringifyFunctions:()=>lt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>ls,defineSetter:()=>Rh,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>Nh,detectInfiniteLoop:()=>mp,document:()=>pe,encodeNewlines:()=>Zd,error:()=>an,excludeKeysFromObject:()=>bp,exec:()=>de,extendCachedRegistry:()=>zp,extendStackRegistry:()=>xs,extractArrayExtend:()=>ws,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Bh,filterArrays:()=>qd,filterArraysFast:()=>Kd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Yh,findInheritedState:()=>Nl,findKeyPosition:()=>Yd,flattenExtend:()=>Xn,formatDate:()=>Mh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Gh,get:()=>Eh,getActiveRoute:()=>zm,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Ml,getChildren:()=>Vs,getContext:()=>Gs,getCookie:()=>Fp,getDB:()=>Qs,getEmotionStylesheet:()=>ng,getExtendsInElement:()=>Hp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Ld,getHashedExtend:()=>vs,getImportMapScript:()=>Lh,getInObjectByPath:()=>gp,getLocalStorage:()=>Dp,getNev:()=>Sp,getPageMetadata:()=>Xh,getParentStateInKey:()=>Ll,getPath:()=>zs,getQuery:()=>ei,getRef:()=>Th,getRoot:()=>Hs,getRootContext:()=>Ks,getRootData:()=>qs,getRootState:()=>Us,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Gp,global:()=>Id,hasFunction:()=>Wn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>ap,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>wl,init:()=>po,initProps:()=>eh,is:()=>Ke,isArray:()=>$,isBoolean:()=>il,isContextComponent:()=>Xp,isCyclic:()=>yp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>lp,isEqualDeep:()=>ul,isFunction:()=>T,isHtmlElement:()=>Jo,isLocal:()=>_p,isMethod:()=>Ih,isMobile:()=>$p,isNode:()=>rr,isNot:()=>jd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Wt,isObject:()=>_,isObjectLike:()=>re,isPhoto:()=>Vh,isProduction:()=>wr,isStaging:()=>wp,isState:()=>ah,isString:()=>k,isStringFunction:()=>Ep,isTest:()=>pl,isTesting:()=>vp,isUndefined:()=>$e,isUniversallyReservedKey:()=>jh,isValidHtmlTag:()=>Mp,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,lastLevel:()=>Gc,lastPathname:()=>Kc,loadCssFile:()=>Hh,loadJavascript:()=>qh,loadJavascriptFile:()=>zh,loadJavascriptFileEmbedSync:()=>Uh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,log:()=>Ph,logGroupIf:()=>Pp,logIf:()=>Rp,lookdown:()=>Ch,lookdownAll:()=>Ah,lookup:()=>kh,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>cp,map:()=>op,mapStringsWithContextComponents:()=>_s,matchRoute:()=>Nm,matchesComponentNaming:()=>Ht,memoize:()=>Ap,merge:()=>ye,mergeSharedLibraries:()=>ri,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,objectToString:()=>cs,objectizeStringProperty:()=>Ss,overwrite:()=>fs,overwriteDeep:()=>Ge,overwriteShallow:()=>rn,overwriteState:()=>uh,parse:()=>Yl,parseDeep:()=>Ns,parseQuery:()=>Bm,parseRoutePattern:()=>Mm,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Js,propExists:()=>Zp,propertizeElement:()=>El,propertizeUpdate:()=>Jp,reinit:()=>oy,remove:()=>hw,removeChars:()=>eg,removeCookie:()=>jp,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Md,removeFromObject:()=>fp,removeNestedKeyByPath:()=>pp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>zd,reorderArrayByValues:()=>Ud,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Jd,resolveAsset:()=>Ye,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Jh,returnValueAsText:()=>Tl,router:()=>Xt,runGuards:()=>Vm,runPluginHook:()=>Ct,scratchSystem:()=>mi,scratchUtils:()=>pn,self:()=>Fd,set:()=>oo,setActiveRootState:()=>Ws,setCookie:()=>Ip,setHashedExtend:()=>gl,setInObjectByPath:()=>hp,setLocalStorage:()=>Lp,setNodeStyles:()=>Gl,setProps:()=>Oh,setPropsPrototype:()=>Es,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ip,swapItemsInArray:()=>Nd,syncProps:()=>Ts,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>rg,toTitleCase:()=>tg,toggleFullscreen:()=>Dh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>dh,trimStringFromSymbols:()=>Xd,unstackArrayOfObjects:()=>es,update:()=>Qp,updateProps:()=>th,variables:()=>Zs,verbose:()=>Jn,warn:()=>Xs,window:()=>C});I();I();var zI=R(),u1=(e=zI,t)=>{let r=_(t.localFile)?t.localFile:{},n=he(r.designSystem||{});return fe(e,n)},WI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},po=(e,t=WI)=>{let r=u1(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=oo({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=rc(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&&_e(a),c&&(_e({[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];_e(m)}l&&_e(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];_e(m)}return(f||d)&&Rc(i.svg,{document:t.document}),(h||p)&&$c(i.icons,{document:t.document}),i},Qc={},oy=(e,t=Qc)=>{let r=u1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=oo({verbose:!1,...r});if(!t.preventInject){if(_e({[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];_e(i)}_e(s.reset)}return s},sy=(e,t=Qc)=>{_e(e)},UI=(e,t=Qc)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(_e({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:e.CSS_MEDIA_VARS[s]}:o[s]=e.CSS_MEDIA_VARS[s];_e(o)}};var HI=(e,t=Qc)=>{};I();var f1=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,iy={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},d1=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},p1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=iy:t.router=ye(t.router||{},iy);let r=t.router,n=async(s,i)=>{let a=s.context?.window||C;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=f1(l);let d=l+c+u,f=s;if(r.customRouterElement){let p=d1(s,r.customRouterElement);p&&(f=p,s.routes&&(f.routes=s.routes))}f.routes&&await Xt(d,f,{},{initialRender:!0,pushState:!1})},o=!$e(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),qI(t,r),r},ay=(e,t)=>{if(t.router===!1)return;let r=t.router||iy;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Xt,o=t.window||C,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=f1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=d1(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",s))},qI=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return fe(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};I();var ly=C&&C.location?C.location.host.includes("dev."):_r(),h1=ly?"http://localhost:8080/get":"https://api.symbols.app/get",KI={endpoint:h1},g1=async(e,t=KI)=>{let r=t.endpoint||h1,n=t.serviceRoute?$(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(s){if(T(t.onError))return t.onError(s);console.error(s)}},GI=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await g1(e,r),o=ly||t.isDevelopment?lt(n):lt(n.releases[0]);r.serviceRoute?$(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ge(t[s],o[s.toLowerCase()])}):Ge(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ge(t[s],o[s.toLowerCase()])})}return t},XI=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await g1(e,n),s=ly||t.isDevelopment?lt(o):lt(o.releases[0]);r(s)}},m1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await GI(e,t)}catch(r){console.error(r)}},y1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&XI(t,r,n||(o=>{let s=o.designSystem;_(s)&&r.utils.init(s),_(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Fi=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{wn(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};I();var YI={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},JI=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},eu=(e,t,r)=>{if(!e)return{};let n=T(e)?de(e,t,r):{...e};if(!_(n))return{};for(let o in n){let s=n[o];T(s)&&(s=de(s,t,r)),k(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var ZI=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},tu=(e,t)=>{if(!(!_(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=YI[r];if(!o)continue;let s=JI(o),i=t.querySelector(s)||ZI(o,t);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var b1={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)}};sn();var x1=(e,t,r,n)=>{e&&Ls(e,t,r,n)},v1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=eu(e,t,r);tu(o,n)},w1=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},ho={routes:e=>e,metadata:v1,fetch:x1,$router:w1},_1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=v1),e.fetch!==!1&&(t.fetch=x1),e.router!==!1&&(t.$router=w1),t};var cy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},ru={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},nu={...cy,router:ru},QI={state:{},pages:{},components:{},router:ru,define:ho},Lr=QI;I();I();var S1=(e,t)=>re(e.extends)?e.extends:[];I();var E1=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;e.document=e.document||r;let n=e.window;return n&&n!==t&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),e.window=t):e.window=n||t,e.window},k1=(e="smbls")=>{let t={};for(let r in co)Object.prototype.hasOwnProperty.call(co,r)&&(Ht(r)?t[`smbls.${r}`]=co[r]:t[r]=co[r]);return t},O1=e=>e.components?{...k1(),...e.components}:k1(),T1=e=>({...Ii,...Wm,...pn,...e.utils,...e.snippets,...e.functions}),R1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),C1={},P1=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Er[s]||Zn(i)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=_r()&&n?`?${Math.random()}`:"",d=Ot(l,c,o)+u;try{if(C1[l])continue;C1[l]=!0,await Promise.race([Qn(d,{document:r,type:"module"}),new Promise((f,p)=>setTimeout(()=>p(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let p=Ot(l,c,"symbols")+u;await Promise.race([Qn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),2e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},$1=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||Zn(t.symbolsConfig)||"esmsh",o=async i=>async(a,l)=>{let u=(i.window||window).packages[a];return typeof u=="function"?u():u},s=async i=>async(a,l=n)=>{let{dependenciesOnDemand:c}=i,u=i.document||document,d=i.window||window;if(!d.packages[a]){let f=_r()?`?${Math.random()}`:"";if(c&&c[a]){let p=c[a],h=Ot(a,p,l)+f;try{await i.utils.loadRemoteScript(h,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=Ot(a,p,"symbols")+f;await i.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=Ot(a,"latest",l)+f;try{await i.utils.loadRemoteScript(p,{window:d,document:u})}catch(h){if(console.error(`Failed to load ${a} from ${l}:`,h),l!=="symbols"){let g=Ot(a,"latest","symbols")+f;await i.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=ye(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},eF=/\s+/g,I1=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,tF=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${I1(o,t)}`)}return r},rF=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=tF(e,t));let o=e.replace(eF," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},nF=()=>(e,t,r)=>{let n=I1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}F1()(t.classlist,t,t.state,!0)},F1=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:s,__classNames:i}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let l=s[a];if(!l){delete i[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=$r(l),i[a]=c}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&rF(i,t,t.node)}},oF=()=>({style:nF(),classlist:F1()}),sF=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],A1=!1,j1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||oF(),s=t.designSystem?fe(he(t.designSystem),Ri):he(Ri),i={};for(let p of sF)t[p]!==void 0&&(i[p]=t[p]);let a,l=A1&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=R(e)||R(),a&&(a.document=r),a?.CSS_VARS){Oe(a);try{if(_e({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let p={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?p[h]={[u]:a.CSS_MEDIA_VARS[h]}:p[h]=a.CSS_MEDIA_VARS[h];_e(p)}}finally{we()}}}else if(l){let p=mg(e,s,{cleanBase:!0});for(let g in i)p[g]=i[g];p.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,p.varPrefix=h,Oe(p);try{a=po(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...i,...n})}finally{we()}}else{let p=R();p&&(p.document=r),a=po(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...i,...n}),a&&a!==p&&(a.document=r),A1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Oe(d);try{for(let p in f){let h=f[p];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&_e(`@font-face { ${m} }`)}}finally{we()}}return[a,o]},D1=(e,t)=>{let r={};t.state&&fe(r,t.state),e&&e.state&&fe(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let l in i)r[l]=i[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,he(r)},L1=(e,t)=>{_(e.routes)&&_(t.pages)&&ye(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},M1=e=>{ri(e,e.sharedLibraries)};I();var B1="smbls_lang",iF="smbls_t_",aF="smbls_tv_",go={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},ji={};function Di(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function su(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var ou=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},N1=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=ou(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function iu(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),s=this?.state;if(s){let c=N1(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let a=(s?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(s){let c=N1(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=ou(c,e);if(u!==void 0)return u}}return e}async function au(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||iF,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):aF);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=go.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if(ji[i])return ji[i];let a=this;return ji[i]=(async()=>{try{let l=r.fetch,c=parseInt(go.get(s+e),10)||0,u,d,f;if(T(l)){let h=await l(e,c,a);if(!h||h.changed===!1)return;u=h.translations||h.data||h,d=h.version||0,f=!0}else if(_(l)){let h=a.getDB||(()=>t.fetch),g=T(h)?await h.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let x=b.data;if(!x||!x.changed)return;u=x.translations||{},d=x.version||0,f=!0}else return;if(!f||!u)return;go.set(o+e,JSON.stringify(u)),d&&go.set(s+e,String(d));let p={translations:{...n.translations||{}}};p.translations[e]=u,n.update&&n.update(p)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete ji[i]}})(),ji[i]}async function lu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||B1;go.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let l in s){let c=s[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(i[l]=c)}if(n.update&&n.update(i),s&&typeof s=="object")for(let l in s){let c=s[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&s){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function cu(e,t,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&_(o.fetch)){let i=this.getDB||(()=>n.fetch),a=T(i)?await i.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function uy(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||B1,s=go.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function uu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let s=e.lastIndexOf(".");if(s===-1)return o[e+n]??"";let i=e.substring(0,s).split("."),a=o;for(let l=0;l<i.length;l++){if(a==null)return"";a=a[i[l]]}return a==null?"":a[e.substring(s+1)+n]??""}catch{return""}}var fu={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,uy.call(e))}};var Li={polyglot:iu,getLocalStateLang:uu,getActiveLang:Di,getLang:Di,setLang:lu,getLanguages:su,loadTranslations:au,upsertTranslation:cu};sn();var du={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},pu=e=>parseFloat(e.toFixed(4)),lF=(e,t,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=t,l=Math.abs(o),c=n+l+s,u=r!==void 0?r:c/i*e,d=u/e,f=c/i,p=(n-a+s/2)/i-(d-f)/2,h=(l+s/2)/i-(d-f)/2;return{fontSize:`${pu(e/16)}rem`,lineHeight:`${pu(u)}px`,capHeightTrim:`${pu(-p)}em`,baselineTrim:`${pu(-h)}em`}},cF=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(e).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},uF=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let s=n[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(du[i])return du[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(du[a])return du[a]}}return null},V1=(e,t,r,n)=>{if(!e)return;let o=cF(t.fontSize,n);if(!o)return;let s=uF(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=lF(o,s,i),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},z1={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Mi={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"},bt=Object.create(null);for(let e in Mi)bt[Mi[e]]=e;var fy=Object.create(null);for(let e in Mi){let t=Mi[e];if(fy[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${fy[t]}"`);fy[t]=e}var Mr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Ni(e){return/^[A-Z]/.test(e)}function Bi(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function fF(e){return e.trim().split(/\s+/).filter(Boolean)}function W1(e){return e.replace(/_/g," ")}function dF(e){if(!e||typeof e!="string")return{};let t={},r=fF(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=bt[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=bt[n]||n;t[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=bt[s]||s;if(i.includes(",")){t[a]=i.split(",").map(W1);continue}t[a]=W1(i)}return t}function Vi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Vi(r):r});let t={};for(let r in e){let n=e[r];if(Ni(r)){t[r]=dy(n);continue}let o=bt[r]||r;if(Bi(r)&&o===r){t[r]=dy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=dy(n)}return t}function dy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Vi(t):t}):typeof e=="object"?Vi(e):e}function zi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?zi(r):r});let t={};if(typeof e.in=="string"){let r=dF(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ni(r)){t[r]=py(n);continue}let o=bt[r]||r;if(Bi(r)&&o===r){t[r]=py(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=py(n)}return t}function py(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?zi(t):t}):typeof e=="object"?zi(e):e}function pF(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function hF(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function U1(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):pF(e)}function hy(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=bt[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=bt[n]||n;t[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=bt[s]||s,l=hF(i);if(l.length>1){t[a]=l.map(U1);continue}t[a]=U1(i)}return t}function Wi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Wi(r):r});let t={};if(typeof e.in=="string"){let r=hy(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ni(r)){typeof n=="string"?t[r]=hy(n):t[r]=gy(n);continue}let o=bt[r]||r;if(Bi(r)&&o===r){typeof n=="string"?t[r]=hy(n):t[r]=gy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=gy(n)}return t}function gy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Wi(t):t}):typeof e=="object"?Wi(e):e}var gF={shorten:Vi,stringify:zi,stringifyFurther:Wi};function mF(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var yF=["components","pages","snippets"],hu={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=gF[t===!0?"shorten":t];if(n){for(let o of yF)e[o]&&(e[o]=mF(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var bF=0,xF=()=>`${Date.now().toString(36)}-${(bF++).toString(36)}`,ae=(e,t,r={})=>({id:xF(),ts:Date.now(),type:e,level:t,...r}),vF=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(" > ")},mo=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:vF(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var yo=e=>e?.context?.analyze,wF={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"}},_F=(e,{category:t,type:r,level:n})=>o=>{let s=yo(o);!s||!s.shouldCapture(t)||s.emit(ae(r,n,{hook:e,element:mo(o)}))},H1=e=>(t,r)=>{let n=yo(t);!n||!n.shouldCapture("state")||n.emit(ae("state","debug",{hook:e,element:mo(t),changedKeys:r?.changedKeys||null}))},Ui={name:"analyze",error(e,t){let r=yo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ae("error","error",{hook:t?.hook||"error",element:mo(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=yo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ae("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=yo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=yo(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(ae("update","debug",{hook:"update",element:mo(e),durationMs:r}))},beforeStateUpdate:H1("beforeStateUpdate"),stateUpdate:H1("stateUpdate")};for(let[e,t]of Object.entries(wF))Ui[e]=_F(e,t);I();var gu={error:0,warn:1,info:2,debug:3,trace:4};var my=(e,t)=>{let r=gu[e],n=gu[t];return r==null||n==null?!0:r<=n},mu=e=>gu[e]!=null?e:"warn";I();var yu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var SF=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},kF=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},yy=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>yy(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(SF(s,t)||yu.test(s)){let i=kF(e[s],r);i!==void 0&&(o[s]=i)}else o[s]=yy(e[s],t,r,n+1);return o},by=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...h}=n,g=yy(h,r,t,0);return{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...g}}};var q1=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=C,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:o,build:n,route:i},meta:{ua:r,viewport:l}}}},K1=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},G1=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<e)return null;if(r.set(o,i),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},X1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},Y1={redact:e=>by(e.config.redact||[],e.config.maskStrategy),enrich:e=>q1(e),summarize:()=>K1(),dedupe:e=>G1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>X1(e.config.sample||{})},CF=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=Y1[e];return r?r(t):null}return null},xy=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(Y1.redact(e));for(let s of r){let i=CF(s,e);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let l=a(i);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,p=!1;for(let h of c)if(f=h(f),f==null){p=!0;break}!p&&f!=null&&u.push(f)}return u}i=l}return i}};I();I();var vy=typeof C<"u"&&typeof C.document<"u",AF=5e3,EF=50,OF=3,TF=1500,RF=1e3,J1=e=>e?e.level==="error"||e.type==="error"?"bug":e.type==="network"?"network":e.type==="console"?e.level==="error"||e.level==="warn"?"bug":"log":e.level==="warn"?"bug":e.level==="info"?"log":"verbose":"verbose",PF=e=>{try{return JSON.stringify(e)}catch{return null}},$F=()=>{if(!vy)return null;let e=C.location,t=typeof navigator<"u"?navigator:null;return{url:e?.href||null,path:e?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:t?.userAgent||null,language:t?.language||null,viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}:null}},wy=(e={})=>{let t=e.url,r=typeof e.transport=="function"?e.transport:null;if(!t&&!r)return()=>{};let n=e.apiKey||null,o=e.appKey||e.appId||null,s=e.tenantKey||e.tenant||null,i=e.release||null,a=e.env||null,l=e.sdk||null,c=typeof e.getAuth=="function"?e.getAuth:null,u=typeof e.getContext=="function"?e.getContext:null,d=typeof e.classify=="function"?e.classify:J1,f=typeof e.beforeSend=="function"?e.beforeSend:null,p=e.batchMs!=null?e.batchMs:AF,h=e.maxBatch||EF,g=e.maxRetries!=null?e.maxRetries:OF,m=e.backoffMs||TF,y=e.queueLimit||RF,b=e.sampleRate!=null?e.sampleRate:1,x=e.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),v=[],w=[],A=null,E=null,O=()=>{A||!v.length||(A=setTimeout(z,p))},S=U=>{if(E)return;let ee=m*Math.pow(2,Math.max(0,U-1));E=setTimeout(()=>{if(E=null,!w.length)return;let oe=w.shift();K(oe.envelope,oe.attempt)},ee)},B=U=>{let ee=u?IF(u):null,oe={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:l,page:$F(),user:ee?.user||null,traits:ee?.traits||null,tags:ee?.tags||null,events:U};if(f)try{return f(oe)||null}catch{return oe}return oe},K=async(U,ee=1)=>{if(U)try{let oe=!0;if(r){let ce=await r(U);oe=ce!==!1&&ce?.ok!==!1}else oe=await FF(t,U,{apiKey:n,getAuth:c});!oe&&ee<g&&(w.push({envelope:U,attempt:ee+1}),S(ee+1))}catch{ee<g&&(w.push({envelope:U,attempt:ee+1}),S(ee+1))}},z=(U=!1)=>{if(A&&(clearTimeout(A),A=null),!v.length)return;let ee=v;v=[];let oe=B(ee);if(oe){if(U&&vy&&navigator.sendBeacon&&t){let ce=PF(oe);if(ce)try{navigator.sendBeacon(t,new C.Blob([ce],{type:"application/json"}));return}catch{}}K(oe)}};vy&&(C.addEventListener("pagehide",()=>z(!0),{passive:!0}),C.addEventListener("beforeunload",()=>z(!0),{passive:!0}),C.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&z(!0)},{passive:!0}));let D=U=>{if(!U||b<1&&Math.random()>b)return;let ee={...U,log_type:d(U)};v.push(ee),v.length>y&&(v=v.slice(-y)),v.length>=h?z():O()};return D.flush=()=>z(!1),D.sessionId=x,D},IF=e=>{try{return e()}catch{return null}},FF=async(e,t,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(e,{method:"POST",headers:o,body:JSON.stringify(t),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var jF={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},DF="\x1B[0m",bu=typeof C<"u"&&typeof C.document<"u",Q1=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(bu)i(a,s);else{let l=jF[s.level]||"";i(`${l}${a}${DF}`,s)}}},eC=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),l=(o-s+r)%r;for(let c=0;c<s;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,s=0}},i},tC=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=bu?new C.Blob([l],{type:"application/json"}):l;if(bu&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};bu&&(C.addEventListener("pagehide",i,{passive:!0}),C.addEventListener("beforeunload",i,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Z1={console:Q1,memory:eC,beacon:tC,remote:wy},_y=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=Z1[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=Z1[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};I();var LF=typeof C<"u"&&typeof C.document<"u",MF=new Set(["password","hidden"]),rC=(e,t)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(i-r))))}},Sy="__analyzeKeyPath",bo=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[Sy])return t[Sy];let r=[],n=t,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${l}${c}`,key:null,path:null}}try{t[Sy]=i}catch{}return i},NF=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},BF=e=>!!(!e||e.tagName==="INPUT"&&MF.has(e.type)||yu.test(e.name||"")||yu.test(e.id||"")||e.dataset?.analyze==="skip"),ky=e=>{if(!LF)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(s,i,a,l)=>{s.addEventListener(i,a,l),n.push(()=>s.removeEventListener(i,a,l))};if(t.errors&&(o(C,"error",s=>{e.emit(ae("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(C,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ae("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),t.pointer){o(C,"click",i=>{e.emit(ae("pointer","info",{hook:"click",target:bo(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:nC(i)}))},{passive:!0,capture:!0}),o(C,"dblclick",i=>{e.emit(ae("pointer","info",{hook:"dblclick",target:bo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(C,"contextmenu",i=>{e.emit(ae("pointer","info",{hook:"contextmenu",target:bo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=rC(i=>{e.emit(ae("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(C,"pointermove",s,{passive:!0})}if(t.keyboard&&o(C,"keydown",s=>{e.emit(ae("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:nC(s),target:bo(s)}))},{passive:!0,capture:!0}),t.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=BF(a),c=a.dataset?.analyze==="track",u=null;c&&!l?u=a.value:e.config.maskFormValues!==!1&&(u=NF(a.value,e.config.maskStrategy)),e.emit(ae("forms","info",{hook:i.type,target:bo(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(C,"input",s,{passive:!0,capture:!0}),o(C,"change",s,{passive:!0,capture:!0}),o(C,"submit",i=>{e.emit(ae("forms","info",{hook:"submit",target:bo(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=rC(()=>{e.emit(ae("scroll","trace",{hook:"scroll",x:C.scrollX,y:C.scrollY}))},r.scroll);o(C,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=gs(()=>{e.emit(ae("viewport","info",{hook:"resize",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},r.resize);o(C,"resize",s,{passive:!0}),o(C,"orientationchange",()=>{e.emit(ae("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,"visibilitychange",()=>{e.emit(ae("viewport","info",{hook:"visibilitychange",hidden:C.document.hidden}))},{passive:!0}),e.emit(ae("viewport","info",{hook:"initial",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))}if(t.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{e.emit(ae("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(VF)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(ae("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},nC=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),VF=e=>{if(e==null)return e;if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};I();var zF=typeof C<"u"&&typeof C.document<"u";var Cy=e=>{if(zF&&e.config.capture.network){if(typeof C.fetch=="function"){let t=C.fetch.bind(C),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(ae("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(ae("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(ae("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:l,durationMs:c})),l})};C.fetch=r,e.__teardown.push(()=>{C.fetch=t})}if(typeof C.XMLHttpRequest=="function"){let t=C.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(ae("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i,u=this.status>=200&&this.status<400;e.emit(ae("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i;e.emit(ae("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var WF={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},UF={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},HF={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},qF={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},KF=e=>{let t={...WF,...e};return t.replay&&Object.assign(t,UF),t.telemetry&&Object.assign(t,HF),t.remote&&Object.assign(t,qF),t},GF=64,XF=()=>{if(typeof C>"u"||!C.location)return null;try{return new URLSearchParams(C.location.search).get("analyze")||null}catch{return null}},Ay=(e={})=>{let t=e===!0?{}:{...e};t.capture=KF(t.capture||{});let r=XF();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=mu(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=xy(n),n.__sinks=_y(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&my(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<GF&&n.__preBuffer.push(s);return}o(),oC(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)oC(n,a)}try{ky(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Cy(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=mu(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},oC=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let s of e.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var Ft=Object.create(null);Ft.open="0";Ft.close="1";Ft.ping="2";Ft.pong="3";Ft.message="4";Ft.upgrade="5";Ft.noop="6";var Hi=Object.create(null);Object.keys(Ft).forEach(e=>{Hi[Ft[e]]=e});var qi={type:"error",data:"parser error"};var aC=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",lC=typeof ArrayBuffer=="function",cC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ki=({type:e,data:t},r,n)=>aC&&t instanceof Blob?r?n(t):sC(t,n):lC&&(t instanceof ArrayBuffer||cC(t))?r?n(t):sC(new Blob([t]),n):n(Ft[e]+(t||"")),sC=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function iC(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Ey;function uC(e,t){if(aC&&e.data instanceof Blob)return e.data.arrayBuffer().then(iC).then(t);if(lC&&(e.data instanceof ArrayBuffer||cC(e.data)))return t(iC(e.data));Ki(e,!1,r=>{Ey||(Ey=new TextEncoder),t(Ey.encode(r))})}var fC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<fC.length;e++)Gi[fC.charCodeAt(e)]=e;var dC=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=Gi[e.charCodeAt(n)],i=Gi[e.charCodeAt(n+1)],a=Gi[e.charCodeAt(n+2)],l=Gi[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};var YF=typeof ArrayBuffer=="function",Xi=(e,t)=>{if(typeof e!="string")return{type:"message",data:pC(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:JF(e.substring(1),t)}:Hi[r]?e.length>1?{type:Hi[r],data:e.substring(1)}:{type:Hi[r]}:qi},JF=(e,t)=>{if(YF){let r=dC(e);return pC(r,t)}else return{base64:!0,data:e}},pC=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var hC="",gC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Ki(s,!1,a=>{n[i]=a,++o===r&&t(n.join(hC))})})},mC=(e,t)=>{let r=e.split(hC),n=[];for(let o=0;o<r.length;o++){let s=Xi(r[o],t);if(n.push(s),s.type==="error")break}return n};function yC(){return new TransformStream({transform(e,t){uC(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 Oy;function xu(e){return e.reduce((t,r)=>t+r.length,0)}function vu(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 bC(e,t){Oy||(Oy=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(xu(r)<1)break;let l=vu(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(xu(r)<2)break;let l=vu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(xu(r)<8)break;let l=vu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(qi);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(xu(r)<o)break;let l=vu(r,o);a.enqueue(Xi(s?l:Oy.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(qi);break}}}})}var Ty=4;function ge(e){if(e)return ZF(e)}function ZF(e){for(var t in ge.prototype)e[t]=ge.prototype[t];return e}ge.prototype.on=ge.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ge.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ge.prototype.off=ge.prototype.removeListener=ge.prototype.removeAllListeners=ge.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};ge.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};ge.prototype.emitReserved=ge.prototype.emit;ge.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ge.prototype.hasListeners=function(e){return!!this.listeners(e).length};var ur=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Ve=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),xC="arraybuffer";function wu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var QF=Ve.setTimeout,ej=Ve.clearTimeout;function fr(e,t){t.useNativeTimers?(e.setTimeoutFn=QF.bind(Ve),e.clearTimeoutFn=ej.bind(Ve)):(e.setTimeoutFn=Ve.setTimeout.bind(Ve),e.clearTimeoutFn=Ve.clearTimeout.bind(Ve))}var tj=1.33;function vC(e){return typeof e=="string"?rj(e):Math.ceil((e.byteLength||e.size)*tj)}function rj(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 _u(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function wC(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function _C(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 Su=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},dr=class extends ge{constructor(t){super(),this.writable=!1,fr(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Su(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Xi(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_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(t){let r=wC(t);return r.length?"?"+r:""}};var Yi=class extends dr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};mC(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,gC(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=_u()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var SC=!1;try{SC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var kC=SC;function nj(){}var Ry=class extends Yi{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Nr=class e extends ge{constructor(t,r,n){super(),this.createRequest=t,fr(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=wu(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=e.requestsCount++,e.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=nj,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.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()}};Nr.requestsCount=0;Nr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",CC);else if(typeof addEventListener=="function"){let e="onpagehide"in Ve?"pagehide":"unload";addEventListener(e,CC,!1)}}function CC(){for(let e in Nr.requests)Nr.requests.hasOwnProperty(e)&&Nr.requests[e].abort()}var oj=(function(){let e=AC({xdomain:!1});return e&&e.responseType!==null})(),Br=class extends Ry{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=oj&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Nr(AC,this.uri(),t)}};function AC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||kC))return new XMLHttpRequest}catch{}if(!t)try{return new Ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var EC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",$y=class extends dr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=EC?{}:wu(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Ki(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ur(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=_u()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Py=Ve.WebSocket||Ve.MozWebSocket,Vr=class extends $y{createSocket(t,r,n){return EC?new Py(t,r,n):r?new Py(t,r):new Py(t)}doWrite(t,r){this.ws.send(r)}};var xo=class extends dr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=bC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=yC();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&ur(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Iy={websocket:Vr,webtransport:xo,polling:Br};var sj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ij=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vo(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=sj.exec(e||""),s={},i=14;for(;i--;)s[ij[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=aj(s,s.path),s.queryKey=lj(s,s.query),s}function aj(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 lj(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Fy=typeof addEventListener=="function"&&typeof removeEventListener=="function",ku=[];Fy&&addEventListener("offline",()=>{ku.forEach(e=>e())},!1);var _n=class e extends ge{constructor(t,r){if(super(),this.binaryType=xC,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=vo(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=vo(r.host).host);fr(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=_C(this.opts.query)),Fy&&(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"})},ku.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Ty,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&&e.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",e.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 r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=vC(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ur(()=>{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(e.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(),Fy&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=ku.indexOf(this._offlineEventListener);n!==-1&&ku.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};_n.protocol=Ty;var Cu=class extends _n{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;_n.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;_n.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function s(){n||(n=!0,u(),r.close(),r=null)}let i=d=>{let f=new Error("probe error: "+d);f.transport=r.name,s(),this.emitReserved("upgradeError",f)};function a(){i("transport closed")}function l(){i("socket closed")}function c(d){r&&d.name!==r.name&&s()}let u=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},wo=class extends Cu{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Iy[o]).filter(o=>!!o)),super(t,n)}};var J9=wo.protocol;function OC(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=vo(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 s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Vy={};X(Vy,{Decoder:()=>Ny,Encoder:()=>My,PacketType:()=>Q,isPacketValid:()=>Tj,protocol:()=>NC});var uj=typeof ArrayBuffer=="function",fj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,TC=Object.prototype.toString,dj=typeof Blob=="function"||typeof Blob<"u"&&TC.call(Blob)==="[object BlobConstructor]",pj=typeof File=="function"||typeof File<"u"&&TC.call(File)==="[object FileConstructor]";function Zi(e){return uj&&(e instanceof ArrayBuffer||fj(e))||dj&&e instanceof Blob||pj&&e instanceof File}function Ji(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Ji(e[r]))return!0;return!1}if(Zi(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ji(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Ji(e[r]))return!0;return!1}function RC(e){let t=[],r=e.data,n=e;return n.data=jy(r,t),n.attachments=t.length,{packet:n,buffers:t}}function jy(e,t){if(!e)return e;if(Zi(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]=jy(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]=jy(e[n],t));return r}return e}function PC(e,t){return e.data=Dy(e.data,t),delete e.attachments,e}function Dy(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]=Dy(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Dy(e[r],t));return e}var LC=k0(DC(),1),Ly=(0,LC.default)("socket.io-parser"),MC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],NC=5,Q;(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"})(Q||(Q={}));var My=class{constructor(t){this.replacer=t}encode(t){return Ly("encoding packet %j",t),(t.type===Q.EVENT||t.type===Q.ACK)&&Ji(t)?this.encodeAsBinary({type:t.type===Q.EVENT?Q.BINARY_EVENT:Q.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Q.BINARY_EVENT||t.type===Q.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),Ly("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=RC(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Ny=class e extends ge{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===Q.BINARY_EVENT;n||r.type===Q.BINARY_ACK?(r.type=n?Q.EVENT:Q.ACK,this.reconstructor=new By(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Zi(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(Q[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Q.BINARY_EVENT||n.type===Q.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(!BC(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(e.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Ly("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 Q.CONNECT:return Ou(r);case Q.DISCONNECT:return r===void 0;case Q.CONNECT_ERROR:return typeof r=="string"||Ou(r);case Q.EVENT:case Q.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&MC.indexOf(r[0])===-1);case Q.ACK:case Q.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},By=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=PC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Aj(e){return typeof e=="string"}var BC=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Ej(e){return e===void 0||BC(e)}function Ou(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oj(e,t){switch(e){case Q.CONNECT:return t===void 0||Ou(t);case Q.DISCONNECT:return t===void 0;case Q.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&MC.indexOf(t[0])===-1);case Q.ACK:return Array.isArray(t);case Q.CONNECT_ERROR:return typeof t=="string"||Ou(t);default:return!1}}function Tj(e){return Aj(e.nsp)&&Ej(e.id)&&Oj(e.type,e.data)}function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var Rj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Co=class extends ge{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[rt(t,"open",this.onopen.bind(this)),rt(t,"packet",this.onpacket.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,s;if(Rj.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:Q.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),i.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Q.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Q.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 Q.EVENT:case Q.BINARY_EVENT:this.onevent(t);break;case Q.ACK:case Q.BINARY_ACK:this.onack(t);break;case Q.DISCONNECT:this.ondisconnect();break;case Q.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Q.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Q.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function kn(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}kn.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};kn.prototype.reset=function(){this.attempts=0};kn.prototype.setMin=function(e){this.ms=e};kn.prototype.setMax=function(e){this.max=e};kn.prototype.setJitter=function(e){this.jitter=e};var Ao=class extends ge{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,fr(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new kn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Vy;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new wo(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=rt(r,"open",function(){n.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(rt(t,"ping",this.onping.bind(this)),rt(t,"data",this.ondata.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this)),rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){ur(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Co(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var Qi={};function Eo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=OC(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Qi[o]&&s in Qi[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Ao(n,t):(Qi[o]||(Qi[o]=new Ao(n,t)),l=Qi[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Eo,{Manager:Ao,Socket:Co,io:Eo,connect:Eo});I();var Pj=new Set(["__proto__","constructor","prototype"]),VC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(Pj.has(e[t]))return!1;return!0},$j=(e,t)=>{!e||!VC(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},Ij=(e,t,r,n=!1)=>{!e||!VC(t)||t.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},e)},zC=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,s]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":$j(e,o);break;case"update":case"set":Ij(e,o,s,!0);break;default:break}return r};var Fj=Object.create,Pb=Object.defineProperty,jj=Object.getOwnPropertyDescriptor,Dj=Object.getOwnPropertyNames,Lj=Object.getPrototypeOf,Mj=Object.prototype.hasOwnProperty,Y=(e,t)=>()=>(e&&(t=e(e=0)),t),$b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J=(e,t)=>{for(var r in t)Pb(e,r,{get:t[r],enumerable:!0})},Nj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Dj(t))!Mj.call(e,o)&&o!==r&&Pb(e,o,{get:()=>t[o],enumerable:!(n=jj(t,o))||n.enumerable});return e},Bj=(e,t,r)=>(r=e!=null?Fj(Lj(e)):{},Nj(t||!e||!e.__esModule?Pb(r,"default",{value:e,enumerable:!0}):r,e)),Ib,Fb,ie,be,qf=Y(()=>{"use strict";Ib=globalThis,Fb=globalThis,ie=globalThis,be=ie.document}),Ua,Kf,st,Gf=Y(()=>{"use strict";qf(),Ua=e=>(typeof Node=="object"?e instanceof ie.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Kf=e=>(typeof HTMLElement=="object"?e instanceof ie.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,st=e=>typeof ie<"u"&&(ie.Node&&e instanceof ie.Node||ie.Window&&e instanceof ie.Window||e===ie||e===document)}),j,P,Pn,F,Ju,Zu,H,Qu,le,zo,Bt,fa,Jt,jb,Fe=Y(()=>{"use strict";Gf(),j=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,P=e=>typeof e=="string",Pn=e=>typeof e=="number",F=e=>typeof e=="function",Ju=e=>e===!0||e===!1,Zu=e=>e===null,H=e=>Array.isArray(e),Qu=e=>e instanceof Date,le=e=>e===null?!1:typeof e=="object",zo=e=>e!==void 0,Bt=e=>e===void 0,fa={boolean:Ju,array:H,object:j,string:P,date:Qu,number:Pn,null:Zu,function:F,objectLike:le,node:Ua,htmlElement:Kf,defined:zo},Jt=e=>(...t)=>t.some(r=>fa[r](e)),jb=e=>(...t)=>!t.some(r=>fa[r](e))}),Db,Lb,Mb,Nb,Fa,Xf,Bb,Vb,Yf,zb,Wb,Ub,Hb,qb,Kb,Gb,ja,Jf,Ha=Y(()=>{"use strict";Kr(),Fe(),Db=(e,t)=>t.every(r=>e.includes(r)),Lb=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Mb=(e,t)=>{if(P(t)&&(t=parseInt(t)),Pn(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Nb=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Fa=(...e)=>[].concat(...e),Xf=(e,t=[])=>e.reduce((r,n)=>er(r,et(n,{exclude:t}),t),{}),Bb=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Vb=(e,t)=>{if(!H(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Yf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},zb=(e,t)=>e.filter(r=>r!==t),Wb=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Ub=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Hb=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},qb=(e,t)=>e.filter(r=>!t.includes(r)),Kb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Gb=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},ja=e=>H(e)?[...new Set(e)]:e,Jf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function JA(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=ZA[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=Fo(h,f);return String(g??"")}else{let p=Fo(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=Fo(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let w=Fo(v,f);if(w!=null&&typeof w!="object")return String(w)}}}let y=Fo(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Zf,Xb,ZA,Fo,qa,Yb,WC,Jb,Zb,Qb,UC,ex,tx,Qf=Y(()=>{"use strict";Zf=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Xb=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},ZA={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Fo=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),qa=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Yb=(e,t)=>{let r=e.split(`
|
|
74
|
-
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},WC=/\\([0-7]{1,3})/g,
|
|
75
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),UC=/[^a-zA-Z0-9\s]/g,ex=e=>e.replace(UC,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),tx=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),qo,ed,rx,On,Tn,Da,td,nx,
|
|
76
|
-
`;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(HC.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,
|
|
73
|
+
${i}`}var ny=null;function Jc(e){ny=e}var It={structuralHash:Xc,deepEqual:Yc,mergeStructural:ty,overwriteDeep:ry,shortHash:Dr,toKebab:fo,sanitizeValue:$i,batchShortHash:t1,atomicCssClass:n1,batchAtomicCss:s1,compoundCssClass:i1},a1=!1,Zc=null;function l1(e){return Zc||(Zc=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(It.structuralHash=t.structuralHash),t.deepEqual&&(It.deepEqual=t.deepEqual),t.mergeStructural&&(It.mergeStructural=t.mergeStructural),t.overwriteDeep&&(It.overwriteDeep=t.overwriteDeep),t.shortHash&&(It.shortHash=t.shortHash),t.toKebab&&(It.toKebab=t.toKebab),t.sanitizeValue&&(It.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(It.batchShortHash=t.batchShortHash),t.atomicCssClass&&(It.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(It.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(It.compoundCssClass=t.compoundCssClass),a1=!0,ny&&t.batchAtomicCss&&ny({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),Zc)}function c1(){return a1}I();var Ii={};K(Ii,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>np,DOMQ_PROPERTIES:()=>xr,ENV:()=>xp,HTML_TAGS:()=>Gn,METHODS:()=>zn,METHODS_EXL:()=>as,NODE_ENV:()=>kt,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>is,PROPS_METHODS:()=>vr,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>rp,SVG_TAGS:()=>jv,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Zl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Up,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>rs,addRef:()=>Pl,applyCSS:()=>sy,applyDependentState:()=>ch,applyEvent:()=>zl,applyEventUpdate:()=>Vl,applyExtends:()=>Mv,applyProps:()=>ks,arrayContainsOtherArray:()=>Dd,arraysEqual:()=>Hd,arrayzeValue:()=>ln,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>hh,call:()=>$h,captureSnapshot:()=>Fh,checkForStateTypes:()=>sh,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Kd,clone:()=>sp,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Op,concatAddExtends:()=>zp,copyJavaScriptToClipboard:()=>Qh,copyStringToClipboard:()=>Jh,createBasedOnType:()=>Rl,createElement:()=>oh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>_l,createIfConditionFlag:()=>Tp,createInheritedState:()=>ih,createKey:()=>hs,createNestedObject:()=>dp,createNestedObjectByKeyPath:()=>lh,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>nh,createScope:()=>fh,createSnapshotId:()=>ps,customDecodeURIComponent:()=>tp,customEncodeURIComponent:()=>ep,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Bd,debounce:()=>gs,debounceOnContext:()=>Cp,decodeNewlines:()=>Qd,deepClone:()=>he,deepContains:()=>up,deepDefaults:()=>ti,deepDestringifyFunctions:()=>lt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>ls,defineSetter:()=>Rh,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>Nh,detectInfiniteLoop:()=>mp,document:()=>pe,encodeNewlines:()=>Jd,error:()=>an,excludeKeysFromObject:()=>bp,exec:()=>de,extendCachedRegistry:()=>Vp,extendStackRegistry:()=>xs,extractArrayExtend:()=>ws,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Bh,filterArrays:()=>qd,filterArraysFast:()=>Gd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Yh,findInheritedState:()=>Nl,findKeyPosition:()=>Yd,flattenExtend:()=>Xn,formatDate:()=>Mh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Kh,get:()=>Eh,getActiveRoute:()=>Vm,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>Gp,getCdnProviderFromConfig:()=>Jn,getChildStateInKey:()=>Ml,getChildren:()=>zs,getContext:()=>Ks,getCookie:()=>Fp,getDB:()=>Qs,getEmotionStylesheet:()=>ng,getExtendsInElement:()=>Hp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Ld,getHashedExtend:()=>vs,getImportMapScript:()=>Lh,getInObjectByPath:()=>gp,getLocalStorage:()=>Dp,getNev:()=>Sp,getPageMetadata:()=>Xh,getParentStateInKey:()=>Ll,getPath:()=>Vs,getQuery:()=>ei,getRef:()=>Th,getRoot:()=>Hs,getRootContext:()=>Gs,getRootData:()=>qs,getRootState:()=>Us,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Kp,global:()=>Id,hasFunction:()=>Wn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>ap,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>wl,init:()=>po,initProps:()=>eh,is:()=>Ge,isArray:()=>$,isBoolean:()=>il,isContextComponent:()=>Xp,isCyclic:()=>yp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>lp,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Zo,isLocal:()=>_p,isMethod:()=>Ih,isMobile:()=>$p,isNode:()=>rr,isNot:()=>jd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Wt,isObject:()=>_,isObjectLike:()=>te,isPhoto:()=>zh,isProduction:()=>wr,isStaging:()=>wp,isState:()=>ah,isString:()=>k,isStringFunction:()=>Ep,isTest:()=>pl,isTesting:()=>vp,isUndefined:()=>$e,isUniversallyReservedKey:()=>jh,isValidHtmlTag:()=>Mp,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,lastLevel:()=>Kc,lastPathname:()=>Gc,loadCssFile:()=>Hh,loadJavascript:()=>qh,loadJavascriptFile:()=>Vh,loadJavascriptFileEmbedSync:()=>Uh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Gh,loadRemoteScript:()=>Qn,log:()=>Ph,logGroupIf:()=>Pp,logIf:()=>Rp,lookdown:()=>Ch,lookdownAll:()=>Ah,lookup:()=>kh,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>cp,map:()=>op,mapStringsWithContextComponents:()=>_s,matchRoute:()=>Nm,matchesComponentNaming:()=>Ht,memoize:()=>Ap,merge:()=>ye,mergeSharedLibraries:()=>ri,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,objectToString:()=>cs,objectizeStringProperty:()=>Ss,overwrite:()=>fs,overwriteDeep:()=>Ke,overwriteShallow:()=>rn,overwriteState:()=>uh,parse:()=>Yl,parseDeep:()=>Ns,parseQuery:()=>Bm,parseRoutePattern:()=>Mm,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Zs,propExists:()=>Jp,propertizeElement:()=>El,propertizeUpdate:()=>Zp,reinit:()=>oy,remove:()=>hw,removeChars:()=>eg,removeCookie:()=>jp,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Md,removeFromObject:()=>fp,removeNestedKeyByPath:()=>pp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>Vd,reorderArrayByValues:()=>Ud,replaceLiteralsWithObjectFields:()=>Jr,replaceOctalEscapeSequences:()=>Zd,resolveAsset:()=>Ye,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Zh,returnValueAsText:()=>Tl,router:()=>Xt,runGuards:()=>zm,runPluginHook:()=>Ct,scratchSystem:()=>mi,scratchUtils:()=>pn,self:()=>Fd,set:()=>oo,setActiveRootState:()=>Ws,setCookie:()=>Ip,setHashedExtend:()=>gl,setInObjectByPath:()=>hp,setLocalStorage:()=>Lp,setNodeStyles:()=>Kl,setProps:()=>Oh,setPropsPrototype:()=>Es,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ip,swapItemsInArray:()=>Nd,syncProps:()=>Ts,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>rg,toTitleCase:()=>tg,toggleFullscreen:()=>Dh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>dh,trimStringFromSymbols:()=>Xd,unstackArrayOfObjects:()=>es,update:()=>Qp,updateProps:()=>th,variables:()=>Js,verbose:()=>Zn,warn:()=>Xs,window:()=>C});I();I();var VI=R(),u1=(e=VI,t)=>{let r=_(t.localFile)?t.localFile:{},n=he(r.designSystem||{});return fe(e,n)},WI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},po=(e,t=WI)=>{let r=u1(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=oo({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=rc(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&&_e(a),c&&(_e({[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];_e(m)}l&&_e(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];_e(m)}return(f||d)&&Rc(i.svg,{document:t.document}),(h||p)&&$c(i.icons,{document:t.document}),i},Qc={},oy=(e,t=Qc)=>{let r=u1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=oo({verbose:!1,...r});if(!t.preventInject){if(_e({[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];_e(i)}_e(s.reset)}return s},sy=(e,t=Qc)=>{_e(e)},UI=(e,t=Qc)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(_e({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:e.CSS_MEDIA_VARS[s]}:o[s]=e.CSS_MEDIA_VARS[s];_e(o)}};var HI=(e,t=Qc)=>{};I();var f1=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,iy={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},d1=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},p1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=iy:t.router=ye(t.router||{},iy);let r=t.router,n=async(s,i)=>{let a=s.context?.window||C;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=f1(l);let d=l+c+u,f=s;if(r.customRouterElement){let p=d1(s,r.customRouterElement);p&&(f=p,s.routes&&(f.routes=s.routes))}f.routes&&await Xt(d,f,{},{initialRender:!0,pushState:!1})},o=!$e(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),qI(t,r),r},ay=(e,t)=>{if(t.router===!1)return;let r=t.router||iy;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Xt,o=t.window||C,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=f1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=d1(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",s))},qI=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return fe(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};I();var ly=C&&C.location?C.location.host.includes("dev."):_r(),h1=ly?"http://localhost:8080/get":"https://api.symbols.app/get",GI={endpoint:h1},g1=async(e,t=GI)=>{let r=t.endpoint||h1,n=t.serviceRoute?$(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(s){if(O(t.onError))return t.onError(s);console.error(s)}},KI=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await g1(e,r),o=ly||t.isDevelopment?lt(n):lt(n.releases[0]);r.serviceRoute?$(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ke(t[s],o[s.toLowerCase()])}):Ke(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ke(t[s],o[s.toLowerCase()])})}return t},XI=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await g1(e,n),s=ly||t.isDevelopment?lt(o):lt(o.releases[0]);r(s)}},m1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await KI(e,t)}catch(r){console.error(r)}},y1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&XI(t,r,n||(o=>{let s=o.designSystem;_(s)&&r.utils.init(s),_(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Fi=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{wn(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};I();var YI={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},ZI=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},eu=(e,t,r)=>{if(!e)return{};let n=O(e)?de(e,t,r):{...e};if(!_(n))return{};for(let o in n){let s=n[o];O(s)&&(s=de(s,t,r)),k(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var JI=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},tu=(e,t)=>{if(!(!_(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=YI[r];if(!o)continue;let s=ZI(o),i=t.querySelector(s)||JI(o,t);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var b1={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)}};sn();var x1=(e,t,r,n)=>{e&&Ls(e,t,r,n)},v1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=eu(e,t,r);tu(o,n)},w1=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},ho={routes:e=>e,metadata:v1,fetch:x1,$router:w1},_1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=v1),e.fetch!==!1&&(t.fetch=x1),e.router!==!1&&(t.$router=w1),t};var cy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},ru={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},nu={...cy,router:ru},QI={state:{},pages:{},components:{},router:ru,define:ho},Lr=QI;I();I();var S1=(e,t)=>te(e.extends)?e.extends:[];I();var E1=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;e.document=e.document||r;let n=e.window;return n&&n!==t&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),e.window=t):e.window=n||t,e.window},k1=(e="smbls")=>{let t={};for(let r in co)Object.prototype.hasOwnProperty.call(co,r)&&(Ht(r)?t[`smbls.${r}`]=co[r]:t[r]=co[r]);return t},O1=e=>e.components?{...k1(),...e.components}:k1(),T1=e=>({...Ii,...Wm,...pn,...e.utils,...e.snippets,...e.functions}),R1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),C1={},P1=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Er[s]||Jn(i)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=_r()&&n?`?${Math.random()}`:"",d=Ot(l,c,o)+u;try{if(C1[l])continue;C1[l]=!0,await Promise.race([Qn(d,{document:r,type:"module"}),new Promise((f,p)=>setTimeout(()=>p(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let p=Ot(l,c,"symbols")+u;await Promise.race([Qn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),2e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},$1=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||Jn(t.symbolsConfig)||"esmsh",o=async i=>async(a,l)=>{let u=(i.window||window).packages[a];return typeof u=="function"?u():u},s=async i=>async(a,l=n)=>{let{dependenciesOnDemand:c}=i,u=i.document||document,d=i.window||window;if(!d.packages[a]){let f=_r()?`?${Math.random()}`:"";if(c&&c[a]){let p=c[a],h=Ot(a,p,l)+f;try{await i.utils.loadRemoteScript(h,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=Ot(a,p,"symbols")+f;await i.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=Ot(a,"latest",l)+f;try{await i.utils.loadRemoteScript(p,{window:d,document:u})}catch(h){if(console.error(`Failed to load ${a} from ${l}:`,h),l!=="symbols"){let g=Ot(a,"latest","symbols")+f;await i.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=ye(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},eF=/\s+/g,I1=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,tF=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${I1(o,t)}`)}return r},rF=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=tF(e,t));let o=e.replace(eF," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},nF=()=>(e,t,r)=>{let n=I1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}F1()(t.classlist,t,t.state,!0)},F1=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:s,__classNames:i}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let l=s[a];if(!l){delete i[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=$r(l),i[a]=c}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&rF(i,t,t.node)}},oF=()=>({style:nF(),classlist:F1()}),sF=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],A1=!1,j1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||oF(),s=t.designSystem?fe(he(t.designSystem),Ri):he(Ri),i={};for(let p of sF)t[p]!==void 0&&(i[p]=t[p]);let a,l=A1&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=R(e)||R(),a&&(a.document=r),a?.CSS_VARS){Oe(a);try{if(_e({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let p={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?p[h]={[u]:a.CSS_MEDIA_VARS[h]}:p[h]=a.CSS_MEDIA_VARS[h];_e(p)}}finally{we()}}}else if(l){let p=mg(e,s,{cleanBase:!0});for(let g in i)p[g]=i[g];p.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,p.varPrefix=h,Oe(p);try{a=po(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...i,...n})}finally{we()}}else{let p=R();p&&(p.document=r),a=po(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...i,...n}),a&&a!==p&&(a.document=r),A1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Oe(d);try{for(let p in f){let h=f[p];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&_e(`@font-face { ${m} }`)}}finally{we()}}return[a,o]},D1=(e,t)=>{let r={};t.state&&fe(r,t.state),e&&e.state&&fe(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let l in i)r[l]=i[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,he(r)},L1=(e,t)=>{_(e.routes)&&_(t.pages)&&ye(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},M1=e=>{ri(e,e.sharedLibraries)};I();var B1="smbls_lang",iF="smbls_t_",aF="smbls_tv_",go={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},ji={};function Di(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function su(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var ou=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},N1=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=ou(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function iu(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),s=this?.state;if(s){let c=N1(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let a=(s?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(s){let c=N1(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=ou(c,e);if(u!==void 0)return u}}return e}async function au(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||iF,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):aF);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=go.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if(ji[i])return ji[i];let a=this;return ji[i]=(async()=>{try{let l=r.fetch,c=parseInt(go.get(s+e),10)||0,u,d,f;if(O(l)){let h=await l(e,c,a);if(!h||h.changed===!1)return;u=h.translations||h.data||h,d=h.version||0,f=!0}else if(_(l)){let h=a.getDB||(()=>t.fetch),g=O(h)?await h.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let x=b.data;if(!x||!x.changed)return;u=x.translations||{},d=x.version||0,f=!0}else return;if(!f||!u)return;go.set(o+e,JSON.stringify(u)),d&&go.set(s+e,String(d));let p={translations:{...n.translations||{}}};p.translations[e]=u,n.update&&n.update(p)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete ji[i]}})(),ji[i]}async function lu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||B1;go.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let l in s){let c=s[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(i[l]=c)}if(n.update&&n.update(i),s&&typeof s=="object")for(let l in s){let c=s[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&s){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function cu(e,t,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&_(o.fetch)){let i=this.getDB||(()=>n.fetch),a=O(i)?await i.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function uy(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||B1,s=go.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function uu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let s=e.lastIndexOf(".");if(s===-1)return o[e+n]??"";let i=e.substring(0,s).split("."),a=o;for(let l=0;l<i.length;l++){if(a==null)return"";a=a[i[l]]}return a==null?"":a[e.substring(s+1)+n]??""}catch{return""}}var fu={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,uy.call(e))}};var Li={polyglot:iu,getLocalStateLang:uu,getActiveLang:Di,getLang:Di,setLang:lu,getLanguages:su,loadTranslations:au,upsertTranslation:cu};sn();var du={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},pu=e=>parseFloat(e.toFixed(4)),lF=(e,t,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=t,l=Math.abs(o),c=n+l+s,u=r!==void 0?r:c/i*e,d=u/e,f=c/i,p=(n-a+s/2)/i-(d-f)/2,h=(l+s/2)/i-(d-f)/2;return{fontSize:`${pu(e/16)}rem`,lineHeight:`${pu(u)}px`,capHeightTrim:`${pu(-p)}em`,baselineTrim:`${pu(-h)}em`}},cF=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(e).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},uF=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let s=n[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(du[i])return du[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(du[a])return du[a]}}return null},z1=(e,t,r,n)=>{if(!e)return;let o=cF(t.fontSize,n);if(!o)return;let s=uF(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=lF(o,s,i),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},V1={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Mi={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"},bt=Object.create(null);for(let e in Mi)bt[Mi[e]]=e;var fy=Object.create(null);for(let e in Mi){let t=Mi[e];if(fy[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${fy[t]}"`);fy[t]=e}var Mr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Ni(e){return/^[A-Z]/.test(e)}function Bi(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function fF(e){return e.trim().split(/\s+/).filter(Boolean)}function W1(e){return e.replace(/_/g," ")}function dF(e){if(!e||typeof e!="string")return{};let t={},r=fF(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=bt[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=bt[n]||n;t[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=bt[s]||s;if(i.includes(",")){t[a]=i.split(",").map(W1);continue}t[a]=W1(i)}return t}function zi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?zi(r):r});let t={};for(let r in e){let n=e[r];if(Ni(r)){t[r]=dy(n);continue}let o=bt[r]||r;if(Bi(r)&&o===r){t[r]=dy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=dy(n)}return t}function dy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?zi(t):t}):typeof e=="object"?zi(e):e}function Vi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Vi(r):r});let t={};if(typeof e.in=="string"){let r=dF(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ni(r)){t[r]=py(n);continue}let o=bt[r]||r;if(Bi(r)&&o===r){t[r]=py(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=py(n)}return t}function py(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Vi(t):t}):typeof e=="object"?Vi(e):e}function pF(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function hF(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function U1(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):pF(e)}function hy(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=bt[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=bt[n]||n;t[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=bt[s]||s,l=hF(i);if(l.length>1){t[a]=l.map(U1);continue}t[a]=U1(i)}return t}function Wi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Wi(r):r});let t={};if(typeof e.in=="string"){let r=hy(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ni(r)){typeof n=="string"?t[r]=hy(n):t[r]=gy(n);continue}let o=bt[r]||r;if(Bi(r)&&o===r){typeof n=="string"?t[r]=hy(n):t[r]=gy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=gy(n)}return t}function gy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Wi(t):t}):typeof e=="object"?Wi(e):e}var gF={shorten:zi,stringify:Vi,stringifyFurther:Wi};function mF(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var yF=["components","pages","snippets"],hu={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=gF[t===!0?"shorten":t];if(n){for(let o of yF)e[o]&&(e[o]=mF(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var bF=0,xF=()=>`${Date.now().toString(36)}-${(bF++).toString(36)}`,ae=(e,t,r={})=>({id:xF(),ts:Date.now(),type:e,level:t,...r}),vF=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(" > ")},mo=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:vF(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var yo=e=>e?.context?.analyze,wF={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"}},_F=(e,{category:t,type:r,level:n})=>o=>{let s=yo(o);!s||!s.shouldCapture(t)||s.emit(ae(r,n,{hook:e,element:mo(o)}))},H1=e=>(t,r)=>{let n=yo(t);!n||!n.shouldCapture("state")||n.emit(ae("state","debug",{hook:e,element:mo(t),changedKeys:r?.changedKeys||null}))},Ui={name:"analyze",error(e,t){let r=yo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ae("error","error",{hook:t?.hook||"error",element:mo(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=yo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ae("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=yo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=yo(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(ae("update","debug",{hook:"update",element:mo(e),durationMs:r}))},beforeStateUpdate:H1("beforeStateUpdate"),stateUpdate:H1("stateUpdate")};for(let[e,t]of Object.entries(wF))Ui[e]=_F(e,t);I();var gu={error:0,warn:1,info:2,debug:3,trace:4};var my=(e,t)=>{let r=gu[e],n=gu[t];return r==null||n==null?!0:r<=n},mu=e=>gu[e]!=null?e:"warn";I();var yu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var SF=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},kF=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},yy=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>yy(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(SF(s,t)||yu.test(s)){let i=kF(e[s],r);i!==void 0&&(o[s]=i)}else o[s]=yy(e[s],t,r,n+1);return o},by=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...h}=n,g=yy(h,r,t,0);return{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...g}}};var q1=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=C,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:o,build:n,route:i},meta:{ua:r,viewport:l}}}},G1=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},K1=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<e)return null;if(r.set(o,i),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},X1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},Y1={redact:e=>by(e.config.redact||[],e.config.maskStrategy),enrich:e=>q1(e),summarize:()=>G1(),dedupe:e=>K1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>X1(e.config.sample||{})},CF=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=Y1[e];return r?r(t):null}return null},xy=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(Y1.redact(e));for(let s of r){let i=CF(s,e);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let l=a(i);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,p=!1;for(let h of c)if(f=h(f),f==null){p=!0;break}!p&&f!=null&&u.push(f)}return u}i=l}return i}};I();I();var vy=typeof C<"u"&&typeof C.document<"u",AF=5e3,EF=50,OF=3,TF=1500,RF=1e3,Z1=e=>e?e.level==="error"||e.type==="error"?"bug":e.type==="network"?"network":e.type==="console"?e.level==="error"||e.level==="warn"?"bug":"log":e.level==="warn"?"bug":e.level==="info"?"log":"verbose":"verbose",PF=e=>{try{return JSON.stringify(e)}catch{return null}},$F=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},IF=()=>{if(!vy)return null;let e=C.location,t=typeof navigator<"u"?navigator:null;return{url:e?.href||null,path:e?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:t?.userAgent||null,language:t?.language||null,languages:t?.languages||null,timezone:$F(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}:null}},wy=(e={})=>{let t=e.url,r=typeof e.transport=="function"?e.transport:null;if(!t&&!r)return()=>{};let n=e.apiKey||null,o=e.appKey||e.appId||null,s=e.tenantKey||e.tenant||null,i=e.release||null,a=e.env||null,l=e.sdk||null,c=typeof e.getAuth=="function"?e.getAuth:null,u=typeof e.getContext=="function"?e.getContext:null,d=typeof e.classify=="function"?e.classify:Z1,f=typeof e.beforeSend=="function"?e.beforeSend:null,p=e.batchMs!=null?e.batchMs:AF,h=e.maxBatch||EF,g=e.maxRetries!=null?e.maxRetries:OF,m=e.backoffMs||TF,y=e.queueLimit||RF,b=e.sampleRate!=null?e.sampleRate:1,x=e.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),v=[],w=[],A=null,T=null,E=()=>{A||!v.length||(A=setTimeout(V,p))},S=ne=>{if(T)return;let Q=m*Math.pow(2,Math.max(0,ne-1));T=setTimeout(()=>{if(T=null,!w.length)return;let oe=w.shift();H(oe.envelope,oe.attempt)},Q)},F=ne=>{let Q=u?FF(u):null,oe={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:l,page:IF(),user:Q?.user||null,traits:Q?.traits||null,tags:Q?.tags||null,events:ne};if(f)try{return f(oe)||null}catch{return oe}return oe},H=async(ne,Q=1)=>{if(ne)try{let oe=!0;if(r){let ce=await r(ne);oe=ce!==!1&&ce?.ok!==!1}else oe=await jF(t,ne,{apiKey:n,getAuth:c});!oe&&Q<g&&(w.push({envelope:ne,attempt:Q+1}),S(Q+1))}catch{Q<g&&(w.push({envelope:ne,attempt:Q+1}),S(Q+1))}},V=(ne=!1)=>{if(A&&(clearTimeout(A),A=null),!v.length)return;let Q=v;v=[];let oe=F(Q);if(oe){if(ne&&vy&&navigator.sendBeacon&&t){let ce=PF(oe);if(ce)try{navigator.sendBeacon(t,new C.Blob([ce],{type:"application/json"}));return}catch{}}H(oe)}};vy&&(C.addEventListener("pagehide",()=>V(!0),{passive:!0}),C.addEventListener("beforeunload",()=>V(!0),{passive:!0}),C.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&V(!0)},{passive:!0}));let W=ne=>{if(!ne||b<1&&Math.random()>b)return;let Q={...ne,log_type:d(ne)};v.push(Q),v.length>y&&(v=v.slice(-y)),v.length>=h?V():E()};return W.flush=()=>V(!1),W.sessionId=x,W},FF=e=>{try{return e()}catch{return null}},jF=async(e,t,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(e,{method:"POST",headers:o,body:JSON.stringify(t),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var DF={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},LF="\x1B[0m",bu=typeof C<"u"&&typeof C.document<"u",Q1=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(bu)i(a,s);else{let l=DF[s.level]||"";i(`${l}${a}${LF}`,s)}}},eC=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),l=(o-s+r)%r;for(let c=0;c<s;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,s=0}},i},tC=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=bu?new C.Blob([l],{type:"application/json"}):l;if(bu&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};bu&&(C.addEventListener("pagehide",i,{passive:!0}),C.addEventListener("beforeunload",i,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},J1={console:Q1,memory:eC,beacon:tC,remote:wy},_y=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=J1[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=J1[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};I();var MF=typeof C<"u"&&typeof C.document<"u",NF=new Set(["password","hidden"]),rC=(e,t)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(i-r))))}},Sy="__analyzeKeyPath",bo=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[Sy])return t[Sy];let r=[],n=t,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${l}${c}`,key:null,path:null}}try{t[Sy]=i}catch{}return i},BF=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},zF=e=>!!(!e||e.tagName==="INPUT"&&NF.has(e.type)||yu.test(e.name||"")||yu.test(e.id||"")||e.dataset?.analyze==="skip"),ky=e=>{if(!MF)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(s,i,a,l)=>{s.addEventListener(i,a,l),n.push(()=>s.removeEventListener(i,a,l))};if(t.errors&&(o(C,"error",s=>{e.emit(ae("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(C,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ae("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),t.pointer){o(C,"click",i=>{e.emit(ae("pointer","info",{hook:"click",target:bo(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:nC(i)}))},{passive:!0,capture:!0}),o(C,"dblclick",i=>{e.emit(ae("pointer","info",{hook:"dblclick",target:bo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(C,"contextmenu",i=>{e.emit(ae("pointer","info",{hook:"contextmenu",target:bo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=rC(i=>{e.emit(ae("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(C,"pointermove",s,{passive:!0})}if(t.keyboard&&o(C,"keydown",s=>{e.emit(ae("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:nC(s),target:bo(s)}))},{passive:!0,capture:!0}),t.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=zF(a),c=a.dataset?.analyze==="track",u=null;c&&!l?u=a.value:e.config.maskFormValues!==!1&&(u=BF(a.value,e.config.maskStrategy)),e.emit(ae("forms","info",{hook:i.type,target:bo(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(C,"input",s,{passive:!0,capture:!0}),o(C,"change",s,{passive:!0,capture:!0}),o(C,"submit",i=>{e.emit(ae("forms","info",{hook:"submit",target:bo(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=rC(()=>{e.emit(ae("scroll","trace",{hook:"scroll",x:C.scrollX,y:C.scrollY}))},r.scroll);o(C,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=gs(()=>{e.emit(ae("viewport","info",{hook:"resize",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},r.resize);o(C,"resize",s,{passive:!0}),o(C,"orientationchange",()=>{e.emit(ae("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,"visibilitychange",()=>{e.emit(ae("viewport","info",{hook:"visibilitychange",hidden:C.document.hidden}))},{passive:!0}),e.emit(ae("viewport","info",{hook:"initial",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))}if(t.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{e.emit(ae("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(VF)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(ae("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},nC=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),VF=e=>{if(e==null)return e;if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};I();var WF=typeof C<"u"&&typeof C.document<"u";var Cy=e=>{if(WF&&e.config.capture.network){if(typeof C.fetch=="function"){let t=C.fetch.bind(C),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(ae("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(ae("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(ae("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:l,durationMs:c})),l})};C.fetch=r,e.__teardown.push(()=>{C.fetch=t})}if(typeof C.XMLHttpRequest=="function"){let t=C.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(ae("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i,u=this.status>=200&&this.status<400;e.emit(ae("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i;e.emit(ae("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var UF={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},HF={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},qF={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},GF={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},KF=e=>{let t={...UF,...e};return t.replay&&Object.assign(t,HF),t.telemetry&&Object.assign(t,qF),t.remote&&Object.assign(t,GF),t},XF=64,YF=()=>{if(typeof C>"u"||!C.location)return null;try{return new URLSearchParams(C.location.search).get("analyze")||null}catch{return null}},Ay=(e={})=>{let t=e===!0?{}:{...e};t.capture=KF(t.capture||{});let r=YF();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=mu(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=xy(n),n.__sinks=_y(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&my(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<XF&&n.__preBuffer.push(s);return}o(),oC(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)oC(n,a)}try{ky(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Cy(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=mu(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},oC=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let s of e.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var Ft=Object.create(null);Ft.open="0";Ft.close="1";Ft.ping="2";Ft.pong="3";Ft.message="4";Ft.upgrade="5";Ft.noop="6";var Hi=Object.create(null);Object.keys(Ft).forEach(e=>{Hi[Ft[e]]=e});var qi={type:"error",data:"parser error"};var aC=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",lC=typeof ArrayBuffer=="function",cC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Gi=({type:e,data:t},r,n)=>aC&&t instanceof Blob?r?n(t):sC(t,n):lC&&(t instanceof ArrayBuffer||cC(t))?r?n(t):sC(new Blob([t]),n):n(Ft[e]+(t||"")),sC=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function iC(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Ey;function uC(e,t){if(aC&&e.data instanceof Blob)return e.data.arrayBuffer().then(iC).then(t);if(lC&&(e.data instanceof ArrayBuffer||cC(e.data)))return t(iC(e.data));Gi(e,!1,r=>{Ey||(Ey=new TextEncoder),t(Ey.encode(r))})}var fC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ki=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<fC.length;e++)Ki[fC.charCodeAt(e)]=e;var dC=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=Ki[e.charCodeAt(n)],i=Ki[e.charCodeAt(n+1)],a=Ki[e.charCodeAt(n+2)],l=Ki[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};var ZF=typeof ArrayBuffer=="function",Xi=(e,t)=>{if(typeof e!="string")return{type:"message",data:pC(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:JF(e.substring(1),t)}:Hi[r]?e.length>1?{type:Hi[r],data:e.substring(1)}:{type:Hi[r]}:qi},JF=(e,t)=>{if(ZF){let r=dC(e);return pC(r,t)}else return{base64:!0,data:e}},pC=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var hC="",gC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Gi(s,!1,a=>{n[i]=a,++o===r&&t(n.join(hC))})})},mC=(e,t)=>{let r=e.split(hC),n=[];for(let o=0;o<r.length;o++){let s=Xi(r[o],t);if(n.push(s),s.type==="error")break}return n};function yC(){return new TransformStream({transform(e,t){uC(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 Oy;function xu(e){return e.reduce((t,r)=>t+r.length,0)}function vu(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 bC(e,t){Oy||(Oy=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(xu(r)<1)break;let l=vu(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(xu(r)<2)break;let l=vu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(xu(r)<8)break;let l=vu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(qi);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(xu(r)<o)break;let l=vu(r,o);a.enqueue(Xi(s?l:Oy.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(qi);break}}}})}var Ty=4;function ge(e){if(e)return QF(e)}function QF(e){for(var t in ge.prototype)e[t]=ge.prototype[t];return e}ge.prototype.on=ge.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ge.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ge.prototype.off=ge.prototype.removeListener=ge.prototype.removeAllListeners=ge.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};ge.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};ge.prototype.emitReserved=ge.prototype.emit;ge.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ge.prototype.hasListeners=function(e){return!!this.listeners(e).length};var ur=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),ze=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),xC="arraybuffer";function wu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var ej=ze.setTimeout,tj=ze.clearTimeout;function fr(e,t){t.useNativeTimers?(e.setTimeoutFn=ej.bind(ze),e.clearTimeoutFn=tj.bind(ze)):(e.setTimeoutFn=ze.setTimeout.bind(ze),e.clearTimeoutFn=ze.clearTimeout.bind(ze))}var rj=1.33;function vC(e){return typeof e=="string"?nj(e):Math.ceil((e.byteLength||e.size)*rj)}function nj(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 _u(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function wC(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function _C(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 Su=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},dr=class extends ge{constructor(t){super(),this.writable=!1,fr(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Su(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Xi(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_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(t){let r=wC(t);return r.length?"?"+r:""}};var Yi=class extends dr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};mC(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,gC(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=_u()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var SC=!1;try{SC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var kC=SC;function oj(){}var Ry=class extends Yi{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Nr=class e extends ge{constructor(t,r,n){super(),this.createRequest=t,fr(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=wu(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=e.requestsCount++,e.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=oj,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.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()}};Nr.requestsCount=0;Nr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",CC);else if(typeof addEventListener=="function"){let e="onpagehide"in ze?"pagehide":"unload";addEventListener(e,CC,!1)}}function CC(){for(let e in Nr.requests)Nr.requests.hasOwnProperty(e)&&Nr.requests[e].abort()}var sj=(function(){let e=AC({xdomain:!1});return e&&e.responseType!==null})(),Br=class extends Ry{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=sj&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Nr(AC,this.uri(),t)}};function AC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||kC))return new XMLHttpRequest}catch{}if(!t)try{return new ze[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var EC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",$y=class extends dr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=EC?{}:wu(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Gi(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ur(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=_u()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Py=ze.WebSocket||ze.MozWebSocket,zr=class extends $y{createSocket(t,r,n){return EC?new Py(t,r,n):r?new Py(t,r):new Py(t)}doWrite(t,r){this.ws.send(r)}};var xo=class extends dr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=bC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=yC();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&ur(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Iy={websocket:zr,webtransport:xo,polling:Br};var ij=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,aj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vo(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=ij.exec(e||""),s={},i=14;for(;i--;)s[aj[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=lj(s,s.path),s.queryKey=cj(s,s.query),s}function lj(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 cj(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Fy=typeof addEventListener=="function"&&typeof removeEventListener=="function",ku=[];Fy&&addEventListener("offline",()=>{ku.forEach(e=>e())},!1);var _n=class e extends ge{constructor(t,r){if(super(),this.binaryType=xC,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=vo(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=vo(r.host).host);fr(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=_C(this.opts.query)),Fy&&(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"})},ku.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Ty,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&&e.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",e.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 r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=vC(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ur(()=>{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(e.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(),Fy&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=ku.indexOf(this._offlineEventListener);n!==-1&&ku.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};_n.protocol=Ty;var Cu=class extends _n{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;_n.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;_n.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function s(){n||(n=!0,u(),r.close(),r=null)}let i=d=>{let f=new Error("probe error: "+d);f.transport=r.name,s(),this.emitReserved("upgradeError",f)};function a(){i("transport closed")}function l(){i("socket closed")}function c(d){r&&d.name!==r.name&&s()}let u=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},wo=class extends Cu{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Iy[o]).filter(o=>!!o)),super(t,n)}};var X9=wo.protocol;function OC(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=vo(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 s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var zy={};K(zy,{Decoder:()=>Ny,Encoder:()=>My,PacketType:()=>J,isPacketValid:()=>Rj,protocol:()=>NC});var fj=typeof ArrayBuffer=="function",dj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,TC=Object.prototype.toString,pj=typeof Blob=="function"||typeof Blob<"u"&&TC.call(Blob)==="[object BlobConstructor]",hj=typeof File=="function"||typeof File<"u"&&TC.call(File)==="[object FileConstructor]";function Ji(e){return fj&&(e instanceof ArrayBuffer||dj(e))||pj&&e instanceof Blob||hj&&e instanceof File}function Zi(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Zi(e[r]))return!0;return!1}if(Ji(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zi(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Zi(e[r]))return!0;return!1}function RC(e){let t=[],r=e.data,n=e;return n.data=jy(r,t),n.attachments=t.length,{packet:n,buffers:t}}function jy(e,t){if(!e)return e;if(Ji(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]=jy(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]=jy(e[n],t));return r}return e}function PC(e,t){return e.data=Dy(e.data,t),delete e.attachments,e}function Dy(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]=Dy(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Dy(e[r],t));return e}var LC=kv(DC(),1),Ly=(0,LC.default)("socket.io-parser"),MC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],NC=5,J;(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"})(J||(J={}));var My=class{constructor(t){this.replacer=t}encode(t){return Ly("encoding packet %j",t),(t.type===J.EVENT||t.type===J.ACK)&&Zi(t)?this.encodeAsBinary({type:t.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===J.BINARY_EVENT||t.type===J.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),Ly("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=RC(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Ny=class e extends ge{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===J.BINARY_EVENT;n||r.type===J.BINARY_ACK?(r.type=n?J.EVENT:J.ACK,this.reconstructor=new By(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Ji(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(J[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===J.BINARY_EVENT||n.type===J.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(!BC(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(e.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Ly("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 J.CONNECT:return Ou(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r=="string"||Ou(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&MC.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},By=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=PC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Ej(e){return typeof e=="string"}var BC=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Oj(e){return e===void 0||BC(e)}function Ou(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tj(e,t){switch(e){case J.CONNECT:return t===void 0||Ou(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&MC.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t=="string"||Ou(t);default:return!1}}function Rj(e){return Ej(e.nsp)&&Oj(e.id)&&Tj(e.type,e.data)}function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var Pj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Co=class extends ge{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[rt(t,"open",this.onopen.bind(this)),rt(t,"packet",this.onpacket.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,s;if(Pj.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:J.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),i.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:J.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function kn(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}kn.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};kn.prototype.reset=function(){this.attempts=0};kn.prototype.setMin=function(e){this.ms=e};kn.prototype.setMax=function(e){this.max=e};kn.prototype.setJitter=function(e){this.jitter=e};var Ao=class extends ge{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,fr(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new kn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||zy;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new wo(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=rt(r,"open",function(){n.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(rt(t,"ping",this.onping.bind(this)),rt(t,"data",this.ondata.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this)),rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){ur(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Co(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var Qi={};function Eo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=OC(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Qi[o]&&s in Qi[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Ao(n,t):(Qi[o]||(Qi[o]=new Ao(n,t)),l=Qi[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Eo,{Manager:Ao,Socket:Co,io:Eo,connect:Eo});I();var $j=new Set(["__proto__","constructor","prototype"]),zC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if($j.has(e[t]))return!1;return!0},Ij=(e,t)=>{!e||!zC(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},Fj=(e,t,r,n=!1)=>{!e||!zC(t)||t.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},e)},VC=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,s]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":Ij(e,o);break;case"update":case"set":Fj(e,o,s,!0);break;default:break}return r};var jj=Object.create,Pb=Object.defineProperty,Dj=Object.getOwnPropertyDescriptor,Lj=Object.getOwnPropertyNames,Mj=Object.getPrototypeOf,Nj=Object.prototype.hasOwnProperty,X=(e,t)=>()=>(e&&(t=e(e=0)),t),$b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var r in t)Pb(e,r,{get:t[r],enumerable:!0})},Bj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lj(t))!Nj.call(e,o)&&o!==r&&Pb(e,o,{get:()=>t[o],enumerable:!(n=Dj(t,o))||n.enumerable});return e},zj=(e,t,r)=>(r=e!=null?jj(Mj(e)):{},Bj(t||!e||!e.__esModule?Pb(r,"default",{value:e,enumerable:!0}):r,e)),Ib,Fb,ie,be,qf=X(()=>{"use strict";Ib=globalThis,Fb=globalThis,ie=globalThis,be=ie.document}),Ua,Gf,st,Kf=X(()=>{"use strict";qf(),Ua=e=>(typeof Node=="object"?e instanceof ie.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Gf=e=>(typeof HTMLElement=="object"?e instanceof ie.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,st=e=>typeof ie<"u"&&(ie.Node&&e instanceof ie.Node||ie.Window&&e instanceof ie.Window||e===ie||e===document)}),D,P,Pn,j,Zu,Ju,U,Qu,le,Vo,Bt,fa,Zt,jb,Fe=X(()=>{"use strict";Kf(),D=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,P=e=>typeof e=="string",Pn=e=>typeof e=="number",j=e=>typeof e=="function",Zu=e=>e===!0||e===!1,Ju=e=>e===null,U=e=>Array.isArray(e),Qu=e=>e instanceof Date,le=e=>e===null?!1:typeof e=="object",Vo=e=>e!==void 0,Bt=e=>e===void 0,fa={boolean:Zu,array:U,object:D,string:P,date:Qu,number:Pn,null:Ju,function:j,objectLike:le,node:Ua,htmlElement:Gf,defined:Vo},Zt=e=>(...t)=>t.some(r=>fa[r](e)),jb=e=>(...t)=>!t.some(r=>fa[r](e))}),Db,Lb,Mb,Nb,Fa,Xf,Bb,zb,Yf,Vb,Wb,Ub,Hb,qb,Gb,Kb,ja,Zf,Ha=X(()=>{"use strict";Gr(),Fe(),Db=(e,t)=>t.every(r=>e.includes(r)),Lb=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Mb=(e,t)=>{if(P(t)&&(t=parseInt(t)),Pn(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Nb=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Fa=(...e)=>[].concat(...e),Xf=(e,t=[])=>e.reduce((r,n)=>er(r,et(n,{exclude:t}),t),{}),Bb=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},zb=(e,t)=>{if(!U(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Yf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Vb=(e,t)=>e.filter(r=>r!==t),Wb=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Ub=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Hb=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},qb=(e,t)=>e.filter(r=>!t.includes(r)),Gb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Kb=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},ja=e=>U(e)?[...new Set(e)]:e,Zf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function ZA(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=JA[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=Fo(h,f);return String(g??"")}else{let p=Fo(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=Fo(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let w=Fo(v,f);if(w!=null&&typeof w!="object")return String(w)}}}let y=Fo(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Jf,Xb,JA,Fo,qa,Yb,WC,Zb,Jb,Qb,UC,ex,tx,Qf=X(()=>{"use strict";Jf=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Xb=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},JA={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Fo=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),qa=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Yb=(e,t)=>{let r=e.split(`
|
|
74
|
+
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},WC=/\\([0-7]{1,3})/g,Zb=e=>e.replace(WC,(t,r)=>String.fromCharCode(parseInt(r,8))),Jb=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Qb=e=>e.replace(/\/\/\/\/\/n/g,`
|
|
75
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),UC=/[^a-zA-Z0-9\s]/g,ex=e=>e.replace(UC,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),tx=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),qo,ed,rx,On,Tn,Da,td,nx,Ga=X(()=>{"use strict";qo=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),ed=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),rx=["ref","parent","__element","__depends","__ref","__children","root"],On=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),Tn=new Set(["update","__element"]),Da=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),td=new Set(["node","context","extends","__element","__ref",...Da,...On,...Tn]),nx=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])}),Vy,Vr,Ne,ox,it,er,Wy,sx,et,da,HC,pa,qC,GC,KC,Do,XC,YC,ha,ZC,JC,QC,ix,ax,lx,ef,cx,ux,rd,nd,$n,tf,eA,fx,dx,rf,px,hx,gx,mx,yx,bx,xx,Gr=X(()=>{"use strict";qf(),Fe(),Ha(),Qf(),Kf(),Ga(),Vy="production",Vr=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,Ne=(e,t,r,n)=>{if(j(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(U(e)||D(e)&&!st(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return Ne(i,t,r,n)}}return e},ox=(e,t,r)=>{for(let n in t)e[n]=Ne(t[n],r)},it=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Vr(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},er=(e,t,r=td)=>Wy(e,t,r,null),Wy=(e,t,r,n)=>{if(e===t)return e;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===e&&n[s+1]===t)return e}let o=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||Vr(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(le(i)&&le(a)){let l=n||[];l.push(e,t),Wy(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},sx=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Vr(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},et=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=t,l=s||ie||globalThis;if(!le(e)||st(e))return e;if(i.has(e))return i.get(e);let c=U(e)?[]:{};i.set(e,c);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let d in e){if(!Object.prototype.hasOwnProperty.call(e,d)||Vr(d)||d==="__proto__"||(u?u.has(d):r.includes(d)))continue;let f=e[d];if(!(n&&f===void 0)&&!(o&&f===null)){if(st(f)){c[d]=f;continue}if(a&&d==="extends"&&U(f)){c[d]=Xf(f,r);continue}if(j(f)){c[d]=f;continue}le(f)?c[d]=et(f,{...t,visited:i}):c[d]=f}}return c},da=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(j(n))t[r]=n.toString();else if(D(n))t[r]={},da(n,t[r]);else if(U(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];D(i)?(o[s]={},da(i,o[s])):j(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},HC=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),pa=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
|
|
76
|
+
`;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(HC.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,U(i)){o+=`[
|
|
77
77
|
`;for(let c of i)le(c)&&c!==null?o+=`${n} ${pa(c,t+2)},
|
|
78
78
|
`:P(c)?o+=`${n} '${c}',
|
|
79
79
|
`:o+=`${n} ${c},
|
|
80
|
-
`;o+=`${n} ]`}else le(i)?o+=pa(i,t+1):P(i)?o+=
|
|
80
|
+
`;o+=`${n} ]`}else le(i)?o+=pa(i,t+1):P(i)?o+=Jf(i,[`
|
|
81
81
|
`,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
|
|
82
|
-
`}return o+=`${n}}`,o},qC=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],
|
|
82
|
+
`}return o+=`${n}}`,o},qC=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],GC=/^["[{]/,KC=/^(export|import)\s/,Do=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||KC.test(t)||!qC.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes("=>");return!(r===123&&!n||r===91||GC.test(t)&&!n)},XC=e=>(0,eval)(e),YC=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;s<l&&i>0;){let d=e[s];if(d==="/"&&e[s+1]==="/"){let f=e.indexOf(`
|
|
83
83
|
`,s);s=f===-1?l:f;continue}if(d==="/"&&e[s+1]==="*"){let f=e.indexOf("*/",s+2);s=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(s++;s<l;){if(e[s]==="\\"){s+=2;continue}if(e[s]===f){s++;break}if(f==="`"&&e[s]==="$"&&e[s+1]==="{"){s+=2;let p=1;for(;s<l&&p>0;)e[s]==="{"?p++:e[s]==="}"&&p--,s++;continue}s++}continue}if(d==="{"){i++,s++;continue}if(d==="}"){i--,s++;continue}if(i===1&&c.test(e.slice(s))){let f=s,p=0,h=s;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
|
|
84
84
|
`)){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},ha=(e,t={},r={window:{eval:XC}})=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(P(o))if(Do(o))try{t[n]=r.window.eval(`(${o})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),l=/Identifier '([^']+)' has already been declared/.exec(i),c=null;if(a){let u=String(o).trim();if(/^function[\s(]/.test(u))try{c=r.window.eval("(async "+u+")")}catch{}}else if(l){let u=l[1],d=YC(String(o),u);if(d&&d!==o)try{c=r.window.eval("("+d+")")}catch{}}c?t[n]=c:(typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+n+'" \u2014 function will be left as a string and el.call("'+n+'") will silently no-op. Reason: '+i+`.
|
|
85
|
-
First 200 chars of source: `+String(o).slice(0,200)),t[n]=o)}else t[n]=o;else if(
|
|
86
|
-
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else
|
|
85
|
+
First 200 chars of source: `+String(o).slice(0,200)),t[n]=o)}else t[n]=o;else if(U(o)){let s=t[n]=[];for(let i=0;i<o.length;i++){let a=o[i];if(P(a))if(Do(a))try{s.push(r.window.eval(`(${a})`))}catch(l){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${n}"). Reason: ${l&&l.message?l.message:String(l)}.
|
|
86
|
+
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else D(a)?s.push(ha(a)):s.push(a)}}else D(o)?t[n]=ha(o,t[n]):t[n]=o}return t},ZC="Set",JC="Map",QC=e=>!e||typeof e!="object"?e:e.__type===ZC&&Array.isArray(e.values)?new Set(e.values):e.__type===JC&&Array.isArray(e.entries)?new Map(e.entries):e,ix=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];P(o)&&Do(o)?r.push([n,o]):t[n]=QC(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
87
87
|
`);t[n]=ie.eval(`(function(__gs__) { ${s}
|
|
88
|
-
return (${o}); })`)(t)}catch{try{t[n]=ie.eval(`(${o})`)}catch{t[n]=o}}return t},ax=(e,t={verbose:!0})=>{try{return e?ie.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},lx=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),ef=e=>{for(let t in e)return!1;return!0},cx=e=>j(e)&&ef(e),ux=()=>Object.create(null),rd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&zr(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},nd=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)zr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},$n=(e,t,r={},n=new WeakMap)=>{if(!le(e)||!le(t)||st(e)||st(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&&zr(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];st(c)?e[a]=c:le(l)&&le(c)?e[a]=$n(l,c,r,n):c!==void 0&&(e[a]=c)}return e},tf=(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)||!tf(e[i],t[i],r))return!1}return!0},eA=new Set(["node","__ref"]),fx=(e,t,r=eA)=>{if(e===t)return!0;if(!le(e)||!le(t)||st(e)||st(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(st(c)||st(u)){if(c!==u)return!1}else if(le(c)&&le(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},dx=(e,t)=>{if(t==null)return e;if(Jt(t)("string","number"))delete e[t];else if(H(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},rf=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]=rf(e[r]));return t},px=(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},hx=(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]},gx=(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},mx=(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},yx=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(zy==="test"||zy==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},bx=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)},xx=(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}}),ga,od,sd,vx=Y(()=>{"use strict";Kr(),ga=(function(){let e=0;function t(){return e++,e}return t})(),od=ga,sd=(e,t,r)=>(Ne(r,e)||r||e.key||ga()).toString()}),Lt,wx,Wo,nf,_x,Sx,kx,id,Cx,Ga,QA=Y(()=>{"use strict";Lt="production",wx=Lt,Wo=(e=Lt)=>e==="production",nf=(e=Lt)=>e==="testing"||e==="test",_x=nf,Sx=(e=Lt)=>e==="staging",kx=(e=Lt)=>e==="local",id=(e=Lt)=>e==="development"||e==="dev"||e==="local",Cx=(e,t=Lt)=>t[e],Ga=(e=Lt)=>!Wo(e)});function eE(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 tE(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 Ax,Ex,tA,Ox,Xa,La,Ma,Ya=Y(()=>{"use strict";Ax=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Ex=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}}},tA=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Ox=e=>tA.test(e),Xa=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},La=(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},Ma=(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}}),Tx,Vj=Y(()=>{"use strict";Fe(),Kr(),Tx=(e,t)=>{let{__ref:r}=e,n=e.if;if(F(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}}),Rx,Px,zj=Y(()=>{"use strict";Rx=(e,...t)=>{e&&t.map(r=>console.log(r))},Px=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function rE(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 nE(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 $x,Ix,Fx,jx,Wj=Y(()=>{"use strict";Fe(),qf(),$x=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Ix=(e,t,r=365)=>{if(Bt(be)||Bt(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=/`},Fx=e=>{if(Bt(be)||Bt(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""},jx=e=>{Bt(be)||Bt(be.cookie)||(be.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Na,Dx,Lx,oE=Y(()=>{"use strict";Na={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"])},Dx=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"]),Lx=e=>Na.body.has(e)}),Tu,Uy,Ba,ad,Qe,Mx,of,ma,Nx,ya,sf,af,ba,lf,Lo,rA,Yt,Hy,xa,va,Bx,wa,Vx,zx,cf,uf,ff,df,pf,hf,Wx,Ux=Y(()=>{"use strict";Ha(),lE(),Kr(),Fe(),Tu="production",Uy=e=>e.sourcemap!==!1&&Tu!=="production",Ba=e=>{if(e.includes("+"))return e.split("+").filter(En);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!En(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},ad=(e,t,r)=>{let n=[],o=Ba(r);o&&(n=[...o]);let s=e.extends;return s&&(n=H(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},Mx=(e,t)=>{if(!e)return t;let{extends:r}=t,n=H(r)?r:[r],o=H(e)?e:[e];return{...t,extends:Fa(o,n)}},of=()=>Math.random().toString(36).substring(2),ma={},Nx={},ya=e=>ma[e.__hash],sf=(e,t)=>{let r=of();return P(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ma[r]=t),t},af=(e,t)=>e.__hash?t.concat(ya(e)):sf(e,t),ba=(e,t,r,n=new Set,o,s)=>{for(let i of e)H(i)?ba(i,t,r,n,o,s):Lo(i,t,r,n,o,void 0,s);return t},lf=(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&&Lo(a,t,r,n,o,s,i),t},Lo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(H(e))return ba(e,t,r,n,o,i);let a=s;return P(e)?(a=e,e=va(e,r)):i&&j(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?lf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},rA=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Yt=(e,t,r,n,o)=>{t=et(t);for(let s in t){if(rA.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?j(a)&&!H(a)?(r[s]=r[s]||{},Hy(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(j(i)&&j(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];En(s)?e[s]=Yt(i,a,l,n,c):Yt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(H(i)&&H(a))e[s]=i.concat(a);else if(H(i)&&j(a)){let l=Yt({},i);e[s]=Yt(l,a)}}}}return e},Hy=(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];j(s)&&!H(s)?(e[o]=e[o]||{},Hy(e[o],s,r,n)):e[o]=r}}},xa=(e,t,r)=>e.reduce((n,o,s)=>{let i=et(o),a=r?r[s]:void 0;return Yt(n,i,t,a)},{}),va=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(P(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&&(Tu==="test"||Tu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Bx=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),wa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ya(e)||[];let o=Lo(e,[],t,new Set,r,void 0,n);return r?o:af(e,o)},Vx=(e,t)=>{if(!e)return t;let r=H(e)?e:[e];return Fa(r,t)},zx=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(En(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},cf=(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 uf(e,t,r),ff(e,t,r),df(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),ja(n.__extends)},uf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},ff=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},df=(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},pf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Uy(r),a=i?[...n.__extends]:null,l=ja(n.__extends.map((c,u)=>va(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&&j(p)&&P(h)&&c.set(p,h)}let u=[],d=wa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=wa(l,o);n.__extendsStack=c}return n.__extendsStack},hf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Uy(r)){let s={},i=n.__extendsNames||[],a=xa(o,s,i),l={};Yt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=xa(o);Yt(e,s)}return e},Wx=(e,t,r={})=>(cf(e,t,r),pf(e,t,r),hf(e,t,r),e)});function sE(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function iE(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function aE(e,t,r){let{context:n}=t||{},[o]=Ba(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var En,lE=Y(()=>{"use strict";Ux(),Fe(),En=e=>{if(!P(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Uj(e,t){let{props:r,on:n}=t,o=qa(e.split("on")[1]),s=n[o],i=r[e];F(s)?n[o]=(...a)=>{if(s(...a)!==!1&&F(i))return i(...a)}:n[o]=i}var Hj=Y(()=>{"use strict";Qf(),Fe()});function Hx(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()&&(F(o)||o!=null&&Xa(this.context))){let f=qa(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=j(s)||F(s),l=j(i)||F(i);if(a||l)continue;let c=n.charAt(0);if(Yx.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=mf.test(n)||Xx.test(n)||uE(o),d=qo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function qx(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=F(o)||o!=null&&Xa(this.context);if(s&&i){Uj(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Yx.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=j(l)||F(l),d=j(c)||F(c),f=mf.test(n)||Xx.test(n),p=qo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Kx(e=this){let t=[];return Hx.call(this,e,{cachedKeys:t}),qx.call(this,e,{cachedKeys:t}),e}function cE(e={}){return e.on||(e.on={}),e.props||(e.props={}),Kx.call(this,e)}function Gx(e,t){this.__element.update({props:e},t)}function gf(e){let t={update:Gx.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var mf,Xx,Yx,nA,uE,ld,_a,Jx,Sa,ka,Ca,yf,Aa,Zx,Qx,fE=Y(()=>{"use strict";Ka(),Hj(),Kr(),Fe(),Qf(),Ya(),mf=/^[A-Z]/,Xx=/^\d+$/,Yx=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),nA=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),uE=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(nA.has(t)||mf.test(t))return!0;return!1},ld=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return le(n)?{...n}:(o.__propsStack.push(n),{})},_a=e=>Jt(e)("string","number")?{inheritedString:e}:e,Jx=(e,t)=>!e||!t.length?!1:t.includes(e),Sa=(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=_a(i);n.unshift(l)}if(s){let l=_a(s);n.unshift(l)}return n},ka=e=>{let t=new Set;return e.filter(r=>!r||Tn.has(r)||t.has(r)?!1:(t.add(r),!0))},Ca=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Tn.has(o))return n;for(;F(o);)o=Ne(o,t);return er(n,et(o,{exclude:Tn}))},{}),gf(t),t.props),yf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Sa(e,t)]),j(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),H(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=ka(o),n.__propsStack},Aa=(e,t)=>{let{__ref:r}=e,n=yf(e,t);n.length?Ca(n,e):(r.__propsStack=[],e.props={})},Zx=function(e,t,r){let{__ref:n}=e;if(n.__if)Aa(e,t);else try{Aa(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return gf(e),e},Qx=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Sa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=ka(o),n.__propsStack.length&&Ca(n.__propsStack,t),t}}),qy,bf,xf,vf,wf,ev,_f,Sf,kf,tv,qj=Y(()=>{"use strict";Ux(),vx(),Gf(),fE(),oE(),Fe(),qy="production",bf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Na.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},xf=(e,t,r)=>{if(e===void 0)return(qy==="test"||qy==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Jt(e)("string","number")?bf(e,t,r):F(e)?{props:e}:e},vf=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},wf=(e,t,r,n,o)=>{if(!t)return o;if(Ua(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},ev=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},_f=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Sf=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),kf=(e,t,r)=>{let n=vf(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=ad(e,t,r),n.path=_f(e,t,r),n},tv=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:xf(e,t,r);if(!s)return;let i=wf(s,t,r,n,o),a=sd(s,i,r);kf(s,i,a);let l=ld(s,i,a),c=Sf(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),rv,Cf,Af,Ef,Of,nv,Tf,ov,sv,iv,av,Kj=Y(()=>{"use strict";Ha(),Ka(),Kr(),Fe(),rv=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Jt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Cf=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Af=(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},Ef=(e,t,r={})=>{let n=P(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]},Of=(e,t,r={})=>{let n=e.__ref.__state;if(!Tf(e))return;let o=Cf(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=Af(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Ef(n,s,r)},nv=(e,t)=>{let r=e.__ref,n=Of(e,t);if(n===void 0)return e.state;if(Jt(n)("object","array"))return et(n);if(Jt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Tf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Jt(r)("number","string","boolean"))},ov=function(e){return le(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},sv=(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},iv=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=et(n,On),s={[e.key]:o},i=j(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Jf(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},av=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){er(e,t,On);return}(o?nd:$n)(e,t,On)}}),lv,Gj=Y(()=>{"use strict";lv=(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&&Object.setPrototypeOf(e.scope,i)}}}),Ky,Rf,Uo,Pf,cv,dE=Y(()=>{"use strict";Fe(),Ya(),Ky=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Rf=(e,t,r,n,o)=>{if(e=La(e,t),!!F(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}},Uo=(e,t,r)=>{if(!t)throw new Error("Element is required");Ma(e,t,r);let n=Ky(e,t);if(n){let{state:o,context:s}=t;return Rf(n,t,o,s,r)}},Pf=(e,t,r,n,o,s)=>{if(e=La(e,r),!!F(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}},cv=(e,t,r,n)=>{Ma(e,r,t,n);let o=Ky(e,r);if(o){let{state:s,context:i}=r;return Pf(o,t,r,s,i,n)}}}),uv,cd,pE=Y(()=>{"use strict";uv={},cd={}}),hE={};J(hE,{setup:()=>gE,supabaseAdapter:()=>pb});var Gy,oA,gE,Ru,sA,pb,Xj=Y(()=>{"use strict";Gy=new Map,oA=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,gE=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=oA(l,t,o===!1),u=Gy.get(c);return u||(u=await n(l,t,a),u?.auth&&Gy.set(c,u)),!u||!u.auth?null:pb(u)},Ru=(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},sA=(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},pb=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=Ru(a,o),a=sA(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=Ru(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=Ru(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)})}),mE={};J(mE,{restAdapter:()=>hb,setup:()=>yE});var iA,pr,yE,hb,Yj=Y(()=>{"use strict";iA=(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}},yE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return hb(e,t,r,n)},hb=(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(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),pr(iA(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)}))}}}}),bE={};J(bE,{localAdapter:()=>gb,setup:()=>xE});var Pu,aA,xE,gb,Jj=Y(()=>{"use strict";Pu=(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}},xE=async({data:e,...t})=>gb(e,t),gb=(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=>Pu(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(Pu(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--)Pu(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)}}}}}),ia={};J(ia,{createAdapter:()=>wE,default:()=>kE,executeFetch:()=>Vu,fetchPlugin:()=>SE,initAdapterAuth:()=>aa,parseDuration:()=>jo,queryClient:()=>_E,registerAdapter:()=>vE,resolveDb:()=>mb});var lA,ea,Xy,vE,wE,mb,jo,Me,Yy,Oo,cA,To,Ro,Po,ta,$u,ra,uA,Jy,Iu,Zy,Qy,Cn,eb,fA,tb,dA,na,rb,aa,Fu,nt,xt,$o,Wr,jt,hr,pA,hA,gA,ju,mA,Vu,_E,SE,kE,Mo=Y(()=>{"use strict";L(),lA=["select","rpc","insert","update","delete","subscribe"],ea=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),Xy=(()=>{if(typeof globalThis<"u"&&globalThis[ea])return globalThis[ea];let e={supabase:()=>Promise.resolve().then(()=>(Xj(),hE)),rest:()=>Promise.resolve().then(()=>(Yj(),mE)),local:()=>Promise.resolve().then(()=>(Jj(),bE))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ea,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ea]}catch{}return e})(),vE=(e,t)=>{Xy[e]=t},wE=e=>{let t={};for(let r of lA)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},mb=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=Xy[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},jo=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,Yy=new Map,Oo=new Map,cA=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=dA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},To=e=>Me.get(e)||null,Ro=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=Yy.get(e);if(s)for(let i of s)F(i)&&i(o);return o},Po=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},ta=e=>{if(e){Me.delete(e);return}Me.clear()},$u=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)}:P(e)?{staleTime:jo(e),gcTime:3e5}:{staleTime:jo(e.stale||e.staleTime)||6e4,gcTime:jo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},ra=null,uA=()=>{ra||(ra=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=Yy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),ra.unref&&ra.unref())},uA(),Jy=3,Iu=e=>Math.min(1e3*2**e,3e4),Zy=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Jy,delay:Iu}:typeof t=="number"?{count:t,delay:Iu}:{count:t.count??Jy,delay:F(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Iu}},Qy=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=F(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=F(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Cn={focus:new Set,online:new Set},eb=!1,fA=()=>{if(eb||typeof window>"u")return;eb=!0;let e=()=>{for(let r of Cn.focus)r()},t=()=>{for(let r of Cn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},tb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(P(e))return{from:e,method:"select",query:!0,on:"create"};if(j(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},dA=e=>(!e||F(e),e),na=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},rb=(e,t,r)=>{let n;if(!e)n=void 0;else if(F(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=F(s)?s(t,t.state):s}}return n},aa=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)})},Fu=async(e,t)=>{if(F(e.select))return e.auth!==!1&&await aa(e,t),e;if(e.__resolved)return e.auth!==!1&&await aa(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=mb(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 aa(r,t),r):null},nt=(e,t,...r)=>{let n=F(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},xt=(e,t,r,...n)=>{let o=e&&F(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},$o=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})}},jt=(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||F(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||F(e.skip)&&e.skip(t,t.state))return;let s=await Fu(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:x,headers:v,baseUrl:w,page:A,cursor:E,getNextPageParam:O,getPreviousPageParam:S,infinite:B,placeholderData:K,initialData:z,select:D,keepPreviousData:U}=e,ee=P(D)?D:void 0;if(c&&F(t.getQuery)){let ue=t.getQuery(s.name||"paths");ue&&(ee=ue.select||ue.length&&ue.join(",")||ee)}let oe=rb(u,t,r),ce=$u(d),tr=Zy(e),Xr=na(t,r),kd=Xr?`:${Xr}`:"",Z=ce?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${B?":infinite":""}${A?":p"+JSON.stringify(A):""}${kd}`:null;if(!i.__fetchInitialized&&Z&&(i.__fetchInitialized=!0,z!==void 0)){let ue=F(z)?z():z;Ro(Z,ue,null)}if((l==="select"||l==="rpc")&&Z&&ce){let ue=To(Z);if(ue&&!ue.error){let N=Date.now()-ue.time,V=ue.stale||N>(ce.staleTime||0),M=ue.data;if(F(D)&&(M=D(M,t,t.state)),f&&(M=f(M,t,t.state)),Wr(t,M,m),!V){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(K!==void 0){let N=F(K)?K(t,t.state):K;N!==void 0&&Wr(t,N,m)}}if(Z&&Oo.has(Z)&&!n.force){let ue=Oo.get(Z);try{let N=await Promise.race([ue,new Promise((V,M)=>setTimeout(()=>M("DEDUP_TIMEOUT"),15e3))]);if(N?.data!==void 0){let V=N.data;F(D)&&(V=D(V,t,t.state)),f&&(V=f(V,t,t.state)),Wr(t,V,m),nt(t,"onFetchComplete",V),xt(e,t,"onFetchComplete",V)}}catch{}return}let Cd=!To(Z)?.data;jt(t,{isFetching:!0,isLoading:Cd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),xt(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Yr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Xr});let Ad=Qy(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let M=await s.getSession();if(h===!0&&!M){let W={message:"Not authenticated"};return jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:W,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",W),xt(e,t,"onFetchError",W),{data:null,error:W}}}let ue=s[l];if(!F(ue))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let N={from:a,select:ee,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},V=na(t,r);if(V&&(N.headers={...N.headers,"Accept-Language":V}),A!==void 0){if(j(A))A.offset!==void 0&&(N.offset=A.offset),A.limit!==void 0&&(N.limit=A.limit),A.cursor!==void 0&&(N.params={...N.params,cursor:A.cursor});else if(typeof A=="number"){let M=e.pageSize||y||20;N.offset=(A-1)*M,N.limit=M}}if(E!==void 0&&(N.params={...N.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let M;if(g===!0||e.on==="submit")M=$o(t);else if(H(g)){let W=$o(t);M={};for(let Ae of g)M[Ae]=W[Ae]}else t.state?.parse?M=t.state.parse():j(t.state)&&(M={...t.state});f&&(M=f(M,t,t.state)),N.data=M}if(l==="rpc"){let M=oe;if(e.on==="submit"){let W=$o(t);M=e.transformParams?e.transformParams(W,t,t.state):W}N.params=M}if(l==="subscribe"){let M=s.subscribe({from:a,params:oe,on:e.subscribeOn},(W,Ae,el)=>{Wr(t,W,m),nt(t,"onFetchComplete",W),xt(e,t,"onFetchComplete",W)});return i.__unsubscribe=M,{data:null,error:null,subscribed:!0}}return ue(N)},tr);Z&&Oo.set(Z,Ad);try{let ue=await Ad;if(ue?.subscribed)return;let{data:N,error:V}=ue||{};if(V){Z&&Ro(Z,null,V),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",V),xt(e,t,"onFetchError",V),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:V.message||V,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(N!==void 0){if((l==="select"||l==="rpc")&&Z){let W=Ro(Z,N,null);W.gcTime=ce?.gcTime||3e5}let M=N;B&&H(N)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(N):i.__pages.push(N),M=i.__pages.flat(),O&&(i.__nextPageParam=O(N,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),S&&(i.__prevPageParam=S(N,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),F(D)&&(M=D(M,t,t.state)),f&&(M=f(M,t,t.state)),(!U||M!==void 0)&&Wr(t,M,m),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",M),xt(e,t,"onFetchComplete",M),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(ue){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ue,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",ue),xt(e,t,"onFetchError",ue),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:ue.message||String(ue),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{Z&&Oo.delete(Z)}},pA=(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))},hA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),fA();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:jo(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=na(t,r),a=cA(e,i),l=To(a),c=$u(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&hr(e,t,r,{force:!0})};Cn.focus.add(s),n.__fetchCleanups.push(()=>Cn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>hr(e,t,r,{force:!0});Cn.online.add(s),n.__fetchCleanups.push(()=>Cn.online.delete(s))}},gA=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():j(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=F(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Wr(e,i,o),s},ju=(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 Fu(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:x,onSettled:v}=e,w;if(l===!0||d==="submit")w=$o(t);else if(H(l)){let S=$o(t);w={};for(let B of l)w[B]=S[B]}else t.state?.parse?w=t.state.parse():j(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),F(y)&&y(w,t,t.state);let A=m?gA(t,e,w):null;s.__fetching=!0,jt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),xt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,O=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){A!==void 0&&ju(t,e);let ce={message:"Not authenticated"};nt(t,"onFetchError",ce),xt(e,t,"onFetchError",ce);return}}let S=o[i];if(!F(S))return;let B={from:a,data:w,headers:p,baseUrl:h};e.params&&(B.params=rb(e.params,t,r));let K=na(t,r);K&&(B.headers={...B.headers,"Accept-Language":K});let z=Zy(e),D=await Qy(()=>S(B),z),{data:U,error:ee}=D||{};if(ee){A!==void 0&&ju(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ee,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",ee),F(x)&&x(ee,w,t),F(v)&&v(null,ee,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:ee.message||String(ee),durationMs:(typeof performance<"u"?performance.now():Date.now())-O});return}if(delete s.__optimisticSnapshot,U!==void 0){let oe=u?{[u]:U}:U;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",U),xt(e,t,"onFetchComplete",U),F(b)&&b(U,w,t),F(v)&&v(U,null,w,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-O}),g){let oe=H(g)?g:[g];for(let ce of oe)if(ce===!0||ce==="*")for(let[tr]of Me)tr.startsWith(a+":")&&Po(tr);else Po(ce)}}catch(S){A!==void 0&&ju(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:S,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",S),xt(e,t,"onFetchError",S),F(x)&&x(S,w,t),F(v)&&v(null,S,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:S.message||String(S),durationMs:(typeof performance<"u"?performance.now():Date.now())-O})}finally{s.__fetching=!1}},Vu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=H(o)?o.map(a=>tb(Ne(a,t),t)).filter(Boolean):[tb(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(()=>{pA({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&hA(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})}},_E={invalidateQueries:e=>{if(!e){Po();return}if(P(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Po(t);else if(H(e)){let t=e.join(":");for(let[r]of Me)r.includes(t)&&Po(r)}},removeQueries:e=>{if(!e){ta();return}if(P(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&ta(t)},getQueryData:e=>To(e)?.data??void 0,setQueryData:(e,t)=>{let r=To(e),n=F(t)?t(r?.data):t;Ro(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Fu(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(!F(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=Ro(o,i.data,null);a.gcTime=$u(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>ta(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||ta(r))}},SE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Oo.clear(),Vu(t,e,e.state,e.context))}},kE=Vu});function CE(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 AE(e){let t=this,{parent:r}=t;if(F(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 EE(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(F(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 OE(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(F(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 fv(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(j(n)&&o)fv.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 TE(e){let t=this;if(Uo("beforeRemove",t,e)===!1)return t;F(t.node.remove)?t.node.remove():Wo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Yf(t.parent.__ref.__children,t.key)),Uo("remove",t,e)}function RE(e){return this[e]}function PE(e,t){let r=this;if(e)return r.update(e,t),r}function $E(e){return e?this.__ref&&this.__ref[e]:this.__ref}function IE(){return this.getRef("__children").map(e=>this[e])}function FE(){return this.getRef().path}function jE(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=yb();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=F(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=yb()),e?t?.[e]:t}function DE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function LE(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function ME(e){let t=this.getRoot()?.context;return e?t[e]:t}function NE(e){let t=this.context;return e?t[e]:t}function dv(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||qo.has(r)&&!ed.has(r)||t.push(r);return t}function pv(e=[]){let t=this,r={},n=dv.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=F(l&&l.parse)?l.parse():l;r[a]=F(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 zo(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function $f(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=pv.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=>le(a)?$f.call(a,e,t):a):le(i)&&(n[s]=$f.call(i,e,t))}return n}function hv(...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}:
|
|
89
|
-
`,"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 BE(...e){(yr==="test"||yr==="development")&&console.log(...e)}function
|
|
88
|
+
return (${o}); })`)(t)}catch{try{t[n]=ie.eval(`(${o})`)}catch{t[n]=o}}return t},ax=(e,t={verbose:!0})=>{try{return e?ie.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},lx=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),ef=e=>{for(let t in e)return!1;return!0},cx=e=>D(e)&&ef(e),ux=()=>Object.create(null),rd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&Vr(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},nd=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Vr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},$n=(e,t,r={},n=new WeakMap)=>{if(!le(e)||!le(t)||st(e)||st(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&&Vr(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];st(c)?e[a]=c:le(l)&&le(c)?e[a]=$n(l,c,r,n):c!==void 0&&(e[a]=c)}return e},tf=(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)||!tf(e[i],t[i],r))return!1}return!0},eA=new Set(["node","__ref"]),fx=(e,t,r=eA)=>{if(e===t)return!0;if(!le(e)||!le(t)||st(e)||st(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(st(c)||st(u)){if(c!==u)return!1}else if(le(c)&&le(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},dx=(e,t)=>{if(t==null)return e;if(Zt(t)("string","number"))delete e[t];else if(U(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},rf=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]=rf(e[r]));return t},px=(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},hx=(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]},gx=(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},mx=(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},yx=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(Vy==="test"||Vy==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},bx=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)},xx=(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}}),ga,od,sd,vx=X(()=>{"use strict";Gr(),ga=(function(){let e=0;function t(){return e++,e}return t})(),od=ga,sd=(e,t,r)=>(Ne(r,e)||r||e.key||ga()).toString()}),Lt,wx,Wo,nf,_x,Sx,kx,id,Cx,Ka,QA=X(()=>{"use strict";Lt="production",wx=Lt,Wo=(e=Lt)=>e==="production",nf=(e=Lt)=>e==="testing"||e==="test",_x=nf,Sx=(e=Lt)=>e==="staging",kx=(e=Lt)=>e==="local",id=(e=Lt)=>e==="development"||e==="dev"||e==="local",Cx=(e,t=Lt)=>t[e],Ka=(e=Lt)=>!Wo(e)});function eE(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 tE(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 Ax,Ex,tA,Ox,Xa,La,Ma,Ya=X(()=>{"use strict";Ax=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Ex=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}}},tA=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Ox=e=>tA.test(e),Xa=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},La=(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},Ma=(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}}),Tx,Vj=X(()=>{"use strict";Fe(),Gr(),Tx=(e,t)=>{let{__ref:r}=e,n=e.if;if(j(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}}),Rx,Px,Wj=X(()=>{"use strict";Rx=(e,...t)=>{e&&t.map(r=>console.log(r))},Px=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function rE(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 nE(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 $x,Ix,Fx,jx,Uj=X(()=>{"use strict";Fe(),qf(),$x=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Ix=(e,t,r=365)=>{if(Bt(be)||Bt(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=/`},Fx=e=>{if(Bt(be)||Bt(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""},jx=e=>{Bt(be)||Bt(be.cookie)||(be.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Na,Dx,Lx,oE=X(()=>{"use strict";Na={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"])},Dx=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"]),Lx=e=>Na.body.has(e)}),Tu,Uy,Ba,ad,Qe,Mx,of,ma,Nx,ya,sf,af,ba,lf,Lo,rA,Yt,Hy,xa,va,Bx,wa,zx,Vx,cf,uf,ff,df,pf,hf,Wx,Ux=X(()=>{"use strict";Ha(),lE(),Gr(),Fe(),Tu="production",Uy=e=>e.sourcemap!==!1&&Tu!=="production",Ba=e=>{if(e.includes("+"))return e.split("+").filter(En);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!En(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},ad=(e,t,r)=>{let n=[],o=Ba(r);o&&(n=[...o]);let s=e.extends;return s&&(n=U(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},Mx=(e,t)=>{if(!e)return t;let{extends:r}=t,n=U(r)?r:[r],o=U(e)?e:[e];return{...t,extends:Fa(o,n)}},of=()=>Math.random().toString(36).substring(2),ma={},Nx={},ya=e=>ma[e.__hash],sf=(e,t)=>{let r=of();return P(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ma[r]=t),t},af=(e,t)=>e.__hash?t.concat(ya(e)):sf(e,t),ba=(e,t,r,n=new Set,o,s)=>{for(let i of e)U(i)?ba(i,t,r,n,o,s):Lo(i,t,r,n,o,void 0,s);return t},lf=(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&&Lo(a,t,r,n,o,s,i),t},Lo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(U(e))return ba(e,t,r,n,o,i);let a=s;return P(e)?(a=e,e=va(e,r)):i&&D(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?lf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},rA=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Yt=(e,t,r,n,o)=>{t=et(t);for(let s in t){if(rA.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?D(a)&&!U(a)?(r[s]=r[s]||{},Hy(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(D(i)&&D(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];En(s)?e[s]=Yt(i,a,l,n,c):Yt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(U(i)&&U(a))e[s]=i.concat(a);else if(U(i)&&D(a)){let l=Yt({},i);e[s]=Yt(l,a)}}}}return e},Hy=(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];D(s)&&!U(s)?(e[o]=e[o]||{},Hy(e[o],s,r,n)):e[o]=r}}},xa=(e,t,r)=>e.reduce((n,o,s)=>{let i=et(o),a=r?r[s]:void 0;return Yt(n,i,t,a)},{}),va=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(P(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&&(Tu==="test"||Tu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Bx=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),wa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ya(e)||[];let o=Lo(e,[],t,new Set,r,void 0,n);return r?o:af(e,o)},zx=(e,t)=>{if(!e)return t;let r=U(e)?e:[e];return Fa(r,t)},Vx=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(En(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},cf=(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 uf(e,t,r),ff(e,t,r),df(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),ja(n.__extends)},uf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},ff=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},df=(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},pf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Uy(r),a=i?[...n.__extends]:null,l=ja(n.__extends.map((c,u)=>va(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&&D(p)&&P(h)&&c.set(p,h)}let u=[],d=wa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=wa(l,o);n.__extendsStack=c}return n.__extendsStack},hf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Uy(r)){let s={},i=n.__extendsNames||[],a=xa(o,s,i),l={};Yt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=xa(o);Yt(e,s)}return e},Wx=(e,t,r={})=>(cf(e,t,r),pf(e,t,r),hf(e,t,r),e)});function sE(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function iE(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function aE(e,t,r){let{context:n}=t||{},[o]=Ba(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var En,lE=X(()=>{"use strict";Ux(),Fe(),En=e=>{if(!P(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Hj(e,t){let{props:r,on:n}=t,o=qa(e.split("on")[1]),s=n[o],i=r[e];j(s)?n[o]=(...a)=>{if(s(...a)!==!1&&j(i))return i(...a)}:n[o]=i}var qj=X(()=>{"use strict";Qf(),Fe()});function Hx(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()&&(j(o)||o!=null&&Xa(this.context))){let f=qa(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=D(s)||j(s),l=D(i)||j(i);if(a||l)continue;let c=n.charAt(0);if(Yx.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=mf.test(n)||Xx.test(n)||uE(o),d=qo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function qx(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=j(o)||o!=null&&Xa(this.context);if(s&&i){Hj(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Yx.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=D(l)||j(l),d=D(c)||j(c),f=mf.test(n)||Xx.test(n),p=qo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Gx(e=this){let t=[];return Hx.call(this,e,{cachedKeys:t}),qx.call(this,e,{cachedKeys:t}),e}function cE(e={}){return e.on||(e.on={}),e.props||(e.props={}),Gx.call(this,e)}function Kx(e,t){this.__element.update({props:e},t)}function gf(e){let t={update:Kx.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var mf,Xx,Yx,nA,uE,ld,_a,Zx,Sa,ka,Ca,yf,Aa,Jx,Qx,fE=X(()=>{"use strict";Ga(),qj(),Gr(),Fe(),Qf(),Ya(),mf=/^[A-Z]/,Xx=/^\d+$/,Yx=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),nA=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),uE=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(nA.has(t)||mf.test(t))return!0;return!1},ld=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return le(n)?{...n}:(o.__propsStack.push(n),{})},_a=e=>Zt(e)("string","number")?{inheritedString:e}:e,Zx=(e,t)=>!e||!t.length?!1:t.includes(e),Sa=(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=_a(i);n.unshift(l)}if(s){let l=_a(s);n.unshift(l)}return n},ka=e=>{let t=new Set;return e.filter(r=>!r||Tn.has(r)||t.has(r)?!1:(t.add(r),!0))},Ca=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Tn.has(o))return n;for(;j(o);)o=Ne(o,t);return er(n,et(o,{exclude:Tn}))},{}),gf(t),t.props),yf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Sa(e,t)]),D(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),U(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=ka(o),n.__propsStack},Aa=(e,t)=>{let{__ref:r}=e,n=yf(e,t);n.length?Ca(n,e):(r.__propsStack=[],e.props={})},Jx=function(e,t,r){let{__ref:n}=e;if(n.__if)Aa(e,t);else try{Aa(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return gf(e),e},Qx=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Sa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=ka(o),n.__propsStack.length&&Ca(n.__propsStack,t),t}}),qy,bf,xf,vf,wf,e0,_f,Sf,kf,t0,Gj=X(()=>{"use strict";Ux(),vx(),Kf(),fE(),oE(),Fe(),qy="production",bf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Na.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},xf=(e,t,r)=>{if(e===void 0)return(qy==="test"||qy==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Zt(e)("string","number")?bf(e,t,r):j(e)?{props:e}:e},vf=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},wf=(e,t,r,n,o)=>{if(!t)return o;if(Ua(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},e0=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},_f=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Sf=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),kf=(e,t,r)=>{let n=vf(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=ad(e,t,r),n.path=_f(e,t,r),n},t0=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:xf(e,t,r);if(!s)return;let i=wf(s,t,r,n,o),a=sd(s,i,r);kf(s,i,a);let l=ld(s,i,a),c=Sf(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),r0,Cf,Af,Ef,Of,n0,Tf,o0,s0,i0,a0,Kj=X(()=>{"use strict";Ha(),Ga(),Gr(),Fe(),r0=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},Cf=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Af=(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},Ef=(e,t,r={})=>{let n=P(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]},Of=(e,t,r={})=>{let n=e.__ref.__state;if(!Tf(e))return;let o=Cf(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=Af(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Ef(n,s,r)},n0=(e,t)=>{let r=e.__ref,n=Of(e,t);if(n===void 0)return e.state;if(Zt(n)("object","array"))return et(n);if(Zt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Tf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Zt(r)("number","string","boolean"))},o0=function(e){return le(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},s0=(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},i0=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=et(n,On),s={[e.key]:o},i=D(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Zf(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},a0=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){er(e,t,On);return}(o?nd:$n)(e,t,On)}}),l0,Xj=X(()=>{"use strict";l0=(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&&Object.setPrototypeOf(e.scope,i)}}}),Gy,Rf,Uo,Pf,c0,dE=X(()=>{"use strict";Fe(),Ya(),Gy=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Rf=(e,t,r,n,o)=>{if(e=La(e,t),!!j(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}},Uo=(e,t,r)=>{if(!t)throw new Error("Element is required");Ma(e,t,r);let n=Gy(e,t);if(n){let{state:o,context:s}=t;return Rf(n,t,o,s,r)}},Pf=(e,t,r,n,o,s)=>{if(e=La(e,r),!!j(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}},c0=(e,t,r,n)=>{Ma(e,r,t,n);let o=Gy(e,r);if(o){let{state:s,context:i}=r;return Pf(o,t,r,s,i,n)}}}),u0,cd,pE=X(()=>{"use strict";u0={},cd={}}),hE={};Y(hE,{setup:()=>gE,supabaseAdapter:()=>pb});var Ky,oA,gE,Ru,sA,pb,Yj=X(()=>{"use strict";Ky=new Map,oA=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,gE=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=oA(l,t,o===!1),u=Ky.get(c);return u||(u=await n(l,t,a),u?.auth&&Ky.set(c,u)),!u||!u.auth?null:pb(u)},Ru=(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},sA=(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},pb=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=Ru(a,o),a=sA(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=Ru(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=Ru(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)})}),mE={};Y(mE,{restAdapter:()=>hb,setup:()=>yE});var iA,pr,yE,hb,Zj=X(()=>{"use strict";iA=(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}},yE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return hb(e,t,r,n)},hb=(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(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),pr(iA(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)}))}}}}),bE={};Y(bE,{localAdapter:()=>gb,setup:()=>xE});var Pu,aA,xE,gb,Jj=X(()=>{"use strict";Pu=(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}},xE=async({data:e,...t})=>gb(e,t),gb=(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=>Pu(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(Pu(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--)Pu(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)}}}}}),ia={};Y(ia,{createAdapter:()=>wE,default:()=>kE,executeFetch:()=>zu,fetchPlugin:()=>SE,initAdapterAuth:()=>aa,parseDuration:()=>jo,queryClient:()=>_E,registerAdapter:()=>vE,resolveDb:()=>mb});var lA,ea,Xy,vE,wE,mb,jo,Me,Yy,Oo,cA,To,Ro,Po,ta,$u,ra,uA,Zy,Iu,Jy,Qy,Cn,eb,fA,tb,dA,na,rb,aa,Fu,nt,xt,$o,Wr,jt,hr,pA,hA,gA,ju,mA,zu,_E,SE,kE,Mo=X(()=>{"use strict";L(),lA=["select","rpc","insert","update","delete","subscribe"],ea=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),Xy=(()=>{if(typeof globalThis<"u"&&globalThis[ea])return globalThis[ea];let e={supabase:()=>Promise.resolve().then(()=>(Yj(),hE)),rest:()=>Promise.resolve().then(()=>(Zj(),mE)),local:()=>Promise.resolve().then(()=>(Jj(),bE))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ea,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ea]}catch{}return e})(),vE=(e,t)=>{Xy[e]=t},wE=e=>{let t={};for(let r of lA)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},mb=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=Xy[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},jo=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,Yy=new Map,Oo=new Map,cA=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=dA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},To=e=>Me.get(e)||null,Ro=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=Yy.get(e);if(s)for(let i of s)j(i)&&i(o);return o},Po=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},ta=e=>{if(e){Me.delete(e);return}Me.clear()},$u=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)}:P(e)?{staleTime:jo(e),gcTime:3e5}:{staleTime:jo(e.stale||e.staleTime)||6e4,gcTime:jo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},ra=null,uA=()=>{ra||(ra=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=Yy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),ra.unref&&ra.unref())},uA(),Zy=3,Iu=e=>Math.min(1e3*2**e,3e4),Jy=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Zy,delay:Iu}:typeof t=="number"?{count:t,delay:Iu}:{count:t.count??Zy,delay:j(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Iu}},Qy=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=j(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=j(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Cn={focus:new Set,online:new Set},eb=!1,fA=()=>{if(eb||typeof window>"u")return;eb=!0;let e=()=>{for(let r of Cn.focus)r()},t=()=>{for(let r of Cn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},tb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(P(e))return{from:e,method:"select",query:!0,on:"create"};if(D(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},dA=e=>(!e||j(e),e),na=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},rb=(e,t,r)=>{let n;if(!e)n=void 0;else if(j(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=j(s)?s(t,t.state):s}}return n},aa=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)})},Fu=async(e,t)=>{if(j(e.select))return e.auth!==!1&&await aa(e,t),e;if(e.__resolved)return e.auth!==!1&&await aa(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=mb(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 aa(r,t),r):null},nt=(e,t,...r)=>{let n=j(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},xt=(e,t,r,...n)=>{let o=e&&j(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},$o=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})}},jt=(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||j(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||j(e.skip)&&e.skip(t,t.state))return;let s=await Fu(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:x,headers:v,baseUrl:w,page:A,cursor:T,getNextPageParam:E,getPreviousPageParam:S,infinite:F,placeholderData:H,initialData:V,select:W,keepPreviousData:ne}=e,Q=P(W)?W:void 0;if(c&&j(t.getQuery)){let ue=t.getQuery(s.name||"paths");ue&&(Q=ue.select||ue.length&&ue.join(",")||Q)}let oe=rb(u,t,r),ce=$u(d),tr=Jy(e),Xr=na(t,r),kd=Xr?`:${Xr}`:"",Z=ce?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${F?":infinite":""}${A?":p"+JSON.stringify(A):""}${kd}`:null;if(!i.__fetchInitialized&&Z&&(i.__fetchInitialized=!0,V!==void 0)){let ue=j(V)?V():V;Ro(Z,ue,null)}if((l==="select"||l==="rpc")&&Z&&ce){let ue=To(Z);if(ue&&!ue.error){let N=Date.now()-ue.time,B=ue.stale||N>(ce.staleTime||0),M=ue.data;if(j(W)&&(M=W(M,t,t.state)),f&&(M=f(M,t,t.state)),Wr(t,M,m),!B){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(H!==void 0){let N=j(H)?H(t,t.state):H;N!==void 0&&Wr(t,N,m)}}if(Z&&Oo.has(Z)&&!n.force){let ue=Oo.get(Z);try{let N=await Promise.race([ue,new Promise((B,M)=>setTimeout(()=>M("DEDUP_TIMEOUT"),15e3))]);if(N?.data!==void 0){let B=N.data;j(W)&&(B=W(B,t,t.state)),f&&(B=f(B,t,t.state)),Wr(t,B,m),nt(t,"onFetchComplete",B),xt(e,t,"onFetchComplete",B)}}catch{}return}let Cd=!To(Z)?.data;jt(t,{isFetching:!0,isLoading:Cd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),xt(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Yr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Xr});let Ad=Qy(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let M=await s.getSession();if(h===!0&&!M){let z={message:"Not authenticated"};return jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",z),xt(e,t,"onFetchError",z),{data:null,error:z}}}let ue=s[l];if(!j(ue))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let N={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},B=na(t,r);if(B&&(N.headers={...N.headers,"Accept-Language":B}),A!==void 0){if(D(A))A.offset!==void 0&&(N.offset=A.offset),A.limit!==void 0&&(N.limit=A.limit),A.cursor!==void 0&&(N.params={...N.params,cursor:A.cursor});else if(typeof A=="number"){let M=e.pageSize||y||20;N.offset=(A-1)*M,N.limit=M}}if(T!==void 0&&(N.params={...N.params,cursor:T}),l==="insert"||l==="update"||l==="upsert"){let M;if(g===!0||e.on==="submit")M=$o(t);else if(U(g)){let z=$o(t);M={};for(let Ae of g)M[Ae]=z[Ae]}else t.state?.parse?M=t.state.parse():D(t.state)&&(M={...t.state});f&&(M=f(M,t,t.state)),N.data=M}if(l==="rpc"){let M=oe;if(e.on==="submit"){let z=$o(t);M=e.transformParams?e.transformParams(z,t,t.state):z}N.params=M}if(l==="subscribe"){let M=s.subscribe({from:a,params:oe,on:e.subscribeOn},(z,Ae,el)=>{Wr(t,z,m),nt(t,"onFetchComplete",z),xt(e,t,"onFetchComplete",z)});return i.__unsubscribe=M,{data:null,error:null,subscribed:!0}}return ue(N)},tr);Z&&Oo.set(Z,Ad);try{let ue=await Ad;if(ue?.subscribed)return;let{data:N,error:B}=ue||{};if(B){Z&&Ro(Z,null,B),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",B),xt(e,t,"onFetchError",B),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:B.message||B,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(N!==void 0){if((l==="select"||l==="rpc")&&Z){let z=Ro(Z,N,null);z.gcTime=ce?.gcTime||3e5}let M=N;F&&U(N)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(N):i.__pages.push(N),M=i.__pages.flat(),E&&(i.__nextPageParam=E(N,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),S&&(i.__prevPageParam=S(N,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),j(W)&&(M=W(M,t,t.state)),f&&(M=f(M,t,t.state)),(!ne||M!==void 0)&&Wr(t,M,m),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",M),xt(e,t,"onFetchComplete",M),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(ue){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ue,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",ue),xt(e,t,"onFetchError",ue),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:ue.message||String(ue),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{Z&&Oo.delete(Z)}},pA=(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))},hA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),fA();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:jo(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=na(t,r),a=cA(e,i),l=To(a),c=$u(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&hr(e,t,r,{force:!0})};Cn.focus.add(s),n.__fetchCleanups.push(()=>Cn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>hr(e,t,r,{force:!0});Cn.online.add(s),n.__fetchCleanups.push(()=>Cn.online.delete(s))}},gA=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():D(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=j(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Wr(e,i,o),s},ju=(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 Fu(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:x,onSettled:v}=e,w;if(l===!0||d==="submit")w=$o(t);else if(U(l)){let S=$o(t);w={};for(let F of l)w[F]=S[F]}else t.state?.parse?w=t.state.parse():D(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),j(y)&&y(w,t,t.state);let A=m?gA(t,e,w):null;s.__fetching=!0,jt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),xt(e,t,"onFetchStart");let T=r?.analyze?.emitNetwork,E=T?typeof performance<"u"?performance.now():Date.now():0;T&&T({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){A!==void 0&&ju(t,e);let ce={message:"Not authenticated"};nt(t,"onFetchError",ce),xt(e,t,"onFetchError",ce);return}}let S=o[i];if(!j(S))return;let F={from:a,data:w,headers:p,baseUrl:h};e.params&&(F.params=rb(e.params,t,r));let H=na(t,r);H&&(F.headers={...F.headers,"Accept-Language":H});let V=Jy(e),W=await Qy(()=>S(F),V),{data:ne,error:Q}=W||{};if(Q){A!==void 0&&ju(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",Q),j(x)&&x(Q,w,t),j(v)&&v(null,Q,w,t),T&&T({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-E});return}if(delete s.__optimisticSnapshot,ne!==void 0){let oe=u?{[u]:ne}:ne;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",ne),xt(e,t,"onFetchComplete",ne),j(b)&&b(ne,w,t),j(v)&&v(ne,null,w,t),T&&T({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-E}),g){let oe=U(g)?g:[g];for(let ce of oe)if(ce===!0||ce==="*")for(let[tr]of Me)tr.startsWith(a+":")&&Po(tr);else Po(ce)}}catch(S){A!==void 0&&ju(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:S,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",S),xt(e,t,"onFetchError",S),j(x)&&x(S,w,t),j(v)&&v(null,S,w,t),T&&T({phase:"error",mode:"mutation",from:a,method:i,error:S.message||String(S),durationMs:(typeof performance<"u"?performance.now():Date.now())-E})}finally{s.__fetching=!1}},zu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=U(o)?o.map(a=>tb(Ne(a,t),t)).filter(Boolean):[tb(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(()=>{pA({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&hA(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})}},_E={invalidateQueries:e=>{if(!e){Po();return}if(P(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Po(t);else if(U(e)){let t=e.join(":");for(let[r]of Me)r.includes(t)&&Po(r)}},removeQueries:e=>{if(!e){ta();return}if(P(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&ta(t)},getQueryData:e=>To(e)?.data??void 0,setQueryData:(e,t)=>{let r=To(e),n=j(t)?t(r?.data):t;Ro(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Fu(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(!j(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=Ro(o,i.data,null);a.gcTime=$u(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>ta(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||ta(r))}},SE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Oo.clear(),zu(t,e,e.state,e.context))}},kE=zu});function CE(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 AE(e){let t=this,{parent:r}=t;if(j(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 EE(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(j(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 OE(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(j(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 f0(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(D(n)&&o)f0.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 TE(e){let t=this;if(Uo("beforeRemove",t,e)===!1)return t;j(t.node.remove)?t.node.remove():Wo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Yf(t.parent.__ref.__children,t.key)),Uo("remove",t,e)}function RE(e){return this[e]}function PE(e,t){let r=this;if(e)return r.update(e,t),r}function $E(e){return e?this.__ref&&this.__ref[e]:this.__ref}function IE(){return this.getRef("__children").map(e=>this[e])}function FE(){return this.getRef().path}function jE(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=yb();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=j(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=yb()),e?t?.[e]:t}function DE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function LE(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function ME(e){let t=this.getRoot()?.context;return e?t[e]:t}function NE(e){let t=this.context;return e?t[e]:t}function d0(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||qo.has(r)&&!ed.has(r)||t.push(r);return t}function p0(e=[]){let t=this,r={},n=d0.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=j(l&&l.parse)?l.parse():l;r[a]=j(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 Vo(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function $f(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=p0.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=>le(a)?$f.call(a,e,t):a):le(i)&&(n[s]=$f.call(i,e,t))}return n}function h0(...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}:
|
|
89
|
+
`,"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 BE(...e){(yr==="test"||yr==="development")&&console.log(...e)}function zE(...e){(yr==="test"||yr==="development")&&console.warn(...e)}function If(...e){if(yr==="test"||yr==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&h0.call(this),new Error(...e)}}function VE(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function WE(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 UE(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,et(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 HE(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=>{If.call(this,s)}),o}catch(o){if(If.call(this,o),r?.strictMode)throw o}}async function qE(){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(()=>(Mo(),ia));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Mo(),ia));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Mo(),ia)).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(()=>(Mo(),ia));await o(n,e.context)}return n}function GE(e){let t=this,r=e||cd.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Vu(t,n),r===!0)return n;let o=XE[r];return o?o(n):n}function KE(e,t){return!!(Da.has(e)||t?.context?.methods?.[e])}var yr,nb,g0,yb,m0,Vu,yA,ob,bA,xA,vA,wA,_A,SA,XE,Qj=X(()=>{"use strict";dE(),Ga(),Fe(),Gr(),QA(),Ha(),pE(),yr="production",nb=null,g0=e=>{nb=e||null},yb=()=>nb||null,m0=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),Vu=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&yA(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Vu(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&Vu(i,t)},yA=(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])}},ob=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([o,s])=>s===!0?`${r}${o}`:`${r}${o} {
|
|
90
90
|
${ob(s,t+1)}
|
|
91
91
|
${r}}`).join(`
|
|
92
92
|
`):""},bA=e=>`{
|
|
@@ -94,21 +94,21 @@ ${ob(e,1)}
|
|
|
94
94
|
}`,xA=e=>{let t={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;t.include.push(a),r(n[i],a)}s.length&&(t.fields[o||"_root"]=s)};return r(e,""),t},vA=e=>{let t=s=>{let i=[],a=[];for(let l in s)if(s[l]===!0)i.push(l);else{let c=t(s[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},wA=(e,t)=>{let r=[],n=[],o=new Set,s=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):s(u[p],p,d)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
|
|
95
95
|
`+n.join(`
|
|
96
96
|
`):"";return`SELECT ${l}
|
|
97
|
-
FROM ${a}${c}`},_A=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},SA=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)}},XE={graphql:bA,"json-api":xA,odata:vA,sql:wA,supabase:SA,paths:_A}}),kA,
|
|
97
|
+
FROM ${a}${c}`},_A=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},SA=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)}},XE={graphql:bA,"json-api":xA,odata:vA,sql:wA,supabase:SA,paths:_A}}),kA,y0,eD=X(()=>{"use strict";vx(),kA={snapshotId:od},y0=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let i=kA.snapshotId();return r.__currentSnapshot=i,[i,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}}),Ff,b0,tD=X(()=>{Ff=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),b0=e=>typeof e=="string"&&Ff.has(e)});async function YE(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 rD=X(()=>{"use strict"});function nD(e){return/^[0-9.]+$/.test(e)&&e!==""}var Mt,jf,x0,Df,v0,oD=X(()=>{"use strict";Mt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Mt.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Mt.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Mt.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Mt.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!nD(t)?`${Mt.symbols.url}/${e}`:`${Mt.symbols.url}/${e}/${t}.js`}},jf={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},x0=(e={})=>{let{packageManager:t}=e;return jf[t]||null},Df=(e,t="latest",r="esmsh")=>(Mt[r]||Mt.esmsh).formatUrl(e,t),v0=(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]=Df(s,i,t)}return`<script type="importmap">{
|
|
98
98
|
"imports": ${JSON.stringify(o,null,2)}
|
|
99
|
-
}<\/script>`}}),
|
|
100
|
-
`)),eO=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),Lf,Pv,dD=Y(()=>{"use strict";Fe(),Lf=(e,t)=>(H(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Pv=(e,t)=>(e=parseFloat(e),j(t)&&(t=Object.values(t)),Lf(e,t))});function Va(e){let t=String(e||"").trim();if(!t)return{owner:bb,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=bb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function $v(e,t={}){return(t.provider||"kv")==="api"?EA(e,t):await pD(e,t)||EA(e,t)}async function pD(e,t={}){let r=t.kvBaseUrl||rO,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 EA(e,t={}){let r=t.apiBaseUrl||nO,{key:n}=Va(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}=Va(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 tO(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(j(r))return r;if(P(r)){let{full:n}=Va(r);if(!n)return null;try{let o=await $v(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 bb,rO,nO,Ea,Iv,hD=Y(()=>{"use strict";Fe(),bb="system",rO="https://smbls-kv.nika-980.workers.dev",nO="https://api.symbols.app",Ea=(e,t)=>{for(let r in t)r in e?j(e[r])&&j(t[r])&&Ea(e[r],t[r]):e[r]=t[r]},Iv=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(j(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(j(n[o])&&j(e[o]))if(o==="designSystem")Ea(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])}}}}),Fv,jv,Dv,ud,Lv,fd,Mv,Ja,gD=Y(()=>{"use strict";Fe(),Fv=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},jv=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)}},Dv=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ud=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,"")),Lv=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),fd=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Mv=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Ja=e=>{if(H(e))return e;if(P(e))return e.split(" ");if(j(e))return Object.values(e);if(Pn(e))return[e]}}),Nv,mD=Y(()=>{"use strict";Nv=()=>{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}}),Zt,No,dd,pd,yD=Y(()=>{"use strict";Zt=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(", ")},dd=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return No(t,{keepOneX:!1})},pd=(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}]}}),bD={};J(bD,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>nx,DOMQ_PROPERTIES:()=>qo,ENV:()=>wx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>td,NODE_ENV:()=>Lt,OPTIONS:()=>cd,PACKAGE_MANAGER_TO_CDN:()=>jf,PARSED_DOMQ_PROPERTIES:()=>ed,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>rx,SVG_TAGS:()=>Dx,TYPES:()=>fa,UNIVERSAL_RESERVED_KEYS:()=>Ff,addCaching:()=>kf,addContext:()=>Sf,addExtend:()=>Vx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Wb,addProtoToArray:()=>Jf,addRef:()=>vf,applyDependentState:()=>iv,applyEvent:()=>Rf,applyEventUpdate:()=>Pf,applyExtends:()=>Wx,applyProps:()=>Aa,arrayContainsOtherArray:()=>Db,arraysEqual:()=>Hb,arrayzeValue:()=>Ja,buildImgSrcset:()=>dd,buildSourcesAndImg:()=>pd,cache:()=>uv,call:()=>HE,captureSnapshot:()=>yv,checkForStateTypes:()=>rv,checkIfInherits:()=>Tf,checkIfStringIsInArray:()=>Gb,clone:()=>sx,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>tE,concatAddExtends:()=>Mx,copyJavaScriptToClipboard:()=>jv,copyStringToClipboard:()=>Fv,createBasedOnType:()=>xf,createElement:()=>tv,createElementExtends:()=>cf,createExtends:()=>ad,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>pf,createIfConditionFlag:()=>Tx,createInheritedState:()=>nv,createKey:()=>sd,createNestedObject:()=>px,createNestedObjectByKeyPath:()=>sv,createObjectWithoutPrototype:()=>rf,createParent:()=>wf,createPath:()=>_f,createProps:()=>ld,createPropsStack:()=>yf,createRoot:()=>ev,createScope:()=>lv,createSnapshotId:()=>od,customDecodeURIComponent:()=>tx,customEncodeURIComponent:()=>ex,cutArrayAfterValue:()=>Vb,cutArrayBeforeValue:()=>Bb,debounce:()=>eE,debounceOnContext:()=>Ax,decodeNewlines:()=>Qb,deepClone:()=>et,deepContains:()=>fx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>ha,deepExtend:()=>lf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>da,defineSetter:()=>mv,destringifyGlobalScope:()=>ix,detectHeightOnInit:()=>_v,detectInfiniteLoop:()=>yx,document:()=>be,encodeNewlines:()=>Zb,error:()=>If,excludeKeysFromObject:()=>xx,exec:()=>Ne,extendCachedRegistry:()=>Nx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>$v,fibonacciNumberByIndex:()=>Sv,filterArrays:()=>qb,filterArraysFast:()=>Kb,finalizeExtends:()=>hf,findClosestNumber:()=>Lf,findClosestNumberInFactory:()=>Pv,findInheritedState:()=>Of,findKeyPosition:()=>Yb,flattenExtend:()=>Lo,formatDate:()=>wv,generateHash:()=>of,generateKey:()=>ga,generateMetaTags:()=>Rv,get:()=>RE,getCDNUrl:()=>Df,getCapitalCaseKeys:()=>sE,getCdnProviderFromConfig:()=>xv,getChildStateInKey:()=>Ef,getChildren:()=>IE,getContext:()=>NE,getCookie:()=>Fx,getDB:()=>qE,getEmotionStylesheet:()=>Nv,getExtendsInElement:()=>zx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>af,getFrequencyInArray:()=>Lb,getHashedExtend:()=>ya,getImportMapScript:()=>vv,getInObjectByPath:()=>mx,getLocalStorage:()=>rE,getNev:()=>Cx,getPageMetadata:()=>QE,getParentStateInKey:()=>Af,getPath:()=>FE,getQuery:()=>KE,getRef:()=>$E,getRoot:()=>DE,getRootContext:()=>ME,getRootData:()=>LE,getRootState:()=>jE,getRootStateInKey:()=>Cf,getSpreadChildren:()=>iE,global:()=>Ib,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>lx,inheritChildExtends:()=>ff,inheritChildPropsExtends:()=>uf,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>df,initProps:()=>Zx,is:()=>Jt,isArray:()=>H,isBoolean:()=>Ju,isContextComponent:()=>aE,isCyclic:()=>bx,isDOMNode:()=>st,isDate:()=>Qu,isDefined:()=>zo,isDevelopment:()=>id,isEmpty:()=>ef,isEmptyObject:()=>cx,isEqualDeep:()=>tf,isFunction:()=>F,isHtmlElement:()=>Kf,isLocal:()=>kx,isMethod:()=>GE,isMobile:()=>$x,isNode:()=>Ua,isNot:()=>jb,isNotProduction:()=>Ga,isNull:()=>Zu,isNumber:()=>Pn,isObject:()=>j,isObjectLike:()=>le,isPhoto:()=>kv,isProduction:()=>Wo,isStaging:()=>Sx,isState:()=>ov,isString:()=>P,isStringFunction:()=>Ox,isTest:()=>nf,isTesting:()=>_x,isUndefined:()=>Bt,isUniversallyReservedKey:()=>bv,isValidHtmlTag:()=>Lx,joinArrays:()=>Fa,jointStacks:()=>Bx,keys:()=>dv,loadCssFile:()=>Ov,loadJavascript:()=>Tv,loadJavascriptFile:()=>Cv,loadJavascriptFileEmbedSync:()=>Ev,loadJavascriptFileSync:()=>Av,loadRemoteCSS:()=>ZE,loadRemoteScript:()=>JE,log:()=>BE,logGroupIf:()=>Px,logIf:()=>Rx,lookdown:()=>EE,lookdownAll:()=>OE,lookup:()=>AE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>ux,map:()=>ox,mapStringsWithContextComponents:()=>va,matchesComponentNaming:()=>En,memoize:()=>Ex,merge:()=>it,mergeSharedLibraries:()=>Iv,nextElement:()=>zE,normalizeLibraryKey:()=>Va,objectToString:()=>pa,objectizeStringProperty:()=>_a,overwrite:()=>rd,overwriteDeep:()=>$n,overwriteShallow:()=>nd,overwriteState:()=>av,parse:()=>pv,parseDeep:()=>$f,pickupElementFromProps:()=>qx,pickupPropsFromElement:()=>Hx,previousElement:()=>WE,propExists:()=>Jx,propertizeElement:()=>Kx,propertizeUpdate:()=>cE,remove:()=>TE,removeChars:()=>Dv,removeCookie:()=>jx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Mb,removeFromObject:()=>dx,removeNestedKeyByPath:()=>hx,removeValueFromArray:()=>Yf,removeValueFromArrayAll:()=>zb,reorderArrayByValues:()=>Ub,replaceLiteralsWithObjectFields:()=>JA,replaceOctalEscapeSequences:()=>Jb,resolveAsset:()=>Zt,resolveHandler:()=>La,resolveSharedLibraries:()=>tO,returnValueAsText:()=>bf,runPluginHook:()=>Ma,self:()=>Fb,setActiveRootState:()=>gv,setCookie:()=>Ix,setHashedExtend:()=>sf,setInObjectByPath:()=>gx,setLocalStorage:()=>nE,setNodeStyles:()=>fv,setProps:()=>PE,setPropsPrototype:()=>gf,spotByPath:()=>CE,srcsetFor:()=>No,stringIncludesAny:()=>Zf,stringToObject:()=>ax,swapItemsInArray:()=>Nb,syncProps:()=>Ca,toCamelCase:()=>ud,toDashCase:()=>fd,toDescriptionCase:()=>Mv,toTitleCase:()=>Lv,toggleFullscreen:()=>YE,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>cv,trimStringFromSymbols:()=>Xb,unstackArrayOfObjects:()=>Xf,update:()=>Gx,updateProps:()=>Qx,variables:()=>UE,verbose:()=>hv,warn:()=>VE,window:()=>ie});var L=Y(()=>{"use strict";vx(),QA(),Fe(),Kr(),Ya(),Ha(),Gf(),Vj(),zj(),Qf(),qf(),Wj(),oE(),lE(),fE(),Ux(),qj(),Kj(),Ka(),Gj(),Zj(),pE(),Qj(),dE(),eD(),tD(),nD(),oD(),sD(),iD(),aD(),lD(),fD(),dD(),hD(),gD(),mD(),yD()}),xD=$b((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":"")}}),vD=$b((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=xD(),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(...x){if(!b.enabled)return;let v=b,w=Number(new Date),A=w-(h||w);v.diff=A,v.prev=h,v.curr=w,h=w,x[0]=s.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let E=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(O,S)=>{if(O==="%%")return"%";E++;let B=s.formatters[S];if(typeof B=="function"){let K=x[E];O=B.call(v,K),x.splice(E,1),E--}return O}),s.formatArgs.call(v,x),(v.log||s.log).apply(v,x)}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:x=>{g=x}}),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}),wD=$b((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=vD()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var oO={};J(oO,{CSS_NATIVE_COLOR_REGEX:()=>Fn,CSS_UNITS:()=>Vv,applyMediaSequenceVars:()=>Nf,applySequenceGlobalVars:()=>Zv,applySequenceVars:()=>yd,changeLightness:()=>ED,colorStringToRgbaArray:()=>In,convertSvgToSymbol:()=>EO,findHeadingLetter:()=>SO,findHeadings:()=>kO,generateSequence:()=>Hr,generateSequencePosition:()=>fL,generateSprite:()=>vb,generateSubSequence:()=>Yv,getColorShade:()=>cO,getDefaultOrFirstKey:()=>zv,getFnPrefixAndValue:()=>Qa,getFontFace:()=>RD,getFontFaceEach:()=>gd,getFontFaceEachString:()=>pO,getFontFaceString:()=>hO,getFontFormat:()=>fO,getRgbTone:()=>Oa,getSequenceValue:()=>Jv,getSequenceValueBySymbols:()=>_O,getSequenceValuePropertyPair:()=>Wa,getSubratio:()=>vO,getSubratioDifference:()=>Xv,hexToRgb:()=>SD,hexToRgbArray:()=>sO,hexToRgba:()=>CD,hslToRgb:()=>lO,isCSSVar:()=>We,isGoogleFontsUrl:()=>Wv,isResolvedColor:()=>Ko,isScalingUnit:()=>Bv,mixTwoColors:()=>_D,mixTwoRgb:()=>AD,mixTwoRgba:()=>uO,numToLetterMap:()=>Ur,opacify:()=>xb,parseColorToken:()=>Za,resolveFileUrl:()=>mr,returnSubThemeOrDefault:()=>TD,rgbArrayToHex:()=>iO,rgbToHSL:()=>aO,rgbToHex:()=>kD,setCustomFont:()=>Hv,setCustomFontMedia:()=>za,setFontImport:()=>Uv,setInCustomFontMedia:()=>dO,setScalingVar:()=>Gv,setSubScalingVar:()=>xO,setVariables:()=>dL,splitTopLevelCommas:()=>hd});var Bv=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Vv=["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"];L();var In=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&&ie){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=ie.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]},_D=(e,t,r=.5)=>(e=In(e),t=In(t),uO(e,t,r)),SD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},sO=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},kD=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),iO=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),CD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},AD=(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})`},ED=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},aO=(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]},lO=(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)],cO=(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)},uO=(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})`},xb=(e,t)=>{let r=In(e);if(!r){Ga()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},We=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Fn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,OD=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Za=e=>{if(!P(e))return null;if(Fn.test(e))return{passthrough:e};if(We(e))return{cssVar:e};let t=e.match(OD);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}},Ko=e=>P(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),hd=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},Oa=(e,t)=>{P(e)&&e.includes("rgb")&&(e=In(e).join(", ")),P(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Pn(t)&&(t+="");let r=iO(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=cO(r,parseFloat(t));return sO(o).join(", ")}else{let[o,s,i]=e,a=aO(o,s,i),[l,c,u]=a;return lO(l,c,parseFloat(t)/100*255)}},TD=(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},zv=(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},Wv=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),Uv=e=>`@import url('${e}');`,dO=e=>`@font-face { ${e} }`,Hv=(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
|
+
}<\/script>`}}),w0,sD=X(()=>{"use strict";w0=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}`}}),_0,iD=X(()=>{"use strict";_0=(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)})}}),S0,aD=X(()=>{"use strict";S0=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),k0,lD=X(()=>{"use strict";k0=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function ZE(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 JE(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 C0,A0,E0,O0,T0,cD=X(()=>{"use strict";C0=(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)}}),A0=(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)}),E0=(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}`)},O0=(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)}}),T0=(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 uD(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!eO(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 Du(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 fD(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]??Du(s,p)??u;if(f==="getLocalStateLang")return Du(i,p+o)??u;let h=Du(i,p);return h!==void 0?h:s[p]??Du(s,p)??u}));return a}function CA(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 QE(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=D(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=CA(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=CA(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=fD(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=uD(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 ot,AA,R0,eO,dD=X(()=>{"use strict";Fe(),ot=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},AA=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${ot(r)}"`).join(" "),R0=(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>${ot(o)}</title>`),r;if(n==="canonical")return r.push(`<link rel="canonical" href="${ot(o)}">`),r;if(n==="manifest")return r.push(`<link rel="manifest" href="${ot(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="${ot(a)}">`);else if(typeof a=="object"){let l=AA(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}="${ot(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}="${ot(a)}" content="${ot(l)}">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${c}="${ot(a)}" content="${ot(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${ot(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}="${ot(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(`
|
|
100
|
+
`)),eO=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),Lf,P0,pD=X(()=>{"use strict";Fe(),Lf=(e,t)=>(U(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),P0=(e,t)=>(e=parseFloat(e),D(t)&&(t=Object.values(t)),Lf(e,t))});function za(e){let t=String(e||"").trim();if(!t)return{owner:bb,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=bb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function $0(e,t={}){return(t.provider||"kv")==="api"?EA(e,t):await hD(e,t)||EA(e,t)}async function hD(e,t={}){let r=t.kvBaseUrl||rO,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 EA(e,t={}){let r=t.apiBaseUrl||nO,{key:n}=za(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}=za(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 tO(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(D(r))return r;if(P(r)){let{full:n}=za(r);if(!n)return null;try{let o=await $0(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 bb,rO,nO,Ea,I0,gD=X(()=>{"use strict";Fe(),bb="system",rO="https://smbls-kv.nika-980.workers.dev",nO="https://api.symbols.app",Ea=(e,t)=>{for(let r in t)r in e?D(e[r])&&D(t[r])&&Ea(e[r],t[r]):e[r]=t[r]},I0=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(D(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(D(n[o])&&D(e[o]))if(o==="designSystem")Ea(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])}}}}),F0,j0,D0,ud,L0,fd,M0,Za,mD=X(()=>{"use strict";Fe(),F0=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},j0=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)}},D0=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ud=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,"")),L0=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),fd=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),M0=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Za=e=>{if(U(e))return e;if(P(e))return e.split(" ");if(D(e))return Object.values(e);if(Pn(e))return[e]}}),N0,yD=X(()=>{"use strict";N0=()=>{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}}),Jt,No,dd,pd,bD=X(()=>{"use strict";Jt=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(", ")},dd=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return No(t,{keepOneX:!1})},pd=(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}]}}),xD={};Y(xD,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>nx,DOMQ_PROPERTIES:()=>qo,ENV:()=>wx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>td,NODE_ENV:()=>Lt,OPTIONS:()=>cd,PACKAGE_MANAGER_TO_CDN:()=>jf,PARSED_DOMQ_PROPERTIES:()=>ed,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>rx,SVG_TAGS:()=>Dx,TYPES:()=>fa,UNIVERSAL_RESERVED_KEYS:()=>Ff,addCaching:()=>kf,addContext:()=>Sf,addExtend:()=>zx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Wb,addProtoToArray:()=>Zf,addRef:()=>vf,applyDependentState:()=>i0,applyEvent:()=>Rf,applyEventUpdate:()=>Pf,applyExtends:()=>Wx,applyProps:()=>Aa,arrayContainsOtherArray:()=>Db,arraysEqual:()=>Hb,arrayzeValue:()=>Za,buildImgSrcset:()=>dd,buildSourcesAndImg:()=>pd,cache:()=>u0,call:()=>HE,captureSnapshot:()=>y0,checkForStateTypes:()=>r0,checkIfInherits:()=>Tf,checkIfStringIsInArray:()=>Kb,clone:()=>sx,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>tE,concatAddExtends:()=>Mx,copyJavaScriptToClipboard:()=>j0,copyStringToClipboard:()=>F0,createBasedOnType:()=>xf,createElement:()=>t0,createElementExtends:()=>cf,createExtends:()=>ad,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>pf,createIfConditionFlag:()=>Tx,createInheritedState:()=>n0,createKey:()=>sd,createNestedObject:()=>px,createNestedObjectByKeyPath:()=>s0,createObjectWithoutPrototype:()=>rf,createParent:()=>wf,createPath:()=>_f,createProps:()=>ld,createPropsStack:()=>yf,createRoot:()=>e0,createScope:()=>l0,createSnapshotId:()=>od,customDecodeURIComponent:()=>tx,customEncodeURIComponent:()=>ex,cutArrayAfterValue:()=>zb,cutArrayBeforeValue:()=>Bb,debounce:()=>eE,debounceOnContext:()=>Ax,decodeNewlines:()=>Qb,deepClone:()=>et,deepContains:()=>fx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>ha,deepExtend:()=>lf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>da,defineSetter:()=>m0,destringifyGlobalScope:()=>ix,detectHeightOnInit:()=>_0,detectInfiniteLoop:()=>yx,document:()=>be,encodeNewlines:()=>Jb,error:()=>If,excludeKeysFromObject:()=>xx,exec:()=>Ne,extendCachedRegistry:()=>Nx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>$0,fibonacciNumberByIndex:()=>S0,filterArrays:()=>qb,filterArraysFast:()=>Gb,finalizeExtends:()=>hf,findClosestNumber:()=>Lf,findClosestNumberInFactory:()=>P0,findInheritedState:()=>Of,findKeyPosition:()=>Yb,flattenExtend:()=>Lo,formatDate:()=>w0,generateHash:()=>of,generateKey:()=>ga,generateMetaTags:()=>R0,get:()=>RE,getCDNUrl:()=>Df,getCapitalCaseKeys:()=>sE,getCdnProviderFromConfig:()=>x0,getChildStateInKey:()=>Ef,getChildren:()=>IE,getContext:()=>NE,getCookie:()=>Fx,getDB:()=>qE,getEmotionStylesheet:()=>N0,getExtendsInElement:()=>Vx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>af,getFrequencyInArray:()=>Lb,getHashedExtend:()=>ya,getImportMapScript:()=>v0,getInObjectByPath:()=>mx,getLocalStorage:()=>rE,getNev:()=>Cx,getPageMetadata:()=>QE,getParentStateInKey:()=>Af,getPath:()=>FE,getQuery:()=>GE,getRef:()=>$E,getRoot:()=>DE,getRootContext:()=>ME,getRootData:()=>LE,getRootState:()=>jE,getRootStateInKey:()=>Cf,getSpreadChildren:()=>iE,global:()=>Ib,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>lx,inheritChildExtends:()=>ff,inheritChildPropsExtends:()=>uf,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>df,initProps:()=>Jx,is:()=>Zt,isArray:()=>U,isBoolean:()=>Zu,isContextComponent:()=>aE,isCyclic:()=>bx,isDOMNode:()=>st,isDate:()=>Qu,isDefined:()=>Vo,isDevelopment:()=>id,isEmpty:()=>ef,isEmptyObject:()=>cx,isEqualDeep:()=>tf,isFunction:()=>j,isHtmlElement:()=>Gf,isLocal:()=>kx,isMethod:()=>KE,isMobile:()=>$x,isNode:()=>Ua,isNot:()=>jb,isNotProduction:()=>Ka,isNull:()=>Ju,isNumber:()=>Pn,isObject:()=>D,isObjectLike:()=>le,isPhoto:()=>k0,isProduction:()=>Wo,isStaging:()=>Sx,isState:()=>o0,isString:()=>P,isStringFunction:()=>Ox,isTest:()=>nf,isTesting:()=>_x,isUndefined:()=>Bt,isUniversallyReservedKey:()=>b0,isValidHtmlTag:()=>Lx,joinArrays:()=>Fa,jointStacks:()=>Bx,keys:()=>d0,loadCssFile:()=>O0,loadJavascript:()=>T0,loadJavascriptFile:()=>C0,loadJavascriptFileEmbedSync:()=>E0,loadJavascriptFileSync:()=>A0,loadRemoteCSS:()=>JE,loadRemoteScript:()=>ZE,log:()=>BE,logGroupIf:()=>Px,logIf:()=>Rx,lookdown:()=>EE,lookdownAll:()=>OE,lookup:()=>AE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>ux,map:()=>ox,mapStringsWithContextComponents:()=>va,matchesComponentNaming:()=>En,memoize:()=>Ex,merge:()=>it,mergeSharedLibraries:()=>I0,nextElement:()=>VE,normalizeLibraryKey:()=>za,objectToString:()=>pa,objectizeStringProperty:()=>_a,overwrite:()=>rd,overwriteDeep:()=>$n,overwriteShallow:()=>nd,overwriteState:()=>a0,parse:()=>p0,parseDeep:()=>$f,pickupElementFromProps:()=>qx,pickupPropsFromElement:()=>Hx,previousElement:()=>WE,propExists:()=>Zx,propertizeElement:()=>Gx,propertizeUpdate:()=>cE,remove:()=>TE,removeChars:()=>D0,removeCookie:()=>jx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Mb,removeFromObject:()=>dx,removeNestedKeyByPath:()=>hx,removeValueFromArray:()=>Yf,removeValueFromArrayAll:()=>Vb,reorderArrayByValues:()=>Ub,replaceLiteralsWithObjectFields:()=>ZA,replaceOctalEscapeSequences:()=>Zb,resolveAsset:()=>Jt,resolveHandler:()=>La,resolveSharedLibraries:()=>tO,returnValueAsText:()=>bf,runPluginHook:()=>Ma,self:()=>Fb,setActiveRootState:()=>g0,setCookie:()=>Ix,setHashedExtend:()=>sf,setInObjectByPath:()=>gx,setLocalStorage:()=>nE,setNodeStyles:()=>f0,setProps:()=>PE,setPropsPrototype:()=>gf,spotByPath:()=>CE,srcsetFor:()=>No,stringIncludesAny:()=>Jf,stringToObject:()=>ax,swapItemsInArray:()=>Nb,syncProps:()=>Ca,toCamelCase:()=>ud,toDashCase:()=>fd,toDescriptionCase:()=>M0,toTitleCase:()=>L0,toggleFullscreen:()=>YE,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>c0,trimStringFromSymbols:()=>Xb,unstackArrayOfObjects:()=>Xf,update:()=>Kx,updateProps:()=>Qx,variables:()=>UE,verbose:()=>h0,warn:()=>zE,window:()=>ie});var L=X(()=>{"use strict";vx(),QA(),Fe(),Gr(),Ya(),Ha(),Kf(),Vj(),Wj(),Qf(),qf(),Uj(),oE(),lE(),fE(),Ux(),Gj(),Kj(),Ga(),Xj(),Qj(),pE(),eD(),dE(),tD(),rD(),oD(),sD(),iD(),aD(),lD(),cD(),dD(),pD(),gD(),mD(),yD(),bD()}),vD=$b((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":"")}}),wD=$b((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=vD(),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(...x){if(!b.enabled)return;let v=b,w=Number(new Date),A=w-(h||w);v.diff=A,v.prev=h,v.curr=w,h=w,x[0]=s.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let T=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(E,S)=>{if(E==="%%")return"%";T++;let F=s.formatters[S];if(typeof F=="function"){let H=x[T];E=F.call(v,H),x.splice(T,1),T--}return E}),s.formatArgs.call(v,x),(v.log||s.log).apply(v,x)}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:x=>{g=x}}),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}),_D=$b((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=wD()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var oO={};Y(oO,{CSS_NATIVE_COLOR_REGEX:()=>Fn,CSS_UNITS:()=>z0,applyMediaSequenceVars:()=>Nf,applySequenceGlobalVars:()=>J0,applySequenceVars:()=>yd,changeLightness:()=>OD,colorStringToRgbaArray:()=>In,convertSvgToSymbol:()=>EO,findHeadingLetter:()=>SO,findHeadings:()=>kO,generateSequence:()=>Hr,generateSequencePosition:()=>dL,generateSprite:()=>vb,generateSubSequence:()=>Y0,getColorShade:()=>cO,getDefaultOrFirstKey:()=>V0,getFnPrefixAndValue:()=>Qa,getFontFace:()=>PD,getFontFaceEach:()=>gd,getFontFaceEachString:()=>pO,getFontFaceString:()=>hO,getFontFormat:()=>fO,getRgbTone:()=>Oa,getSequenceValue:()=>Z0,getSequenceValueBySymbols:()=>_O,getSequenceValuePropertyPair:()=>Wa,getSubratio:()=>vO,getSubratioDifference:()=>X0,hexToRgb:()=>kD,hexToRgbArray:()=>sO,hexToRgba:()=>AD,hslToRgb:()=>lO,isCSSVar:()=>We,isGoogleFontsUrl:()=>W0,isResolvedColor:()=>Go,isScalingUnit:()=>B0,mixTwoColors:()=>SD,mixTwoRgb:()=>ED,mixTwoRgba:()=>uO,numToLetterMap:()=>Ur,opacify:()=>xb,parseColorToken:()=>Ja,resolveFileUrl:()=>mr,returnSubThemeOrDefault:()=>RD,rgbArrayToHex:()=>iO,rgbToHSL:()=>aO,rgbToHex:()=>CD,setCustomFont:()=>H0,setCustomFontMedia:()=>Va,setFontImport:()=>U0,setInCustomFontMedia:()=>dO,setScalingVar:()=>K0,setSubScalingVar:()=>xO,setVariables:()=>pL,splitTopLevelCommas:()=>hd});var B0=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",z0=["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"];L();var In=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&&ie){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=ie.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]},SD=(e,t,r=.5)=>(e=In(e),t=In(t),uO(e,t,r)),kD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},sO=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},CD=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),iO=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),AD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},ED=(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})`},OD=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},aO=(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]},lO=(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)],cO=(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)},uO=(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})`},xb=(e,t)=>{let r=In(e);if(!r){Ka()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},We=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Fn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,TD=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ja=e=>{if(!P(e))return null;if(Fn.test(e))return{passthrough:e};if(We(e))return{cssVar:e};let t=e.match(TD);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}},Go=e=>P(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),hd=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},Oa=(e,t)=>{P(e)&&e.includes("rgb")&&(e=In(e).join(", ")),P(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Pn(t)&&(t+="");let r=iO(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=cO(r,parseFloat(t));return sO(o).join(", ")}else{let[o,s,i]=e,a=aO(o,s,i),[l,c,u]=a;return lO(l,c,parseFloat(t)/100*255)}},RD=(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},V0=(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},W0=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),U0=e=>`@import url('${e}');`,dO=e=>`@font-face { ${e} }`,H0=(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(`,
|
|
101
101
|
`);return`
|
|
102
102
|
font-family: '${e}';
|
|
103
103
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
104
104
|
font-weight: ${r};`:""}${n.fontStretch?`
|
|
105
105
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
106
106
|
font-display: ${n.fontDisplay};`:""}
|
|
107
|
-
src: ${o};`},
|
|
108
|
-
}`,gd=(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 Hv(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),RD=e=>Object.keys(e).map(t=>gd(t,e[t].value)),pO=(e,t,r)=>{if(t&&t.isVariable){let o=mr(t.url,r)||t.url;return Wv(o)?Uv(o):za(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return gd(e,t,r).map(dO);let n=Array.isArray(t.url)?t.url.map(o=>mr(o,r)||o):mr(t.url,r)||t.url;return za(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},hO=(e,t)=>Object.keys(e).map(r=>pO(r,e[r].value,t));L();L();L();var gO={};J(gO,{animation:()=>JD,breakpoints:()=>XD,class:()=>nL,color:()=>BD,devices:()=>YD,document:()=>GD,font:()=>ID,fontFace:()=>DD,fontFamily:()=>FD,fontFamilyTypes:()=>jD,gradient:()=>VD,grid:()=>rL,icons:()=>UD,media:()=>LD,reset:()=>oL,semanticIcons:()=>HD,sequence:()=>md,shadow:()=>WD,spacing:()=>ND,svg:()=>ZD,svgData:()=>QD,templates:()=>eL,theme:()=>zD,timing:()=>KD,typography:()=>mO,unit:()=>PD,vars:()=>sL});var md={"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},PD={default:"em"},$D={browserDefault:16,base:16,type:"font-size",ratio:md["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},mO=$D,ID={},FD={},jD={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},DD={},LD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},MD={base:mO.base,type:"spacing",ratio:md.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},ND=MD,BD={},VD={},zD={},WD={},UD={},HD={},qD={default:150,base:150,type:"timing",ratio:md["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},KD=qD,GD={},XD={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},YD={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]},JD={},ZD={},QD={},eL={},tL={},rL=tL,nL={},oL={},sL={},OA={},TA={},Lu=gO,Wu={},yO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Lu){let t=e.toLowerCase();Wu[t]=Lu[e];let r=yO(t);r!==t&&(Wu[r]=Lu[e]),t!==e&&(Wu[e]=Lu[e])}var qv={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:OA,cssMediaVars:TA,CSS_VARS:OA,CSS_MEDIA_VARS:TA,_scratchConfig:!0,...Wu},iL=et(qv),Mf={active:"0",0:qv};var Ta=[],aL=e=>{e&&e._scratchConfig&&Ta.push(e)},lL=()=>{Ta.pop()},q=e=>Ta.length?Ta[Ta.length-1]:Mf[e||Mf.active]||qv,cL=e=>{if(j(e))return Mf.active="1",Mf[1]=er(e,et(iL)),e};var Ur={"-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"},Kv=(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=bO.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Qa=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},bO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Gv=(e,t)=>{let{base:r,type:n,unit:o}=t,s=bO.has(o)?"rem":o,i=(Bv(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=Ur[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Ur[e+1],u=Math.abs(e),d=Math.pow(wO,2*u),f=Ur[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},xO=(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}))`},Xv=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},vO=(e,t)=>Xv(e,t).map(r=>r/e),Yv=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=Xv(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=xO(h+1,c,i,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Kv(x,t)})},wO=1.618,uL=(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)},Hr=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=Ur[c],d=uL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Gv(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Kv(g,e),s&&Yv(g,e)}return e},fL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=P(t)?t:Ur[t],a=P(t)?Object.entries(Ur).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=Gv(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Kv(p,l),s&&Yv(p,l),l},Jv=(e="A",t)=>{let r=q(),{unit:n}=r;if(P(e)&&We(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Vv.some(m=>e.includes(m))||!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+"-":""}${fd(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=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}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 m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},_O=(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:Jv(o,t)}).join("")},Wa=(e,t,r,n)=>{if(typeof e!="string")return q().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Qa(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=_O(e,r):e=Jv(e,r),{[t]:n?`${n}(${e})`:e}},SO=(e,t)=>Ur[e-t],kO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=SO(t,o);return r[s]})};L();var dL=(e,t)=>{let r=q(),{cssVars:n}=r;le(e.value)||(n[e.var]=e.value)},Zv=(e,t,r)=>{let n=q(),{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]=vO(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})`},CO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),yd=(e,t={})=>{let r=q(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=CO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||Zv(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"})`)}},Nf=(e,t,r={})=>{let n=q(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=CO.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}`]={}),Zv(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Bv(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}};L();var AO=Ga(),vb=e=>{let t=q(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},pL=e=>{let t=e&&(e.default||e);if(!P(t))return AO&&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},{}):{}},hL=(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},RA=new Set,EO=(e,t)=>{let r=t&&t.default?t.default:t;if(!P(r))return AO&&!RA.has(e)&&(RA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=pL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=hL(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=yL(a),a},gL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",mL=new RegExp(`<(${gL})\\b([^>]*?)\\s*/>`,"g"),yL=e=>e.replace(mL,"<$1$2></$1>"),OO={};J(OO,{appendSVGSprite:()=>WO,appendSvgIconsSprite:()=>HO,applyDocument:()=>zO,applyHeadings:()=>FO,applyReset:()=>KO,applySpacingSequence:()=>MO,applyTimingSequence:()=>VO,applyTypographySequence:()=>jO,checkIfBoxSize:()=>LO,getColor:()=>Pe,getFontFamily:()=>$O,getFontSizeByKey:()=>DO,getMediaColor:()=>_t,getMediaTheme:()=>qr,getShadow:()=>BO,getSpacingBasedOnRatio:()=>Ho,getSpacingByKey:()=>ze,getTheme:()=>Qv,getTimingByKey:()=>gr,getTimingFunction:()=>Rn,runThroughMedia:()=>IO,setColor:()=>Ra,setFont:()=>PO,setFontFamily:()=>Sb,setGradient:()=>Pa,setMediaTheme:()=>e0,setSVG:()=>r0,setShadow:()=>$a,setSvgIcon:()=>UO,setTheme:()=>TO,splitSpacedValue:()=>NO});L();var Pe=(e,t,r)=>{let n=r||q();if(!P(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(H(e))[o,s,i]=e;else{let d=Za(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=Oa(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},_t=(e,t,r)=>{let n=r||q();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!P(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;let o;if(H(e))o=e[0];else{let c=Za(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=j(a);if(l&&a.value)return Pe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Pe(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]=Pe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ra=(e,t,r)=>{let n=q();if(P(e)&&We(e)){let h=e.slice(2);if(e=Pe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(P(m)||H(m)||j(m))&&(n.color[g[0]]=Ra(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",x=g[2];x&&(y=Oa(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let x=In(g[0]);x&&x.length>=3?e=`rgba(${Oa(x.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(H(e)&&(e={"@light":e[0],"@dark":e[1]}),j(e)){let h={};for(let g in e)h[g]=Ra(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 x=b.slice(1),v=h[b],w=v&&(v.value||v);!w||typeof w!="string"||(y[x]=w,(x==="light"||m===void 0)&&(m=w))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let x=`[data-theme="${b}"]`;if(n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b],b==="light"||b==="dark"){let v=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(P(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(P(s)&&!s.includes("(")&&!s.startsWith("#")){let h=Za(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(P(g)||H(g)||j(g))&&(n.color[h.name]=Ra(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Oa(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=In(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}},Pa=(e,t,r)=>{let n=q();if(P(e)&&We(e)&&(e=Pe(e.slice(2))),H(e))return{"@light":Pa(e[0],t,"light"),"@dark":Pa(e[0],t,"dark")};if(j(e)){let s={};for(let i in e)s[i]=Pa(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}};L();var bL=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"]),PA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],xL=e=>{for(let t=0;t<PA.length;t++)if(e.includes(PA[t]))return!0;return!1},bd=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?Pe(e[i]):e[i]}),t},la=e=>(e.value||(e.value=bd(e)),e.value),Qv=(e,t)=>{let r=q();if(r.useVariable)return qr(e,t);let n=r.theme;if(P(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return la(i);e=[o,s||t]}}if(le(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return la(a[s]);if(i&&i[s])return la(i[s]);if(l&&l[s])return la(l[s])}else if(j(e))return bd(e)},vL=(e,t,r)=>{if(j(t))e.variants.inverse.value=bd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},wL=(e,t,r,n)=>{let o=Qv(r);n[`&:${t}`]=o,j(r)&&!r.value&&(r.value=o)},_L=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return wL(e,n,o,t),e}),e):void 0},SL=(e,t,r,n)=>{let o=Qv(r);n[`@media (prefers-color-scheme: ${t})`]=o,j(r)&&!r.value&&(r.value=o)},kL=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&SL(e,n,o,t),n==="inverse"&&vL(e,o,t),e}),e):void 0},CL=(e,t)=>{let r=q(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return P(s)?n[o]=r.theme[s]:la(n[o]),e}),e):void 0},TO=(e,t)=>{let r=q();if(r.useVariable)return e0(e,t);let{state:n,media:o,helpers:s}=e,i=bd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return _L(e,i),kL(e,i),CL(e,i),{var:a,value:i,state:n,media:o,helpers:s}},wb=(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===":")&&xL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Pe(f,`@${d}`);p!==void 0&&P(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!bL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>le(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)le(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)le(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(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=Pe(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 x=`@media (prefers-color-scheme: ${g})`;o[x]||(o[x]={}),o[x][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},e0=(e,t,r,n)=>{let o=q(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(le(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&le(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wb(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]=e0(u,t,l,n||d)}else if(!a){let d=Pe(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(P(e)&&We(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},_b=e=>{let t=q(),r={};for(let n in e){let o=n.slice(0,1);if(le(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=_b(e[n]):o==="."&&(r[`&${n}`]=_b(e[n]))}else r[n]=e[n]}return r},RO=(e,t)=>{let r=t.shift();return e[r]?RO(e[r],t):e},$A=(e,t)=>H(t)?RO(e,t):P(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=q();if(P(e)&&We(e)&&(e=qr(e.slice(2))),!e||!P(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=H(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=$A(s,o):s&&t&&(s=$A(s,t)),_b(s)};L();L();var PO=(e,t)=>{let r=q(),n=`--font-${t}`;if(!e||H(e)&&!e[0])return;let o;if(e.isVariable){let s=mr(e.url,r.files)||e.url;Wv(s)?o=Uv(s):o=za(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=gd(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=za(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},$O=(e,t)=>{let r=q(),{fontFamily:n}=r;return zv(t||n,e)},Sb=(e,t)=>{let r=q(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),j(s)&&(s=Ja(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};L();var IO=e=>{let t=q(),{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;it(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,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){it(i,{sequence:{},scales:{},vars:{}}),Hr(i),Nf(e,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),Hr(i),Nf(e,o)}},FO=e=>{let t=q();if(e.h1Matches){let r=e.unit,n=kO(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}}}},jO=()=>{let e=q(),{typography:t}=e;Hr(t),FO(t),yd(t),IO(t)},DO=e=>{let t=q(),{typography:r}=t;return Wa(e,"fontSize",r)};L();L();var AL=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;it(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),Hr(r),Nf(e,t)}},LO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},MO=()=>{let e=q(),{spacing:t}=e;Hr(t),yd(t),AL(t)},EL=e=>{let t=q(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:Hr(e)},ze=(e,t="padding",r,n)=>{let o=EL(r);if(P(e)&&!n&&e.includes("(")){let i=Qa(e);n=i[0],e=i[1]}let s=n?[e]:Ja(e);if(H(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)=>Wa(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Wa(e,t,o,n)}},Ho=(e,t,r,n)=>{let o=q(),{spacing:s}=o,i=r||e[t];if(!n&&P(i)&&i.includes("(")){let a=Qa(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return ze(i,t,a,n)}return ze(i,t,s,n)},NO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Vv.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(" ")};L();var $a=(e,t,r,n)=>{let o=q();if(H(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[1],t,"dark")};if(j(e)){let i={};for(let a in e)i[a]=$a(e[a],t,a.startsWith("@")?a.slice(1):a);return i}P(e)&&!Fn.test(e)&&(e=hd(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=Pe(a);if(Ko(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}},BO=(e,t)=>{let r=q();if(t||(t=r.globalTheme),!P(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;let[n]=H(e)?e:e.split(" "),o=r.shadow[n],s=j(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};L();var VO=()=>{let e=q(),{timing:t}=e;Hr(t),yd(t)},Rn=e=>{let t=q(),{timing:r}=t;return r[e]||r[ud(e)]||e},gr=(e,t="timing")=>{let r=q(),{timing:n}=r;return Wa(e,t,n)};L();var zO=()=>{let e=q(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:zv(r),fontSize:o.base,lineHeight:o.lineHeight})};L();var t0={document:be},r0=(e,t)=>{let r=q();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?EO(t,e):e},WO=(e,t=t0)=>{let r=q(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];qO(n,t)},UO=(e,t)=>{let r=q();return r.useIconSprite&&!r.semanticIcons?.[t]?r0(e,t):e},HO=(e,t=t0)=>{let r=q(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];qO(n,t)},sb=(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},OL=(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},IA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},qO=(e,t=t0)=>{let r=q(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),vb(e);let o=n.querySelector("#svgSprite"),s=vb(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=OL(n,s);if(o)if(a)IA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=sb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=sb(n);l&&l.nodeType&&(IA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=sb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};L();var KO=(e={})=>{let t=q(),{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&&$n(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 er(it(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}})}};L();var TL=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),RL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),PL=e=>TL.has(e),An=e=>{let t=e+"";if(Fn.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(We(n))return`var(${n})`;if(PL(n)||/^\d/.test(n)||n==="0")return n;let o=Pe(n);if(Ko(o))return o;let s=ze(n,"border");return s&&s.border?s.border:n}).join(" ")},$L=e=>Fn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(We(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Pe(t);return Ko(r)?r:t}).join(" "),IL=(e,t)=>BO(e,t),FA=(e,t)=>Fn.test(e)?e:hd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(We(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Pe(n);if(Ko(o)){let i=_t(n,t);return j(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(", "),GO=(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=hd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||RL.has(l)||l==="transparent"||Fn.test(l))return l;let c=Pe(l);return Ko(c)?c:l}).join(" ")));return n+i.join(", ")+s},FL=(e,t)=>{let r=q();return e.split(", ").map(n=>We(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?GO(n,t):r.gradient[e]?{backgroundImage:_t(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Za(n)?`url(${n})`:n).join(" ")},jL=e=>P(e)&&e.split(" ").map(t=>ze(t,"gap").gap).join(" "),DL=e=>{let t=e.split(" ");return t.length?t.map(r=>We(r)?`var(${r})`:r.length<3||r.includes("ms")?gr(r).timing||r:Rn(r)?Rn(r):r).join(" "):e},jA=(e,t,r)=>{if(P(e))return e.split(",").map(n=>gr(n).timing||n).join(",")},LL=e=>{let t=e.split(",");if(t.length)return t.map(DL).join(",")};function Re(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(P(o)){if(o.includes("(")){let l=Qa(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=LO(e);!i&&a&&!n.ratio&&(o=NO(o))}return n.ratio?Ho(r,e,o,s):ze(o,e,void 0,s)}var se=(e,t=null,r)=>Re(e,t,r,{ratio:!0}),DA=(e,t,r)=>{if(P(e))return{borderRadius:e.split(" ").map((n,o)=>Ho(t,r,n)[r]).join(" ")}};L();var ML=(e,t)=>{let r=q(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},vt=e=>e,LA={color:Ra,gradient:Pa,font:PO,fontFamily:Sb,fontfamily:Sb,theme:TO,icons:UO,semanticIcons:vt,semanticicons:vt,svg:r0,svgData:vt,typography:vt,shadow:$a,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:ML},NL=(e,t,r)=>{let n=q(),o=yO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=LA[o]||LA[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")},BL=(e,t)=>{let r=q(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=j(t[o])||H(t[o])?1:0,a=j(t[s])||H(t[s])?1:0;return i-a}).forEach(o=>{try{return NL(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var VL={},n0=(e,t=VL)=>{let r=t.config||q(),{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=cL(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),x=b&&b.defaultView||(typeof window<"u"?window:null),v=b&&(r.themeRoot||b.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let O=B=>{v.setAttribute("data-theme",B.matches?"dark":"light")},S=x.matchMedia("(prefers-color-scheme: dark)");if(O(S),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=O;try{S.addEventListener("change",O)}catch{S.addListener(O)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),A=new Set(w);if(w.forEach(O=>{let S=O.toLowerCase();S!==O&&A.has(S)&&er(y[S],y[O])}),w.map(O=>{let S=O.toLowerCase();if(!(S!==O&&A.has(S)))return BL(O,y[O])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{jO()}catch(O){r.verbose&&console.warn("Error applying typography sequence",O)}if(y.spacing)try{MO()}catch(O){r.verbose&&console.warn("Error applying spacing sequence",O)}if(y.timing)try{VO()}catch(O){r.verbose&&console.warn("Error applying timing sequence",O)}zO();let E=KO();return E&&(r.reset=E),r};var zL=null,WL=null,UL=null;function HL(e){e.batchAtomicCss&&(WL=e.batchAtomicCss),e.compoundCssClass&&(UL=e.compoundCssClass)}function qL(){try{let e=q();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Uu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var MA=new WeakMap;function ca(e,t){let r=XO(t);if(!r)return;let n=MA.get(r);if(n||(n=new Set,MA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var NA=new WeakMap;function XO(e){let t=e||qL();if(!t||!t.head)return null;let r=NA.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 NA.set(t,o),zL=o,o}function Vt(e){if(XO(),typeof e=="string"){ca(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:Uu(l);a+=`${c}:${i[l]};`}ca(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Uu(s);ca(`${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:Uu(a);s+=`${c}:${l};`}}if(s&&ca(`${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)Vt({[`${n} ${c}`]:o[c]});for(let c of a)Vt({[c]:{[n]:o[c]}})}}}}function BA(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Uu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ca(`@keyframes ${e}{${r}}`),e}L();Ya();L();L();var KL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],GL=["none","forwards","backwards","both"],XL=["normal","reverse","alternate","alternate-reverse"],YL=["running","paused"],JL=e=>/^[\d.]+m?s$/.test(e),ZL=0,ib=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(j(e)){let o=`smbls-anim-${ZL++}`;return{animationName:BA(o,e)}}let n=r&&r[e];return j(n)?BA(e,n):e},QL=(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:JL(d)?s.push(d):KL.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):XL.includes(d)?l=d:GL.includes(d)?c=d:YL.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(P(e)&&e.includes(" ")){let r=QL(e,t);return{animationName:ib(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||Rn(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:ib(e,t),animationDuration:gr(t.animationDuration||"A").timing,animationDelay:gr(t.animationDelay||"0s").timing,animationTimingFunction:Rn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:ib(e,t)}),animationDuration:e=>({animationDuration:gr(e).timing}),animationDelay:e=>({animationDelay:gr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};L();var tM={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=>Bt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("height",t),...Re("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(!P(e))return;let[t,r]=e.split(" ");return{...Re("minWidth",t),...Re("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("minHeight",t),...Re("maxHeight",r||t)}},size:e=>{if(!P(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(!P(e))return;let[t,r]=e.split(" ");return{...Re("minInlineSize",t),...Re("minBlockSize",r||t)}},maxSize:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("maxInlineSize",t),...Re("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(!P(e))return;let[t,r]=e.split(" ");return{...Re("paddingInlineStart",t),...Re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("paddingBlockStart",t),...Re("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(!P(e))return;let[t,r]=e.split(" ");return{...Re("marginInlineStart",t),...Re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!P(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Re("marginBlockStart",r),...Re("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:jL(e)}),columnGap:(e,t)=>Ho(t,"columnGap",e),rowGap:(e,t)=>Ho(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!P(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(!P(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>DA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>DA(e??t.round,t,"borderRadius")},rM={fontSize:e=>DO(e)||e,fontFamily:e=>({fontFamily:$O(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},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},oM={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]}}};L();var Dt=({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?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=Dt(t);if(e)return{color:_t(e,r)}},background:(e,t)=>{let r=Dt(t);if(e)return P(e)&&e.includes("gradient")?{background:GO(e,r)}:{background:_t(e,r)}},backgroundColor:(e,t)=>{let r=Dt(t);if(e)return{backgroundColor:_t(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Dt(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:FL(e,o)}},textStroke:e=>({WebkitTextStroke:$L(e)}),outline:e=>({outline:An(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:An(e)}),borderColor:(e,t)=>{let r=Dt(t);if(e)return{borderColor:_t(e,r)}},borderTopColor:(e,t)=>{let r=Dt(t);if(e)return{borderTopColor:_t(e,r)}},borderBottomColor:(e,t)=>{let r=Dt(t);if(e)return{borderBottomColor:_t(e,r)}},borderLeftColor:(e,t)=>{let r=Dt(t);if(e)return{borderLeftColor:_t(e,r)}},borderRightColor:(e,t)=>{let r=Dt(t);if(e)return{borderRightColor:_t(e,r)}},borderLeft:e=>({borderLeft:An(e)}),borderTop:e=>({borderTop:An(e)}),borderRight:e=>({borderRight:An(e)}),borderBottom:e=>({borderBottom:An(e)}),shadow:(e,t)=>{let r=Dt(t);if(e)return{boxShadow:IL(e,r)}},boxShadow:(e,t)=>{if(!P(e))return;let[r,n]=e.split("!importan"),o=Dt(t),s=n?" !important":"";return{boxShadow:FA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:FA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:An(e)})},YO={transition:e=>({transition:LL(e)}),transitionDuration:e=>({transitionDuration:jA(e)}),transitionDelay:e=>({transitionDelay:jA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};L();var iM={flow:(e,t)=>{let r=t.reverse;if(!P(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}}},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})},VA={...eM,...tM,...rM,...nM,...oM,...sM,...YO,...iM,...aM},lM=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"]);L();var cM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,uM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Gr(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(cM),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},zA=(e,t,r)=>({[e]:Gr(t,r)}),oa=(e,t,r)=>{let n=`&${e}`,o=Gr(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}},o0=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return F(r)?r.call(t,t):!!r},fM=(e,t,r)=>{let n=e.slice(1),o=o0(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Gr(t,r)},dM=(e,t,r)=>({[e]:t}),pM=(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=o0(n,r);s!==void 0&&(o=s)}if(o)return Gr(t,r)},hM=(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=o0(n,r);s!==void 0&&(o=s)}if(!o)return Gr(t,r)},gM=(e,t)=>Gr(e,t),mM={"@":uM,":":oa,"[":oa,"*":oa,"+":oa,"~":oa,"&":zA,">":zA,$:fM,"-":dM,".":pM,"!":hM},ab=Wo(),yM=(e,t,r)=>{let n=t?.context?.designSystem;n&&aL(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)=>it(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);it(o,gM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=F(c)?c(t,t.state,t.context):c;u&&i(a,u),!ab&&j(o[a])&&(o[a].label=a)}else if(VA[a]){let c=Ne(l,t);H(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=VA[a](c,t,t.state,t.context);H(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&i(a,u),!ab&&j(o[a])&&(o[a].label=a)}else if(lM.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}),!ab&&j(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&lL()}},bM=(e,t)=>{let r={};for(let n in e){let o=mM[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"?$n(r[i],s[i]):r[i]=s[i])}}return r},Gr=(e,t,r={unpack:!0})=>{let[n,o]=yM(e,t,r),s=bM(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return rd(n,s);n._selectors=s}return n};L();L();L();Ya();var B7=new Proxy(Object.create(null),{get(){},has(){return!1}});L();var WA=(e,t)=>{let r=e.call("exec",t,e);if(r)return P(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var xM={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"}}}},vM={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},wM={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"}}},V7={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...xM,...vM,...wM,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var _M={};J(_M,{A:()=>$R,AssetPicture:()=>ST,Audio:()=>TT,Avatar:()=>ZR,B:()=>XT,Block:()=>ZO,Box:()=>QT,Br:()=>tR,Button:()=>LR,ButtonSet:()=>VR,COMPONENTS:()=>IM,Caption:()=>BT,Checkbox:()=>hR,CheckboxHgroup:()=>gR,Circle:()=>xT,CircleButton:()=>NR,Clickable:()=>pT,Data:()=>JT,Dialog:()=>UR,DialogFooter:()=>qR,DialogHeader:()=>HR,Dropdown:()=>rP,DropdownList:()=>nP,DropdownParent:()=>oP,DropdownParentFocus:()=>sP,DropdownSiblingFocus:()=>iP,FileIcon:()=>OR,Flex:()=>eT,Focusable:()=>hT,FocusableComponent:()=>gT,Footnote:()=>GT,Form:()=>lT,Grid:()=>rT,Gutter:()=>oT,H1:()=>IT,H2:()=>FT,H3:()=>jT,H4:()=>DT,H5:()=>LT,H6:()=>MT,Headline:()=>qT,Hgroup:()=>iR,HgroupButton:()=>lR,HgroupRows:()=>aR,Hoverable:()=>dT,Hr:()=>eR,I:()=>YT,Icon:()=>AR,IconButton:()=>zR,IconText:()=>ER,Iframe:()=>uT,Img:()=>iT,Inline:()=>QO,InlineFlex:()=>tT,InlineGrid:()=>nT,Input:()=>uR,Italic:()=>UT,KangorooButton:()=>BR,Li:()=>rR,Link:()=>d0,Notification:()=>lP,NumberInput:()=>dR,Ol:()=>oR,P:()=>NT,Picture:()=>wT,Radio:()=>yR,RadioHgroup:()=>bR,Range:()=>eP,RouteLink:()=>IR,RouterLink:()=>p0,SHAPES:()=>Bf,Select:()=>jR,Shape:()=>i0,Span:()=>$T,SquareButton:()=>MR,Strong:()=>VT,Subhead:()=>KT,Svg:()=>CT,Text:()=>PT,Textarea:()=>SR,TextareaWithButton:()=>kR,Theme:()=>vT,Title:()=>HT,Toggle:()=>vR,ToggleHgroup:()=>wR,Tooltip:()=>GR,TooltipHidden:()=>XR,TooltipParent:()=>YR,U:()=>zT,Ul:()=>nR,Underline:()=>WT,Video:()=>ET,depth:()=>s0,getSystemGlobalTheme:()=>Vf});var JO={};J(JO,{Block:()=>ZO,Flex:()=>eT,Grid:()=>rT,Gutter:()=>oT,Inline:()=>QO,InlineFlex:()=>tT,InlineGrid:()=>nT});var ZO={display:"block"},QO={display:"inline"},eT={display:"flex"},tT={display:"inline-flex"},rT={display:"grid"},nT={display:"inline-grid"},oT={boxSize:"C1"},sT={};J(sT,{Img:()=>iT});L();var iT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Zt(e);return t&&t.src||e.src},srcset:e=>{let t=Zt(e);return(t?dd(t):"")||e.srcset}}},aT={};J(aT,{Form:()=>lT});var lT={tag:"form"},cT={};J(cT,{Iframe:()=>uT});var uT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},fT={};J(fT,{Clickable:()=>pT,Focusable:()=>hT,FocusableComponent:()=>gT,Hoverable:()=>dT});var SM={appearance:"none",cursor:"pointer",fontFamily:"inherit"},dT={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}}},pT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},hT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},gT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:SM},mT={};J(mT,{Picture:()=>wT});var yT={};J(yT,{Theme:()=>vT,getSystemGlobalTheme:()=>Vf});var bT={};J(bT,{Circle:()=>xT,SHAPES:()=>Bf,Shape:()=>i0,default:()=>kM,depth:()=>s0});L();var wt=q(),s0={4:{boxShadow:`rgba(0,0,0,.10) 0 2${wt.unit.default} 4${wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${wt.unit.default} 6${wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${wt.unit.default} 10${wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${wt.unit.default} 16${wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${wt.unit.default} 26${wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${wt.unit.default} 42${wt.unit.default}`}},Io=e=>Pe(e.shapeDirectionColor)||Pe(e.borderColor)||Pe(e.backgroundColor)||Pe(e.background),Mu=e=>{let t=YO.transition(e.transition,e);return t&&t.transition},Bf={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:Io(e),transition:Mu(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:Io(e),transition:Mu(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:Io(e),transition:Mu(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:Mu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Io(e)} 25%, transparent 25%), linear-gradient(315deg, ${Io(e)} 25%, transparent 25%)`},"&:after":{background:Io(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)"}}}},i0={deps:{exec:Ne,getSpacingBasedOnRatio:Ho,getMediaColor:_t},classlist:{shape:e=>e.deps.exec(Bf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Bf[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}}},xT={round:"100%"},kM=i0;L();var Vf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},vT={deps:{depth:s0},classlist:{depth:e=>!Bt(e.depth)&&e.deps.depth[e.depth]}},wT={deps:{getSystemGlobalTheme:Vf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Vf},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}},_T={};J(_T,{AssetPicture:()=>ST});L();var ST={tag:"picture",children:e=>{let t=Zt(e);if(t)return pd(t,e.alt)}},kT={};J(kT,{Svg:()=>CT});var CT={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)}},AT={};J(AT,{Video:()=>ET});L();var ET={tag:"video",controls:!0,attr:{src:e=>{let t=Zt(e);return t&&t.src||e.src}},children:e=>{let t=Zt(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"}},OT={};J(OT,{Audio:()=>TT});L();var TT={tag:"audio",controls:!0,attr:{src:e=>{let t=Zt(e);return t&&t.src||e.src}},children:e=>{let t=Zt(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"}},RT={};J(RT,{B:()=>XT,Caption:()=>BT,Data:()=>JT,Footnote:()=>GT,H1:()=>IT,H2:()=>FT,H3:()=>jT,H4:()=>DT,H5:()=>LT,H6:()=>MT,Headline:()=>qT,I:()=>YT,Italic:()=>UT,P:()=>NT,Span:()=>$T,Strong:()=>VT,Subhead:()=>KT,Text:()=>PT,Title:()=>HT,U:()=>zT,Underline:()=>WT});var PT={},$T={tag:"span"},IT={tag:"h1"},FT={tag:"h2"},jT={tag:"h3"},DT={tag:"h4"},LT={tag:"h5"},MT={tag:"h6"},NT={tag:"p"},BT={tag:"caption"},VT={tag:"strong",fontWeight:"700"},zT={tag:"u"},WT={tag:"u"},UT={tag:"i"},HT={},qT={tag:"h6",fontSize:"B",fontWeight:500},KT={tag:"span",fontSize:"Z1"},GT={tag:"span",fontSize:"Z"},XT={tag:"b"},YT={tag:"i"},JT={tag:"data"},ZT={};J(ZT,{Box:()=>QT,Br:()=>tR,Hr:()=>eR,Li:()=>rR,Ol:()=>oR,Ul:()=>nR});var CM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Gr(t,e,{unpack:!1});r.__class=n},QT={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:CM},eR={tag:"hr",margin:"C1 0"},tR={tag:"br"},rR={tag:"li"},nR={tag:"ul",childExtends:{extends:"Li"}},oR={tag:"ol",childExtends:{extends:"Li"}},sR={};J(sR,{Hgroup:()=>iR,HgroupButton:()=>lR,HgroupRows:()=>aR});var UA=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},iR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:UA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:UA,margin:"0",color:"paragraph"}},aR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},lR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},cR={};J(cR,{Input:()=>uR});var uR={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={};J(fR,{NumberInput:()=>dR});var dR={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}},pR={};J(pR,{Checkbox:()=>hR,CheckboxHgroup:()=>gR});var hR={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"}}},gR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},mR={};J(mR,{Radio:()=>yR,RadioHgroup:()=>bR});var yR={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}},bR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},xR={};J(xR,{Toggle:()=>vR,ToggleHgroup:()=>wR});var vR={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:{}},_R={};J(_R,{Textarea:()=>SR,TextareaWithButton:()=>kR});var SR={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"}},kR={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"}}},CR={};J(CR,{FileIcon:()=>OR,Icon:()=>AR,IconText:()=>ER});var AR={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=v=>{let w=v[".isActive"];if(w)return v.call("exec",w.name||w.icon)},c=(v,w,A)=>{let{semanticIcons:E}=A&&A.designSystem,{toCamelCase:O}=A&&A.utils,S=u(v,w),B=O(S).split(/([a-z])([A-Z])/g),K=B[1]?B[0]:S.split(".")[0].split(" ")[0],z=E&&E[K];if(z){let D=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=z[D]||z[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,w)=>{let{key:A}=v,E=v.call("exec",v.name||v.icon||A,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:A},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(w=>w.charAt(0).toUpperCase()+w.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],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},ER={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},OR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},TR={};J(TR,{A:()=>$R,Link:()=>d0,RouteLink:()=>IR,RouterLink:()=>p0});var AM={};J(AM,{default:()=>PM,getActiveRoute:()=>f0,lastLevel:()=>xd,lastPathname:()=>zf,matchRoute:()=>l0,parseQuery:()=>c0,parseRoutePattern:()=>a0,router:()=>Go,runGuards:()=>u0});L();var RR=/^:(.+)/,PR=/^\*$/,HA=new Map,a0=e=>{let t=HA.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(RR);a?n.push({index:i,name:a[1]}):PR.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return HA.set(e,s),s},l0=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||""),s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=a0(l),u=EM(n,c);u>i&&(i=u,s=l,a=OM(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},EM=(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(RR.test(r[i]))o+=1;else if(PR.test(r[i]))o+=.5;else return-1;return o},OM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},c0=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},u0=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},f0=(e=0,t)=>{t||(t=typeof ie<"u"?ie.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},zf,xd=0,TM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,RM={level:xd,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},Go=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||ie,i=o?.context?.document||be,a={...RM,...o.context.routerOptions,...n};xd=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=TM(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=c0(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==zf;zf=f;let x,v,w,A;if(a.useParamsMatching){let O=l0(f,o.routes,a.level);x=O.key,v=O.routePath,w=O.content,A=O.params}else x=f0(a.level,f),v=x,w=o.routes[x||"/"]||o.routes["/*"],A={};let E=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!w){a.onNotFound?a.onNotFound({pathname:f,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let O={pathname:f,route:x,params:A,query:g,hash:h,element:o,state:r},S=await u0(a.guards,O);if(S===!1)return;if(typeof S=="string")return Go(S,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||"")+(h||""))}catch{}if(b||!y){let O={route:x,routePath:v,hash:h,debugging:!1};Object.keys(A).length&&(O.params=A),Object.keys(g).length&&(O.query=g),a.updateState&&o.state.update(O,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let S=o.__ref?.origin?.content,B={};if(S)for(let z in S){let D=S[z];z==="__ref"||z==="props"||z==="node"||z==="parent"||z==="key"||(typeof D=="string"||typeof D=="number"||typeof D=="boolean"||typeof D=="object"&&D!==null&&!D.node&&!D.__ref)&&(B[z]=D)}let K={...B,...typeof w=="object"?w:{extends:w}};a.useFragment&&(K.tag="fragment");try{o.set(K,{contentElementKey:c})}catch(z){console.error("[smbls/router] failed to render route content",f,z)}}if(a.scrollToTop&&E?.scrollTo&&E.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&w[c]?.node?.scrollTo&&w[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let O=i.getElementById(h);if(O&&E?.scrollTo){let S=O.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);E.scrollTo({...a.scrollToOptions||{},top:S,left:0})}}Uo("routeChanged",o,a)},PM=Go,$M=(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||Go)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},d0={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>WA(e,e.href)||WA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:$M},$R={extends:"Link"},p0={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||Go)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},IR={extends:[d0,p0]},FR={};J(FR,{Select:()=>jR});var jR={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}}},DR={};J(DR,{Button:()=>LR,ButtonSet:()=>VR,CircleButton:()=>NR,IconButton:()=>zR,KangorooButton:()=>BR,SquareButton:()=>MR});var LR={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)},MR={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"},NR={extends:"SquareButton",round:"C"},BR={extends:"Button",childExtends:"IconText"},VR={tag:"nav",display:"flex",childExtends:"SquareButton"},zR={extends:["SquareButton","ClickableItem"],round:"Z"},WR={};J(WR,{Dialog:()=>UR,DialogFooter:()=>qR,DialogHeader:()=>HR});var UR={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},HR={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},qR={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"}},KR={};J(KR,{Tooltip:()=>GR,TooltipHidden:()=>XR,TooltipParent:()=>YR});L();var GR={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=>zo(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)}},XR={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)}},YR={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"}}})}},JR={};J(JR,{Avatar:()=>ZR});var ZR={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"}`},QR={};J(QR,{Range:()=>eP});var eP={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:xb("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:xb("#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)}},tP={};J(tP,{Dropdown:()=>rP,DropdownList:()=>nP,DropdownParent:()=>oP,DropdownParentFocus:()=>sP,DropdownSiblingFocus:()=>iP});var rP={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"},nP={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"}}},oP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},sP={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()}}},iP={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()}}},aP={};J(aP,{Notification:()=>lP});var lP={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}}}},IM=Object.assign({},JO,sT,aT,cT,fT,mT,_T,kT,bT,AT,OT,yT,RT,ZT,sR,cR,fR,pR,mR,xR,_R,CR,TR,FR,DR,WR,KR,JR,QR,tP,aP);var FM=null;function jM(e){FM=e}L();var DM={};J(DM,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>nx,DOMQ_PROPERTIES:()=>qo,ENV:()=>wx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>td,NODE_ENV:()=>Lt,OPTIONS:()=>cd,PACKAGE_MANAGER_TO_CDN:()=>jf,PARSED_DOMQ_PROPERTIES:()=>ed,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>rx,SVG_TAGS:()=>Dx,TYPES:()=>fa,UNIVERSAL_RESERVED_KEYS:()=>Ff,addCaching:()=>kf,addContext:()=>Sf,addExtend:()=>Vx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Wb,addProtoToArray:()=>Jf,addRef:()=>vf,applyCSS:()=>BM,applyDependentState:()=>iv,applyEvent:()=>Rf,applyEventUpdate:()=>Pf,applyExtends:()=>Wx,applyProps:()=>Aa,arrayContainsOtherArray:()=>Db,arraysEqual:()=>Hb,arrayzeValue:()=>Ja,buildImgSrcset:()=>dd,buildSourcesAndImg:()=>pd,cache:()=>uv,call:()=>HE,captureSnapshot:()=>yv,checkForStateTypes:()=>rv,checkIfInherits:()=>Tf,checkIfStringIsInArray:()=>Gb,clone:()=>sx,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>tE,concatAddExtends:()=>Mx,copyJavaScriptToClipboard:()=>jv,copyStringToClipboard:()=>Fv,createBasedOnType:()=>xf,createElement:()=>tv,createElementExtends:()=>cf,createExtends:()=>ad,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>pf,createIfConditionFlag:()=>Tx,createInheritedState:()=>nv,createKey:()=>sd,createNestedObject:()=>px,createNestedObjectByKeyPath:()=>sv,createObjectWithoutPrototype:()=>rf,createParent:()=>wf,createPath:()=>_f,createProps:()=>ld,createPropsStack:()=>yf,createRoot:()=>ev,createScope:()=>lv,createSnapshotId:()=>od,customDecodeURIComponent:()=>tx,customEncodeURIComponent:()=>ex,cutArrayAfterValue:()=>Vb,cutArrayBeforeValue:()=>Bb,debounce:()=>eE,debounceOnContext:()=>Ax,decodeNewlines:()=>Qb,deepClone:()=>et,deepContains:()=>fx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>ha,deepExtend:()=>lf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>da,defineSetter:()=>mv,destringifyGlobalScope:()=>ix,detectHeightOnInit:()=>_v,detectInfiniteLoop:()=>yx,document:()=>be,encodeNewlines:()=>Zb,error:()=>If,excludeKeysFromObject:()=>xx,exec:()=>Ne,extendCachedRegistry:()=>Nx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>$v,fibonacciNumberByIndex:()=>Sv,filterArrays:()=>qb,filterArraysFast:()=>Kb,finalizeExtends:()=>hf,findClosestNumber:()=>Lf,findClosestNumberInFactory:()=>Pv,findInheritedState:()=>Of,findKeyPosition:()=>Yb,flattenExtend:()=>Lo,formatDate:()=>wv,generateHash:()=>of,generateKey:()=>ga,generateMetaTags:()=>Rv,get:()=>RE,getActiveRoute:()=>f0,getCDNUrl:()=>Df,getCapitalCaseKeys:()=>sE,getCdnProviderFromConfig:()=>xv,getChildStateInKey:()=>Ef,getChildren:()=>IE,getContext:()=>NE,getCookie:()=>Fx,getDB:()=>qE,getEmotionStylesheet:()=>Nv,getExtendsInElement:()=>zx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>af,getFrequencyInArray:()=>Lb,getHashedExtend:()=>ya,getImportMapScript:()=>vv,getInObjectByPath:()=>mx,getLocalStorage:()=>rE,getNev:()=>Cx,getPageMetadata:()=>QE,getParentStateInKey:()=>Af,getPath:()=>FE,getQuery:()=>KE,getRef:()=>$E,getRoot:()=>DE,getRootContext:()=>ME,getRootData:()=>LE,getRootState:()=>jE,getRootStateInKey:()=>Cf,getSpreadChildren:()=>iE,global:()=>Ib,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>lx,inheritChildExtends:()=>ff,inheritChildPropsExtends:()=>uf,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>df,init:()=>vd,initProps:()=>Zx,is:()=>Jt,isArray:()=>H,isBoolean:()=>Ju,isContextComponent:()=>aE,isCyclic:()=>bx,isDOMNode:()=>st,isDate:()=>Qu,isDefined:()=>zo,isDevelopment:()=>id,isEmpty:()=>ef,isEmptyObject:()=>cx,isEqualDeep:()=>tf,isFunction:()=>F,isHtmlElement:()=>Kf,isLocal:()=>kx,isMethod:()=>GE,isMobile:()=>$x,isNode:()=>Ua,isNot:()=>jb,isNotProduction:()=>Ga,isNull:()=>Zu,isNumber:()=>Pn,isObject:()=>j,isObjectLike:()=>le,isPhoto:()=>kv,isProduction:()=>Wo,isStaging:()=>Sx,isState:()=>ov,isString:()=>P,isStringFunction:()=>Ox,isTest:()=>nf,isTesting:()=>_x,isUndefined:()=>Bt,isUniversallyReservedKey:()=>bv,isValidHtmlTag:()=>Lx,joinArrays:()=>Fa,jointStacks:()=>Bx,keys:()=>dv,lastLevel:()=>xd,lastPathname:()=>zf,loadCssFile:()=>Ov,loadJavascript:()=>Tv,loadJavascriptFile:()=>Cv,loadJavascriptFileEmbedSync:()=>Ev,loadJavascriptFileSync:()=>Av,loadRemoteCSS:()=>ZE,loadRemoteScript:()=>JE,log:()=>BE,logGroupIf:()=>Px,logIf:()=>Rx,lookdown:()=>EE,lookdownAll:()=>OE,lookup:()=>AE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>ux,map:()=>ox,mapStringsWithContextComponents:()=>va,matchRoute:()=>l0,matchesComponentNaming:()=>En,memoize:()=>Ex,merge:()=>it,mergeSharedLibraries:()=>Iv,nextElement:()=>zE,normalizeLibraryKey:()=>Va,objectToString:()=>pa,objectizeStringProperty:()=>_a,overwrite:()=>rd,overwriteDeep:()=>$n,overwriteShallow:()=>nd,overwriteState:()=>av,parse:()=>pv,parseDeep:()=>$f,parseQuery:()=>c0,parseRoutePattern:()=>a0,pickupElementFromProps:()=>qx,pickupPropsFromElement:()=>Hx,previousElement:()=>WE,propExists:()=>Jx,propertizeElement:()=>Kx,propertizeUpdate:()=>cE,reinit:()=>NM,remove:()=>TE,removeChars:()=>Dv,removeCookie:()=>jx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Mb,removeFromObject:()=>dx,removeNestedKeyByPath:()=>hx,removeValueFromArray:()=>Yf,removeValueFromArrayAll:()=>zb,reorderArrayByValues:()=>Ub,replaceLiteralsWithObjectFields:()=>JA,replaceOctalEscapeSequences:()=>Jb,resolveAsset:()=>Zt,resolveHandler:()=>La,resolveSharedLibraries:()=>tO,returnValueAsText:()=>bf,router:()=>Go,runGuards:()=>u0,runPluginHook:()=>Ma,scratchSystem:()=>OO,scratchUtils:()=>oO,self:()=>Fb,set:()=>n0,setActiveRootState:()=>gv,setCookie:()=>Ix,setHashedExtend:()=>sf,setInObjectByPath:()=>gx,setLocalStorage:()=>nE,setNodeStyles:()=>fv,setProps:()=>PE,setPropsPrototype:()=>gf,spotByPath:()=>CE,srcsetFor:()=>No,stringIncludesAny:()=>Zf,stringToObject:()=>ax,swapItemsInArray:()=>Nb,syncProps:()=>Ca,toCamelCase:()=>ud,toDashCase:()=>fd,toDescriptionCase:()=>Mv,toTitleCase:()=>Lv,toggleFullscreen:()=>YE,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>cv,trimStringFromSymbols:()=>Xb,unstackArrayOfObjects:()=>Xf,update:()=>Gx,updateProps:()=>Qx,variables:()=>UE,verbose:()=>hv,warn:()=>VE,window:()=>ie});L();L();var LM=q(),cP=(e=LM,t)=>{let r=j(t.localFile)?t.localFile:{},n=et(r.designSystem||{});return er(e,n)},MM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},vd=(e,t=MM)=>{let r=cP(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=n0({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=hO(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&&Vt(a),c&&(Vt({[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];Vt(m)}l&&Vt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Vt(m)}return(f||d)&&WO(i.svg,{document:t.document}),(h||p)&&HO(i.icons,{document:t.document}),i},uP={},NM=(e,t=uP)=>{let r=cP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=n0({verbose:!1,...r});if(!t.preventInject){if(Vt({[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];Vt(i)}Vt(s.reset)}return s},BM=(e,t=uP)=>{Vt(e)};L();L();var z7=ie&&ie.location?ie.location.host.includes("dev."):id();L();Mo();var VM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},zM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},W7={...VM,router:zM};L();L();L();L();Mo();var Wf={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"},WM=Object.create(null);for(let e in Wf)WM[Wf[e]]=e;var lb=Object.create(null);for(let e in Wf){let t=Wf[e];if(lb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${lb[t]}"`);lb[t]=e}var UM=0,HM=()=>`${Date.now().toString(36)}-${(UM++).toString(36)}`,Ia=(e,t,r={})=>({id:HM(),ts:Date.now(),type:e,level:t,...r}),qM=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(" > ")},Uf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:qM(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Bo=e=>e?.context?.analyze,KM={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"}},GM=(e,{category:t,type:r,level:n})=>o=>{let s=Bo(o);!s||!s.shouldCapture(t)||s.emit(Ia(r,n,{hook:e,element:Uf(o)}))},qA=e=>(t,r)=>{let n=Bo(t);!n||!n.shouldCapture("state")||n.emit(Ia("state","debug",{hook:e,element:Uf(t),changedKeys:r?.changedKeys||null}))},XM={name:"analyze",error(e,t){let r=Bo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ia("error","error",{hook:t?.hook||"error",element:Uf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Bo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ia("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Bo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Bo(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(Ia("update","debug",{hook:"update",element:Uf(e),durationMs:r}))},beforeStateUpdate:qA("beforeStateUpdate"),stateUpdate:qA("stateUpdate")};for(let[e,t]of Object.entries(KM))XM[e]=GM(e,t);L();L();L();L();var U7=typeof ie<"u"&&typeof ie.document<"u";var H7=typeof ie<"u"&&typeof ie.document<"u";L();var q7=typeof ie<"u"&&typeof ie.document<"u";L();var K7=typeof ie<"u"&&typeof ie.document<"u";var Qt=Object.create(null);Qt.open="0";Qt.close="1";Qt.ping="2";Qt.pong="3";Qt.message="4";Qt.upgrade="5";Qt.noop="6";var Hu=Object.create(null);Object.keys(Qt).forEach(e=>{Hu[Qt[e]]=e});var kb={type:"error",data:"parser error"},fP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",dP=typeof ArrayBuffer=="function",pP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,h0=({type:e,data:t},r,n)=>fP&&t instanceof Blob?r?n(t):KA(t,n):dP&&(t instanceof ArrayBuffer||pP(t))?r?n(t):KA(new Blob([t]),n):n(Qt[e]+(t||"")),KA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function GA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var cb;function YM(e,t){if(fP&&e.data instanceof Blob)return e.data.arrayBuffer().then(GA).then(t);if(dP&&(e.data instanceof ArrayBuffer||pP(e.data)))return t(GA(e.data));h0(e,!1,r=>{cb||(cb=new TextEncoder),t(cb.encode(r))})}var XA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ua=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<XA.length;e++)ua[XA.charCodeAt(e)]=e;var JM=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=ua[e.charCodeAt(n)],i=ua[e.charCodeAt(n+1)],a=ua[e.charCodeAt(n+2)],l=ua[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},ZM=typeof ArrayBuffer=="function",g0=(e,t)=>{if(typeof e!="string")return{type:"message",data:hP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:QM(e.substring(1),t)}:Hu[r]?e.length>1?{type:Hu[r],data:e.substring(1)}:{type:Hu[r]}:kb},QM=(e,t)=>{if(ZM){let r=JM(e);return hP(r,t)}else return{base64:!0,data:e}},hP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,gP="",eN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{h0(s,!1,a=>{n[i]=a,++o===r&&t(n.join(gP))})})},tN=(e,t)=>{let r=e.split(gP),n=[];for(let o=0;o<r.length;o++){let s=g0(r[o],t);if(n.push(s),s.type==="error")break}return n};function rN(){return new TransformStream({transform(e,t){YM(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 ub;function Nu(e){return e.reduce((t,r)=>t+r.length,0)}function Bu(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 nN(e,t){ub||(ub=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Nu(r)<1)break;let l=Bu(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(Nu(r)<2)break;let l=Bu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Nu(r)<8)break;let l=Bu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(kb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Nu(r)<o)break;let l=Bu(r,o);a.enqueue(g0(s?l:ub.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(kb);break}}}})}var mP=4;function ke(e){if(e)return oN(e)}function oN(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ke.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.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};ke.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};ke.prototype.emitReserved=ke.prototype.emit;ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var wd=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")(),sN="arraybuffer";function yP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var iN=St.setTimeout,aN=St.clearTimeout;function _d(e,t){t.useNativeTimers?(e.setTimeoutFn=iN.bind(St),e.clearTimeoutFn=aN.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var lN=1.33;function cN(e){return typeof e=="string"?uN(e):Math.ceil((e.byteLength||e.size)*lN)}function uN(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 bP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function fN(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function dN(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 pN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},m0=class extends ke{constructor(e){super(),this.writable=!1,_d(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 pN(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=g0(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=fN(e);return t.length?"?"+t:""}},hN=class extends m0{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)};tN(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,eN(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]=bP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},xP=!1;try{xP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var gN=xP;function mN(){}var yN=class extends hN{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}},Vo=class qu extends ke{constructor(t,r,n){super(),this.createRequest=t,_d(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=yP(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=qu.requestsCount++,qu.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=mN,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete qu.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()}};Vo.requestsCount=0;Vo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",YA);else if(typeof addEventListener=="function"){let e="onpagehide"in St?"pagehide":"unload";addEventListener(e,YA,!1)}}function YA(){for(let e in Vo.requests)Vo.requests.hasOwnProperty(e)&&Vo.requests[e].abort()}var bN=(function(){let e=vP({xdomain:!1});return e&&e.responseType!==null})(),xN=class extends yN{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=bN&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Vo(vP,this.uri(),e)}};function vP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||gN))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",vN=class extends m0{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=wP?{}:yP(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;h0(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&wd(()=>{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]=bP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},fb=St.WebSocket||St.MozWebSocket,wN=class extends vN{createSocket(e,t,r){return wP?new fb(e,t,r):t?new fb(e,t):new fb(e)}doWrite(e,t){this.ws.send(t)}},_N=class extends m0{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=nN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=rN();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&&wd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},SN={websocket:wN,webtransport:_N,polling:xN},kN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,CN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Cb(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=kN.exec(e||""),s={},i=14;for(;i--;)s[CN[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=AN(s,s.path),s.queryKey=EN(s,s.query),s}function AN(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 EN(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ab=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ku=[];Ab&&addEventListener("offline",()=>{Ku.forEach(e=>e())},!1);var Gu=class Xu extends ke{constructor(t,r){if(super(),this.binaryType=sN,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=Cb(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=Cb(r.host).host);_d(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=dN(this.opts.query)),Ab&&(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"})},Ku.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=mP,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&&Xu.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",Xu.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+=cN(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,wd(()=>{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(Xu.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(),Ab&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Ku.indexOf(this._offlineEventListener);n!==-1&&Ku.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Gu.protocol=mP;var ON=class extends Gu{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;Gu.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;Gu.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}},_P=class extends ON{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=>SN[n]).filter(n=>!!n)),super(e,r)}},G7=_P.protocol;function TN(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=Cb(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 SP={};J(SP,{Decoder:()=>NN,Encoder:()=>MN,PacketType:()=>te,isPacketValid:()=>UN,protocol:()=>LN});var RN=typeof ArrayBuffer=="function",PN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,kP=Object.prototype.toString,$N=typeof Blob=="function"||typeof Blob<"u"&&kP.call(Blob)==="[object BlobConstructor]",IN=typeof File=="function"||typeof File<"u"&&kP.call(File)==="[object FileConstructor]";function y0(e){return RN&&(e instanceof ArrayBuffer||PN(e))||$N&&e instanceof Blob||IN&&e instanceof File}function Yu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Yu(e[r]))return!0;return!1}if(y0(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Yu(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Yu(e[r]))return!0;return!1}function FN(e){let t=[],r=e.data,n=e;return n.data=Eb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Eb(e,t){if(!e)return e;if(y0(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]=Eb(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]=Eb(e[n],t));return r}return e}function jN(e,t){return e.data=Ob(e.data,t),delete e.attachments,e}function Ob(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]=Ob(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ob(e[r],t));return e}var DN=Bj(wD(),1),Tb=(0,DN.default)("socket.io-parser"),CP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],LN=5,te;(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"})(te||(te={}));var MN=class{constructor(e){this.replacer=e}encode(e){return Tb("encoding packet %j",e),(e.type===te.EVENT||e.type===te.ACK)&&Yu(e)?this.encodeAsBinary({type:e.type===te.EVENT?te.BINARY_EVENT:te.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===te.BINARY_EVENT||e.type===te.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)),Tb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=FN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},NN=class AP extends ke{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===te.BINARY_EVENT;n||r.type===te.BINARY_ACK?(r.type=n?te.EVENT:te.ACK,this.reconstructor=new BN(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(y0(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(te[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===te.BINARY_EVENT||n.type===te.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(!EP(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(AP.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Tb("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 te.CONNECT:return Hf(r);case te.DISCONNECT:return r===void 0;case te.CONNECT_ERROR:return typeof r=="string"||Hf(r);case te.EVENT:case te.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&CP.indexOf(r[0])===-1);case te.ACK:case te.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},BN=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=jN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function VN(e){return typeof e=="string"}var EP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function zN(e){return e===void 0||EP(e)}function Hf(e){return Object.prototype.toString.call(e)==="[object Object]"}function WN(e,t){switch(e){case te.CONNECT:return t===void 0||Hf(t);case te.DISCONNECT:return t===void 0;case te.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&CP.indexOf(t[0])===-1);case te.ACK:return Array.isArray(t);case te.CONNECT_ERROR:return typeof t=="string"||Hf(t);default:return!1}}function UN(e){return VN(e.nsp)&&zN(e.id)&&WN(e.type,e.data)}function Nt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var HN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),OP=class extends ke{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=[Nt(e,"open",this.onopen.bind(this)),Nt(e,"packet",this.onpacket.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(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(HN.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:te.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:te.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 te.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 te.EVENT:case te.BINARY_EVENT:this.onevent(e);break;case te.ACK:case te.BINARY_ACK:this.onack(e);break;case te.DISCONNECT:this.ondisconnect();break;case te.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:te.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:te.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 Xo(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}Xo.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};Xo.prototype.reset=function(){this.attempts=0};Xo.prototype.setMin=function(e){this.ms=e};Xo.prototype.setMax=function(e){this.max=e};Xo.prototype.setJitter=function(e){this.jitter=e};var Rb=class extends ke{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,_d(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 Xo({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||SP;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 _P(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Nt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Nt(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(Nt(e,"ping",this.onping.bind(this)),Nt(e,"data",this.ondata.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this)),Nt(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){wd(()=>{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 OP(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)}},sa={};function db(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=TN(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=sa[o]&&s in sa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Rb(n,t):(sa[o]||(sa[o]=new Rb(n,t)),l=sa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(db,{Manager:Rb,Socket:OP,io:db,connect:db});L();L();L();jM(HL);I();var TP=(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"?vd(a):rn(r[i],a):r[i]=a}),s&&(r.schema=s))},RP=(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=zC(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")&&vd(r.designSystem)};var qN={success:"green",error:"red",warning:"yellow"},PP=(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)}},$P={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:qN[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 KN=!1,GN=()=>KN?"http://localhost:8080":"https://api.symbols.app",XN=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}},YN=async e=>{try{let t=e||GN(),r=await C.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)}},jP=(e,t,r,n)=>{e.on("snapshot",TP(t,r,n)),e.on("ops",RP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&PP(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},JN=async(e,t,r,n)=>{let o=await YN(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=Eo(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)")}),jP(a,e,t,r),a},ZN=(e,t,r)=>{let n=Eo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),jP(n,e,t,r),n.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),n},QN=async(e,t,r)=>{let{mode:n,baseUrl:o}=XN(r);return n?n==="collab"?JN(e,t,r,o):n==="runner"?ZN(e,t,r):null:null},eB={onInit:QN};var DP=e=>typeof e>"u",IP=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),FP=e=>e?.editor?.runtime==="runner",LP=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},MP={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!DP(r.liveSync)?r.liveSync:IP(t)||FP(t))&&(IP(t)&&!FP(t)&&!t?.key||LP(e,eB))}},NP={name:"notifications",beforeCreate(e,t){if(!t)return;let r=DP(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&LP(e,$P)}};I();function BP(e){return k(e)?e:$(e)?e.find(t=>k(t)):""}function x0(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&BP(e.extends),n=e.parent&&e.parent.childExtends&&BP(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Sd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=x0(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?Sd(e.parent):o&&(t[o]||r[o])?e:Sd(e.parent)}var tB=(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}))}},b0={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:tB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=Sd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=x0(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=Sd(n);if(!o)return;let s=x0(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(_(t)){let{Content:r,...n}=t;for(let o in n)uo[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
|
+
src: ${o};`},Va=(e,t,r,n)=>`@font-face {${H0(e,t,r,n)}
|
|
108
|
+
}`,gd=(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 H0(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),PD=e=>Object.keys(e).map(t=>gd(t,e[t].value)),pO=(e,t,r)=>{if(t&&t.isVariable){let o=mr(t.url,r)||t.url;return W0(o)?U0(o):Va(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return gd(e,t,r).map(dO);let n=Array.isArray(t.url)?t.url.map(o=>mr(o,r)||o):mr(t.url,r)||t.url;return Va(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},hO=(e,t)=>Object.keys(e).map(r=>pO(r,e[r].value,t));L();L();L();var gO={};Y(gO,{animation:()=>JD,breakpoints:()=>YD,class:()=>oL,color:()=>zD,devices:()=>ZD,document:()=>XD,font:()=>FD,fontFace:()=>LD,fontFamily:()=>jD,fontFamilyTypes:()=>DD,gradient:()=>VD,grid:()=>nL,icons:()=>HD,media:()=>MD,reset:()=>sL,semanticIcons:()=>qD,sequence:()=>md,shadow:()=>UD,spacing:()=>BD,svg:()=>QD,svgData:()=>eL,templates:()=>tL,theme:()=>WD,timing:()=>KD,typography:()=>mO,unit:()=>$D,vars:()=>iL});var md={"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},$D={default:"em"},ID={browserDefault:16,base:16,type:"font-size",ratio:md["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},mO=ID,FD={},jD={},DD={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},LD={},MD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},ND={base:mO.base,type:"spacing",ratio:md.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},BD=ND,zD={},VD={},WD={},UD={},HD={},qD={},GD={default:150,base:150,type:"timing",ratio:md["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},KD=GD,XD={},YD={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},ZD={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]},JD={},QD={},eL={},tL={},rL={},nL=rL,oL={},sL={},iL={},OA={},TA={},Lu=gO,Wu={},yO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Lu){let t=e.toLowerCase();Wu[t]=Lu[e];let r=yO(t);r!==t&&(Wu[r]=Lu[e]),t!==e&&(Wu[e]=Lu[e])}var q0={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:OA,cssMediaVars:TA,CSS_VARS:OA,CSS_MEDIA_VARS:TA,_scratchConfig:!0,...Wu},aL=et(q0),Mf={active:"0",0:q0};var Ta=[],lL=e=>{e&&e._scratchConfig&&Ta.push(e)},cL=()=>{Ta.pop()},q=e=>Ta.length?Ta[Ta.length-1]:Mf[e||Mf.active]||q0,uL=e=>{if(D(e))return Mf.active="1",Mf[1]=er(e,et(aL)),e};var Ur={"-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"},G0=(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=bO.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Qa=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},bO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),K0=(e,t)=>{let{base:r,type:n,unit:o}=t,s=bO.has(o)?"rem":o,i=(B0(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=Ur[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Ur[e+1],u=Math.abs(e),d=Math.pow(wO,2*u),f=Ur[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},xO=(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}))`},X0=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},vO=(e,t)=>X0(e,t).map(r=>r/e),Y0=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=X0(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=xO(h+1,c,i,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};G0(x,t)})},wO=1.618,fL=(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)},Hr=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=Ur[c],d=fL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=K0(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};G0(g,e),s&&Y0(g,e)}return e},dL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=P(t)?t:Ur[t],a=P(t)?Object.entries(Ur).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=K0(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return G0(p,l),s&&Y0(p,l),l},Z0=(e="A",t)=>{let r=q(),{unit:n}=r;if(P(e)&&We(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(z0.some(m=>e.includes(m))||!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+"-":""}${fd(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=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}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 m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},_O=(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:Z0(o,t)}).join("")},Wa=(e,t,r,n)=>{if(typeof e!="string")return q().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Qa(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=_O(e,r):e=Z0(e,r),{[t]:n?`${n}(${e})`:e}},SO=(e,t)=>Ur[e-t],kO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=SO(t,o);return r[s]})};L();var pL=(e,t)=>{let r=q(),{cssVars:n}=r;le(e.value)||(n[e.var]=e.value)},J0=(e,t,r)=>{let n=q(),{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]=vO(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})`},CO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),yd=(e,t={})=>{let r=q(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=CO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||J0(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"})`)}},Nf=(e,t,r={})=>{let n=q(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=CO.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}`]={}),J0(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(B0(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}};L();var AO=Ka(),vb=e=>{let t=q(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},hL=e=>{let t=e&&(e.default||e);if(!P(t))return AO&&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},{}):{}},gL=(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},RA=new Set,EO=(e,t)=>{let r=t&&t.default?t.default:t;if(!P(r))return AO&&!RA.has(e)&&(RA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=hL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=gL(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=bL(a),a},mL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",yL=new RegExp(`<(${mL})\\b([^>]*?)\\s*/>`,"g"),bL=e=>e.replace(yL,"<$1$2></$1>"),OO={};Y(OO,{appendSVGSprite:()=>WO,appendSvgIconsSprite:()=>HO,applyDocument:()=>VO,applyHeadings:()=>FO,applyReset:()=>GO,applySpacingSequence:()=>MO,applyTimingSequence:()=>zO,applyTypographySequence:()=>jO,checkIfBoxSize:()=>LO,getColor:()=>Pe,getFontFamily:()=>$O,getFontSizeByKey:()=>DO,getMediaColor:()=>_t,getMediaTheme:()=>qr,getShadow:()=>BO,getSpacingBasedOnRatio:()=>Ho,getSpacingByKey:()=>Ve,getTheme:()=>Q0,getTimingByKey:()=>gr,getTimingFunction:()=>Rn,runThroughMedia:()=>IO,setColor:()=>Ra,setFont:()=>PO,setFontFamily:()=>Sb,setGradient:()=>Pa,setMediaTheme:()=>ev,setSVG:()=>rv,setShadow:()=>$a,setSvgIcon:()=>UO,setTheme:()=>TO,splitSpacedValue:()=>NO});L();var Pe=(e,t,r)=>{let n=r||q();if(!P(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(U(e))[o,s,i]=e;else{let d=Ja(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=Oa(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},_t=(e,t,r)=>{let n=r||q();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!P(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;let o;if(U(e))o=e[0];else{let c=Ja(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=D(a);if(l&&a.value)return Pe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Pe(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]=Pe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ra=(e,t,r)=>{let n=q();if(P(e)&&We(e)){let h=e.slice(2);if(e=Pe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(P(m)||U(m)||D(m))&&(n.color[g[0]]=Ra(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",x=g[2];x&&(y=Oa(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let x=In(g[0]);x&&x.length>=3?e=`rgba(${Oa(x.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(U(e)&&(e={"@light":e[0],"@dark":e[1]}),D(e)){let h={};for(let g in e)h[g]=Ra(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 x=b.slice(1),v=h[b],w=v&&(v.value||v);!w||typeof w!="string"||(y[x]=w,(x==="light"||m===void 0)&&(m=w))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let x=`[data-theme="${b}"]`;if(n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b],b==="light"||b==="dark"){let v=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(P(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(P(s)&&!s.includes("(")&&!s.startsWith("#")){let h=Ja(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(P(g)||U(g)||D(g))&&(n.color[h.name]=Ra(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Oa(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=In(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}},Pa=(e,t,r)=>{let n=q();if(P(e)&&We(e)&&(e=Pe(e.slice(2))),U(e))return{"@light":Pa(e[0],t,"light"),"@dark":Pa(e[0],t,"dark")};if(D(e)){let s={};for(let i in e)s[i]=Pa(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}};L();var xL=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"]),PA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],vL=e=>{for(let t=0;t<PA.length;t++)if(e.includes(PA[t]))return!0;return!1},bd=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?Pe(e[i]):e[i]}),t},la=e=>(e.value||(e.value=bd(e)),e.value),Q0=(e,t)=>{let r=q();if(r.useVariable)return qr(e,t);let n=r.theme;if(P(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return la(i);e=[o,s||t]}}if(le(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return la(a[s]);if(i&&i[s])return la(i[s]);if(l&&l[s])return la(l[s])}else if(D(e))return bd(e)},wL=(e,t,r)=>{if(D(t))e.variants.inverse.value=bd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},_L=(e,t,r,n)=>{let o=Q0(r);n[`&:${t}`]=o,D(r)&&!r.value&&(r.value=o)},SL=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return _L(e,n,o,t),e}),e):void 0},kL=(e,t,r,n)=>{let o=Q0(r);n[`@media (prefers-color-scheme: ${t})`]=o,D(r)&&!r.value&&(r.value=o)},CL=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&kL(e,n,o,t),n==="inverse"&&wL(e,o,t),e}),e):void 0},AL=(e,t)=>{let r=q(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return P(s)?n[o]=r.theme[s]:la(n[o]),e}),e):void 0},TO=(e,t)=>{let r=q();if(r.useVariable)return ev(e,t);let{state:n,media:o,helpers:s}=e,i=bd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return SL(e,i),CL(e,i),AL(e,i),{var:a,value:i,state:n,media:o,helpers:s}},wb=(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===":")&&vL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Pe(f,`@${d}`);p!==void 0&&P(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!xL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>le(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)le(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)le(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(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=Pe(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 x=`@media (prefers-color-scheme: ${g})`;o[x]||(o[x]={}),o[x][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},ev=(e,t,r,n)=>{let o=q(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(le(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&le(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wb(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]=ev(u,t,l,n||d)}else if(!a){let d=Pe(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(P(e)&&We(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},_b=e=>{let t=q(),r={};for(let n in e){let o=n.slice(0,1);if(le(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=_b(e[n]):o==="."&&(r[`&${n}`]=_b(e[n]))}else r[n]=e[n]}return r},RO=(e,t)=>{let r=t.shift();return e[r]?RO(e[r],t):e},$A=(e,t)=>U(t)?RO(e,t):P(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=q();if(P(e)&&We(e)&&(e=qr(e.slice(2))),!e||!P(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=U(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=$A(s,o):s&&t&&(s=$A(s,t)),_b(s)};L();L();var PO=(e,t)=>{let r=q(),n=`--font-${t}`;if(!e||U(e)&&!e[0])return;let o;if(e.isVariable){let s=mr(e.url,r.files)||e.url;W0(s)?o=U0(s):o=Va(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=gd(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=Va(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},$O=(e,t)=>{let r=q(),{fontFamily:n}=r;return V0(t||n,e)},Sb=(e,t)=>{let r=q(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),D(s)&&(s=Za(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};L();var IO=e=>{let t=q(),{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;it(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,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){it(i,{sequence:{},scales:{},vars:{}}),Hr(i),Nf(e,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),Hr(i),Nf(e,o)}},FO=e=>{let t=q();if(e.h1Matches){let r=e.unit,n=kO(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}}}},jO=()=>{let e=q(),{typography:t}=e;Hr(t),FO(t),yd(t),IO(t)},DO=e=>{let t=q(),{typography:r}=t;return Wa(e,"fontSize",r)};L();L();var EL=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;it(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),Hr(r),Nf(e,t)}},LO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},MO=()=>{let e=q(),{spacing:t}=e;Hr(t),yd(t),EL(t)},OL=e=>{let t=q(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:Hr(e)},Ve=(e,t="padding",r,n)=>{let o=OL(r);if(P(e)&&!n&&e.includes("(")){let i=Qa(e);n=i[0],e=i[1]}let s=n?[e]:Za(e);if(U(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)=>Wa(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Wa(e,t,o,n)}},Ho=(e,t,r,n)=>{let o=q(),{spacing:s}=o,i=r||e[t];if(!n&&P(i)&&i.includes("(")){let a=Qa(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Ve(i,t,a,n)}return Ve(i,t,s,n)},NO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=z0.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(" ")};L();var $a=(e,t,r,n)=>{let o=q();if(U(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[1],t,"dark")};if(D(e)){let i={};for(let a in e)i[a]=$a(e[a],t,a.startsWith("@")?a.slice(1):a);return i}P(e)&&!Fn.test(e)&&(e=hd(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=Pe(a);if(Go(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=Ve(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}},BO=(e,t)=>{let r=q();if(t||(t=r.globalTheme),!P(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(We(e))return`var(${e})`;let[n]=U(e)?e:e.split(" "),o=r.shadow[n],s=D(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};L();var zO=()=>{let e=q(),{timing:t}=e;Hr(t),yd(t)},Rn=e=>{let t=q(),{timing:r}=t;return r[e]||r[ud(e)]||e},gr=(e,t="timing")=>{let r=q(),{timing:n}=r;return Wa(e,t,n)};L();var VO=()=>{let e=q(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:V0(r),fontSize:o.base,lineHeight:o.lineHeight})};L();var tv={document:be},rv=(e,t)=>{let r=q();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?EO(t,e):e},WO=(e,t=tv)=>{let r=q(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];qO(n,t)},UO=(e,t)=>{let r=q();return r.useIconSprite&&!r.semanticIcons?.[t]?rv(e,t):e},HO=(e,t=tv)=>{let r=q(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];qO(n,t)},sb=(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},TL=(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},IA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},qO=(e,t=tv)=>{let r=q(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),vb(e);let o=n.querySelector("#svgSprite"),s=vb(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=TL(n,s);if(o)if(a)IA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=sb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=sb(n);l&&l.nodeType&&(IA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=sb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};L();var GO=(e={})=>{let t=q(),{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&&$n(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 er(it(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}})}};L();var RL=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),PL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),$L=e=>RL.has(e),An=e=>{let t=e+"";if(Fn.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(We(n))return`var(${n})`;if($L(n)||/^\d/.test(n)||n==="0")return n;let o=Pe(n);if(Go(o))return o;let s=Ve(n,"border");return s&&s.border?s.border:n}).join(" ")},IL=e=>Fn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(We(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Pe(t);return Go(r)?r:t}).join(" "),FL=(e,t)=>BO(e,t),FA=(e,t)=>Fn.test(e)?e:hd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(We(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Pe(n);if(Go(o)){let i=_t(n,t);return D(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=Ve(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),KO=(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=hd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||PL.has(l)||l==="transparent"||Fn.test(l))return l;let c=Pe(l);return Go(c)?c:l}).join(" ")));return n+i.join(", ")+s},jL=(e,t)=>{let r=q();return e.split(", ").map(n=>We(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?KO(n,t):r.gradient[e]?{backgroundImage:_t(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Ja(n)?`url(${n})`:n).join(" ")},DL=e=>P(e)&&e.split(" ").map(t=>Ve(t,"gap").gap).join(" "),LL=e=>{let t=e.split(" ");return t.length?t.map(r=>We(r)?`var(${r})`:r.length<3||r.includes("ms")?gr(r).timing||r:Rn(r)?Rn(r):r).join(" "):e},jA=(e,t,r)=>{if(P(e))return e.split(",").map(n=>gr(n).timing||n).join(",")},ML=e=>{let t=e.split(",");if(t.length)return t.map(LL).join(",")};function Re(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(P(o)){if(o.includes("(")){let l=Qa(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=LO(e);!i&&a&&!n.ratio&&(o=NO(o))}return n.ratio?Ho(r,e,o,s):Ve(o,e,void 0,s)}var se=(e,t=null,r)=>Re(e,t,r,{ratio:!0}),DA=(e,t,r)=>{if(P(e))return{borderRadius:e.split(" ").map((n,o)=>Ho(t,r,n)[r]).join(" ")}};L();var NL=(e,t)=>{let r=q(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},vt=e=>e,LA={color:Ra,gradient:Pa,font:PO,fontFamily:Sb,fontfamily:Sb,theme:TO,icons:UO,semanticIcons:vt,semanticicons:vt,svg:rv,svgData:vt,typography:vt,shadow:$a,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:NL},BL=(e,t,r)=>{let n=q(),o=yO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=LA[o]||LA[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")},zL=(e,t)=>{let r=q(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=D(t[o])||U(t[o])?1:0,a=D(t[s])||U(t[s])?1:0;return i-a}).forEach(o=>{try{return BL(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var VL={},nv=(e,t=VL)=>{let r=t.config||q(),{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=uL(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),x=b&&b.defaultView||(typeof window<"u"?window:null),v=b&&(r.themeRoot||b.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let E=F=>{v.setAttribute("data-theme",F.matches?"dark":"light")},S=x.matchMedia("(prefers-color-scheme: dark)");if(E(S),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=E;try{S.addEventListener("change",E)}catch{S.addListener(E)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),A=new Set(w);if(w.forEach(E=>{let S=E.toLowerCase();S!==E&&A.has(S)&&er(y[S],y[E])}),w.map(E=>{let S=E.toLowerCase();if(!(S!==E&&A.has(S)))return zL(E,y[E])}),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{jO()}catch(E){r.verbose&&console.warn("Error applying typography sequence",E)}if(y.spacing)try{MO()}catch(E){r.verbose&&console.warn("Error applying spacing sequence",E)}if(y.timing)try{zO()}catch(E){r.verbose&&console.warn("Error applying timing sequence",E)}VO();let T=GO();return T&&(r.reset=T),r};var WL=null,UL=null,HL=null;function qL(e){e.batchAtomicCss&&(UL=e.batchAtomicCss),e.compoundCssClass&&(HL=e.compoundCssClass)}function GL(){try{let e=q();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Uu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var MA=new WeakMap;function ca(e,t){let r=XO(t);if(!r)return;let n=MA.get(r);if(n||(n=new Set,MA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var NA=new WeakMap;function XO(e){let t=e||GL();if(!t||!t.head)return null;let r=NA.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 NA.set(t,o),WL=o,o}function zt(e){if(XO(),typeof e=="string"){ca(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:Uu(l);a+=`${c}:${i[l]};`}ca(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Uu(s);ca(`${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:Uu(a);s+=`${c}:${l};`}}if(s&&ca(`${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)zt({[`${n} ${c}`]:o[c]});for(let c of a)zt({[c]:{[n]:o[c]}})}}}}function BA(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Uu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ca(`@keyframes ${e}{${r}}`),e}L();Ya();L();L();var KL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],XL=["none","forwards","backwards","both"],YL=["normal","reverse","alternate","alternate-reverse"],ZL=["running","paused"],JL=e=>/^[\d.]+m?s$/.test(e),QL=0,ib=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(D(e)){let o=`smbls-anim-${QL++}`;return{animationName:BA(o,e)}}let n=r&&r[e];return D(n)?BA(e,n):e},eM=(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:JL(d)?s.push(d):KL.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):YL.includes(d)?l=d:XL.includes(d)?c=d:ZL.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},tM={animation:(e,t)=>{if(P(e)&&e.includes(" ")){let r=eM(e,t);return{animationName:ib(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||Rn(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:ib(e,t),animationDuration:gr(t.animationDuration||"A").timing,animationDelay:gr(t.animationDelay||"0s").timing,animationTimingFunction:Rn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:ib(e,t)}),animationDuration:e=>({animationDuration:gr(e).timing}),animationDelay:e=>({animationDelay:gr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};L();var rM={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=>Bt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("height",t),...Re("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(!P(e))return;let[t,r]=e.split(" ");return{...Re("minWidth",t),...Re("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("minHeight",t),...Re("maxHeight",r||t)}},size:e=>{if(!P(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(!P(e))return;let[t,r]=e.split(" ");return{...Re("minInlineSize",t),...Re("minBlockSize",r||t)}},maxSize:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("maxInlineSize",t),...Re("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(!P(e))return;let[t,r]=e.split(" ");return{...Re("paddingInlineStart",t),...Re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Re("paddingBlockStart",t),...Re("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(!P(e))return;let[t,r]=e.split(" ");return{...Re("marginInlineStart",t),...Re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!P(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Re("marginBlockStart",r),...Re("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:DL(e)}),columnGap:(e,t)=>Ho(t,"columnGap",e),rowGap:(e,t)=>Ho(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!P(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(!P(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>DA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>DA(e??t.round,t,"borderRadius")},nM={fontSize:e=>DO(e)||e,fontFamily:e=>({fontFamily:$O(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},oM={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},sM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Ve(r,"k").k).join(" ")}},left:e=>Ve(e,"left"),top:e=>Ve(e,"top"),right:e=>Ve(e,"right"),bottom:e=>Ve(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ve(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=>Ve(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};L();var Dt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},iM={theme:(e,t)=>{if(e)return t.themeModifier?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=Dt(t);if(e)return{color:_t(e,r)}},background:(e,t)=>{let r=Dt(t);if(e)return P(e)&&e.includes("gradient")?{background:KO(e,r)}:{background:_t(e,r)}},backgroundColor:(e,t)=>{let r=Dt(t);if(e)return{backgroundColor:_t(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Dt(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:jL(e,o)}},textStroke:e=>({WebkitTextStroke:IL(e)}),outline:e=>({outline:An(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:An(e)}),borderColor:(e,t)=>{let r=Dt(t);if(e)return{borderColor:_t(e,r)}},borderTopColor:(e,t)=>{let r=Dt(t);if(e)return{borderTopColor:_t(e,r)}},borderBottomColor:(e,t)=>{let r=Dt(t);if(e)return{borderBottomColor:_t(e,r)}},borderLeftColor:(e,t)=>{let r=Dt(t);if(e)return{borderLeftColor:_t(e,r)}},borderRightColor:(e,t)=>{let r=Dt(t);if(e)return{borderRightColor:_t(e,r)}},borderLeft:e=>({borderLeft:An(e)}),borderTop:e=>({borderTop:An(e)}),borderRight:e=>({borderRight:An(e)}),borderBottom:e=>({borderBottom:An(e)}),shadow:(e,t)=>{let r=Dt(t);if(e)return{boxShadow:FL(e,r)}},boxShadow:(e,t)=>{if(!P(e))return;let[r,n]=e.split("!importan"),o=Dt(t),s=n?" !important":"";return{boxShadow:FA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:FA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:An(e)})},YO={transition:e=>({transition:ML(e)}),transitionDuration:e=>({transitionDuration:jA(e)}),transitionDelay:e=>({transitionDelay:jA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};L();var aM={flow:(e,t)=>{let r=t.reverse;if(!P(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}}},lM={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})},zA={...tM,...rM,...nM,...oM,...sM,...iM,...YO,...aM,...lM},cM=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"]);L();var uM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,fM=(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(uM),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},VA=(e,t,r)=>({[e]:Kr(t,r)}),oa=(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}},ov=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return j(r)?r.call(t,t):!!r},dM=(e,t,r)=>{let n=e.slice(1),o=ov(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},pM=(e,t,r)=>({[e]:t}),hM=(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=ov(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},gM=(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=ov(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},mM=(e,t)=>Kr(e,t),yM={"@":fM,":":oa,"[":oa,"*":oa,"+":oa,"~":oa,"&":VA,">":VA,$:dM,"-":pM,".":hM,"!":gM},ab=Wo(),bM=(e,t,r)=>{let n=t?.context?.designSystem;n&&lL(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)=>it(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);it(o,mM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=j(c)?c(t,t.state,t.context):c;u&&i(a,u),!ab&&D(o[a])&&(o[a].label=a)}else if(zA[a]){let c=Ne(l,t);U(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=zA[a](c,t,t.state,t.context);U(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&i(a,u),!ab&&D(o[a])&&(o[a].label=a)}else if(cM.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}),!ab&&D(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&cL()}},xM=(e,t)=>{let r={};for(let n in e){let o=yM[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"?$n(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=bM(e,t,r),s=xM(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return rd(n,s);n._selectors=s}return n};L();L();L();Ya();var M7=new Proxy(Object.create(null),{get(){},has(){return!1}});L();var WA=(e,t)=>{let r=e.call("exec",t,e);if(r)return P(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var vM={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"}}}},wM={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},_M={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"}}},N7={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...vM,...wM,..._M,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var SM={};Y(SM,{A:()=>$R,AssetPicture:()=>ST,Audio:()=>TT,Avatar:()=>JR,B:()=>XT,Block:()=>JO,Box:()=>QT,Br:()=>tR,Button:()=>LR,ButtonSet:()=>zR,COMPONENTS:()=>FM,Caption:()=>BT,Checkbox:()=>hR,CheckboxHgroup:()=>gR,Circle:()=>xT,CircleButton:()=>NR,Clickable:()=>pT,Data:()=>ZT,Dialog:()=>UR,DialogFooter:()=>qR,DialogHeader:()=>HR,Dropdown:()=>rP,DropdownList:()=>nP,DropdownParent:()=>oP,DropdownParentFocus:()=>sP,DropdownSiblingFocus:()=>iP,FileIcon:()=>OR,Flex:()=>eT,Focusable:()=>hT,FocusableComponent:()=>gT,Footnote:()=>KT,Form:()=>lT,Grid:()=>rT,Gutter:()=>oT,H1:()=>IT,H2:()=>FT,H3:()=>jT,H4:()=>DT,H5:()=>LT,H6:()=>MT,Headline:()=>qT,Hgroup:()=>iR,HgroupButton:()=>lR,HgroupRows:()=>aR,Hoverable:()=>dT,Hr:()=>eR,I:()=>YT,Icon:()=>AR,IconButton:()=>VR,IconText:()=>ER,Iframe:()=>uT,Img:()=>iT,Inline:()=>QO,InlineFlex:()=>tT,InlineGrid:()=>nT,Input:()=>uR,Italic:()=>UT,KangorooButton:()=>BR,Li:()=>rR,Link:()=>dv,Notification:()=>lP,NumberInput:()=>dR,Ol:()=>oR,P:()=>NT,Picture:()=>wT,Radio:()=>yR,RadioHgroup:()=>bR,Range:()=>eP,RouteLink:()=>IR,RouterLink:()=>pv,SHAPES:()=>Bf,Select:()=>jR,Shape:()=>iv,Span:()=>$T,SquareButton:()=>MR,Strong:()=>zT,Subhead:()=>GT,Svg:()=>CT,Text:()=>PT,Textarea:()=>SR,TextareaWithButton:()=>kR,Theme:()=>vT,Title:()=>HT,Toggle:()=>vR,ToggleHgroup:()=>wR,Tooltip:()=>KR,TooltipHidden:()=>XR,TooltipParent:()=>YR,U:()=>VT,Ul:()=>nR,Underline:()=>WT,Video:()=>ET,depth:()=>sv,getSystemGlobalTheme:()=>zf});var ZO={};Y(ZO,{Block:()=>JO,Flex:()=>eT,Grid:()=>rT,Gutter:()=>oT,Inline:()=>QO,InlineFlex:()=>tT,InlineGrid:()=>nT});var JO={display:"block"},QO={display:"inline"},eT={display:"flex"},tT={display:"inline-flex"},rT={display:"grid"},nT={display:"inline-grid"},oT={boxSize:"C1"},sT={};Y(sT,{Img:()=>iT});L();var iT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Jt(e);return t&&t.src||e.src},srcset:e=>{let t=Jt(e);return(t?dd(t):"")||e.srcset}}},aT={};Y(aT,{Form:()=>lT});var lT={tag:"form"},cT={};Y(cT,{Iframe:()=>uT});var uT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},fT={};Y(fT,{Clickable:()=>pT,Focusable:()=>hT,FocusableComponent:()=>gT,Hoverable:()=>dT});var kM={appearance:"none",cursor:"pointer",fontFamily:"inherit"},dT={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}}},pT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},hT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},gT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:kM},mT={};Y(mT,{Picture:()=>wT});var yT={};Y(yT,{Theme:()=>vT,getSystemGlobalTheme:()=>zf});var bT={};Y(bT,{Circle:()=>xT,SHAPES:()=>Bf,Shape:()=>iv,default:()=>CM,depth:()=>sv});L();var wt=q(),sv={4:{boxShadow:`rgba(0,0,0,.10) 0 2${wt.unit.default} 4${wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${wt.unit.default} 6${wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${wt.unit.default} 10${wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${wt.unit.default} 16${wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${wt.unit.default} 26${wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${wt.unit.default} 42${wt.unit.default}`}},Io=e=>Pe(e.shapeDirectionColor)||Pe(e.borderColor)||Pe(e.backgroundColor)||Pe(e.background),Mu=e=>{let t=YO.transition(e.transition,e);return t&&t.transition},Bf={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:Io(e),transition:Mu(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:Io(e),transition:Mu(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:Io(e),transition:Mu(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:Mu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Io(e)} 25%, transparent 25%), linear-gradient(315deg, ${Io(e)} 25%, transparent 25%)`},"&:after":{background:Io(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)"}}}},iv={deps:{exec:Ne,getSpacingBasedOnRatio:Ho,getMediaColor:_t},classlist:{shape:e=>e.deps.exec(Bf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Bf[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}}},xT={round:"100%"},CM=iv;L();var zf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},vT={deps:{depth:sv},classlist:{depth:e=>!Bt(e.depth)&&e.deps.depth[e.depth]}},wT={deps:{getSystemGlobalTheme:zf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:zf},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}},_T={};Y(_T,{AssetPicture:()=>ST});L();var ST={tag:"picture",children:e=>{let t=Jt(e);if(t)return pd(t,e.alt)}},kT={};Y(kT,{Svg:()=>CT});var CT={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)}},AT={};Y(AT,{Video:()=>ET});L();var ET={tag:"video",controls:!0,attr:{src:e=>{let t=Jt(e);return t&&t.src||e.src}},children:e=>{let t=Jt(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"}},OT={};Y(OT,{Audio:()=>TT});L();var TT={tag:"audio",controls:!0,attr:{src:e=>{let t=Jt(e);return t&&t.src||e.src}},children:e=>{let t=Jt(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"}},RT={};Y(RT,{B:()=>XT,Caption:()=>BT,Data:()=>ZT,Footnote:()=>KT,H1:()=>IT,H2:()=>FT,H3:()=>jT,H4:()=>DT,H5:()=>LT,H6:()=>MT,Headline:()=>qT,I:()=>YT,Italic:()=>UT,P:()=>NT,Span:()=>$T,Strong:()=>zT,Subhead:()=>GT,Text:()=>PT,Title:()=>HT,U:()=>VT,Underline:()=>WT});var PT={},$T={tag:"span"},IT={tag:"h1"},FT={tag:"h2"},jT={tag:"h3"},DT={tag:"h4"},LT={tag:"h5"},MT={tag:"h6"},NT={tag:"p"},BT={tag:"caption"},zT={tag:"strong",fontWeight:"700"},VT={tag:"u"},WT={tag:"u"},UT={tag:"i"},HT={},qT={tag:"h6",fontSize:"B",fontWeight:500},GT={tag:"span",fontSize:"Z1"},KT={tag:"span",fontSize:"Z"},XT={tag:"b"},YT={tag:"i"},ZT={tag:"data"},JT={};Y(JT,{Box:()=>QT,Br:()=>tR,Hr:()=>eR,Li:()=>rR,Ol:()=>oR,Ul:()=>nR});var AM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},QT={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:AM},eR={tag:"hr",margin:"C1 0"},tR={tag:"br"},rR={tag:"li"},nR={tag:"ul",childExtends:{extends:"Li"}},oR={tag:"ol",childExtends:{extends:"Li"}},sR={};Y(sR,{Hgroup:()=>iR,HgroupButton:()=>lR,HgroupRows:()=>aR});var UA=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},iR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:UA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:UA,margin:"0",color:"paragraph"}},aR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},lR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},cR={};Y(cR,{Input:()=>uR});var uR={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:()=>dR});var dR={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}},pR={};Y(pR,{Checkbox:()=>hR,CheckboxHgroup:()=>gR});var hR={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"}}},gR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},mR={};Y(mR,{Radio:()=>yR,RadioHgroup:()=>bR});var yR={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}},bR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},xR={};Y(xR,{Toggle:()=>vR,ToggleHgroup:()=>wR});var vR={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:{}},_R={};Y(_R,{Textarea:()=>SR,TextareaWithButton:()=>kR});var SR={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"}},kR={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"}}},CR={};Y(CR,{FileIcon:()=>OR,Icon:()=>AR,IconText:()=>ER});var AR={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=v=>{let w=v[".isActive"];if(w)return v.call("exec",w.name||w.icon)},c=(v,w,A)=>{let{semanticIcons:T}=A&&A.designSystem,{toCamelCase:E}=A&&A.utils,S=u(v,w),F=E(S).split(/([a-z])([A-Z])/g),H=F[1]?F[0]:S.split(".")[0].split(" ")[0],V=T&&T[H];if(V){let W=S.includes(".")?"sfsymbols."+S.split(".").slice(1).join("."):"sfsymbols";return S=V[W]||V[S.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${S}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,w)=>{let{key:A}=v,T=v.call("exec",v.name||v.icon||A,v);return v.call("isString",T)&&T.includes("{{")&&(T=v.call("replaceLiteralsWithObjectFields",T)),v.call("isString",T)?T:A},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(w=>w.charAt(0).toUpperCase()+w.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],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},ER={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},OR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},TR={};Y(TR,{A:()=>$R,Link:()=>dv,RouteLink:()=>IR,RouterLink:()=>pv});var EM={};Y(EM,{default:()=>$M,getActiveRoute:()=>fv,lastLevel:()=>xd,lastPathname:()=>Vf,matchRoute:()=>lv,parseQuery:()=>cv,parseRoutePattern:()=>av,router:()=>Ko,runGuards:()=>uv});L();var RR=/^:(.+)/,PR=/^\*$/,HA=new Map,av=e=>{let t=HA.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(RR);a?n.push({index:i,name:a[1]}):PR.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return HA.set(e,s),s},lv=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||""),s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=av(l),u=OM(n,c);u>i&&(i=u,s=l,a=TM(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},OM=(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(RR.test(r[i]))o+=1;else if(PR.test(r[i]))o+=.5;else return-1;return o},TM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},cv=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},uv=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},fv=(e=0,t)=>{t||(t=typeof ie<"u"?ie.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Vf,xd=0,RM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,PM={level:xd,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},Ko=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||ie,i=o?.context?.document||be,a={...PM,...o.context.routerOptions,...n};xd=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=RM(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=cv(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Vf;Vf=f;let x,v,w,A;if(a.useParamsMatching){let E=lv(f,o.routes,a.level);x=E.key,v=E.routePath,w=E.content,A=E.params}else x=fv(a.level,f),v=x,w=o.routes[x||"/"]||o.routes["/*"],A={};let T=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!w){a.onNotFound?a.onNotFound({pathname:f,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",f,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let E={pathname:f,route:x,params:A,query:g,hash:h,element:o,state:r},S=await uv(a.guards,E);if(S===!1)return;if(typeof S=="string")return Ko(S,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||"")+(h||""))}catch{}if(b||!y){let E={route:x,routePath:v,hash:h,debugging:!1};Object.keys(A).length&&(E.params=A),Object.keys(g).length&&(E.query=g),a.updateState&&o.state.update(E,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let S=o.__ref?.origin?.content,F={};if(S)for(let V in S){let W=S[V];V==="__ref"||V==="props"||V==="node"||V==="parent"||V==="key"||(typeof W=="string"||typeof W=="number"||typeof W=="boolean"||typeof W=="object"&&W!==null&&!W.node&&!W.__ref)&&(F[V]=W)}let H={...F,...typeof w=="object"?w:{extends:w}};a.useFragment&&(H.tag="fragment");try{o.set(H,{contentElementKey:c})}catch(V){console.error("[smbls/router] failed to render route content",f,V)}}if(a.scrollToTop&&T?.scrollTo&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&w[c]?.node?.scrollTo&&w[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let E=i.getElementById(h);if(E&&T?.scrollTo){let S=E.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:S,left:0})}}Uo("routeChanged",o,a)},$M=Ko,IM=(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||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},dv={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>WA(e,e.href)||WA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:IM},$R={extends:"Link"},pv={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||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},IR={extends:[dv,pv]},FR={};Y(FR,{Select:()=>jR});var jR={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}}},DR={};Y(DR,{Button:()=>LR,ButtonSet:()=>zR,CircleButton:()=>NR,IconButton:()=>VR,KangorooButton:()=>BR,SquareButton:()=>MR});var LR={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)},MR={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"},NR={extends:"SquareButton",round:"C"},BR={extends:"Button",childExtends:"IconText"},zR={tag:"nav",display:"flex",childExtends:"SquareButton"},VR={extends:["SquareButton","ClickableItem"],round:"Z"},WR={};Y(WR,{Dialog:()=>UR,DialogFooter:()=>qR,DialogHeader:()=>HR});var UR={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},HR={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},qR={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"}},GR={};Y(GR,{Tooltip:()=>KR,TooltipHidden:()=>XR,TooltipParent:()=>YR});L();var KR={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=>Vo(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)}},XR={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)}},YR={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"}}})}},ZR={};Y(ZR,{Avatar:()=>JR});var JR={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"}`},QR={};Y(QR,{Range:()=>eP});var eP={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:xb("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:xb("#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)}},tP={};Y(tP,{Dropdown:()=>rP,DropdownList:()=>nP,DropdownParent:()=>oP,DropdownParentFocus:()=>sP,DropdownSiblingFocus:()=>iP});var rP={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"},nP={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"}}},oP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},sP={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()}}},iP={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()}}},aP={};Y(aP,{Notification:()=>lP});var lP={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}}}},FM=Object.assign({},ZO,sT,aT,cT,fT,mT,_T,kT,bT,AT,OT,yT,RT,JT,sR,cR,fR,pR,mR,xR,_R,CR,TR,FR,DR,WR,GR,ZR,QR,tP,aP);var jM=null;function DM(e){jM=e}L();var LM={};Y(LM,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>nx,DOMQ_PROPERTIES:()=>qo,ENV:()=>wx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>td,NODE_ENV:()=>Lt,OPTIONS:()=>cd,PACKAGE_MANAGER_TO_CDN:()=>jf,PARSED_DOMQ_PROPERTIES:()=>ed,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>rx,SVG_TAGS:()=>Dx,TYPES:()=>fa,UNIVERSAL_RESERVED_KEYS:()=>Ff,addCaching:()=>kf,addContext:()=>Sf,addExtend:()=>zx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Wb,addProtoToArray:()=>Zf,addRef:()=>vf,applyCSS:()=>zM,applyDependentState:()=>i0,applyEvent:()=>Rf,applyEventUpdate:()=>Pf,applyExtends:()=>Wx,applyProps:()=>Aa,arrayContainsOtherArray:()=>Db,arraysEqual:()=>Hb,arrayzeValue:()=>Za,buildImgSrcset:()=>dd,buildSourcesAndImg:()=>pd,cache:()=>u0,call:()=>HE,captureSnapshot:()=>y0,checkForStateTypes:()=>r0,checkIfInherits:()=>Tf,checkIfStringIsInArray:()=>Kb,clone:()=>sx,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>tE,concatAddExtends:()=>Mx,copyJavaScriptToClipboard:()=>j0,copyStringToClipboard:()=>F0,createBasedOnType:()=>xf,createElement:()=>t0,createElementExtends:()=>cf,createExtends:()=>ad,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>pf,createIfConditionFlag:()=>Tx,createInheritedState:()=>n0,createKey:()=>sd,createNestedObject:()=>px,createNestedObjectByKeyPath:()=>s0,createObjectWithoutPrototype:()=>rf,createParent:()=>wf,createPath:()=>_f,createProps:()=>ld,createPropsStack:()=>yf,createRoot:()=>e0,createScope:()=>l0,createSnapshotId:()=>od,customDecodeURIComponent:()=>tx,customEncodeURIComponent:()=>ex,cutArrayAfterValue:()=>zb,cutArrayBeforeValue:()=>Bb,debounce:()=>eE,debounceOnContext:()=>Ax,decodeNewlines:()=>Qb,deepClone:()=>et,deepContains:()=>fx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>ha,deepExtend:()=>lf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>da,defineSetter:()=>m0,destringifyGlobalScope:()=>ix,detectHeightOnInit:()=>_0,detectInfiniteLoop:()=>yx,document:()=>be,encodeNewlines:()=>Jb,error:()=>If,excludeKeysFromObject:()=>xx,exec:()=>Ne,extendCachedRegistry:()=>Nx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>$0,fibonacciNumberByIndex:()=>S0,filterArrays:()=>qb,filterArraysFast:()=>Gb,finalizeExtends:()=>hf,findClosestNumber:()=>Lf,findClosestNumberInFactory:()=>P0,findInheritedState:()=>Of,findKeyPosition:()=>Yb,flattenExtend:()=>Lo,formatDate:()=>w0,generateHash:()=>of,generateKey:()=>ga,generateMetaTags:()=>R0,get:()=>RE,getActiveRoute:()=>fv,getCDNUrl:()=>Df,getCapitalCaseKeys:()=>sE,getCdnProviderFromConfig:()=>x0,getChildStateInKey:()=>Ef,getChildren:()=>IE,getContext:()=>NE,getCookie:()=>Fx,getDB:()=>qE,getEmotionStylesheet:()=>N0,getExtendsInElement:()=>Vx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>af,getFrequencyInArray:()=>Lb,getHashedExtend:()=>ya,getImportMapScript:()=>v0,getInObjectByPath:()=>mx,getLocalStorage:()=>rE,getNev:()=>Cx,getPageMetadata:()=>QE,getParentStateInKey:()=>Af,getPath:()=>FE,getQuery:()=>GE,getRef:()=>$E,getRoot:()=>DE,getRootContext:()=>ME,getRootData:()=>LE,getRootState:()=>jE,getRootStateInKey:()=>Cf,getSpreadChildren:()=>iE,global:()=>Ib,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>lx,inheritChildExtends:()=>ff,inheritChildPropsExtends:()=>uf,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>df,init:()=>vd,initProps:()=>Jx,is:()=>Zt,isArray:()=>U,isBoolean:()=>Zu,isContextComponent:()=>aE,isCyclic:()=>bx,isDOMNode:()=>st,isDate:()=>Qu,isDefined:()=>Vo,isDevelopment:()=>id,isEmpty:()=>ef,isEmptyObject:()=>cx,isEqualDeep:()=>tf,isFunction:()=>j,isHtmlElement:()=>Gf,isLocal:()=>kx,isMethod:()=>KE,isMobile:()=>$x,isNode:()=>Ua,isNot:()=>jb,isNotProduction:()=>Ka,isNull:()=>Ju,isNumber:()=>Pn,isObject:()=>D,isObjectLike:()=>le,isPhoto:()=>k0,isProduction:()=>Wo,isStaging:()=>Sx,isState:()=>o0,isString:()=>P,isStringFunction:()=>Ox,isTest:()=>nf,isTesting:()=>_x,isUndefined:()=>Bt,isUniversallyReservedKey:()=>b0,isValidHtmlTag:()=>Lx,joinArrays:()=>Fa,jointStacks:()=>Bx,keys:()=>d0,lastLevel:()=>xd,lastPathname:()=>Vf,loadCssFile:()=>O0,loadJavascript:()=>T0,loadJavascriptFile:()=>C0,loadJavascriptFileEmbedSync:()=>E0,loadJavascriptFileSync:()=>A0,loadRemoteCSS:()=>JE,loadRemoteScript:()=>ZE,log:()=>BE,logGroupIf:()=>Px,logIf:()=>Rx,lookdown:()=>EE,lookdownAll:()=>OE,lookup:()=>AE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>ux,map:()=>ox,mapStringsWithContextComponents:()=>va,matchRoute:()=>lv,matchesComponentNaming:()=>En,memoize:()=>Ex,merge:()=>it,mergeSharedLibraries:()=>I0,nextElement:()=>VE,normalizeLibraryKey:()=>za,objectToString:()=>pa,objectizeStringProperty:()=>_a,overwrite:()=>rd,overwriteDeep:()=>$n,overwriteShallow:()=>nd,overwriteState:()=>a0,parse:()=>p0,parseDeep:()=>$f,parseQuery:()=>cv,parseRoutePattern:()=>av,pickupElementFromProps:()=>qx,pickupPropsFromElement:()=>Hx,previousElement:()=>WE,propExists:()=>Zx,propertizeElement:()=>Gx,propertizeUpdate:()=>cE,reinit:()=>BM,remove:()=>TE,removeChars:()=>D0,removeCookie:()=>jx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Mb,removeFromObject:()=>dx,removeNestedKeyByPath:()=>hx,removeValueFromArray:()=>Yf,removeValueFromArrayAll:()=>Vb,reorderArrayByValues:()=>Ub,replaceLiteralsWithObjectFields:()=>ZA,replaceOctalEscapeSequences:()=>Zb,resolveAsset:()=>Jt,resolveHandler:()=>La,resolveSharedLibraries:()=>tO,returnValueAsText:()=>bf,router:()=>Ko,runGuards:()=>uv,runPluginHook:()=>Ma,scratchSystem:()=>OO,scratchUtils:()=>oO,self:()=>Fb,set:()=>nv,setActiveRootState:()=>g0,setCookie:()=>Ix,setHashedExtend:()=>sf,setInObjectByPath:()=>gx,setLocalStorage:()=>nE,setNodeStyles:()=>f0,setProps:()=>PE,setPropsPrototype:()=>gf,spotByPath:()=>CE,srcsetFor:()=>No,stringIncludesAny:()=>Jf,stringToObject:()=>ax,swapItemsInArray:()=>Nb,syncProps:()=>Ca,toCamelCase:()=>ud,toDashCase:()=>fd,toDescriptionCase:()=>M0,toTitleCase:()=>L0,toggleFullscreen:()=>YE,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>c0,trimStringFromSymbols:()=>Xb,unstackArrayOfObjects:()=>Xf,update:()=>Kx,updateProps:()=>Qx,variables:()=>UE,verbose:()=>h0,warn:()=>zE,window:()=>ie});L();L();var MM=q(),cP=(e=MM,t)=>{let r=D(t.localFile)?t.localFile:{},n=et(r.designSystem||{});return er(e,n)},NM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},vd=(e,t=NM)=>{let r=cP(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=nv({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=hO(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&&zt(a),c&&(zt({[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];zt(m)}l&&zt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];zt(m)}return(f||d)&&WO(i.svg,{document:t.document}),(h||p)&&HO(i.icons,{document:t.document}),i},uP={},BM=(e,t=uP)=>{let r=cP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=nv({verbose:!1,...r});if(!t.preventInject){if(zt({[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];zt(i)}zt(s.reset)}return s},zM=(e,t=uP)=>{zt(e)};L();L();var B7=ie&&ie.location?ie.location.host.includes("dev."):id();L();Mo();var VM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},WM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},z7={...VM,router:WM};L();L();L();L();Mo();var Wf={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"},UM=Object.create(null);for(let e in Wf)UM[Wf[e]]=e;var lb=Object.create(null);for(let e in Wf){let t=Wf[e];if(lb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${lb[t]}"`);lb[t]=e}var HM=0,qM=()=>`${Date.now().toString(36)}-${(HM++).toString(36)}`,Ia=(e,t,r={})=>({id:qM(),ts:Date.now(),type:e,level:t,...r}),GM=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(" > ")},Uf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:GM(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Bo=e=>e?.context?.analyze,KM={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"}},XM=(e,{category:t,type:r,level:n})=>o=>{let s=Bo(o);!s||!s.shouldCapture(t)||s.emit(Ia(r,n,{hook:e,element:Uf(o)}))},qA=e=>(t,r)=>{let n=Bo(t);!n||!n.shouldCapture("state")||n.emit(Ia("state","debug",{hook:e,element:Uf(t),changedKeys:r?.changedKeys||null}))},YM={name:"analyze",error(e,t){let r=Bo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ia("error","error",{hook:t?.hook||"error",element:Uf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Bo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ia("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Bo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Bo(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(Ia("update","debug",{hook:"update",element:Uf(e),durationMs:r}))},beforeStateUpdate:qA("beforeStateUpdate"),stateUpdate:qA("stateUpdate")};for(let[e,t]of Object.entries(KM))YM[e]=XM(e,t);L();L();L();L();var V7=typeof ie<"u"&&typeof ie.document<"u";var W7=typeof ie<"u"&&typeof ie.document<"u";L();var U7=typeof ie<"u"&&typeof ie.document<"u";L();var H7=typeof ie<"u"&&typeof ie.document<"u";var Qt=Object.create(null);Qt.open="0";Qt.close="1";Qt.ping="2";Qt.pong="3";Qt.message="4";Qt.upgrade="5";Qt.noop="6";var Hu=Object.create(null);Object.keys(Qt).forEach(e=>{Hu[Qt[e]]=e});var kb={type:"error",data:"parser error"},fP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",dP=typeof ArrayBuffer=="function",pP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,hv=({type:e,data:t},r,n)=>fP&&t instanceof Blob?r?n(t):GA(t,n):dP&&(t instanceof ArrayBuffer||pP(t))?r?n(t):GA(new Blob([t]),n):n(Qt[e]+(t||"")),GA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function KA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var cb;function ZM(e,t){if(fP&&e.data instanceof Blob)return e.data.arrayBuffer().then(KA).then(t);if(dP&&(e.data instanceof ArrayBuffer||pP(e.data)))return t(KA(e.data));hv(e,!1,r=>{cb||(cb=new TextEncoder),t(cb.encode(r))})}var XA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ua=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<XA.length;e++)ua[XA.charCodeAt(e)]=e;var JM=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=ua[e.charCodeAt(n)],i=ua[e.charCodeAt(n+1)],a=ua[e.charCodeAt(n+2)],l=ua[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},QM=typeof ArrayBuffer=="function",gv=(e,t)=>{if(typeof e!="string")return{type:"message",data:hP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:eN(e.substring(1),t)}:Hu[r]?e.length>1?{type:Hu[r],data:e.substring(1)}:{type:Hu[r]}:kb},eN=(e,t)=>{if(QM){let r=JM(e);return hP(r,t)}else return{base64:!0,data:e}},hP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,gP="",tN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{hv(s,!1,a=>{n[i]=a,++o===r&&t(n.join(gP))})})},rN=(e,t)=>{let r=e.split(gP),n=[];for(let o=0;o<r.length;o++){let s=gv(r[o],t);if(n.push(s),s.type==="error")break}return n};function nN(){return new TransformStream({transform(e,t){ZM(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 ub;function Nu(e){return e.reduce((t,r)=>t+r.length,0)}function Bu(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 oN(e,t){ub||(ub=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Nu(r)<1)break;let l=Bu(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(Nu(r)<2)break;let l=Bu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Nu(r)<8)break;let l=Bu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(kb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Nu(r)<o)break;let l=Bu(r,o);a.enqueue(gv(s?l:ub.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(kb);break}}}})}var mP=4;function ke(e){if(e)return sN(e)}function sN(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ke.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.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};ke.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};ke.prototype.emitReserved=ke.prototype.emit;ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var wd=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")(),iN="arraybuffer";function yP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var aN=St.setTimeout,lN=St.clearTimeout;function _d(e,t){t.useNativeTimers?(e.setTimeoutFn=aN.bind(St),e.clearTimeoutFn=lN.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var cN=1.33;function uN(e){return typeof e=="string"?fN(e):Math.ceil((e.byteLength||e.size)*cN)}function fN(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 bP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function dN(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function pN(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 hN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},mv=class extends ke{constructor(e){super(),this.writable=!1,_d(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 hN(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=gv(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=dN(e);return t.length?"?"+t:""}},gN=class extends mv{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)};rN(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,tN(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]=bP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},xP=!1;try{xP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var mN=xP;function yN(){}var bN=class extends gN{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}},zo=class qu extends ke{constructor(t,r,n){super(),this.createRequest=t,_d(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=yP(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=qu.requestsCount++,qu.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=yN,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete qu.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()}};zo.requestsCount=0;zo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",YA);else if(typeof addEventListener=="function"){let e="onpagehide"in St?"pagehide":"unload";addEventListener(e,YA,!1)}}function YA(){for(let e in zo.requests)zo.requests.hasOwnProperty(e)&&zo.requests[e].abort()}var xN=(function(){let e=vP({xdomain:!1});return e&&e.responseType!==null})(),vN=class extends bN{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=xN&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new zo(vP,this.uri(),e)}};function vP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||mN))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",wN=class extends mv{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=wP?{}:yP(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;hv(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&wd(()=>{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]=bP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},fb=St.WebSocket||St.MozWebSocket,_N=class extends wN{createSocket(e,t,r){return wP?new fb(e,t,r):t?new fb(e,t):new fb(e)}doWrite(e,t){this.ws.send(t)}},SN=class extends mv{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=oN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=nN();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&&wd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},kN={websocket:_N,webtransport:SN,polling:vN},CN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,AN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Cb(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=CN.exec(e||""),s={},i=14;for(;i--;)s[AN[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=EN(s,s.path),s.queryKey=ON(s,s.query),s}function EN(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 ON(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ab=typeof addEventListener=="function"&&typeof removeEventListener=="function",Gu=[];Ab&&addEventListener("offline",()=>{Gu.forEach(e=>e())},!1);var Ku=class Xu extends ke{constructor(t,r){if(super(),this.binaryType=iN,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=Cb(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=Cb(r.host).host);_d(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=pN(this.opts.query)),Ab&&(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"})},Gu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=mP,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&&Xu.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",Xu.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+=uN(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,wd(()=>{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(Xu.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(),Ab&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Gu.indexOf(this._offlineEventListener);n!==-1&&Gu.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Ku.protocol=mP;var TN=class extends Ku{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;Ku.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;Ku.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}},_P=class extends TN{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=>kN[n]).filter(n=>!!n)),super(e,r)}},q7=_P.protocol;function RN(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=Cb(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 SP={};Y(SP,{Decoder:()=>BN,Encoder:()=>NN,PacketType:()=>ee,isPacketValid:()=>HN,protocol:()=>MN});var PN=typeof ArrayBuffer=="function",$N=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,kP=Object.prototype.toString,IN=typeof Blob=="function"||typeof Blob<"u"&&kP.call(Blob)==="[object BlobConstructor]",FN=typeof File=="function"||typeof File<"u"&&kP.call(File)==="[object FileConstructor]";function yv(e){return PN&&(e instanceof ArrayBuffer||$N(e))||IN&&e instanceof Blob||FN&&e instanceof File}function Yu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Yu(e[r]))return!0;return!1}if(yv(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Yu(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Yu(e[r]))return!0;return!1}function jN(e){let t=[],r=e.data,n=e;return n.data=Eb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Eb(e,t){if(!e)return e;if(yv(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]=Eb(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]=Eb(e[n],t));return r}return e}function DN(e,t){return e.data=Ob(e.data,t),delete e.attachments,e}function Ob(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]=Ob(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ob(e[r],t));return e}var LN=zj(_D(),1),Tb=(0,LN.default)("socket.io-parser"),CP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],MN=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 NN=class{constructor(e){this.replacer=e}encode(e){return Tb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&Yu(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)),Tb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=jN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},BN=class AP extends ke{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 zN(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(yv(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(!EP(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(AP.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Tb("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 Hf(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||Hf(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&CP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},zN=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=DN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function VN(e){return typeof e=="string"}var EP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function WN(e){return e===void 0||EP(e)}function Hf(e){return Object.prototype.toString.call(e)==="[object Object]"}function UN(e,t){switch(e){case ee.CONNECT:return t===void 0||Hf(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&CP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||Hf(t);default:return!1}}function HN(e){return VN(e.nsp)&&WN(e.id)&&UN(e.type,e.data)}function Nt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var qN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),OP=class extends ke{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=[Nt(e,"open",this.onopen.bind(this)),Nt(e,"packet",this.onpacket.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(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(qN.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 Xo(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}Xo.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};Xo.prototype.reset=function(){this.attempts=0};Xo.prototype.setMin=function(e){this.ms=e};Xo.prototype.setMax=function(e){this.max=e};Xo.prototype.setJitter=function(e){this.jitter=e};var Rb=class extends ke{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,_d(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 Xo({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||SP;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 _P(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Nt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Nt(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(Nt(e,"ping",this.onping.bind(this)),Nt(e,"data",this.ondata.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this)),Nt(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){wd(()=>{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 OP(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)}},sa={};function db(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=RN(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=sa[o]&&s in sa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Rb(n,t):(sa[o]||(sa[o]=new Rb(n,t)),l=sa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(db,{Manager:Rb,Socket:OP,io:db,connect:db});L();L();L();DM(qL);I();var TP=(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"?vd(a):rn(r[i],a):r[i]=a}),s&&(r.schema=s))},RP=(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=VC(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")&&vd(r.designSystem)};var GN={success:"green",error:"red",warning:"yellow"},PP=(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)}},$P={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:GN[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 KN=!1,XN=()=>KN?"http://localhost:8080":"https://api.symbols.app",YN=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}},ZN=async e=>{try{let t=e||XN(),r=await C.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)}},jP=(e,t,r,n)=>{e.on("snapshot",TP(t,r,n)),e.on("ops",RP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&PP(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},JN=async(e,t,r,n)=>{let o=await ZN(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=Eo(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)")}),jP(a,e,t,r),a},QN=(e,t,r)=>{let n=Eo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),jP(n,e,t,r),n.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),n},eB=async(e,t,r)=>{let{mode:n,baseUrl:o}=YN(r);return n?n==="collab"?JN(e,t,r,o):n==="runner"?QN(e,t,r):null:null},tB={onInit:eB};var DP=e=>typeof e>"u",IP=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),FP=e=>e?.editor?.runtime==="runner",LP=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},MP={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!DP(r.liveSync)?r.liveSync:IP(t)||FP(t))&&(IP(t)&&!FP(t)&&!t?.key||LP(e,tB))}},NP={name:"notifications",beforeCreate(e,t){if(!t)return;let r=DP(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&LP(e,$P)}};I();function BP(e){return k(e)?e:$(e)?e.find(t=>k(t)):""}function xv(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&BP(e.extends),n=e.parent&&e.parent.childExtends&&BP(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Sd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=xv(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?Sd(e.parent):o&&(t[o]||r[o])?e:Sd(e.parent)}var rB=(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}))}},bv={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:rB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=Sd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=xv(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=Sd(n);if(!o)return;let s=xv(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(_(t)){let{Content:r,...n}=t;for(let o in n)uo[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=`
|
|
109
109
|
display: block !important;
|
|
110
110
|
top: ${a-6}px;
|
|
111
111
|
left: ${i-6}px;
|
|
112
112
|
width: ${l+12}px;
|
|
113
113
|
height: ${c+12}px;
|
|
114
|
-
`}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},
|
|
114
|
+
`}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},zP={name:"inspect",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(bv):e.extends?e.extends=[e.extends,bv]:e.extends=[bv]}};var nB=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(k(e)?e:"smblsapp");if(t.define=t.define||ho,t.cssPropsRegistry=Se,t.window=E1(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(f=>typeof f=="string")){let{resolveSharedLibraries:f}=await Promise.resolve().then(()=>(I(),Dw));t.sharedLibraries=await f(t.sharedLibraries)}M1(t)}let[s,i]=j1(o,t);t.designSystem=s,t.registry=i,t.cases||(t.cases={}),t.shorthand&&hu.prepareContext(t);let a=D1(e,t);t.state=a,Ws(a),t.pages=L1(e,t),t.components=O1(t),t.utils=T1(t),Er[t.packageManager]&&(t.dependencies=await P1(t)),t.methods=R1(t),t.routerOptions=p1(e,t),t.defaultExtends=[qc],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&_(t.globalScope)&&(t.globalScope=us(t.globalScope));let l=(d,f)=>{let p=f?d[f]:d;if(!_(p))return;let h=lt(p);try{Object.assign(p,h)}catch(g){if(f)d[f]=h;else throw g}};l(e),l(t,"components"),l(t,"pages"),l(t,"functions"),l(t,"methods"),l(t,"snippets"),l(t,"app"),t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.db&&t.db.__resolved&&delete t.db.__resolved;let c=d=>t.plugins.some(f=>f.name===d);if(t.polyglot&&!c("polyglot")){t.plugins.push(fu);for(let d in Li)d in t.functions||(t.functions[d]=Li[d])}if(c("helmet")||t.plugins.push(b1),t.fetch&&!c("fetch")&&t.plugins.push(_h),t.designSystem?.typography?.useCapsize!==!1&&!c("capsize")&&(t.plugins.push(V1),t.cssPropsRegistry.useCapsize=z1),t.shorthand&&!c("shorthand")&&t.plugins.push(hu),t.analyze&&!c("analyze")){let d=t.analyze===!0?{}:t.analyze;t.analyze=Ay(d),t.plugins.push(Ui)}return t.sync!==!1&&!c("sync")&&t.plugins.push(MP),t.inspect&&!c("inspect")&&t.plugins.push(zP),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!c("notifications")&&t.plugins.push(NP),t},vv=async(e,t)=>{_(t)||(t={}),rr(e)?(e={},t.parent=e):k(e)?(e={},t.key=e):_(e)||(e={});let r=t.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let l=t.document||(typeof document<"u"?document:null);l&&(o=Array.from(l.head.querySelectorAll("style")))}if(await nB(e,t),t.useReset!==!1){let l=t.document||(typeof document<"u"?document:null);if(l){let c=l.head.querySelector("style[data-smbls]");c||(c=l.createElement("style"),c.setAttribute("data-smbls",""),l.head.appendChild(c));let u=c.sheet;if(u){try{u.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{u.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(t.app&&_(t.app))for(let l in t.app)e[l]===void 0&&(e[l]=t.app[l]);e.extends=S1(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await $1({functions:t.functions,utils:t.utils,snippets:t.snippets,...t.files},t);for(let l of t.plugins)if(typeof l.beforeCreate=="function")try{l.beforeCreate(e,t)}catch(c){console.error(`[smbls] plugin "${l.name||"?"}" beforeCreate error:`,c)}let s=t.document;if(!s||!s.createElement)return e;let i=t.parent||s.body;if(n)return oB($t,e,i,t,r,o);let a=$t(e,i,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<"u"&&!t.document&&(window.__smblsApp=a),a},oB=async(e,t,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(c=>{c.parentNode&&c.remove()});let a=[];for(let c of r.childNodes){if(c.nodeType===1){let u=c.tagName.toLowerCase();if(u==="script"||u==="link"||u==="style"||u==="svg"&&c.id)continue}a.push(c)}a.forEach(c=>c.remove()),i.querySelectorAll("[data-br]").forEach(c=>c.removeAttribute("data-br"));let l=e(t,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return sB(o),l},sB=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var wv=(e,t)=>fe(e,_(t)?t:{}),iB=e=>{if(typeof document>"u")return;let t=e.themeRoot||e.document&&e.document.documentElement||document.documentElement;if(!t||typeof t.setAttribute!="function")return;let r=e.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=e.themeStorageKey;if(r==="auto"&&n&&typeof localStorage<"u")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;t.setAttribute("data-theme",o),e.globalTheme=r,e.themeRoot=t},aB=()=>{if(typeof document>"u")return null;try{let e=document.querySelector('meta[name="symbols-runtime"]'),t=e&&e.getAttribute("content");return typeof t=="string"&&t?t:null}catch{return null}},VP=e=>{let t=aB();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t==="runner"&&typeof e.editor.livesync>"u"&&(e.editor.livesync=!0))},_v=(e,t=Lr,r)=>{let n={...Lr,...wv(t,r)};return VP(n),iB(n),vv(e,n).then(s=>{if(ay(s,n),s.destroy=()=>Fi(s),s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},lB=(e,t=Lr,r)=>{let n=_v(e,t,r),o={...Lr,...wv(t,r)},s=o.key;return y1(n,s,{utils:Ii,...o}),n},cB=async(e,t=Lr,r)=>{let n={...Lr,...wv(t,r)};VP(n);let o=t.key;await m1(o,n);let s=await vv(e,n);return ay(s,n),s.destroy=()=>Fi(s),n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},uB=(e={},t=Lr,r)=>_v({deps:{isUndefined:$e},...e},fe({domqlOptions:{onlyResolveExtends:!0}},t),r);Jc(Nc);
|