smbls 3.14.21 → 3.14.22

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.
@@ -1,2 +1,2 @@
1
1
  // Auto-generated by scripts/build-iife-string.mjs — do not edit.
2
- export default "\"use strict\";var Smbls=(()=>{var ER=Object.create;var Ja=Object.defineProperty;var OR=Object.getOwnPropertyDescriptor;var TR=Object.getOwnPropertyNames;var PR=Object.getPrototypeOf,RR=Object.prototype.hasOwnProperty;var $R=(e=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(e,{get:(t,r)=>(typeof require<\"u\"?require:t)[r]}):e)(function(e){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+e+'\" is not supported')});var q=(e,t)=>()=>(e&&(t=e(e=0)),t);var Cd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),G=(e,t)=>{for(var r in t)Ja(e,r,{get:t[r],enumerable:!0})},xv=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of TR(t))!RR.call(e,o)&&o!==r&&Ja(e,o,{get:()=>t[o],enumerable:!(n=OR(t,o))||n.enumerable});return e};var vv=(e,t,r)=>(r=e!=null?ER(PR(e)):{},xv(t||!e||!e.__esModule?Ja(r,\"default\",{value:e,enumerable:!0}):r,e)),IR=e=>xv(Ja({},\"__esModule\",{value:!0}),e);var Pd,Rd,A,ce,Go=q(()=>{Pd=globalThis,Rd=globalThis,A=globalThis,ce=A.document});var er,Ko,He,Xo=q(()=>{Go();er=e=>(typeof Node==\"object\"?e instanceof A.Node:e&&typeof e==\"object\"&&typeof e.nodeType==\"number\"&&typeof e.nodeName==\"string\")||!1,Ko=e=>(typeof HTMLElement==\"object\"?e instanceof A.HTMLElement:e&&typeof e==\"object\"&&e!==null&&e.nodeType===1&&typeof e.nodeName==\"string\")||!1,He=e=>typeof A<\"u\"&&(A.Node&&e instanceof A.Node||A.Window&&e instanceof A.Window||e===A||e===document)});var _,C,Vt,E,nl,ol,$,sl,Q,qe,Pe,Yo,Ge,$d,Re=q(()=>{Xo();_=e=>e===null?!1:typeof e==\"object\"&&e.constructor===Object,C=e=>typeof e==\"string\",Vt=e=>typeof e==\"number\",E=e=>typeof e==\"function\",nl=e=>e===!0||e===!1,ol=e=>e===null,$=e=>Array.isArray(e),sl=e=>e instanceof Date,Q=e=>e===null?!1:typeof e==\"object\",qe=e=>e!==void 0,Pe=e=>e===void 0,Yo={boolean:nl,array:$,object:_,string:C,date:sl,number:Vt,null:ol,function:E,objectLike:Q,node:er,htmlElement:Ko,defined:qe},Ge=e=>(...t)=>t.some(r=>Yo[r](e)),$d=e=>(...t)=>!t.some(r=>Yo[r](e))});var Id,jd,Fd,Dd,Fn,Zo,Ld,Md,Jo,Nd,Bd,Vd,zd,Wd,Ud,Hd,Dn,Qo,Ln=q(()=>{tr();Re();Id=(e,t)=>t.every(r=>e.includes(r)),jd=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Fd=(e,t)=>{if(C(t)&&(t=parseInt(t)),Vt(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},Dd=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Fn=(...e)=>[].concat(...e),Zo=(e,t=[])=>e.reduce((r,n)=>ae(r,ue(n,{exclude:t}),t),{}),Ld=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Md=(e,t)=>{if(!$(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Jo=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Nd=(e,t)=>e.filter(r=>r!==t),Bd=(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},Vd=(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},zd=(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},Wd=(e,t)=>e.filter(r=>!t.includes(r)),Ud=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Hd=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Dn=e=>$(e)?[...new Set(e)]:e,Qo=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function Yr(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!e.includes(o))return e;let s=DR[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=es(h,f);return String(g??\"\")}else{let p=es(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=es(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=es(v,f);if(w!=null&&typeof w!=\"object\")return String(w)}}}let y=es(h.translations,f);if(y!=null&&typeof y!=\"object\")return String(y)}return\"\"}})}var ts,qd,DR,es,Zr,Gd,LR,Kd,Xd,Yd,MR,Zd,Jd,rs=q(()=>{ts=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},qd=(e,t)=>{let r=new RegExp(`[${t.join(\"\\\\\")}]`,\"g\");return e.replace(r,\"\")},DR={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},es=(e,t)=>t.split(\".\").reduce((r,n)=>r?.[n],e);Zr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Gd=(e,t)=>{let r=e.split(`\n`),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}},LR=/\\\\([0-7]{1,3})/g,Kd=e=>e.replace(LR,(t,r)=>String.fromCharCode(parseInt(r,8))),Xd=e=>e.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),Yd=e=>e.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),MR=/[^a-zA-Z0-9\\s]/g,Zd=e=>e.replace(MR,t=>\"%\"+t.charCodeAt(0).toString(16).toUpperCase()),Jd=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var br,ns,Qd,Jr,xr,Mn,os,ep,Nn=q(()=>{br=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\"]),ns=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),Qd=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],Jr=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\"]),xr=new Set([\"update\",\"__element\"]),Mn=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\"]),os=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...Mn,...Jr,...xr]),ep=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])});var Ev,Qr,le,tp,ge,ae,Ov,rp,ue,ss,NR,is,BR,VR,Bn,zR,lt,WR,as,np,op,il,sp,ip,ls,en,Ke,al,UR,ap,lp,ll,cp,up,fp,dp,pp,hp,gp,tr=q(()=>{Go();Re();Ln();rs();Xo();Nn();Ev=\"production\",Qr=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,le=(e,t,r,n)=>{if(E(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 le(i,t,r,n)}}return e},tp=(e,t,r)=>{for(let n in t)e[n]=le(t[n],r)},ge=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Qr(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},ae=(e,t,r=os)=>Ov(e,t,r,null),Ov=(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)||Qr(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(Q(i)&&Q(a)){let l=n||[];l.push(e,t),Ov(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},rp=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Qr(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},ue=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=t,l=s||A||globalThis;if(!Q(e)||He(e))return e;if(i.has(e))return i.get(e);let c=$(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)||Qr(d)||d===\"__proto__\"||(u?u.has(d):r.includes(d)))continue;let f=e[d];if(!(n&&f===void 0)&&!(o&&f===null)){if(He(f)){c[d]=f;continue}if(a&&d===\"extends\"&&$(f)){c[d]=Zo(f,r);continue}if(E(f)){c[d]=f;continue}Q(f)?c[d]=ue(f,{...t,visited:i}):c[d]=f}}return c},ss=(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(E(n))t[r]=n.toString();else if(_(n))t[r]={},ss(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]={},ss(i,o[s])):E(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},NR=new Set([\"&\",\"*\",\"-\",\":\",\"%\",\"{\",\"}\",\">\",\"<\",\"@\",\".\",\"/\",\"!\",\" \"]),is=(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=`{\n`;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(NR.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,$(i)){o+=`[\n`;for(let c of i)Q(c)&&c!==null?o+=`${n} ${is(c,t+2)},\n`:C(c)?o+=`${n} '${c}',\n`:o+=`${n} ${c},\n`;o+=`${n} ]`}else Q(i)?o+=is(i,t+1):C(i)?o+=ts(i,[`\n`,\"'\"])?`\\`${i}\\``:`'${i}'`:o+=i;o+=`,\n`}return o+=`${n}}`,o},BR=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/],VR=/^[\"[{]/,Bn=e=>{if(!e)return!1;let t=e.trim().replace(/\\n\\s*/g,\" \").trim();if(t===\"\"||t===\"{}\"||t===\"[]\"||!BR.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes(\"=>\");return!(r===123&&!n||r===91||VR.test(t)&&!n)},zR=e=>(0,eval)(e),lt=(e,t={},r={window:{eval:zR}})=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(C(o))if(Bn(o))try{t[n]=r.window.eval(`(${o})`)}catch(s){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: '+(s&&s.message?s.message:String(s))+`.\nFirst 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(C(a))if(Bn(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)}.\nFirst 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},WR=e=>!e||typeof e!=\"object\"?e:e.__type===\"Set\"&&Array.isArray(e.values)?new Set(e.values):e.__type===\"Map\"&&Array.isArray(e.entries)?new Map(e.entries):e,as=e=>{if(!e||typeof e!=\"object\")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];C(o)&&Bn(o)?r.push([n,o]):t[n]=WR(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`\n`);t[n]=A.eval(`(function(__gs__) { ${s}\n return (${o}); })`)(t)}catch{try{t[n]=A.eval(`(${o})`)}catch{t[n]=o}}return t},np=(e,t={verbose:!0})=>{try{return e?A.eval(\"(\"+e+\")\"):{}}catch(r){t.verbose&&console.warn(r)}},op=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),il=e=>{for(let t in e)return!1;return!0},sp=e=>_(e)&&il(e),ip=()=>Object.create(null),ls=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&Qr(s)||s===\"constructor\"||s===\"prototype\"||t[s]!==void 0&&(e[s]=t[s]);return e},en=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Qr(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(!Q(e)||!Q(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&&Qr(a)||a===\"constructor\"||a===\"prototype\")continue;let l=e[a],c=t[a];He(c)?e[a]=c:Q(l)&&Q(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},al=(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)||!al(e[i],t[i],r))return!1}return!0},UR=new Set([\"node\",\"__ref\"]),ap=(e,t,r=UR)=>{if(e===t)return!0;if(!Q(e)||!Q(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(Q(c)&&Q(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},lp=(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},ll=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]=ll(e[r]));return t},cp=(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},up=(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]},fp=(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},dp=(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},pp=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(Ev===\"test\"||Ev===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",t),!0},hp=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)},gp=(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 cs,us,fs,cl=q(()=>{tr();cs=(function(){let e=0;function t(){return e++,e}return t})(),us=cs,fs=(e,t,r)=>(le(r,e)||r||e.key||cs()).toString()});var kt,mp,vr,ul,yp,bp,xp,wr,vp,tn,wp=q(()=>{kt=\"production\",mp=kt,vr=(e=kt)=>e===\"production\",ul=(e=kt)=>e===\"testing\"||e===\"test\",yp=ul,bp=(e=kt)=>e===\"staging\",xp=(e=kt)=>e===\"local\",wr=(e=kt)=>e===\"development\"||e===\"dev\"||e===\"local\",vp=(e,t=kt)=>t[e],tn=(e=kt)=>!vr(e)});function ds(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 Cp(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 _p,Sp,HR,kp,Vn,zn,Wn,fl=q(()=>{_p=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Sp=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}}},HR=/^((function\\s*\\([^)]*\\)\\s*\\{[^}]*\\})|(\\([^)]*\\)\\s*=>))/,kp=e=>HR.test(e),Vn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},zn=(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},Wn=(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 Ap,Tv=q(()=>{Re();tr();Ap=(e,t)=>{let{__ref:r}=e,n=e.if;if(E(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\"?le(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Ep,Op,Pv=q(()=>{Ep=(e,...t)=>{e&&t.map(r=>console.log(r))},Op=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Ip(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 jp(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 Tp,Pp,Rp,$p,Rv=q(()=>{Re();Go();Tp=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),Pp=(e,t,r=365)=>{if(Pe(ce)||Pe(ce.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;ce.cookie=`${e}=${t};${o};path=/`},Rp=e=>{if(Pe(ce)||Pe(ce.cookie))return;let t=`${e}=`,r=decodeURIComponent(ce.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\"\"},$p=e=>{Pe(ce)||Pe(ce.cookie)||(ce.cookie=e+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}});var Un,$v,Fp,Dp=q(()=>{Un={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\"])},$v=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\"]),Fp=e=>Un.body.has(e)});var Lp,Iv,Hn,gs,Xe,Mp,dl,ms,Np,ys,pl,hl,bs,gl,qn,qR,zt,jv,ps,xs,Bp,hs,Vp,zp,ml,yl,bl,xl,vl,wl,Fv,_l=q(()=>{Ln();Wp();tr();Re();Lp=\"production\",Iv=e=>e.sourcemap!==!1&&Lp!==\"production\",Hn=e=>{if(e.includes(\"+\"))return e.split(\"+\").filter(Wt);if(e.includes(\"_\")){let[t]=e.split(\"_\");return[t]}if(e.includes(\".\")&&!Wt(e.split(\".\")[1])){let[t]=e.split(\".\");return[t]}return[e]},gs=(e,t,r)=>{let n=[],o=Hn(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},Mp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=$(r)?r:[r],o=$(e)?e:[e];return{...t,extends:Fn(o,n)}},dl=()=>Math.random().toString(36).substring(2),ms={},Np={},ys=e=>ms[e.__hash],pl=(e,t)=>{let r=dl();return C(e)||(e.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(ms[r]=t),t},hl=(e,t)=>e.__hash?t.concat(ys(e)):pl(e,t),bs=(e,t,r,n=new Set,o,s)=>{for(let i of e)$(i)?bs(i,t,r,n,o,s):qn(i,t,r,n,o,void 0,s);return t},gl=(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&&qn(a,t,r,n,o,s,i),t},qn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if($(e))return bs(e,t,r,n,o,i);let a=s;return C(e)?(a=e,e=xs(e,r)):i&&_(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?gl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},qR=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"childExtends\",\"childExtendsRecursive\"]),zt=(e,t,r,n,o)=>{t=ue(t);for(let s in t){if(qR.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]||{},jv(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];Wt(s)?e[s]=zt(i,a,l,n,c):zt(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=zt({},i);e[s]=zt(l,a)}}}}return e},jv=(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]||{},jv(e[o],s,r,n)):e[o]=r}}},ps=(e,t,r)=>e.reduce((n,o,s)=>{let i=ue(o),a=r?r[s]:void 0;return zt(n,i,t,a)},{}),xs=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(C(e)){let i=o&&(o[e+\".\"+n]||o[e]||o[\"smbls.\"+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Lp===\"test\"||Lp===\"development\")&&console.warn(\"Extend is string but component was not found:\",e);return}return e},Bp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),hs=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ys(e)||[];let o=qn(e,[],t,new Set,r,void 0,n);return r?o:hl(e,o)},Vp=(e,t)=>{if(!e)return t;let r=$(e)?e:[e];return Fn(r,t)},zp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Wt(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},ml=(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 yl(e,t,r),bl(e,t,r),xl(e,t,r),e.component&&Xe(le(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Dn(n.__extends)},yl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},bl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},xl=(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},vl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Iv(r),a=i?[...n.__extends]:null,l=Dn(n.__extends.map((c,u)=>xs(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)&&C(h)&&c.set(p,h)}let u=[],d=hs(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=hs(l,o);n.__extendsStack=c}return n.__extendsStack},wl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Iv(r)){let s={},i=n.__extendsNames||[],a=ps(o,s,i),l={};zt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ps(o);zt(e,s)}return e},Fv=(e,t,r={})=>(ml(e,t,r),vl(e,t,r),wl(e,t,r),e)});function Up(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Hp(e){return Object.keys(e).filter(t=>/^\\d+$/.test(t))}function qp(e,t,r){let{context:n}=t||{},[o]=Hn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Wt,Wp=q(()=>{_l();Re();Wt=e=>{if(!C(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Dv(e,t){let{props:r,on:n}=t,o=Zr(e.split(\"on\")[1]),s=n[o],i=r[e];E(s)?n[o]=(...a)=>{if(s(...a)!==!1&&E(i))return i(...a)}:n[o]=i}var Lv=q(()=>{rs();Re()});function Sl(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()&&(E(o)||o!=null&&Vn(this.context))){let f=Zr(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=_(s)||E(s),l=_(i)||E(i);if(a||l)continue;let c=n.charAt(0);if(Nv.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=Gp.test(n)||Mv.test(n)||KR(o),d=br.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function kl(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=E(o)||o!=null&&Vn(this.context);if(s&&i){Dv(n,e),delete e.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(Nv.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=_(l)||E(l),d=_(c)||E(c),f=Gp.test(n)||Mv.test(n),p=br.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Cl(e=this){let t=[];return Sl.call(this,e,{cachedKeys:t}),kl.call(this,e,{cachedKeys:t}),e}function Kp(e={}){return e.on||(e.on={}),e.props||(e.props={}),Cl.call(this,e)}function Yp(e,t){this.__element.update({props:e},t)}function ks(e){let t={update:Yp.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Gp,Mv,Nv,GR,KR,_s,vs,Xp,Ss,Cs,As,Al,ws,Zp,Jp,Qp=q(()=>{Nn();Lv();tr();Re();rs();fl();Gp=/^[A-Z]/,Mv=/^\\d+$/,Nv=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),GR=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),KR=e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))return!1;for(let t in e)if(GR.has(t)||Gp.test(t))return!0;return!1},_s=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return Q(n)?{...n}:(o.__propsStack.push(n),{})};vs=e=>Ge(e)(\"string\",\"number\")?{inheritedString:e}:e,Xp=(e,t)=>!e||!t.length?!1:t.includes(e),Ss=(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=vs(i);n.unshift(l)}if(s){let l=vs(s);n.unshift(l)}return n};Cs=e=>{let t=new Set;return e.filter(r=>!r||xr.has(r)||t.has(r)?!1:(t.add(r),!0))},As=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(xr.has(o))return n;for(;E(o);)o=le(o,t);return ae(n,ue(o,{exclude:xr}))},{}),ks(t),t.props),Al=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Ss(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=Cs(o),n.__propsStack},ws=(e,t)=>{let{__ref:r}=e,n=Al(e,t);n.length?As(n,e):(r.__propsStack=[],e.props={})},Zp=function(e,t,r){let{__ref:n}=e;if(n.__if)ws(e,t);else try{ws(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),e.props={},n.__propsStack=[]}return ks(e),e},Jp=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Ss(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=Cs(o),n.__propsStack.length&&As(n.__propsStack,t),t}});var Bv,El,Ol,Tl,Pl,eh,Rl,$l,Il,th,Vv=q(()=>{_l();cl();Xo();Qp();Dp();Re();Bv=\"production\",El=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Un.body.has(r)&&r;return{text:e,tag:n||o||s||\"string\"}},Ol=(e,t,r)=>{if(e===void 0)return(Bv===\"test\"||Bv===\"development\")&&console.warn(r,\"element is undefined in\",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)(\"string\",\"number\")?El(e,t,r):E(e)?{props:e}:e},Tl=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Pl=(e,t,r,n,o)=>{if(!t)return o;if(er(t)){let s={key:\":root\",node:t};return o[`${r}_parent`]=s,s}return t},eh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===\":root\";r?.root||(r.root=o?e:n?.root)},Rl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},$l=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Il=(e,t,r)=>{let n=Tl(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=gs(e,t,r),n.path=Rl(e,t,r),n},th=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:Ol(e,t,r);if(!s)return;let i=Pl(s,t,r,n,o),a=fs(s,i,r);Il(s,i,a);let l=_s(s,i,a),c=$l(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}});var rh,jl,Fl,Dl,Ll,nh,Ml,oh,sh,ih,ah,zv=q(()=>{Ln();Nn();tr();Re();rh=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},jl=(e,t)=>{if(e.includes(\"~/\")&&e.split(\"~/\").length>1)return t.root},Fl=(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},Dl=(e,t,r={})=>{let n=C(e)?e.split(\"/\"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i===\"__proto__\"||a===\"__proto__\")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Ll=(e,t,r={})=>{let n=e.__ref.__state;if(!Ml(e))return;let o=jl(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll(\"~/\",\"\");else{let i=Fl(n,t.state);i&&(s=i,n=n.replaceAll(\"../\",\"\"))}if(s)return Dl(n,s,r)},nh=(e,t)=>{let r=e.__ref,n=Ll(e,t);if(n===void 0)return e.state;if(Ge(n)(\"object\",\"array\"))return ue(n);if(Ge(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},Ml=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)(\"number\",\"string\",\"boolean\"))},oh=function(e){return Q(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},sh=(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},ih=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ue(n,Jr),s={[e.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Qo(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},ah=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){ae(e,t,Jr);return}(o?en:Ke)(e,t,Jr)}});var lh,Wv=q(()=>{lh=(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 Uv,Nl,_r,Bl,ch,uh=q(()=>{Re();fl();Uv=(e,t)=>{let r=\"on\"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Nl=(e,t,r,n,o)=>{if(e=zn(e,t),!!E(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}},_r=(e,t,r)=>{if(!t)throw new Error(\"Element is required\");Wn(e,t,r);let n=Uv(e,t);if(n){let{state:o,context:s}=t;return Nl(n,t,o,s,r)}},Bl=(e,t,r,n,o,s)=>{if(e=zn(e,r),!!E(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}},ch=(e,t,r,n)=>{Wn(e,r,t,n);let o=Uv(e,r);if(o){let{state:s,context:i}=r;return Bl(o,t,r,s,i,n)}}});var fh,Es,dh=q(()=>{fh={},Es={}});var Gv={};G(Gv,{setup:()=>YR,supabaseAdapter:()=>qv});var Hv,XR,YR,ph,ZR,qv,Kv=q(()=>{\"use strict\";Hv=new Map,XR=(e,t,r)=>`${e}|${t}|${r?\"off\":\"on\"}`,YR=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=XR(l,t,o===!1),u=Hv.get(c);return u||(u=await n(l,t,a),u?.auth&&Hv.set(c,u)),!u||!u.auth?null:qv(u)},ph=(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},ZR=(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},qv=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=ph(l,o),l=ZR(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=ph(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=ph(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 Yv={};G(Yv,{restAdapter:()=>Xv,setup:()=>QR});var JR,Sr,QR,Xv,Zv=q(()=>{\"use strict\";JR=(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()},Sr=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}},QR=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error(\"@symbo.ls/fetch rest: url is required\");return Xv(e,t,r,n)},Xv=(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 Sr(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 Sr(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 Sr(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\"}`)),Sr(JR(b||e,u||\"\",x),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>Sr(l(`rpc/${u}`,p),a({method:\"POST\",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>Sr(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 Sr(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 Sr(l(g,p),a({method:\"DELETE\",headers:s(f)}))}}}});var Qv={};G(Qv,{localAdapter:()=>Jv,setup:()=>t2});var hh,e2,t2,Jv,ew=q(()=>{\"use strict\";hh=(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},e2=(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}},t2=async({data:e,...t})=>Jv(e,t),Jv=(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=>hh(g,d));return e2(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(hh(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--)hh(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 Fs={};G(Fs,{createAdapter:()=>o2,default:()=>h2,executeFetch:()=>js,fetchPlugin:()=>xh,initAdapterAuth:()=>Ul,parseDuration:()=>Ts,queryClient:()=>p2,registerAdapter:()=>n2,resolveDb:()=>sw});var r2,Vl,ow,n2,o2,sw,Ts,Be,iw,Os,s2,Is,Ps,Rs,zl,yh,Wl,i2,tw,gh,aw,lw,Gn,rw,a2,nw,l2,Hl,cw,Ul,bh,ct,Ct,$s,rn,Ut,kr,c2,u2,f2,mh,d2,js,p2,xh,h2,nn=q(()=>{\"use strict\";I();r2=[\"select\",\"rpc\",\"insert\",\"update\",\"delete\",\"subscribe\"],Vl=Symbol.for(\"@symbo.ls/fetch:BUILTIN_ADAPTERS\"),ow=(()=>{if(typeof globalThis<\"u\"&&globalThis[Vl])return globalThis[Vl];let e={supabase:()=>Promise.resolve().then(()=>(Kv(),Gv)),rest:()=>Promise.resolve().then(()=>(Zv(),Yv)),local:()=>Promise.resolve().then(()=>(ew(),Qv))};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Vl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Vl]}catch{}return e})(),n2=(e,t)=>{ow[e]=t},o2=e=>{let t={};for(let r of r2)e[r]&&(t[r]=e[r]);return t.name=e.name||\"custom\",t},sw=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=ow[n];if(!o)throw new Error(`Unknown db adapter: \"${n}\". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Ts=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,iw=new Map,Os=new Map,s2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=l2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||\"\")}`;return t?`${n}:${t}`:n},Is=e=>Be.get(e)||null,Ps=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=iw.get(e);if(s)for(let i of s)E(i)&&i(o);return o},Rs=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},zl=e=>{if(e){Be.delete(e);return}Be.clear()},yh=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e==\"number\"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:C(e)?{staleTime:Ts(e),gcTime:3e5}:{staleTime:Ts(e.stale||e.staleTime)||6e4,gcTime:Ts(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Wl=null,i2=()=>{Wl||(Wl=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=iw.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Wl.unref&&Wl.unref())};i2();tw=3,gh=e=>Math.min(1e3*2**e,3e4),aw=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:tw,delay:gh}:typeof t==\"number\"?{count:t,delay:gh}:{count:t.count??tw,delay:E(t.delay)?t.delay:typeof t.delay==\"number\"?()=>t.delay:gh}},lw=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=E(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=E(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Gn={focus:new Set,online:new Set},rw=!1,a2=()=>{if(rw||typeof window>\"u\")return;rw=!0;let e=()=>{for(let r of Gn.focus)r()},t=()=>{for(let r of Gn.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&e()}),window.addEventListener(\"focus\",e),window.addEventListener(\"online\",t)},nw=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:\"select\",query:!0,on:\"create\"};if(C(e))return{from:e,method:\"select\",query:!0,on:\"create\"};if(_(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},l2=e=>(!e||E(e),e),Hl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},cw=(e,t,r)=>{let n;if(!e)n=void 0;else if(E(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=E(s)?s(t,t.state):s}}return n},Ul=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)})},bh=async(e,t)=>{if(E(e.select))return e.auth!==!1&&await Ul(e,t),e;if(e.__resolved)return e.auth!==!1&&await Ul(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=sw(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 Ul(r,t),r):null},ct=(e,t,...r)=>{let n=E(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},Ct=(e,t,r,...n)=>{let o=e&&E(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},$s=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},rn=(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})}},Ut=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},kr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||E(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||E(e.skip)&&e.skip(t,t.state))return;let s=await bh(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:S,cursor:O,getNextPageParam:T,getPreviousPageParam:k,infinite:D,placeholderData:te,initialData:z,select:N,keepPreviousData:ye}=e,pe=C(N)?N:void 0;if(c&&E(t.getQuery)){let B=t.getQuery(s.name||\"paths\");B&&(pe=B.select||B.length&&B.join(\",\")||pe)}let be=cw(u,t,r),he=yh(d),Qt=aw(e),Kr=Hl(t,r),_d=Kr?`:${Kr}`:\"\",Y=he?d?.key||`${a}:${l}:${JSON.stringify(be||\"\")}${D?\":infinite\":\"\"}${S?\":p\"+JSON.stringify(S):\"\"}${_d}`:null;if(!i.__fetchInitialized&&Y&&(i.__fetchInitialized=!0,z!==void 0)){let B=E(z)?z():z;Ps(Y,B,null)}if((l===\"select\"||l===\"rpc\")&&Y&&he){let B=Is(Y);if(B&&!B.error){let V=Date.now()-B.time,L=B.stale||V>(he.staleTime||0),W=B.data;if(E(N)&&(W=N(W,t,t.state)),f&&(W=f(W,t,t.state)),rn(t,W,m),!L){Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(te!==void 0){let V=E(te)?te(t,t.state):te;V!==void 0&&rn(t,V,m)}}if(Y&&Os.has(Y)&&!n.force){let B=Os.get(Y);try{let V=await Promise.race([B,new Promise((L,W)=>setTimeout(()=>W(\"DEDUP_TIMEOUT\"),15e3))]);if(V?.data!==void 0){let L=V.data;E(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),rn(t,L,m),ct(t,\"onFetchComplete\",L),Ct(e,t,\"onFetchComplete\",L)}}catch{}return}let Sd=!Is(Y)?.data;Ut(t,{isFetching:!0,isLoading:Sd,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),ct(t,\"onFetchStart\"),Ct(e,t,\"onFetchStart\");let ke=r?.analyze?.emitNetwork,Xr=ke?typeof performance<\"u\"?performance.now():Date.now():0;ke&&ke({phase:\"start\",mode:\"query\",from:a,method:l,cacheKey:Y,lang:Kr});let ie=lw(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let W=await s.getSession();if(h===!0&&!W){let Ce={message:\"Not authenticated\"};return Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Ce,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",Ce),Ct(e,t,\"onFetchError\",Ce),{data:null,error:Ce}}}let B=s[l];if(!E(B))return{data:null,error:{message:`Method \"${l}\" not found on adapter`}};let V={from:a,select:pe,params:be,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},L=Hl(t,r);if(L&&(V.headers={...V.headers,\"Accept-Language\":L}),S!==void 0){if(_(S))S.offset!==void 0&&(V.offset=S.offset),S.limit!==void 0&&(V.limit=S.limit),S.cursor!==void 0&&(V.params={...V.params,cursor:S.cursor});else if(typeof S==\"number\"){let W=e.pageSize||y||20;V.offset=(S-1)*W,V.limit=W}}if(O!==void 0&&(V.params={...V.params,cursor:O}),l===\"insert\"||l===\"update\"||l===\"upsert\"){let W;if(g===!0||e.on===\"submit\")W=$s(t);else if($(g)){let Ce=$s(t);W={};for(let Za of g)W[Za]=Ce[Za]}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=be;if(e.on===\"submit\"){let Ce=$s(t);W=e.transformParams?e.transformParams(Ce,t,t.state):Ce}V.params=W}if(l===\"subscribe\"){let W=s.subscribe({from:a,params:be,on:e.subscribeOn},(Ce,Za,jN)=>{rn(t,Ce,m),ct(t,\"onFetchComplete\",Ce),Ct(e,t,\"onFetchComplete\",Ce)});return i.__unsubscribe=W,{data:null,error:null,subscribed:!0}}return B(V)},Qt);Y&&Os.set(Y,ie);try{let B=await ie;if(B?.subscribed)return;let{data:V,error:L}=B||{};if(L){Y&&Ps(Y,null,L),Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:L,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",L),Ct(e,t,\"onFetchError\",L),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:L.message||L,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Xr});return}if(V!==void 0){if((l===\"select\"||l===\"rpc\")&&Y){let Ce=Ps(Y,V,null);Ce.gcTime=he?.gcTime||3e5}let W=V;D&&$(V)&&(i.__pages||(i.__pages=[]),n.direction===\"previous\"?i.__pages.unshift(V):i.__pages.push(V),W=i.__pages.flat(),T&&(i.__nextPageParam=T(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),k&&(i.__prevPageParam=k(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),E(N)&&(W=N(W,t,t.state)),f&&(W=f(W,t,t.state)),(!ye||W!==void 0)&&rn(t,W,m),Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),ct(t,\"onFetchComplete\",W),Ct(e,t,\"onFetchComplete\",W),ke&&ke({phase:\"success\",mode:\"query\",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Xr})}}catch(B){Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",B),Ct(e,t,\"onFetchError\",B),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:B.message||String(B),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Xr})}finally{Y&&Os.delete(Y)}},c2=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||kr;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))},u2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),a2();let o=e.refetchInterval;if(o){let s=typeof o==\"number\"?o:Ts(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&kr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Hl(t,r),a=s2(e,i),l=Is(a),c=yh(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&kr(e,t,r,{force:!0})};Gn.focus.add(s),n.__fetchCleanups.push(()=>Gn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>kr(e,t,r,{force:!0});Gn.online.add(s),n.__fetchCleanups.push(()=>Gn.online.delete(s))}},f2=(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=E(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&rn(e,i,o),s},mh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(rn(e,n,t.as),delete r.__optimisticSnapshot)},d2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await bh(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=$s(t);else if($(l)){let k=$s(t);w={};for(let D of l)w[D]=k[D]}else t.state?.parse?w=t.state.parse():_(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),E(y)&&y(w,t,t.state);let S=m?f2(t,e,w):null;s.__fetching=!0,Ut(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),ct(t,\"onFetchStart\"),Ct(e,t,\"onFetchStart\");let O=r?.analyze?.emitNetwork,T=O?typeof performance<\"u\"?performance.now():Date.now():0;O&&O({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let be=await o.getSession();if(f===!0&&!be){S!==void 0&&mh(t,e);let he={message:\"Not authenticated\"};ct(t,\"onFetchError\",he),Ct(e,t,\"onFetchError\",he);return}}let k=o[i];if(!E(k))return;let D={from:a,data:w,headers:p,baseUrl:h};e.params&&(D.params=cw(e.params,t,r));let te=Hl(t,r);te&&(D.headers={...D.headers,\"Accept-Language\":te});let z=aw(e),N=await lw(()=>k(D),z),{data:ye,error:pe}=N||{};if(pe){S!==void 0&&mh(t,e),Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pe,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",pe),E(x)&&x(pe,w,t),E(v)&&v(null,pe,w,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:pe.message||String(pe),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,ye!==void 0){let be=u?{[u]:ye}:ye;t.state?.update&&t.state.update(be,{preventFetch:!0})}if(Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),ct(t,\"onFetchComplete\",ye),Ct(e,t,\"onFetchComplete\",ye),E(b)&&b(ye,w,t),E(v)&&v(ye,null,w,t),O&&O({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T}),g){let be=$(g)?g:[g];for(let he of be)if(he===!0||he===\"*\")for(let[Qt]of Be)Qt.startsWith(a+\":\")&&Rs(Qt);else Rs(he)}}catch(k){S!==void 0&&mh(t,e),Ut(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",k),Ct(e,t,\"onFetchError\",k),E(x)&&x(k,w,t),E(v)&&v(null,k,w,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:k.message||String(k),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},js=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=le(e,t);if(!s)return;let i=$(s)?s.map(l=>nw(le(l,t),t)).filter(Boolean):[nw(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?d2:kr;l.on===\"create\"?u(l,t,n):Promise.resolve().then(()=>{c2({...l,__runner:u},t,n)}),!c&&l.on===\"create\"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&u2(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)kr(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};kr(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};kr(u,t,n,{direction:\"previous\",force:!0})}},p2={invalidateQueries:e=>{if(!e){Rs();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Rs(t);else if($(e)){let t=e.join(\":\");for(let[r]of Be)r.includes(t)&&Rs(r)}},removeQueries:e=>{if(!e){zl();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&zl(t)},getQueryData:e=>Is(e)?.data??void 0,setQueryData:(e,t)=>{let r=Is(e),n=E(t)?t(r?.data):t;Ps(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await bh(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(!E(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=Ps(o,i.data,null);a.gcTime=yh(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>zl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||zl(r))}},xh={name:\"fetch\",create(e){let t=e.fetch;t&&(e.parent||Os.clear(),js(t,e,e.state,e.context))}},h2=js});function Ls(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 wh(e){let t=this,{parent:r}=t;if(E(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 _h(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(E(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 Sh(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(E(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 ql(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(_(n)&&o)ql.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 fw(e){let t=this;if(_r(\"beforeRemove\",t,e)===!1)return t;E(t.node.remove)?t.node.remove():vr()||(console.warn(\"This item cant be removed\"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Jo(t.parent.__ref.__children,t.key)),_r(\"remove\",t,e)}function kh(e){return this[e]}function Ch(e,t){let r=this;if(e)return r.update(e,t),r}function Ah(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Ms(){return this.getRef(\"__children\").map(e=>this[e])}function Ns(){return this.getRef().path}function Vs(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=uw();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=E(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=uw()),e?t?.[e]:t}function zs(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Ws(e){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&e?this.getRoot(\"data\")[e]:this.getRoot(\"data\")}function Us(e){let t=this.getRoot()?.context;return e?t[e]:t}function Hs(e){let t=this.context;return e?t[e]:t}function Gl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||br.has(r)&&!ns.has(r)||t.push(r);return t}function Kl(e=[]){let t=this,r={},n=Gl.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=E(l&&l.parse)?l.parse():l;r[a]=E(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 Ds(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Kl.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=>Q(a)?Ds.call(a,e,t):a):Q(i)&&(n[s]=Ds.call(i,e,t))}return n}function Kn(...e){if(Cr!==\"test\"&&Cr!==\"development\")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:\n`,\"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 Oh(...e){(Cr===\"test\"||Cr===\"development\")&&console.log(...e)}function qs(...e){(Cr===\"test\"||Cr===\"development\")&&console.warn(...e)}function on(...e){if(Cr===\"test\"||Cr===\"development\"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Kn.call(this),new Error(...e)}}function Gs(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function Ks(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 Xs(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,ue(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 Th(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=>{on.call(this,s)}),o}catch(o){if(on.call(this,o),r?.strictMode)throw o}}async function Ys(){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(()=>(nn(),Fs));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(nn(),Fs));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(nn(),Fs)).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(()=>(nn(),Fs));await o(n,e.context)}return n}function Zs(e){let t=this,r=e||Es.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(vh(t,n),r===!0)return n;let o=_2[r];return o?o(n):n}function Ph(e,t){return!!(Mn.has(e)||t?.context?.methods?.[e])}var Cr,dw,Bs,uw,Eh,vh,g2,pw,m2,y2,b2,x2,v2,w2,_2,hw=q(()=>{uh();Nn();Re();tr();wp();Ln();dh();Cr=\"production\";dw=null,Bs=e=>{dw=e||null},uw=()=>dw||null;Eh=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});vh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&g2(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&vh(l,t)}let s=r.contentElementKey||\"content\",i=e[s];i&&i.__ref&&vh(i,t)},g2=(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])}},pw=(e,t=0)=>{let r=\" \".repeat(t),n=Object.entries(e);return n.length?n.map(([o,s])=>s===!0?`${r}${o}`:`${r}${o} {\n${pw(s,t+1)}\n${r}}`).join(`\n`):\"\"},m2=e=>`{\n${pw(e,1)}\n}`,y2=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},b2=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(\"&\")},x2=(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?`\n`+n.join(`\n`):\"\";return`SELECT ${l}\nFROM ${a}${c}`},v2=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},w2=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)}},_2={graphql:m2,\"json-api\":y2,odata:b2,sql:x2,supabase:w2,paths:v2}});var S2,Rh,gw=q(()=>{cl();S2={snapshotId:us},Rh=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let i=S2.snapshotId();return r.__currentSnapshot=i,[i,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}});var Xl,$h,mw=q(()=>{Xl=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),$h=e=>typeof e==\"string\"&&Xl.has(e)});async function Ih(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 yw=q(()=>{});function k2(e){return/^[0-9.]+$/.test(e)&&e!==\"\"}var At,Ar,Xn,Et,jh,bw=q(()=>{At={skypack:{url:\"https://cdn.skypack.dev\",formatUrl:(e,t)=>`${At.skypack.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}`},esmsh:{url:\"https://esm.sh\",formatUrl:(e,t)=>`${At.esmsh.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}`},unpkg:{url:\"https://unpkg.com\",formatUrl:(e,t)=>`${At.unpkg.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}?module`},jsdelivr:{url:\"https://cdn.jsdelivr.net/npm\",formatUrl:(e,t)=>`${At.jsdelivr.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}/+esm`},symbols:{url:\"https://pkg.symbo.ls\",formatUrl:(e,t)=>e.split(\"/\").length>2||!k2(t)?`${At.symbols.url}/${e}`:`${At.symbols.url}/${e}/${t}.js`}},Ar={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},Xn=(e={})=>{let{packageManager:t}=e;return Ar[t]||null},Et=(e,t=\"latest\",r=\"esmsh\")=>(At[r]||At.esmsh).formatUrl(e,t),jh=(e,t=\"skypack\")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return\"\";let o={};for(let s of n){let i=r[s]||\"latest\";o[s]=Et(s,i,t)}return`<script type=\"importmap\">{\n \"imports\": ${JSON.stringify(o,null,2)}\n }<\\/script>`}});var Fh,xw=q(()=>{Fh=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 Dh,vw=q(()=>{Dh=(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 Lh,ww=q(()=>{Lh=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}});var Mh,_w=q(()=>{Mh=e=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(e)});function Yn(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 Uh(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 Nh,Bh,Vh,zh,Wh,Sw=q(()=>{Nh=(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)}}),Bh=(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)}),Vh=(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}`)},zh=(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)}}),Wh=(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 E2(e,t){if(!t||typeof t!=\"object\")return e;let r=o=>{if(!A2(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 Yl(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 O2(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]??Yl(s,p)??u;if(f===\"getLocalStateLang\")return Yl(i,p+o)??u;let h=Yl(i,p);return h!==void 0?h:s[p]??Yl(s,p)??u}));return a}function kw(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 qh(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=kw(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=kw(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=O2(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=E2(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,C2,Hh,A2,Cw=q(()=>{Re();ut=e=>{if(e==null)return\"\";let t={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#039;\"};return e.toString().replace(/[&<>\"']/g,r=>t[r])},C2=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}=\"${ut(r)}\"`).join(\" \"),Hh=(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>${ut(o)}</title>`),r;if(n===\"canonical\")return r.push(`<link rel=\"canonical\" href=\"${ut(o)}\">`),r;if(n===\"manifest\")return r.push(`<link rel=\"manifest\" href=\"${ut(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=\"${ut(a)}\">`);else if(typeof a==\"object\"){let l=C2(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}=\"${ut(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}=\"${ut(a)}\" content=\"${ut(l)}\">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u==\"string\"||typeof u==\"number\"||typeof u==\"boolean\")r.push(`<meta ${c}=\"${ut(a)}\" content=\"${ut(u)}\">`);else if(typeof u==\"object\"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}=\"${ut(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}=\"${ut(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(`\n`)),A2=e=>typeof e==\"string\"&&e.length>0&&!e.startsWith(\"/\")&&!e.startsWith(\"http\")});var Zl,Gh,Aw=q(()=>{Re();Zl=(e,t)=>($(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Gh=(e,t)=>(e=parseFloat(e),_(t)&&(t=Object.values(t)),Zl(e,t))});function Zn(e){let t=String(e||\"\").trim();if(!t)return{owner:Ew,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=Ew);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function Jl(e,t={}){return(t.provider||\"kv\")===\"api\"?Ow(e,t):await R2(e,t)||Ow(e,t)}async function R2(e,t={}){let r=t.kvBaseUrl||T2,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 Ow(e,t={}){let r=t.apiBaseUrl||P2,{key:n}=Zn(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}=Zn(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 Kh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(_(r))return r;if(C(r)){let{full:n}=Zn(r);if(!n)return null;try{let o=await Jl(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 Ew,T2,P2,Js,Qs,Tw=q(()=>{Re();Ew=\"system\",T2=\"https://smbls-kv.nika-980.workers.dev\",P2=\"https://api.symbols.app\";Js=(e,t)=>{for(let r in t)r in e?_(e[r])&&_(t[r])&&Js(e[r],t[r]):e[r]=t[r]},Qs=(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\")Js(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 Xh,Yh,Zh,ei,Jh,ti,Qh,sn,Pw=q(()=>{Re();Xh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn(\"Failed to copy text: \",t)}},Yh=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)}},Zh=e=>e.replace(/[^a-zA-Z0-9_]/g,\"\"),ei=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,\"\")),Jh=e=>e&&e.replace(/\\w\\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),ti=e=>e.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),Qh=(e=\"\")=>{if(typeof e!=\"string\")return;let t=e.replace(/([A-Z])/g,\" $1\");return t.charAt(0).toUpperCase()+t.slice(1)},sn=e=>{if($(e))return e;if(C(e))return e.split(\" \");if(_(e))return Object.values(e);if(Vt(e))return[e]}});var eg,Rw=q(()=>{eg=()=>{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,Jn,ri,ni,$w=q(()=>{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},Jn=(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(\", \")},ri=e=>{if(!e||!Array.isArray(e.variants))return\"\";let t=e.variants.filter(r=>r.format===e.type);return Jn(t,{keepOneX:!1})},ni=(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:Jn(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Jn(o,{keepOneX:!1}),i={src:e.src,alt:t||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}});var Iw={};G(Iw,{CDN_PROVIDERS:()=>At,DOMQL_EVENTS:()=>ep,DOMQ_PROPERTIES:()=>br,ENV:()=>mp,HTML_TAGS:()=>Un,METHODS:()=>Mn,METHODS_EXL:()=>os,NODE_ENV:()=>kt,OPTIONS:()=>Es,PACKAGE_MANAGER_TO_CDN:()=>Ar,PARSED_DOMQ_PROPERTIES:()=>ns,PROPS_METHODS:()=>xr,STATE_METHODS:()=>Jr,STATE_PROPERTIES:()=>Qd,SVG_TAGS:()=>$v,TYPES:()=>Yo,UNIVERSAL_RESERVED_KEYS:()=>Xl,addCaching:()=>Il,addContext:()=>$l,addExtend:()=>Vp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Bd,addProtoToArray:()=>Qo,addRef:()=>Tl,applyDependentState:()=>ih,applyEvent:()=>Nl,applyEventUpdate:()=>Bl,applyExtends:()=>Fv,applyProps:()=>ws,arrayContainsOtherArray:()=>Id,arraysEqual:()=>zd,arrayzeValue:()=>sn,buildImgSrcset:()=>ri,buildSourcesAndImg:()=>ni,cache:()=>fh,call:()=>Th,captureSnapshot:()=>Rh,checkForStateTypes:()=>rh,checkIfInherits:()=>Ml,checkIfStringIsInArray:()=>Hd,clone:()=>rp,cloneAndMergeArrayExtend:()=>ps,cloneFunction:()=>Cp,concatAddExtends:()=>Mp,copyJavaScriptToClipboard:()=>Yh,copyStringToClipboard:()=>Xh,createBasedOnType:()=>Ol,createElement:()=>th,createElementExtends:()=>ml,createExtends:()=>gs,createExtendsFromKeys:()=>Hn,createExtendsStack:()=>vl,createIfConditionFlag:()=>Ap,createInheritedState:()=>nh,createKey:()=>fs,createNestedObject:()=>cp,createNestedObjectByKeyPath:()=>sh,createObjectWithoutPrototype:()=>ll,createParent:()=>Pl,createPath:()=>Rl,createProps:()=>_s,createPropsStack:()=>Al,createRoot:()=>eh,createScope:()=>lh,createSnapshotId:()=>us,customDecodeURIComponent:()=>Jd,customEncodeURIComponent:()=>Zd,cutArrayAfterValue:()=>Md,cutArrayBeforeValue:()=>Ld,debounce:()=>ds,debounceOnContext:()=>_p,decodeNewlines:()=>Yd,deepClone:()=>ue,deepContains:()=>ap,deepDefaults:()=>Js,deepDestringifyFunctions:()=>lt,deepExtend:()=>gl,deepMerge:()=>ae,deepMergeExtends:()=>zt,deepStringifyFunctions:()=>ss,defineSetter:()=>Eh,destringifyGlobalScope:()=>as,detectHeightOnInit:()=>Dh,detectInfiniteLoop:()=>pp,document:()=>ce,encodeNewlines:()=>Xd,error:()=>on,excludeKeysFromObject:()=>gp,exec:()=>le,extendCachedRegistry:()=>Np,extendStackRegistry:()=>ms,extractArrayExtend:()=>bs,fetchLibraryData:()=>Jl,fibonacciNumberByIndex:()=>Lh,filterArrays:()=>Wd,filterArraysFast:()=>Ud,finalizeExtends:()=>wl,findClosestNumber:()=>Zl,findClosestNumberInFactory:()=>Gh,findInheritedState:()=>Ll,findKeyPosition:()=>Gd,flattenExtend:()=>qn,formatDate:()=>Fh,generateHash:()=>dl,generateKey:()=>cs,generateMetaTags:()=>Hh,get:()=>kh,getCDNUrl:()=>Et,getCapitalCaseKeys:()=>Up,getCdnProviderFromConfig:()=>Xn,getChildStateInKey:()=>Dl,getChildren:()=>Ms,getContext:()=>Hs,getCookie:()=>Rp,getDB:()=>Ys,getEmotionStylesheet:()=>eg,getExtendsInElement:()=>zp,getExtendsStack:()=>hs,getExtendsStackRegistry:()=>hl,getFrequencyInArray:()=>jd,getHashedExtend:()=>ys,getImportMapScript:()=>jh,getInObjectByPath:()=>dp,getLocalStorage:()=>Ip,getNev:()=>vp,getPageMetadata:()=>qh,getParentStateInKey:()=>Fl,getPath:()=>Ns,getQuery:()=>Zs,getRef:()=>Ah,getRoot:()=>zs,getRootContext:()=>Us,getRootData:()=>Ws,getRootState:()=>Vs,getRootStateInKey:()=>jl,getSpreadChildren:()=>Hp,global:()=>Pd,hasFunction:()=>Bn,hasHandlerPlugin:()=>Vn,hasOwnProperty:()=>op,inheritChildExtends:()=>bl,inheritChildPropsExtends:()=>yl,inheritParentProps:()=>Ss,inheritRecursiveChildExtends:()=>xl,initProps:()=>Zp,is:()=>Ge,isArray:()=>$,isBoolean:()=>nl,isContextComponent:()=>qp,isCyclic:()=>hp,isDOMNode:()=>He,isDate:()=>sl,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>il,isEmptyObject:()=>sp,isEqualDeep:()=>al,isFunction:()=>E,isHtmlElement:()=>Ko,isLocal:()=>xp,isMethod:()=>Ph,isMobile:()=>Tp,isNode:()=>er,isNot:()=>$d,isNotProduction:()=>tn,isNull:()=>ol,isNumber:()=>Vt,isObject:()=>_,isObjectLike:()=>Q,isPhoto:()=>Mh,isProduction:()=>vr,isStaging:()=>bp,isState:()=>oh,isString:()=>C,isStringFunction:()=>kp,isTest:()=>ul,isTesting:()=>yp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>$h,isValidHtmlTag:()=>Fp,joinArrays:()=>Fn,jointStacks:()=>Bp,keys:()=>Gl,loadCssFile:()=>zh,loadJavascript:()=>Wh,loadJavascriptFile:()=>Nh,loadJavascriptFileEmbedSync:()=>Vh,loadJavascriptFileSync:()=>Bh,loadRemoteCSS:()=>Uh,loadRemoteScript:()=>Yn,log:()=>Oh,logGroupIf:()=>Op,logIf:()=>Ep,lookdown:()=>_h,lookdownAll:()=>Sh,lookup:()=>wh,lowercaseFirstLetter:()=>Zr,makeObjectWithoutPrototype:()=>ip,map:()=>tp,mapStringsWithContextComponents:()=>xs,matchesComponentNaming:()=>Wt,memoize:()=>Sp,merge:()=>ge,mergeSharedLibraries:()=>Qs,nextElement:()=>Gs,normalizeLibraryKey:()=>Zn,objectToString:()=>is,objectizeStringProperty:()=>vs,overwrite:()=>ls,overwriteDeep:()=>Ke,overwriteShallow:()=>en,overwriteState:()=>ah,parse:()=>Kl,parseDeep:()=>Ds,pickupElementFromProps:()=>kl,pickupPropsFromElement:()=>Sl,previousElement:()=>Ks,propExists:()=>Xp,propertizeElement:()=>Cl,propertizeUpdate:()=>Kp,remove:()=>fw,removeChars:()=>Zh,removeCookie:()=>$p,removeDuplicateProps:()=>Cs,removeDuplicatesInArray:()=>Dn,removeFromArray:()=>Fd,removeFromObject:()=>lp,removeNestedKeyByPath:()=>up,removeValueFromArray:()=>Jo,removeValueFromArrayAll:()=>Nd,reorderArrayByValues:()=>Vd,replaceLiteralsWithObjectFields:()=>Yr,replaceOctalEscapeSequences:()=>Kd,resolveAsset:()=>Ye,resolveHandler:()=>zn,resolveSharedLibraries:()=>Kh,returnValueAsText:()=>El,runPluginHook:()=>Wn,self:()=>Rd,setActiveRootState:()=>Bs,setCookie:()=>Pp,setHashedExtend:()=>pl,setInObjectByPath:()=>fp,setLocalStorage:()=>jp,setNodeStyles:()=>ql,setProps:()=>Ch,setPropsPrototype:()=>ks,spotByPath:()=>Ls,srcsetFor:()=>Jn,stringIncludesAny:()=>ts,stringToObject:()=>np,swapItemsInArray:()=>Dd,syncProps:()=>As,toCamelCase:()=>ei,toDashCase:()=>ti,toDescriptionCase:()=>Qh,toTitleCase:()=>Jh,toggleFullscreen:()=>Ih,triggerEventOn:()=>_r,triggerEventOnUpdate:()=>ch,trimStringFromSymbols:()=>qd,unstackArrayOfObjects:()=>Zo,update:()=>Yp,updateProps:()=>Jp,variables:()=>Xs,verbose:()=>Kn,warn:()=>qs,window:()=>A});var I=q(()=>{cl();wp();Re();tr();fl();Ln();Xo();Tv();Pv();rs();Go();Rv();Dp();Wp();Qp();_l();Vv();zv();Nn();Wv();hw();dh();gw();uh();mw();yw();bw();xw();vw();ww();_w();Sw();Cw();Aw();Tw();Pw();Rw();$w()});var SC=Cd((I9,_C)=>{var xo=1e3,vo=xo*60,wo=vo*60,wn=wo*24,Dj=wn*7,Lj=wn*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):Nj(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*Lj;case\"weeks\":case\"week\":case\"w\":return r*Dj;case\"days\":case\"day\":case\"d\":return r*wn;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*wo;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*vo;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*xo;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function Nj(e){var t=Math.abs(e);return t>=wn?Math.round(e/wn)+\"d\":t>=wo?Math.round(e/wo)+\"h\":t>=vo?Math.round(e/vo)+\"m\":t>=xo?Math.round(e/xo)+\"s\":e+\"ms\"}function Bj(e){var t=Math.abs(e);return t>=wn?ku(e,t,wn,\"day\"):t>=wo?ku(e,t,wo,\"hour\"):t>=vo?ku(e,t,vo,\"minute\"):t>=xo?ku(e,t,xo,\"second\"):e+\" ms\"}function ku(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+\" \"+n+(o?\"s\":\"\")}});var CC=Cd((j9,kC)=>{function Vj(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=SC(),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,(S,O)=>{if(S===\"%%\")return\"%\";v++;let T=r.formatters[O];if(typeof T==\"function\"){let k=m[v];S=T.call(y,k),m.splice(v,1),v--}return S}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,\"enabled\",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init==\"function\"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>\"u\"?\":\":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u==\"string\"?u:\"\").trim().replace(/\\s+/g,\",\").split(\",\").filter(Boolean);for(let f of d)f[0]===\"-\"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]===\"*\"))d[p]===\"*\"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]===\"*\";)p++;return p===d.length}function i(){let u=[...r.names,...r.skips.map(d=>\"-\"+d)].join(\",\");return r.enable(\"\"),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return r.enable(r.load()),r}kC.exports=Vj});var AC=Cd((Je,Cu)=>{Je.formatArgs=Wj;Je.save=Uj;Je.load=Hj;Je.useColors=zj;Je.storage=qj();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 zj(){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 \":\" \")+\"+\"+Cu.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 Uj(e){try{e?Je.storage.setItem(\"debug\",e):Je.storage.removeItem(\"debug\")}catch{}}function Hj(){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 qj(){try{return localStorage}catch{}}Cu.exports=CC()(Je);var{formatters:Gj}=Cu.exports;Gj.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}});var IN={};G(IN,{ANIMATION_PROPS:()=>Ng,ARIA_ROLES:()=>W$,ATTR_TRANSFORMS:()=>em,BLOCK_PROPS:()=>Bg,CDN_PROVIDERS:()=>At,CONFIG:()=>sc,CSS_NATIVE_COLOR_REGEX:()=>Ht,CSS_PROPS_REGISTRY:()=>_e,CSS_UNITS:()=>jn,DEFAULT_CONFIG:()=>Oi,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>xi,DESIGN_SYSTEM_OPTIONS:()=>iy,DOMQL_EVENTS:()=>ep,DOMQ_PROPERTIES:()=>br,DOM_EVENTS:()=>K_,ENV:()=>mp,FACTORY:()=>or,FLEX_PROPS:()=>Hg,FONT_PROPS:()=>Vg,GRID_PROPS:()=>qg,HTML_ATTRIBUTES:()=>Bc,HTML_TAGS:()=>Un,LIFECYCLE_EVENTS:()=>bn,METHODS:()=>Mn,METHODS_EXL:()=>os,MISC_PROPS:()=>zg,MIXINS:()=>Fg,NODE_ENV:()=>kt,OPTIONS:()=>Es,PACKAGE_MANAGER_TO_CDN:()=>Ar,PARSED_DOMQ_PROPERTIES:()=>ns,POSITION_PROPS:()=>Wg,PROPS_METHODS:()=>xr,REGISTRY:()=>Ze,ROUTER_OPTIONS:()=>eu,STATE_PROPERTIES:()=>Qd,SVG_TAGS:()=>yi,THEME_PROPS:()=>Ug,TIMING_PROPS:()=>Ci,TYPES:()=>Yo,UNIVERSAL_RESERVED_KEYS:()=>Xl,VALUE_TRANSFORMERS:()=>Tg,activateConfig:()=>N2,addCaching:()=>Il,addContext:()=>$l,addDelegatedEvent:()=>Mc,addExtend:()=>Vp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Bd,addMethods:()=>Ei,addProtoToArray:()=>Qo,addRef:()=>Tl,animation:()=>o_,appendSVGSprite:()=>Oc,appendSvgIconsSprite:()=>Pc,applyAttrTransforms:()=>nm,applyCSS:()=>ry,applyDependentState:()=>ih,applyDocument:()=>Ec,applyEvent:()=>Nl,applyEventUpdate:()=>Bl,applyExtends:()=>wi,applyHeadings:()=>wg,applyInitialState:()=>Jg,applyMediaSequenceVars:()=>un,applyProps:()=>ws,applyReset:()=>Rc,applySequenceGlobalVars:()=>dc,applySequenceVars:()=>Pr,applySpacingSequence:()=>Sc,applyStateMethods:()=>mt,applyTimingSequence:()=>Ac,applyTrueProps:()=>Kg,applyTypographySequence:()=>vc,arrayContainsOtherArray:()=>Id,arraysEqual:()=>zd,arrayzeValue:()=>sn,batch:()=>yr,breakpoints:()=>r_,buildImgSrcset:()=>ri,buildSourcesAndImg:()=>ni,cache:()=>fh,cacheNode:()=>yn,call:()=>Th,captureSnapshot:()=>Rh,changeGlobalTheme:()=>Pg,changeLightness:()=>Nw,checkAttributeByTagName:()=>Ir,checkEventFunctions:()=>rm,checkForStateTypes:()=>rh,checkIfBoxSize:()=>_c,checkIfInherits:()=>Ml,checkIfStringIsInArray:()=>Hd,class:()=>c_,clone:()=>rp,cloneAndMergeArrayExtend:()=>ps,cloneFunction:()=>Cp,color:()=>Xw,colorStringToRgbaArray:()=>rr,components:()=>ao,concatAddExtends:()=>Mp,convertSvgToSymbol:()=>pc,copyJavaScriptToClipboard:()=>Yh,copyStringToClipboard:()=>Xh,create:()=>bv,createAsync:()=>PN,createBasedOnType:()=>Ol,createComputed:()=>_v,createConfig:()=>pg,createDefine:()=>p1,createEffect:()=>Ae,createElement:()=>th,createElementExtends:()=>ml,createExtends:()=>gs,createExtendsFromKeys:()=>Hn,createExtendsStack:()=>vl,createHTMLNode:()=>mi,createIfConditionFlag:()=>Ap,createInheritedState:()=>nh,createKey:()=>fs,createNestedObject:()=>cp,createNestedObjectByKeyPath:()=>sh,createObjectWithoutPrototype:()=>ll,createParent:()=>Pl,createPath:()=>Rl,createProps:()=>_s,createPropsStack:()=>Al,createRoot:()=>eh,createScope:()=>lh,createSignal:()=>mr,createSkeleton:()=>$N,createSnapshotId:()=>us,createState:()=>q_,createStore:()=>at,createSync:()=>RN,css:()=>Rr,cssMediaVars:()=>fg,cssVars:()=>ug,customDecodeURIComponent:()=>Jd,customEncodeURIComponent:()=>Zd,cutArrayAfterValue:()=>Md,cutArrayBeforeValue:()=>Ld,debounce:()=>ds,debounceOnContext:()=>_p,decodeNewlines:()=>Yd,deepClone:()=>ue,deepContains:()=>ap,deepDefaults:()=>Js,deepDestringifyFunctions:()=>lt,deepExtend:()=>gl,deepMerge:()=>ae,deepMergeExtends:()=>zt,deepStringifyFunctions:()=>ss,defaultDefine:()=>uo,defineSetter:()=>Eh,destringifyGlobalScope:()=>as,destroy:()=>$i,detectHeightOnInit:()=>Dh,detectInfiniteLoop:()=>pp,detectTag:()=>mn,devices:()=>n_,dispose:()=>xn,encodeNewlines:()=>Xd,error:()=>on,excludeKeysFromObject:()=>gp,exec:()=>le,executeAttr:()=>H$,exetuteClassPerComponent:()=>D$,extendCachedRegistry:()=>Np,extendStackRegistry:()=>ms,extractArrayExtend:()=>bs,extractConditionalAttrs:()=>K$,fetchLibraryData:()=>Jl,fibonacciNumberByIndex:()=>Lh,filterArrays:()=>Wd,filterArraysFast:()=>Ud,filterAttributesByTagName:()=>U$,finalizeExtends:()=>wl,findClosestNumber:()=>Zl,findClosestNumberInFactory:()=>Gh,findHeadingLetter:()=>yg,findHeadings:()=>fc,findInheritedState:()=>Ll,findKeyPosition:()=>Gd,flattenExtend:()=>qn,font:()=>Ww,fontFace:()=>qw,fontFamily:()=>Uw,fontFamilyTypes:()=>Hw,formatDate:()=>Fh,generateHash:()=>dl,generateKey:()=>cs,generateMetaTags:()=>Hh,generateSequence:()=>ft,generateSequencePosition:()=>h_,generateSprite:()=>ci,generateSubSequence:()=>cc,get:()=>kh,getActiveConfig:()=>P,getActiveDocument:()=>Ig,getActiveLang:()=>ji,getCDNUrl:()=>Et,getCacheSize:()=>P_,getCapitalCaseKeys:()=>Up,getCdnProviderFromConfig:()=>Xn,getChildStateInKey:()=>Dl,getChildren:()=>Ms,getColor:()=>de,getColorShade:()=>sg,getContext:()=>Hs,getCookie:()=>Rp,getDB:()=>Ys,getDefaultOrFirstKey:()=>Qn,getEmotionStylesheet:()=>eg,getExtendsInElement:()=>zp,getExtendsStack:()=>hs,getExtendsStackRegistry:()=>hl,getFnPrefixAndValue:()=>Tr,getFontFace:()=>Vw,getFontFaceEach:()=>eo,getFontFaceEachString:()=>cg,getFontFaceString:()=>ec,getFontFamily:()=>xc,getFontFormat:()=>ag,getFontSizeByKey:()=>wc,getFrequencyInArray:()=>jd,getHashedExtend:()=>ys,getImportMapScript:()=>jh,getInObjectByPath:()=>dp,getLanguages:()=>nu,getLocalStateLang:()=>lu,getLocalStorage:()=>Ip,getMediaColor:()=>De,getMediaTheme:()=>Tt,getNev:()=>vp,getObserver:()=>tl,getPageMetadata:()=>qh,getParentStateInKey:()=>Fl,getPath:()=>Ns,getQuery:()=>Zs,getRef:()=>Ah,getRgbTone:()=>ln,getRoot:()=>zs,getRootContext:()=>Us,getRootData:()=>Ws,getRootState:()=>Vs,getRootStateInKey:()=>jl,getSequenceValue:()=>uc,getSequenceValueBySymbols:()=>mg,getSequenceValuePropertyPair:()=>ir,getShadow:()=>Cc,getSignals:()=>Av,getSpacingBasedOnRatio:()=>qt,getSpacingByKey:()=>Ee,getSpreadChildren:()=>Hp,getSubratio:()=>lc,getSubratioDifference:()=>ac,getSystemGlobalTheme:()=>gt,getTheme:()=>gc,getTimingByKey:()=>dt,getTimingFunction:()=>Pt,global:()=>Pd,gradient:()=>Yw,grid:()=>l_,hasFunction:()=>Bn,hasHandlerPlugin:()=>Vn,hasOwnProperty:()=>op,hexToRgb:()=>Fw,hexToRgbArray:()=>tg,hexToRgba:()=>Lw,hslToRgb:()=>og,icons:()=>Qw,inheritChildExtends:()=>bl,inheritChildPropsExtends:()=>yl,inheritParentProps:()=>Ss,inheritRecursiveChildExtends:()=>xl,init:()=>co,initPolyglot:()=>ay,initProps:()=>Zp,injectGlobal:()=>we,is:()=>Ge,isArray:()=>$,isBoolean:()=>nl,isCSSVar:()=>xe,isContextComponent:()=>qp,isCyclic:()=>hp,isDOMNode:()=>He,isDate:()=>sl,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>il,isEmptyObject:()=>sp,isEqualDeep:()=>al,isFunction:()=>E,isGoogleFontsUrl:()=>si,isHtmlElement:()=>Ko,isLocal:()=>xp,isMethod:()=>Ph,isMobile:()=>Tp,isNode:()=>er,isNot:()=>$d,isNotProduction:()=>tn,isNull:()=>ol,isNumber:()=>Vt,isObject:()=>_,isObjectLike:()=>Q,isPhoto:()=>Mh,isProduction:()=>vr,isResolvedColor:()=>nr,isScalingUnit:()=>In,isStaging:()=>bp,isState:()=>oh,isStore:()=>Fe,isString:()=>C,isStringFunction:()=>kp,isSvgTag:()=>bi,isTest:()=>ul,isTesting:()=>yp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>$h,isValidHtmlTag:()=>Fp,isValidTag:()=>gi,isWasmLoaded:()=>e1,joinArrays:()=>Fn,jointStacks:()=>Bp,keyframes:()=>hi,keys:()=>Gl,loadCssFile:()=>zh,loadJavascript:()=>Wh,loadJavascriptFile:()=>Nh,loadJavascriptFileEmbedSync:()=>Vh,loadJavascriptFileSync:()=>Bh,loadRemoteCSS:()=>Uh,loadRemoteScript:()=>Yn,loadTranslations:()=>su,loadWasm:()=>Qk,log:()=>Oh,logGroupIf:()=>Op,logIf:()=>Ep,lookdown:()=>_h,lookdownAll:()=>Sh,lookup:()=>wh,lowercaseFirstLetter:()=>Zr,makeObjectWithoutPrototype:()=>ip,map:()=>tp,mapStringsWithContextComponents:()=>xs,matchesComponentNaming:()=>Wt,media:()=>Gw,memoize:()=>Sp,merge:()=>ge,mergeSharedLibraries:()=>Qs,mixTwoColors:()=>jw,mixTwoRgb:()=>Mw,mixTwoRgba:()=>ig,nextElement:()=>Gs,normalizeLibraryKey:()=>Zn,numToLetterMap:()=>sr,objectToString:()=>is,objectizeStringProperty:()=>vs,opacify:()=>oi,overwrite:()=>ls,overwriteDeep:()=>Ke,overwriteShallow:()=>en,overwriteState:()=>ah,parse:()=>Kl,parseColorToken:()=>Er,parseDeep:()=>Ds,pickupElementFromProps:()=>kl,pickupPropsFromElement:()=>Sl,polyglotFunctions:()=>Fi,polyglotPlugin:()=>cu,popConfig:()=>$e,previousElement:()=>Ks,propExists:()=>Xp,propertizeElement:()=>Cl,propertizeUpdate:()=>Kp,pushConfig:()=>Ie,registerEvent:()=>vi,reinit:()=>ty,remove:()=>ki,removeChars:()=>Zh,removeCookie:()=>$p,removeDelegatedEvent:()=>Nc,removeDuplicateProps:()=>Cs,removeDuplicatesInArray:()=>Dn,removeFromArray:()=>Fd,removeFromObject:()=>lp,removeNestedKeyByPath:()=>up,removeValueFromArray:()=>Jo,removeValueFromArrayAll:()=>Nd,reorderArrayByValues:()=>Vd,replaceLiteralsWithObjectFields:()=>Yr,replaceOctalEscapeSequences:()=>Kd,resolveAsset:()=>Ye,resolveColorsInGradient:()=>Ic,resolveFileSource:()=>Qg,resolveFileUrl:()=>Ot,resolveHandler:()=>zn,resolvePropValue:()=>$r,resolveSharedLibraries:()=>Kh,returnSubThemeOrDefault:()=>Bw,returnValueAsText:()=>El,rgbArrayToHex:()=>rg,rgbToHSL:()=>ng,rgbToHex:()=>Dw,runPluginHook:()=>Wn,runThroughMedia:()=>vg,scratchDefaultConfig:()=>ai,scratchSystem:()=>pi,scratchUtils:()=>fn,self:()=>Rd,semanticIcons:()=>e_,sequence:()=>Or,set:()=>to,setActiveConfig:()=>dg,setActiveDocument:()=>O_,setActiveRootState:()=>Bs,setClass:()=>SI,setClassname:()=>L$,setColor:()=>dn,setCookie:()=>Pp,setCssEngineHook:()=>Yc,setCustomFont:()=>Ql,setCustomFontMedia:()=>cn,setEach:()=>k_,setFont:()=>bc,setFontFamily:()=>fi,setFontImport:()=>ii,setGradient:()=>pn,setHashedExtend:()=>pl,setInCustomFontMedia:()=>lg,setInObjectByPath:()=>fp,setLang:()=>iu,setLocalStorage:()=>jp,setMediaTheme:()=>yc,setNodeStyles:()=>ql,setObserver:()=>wv,setProps:()=>Ch,setPropsPrototype:()=>ks,setSVG:()=>di,setScalingVar:()=>ic,setShadow:()=>hn,setSubScalingVar:()=>gg,setSvgIcon:()=>Tc,setTheme:()=>mc,setValue:()=>S_,setVariables:()=>g_,setWasmEngine:()=>Lc,shadow:()=>Jw,spacing:()=>Kw,splitSpacedValue:()=>kc,splitTopLevelCommas:()=>an,splitTransition:()=>Og,spotByPath:()=>Ls,srcsetFor:()=>Jn,stringIncludesAny:()=>ts,stringToObject:()=>np,svg:()=>s_,svgData:()=>i_,swapItemsInArray:()=>Dd,syncProps:()=>As,templates:()=>a_,theme:()=>Zw,timing:()=>t_,toCamel:()=>oc,toCamelCase:()=>ei,toDashCase:()=>ti,toDescriptionCase:()=>Qh,toTitleCase:()=>Jh,toggleFullscreen:()=>Ih,transformBackgroundImage:()=>Ag,transformBorder:()=>ar,transformBorderRadius:()=>Fc,transformBoxShadow:()=>$c,transformClassname:()=>z_,transformDuration:()=>jc,transformShadow:()=>Cg,transformSize:()=>ve,transformSizeRatio:()=>ee,transformTextStroke:()=>kg,transformTransition:()=>__,transformersByPrefix:()=>Xg,transfromGap:()=>Eg,translate:()=>ou,triggerEventOn:()=>_r,triggerEventOnUpdate:()=>ch,trimStringFromSymbols:()=>qd,typography:()=>tc,unit:()=>zw,unstackArrayOfObjects:()=>Zo,update:()=>Si,updateProps:()=>Jp,updateVars:()=>_I,upsertTranslation:()=>au,useCssInProps:()=>tt,usePropsAsCSS:()=>B_,useSelectorsAsCSS:()=>V_,variables:()=>Xs,vars:()=>u_,verbose:()=>Kn,warn:()=>qs,window:()=>A});var Ue=null,Qa=0,el=[],tl=()=>Ue,wv=e=>{Ue=e};function mr(e){let t=new Set;function r(){return Ue&&(t.add(Ue),Ue._sources.add(s)),e}function n(i){i!==e&&(e=i,kv(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:\"signal\"};return s}function _v(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:\"computed\",_subscribers:n,_execute(){Od(o);let s=Ue;Ue=o;try{let i=e();i!==t?(t=i,r=!1,kv(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 Ad=new Set,Ed=!1;function Ae(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;Od(n);let o=Ue;Ue=n;try{e()}catch(s){console.error(\"[smbls] effect error:\",s)}finally{Ue=o}},_notify(){n._disposed||(Qa>0?el.push(n):Sv(n))},dispose(){n._disposed=!0,Od(n)}};return n._execute(),n}function yr(e){Qa++;try{e()}finally{Qa--,Qa===0&&FR()}}function Sv(e){Ad.add(e),Ed||(Ed=!0,queueMicrotask(jR))}function jR(){Ed=!1;let e=Array.from(Ad).sort((t,r)=>t._depth-r._depth);Ad=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function FR(){for(let e=0;e<el.length;e++)Sv(el[e]);el.length=0}function kv(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Od(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var rl=Symbol(\"store\"),Cv=Symbol(\"signals\"),Td=e=>!e||typeof e!=\"object\"||Array.isArray(e)||e[rl]||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){let b=e[y];r<s&&b&&typeof b==\"object\"&&!Td(b)?(o[y]=b,n[y]=mr(at(b,t,r+1))):(o[y]=b,n[y]=mr(b))}let i=new Proxy(o,{get(y,b){if(b===rl)return!0;if(b===Cv)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\"&&tl()!=null)return n[b]=mr(void 0),n[b].get()},set(y,b,x){return b===\"__element\"||b===\"parent\"||b===\"root\"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x==\"object\"&&!Td(x)?n[b].set(at(x,t,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x==\"object\"&&!Td(x)?n[b]=mr(at(x,t,r+1)):n[b]=mr(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){yr(()=>{for(let v in y)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[rl]?b[x]=v.parse(y):b[x]=v}return b}function u(){return yr(()=>{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 yr(()=>{for(let b in n)b in y||delete i[b];for(let b in y)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 Fe(e){return e&&e[rl]===!0}function Av(e){return e[Cv]}var fn={};G(fn,{CSS_NATIVE_COLOR_REGEX:()=>Ht,CSS_UNITS:()=>jn,applyMediaSequenceVars:()=>un,applySequenceGlobalVars:()=>dc,applySequenceVars:()=>Pr,changeLightness:()=>Nw,colorStringToRgbaArray:()=>rr,convertSvgToSymbol:()=>pc,findHeadingLetter:()=>yg,findHeadings:()=>fc,generateSequence:()=>ft,generateSequencePosition:()=>h_,generateSprite:()=>ci,generateSubSequence:()=>cc,getColorShade:()=>sg,getDefaultOrFirstKey:()=>Qn,getFnPrefixAndValue:()=>Tr,getFontFace:()=>Vw,getFontFaceEach:()=>eo,getFontFaceEachString:()=>cg,getFontFaceString:()=>ec,getFontFormat:()=>ag,getRgbTone:()=>ln,getSequenceValue:()=>uc,getSequenceValueBySymbols:()=>mg,getSequenceValuePropertyPair:()=>ir,getSubratio:()=>lc,getSubratioDifference:()=>ac,hexToRgb:()=>Fw,hexToRgbArray:()=>tg,hexToRgba:()=>Lw,hslToRgb:()=>og,isCSSVar:()=>xe,isGoogleFontsUrl:()=>si,isResolvedColor:()=>nr,isScalingUnit:()=>In,mixTwoColors:()=>jw,mixTwoRgb:()=>Mw,mixTwoRgba:()=>ig,numToLetterMap:()=>sr,opacify:()=>oi,parseColorToken:()=>Er,resolveFileUrl:()=>Ot,returnSubThemeOrDefault:()=>Bw,rgbArrayToHex:()=>rg,rgbToHSL:()=>ng,rgbToHex:()=>Dw,setCustomFont:()=>Ql,setCustomFontMedia:()=>cn,setFontImport:()=>ii,setInCustomFontMedia:()=>lg,setScalingVar:()=>ic,setSubScalingVar:()=>gg,setVariables:()=>g_,splitTopLevelCommas:()=>an});var In=e=>e===\"em\"||e===\"rem\"||e===\"vw\"||e===\"vh\"||e===\"vmax\"||e===\"vmin\",jn=[\"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 rr=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&&ce&&A){let t=ce.body.appendChild(ce.createElement(\"fictum\")),r=\"rgb(1, 2, 3)\";if(t.style.color=r,t.style.color!==r){ce.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color===\"\")return ce.body.removeChild(t),[0,0,0,0];e=A.getComputedStyle(t).color,ce.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]},jw=(e,t,r=.5)=>(e=rr(e),t=rr(t),ig(e,t,r)),Fw=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},tg=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},Dw=(e,t,r)=>\"#\"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),rg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),Lw=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},Mw=(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})`},Nw=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},ng=(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]},og=(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)],sg=(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)},ig=(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})`},oi=(e,t)=>{let r=rr(e);if(!r){tn()&&console.warn(e+\" color is not rgba\");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Ht=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,$2=/^([a-zA-Z]\\w*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,Er=e=>{if(!C(e))return null;if(Ht.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match($2);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}},nr=e=>C(e)&&(e.includes(\"rgb\")||e.includes(\"var(\")||e.includes(\"#\")),an=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},ln=(e,t)=>{C(e)&&e.includes(\"rgb\")&&(e=rr(e).join(\", \")),C(e)&&(e=e.split(\",\").map(o=>parseFloat(o.trim()))),Vt(t)&&(t+=\"\");let r=rg(e),n=t.slice(0,1);if(n===\"-\"||n===\"+\"){let o=sg(r,parseFloat(t));return tg(o).join(\", \")}else{let[o,s,i]=e,a=ng(o,s,i),[l,c,u]=a;return og(l,c,parseFloat(t)/100*255)}};var Bw=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Ot=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},Qn=(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},ag=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},si=e=>e&&(e.includes(\"fonts.googleapis.com\")||e.includes(\"fonts.gstatic.com\")),ii=e=>`@import url('${e}');`,lg=e=>`@font-face { ${e} }`,Ql=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a==\"string\"&&a).map(a=>{let l=ag(a),c=l?` format('${l}')`:\"\";return`url('${a}')${c}`}).join(`,\n `);return`\n font-family: '${e}';\n font-style: ${n.fontStyle||\"normal\"};${r?`\n font-weight: ${r};`:\"\"}${n.fontStretch?`\n font-stretch: ${n.fontStretch};`:\"\"}${n.fontDisplay?`\n font-display: ${n.fontDisplay};`:\"\"}\n src: ${i};`},cn=(e,t,r,n)=>`@font-face {${Ql(e,t,r,n)}\n}`,eo=(e,t,r)=>Object.keys(t).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:l,fontStretch:c}=t[o],u=Array.isArray(s)?s.map(d=>Ot(d,r)||d):Ot(s,r)||s;return Ql(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),Vw=e=>Object.keys(e).map(r=>eo(r,e[r].value)),cg=(e,t,r)=>{if(t&&t.isVariable){let s=Ot(t.url,r)||t.url;return si(s)?ii(s):cn(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\"})}if(t[0])return eo(e,t,r).map(lg);let o=Array.isArray(t.url)?t.url.map(s=>Ot(s,r)||s):Ot(t.url,r)||t.url;return cn(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},ec=(e,t)=>Object.keys(e).map(n=>cg(n,e[n].value,t));I();I();I();var ai={};G(ai,{animation:()=>o_,breakpoints:()=>r_,class:()=>c_,color:()=>Xw,devices:()=>n_,document:()=>D2,font:()=>Ww,fontFace:()=>qw,fontFamily:()=>Uw,fontFamilyTypes:()=>Hw,gradient:()=>Yw,grid:()=>l_,icons:()=>Qw,media:()=>Gw,reset:()=>M2,semanticIcons:()=>e_,sequence:()=>Or,shadow:()=>Jw,spacing:()=>Kw,svg:()=>s_,svgData:()=>i_,templates:()=>a_,theme:()=>Zw,timing:()=>t_,typography:()=>tc,unit:()=>zw,vars:()=>u_});var Or={\"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 zw={default:\"em\"};var I2={browserDefault:16,base:16,type:\"font-size\",ratio:Or[\"minor-third\"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:\"em\",templates:{},sequence:{},scales:{},vars:{}},tc=I2;var Ww={};var Uw={},Hw={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},qw={};var Gw={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var j2={base:tc.base,type:\"spacing\",ratio:Or.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},Kw=j2;var Xw={},Yw={};var Zw={};var Jw={};var Qw={},e_={};var F2={default:150,base:150,type:\"timing\",ratio:Or[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},t_=F2;var D2={};var r_={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},n_={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 o_={};var s_={},i_={};var a_={};var L2={},l_=L2;var c_={};var M2={},u_={};var ug={},fg={},rc=ai,nc={},oc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in rc){let t=e.toLowerCase();nc[t]=rc[e];let r=oc(t);r!==t&&(nc[r]=rc[e]),t!==e&&(nc[e]=rc[e])}var sc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:ug,cssMediaVars:fg,CSS_VARS:ug,CSS_MEDIA_VARS:fg,_scratchConfig:!0,...nc},f_=ue(sc),or={active:\"0\",0:sc},N2=e=>(qe(e)&&(or.active=e),or[e||or.active]),li=[],Ie=e=>{e&&e._scratchConfig&&li.push(e)},$e=()=>{li.pop()},P=e=>li.length?li[li.length-1]:or[e||or.active]||sc,dg=e=>{if(_(e))return or.active=\"1\",or[1]=ae(e,ue(f_)),e},B2=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],V2=[[\"fontfamily\",\"fontFamily\",\"font_family\"],[\"fontfamilytypes\",\"fontFamilyTypes\"],[\"semanticicons\",\"semanticIcons\"],[\"svgdata\",\"svgData\"]],z2=e=>{for(let t of V2){let r;for(let n of t){let o=e[n];_(o)&&(r=r?ae(o,r):o)}if(r)for(let n of t)_(e[n])&&(e[n]=r)}},pg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:P(),o=ue(!r&&n&&n._scratchConfig?n:f_);for(let i of B2)delete o[i];let s=ae(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,z2(s),e&&(or[e]=s),s};var sr={\"-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\"},hg=(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=d_.has(t.unit)?\"rem\":t.unit;t.vars[n]=s+l},Tr=e=>{if(!e.includes(\"(\"))return e;let t=e.split(\"(\")[0],r=e.slice(e.indexOf(\"(\")+1,e.lastIndexOf(\")\"));return[t,r]},d_=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),ic=(e,t)=>{let{base:r,type:n,unit:o}=t,s=d_.has(o)?\"rem\":o,i=(In(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=sr[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=sr[e+1],d=Math.abs(e),f=Math.pow(p_,2*d),p=sr[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},gg=(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}))`},ac=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},lc=(e,t)=>ac(e,t).map(r=>r/e),cc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=ac(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=gg(g+1,u,i,t),v={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};hg(v,t)})},p_=1.618,W2=(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(p_,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=sr[u],f=W2(u,r,n),p=~~(f/r*100)/100,h=l+d,g=ic(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};hg(m,e),s&&cc(m,e)}return e},h_=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=C(t)?t:sr[t],a=C(t)?Object.entries(sr).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=ic(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return hg(g,l),s&&cc(g,l),l},uc=(e=\"A\",t)=>{let r=P(),{unit:n}=r;if(C(e)&&xe(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(jn.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+\"-\":\"\"}${ti(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)},mg=(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:uc(i,t)}).join(\"\")},ir=(e,t,r,n)=>{if(typeof e!=\"string\")return P().verbose&&console.warn(t,e,\"is not a string\"),{[t]:e};if(e===\"-\"||e===\"\")return{};if(!n&&e.includes(\"(\")){let s=Tr(e);n=s[0],e=s[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>e.includes(s+\" \")).length?e=mg(e,r):e=uc(e,r),{[t]:n?`${n}(${e})`:e}},yg=(e,t)=>sr[e-t],fc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=yg(t,o);return r[s]})};I();var g_=(e,t)=>{let r=P(),{cssVars:n}=r;Q(e.value)||(n[e.var]=e.value)},dc=(e,t,r)=>{let n=P(),{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]=lc(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})`},m_=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),Pr=(e,t={})=>{let r=P(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=m_.has(i)?\"rem\":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||dc(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\"})`)}},un=(e,t,r={})=>{let n=P(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=m_.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}`]={}),dc(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=(In(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 U2=tn(),ci=e=>{let t=P(),r=\"\";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},H2=e=>{let t=e&&(e.default||e);if(!C(t))return U2&&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},{}):{}},q2=(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},pc=(e,t)=>{let r=H2(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,l=q2(t,e).replace(\"<svg\",`<symbol id=\"${e}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${s}\"`);return l=l.replace(/width=\"[^\"]*\"/,\"\"),l=l.replace(/height=\"[^\"]*\"/,\"\"),l=l.replace(\"</svg\",\"</symbol\"),l=X2(l),l},G2=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",K2=new RegExp(`<(${G2})\\\\b([^>]*?)\\\\s*/>`,\"g\"),X2=e=>e.replace(K2,\"<$1$2></$1>\");var pi={};G(pi,{appendSVGSprite:()=>Oc,appendSvgIconsSprite:()=>Pc,applyDocument:()=>Ec,applyHeadings:()=>wg,applyReset:()=>Rc,applySpacingSequence:()=>Sc,applyTimingSequence:()=>Ac,applyTypographySequence:()=>vc,checkIfBoxSize:()=>_c,getColor:()=>de,getFontFamily:()=>xc,getFontSizeByKey:()=>wc,getMediaColor:()=>De,getMediaTheme:()=>Tt,getShadow:()=>Cc,getSpacingBasedOnRatio:()=>qt,getSpacingByKey:()=>Ee,getTheme:()=>gc,getTimingByKey:()=>dt,getTimingFunction:()=>Pt,runThroughMedia:()=>vg,setColor:()=>dn,setFont:()=>bc,setFontFamily:()=>fi,setGradient:()=>pn,setMediaTheme:()=>yc,setSVG:()=>di,setShadow:()=>hn,setSvgIcon:()=>Tc,setTheme:()=>mc,splitSpacedValue:()=>kc});I();var de=(e,t,r)=>{let n=r||P();if(!C(e)){n.verbose&&console.warn(e,\"- type for color is not valid\");return}if(xe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if($(e))[o,s,i]=e;else{let d=Er(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=ln(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||P();if(t||(t=n.globalTheme===\"auto\"?null:n.globalTheme),!C(e)){n.verbose&&console.warn(e,\"- type for color is not valid\");return}if(xe(e))return`var(${e})`;let o;if($(e))o=e[0];else{let c=Er(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 de(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return de(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]=de(e,u,r)}return c}}else return n.verbose&&console.warn(\"Can't find color\",e),e},dn=(e,t,r)=>{let n=P();if(C(e)&&xe(e)){let g=e.slice(2);if(e=de(g),!(e.includes(\"rgb\")||e.includes(\"var\")||e.includes(\"#\"))){let m=g.split(\" \"),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(C(y)||$(y)||_(y))&&(n.color[m[0]]=dn(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=ln(b,v)),e=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:\"1\";if(b)try{let v=rr(m[0]);v&&v.length>=3?e=`rgba(${ln(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]=dn(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),S=g[v],O=S&&(S.value||S);!O||typeof O!=\"string\"||(x[w]=O,(w===\"light\"||b===void 0)&&(b=O))}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 S=`@media (prefers-color-scheme: ${v})`;n.cssMediaVars[S]||(n.cssMediaVars[S]={}),n.cssMediaVars[S][y]=x[v]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${t}`+(r?`-${r}`:\"\"),i=e.value||e;if(C(i)&&i.includes(\".\")&&!i.includes(\"(\")){let[g,m]=i.split(\".\"),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat(\"0.\"+m)||1})`)}if(C(i)&&!i.includes(\"(\")&&!i.startsWith(\"#\")){let g=Er(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(C(m)||$(m)||_(m))&&(n.color[g.name]=dn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=ln(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=rr(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}},pn=(e,t,r)=>{let n=P();if(C(e)&&xe(e)&&(e=de(e.slice(2))),$(e))return{\"@light\":pn(e[0],t,\"light\"),\"@dark\":pn(e[0],t,\"dark\")};if(_(e)){let i={};for(let a in e)i[a]=pn(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 Y2=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\"]),y_=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],Z2=e=>{for(let t=0;t<y_.length;t++)if(e.includes(y_[t]))return!0;return!1},hc=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?de(e[a]):e[a]}),t},ui=e=>(e.value||(e.value=hc(e)),e.value),gc=(e,t)=>{let r=P();if(r.useVariable)return Tt(e,t);let n=r.theme;if(C(e)){let[o,s]=e.split(\" \"),i=n[o];if(i){if(!s&&!t)return ui(i);e=[o,s||t]}}if(Q(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return ui(a[s]);if(i&&i[s])return ui(i[s]);if(l&&l[s])return ui(l[s])}else if(_(e))return hc(e)},J2=(e,t,r)=>{if(_(t))e.variants.inverse.value=hc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},Q2=(e,t,r,n)=>{let o=gc(r);n[`&:${t}`]=o,_(r)&&!r.value&&(r.value=o)},e$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return Q2(e,o,s,t),e}),e):void 0},t$=(e,t,r,n)=>{let o=gc(r);n[`@media (prefers-color-scheme: ${t})`]=o,_(r)&&!r.value&&(r.value=o)},r$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o===\"dark\"||o===\"light\")&&t$(e,o,s,t),o===\"inverse\"&&J2(e,s,t),e}),e):void 0},n$=(e,t)=>{let r=P(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return C(i)?n[s]=r.theme[i]:ui(n[s]),e}),e):void 0},mc=(e,t)=>{let r=P();if(r.useVariable)return yc(e,t);let{state:n,media:o,helpers:s}=e,i=hc(e,t),l=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${t}`;return e$(e,i),r$(e,i),n$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var bg=(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===\":\")&&Z2(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=de(f,`@${d}`);p!==void 0&&C(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!Y2.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>Q(f?.[c]));if(u===\".\"&&d){let f=c.slice(1),p={};for(let h in e)Q(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=bg(p,`${t}-${f}`,r)}else if(u===\":\"&&d){let f=c.replace(/^:+/,\"\"),p={};for(let h in e)Q(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=bg(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=de(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},yc=(e,t,r,n)=>{let o=P(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(Q(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith(\"@\")&&Q(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=bg(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]=yc(u,t,l,n||d)}else if(!a){let d=de(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?\"-\"+f.join(\"-\"):\"\",g=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=d),i[l]=`var(${g})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(C(e)&&xe(e)){let c=o.theme[e.slice(2)];return Tt(c,n)}return i},xg=e=>{let t=P(),r={};for(let n in e){let o=n.slice(0,1);if(Q(e[n])){if(o===\"@\")continue;o===\":\"?r[`&${n}`]=xg(e[n]):o===\".\"&&(r[`&${n}`]=xg(e[n]))}else r[n]=e[n]}return r},x_=(e,t)=>{let r=t.shift();return e[r]?x_(e[r],t):e},b_=(e,t)=>$(t)?x_(e,t):C(t)&&e[t]?e[t]:e;var Tt=(e,t)=>{let r=P();if(C(e)&&xe(e)&&(e=Tt(e.slice(2))),!e||!C(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=$(e)?e:e.split(\" \"),s=r.theme[n];return s&&o.length?s=b_(s,o):s&&t&&(s=b_(s,t)),xg(s)};I();I();var bc=(e,t)=>{let r=P(),n=`--font-${t}`;if(!e||$(e)&&!e[0])return;let o;if(e.isVariable){let s=Ot(e.url,r.files)||e.url;si(s)?o=ii(s):o=cn(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\"})}else if(e[0])o=eo(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Ot(i,r.files)||i):Ot(e.url,r.files)||e.url;o=cn(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},xc=(e,t)=>{let r=P(),{fontFamily:n}=r;return Qn(t||n,e)},fi=(e,t)=>{let r=P(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),_(s)&&(s=sn(s));let a=`--font-family-${t}`,l=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};I();var vg=e=>{let t=P(),{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;ge(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){ge(i,{sequence:{},scales:{},vars:{}}),ft(i),un(e,o);continue}ge(i,{sequence:{},scales:{},templates:{},vars:{}}),ft(i),un(e,o)}},wg=e=>{let t=P();if(e.h1Matches){let r=e.unit,n=fc(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}}}},vc=()=>{let e=P(),{typography:t}=e;ft(t),wg(t),Pr(t),vg(t)},wc=e=>{let t=P(),{typography:r}=t;return ir(e,\"fontSize\",r)};I();I();var o$=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;ge(r,{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),ft(r),un(e,t)}},_c=e=>{let t=e.toLowerCase(),r=t.includes(\"width\")||t.includes(\"height\"),n=t.includes(\"border\")||t.includes(\"outline\");return r&&!n},Sc=()=>{let e=P(),{spacing:t}=e;ft(t),Pr(t),o$(t)},s$=e=>{let t=P(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:ft(e)},Ee=(e,t=\"padding\",r,n)=>{let o=s$(r);if(C(e)&&!n&&e.includes(\"(\")){let i=Tr(e);n=i[0],e=i[1]}let s=n?[e]:sn(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)=>ir(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return ir(e,t,o,n)}},qt=(e,t,r,n)=>{let o=P(),{spacing:s}=o,i=r||e[t];if(!n&&C(i)&&i.includes(\"(\")){let a=Tr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Ee(i,t,a,n)}return Ee(i,t,s,n)},kc=e=>{let t=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=jn.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 hn=(e,t,r,n)=>{let o=P();if($(e))return{\"@light\":hn(e[0],t,\"light\"),\"@dark\":hn(e[1],t,\"dark\")};if(_(e)){let a={};for(let l in e)a[l]=hn(e[l],t,l.startsWith(\"@\")?l.slice(1):l);return a}C(e)&&!Ht.test(e)&&(e=an(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=de(l);if(nr(c))return c;if(/^\\d/.test(l)||l===\"0\"||l.includes(\"px\")||l.slice(-2)===\"em\"||l===\"inset\"||l===\"none\")return l;let u=Ee(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}},Cc=(e,t)=>{let r=P();if(t||(t=r.globalTheme),!C(e)){r.verbose&&console.warn(e,\"- type for color is not valid\");return}if(xe(e))return`var(${e})`;let[n]=$(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 Ac=()=>{let e=P(),{timing:t}=e;ft(t),Pr(t)},Pt=e=>{let t=P(),{timing:r}=t;return r[e]||r[ei(e)]||e},dt=(e,t=\"timing\")=>{let r=P(),{timing:n}=r;return ir(e,t,n)};I();var Ec=()=>{let e=P(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ge(t,{theme:n.document,fontFamily:Qn(r),fontSize:o.base,lineHeight:o.lineHeight})};I();var Sg={document:ce},di=(e,t)=>{let r=P();if(!e){r.verbose&&console.warn(\"setSVG: val is not defined\",t);return}return r.useSvgSprite?pc(t,e):e},Oc=(e,t=Sg)=>{let r=P(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];w_(n,t)},Tc=(e,t)=>{let r=P();return r.useIconSprite&&!r.semanticIcons?.[t]?di(e,t):e},Pc=(e,t=Sg)=>{let r=P(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];w_(n,t)},_g=(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},i$=(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},v_=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},w_=(e,t=Sg)=>{let r=P(),n=t.document||ce;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),ci(e);let o=n.querySelector(\"#svgSprite\"),s=ci(e),i=`<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute\" id=\"svgSprite\">${s}</svg>`,a=i$(n,s);if(o)if(a)v_(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML(\"beforeend\",s);else{let l=_g(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=_g(n);l&&l.nodeType&&(v_(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML(\"afterbegin\",i);else{let l=_g(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};I();var Rc=(e={})=>{let t=P(),{reset:r,typography:n,document:o}=t;if(r){if(r[\":root\"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Tt(\"document\"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Tt(\"document\"):{};if(r.html&&Ke(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!==\"@\")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m=\"@media \"+(g===\"print\"?g:\"screen and \"+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return ae(ge(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 a$=new Set([\"none\",\"hidden\",\"dotted\",\"dashed\",\"solid\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\"]),l$=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),c$=e=>a$.has(e),ar=e=>{let t=e+\"\";if(Ht.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(c$(o)||/^\\d/.test(o)||o===\"0\")return o;let s=de(o);if(nr(s))return s;let i=Ee(o,\"border\");return i&&i.border?i.border:o}).join(\" \")},kg=e=>Ht.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=de(t);return nr(r)?r:t}).join(\" \"),Cg=(e,t)=>Cc(e,t),$c=(e,t)=>Ht.test(e)?e:an(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=de(n);if(nr(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=Ee(n,\"shadow\");return s&&s.shadow?s.shadow:n}).join(\" \"):\"\")).join(\", \"),Ic=(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=an(o).map(l=>(l=l.trim(),l.split(/\\s+/).map(u=>{if(!u||/^\\d/.test(u)||u===\"0\"||l$.has(u)||u===\"transparent\"||Ht.test(u))return u;let d=de(u);return nr(d)?d:u}).join(\" \")));return n+a.join(\", \")+s},Ag=(e,t)=>{let r=P();return e.split(\", \").map(n=>xe(n)?`var(${n})`:n.includes(\"url\")?n:n.includes(\"gradient\")?Ic(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes(\"/\")||n.startsWith(\"http\")||n.includes(\".\")&&!Er(n)?`url(${n})`:n).join(\" \")},Eg=e=>C(e)&&e.split(\" \").map(t=>Ee(t,\"gap\").gap).join(\" \"),__=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},jc=(e,t,r)=>{if(C(e))return e.split(\",\").map(n=>dt(n).timing||n).join(\",\")},Og=e=>{let t=e.split(\",\");if(t.length)return t.map(__).join(\",\")};function ve(e,t,r={},n={}){let o=le.call(this,t||r[e]);if(o==null)return;let s;if(C(o)){if(o.includes(\"(\")){let l=Tr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=_c(e);!i&&a&&!n.ratio&&(o=kc(o))}return n.ratio?qt(r,e,o,s):Ee(o,e,void 0,s)}var ee=(e,t=null,r)=>ve(e,t,r,{ratio:!0}),Fc=(e,t,r)=>{if(C(e))return{borderRadius:e.split(\" \").map((n,o)=>qt(t,r,n)[r]).join(\" \")}};I();var u$=(e,t)=>{let r=P(),{cssVars:n}=r,o=t.startsWith(\"--\")?t:`--${t}`;return n[o]=e,e},pt=e=>e,Tg={color:dn,gradient:pn,font:bc,fontFamily:fi,fontfamily:fi,theme:mc,icons:Tc,semanticIcons:pt,semanticicons:pt,svg:di,svgData:pt,typography:pt,shadow:hn,spacing:pt,media:pt,grid:pt,class:pt,timing:pt,reset:pt,unit:pt,animation:pt,vars:u$},S_=(e,t,r)=>{let n=P(),o=oc(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=Tg[o]||Tg[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\")},k_=(e,t)=>{let r=P(),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 S_(n,t[s],s)}catch(i){r.verbose&&console.warn(\"Error setting\",n,\"value\",t[s],s,i)}}),r[n]||r[e]},Pg=(e,t)=>{let r=t||P();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},f$={},to=(e,t=f$)=>{let r=t.config||P(),{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=dg(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 D=z=>{w.setAttribute(\"data-theme\",z.matches?\"dark\":\"light\")},te=v.matchMedia(\"(prefers-color-scheme: dark)\");if(D(te),w.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=D;try{te.addEventListener(\"change\",D)}catch{te.addListener(D)}}}else w.setAttribute(\"data-theme\",\"light\"),w.style.colorScheme=\"light\";r.__svgCache||(r.__svgCache={});let S=Object.keys(y),O=new Set(S);if(S.forEach(k=>{let D=k.toLowerCase();D!==k&&O.has(D)&&ae(y[D],y[k])}),S.map(k=>{let D=k.toLowerCase();if(!(D!==k&&O.has(D)))return k_(k,y[k])}),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{vc()}catch(k){r.verbose&&console.warn(\"Error applying typography sequence\",k)}if(y.spacing)try{Sc()}catch(k){r.verbose&&console.warn(\"Error applying spacing sequence\",k)}if(y.timing)try{Ac()}catch(k){r.verbose&&console.warn(\"Error applying timing sequence\",k)}Ec();let T=Rc();return T&&(r.reset=T),r};var ro=new Map,d$=null,$g=null,p$=null;function Lc(e){e.batchAtomicCss&&($g=e.batchAtomicCss),e.compoundCssClass&&(p$=e.compoundCssClass)}var h$=new Set;function O_(e){try{let t=P();t&&(t.document=e)}catch{}e&&h$.add(e)}function Ig(){try{let e=P();if(e?.document)return e.document}catch{}return typeof document<\"u\"?document:null}var g$={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 gn(e){return e.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}function Dc(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 m$(e){let t=String(e);return t.length<=20?t.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():Dc(t)}function C_(e,t,r){let n=(r?r+\"\u0001\":\"\")+e+\":\"+t,o=ro.get(n),s=o?null:gn(e);if(!o){let a=g$[e]||Dc(e),l=m$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,ro.set(n,o)}if(typeof t==\"string\"&&(t.indexOf(\"}\")!==-1||t.indexOf(\"{\")!==-1))return o;let i=`.${o}{${s||gn(e)}:${t}}`;return ht(i),o}var A_=new WeakMap;function ht(e,t){let r=T_(t);if(!r)return;let n=A_.get(r);if(n||(n=new Set,A_.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var E_=new WeakMap;function T_(e){let t=e||Ig();if(!t||!t.head)return null;let r=E_.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 E_.set(t,o),d$=o,o}var y$=8;function Rr(e,t,r){if(!e||typeof e!=\"object\")return\"\";let n=null,o=0,s=[];for(let i in e){let a=e[i];a==null||a===!1||a===\"\"||(typeof a==\"object\"?s.push(b$(i,a,r)):$g?(n||(n=[]),n.push(i,String(a)),o++):s.push(C_(i,String(a),r)))}if(n&&o>=y$){let i=n.join(\"\\0\"),a=$g(i),l=a.indexOf(\"\\0\"),c=a.substring(0,l),u=a.substring(l+1);if(u){let d=u.split(`\n`);for(let f=0;f<d.length;f++)d[f]&&ht(d[f])}if(s.length>0)s.push(c);else return c}else if(n)for(let i=0;i<n.length;i+=2)s.push(C_(n[i],n[i+1],r));return s.join(\" \")}var Rg=new Map;function b$(e,t,r){let n=(r?r+\"\u0001\":\"\")+e+JSON.stringify(t),o=ro.get(n);if(o){let f=Rg.get(o);if(f)for(let p=0;p<f.length;p++)ht(f[p]);return o}o=r?`_${r}_c${Dc(n)}`:`_c${Dc(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+=`${gn(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 Rg.set(o,u),ro.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 Rg.set(o,u),ro.set(n,o),o}function we(e){if(T_(),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:gn(l);a+=`${c}:${i[l]};`}ht(`${n}{${s}{${a}}}`)}else{let a=s.startsWith(\"--\")?s:gn(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:gn(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)we({[`${n} ${c}`]:o[c]});for(let c of a)we({[c]:{[n]:o[c]}})}}}}function hi(e,t){let r=\"\";for(let n in t){let o=\"\";for(let s in t[n])o+=`${gn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ht(`@keyframes ${e}{${r}}`),e}function P_(){return ro.size}I();var jg=\"http://www.w3.org/2000/svg\",yi=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\"]),x$=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 gi(e){return x$.has(e)||yi.has(e)}function bi(e){return yi.has(e)}function mn(e){let{tag:t,key:r}=e;if(typeof t==\"function\"&&(t=t(e)),t===!0&&(t=r),typeof t==\"string\"&&gi(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]),gi(o)&&!n.has(o)?o:\"div\"}var R_={};function mi(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(bi(e)){let n=t?.parent;if(e===\"svg\"||n?.node?.namespaceURI===jg)return r.createElementNS(jg,e);if(e!==\"svg\")return r.createElement(\"div\")}return r.createElement(e)}function yn(e){let t=e.tag=mn(e),n=bi(t)&&(t===\"svg\"||e.parent?.node?.namespaceURI===jg)?\"svg:\"+t:t,o=e?.context?.document||globalThis.document,s=R_[n];if(s||(s=R_[n]=mi(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?mi(t,e):s.cloneNode(!0);return t===\"string\"&&(i.nodeValue=e.text||\"\"),i}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\"]),Fg={text:\"text\",html:\"html\",style:\"style\",attr:\"attr\",data:\"data\",classlist:\"classlist\",state:\"state\",scope:\"scope\"},bn=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\"]),$_=new Set([\"wheel\",\"mousewheel\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\"]),xi=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 Dg=new WeakMap,v$={passive:!0},w$={passive:!0,capture:!0},Lg=(e,t)=>$_.has(e)?t?w$:v$:t||!1;function j_(e){let t=Dg.get(e);return t||(t={handlers:new Map,installed:new Set},Dg.set(e,t)),t}function _$(e,t){let r=j_(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}},Lg(e,n))}function Mc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=j_(n);_$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Nc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Dg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function I_(e){return xi.has(e)&&!bn.has(e)}function vi(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Ie(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&&$e()});return}}catch(l){if(t.error=l,console.error(\"[DOMQL] Event error:\",l),o?.strictMode)throw l}s&&$e()};if(I_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Mc(e,n,i,a)}else n.addEventListener(e,i,Lg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(I_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Nc(e,n,a)}else n.removeEventListener(e,i,Lg(e,!1))})}function F_(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 wi(e,t,r){let n=F_(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=D_(n[i],s);a&&a!==t&&L_(e,a,r,new Set([t]))}}function D_(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 L_(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=F_(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=D_(o[a],i);l&&L_(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]=M_(e[s],i):e[s]=i}}function M_(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]=M_(o,s):r[n]=s}return r}var _i=(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};function Si(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(yr(()=>{if(e.state&&Fe(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&&Rt(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 _i(\"update\",r),!t.preventListeners&&typeof r.onUpdate==\"function\"&&r.onUpdate(r,r.state,r.context,t),r}}function xn(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&&xn(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 ki(){xn(this)}I();I();var S$=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],k$=[\"none\",\"forwards\",\"backwards\",\"both\"],C$=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],A$=[\"running\",\"paused\"],E$=e=>/^[\\d.]+m?s$/.test(e),O$=0,Mg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(_(e)){let o=`smbls-anim-${O$++}`;return{animationName:hi(o,e)}}let n=r&&r[e];return _(n)?hi(e,n):e},T$=(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:E$(d)?s.push(d):S$.includes(d)||d.startsWith(\"cubic-bezier\")||d.startsWith(\"steps(\")?i=d:d===\"infinite\"||/^\\d+$/.test(d)?a=d===\"infinite\"?d:Number(d):C$.includes(d)?l=d:k$.includes(d)?c=d:A$.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},Ng={animation:(e,t)=>{if(C(e)&&e.includes(\" \")){let r=T$(e,t);return{animationName:Mg(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:Mg(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:Mg(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 Bg={show:e=>e?void 0:{display:\"none !important\"},hide:e=>e?{display:\"none !important\"}:void 0,height:(e,t)=>ee(\"height\",e,t),width:(e,t)=>ee(\"width\",e,t),boxSizing:e=>Pe(e)?{boxSizing:\"border-box\"}:{boxSizing:e},boxSize:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"height\",t),...ve(\"width\",r||t)}},inlineSize:(e,t)=>ee(\"inlineSize\",e,t),blockSize:(e,t)=>ee(\"blockSize\",e,t),minWidth:(e,t)=>ee(\"minWidth\",e,t),maxWidth:(e,t)=>ee(\"maxWidth\",e,t),widthRange:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"minWidth\",t),...ve(\"maxWidth\",r||t)}},minHeight:(e,t)=>ee(\"minHeight\",e,t),maxHeight:(e,t)=>ee(\"maxHeight\",e,t),heightRange:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"minHeight\",t),...ve(\"maxHeight\",r||t)}},size:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ee(\"inlineSize\",t),...ee(\"blockSize\",r||t)}},minBlockSize:(e,t)=>ee(\"minBlockSize\",e,t),minInlineSize:(e,t)=>ee(\"minInlineSize\",e,t),maxBlockSize:(e,t)=>ee(\"maxBlockSize\",e,t),maxInlineSize:(e,t)=>ee(\"maxInlineSize\",e,t),minSize:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"minInlineSize\",t),...ve(\"minBlockSize\",r||t)}},maxSize:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"maxInlineSize\",t),...ve(\"maxBlockSize\",r||t)}},borderWidth:(e,t)=>ee(\"borderWidth\",e,t),padding:(e,t)=>ee(\"padding\",e,t),scrollPadding:(e,t)=>ee(\"scrollPadding\",e,t),paddingInline:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"paddingInlineStart\",t),...ve(\"paddingInlineEnd\",r||t)}},paddingBlock:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"paddingBlockStart\",t),...ve(\"paddingBlockEnd\",r||t)}},paddingTop:(e,t)=>ee(\"paddingBlockStart\",e,t),paddingBottom:(e,t)=>ee(\"paddingBlockEnd\",e,t),paddingLeft:(e,t)=>ee(\"paddingInlineStart\",e,t),paddingRight:(e,t)=>ee(\"paddingInlineEnd\",e,t),paddingBlockStart:(e,t)=>ee(\"paddingBlockStart\",e,t),paddingBlockEnd:(e,t)=>ee(\"paddingBlockEnd\",e,t),paddingInlineStart:(e,t)=>ee(\"paddingInlineStart\",e,t),paddingInlineEnd:(e,t)=>ee(\"paddingInlineEnd\",e,t),margin:(e,t)=>ee(\"margin\",e,t),marginInline:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"marginInlineStart\",t),...ve(\"marginInlineEnd\",r||t)}},marginBlock:(e,t)=>{if(!C(t.marginBlock))return;let[r,n]=t.marginBlock.split(\" \");return{...ve(\"marginBlockStart\",r),...ve(\"marginBlockEnd\",n||r)}},marginTop:(e,t)=>ee(\"marginBlockStart\",e,t),marginBottom:(e,t)=>ee(\"marginBlockEnd\",e,t),marginLeft:(e,t)=>ee(\"marginInlineStart\",e,t),marginRight:(e,t)=>ee(\"marginInlineEnd\",e,t),marginInlineStart:(e,t)=>ee(\"marginInlineStart\",e,t),marginInlineEnd:(e,t)=>ee(\"marginInlineEnd\",e,t),marginBlockStart:(e,t)=>ee(\"marginBlockStart\",e,t),marginBlockEnd:(e,t)=>ee(\"marginBlockEnd\",e,t),gap:e=>({gap:Eg(e)}),columnGap:(e,t)=>qt(t,\"columnGap\",e),rowGap:(e,t)=>qt(t,\"rowGap\",e),flexWrap:e=>({display:\"flex\",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},flexAlign:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{display:\"flex\",alignItems:t,justifyContent:r}},round:(e,t)=>Fc(e??t.borderRadius,t,\"round\"),borderRadius:(e,t)=>Fc(e??t.round,t,\"borderRadius\")};var Vg={fontSize:e=>wc(e)||e,fontFamily:e=>({fontFamily:xc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'\"wght\" '+e})};var zg={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 Wg={inset:(e,t)=>{if(t.call(\"isNumber\",e))return{inset:e};if(t.call(\"isString\",e))return{inset:e.split(\" \").map(r=>Ee(r,\"k\").k).join(\" \")}},left:e=>Ee(e,\"left\"),top:e=>Ee(e,\"top\"),right:e=>Ee(e,\"right\"),bottom:e=>Ee(e,\"bottom\"),verticalInset:e=>{if(typeof e!=\"string\")return;let t=e.split(\" \").map(r=>Ee(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=>Ee(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},Ug={theme:(e,t)=>{if(e)return t.themeModifier?Tt(e,`@${t.themeModifier}`):Tt(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 C(e)&&e.includes(\"gradient\")?{background:Ic(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:Ag(e,o)}},textStroke:e=>({WebkitTextStroke:kg(e)}),outline:e=>({outline:ar(e)}),outlineOffset:(e,t)=>ee(\"outlineOffset\",e,t),border:e=>({border:ar(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:ar(e)}),borderTop:e=>({borderTop:ar(e)}),borderRight:e=>({borderRight:ar(e)}),borderBottom:e=>({borderBottom:ar(e)}),shadow:(e,t)=>{let r=gt(t);if(e)return{boxShadow:Cg(e,r)}},boxShadow:(e,t)=>{if(!C(e))return;let[r,n]=e.split(\"!importan\"),o=gt(t),s=n?\" !important\":\"\";return{boxShadow:$c(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:$c(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:ar(e)})};var Ci={transition:e=>({transition:Og(e)}),transitionDuration:e=>({transitionDuration:jc(e)}),transitionDelay:e=>({transitionDelay:jc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Pt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};I();var Hg={flow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},wrap:(e,t)=>({display:\"flex\",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}};var qg={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 _e={...Ng,...Bg,...Vg,...zg,...Wg,...Ug,...Ci,...Hg,...qg};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 P$=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,R$=(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(P$),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},N_=(e,t,r)=>({[e]:tt(t,r)}),Ai=(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}},Gg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return E(r)?r.call(t,t):!!r},$$=(e,t,r)=>{let n=e.slice(1),o=Gg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return tt(t,r)},I$=(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=Gg(n,r);s!==void 0&&(o=s)}if(o)return tt(t,r)},F$=(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=Gg(n,r);s!==void 0&&(o=s)}if(!o)return tt(t,r)},Kg=(e,t)=>tt(e,t),Xg={\"@\":R$,\":\":Ai,\"[\":Ai,\"*\":Ai,\"+\":Ai,\"~\":Ai,\"&\":N_,\">\":N_,$:$$,\"-\":I$,\".\":j$,\"!\":F$};var Yg=vr(),B_=(e,t,r)=>{let n=t?.context?.designSystem;n&&Ie(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)=>ge(f,u[p]),{});o.designSystemClass=d}}else if(a===\"true\"){let c=le(l,t);ge(o,Kg(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=E(c)?c(t,t.state,t.context):c;u&&i(a,u),!Yg&&_(o[a])&&(o[a].label=a)}else if(_e[a]){let c=le(l,t);$(c)&&(c=c.reduce((d,f)=>ge(d,f),{}));let u=_e[a](c,t,t.state,t.context);$(u)&&(u=u.reduce((d,f)=>ge(d,f),{})),u&&i(a,u),!Yg&&_(o[a])&&(o[a].label=a)}else if(Le.has(a)){let c=le(l,t);typeof c==\"string\"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!Yg&&_(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&$e()}},V_=(e,t)=>{let r={};for(let n in e){let o=Xg[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]=B_(e,t,r),s=V_(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return ls(n,s);n._selectors=s}return n},D$=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};I();var z_=e=>{if(_(e))return tt(e,e)},L$=(e,t)=>{let r=z_(e);return typeof t==\"function\"?t(r):Rr(r)};I();function H_(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 M$(...e){return H_(this,\"warn\",e),qs.apply(this,e)}function N$(...e){return H_(this,\"error\",e),on.apply(this,e)}var W_={update:Si,remove:ki,getDB:Ys,getQuery:Zs,getRootData:Ws,getChildren:Ms,getPath:Ns,nextElement:Gs,previousElement:Ks,verbose:Kn,warn:M$,error:N$,variables:Xs,spotByPath:Ls,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,\"content\",t)}},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:zs,getRootState:Vs,getRootContext:Us,getContext:Hs,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)}},U_=new WeakMap;function B$(e){if(!e)return W_;let t=U_.get(e);if(t)return t;t=Object.create(W_);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return U_.set(e,t),t}function Ei(e){let t=B$(e.context);Object.setPrototypeOf(e,t)}I();var V$=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},mt=(e,t)=>{if(Fe(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&&Fe(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&&Fe(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\"&&V$(t,o,n[o])};var q_=function(e,t,r){return e.state=Jg(e,t,r),e.state},Jg=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\",z$(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\"&&!Fe(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 Fe(o)?(o.__element=e,o):t?.state||{}};function Zg(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 z$(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?Zg(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?Zg(o,s):o??{}}let n=Zg(r.state,e);if(n&&typeof n==\"object\"&&!Fe(n)&&!Object.getOwnPropertyDescriptor(n,\"root\")){let o=r.state?.root||r.state;Object.defineProperty(n,\"root\",{get:()=>o,enumerable:!1,configurable:!0})}return n}I();var W$=[\"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\"],Bc={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\"]},K_=[\"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\"],tm=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,Ir=(e,t)=>t.startsWith(\"aria-\")||t.startsWith(\"data-\")||tm(t)||Bc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Bc,e)?Bc[e].includes(t):!1,rm=e=>{if(!C(e))return!1;let t=e.toLowerCase();return K_.includes(t)},U$=(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=Ir(e,o),i=rm(o);if(qe(t[o])&&(s||i)){let a=tm(o)||o;n[a]=t[o]}}return n},H$=(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},$r=(e,t)=>{let r=e.call(\"exec\",t,e);if(r)return C(r)&&r.includes(\"{{\")&&(r=e.call(\"replaceLiteralsWithObjectFields\",r)),r},Qg=(e,t)=>{let r=(e.preSrc||\"\")+($r(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},em={src:e=>Qg(e,e.src),href:e=>$r(e,e.href),action:e=>$r(e,e.action),poster:e=>Qg(e,e.poster),data:e=>$r(e,e.data)},nm=e=>{let t=e.tag||\"div\",r={};for(let n in em)if(e[n]!==void 0&&Ir(t,n)){let o=em[n](e);o!==void 0&&(r[n]=o)}return r},G_=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return E(r)?r.call(t,t):!!r},q$=(e,t,r)=>{if(e===\"$\"){let o=G_(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=G_(t,r);o!==void 0&&(n=o)}return e===\".\"?!!n:!n},G$=new Set([\"$\",\".\",\"!\"]),K$=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(q$(a,l,u))return E(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!G$.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=Ir(t,c),d=rm(c);if(!u&&!d)continue;let f=tm(c)||c;o(f,a[c],i,l)}}return n};var X$=1;function oo(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function Y$(e){return e.charAt(2).toLowerCase()+e.slice(3)}function Z$(e){return e.toLowerCase()}function im(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]=im(o,s):r[n]=s}return r}function Rt(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||`_${X$++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=Rt);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})}}wi(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]=im(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]=im(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?Object.create(f):null);if(e.scope!==void 0||u){let g=p?Object.create(p):{};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=g}else p&&(s.scope=Object.create(p));if(e.if!==void 0&&(s.if=e.if),Ei(s),J$(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\"&&am(s,{if:e.if}),s;s.tag||(s.tag=mn(s)),jr(\"Init\",s,n);let h=s.node=yn(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),am(s,e),lm(s),Y_(s),Z_(s,n);try{J_(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?`\n`+g.stack.split(`\n`).slice(0,6).join(`\n`):\"\")}}if(fm(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)try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!=\"function\"&&(s.node.innerHTML=g)}catch{}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&&Ie(m);try{g(s,s.state,s.context)}catch(b){console.error(\"[DOMQL] onFrame error:\",b)}finally{m&&$e()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function J$(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&&!Fe(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=Fe(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=X_(i,t),e.state&&typeof e.state==\"object\"&&!Fe(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 om(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 X_(e,t){if(!t)return{};if(e===\".\")return t.state||{};if(e.startsWith(\"../\")){let o=e.slice(3);return o?om(t.state,o):t.state??{}}if(e.startsWith(\"~/\")){let o=t.state?.root||t.state,s=e.slice(2);return s?om(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=om(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 Q$(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||oo(a)||_e[a]||Le&&Le.has(a)||Ir(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&&Ie(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&$e()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function am(e,t){let r=e.__ref;if(Q$(e),typeof e.text==\"function\"){let o=e.text,s=Ae(()=>{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=Yr.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=Ae(()=>{let i=Yr.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)&&!oo(o)&&!r.__exec[o]){if(_e[o]){let s=e[o],i=o,a=Ae(()=>{let l=e.context?.designSystem;l&&Ie(l);try{let c=s(e,e.state,e.context),u=_e[i](c,e,e.state,e.context);u&&e.node?no(e.node,u):e.node&&(i===\"show\"||i===\"hide\")&&(e.node.style.display=\"\")}finally{l&&$e()}},{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=Ae(()=>{let l=e.context?.designSystem;l&&Ie(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?no(e.node,{[i]:c}):e.node.style[i]=\"\")}finally{l&&$e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html==\"function\"){let o=t.html,s=Ae(()=>{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!=\"function\"&&(e.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value==\"function\"){let o=t.value,s=Ae(()=>{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=Ae(()=>{let i=o(e,e.state,e.context);no(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=Ae(()=>{try{let a=s(e,e.state,e.context);e.node&&no(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=Ae(()=>{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=Ae(()=>{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=Ae(()=>{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=Ae(()=>{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=Ae(()=>{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=yn(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 fm(e,e.parent);lm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=mn(e)),jr(\"Init\",e,{}),e.node||(e.node=yn(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{am(e,t)}finally{t.if=l}lm(e),Y_(e),Z_(e,{}),J_(e,{}),fm(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||oo(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||\"div\";if(Ir(a,o)&&!_e[o]&&!(Le&&Le.has(o))){let l=o,c=Ae(()=>{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)}}rI(e)}function lm(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),nI(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\"&&no(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 no(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&&tI(e,r)}var eI=0;function tI(e,t){let r=`_ds${eI++}`;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} }\n`}else u+=`${f.replace(/[A-Z]/g,h=>\"-\"+h.toLowerCase())}: ${p};`}u&&(s+=`${l} { ${u} }\n`),d&&(s+=d)}}s&&(o.textContent+=s)}function rI(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&&Ie(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(_e[m]){let b=_e[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?(no(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&&$e()}};t.__conditionalRunners.push(l);let c=Ae(l,{depth:t.path.length});t.__effects.push(c)}}var sm=new WeakSet;function nI(e){let{node:t}=e;if(!t)return;if(sm.has(e)){console.error(\"[applyCssInProps] re-entry detected for element\",e.key,\"prop path:\",e.__ref?.path);return}sm.add(e);let r=e.context?.designSystem;r&&Ie(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)&&!oo(s)){if(_e[s]){let a=e[s],l=_e[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(_e[c]){let d=_e[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(_e[m]){let y=_e[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=Rr(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&&$e(),sm.delete(e)}}function Y_(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=nm(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)&&!oo(o)&&!(_e[o]||Le&&Le.has(o))&&Ir(n,o)){let i=e[o];if(i==null||i===!1||(typeof i==\"string\"&&i.includes(\"{{\")&&(i=Yr(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 Z_(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!oo(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=Y$(r);bn.has(o)||vi(Z$(o),e,n)}}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 um(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=cm(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=Rt(c,e,f,r);p?.node&&s.appendChild(p.node)}e.node.appendChild(s);return}if(typeof t==\"string\"){let o=X_(t,e);if(Array.isArray(o)){um(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=cm(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};Rt(s,e,o,r)}}}function J_(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=Ae(()=>{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 v=0;v<u.length;v++){let w=u[v],S=p;if(typeof p==\"function\")try{S=p(e,w)}catch{S=null}let O=S&&S.key||w&&w.key||`${v}`;h.push(O),g.set(O,{rawChild:w,childProps:S})}let m=new Set(h);for(let v=a.__children.length-1;v>=0;v--){let w=a.__children[v];if(!m.has(w)){let S=e[w];S?.remove&&S.remove(),delete e[w],a.__children.splice(v,1)}}let y=e.childExtends,x=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let w=g.get(v),S=w.rawChild,O=e[v];if(O&&O.state){if(S&&typeof S==\"object\"){let z=O.state;if(typeof z.replace==\"function\")z.replace(S);else if(typeof z.update==\"function\"){for(let N in z)if(!(N===\"__element\"||N===\"root\"||N===\"parent\"||N===\"update\")&&!Object.prototype.hasOwnProperty.call(S,N))try{z[N]=void 0}catch{}z.update(S)}else for(let N in S)z[N]=S[N]}continue}let T=S;(typeof S==\"string\"||typeof S==\"number\")&&(T={value:S,text:S});let k=w.childProps,D=k?{...k,state:T}:{state:T};if(y&&!D.ignoreChildExtends)if(D.extends){let z=Array.isArray(D.extends)?D.extends:[D.extends],N=Array.isArray(y)?y:[y];D={...D,extends:[...N,...z]}}else D={extends:y,...D};let te=Rt(D,e,v,t);te?.node&&x&&x.appendChild(te.node)}x&&x.childNodes.length&&e.node&&e.node.appendChild(x),a.__children=h;return}for(let p of[...a.__children]){let h=e[p];h?.remove&&h.remove(),delete e[p]}a.__children=[],um(e,u,t)},{depth:a.path.length});a.__effects.push(c)}if(um(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};Rt(l,e,i,t)}}}function fm(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&&_i(n,t,r);let o=\"on\"+e,s=t[o];if(typeof s==\"function\"){let i=t.context?.designSystem;i&&Ie(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&_i(\"error\",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,a),t.context?.strictMode)throw a}finally{i&&$e()}}return!0}var Q_={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\"]},eS={\"gradient-blue-light\":`linear-gradient(to right,\n rgba(4, 116, 242, 1),\n rgba(0, 48, 103, 1)\n )`,\"gradient-blue-dark\":`linear-gradient(to right,\n #0474F2,\n #003067\n )`,\"gradient-dark\":`linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )`,\"gradient-dark-active\":`linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )`,\"gradient-light\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )`,\"gradient-light-active\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )`,\"gradient-colorful\":`linear-gradient(60deg,\n #00A2E7 0%,\n #185DF3 31%,\n #1E54F0 36%,\n #8B4CCA 69%,\n #C66894 100%\n )`};var oI={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\"}}}},sI={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},iI={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\"}}},tS={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...oI,...sI,...iI,none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var rS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var nS={ratio:1.618,subSequence:!0};var oS={SourceSans:[{url:\"\"}]},sS={system:{value:['\"Helvetica Neue\"',\"Helvetica\",\"Arial\"],type:\"sans-serif\",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var iS={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 aS={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 lS={base:150,ratio:1.333,unit:\"ms\",subSequence:!0};var Oi={version:\"0.0.1\",color:Q_,gradient:eS,theme:tS,typography:rS,spacing:nS,font:oS,fontFamily:sS,timing:lS,icons:iS,media:aS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var ao={};G(ao,{A:()=>_k,AssetPicture:()=>AS,Audio:()=>TS,Avatar:()=>Lk,B:()=>KS,Block:()=>cS,Box:()=>Uc,Br:()=>JS,Button:()=>Ck,ButtonSet:()=>Tk,COMPONENTS:()=>io,Caption:()=>NS,Checkbox:()=>lk,CheckboxHgroup:()=>ck,Circle:()=>SS,CircleButton:()=>Ek,Clickable:()=>vS,Data:()=>YS,Dialog:()=>Rk,DialogFooter:()=>Ik,DialogHeader:()=>$k,Dropdown:()=>Nk,DropdownList:()=>Bk,DropdownParent:()=>Vk,DropdownParentFocus:()=>zk,DropdownSiblingFocus:()=>Wk,FileIcon:()=>bk,Flex:()=>fS,Focusable:()=>wS,FocusableComponent:()=>_S,Footnote:()=>GS,Form:()=>yS,Grid:()=>pS,Gutter:()=>gS,H1:()=>$S,H2:()=>IS,H3:()=>jS,H4:()=>FS,H5:()=>DS,H6:()=>LS,Headline:()=>HS,Hgroup:()=>nk,HgroupButton:()=>sk,HgroupRows:()=>ok,Hoverable:()=>xS,Hr:()=>ZS,I:()=>XS,Icon:()=>mk,IconButton:()=>Pk,IconText:()=>yk,Iframe:()=>bS,Img:()=>mS,Inline:()=>uS,InlineFlex:()=>dS,InlineGrid:()=>hS,Input:()=>ik,Italic:()=>WS,KangorooButton:()=>Ok,Li:()=>QS,Link:()=>Vm,Notification:()=>Uk,NumberInput:()=>ak,Ol:()=>tk,P:()=>MS,Picture:()=>CS,Radio:()=>uk,RadioHgroup:()=>fk,Range:()=>Mk,RouteLink:()=>Sk,RouterLink:()=>zm,SHAPES:()=>zc,Select:()=>kk,Shape:()=>ym,Span:()=>RS,SquareButton:()=>Ak,Strong:()=>BS,Subhead:()=>qS,Svg:()=>ES,Text:()=>PS,Textarea:()=>hk,TextareaWithButton:()=>gk,Theme:()=>kS,Title:()=>US,Toggle:()=>dk,ToggleHgroup:()=>pk,Tooltip:()=>jk,TooltipHidden:()=>Fk,TooltipParent:()=>Dk,U:()=>VS,Ul:()=>ek,Underline:()=>zS,Video:()=>OS,depth:()=>Wc,getSystemGlobalTheme:()=>Ti});var dm={};G(dm,{Block:()=>cS,Flex:()=>fS,Grid:()=>pS,Gutter:()=>gS,Inline:()=>uS,InlineFlex:()=>dS,InlineGrid:()=>hS});var cS={display:\"block\"},uS={display:\"inline\"},fS={display:\"flex\"},dS={display:\"inline-flex\"},pS={display:\"grid\"},hS={display:\"inline-grid\"},gS={boxSize:\"C1\"};var pm={};G(pm,{Img:()=>mS});I();var mS={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?ri(t):\"\")||e.srcset}}};var hm={};G(hm,{Form:()=>yS});var yS={tag:\"form\"};var gm={};G(gm,{Iframe:()=>bS});var bS={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"};var mm={};G(mm,{Clickable:()=>vS,Focusable:()=>wS,FocusableComponent:()=>_S,Hoverable:()=>xS});var aI={appearance:\"none\",cursor:\"pointer\",fontFamily:\"inherit\"},xS={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}}},vS={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}},wS={border:\"none\",outline:\"solid 0 blue.3\",\":focus-visible\":{opacity:1,outline:\"solid X blue.3\"},attr:{tabIndex:e=>e.tabIndex}},_S={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",style:aI};var vm={};G(vm,{Picture:()=>CS});var xm={};G(xm,{Theme:()=>kS,getSystemGlobalTheme:()=>Ti});var bm={};G(bm,{Circle:()=>SS,SHAPES:()=>zc,Shape:()=>ym,default:()=>lI,depth:()=>Wc});I();var yt=P(),Wc={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}`}},so=e=>de(e.shapeDirectionColor)||de(e.borderColor)||de(e.backgroundColor)||de(e.background),Vc=e=>{let t=Ci.transition(e.transition,e);return t&&t.transition},zc={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:so(e),transition:Vc(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:so(e),transition:Vc(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:so(e),transition:Vc(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:Vc(e),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${so(e)} 25%, transparent 25%), linear-gradient(315deg, ${so(e)} 25%, transparent 25%)`},\"&:after\":{background:so(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)\"}}}},ym={deps:{exec:le,getSpacingBasedOnRatio:qt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(zc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=zc[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}}},SS={round:\"100%\"},lI=ym;I();var Ti=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n===\"auto\"?null:n},kS={deps:{depth:Wc},classlist:{depth:e=>!Pe(e.depth)&&e.deps.depth[e.depth]}};var CS={deps:{getSystemGlobalTheme:Ti},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:Ti},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 wm={};G(wm,{AssetPicture:()=>AS});I();var AS={tag:\"picture\",children:e=>{let t=Ye(e);if(t)return ni(t,e.alt)}};var _m={};G(_m,{Svg:()=>ES});var ES={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 Sm={};G(Sm,{Video:()=>OS});I();var OS={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 km={};G(km,{Audio:()=>TS});I();var TS={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 Cm={};G(Cm,{B:()=>KS,Caption:()=>NS,Data:()=>YS,Footnote:()=>GS,H1:()=>$S,H2:()=>IS,H3:()=>jS,H4:()=>FS,H5:()=>DS,H6:()=>LS,Headline:()=>HS,I:()=>XS,Italic:()=>WS,P:()=>MS,Span:()=>RS,Strong:()=>BS,Subhead:()=>qS,Text:()=>PS,Title:()=>US,U:()=>VS,Underline:()=>zS});var PS={},RS={tag:\"span\"},$S={tag:\"h1\"},IS={tag:\"h2\"},jS={tag:\"h3\"},FS={tag:\"h4\"},DS={tag:\"h5\"},LS={tag:\"h6\"},MS={tag:\"p\"},NS={tag:\"caption\"},BS={tag:\"strong\",fontWeight:\"700\"},VS={tag:\"u\"},zS={tag:\"u\"},WS={tag:\"i\"},US={},HS={tag:\"h6\",fontSize:\"B\",fontWeight:500},qS={tag:\"span\",fontSize:\"Z1\"},GS={tag:\"span\",fontSize:\"Z\"},KS={tag:\"b\"},XS={tag:\"i\"},YS={tag:\"data\"};var Am={};G(Am,{Box:()=>Uc,Br:()=>JS,Hr:()=>ZS,Li:()=>QS,Ol:()=>tk,Ul:()=>ek});var cI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=tt(t,e,{unpack:!1});r.__class=n},Uc={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:cI},ZS={tag:\"hr\",margin:\"C1 0\"},JS={tag:\"br\"},QS={tag:\"li\"},ek={tag:\"ul\",childExtends:{extends:\"Li\"}},tk={tag:\"ol\",childExtends:{extends:\"Li\"}};var Em={};G(Em,{Hgroup:()=>nk,HgroupButton:()=>sk,HgroupRows:()=>ok});var rk=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},nk={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:rk,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:rk,margin:\"0\",color:\"paragraph\"}},ok={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},sk={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}};var Om={};G(Om,{Input:()=>ik});var ik={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 Tm={};G(Tm,{NumberInput:()=>ak});var ak={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 Pm={};G(Pm,{Checkbox:()=>lk,CheckboxHgroup:()=>ck});var lk={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\"}}},ck={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}};var Rm={};G(Rm,{Radio:()=>uk,RadioHgroup:()=>fk});var uk={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}},fk={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}};var $m={};G($m,{Toggle:()=>dk,ToggleHgroup:()=>pk});var dk={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}},pk={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}};var Im={};G(Im,{Textarea:()=>hk,TextareaWithButton:()=>gk});var hk={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\"}},gk={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 jm={};G(jm,{FileIcon:()=>bk,Icon:()=>mk,IconText:()=>yk});var mk={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,S)=>{let{semanticIcons:O}=S&&S.designSystem,{toCamelCase:T}=S&&S.utils,k=u(v,w),te=T(k).split(/([a-z])([A-Z])/g),z=te[1]?te[0]:k.split(\".\")[0].split(\" \")[0],N=O&&O[z];if(N){let ye=k.includes(\".\")?\"sfsymbols.\"+k.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return k=N[ye]||N[k.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${k}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},u=(v,w)=>{let{key:S}=v,O=v.call(\"exec\",v.name||v.icon||S,v);return v.call(\"isString\",O)&&O.includes(\"{{\")&&(O=v.call(\"replaceLiteralsWithObjectFields\",O)),v.call(\"isString\",O)?O:S},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\"}},yk={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},bk={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}};var Wm={};G(Wm,{A:()=>_k,Link:()=>Vm,RouteLink:()=>Sk,RouterLink:()=>zm});var Bm={};G(Bm,{default:()=>hI,getActiveRoute:()=>Nm,lastLevel:()=>qc,lastPathname:()=>Hc,matchRoute:()=>Dm,parseQuery:()=>Lm,parseRoutePattern:()=>Fm,router:()=>Gt,runGuards:()=>Mm});I();var vk=/^:(.+)/,wk=/^\\*$/,xk=new Map,Fm=e=>{let t=xk.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(vk);a?n.push({index:i,name:a[1]}):wk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return xk.set(e,s),s},Dm=(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=Fm(c),d=uI(o,u);d>a&&(a=d,i=c,l=fI(o,u))}return!i&&t[\"/*\"]&&(i=\"/*\"),{key:i,content:i?t[i]:null,params:l,routePath:s}},uI=(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(vk.test(r[i]))o+=1;else if(wk.test(r[i]))o+=.5;else return-1;return o},fI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Lm=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},Mm=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},Nm=(e=0,t)=>{t||(t=typeof A<\"u\"?A.location.pathname:\"/\");let n=t.split(\"/\")[e+1];if(n)return`/${n}`},Hc,qc=0,dI=e=>!e||e===\"srcdoc\"||e===\"about:srcdoc\"?\"/\":e,pI={level:qc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:ce&&ce.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0},Gt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||A,i=o?.context?.document||ce,a={...pI,...o.context.routerOptions,...n};qc=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=dI(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=Lm(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Hc;Hc=f;let x,v,w,S;if(a.useParamsMatching){let T=Dm(f,o.routes,a.level);x=T.key,v=T.routePath,w=T.content,S=T.params}else x=Nm(a.level,f),v=x,w=o.routes[x||\"/\"]||o.routes[\"/*\"],S={};let O=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 T={pathname:f,route:x,params:S,query:g,hash:h,element:o,state:r},k=await Mm(a.guards,T);if(k===!1)return;if(typeof k==\"string\")return Gt(k,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||\"\")+(h||\"\"))}catch{}if(b||!y){let T={route:x,routePath:v,hash:h,debugging:!1};Object.keys(S).length&&(T.params=S),Object.keys(g).length&&(T.query=g),a.updateState&&o.state.update(T,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let k=o.__ref?.origin?.content,D={};if(k)for(let z in k){let N=k[z];z===\"__ref\"||z===\"props\"||z===\"node\"||z===\"parent\"||z===\"key\"||(typeof N==\"string\"||typeof N==\"number\"||typeof N==\"boolean\"||typeof N==\"object\"&&N!==null&&!N.node&&!N.__ref)&&(D[z]=N)}let te={...D,...typeof w==\"object\"?w:{extends:w}};a.useFragment&&(te.tag=\"fragment\");try{o.set(te,{contentElementKey:c})}catch(z){console.error(\"[smbls/router] failed to render route content\",f,z)}}if(a.scrollToTop&&O?.scrollTo&&O.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 T=i.getElementById(h);if(T&&O?.scrollTo){let k=T.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:k,left:0})}}_r(\"routeChanged\",o,a)},hI=Gt;var gI=(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||Gt)(a,h,{},{scrollToOptions:{behaviour:\"instant\"},scrollToTop:t.call(\"isDefined\",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Vm={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:e=>$r(e,e.href)||$r(e,e.call(\"exec\",e,e).href),\"aria-label\":e=>e.aria?e.aria.label:e.text},onClick:gI},_k={extends:\"Link\"},zm={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||Gt)(a,h,{},{scrollToOptions:{behaviour:\"instant\"},scrollToTop:t.call(\"isDefined\",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},Sk={extends:[Vm,zm]};var Um={};G(Um,{Select:()=>kk});var kk={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 Hm={};G(Hm,{Button:()=>Ck,ButtonSet:()=>Tk,CircleButton:()=>Ek,IconButton:()=>Pk,KangorooButton:()=>Ok,SquareButton:()=>Ak});var Ck={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)},Ak={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\"},Ek={extends:\"SquareButton\",round:\"C\"},Ok={extends:\"Button\",childExtends:\"IconText\"},Tk={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},Pk={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"};var qm={};G(qm,{Dialog:()=>Rk,DialogFooter:()=>Ik,DialogHeader:()=>$k});var Rk={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},$k={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},Ik={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 Gm={};G(Gm,{Tooltip:()=>jk,TooltipHidden:()=>Fk,TooltipParent:()=>Dk});I();var jk={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)}},Fk={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)}},Dk={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 Km={};G(Km,{Avatar:()=>Lk});var Lk={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 Xm={};G(Xm,{Range:()=>Mk});var Mk={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:oi(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:oi(\"#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 Ym={};G(Ym,{Dropdown:()=>Nk,DropdownList:()=>Bk,DropdownParent:()=>Vk,DropdownParentFocus:()=>zk,DropdownSiblingFocus:()=>Wk});var Nk={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\"},Bk={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\"}}},Vk={position:\"relative\",zIndex:999,style:{\"&:hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}}},zk={position:\"relative\",tabindex:\"0\",style:{\"&: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()}}},Wk={position:\"relative\",tabindex:\"0\",style:{\"&: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 Zm={};G(Zm,{Notification:()=>Uk});var Uk={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 io=Object.assign({},dm,pm,hm,gm,mm,vm,wm,_m,bm,Sm,km,xm,Cm,Am,Em,Om,Tm,Pm,Rm,$m,Im,jm,Wm,Um,Hm,qm,Gm,Km,Xm,Ym,Zm);function Gc(e){if(e==null)return 0;if(typeof e!=\"object\")return Hk(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Gc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^Hk(r[n]))*16777619,t=(t^Gc(e[r[n]]))*16777619;return t>>>0}function Hk(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Kc(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(!Kc(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)||!Kc(e[s],t[s]))return!1}return!0}function Jm(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=Jm(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 Qm(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])?Qm(e[n],o,r):e[n]=o}return e}function Fr(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 lo(e){return e.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}function Pi(e){let t=String(e);return t.length<=20?t.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():Fr(t)}function qk(e){return e.split(`\n`).map(Fr).join(`\n`)}var Gk={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 Kk(e,t){let r=Gk[e]||Fr(e),n=Pi(t),o=`_${r}-${n}`,s=lo(e),i=`.${o}{${s}: ${t}}`;return`${o}\n${i}`}var Xk=e=>typeof e==\"string\"&&(e.indexOf(\"{\")!==-1||e.indexOf(\"}\")!==-1);function Yk(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||Xk(i))continue;let a=Gk[s]||Fr(s),l=Pi(i),c=`_${a}-${l}`,u=lo(s);r.push(c),n.push(`.${c}{${u}:${i}}`)}return r.join(\" \")+\"\\0\"+n.join(`\n`)}function Zk(e,t){let r=e+t,n=`_c${Fr(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&&(Xk(c)||(s+=`${lo(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}\n${i}`}var ey=null;function Yc(e){ey=e}var $t={structuralHash:Gc,deepEqual:Kc,mergeStructural:Jm,overwriteDeep:Qm,shortHash:Fr,toKebab:lo,sanitizeValue:Pi,batchShortHash:qk,atomicCssClass:Kk,batchAtomicCss:Yk,compoundCssClass:Zk},Jk=!1,Xc=null;function Qk(e){return Xc||(Xc=import(e||\"@symbo.ls/wasm/pkg\").then(t=>(t.structuralHash&&($t.structuralHash=t.structuralHash),t.deepEqual&&($t.deepEqual=t.deepEqual),t.mergeStructural&&($t.mergeStructural=t.mergeStructural),t.overwriteDeep&&($t.overwriteDeep=t.overwriteDeep),t.shortHash&&($t.shortHash=t.shortHash),t.toKebab&&($t.toKebab=t.toKebab),t.sanitizeValue&&($t.sanitizeValue=t.sanitizeValue),t.batchShortHash&&($t.batchShortHash=t.batchShortHash),t.atomicCssClass&&($t.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&($t.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&($t.compoundCssClass=t.compoundCssClass),Jk=!0,ey&&t.batchAtomicCss&&ey({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug(\"[smbls] WASM not available, using JS fallbacks:\",t.message),!1)),Xc)}function e1(){return Jk}I();var Ri={};G(Ri,{CDN_PROVIDERS:()=>At,DOMQL_EVENTS:()=>ep,DOMQ_PROPERTIES:()=>br,ENV:()=>mp,HTML_TAGS:()=>Un,METHODS:()=>Mn,METHODS_EXL:()=>os,NODE_ENV:()=>kt,OPTIONS:()=>Es,PACKAGE_MANAGER_TO_CDN:()=>Ar,PARSED_DOMQ_PROPERTIES:()=>ns,PROPS_METHODS:()=>xr,STATE_METHODS:()=>Jr,STATE_PROPERTIES:()=>Qd,SVG_TAGS:()=>$v,TYPES:()=>Yo,UNIVERSAL_RESERVED_KEYS:()=>Xl,addCaching:()=>Il,addContext:()=>$l,addExtend:()=>Vp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Bd,addProtoToArray:()=>Qo,addRef:()=>Tl,applyCSS:()=>ry,applyDependentState:()=>ih,applyEvent:()=>Nl,applyEventUpdate:()=>Bl,applyExtends:()=>Fv,applyProps:()=>ws,arrayContainsOtherArray:()=>Id,arraysEqual:()=>zd,arrayzeValue:()=>sn,buildImgSrcset:()=>ri,buildSourcesAndImg:()=>ni,cache:()=>fh,call:()=>Th,captureSnapshot:()=>Rh,checkForStateTypes:()=>rh,checkIfInherits:()=>Ml,checkIfStringIsInArray:()=>Hd,clone:()=>rp,cloneAndMergeArrayExtend:()=>ps,cloneFunction:()=>Cp,concatAddExtends:()=>Mp,copyJavaScriptToClipboard:()=>Yh,copyStringToClipboard:()=>Xh,createBasedOnType:()=>Ol,createElement:()=>th,createElementExtends:()=>ml,createExtends:()=>gs,createExtendsFromKeys:()=>Hn,createExtendsStack:()=>vl,createIfConditionFlag:()=>Ap,createInheritedState:()=>nh,createKey:()=>fs,createNestedObject:()=>cp,createNestedObjectByKeyPath:()=>sh,createObjectWithoutPrototype:()=>ll,createParent:()=>Pl,createPath:()=>Rl,createProps:()=>_s,createPropsStack:()=>Al,createRoot:()=>eh,createScope:()=>lh,createSnapshotId:()=>us,customDecodeURIComponent:()=>Jd,customEncodeURIComponent:()=>Zd,cutArrayAfterValue:()=>Md,cutArrayBeforeValue:()=>Ld,debounce:()=>ds,debounceOnContext:()=>_p,decodeNewlines:()=>Yd,deepClone:()=>ue,deepContains:()=>ap,deepDefaults:()=>Js,deepDestringifyFunctions:()=>lt,deepExtend:()=>gl,deepMerge:()=>ae,deepMergeExtends:()=>zt,deepStringifyFunctions:()=>ss,defineSetter:()=>Eh,destringifyGlobalScope:()=>as,detectHeightOnInit:()=>Dh,detectInfiniteLoop:()=>pp,document:()=>ce,encodeNewlines:()=>Xd,error:()=>on,excludeKeysFromObject:()=>gp,exec:()=>le,extendCachedRegistry:()=>Np,extendStackRegistry:()=>ms,extractArrayExtend:()=>bs,fetchLibraryData:()=>Jl,fibonacciNumberByIndex:()=>Lh,filterArrays:()=>Wd,filterArraysFast:()=>Ud,finalizeExtends:()=>wl,findClosestNumber:()=>Zl,findClosestNumberInFactory:()=>Gh,findInheritedState:()=>Ll,findKeyPosition:()=>Gd,flattenExtend:()=>qn,formatDate:()=>Fh,generateHash:()=>dl,generateKey:()=>cs,generateMetaTags:()=>Hh,get:()=>kh,getActiveRoute:()=>Nm,getCDNUrl:()=>Et,getCapitalCaseKeys:()=>Up,getCdnProviderFromConfig:()=>Xn,getChildStateInKey:()=>Dl,getChildren:()=>Ms,getContext:()=>Hs,getCookie:()=>Rp,getDB:()=>Ys,getEmotionStylesheet:()=>eg,getExtendsInElement:()=>zp,getExtendsStack:()=>hs,getExtendsStackRegistry:()=>hl,getFrequencyInArray:()=>jd,getHashedExtend:()=>ys,getImportMapScript:()=>jh,getInObjectByPath:()=>dp,getLocalStorage:()=>Ip,getNev:()=>vp,getPageMetadata:()=>qh,getParentStateInKey:()=>Fl,getPath:()=>Ns,getQuery:()=>Zs,getRef:()=>Ah,getRoot:()=>zs,getRootContext:()=>Us,getRootData:()=>Ws,getRootState:()=>Vs,getRootStateInKey:()=>jl,getSpreadChildren:()=>Hp,global:()=>Pd,hasFunction:()=>Bn,hasHandlerPlugin:()=>Vn,hasOwnProperty:()=>op,inheritChildExtends:()=>bl,inheritChildPropsExtends:()=>yl,inheritParentProps:()=>Ss,inheritRecursiveChildExtends:()=>xl,init:()=>co,initProps:()=>Zp,is:()=>Ge,isArray:()=>$,isBoolean:()=>nl,isContextComponent:()=>qp,isCyclic:()=>hp,isDOMNode:()=>He,isDate:()=>sl,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>il,isEmptyObject:()=>sp,isEqualDeep:()=>al,isFunction:()=>E,isHtmlElement:()=>Ko,isLocal:()=>xp,isMethod:()=>Ph,isMobile:()=>Tp,isNode:()=>er,isNot:()=>$d,isNotProduction:()=>tn,isNull:()=>ol,isNumber:()=>Vt,isObject:()=>_,isObjectLike:()=>Q,isPhoto:()=>Mh,isProduction:()=>vr,isStaging:()=>bp,isState:()=>oh,isString:()=>C,isStringFunction:()=>kp,isTest:()=>ul,isTesting:()=>yp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>$h,isValidHtmlTag:()=>Fp,joinArrays:()=>Fn,jointStacks:()=>Bp,keys:()=>Gl,lastLevel:()=>qc,lastPathname:()=>Hc,loadCssFile:()=>zh,loadJavascript:()=>Wh,loadJavascriptFile:()=>Nh,loadJavascriptFileEmbedSync:()=>Vh,loadJavascriptFileSync:()=>Bh,loadRemoteCSS:()=>Uh,loadRemoteScript:()=>Yn,log:()=>Oh,logGroupIf:()=>Op,logIf:()=>Ep,lookdown:()=>_h,lookdownAll:()=>Sh,lookup:()=>wh,lowercaseFirstLetter:()=>Zr,makeObjectWithoutPrototype:()=>ip,map:()=>tp,mapStringsWithContextComponents:()=>xs,matchRoute:()=>Dm,matchesComponentNaming:()=>Wt,memoize:()=>Sp,merge:()=>ge,mergeSharedLibraries:()=>Qs,nextElement:()=>Gs,normalizeLibraryKey:()=>Zn,objectToString:()=>is,objectizeStringProperty:()=>vs,overwrite:()=>ls,overwriteDeep:()=>Ke,overwriteShallow:()=>en,overwriteState:()=>ah,parse:()=>Kl,parseDeep:()=>Ds,parseQuery:()=>Lm,parseRoutePattern:()=>Fm,pickupElementFromProps:()=>kl,pickupPropsFromElement:()=>Sl,previousElement:()=>Ks,propExists:()=>Xp,propertizeElement:()=>Cl,propertizeUpdate:()=>Kp,reinit:()=>ty,remove:()=>fw,removeChars:()=>Zh,removeCookie:()=>$p,removeDuplicateProps:()=>Cs,removeDuplicatesInArray:()=>Dn,removeFromArray:()=>Fd,removeFromObject:()=>lp,removeNestedKeyByPath:()=>up,removeValueFromArray:()=>Jo,removeValueFromArrayAll:()=>Nd,reorderArrayByValues:()=>Vd,replaceLiteralsWithObjectFields:()=>Yr,replaceOctalEscapeSequences:()=>Kd,resolveAsset:()=>Ye,resolveHandler:()=>zn,resolveSharedLibraries:()=>Kh,returnValueAsText:()=>El,router:()=>Gt,runGuards:()=>Mm,runPluginHook:()=>Wn,scratchSystem:()=>pi,scratchUtils:()=>fn,self:()=>Rd,set:()=>to,setActiveRootState:()=>Bs,setCookie:()=>Pp,setHashedExtend:()=>pl,setInObjectByPath:()=>fp,setLocalStorage:()=>jp,setNodeStyles:()=>ql,setProps:()=>Ch,setPropsPrototype:()=>ks,spotByPath:()=>Ls,srcsetFor:()=>Jn,stringIncludesAny:()=>ts,stringToObject:()=>np,swapItemsInArray:()=>Dd,syncProps:()=>As,toCamelCase:()=>ei,toDashCase:()=>ti,toDescriptionCase:()=>Qh,toTitleCase:()=>Jh,toggleFullscreen:()=>Ih,triggerEventOn:()=>_r,triggerEventOnUpdate:()=>ch,trimStringFromSymbols:()=>qd,unstackArrayOfObjects:()=>Zo,update:()=>Yp,updateProps:()=>Jp,variables:()=>Xs,verbose:()=>Kn,warn:()=>qs,window:()=>A});I();I();var vI=P(),t1=(e=vI,t)=>{let r=_(t.localFile)?t.localFile:{},n=ue(r.designSystem||{});return ae(e,n)},wI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},co=(e,t=wI)=>{let r=t1(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=to({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=ec(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&&we(a),c&&(we({[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];we(m)}l&&we(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];we(m)}return(f||d)&&Oc(i.svg,{document:t.document}),(h||p)&&Pc(i.icons,{document:t.document}),i},Zc={},ty=(e,t=Zc)=>{let r=t1(e||{},t),n=t.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=to({verbose:!1,...r});if(!t.preventInject){if(we({[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];we(i)}we(s.reset)}return s},ry=(e,t=Zc)=>{we(e)},_I=(e,t=Zc)=>{let r=t.scopeSelector||\":root\",n=r===\":root\"?\":root:not([data-theme])\":`${r}:not([data-theme])`;if(we({[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];we(o)}};var SI=(e,t=Zc)=>{};I();var r1=e=>!e||e===\"srcdoc\"||e===\"about:srcdoc\"||e===\"blank\"||e===\"about:blank\"?\"/\":e,ny={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},n1=(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},o1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=ny:t.router=ge(t.router||{},ny);let r=t.router,n=async(s,i)=>{let a=s.context?.window||A;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=r1(l);let d=l+c+u,f=s;if(r.customRouterElement){let p=n1(s,r.customRouterElement);p&&(f=p,s.routes&&(f.routes=s.routes))}f.routes&&await Gt(d,f,{},{initialRender:!0,pushState:!1})},o=!Pe(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),kI(t,r),r},oy=(e,t)=>{if(t.router===!1)return;let r=t.router||ny;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Gt,o=t.window||A,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=r1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=n1(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))},kI=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return ae(r.Link||r[\"smbls.Link\"],r.RouterLink||r[\"smbls.RouterLink\"])};I();var sy=A&&A.location?A.location.host.includes(\"dev.\"):wr(),s1=sy?\"http://localhost:8080/get\":\"https://api.symbols.app/get\",CI={endpoint:s1},i1=async(e,t=CI)=>{let r=t.endpoint||s1,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(E(t.onError))return t.onError(s);console.error(s)}},AI=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await i1(e,r),o=sy||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},EI=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await i1(e,n),s=sy||t.isDevelopment?lt(o):lt(o.releases[0]);r(s)}},a1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await AI(e,t)}catch(r){console.error(r)}},l1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&EI(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 $i=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{xn(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 OI={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\"}},TI=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}\"]`},Jc=(e,t,r)=>{if(!e)return{};let n=E(e)?le(e,t,r):{...e};if(!_(n))return{};for(let o in n){let s=n[o];E(s)&&(s=le(s,t,r)),C(s)&&s.includes(\"{{\")&&t?.call&&(s=t.call(\"replaceLiteralsWithObjectFields\",s,r)),n[o]=s}return n};var PI=(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},Qc=(e,t)=>{if(!(!_(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=OI[r];if(!o)continue;let s=TI(o),i=t.querySelector(s)||PI(o,t);i&&(r===\"title\"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute(\"content\",n))}};var c1={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=Jc(t,e,e.state);Qc(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=Jc(t,e,e.state);Qc(n,r)}};nn();var u1=(e,t,r,n)=>{e&&js(e,t,r,n)},f1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=Jc(e,t,r);Qc(o,n)},d1=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},uo={routes:e=>e,metadata:f1,fetch:u1,$router:d1},p1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=f1),e.fetch!==!1&&(t.fetch=u1),e.router!==!1&&(t.$router=d1),t};var iy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},eu={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},tu={...iy,router:eu},RI={state:{},pages:{},components:{},router:eu,define:uo},Dr=RI;I();I();var h1=(e,t)=>Q(e.extends)?e.extends:[];I();var b1=e=>{let t=typeof window<\"u\"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<\"u\"?document:t.document;return e.document=e.document||r,e.window=e.window||t,e.window},g1=(e=\"smbls\")=>{let t={};for(let r in io)Object.prototype.hasOwnProperty.call(io,r)&&(Wt(r)?t[`smbls.${r}`]=io[r]:t[r]=io[r]);return t},x1=e=>e.components?{...g1(),...e.components}:g1(),v1=e=>({...Ri,...Bm,...fn,...e.utils,...e.snippets,...e.functions}),w1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),m1={},_1=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ar[s]||Xn(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=wr()&&n?`?${Math.random()}`:\"\",d=Et(l,c,o)+u;try{if(m1[l])continue;m1[l]=!0,await Promise.race([Yn(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=Et(l,c,\"symbols\")+u;await Promise.race([Yn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),1e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},S1=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||Xn(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=wr()?`?${Math.random()}`:\"\";if(c&&c[a]){let p=c[a],h=Et(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=Et(a,p,\"symbols\")+f;await i.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=Et(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=Et(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=ge(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)},$I=/\\s+/g,k1=(e,t)=>typeof e==\"function\"?e(t,t?.state,t?.context):e,II=(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+=` ${k1(o,t)}`)}return r},jI=(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=II(e,t));let o=e.replace($I,\" \").trim();if(r&&typeof r.setAttribute==\"function\")r.setAttribute(\"class\",o);else if(r)try{r.className=o}catch{}return o},FI=()=>(e,t,r)=>{let n=k1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}C1()(t.classlist,t,t.state,!0)},C1=()=>(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=Rr(l),i[a]=c}for(let a in i)a===\"classProps\"||a===\"class\"||s[a]===void 0&&delete i[a];t.node&&jI(i,t,t.node)}},DI=()=>({style:FI(),classlist:C1()}),LI=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],y1=!1,A1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||DI(),s=t.designSystem?ae(ue(t.designSystem),Oi):ue(Oi),i={};for(let p of LI)t[p]!==void 0&&(i[p]=t[p]);let a,l=y1&&!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=P(e)||P(),a&&(a.document=r),a?.CSS_VARS){Ie(a);try{if(we({[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];we(p)}}finally{$e()}}}else if(l){let p=pg(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,Ie(p);try{a=co(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...tu,...i,...n})}finally{$e()}}else{let p=P();p&&(p.document=r),a=co(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...tu,...i,...n}),a&&a!==p&&(a.document=r),y1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Ie(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\")&&we(`@font-face { ${m} }`)}}finally{$e()}}return[a,o]},E1=(e,t)=>{let r={};t.state&&ae(r,t.state),e&&e.state&&ae(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,ue(r)},O1=(e,t)=>{_(e.routes)&&_(t.pages)&&ge(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},T1=e=>{Qs(e,e.sharedLibraries)};I();var R1=\"smbls_lang\",MI=\"smbls_t_\",NI=\"smbls_tv_\",fo={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)}}},Ii={};function ji(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||\"en\"}function nu(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var ru=(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},P1=(e,t,r)=>{let n=t.lastIndexOf(\".\");if(n===-1)return e[t+\"_\"+r];let o=ru(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+\"_\"+r]};function ou(e,t){if(!e)return\"\";let r=this?.context,n=r?.polyglot,o=t||this.call(\"getActiveLang\"),s=this?.state;if(s){let c=P1(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=ru(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=ru(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||\"en\";if(s){let c=P1(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=ru(c,e);if(u!==void 0)return u}}return e}async function su(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||MI,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,\"v_\"):NI);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=fo.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(Ii[i])return Ii[i];let a=this;return Ii[i]=(async()=>{try{let l=r.fetch,c=parseInt(fo.get(s+e),10)||0,u,d,f;if(E(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=E(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;fo.set(o+e,JSON.stringify(u)),d&&fo.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 Ii[i]}})(),Ii[i]}async function iu(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||R1;fo.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 au(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=E(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 ay(){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||R1,s=fo.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 lu(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 cu={name:\"polyglot\",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,ay.call(e))}};var Fi={polyglot:ou,getLocalStateLang:lu,getActiveLang:ji,getLang:ji,setLang:iu,getLanguages:nu,loadTranslations:su,upsertTranslation:au};nn();var uu={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}},fu=e=>parseFloat(e.toFixed(4)),BI=(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:`${fu(e/16)}rem`,lineHeight:`${fu(u)}px`,capHeightTrim:`${fu(-p)}em`,baselineTrim:`${fu(-h)}em`}},VI=(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},zI=(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(uu[i])return uu[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(uu[a])return uu[a]}}return null},$1=(e,t,r,n)=>{if(!e)return;let o=VI(t.fontSize,n);if(!o)return;let s=zI(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=BI(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},I1={name:\"capsize\",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Di={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 Di)bt[Di[e]]=e;var ly=Object.create(null);for(let e in Di){let t=Di[e];if(ly[t])throw new Error(`Duplicate abbreviation \"${t}\" for \"${e}\" \\u2014 already used by \"${ly[t]}\"`);ly[t]=e}var Lr=new Set([\"state\",\"st\",\"scope\",\"scp\",\"attr\",\"at\",\"style\",\"sy\",\"data\",\"dt\",\"context\",\"ctx\",\"query\",\"qy\",\"class\",\"cl\"]);function Li(e){return/^[A-Z]/.test(e)}function Mi(e){return/^[:@.!$>&]/.test(e)||e.startsWith(\"> \")}function WI(e){return e.trim().split(/\\s+/).filter(Boolean)}function j1(e){return e.replace(/_/g,\" \")}function UI(e){if(!e||typeof e!=\"string\")return{};let t={},r=WI(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(j1);continue}t[a]=j1(i)}return t}function Ni(e){if(!e||typeof e!=\"object\")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r==\"object\"?Ni(r):r});let t={};for(let r in e){let n=e[r];if(Li(r)){t[r]=cy(n);continue}let o=bt[r]||r;if(Mi(r)&&o===r){t[r]=cy(n);continue}if(Lr.has(o)||Lr.has(r)){t[o]=n;continue}t[o]=cy(n)}return t}function cy(e){return e==null||typeof e==\"function\"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t==\"object\"?Ni(t):t}):typeof e==\"object\"?Ni(e):e}function Bi(e){if(!e||typeof e!=\"object\")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r==\"object\"?Bi(r):r});let t={};if(typeof e.in==\"string\"){let r=UI(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(Li(r)){t[r]=uy(n);continue}let o=bt[r]||r;if(Mi(r)&&o===r){t[r]=uy(n);continue}if(Lr.has(o)||Lr.has(r)){t[o]=n;continue}t[o]=uy(n)}return t}function uy(e){return e==null||typeof e==\"function\"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t==\"object\"?Bi(t):t}):typeof e==\"object\"?Bi(e):e}function HI(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 qI(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 F1(e){return e.startsWith(\"#\")&&/^#-?\\d+(\\.\\d+)?$/.test(e)?Number(e.slice(1)):HI(e)}function fy(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=qI(i);if(l.length>1){t[a]=l.map(F1);continue}t[a]=F1(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={};if(typeof e.in==\"string\"){let r=fy(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(Li(r)){typeof n==\"string\"?t[r]=fy(n):t[r]=dy(n);continue}let o=bt[r]||r;if(Mi(r)&&o===r){typeof n==\"string\"?t[r]=fy(n):t[r]=dy(n);continue}if(Lr.has(o)||Lr.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}var GI={shorten:Ni,stringify:Bi,stringifyFurther:Vi};function KI(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 XI=[\"components\",\"pages\",\"snippets\"],du={name:\"shorthand\",prepareContext(e){let t=e.shorthand;if(!t)return;let n=GI[t===!0?\"shorten\":t];if(n){for(let o of XI)e[o]&&(e[o]=KI(e[o],n));e.app&&typeof e.app==\"object\"&&(e.app=n(e.app))}}};var YI=0,ZI=()=>`${Date.now().toString(36)}-${(YI++).toString(36)}`,ne=(e,t,r={})=>({id:ZI(),ts:Date.now(),type:e,level:t,...r}),JI=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(\" > \")},po=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:JI(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var ho=e=>e?.context?.analyze,QI={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\"}},ej=(e,{category:t,type:r,level:n})=>o=>{let s=ho(o);!s||!s.shouldCapture(t)||s.emit(ne(r,n,{hook:e,element:po(o)}))},D1=e=>(t,r)=>{let n=ho(t);!n||!n.shouldCapture(\"state\")||n.emit(ne(\"state\",\"debug\",{hook:e,element:po(t),changedKeys:r?.changedKeys||null}))},zi={name:\"analyze\",error(e,t){let r=ho(e);if(!r||r.config.enabled===!1||!r.shouldCapture(\"errors\"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ne(\"error\",\"error\",{hook:t?.hook||\"error\",element:po(e),error:n,message:n?.message||(typeof t?.message==\"string\"?t.message:null)}))},renderRouter(e){let t=ho(e);t&&(!t.shouldCapture(\"navigation\")&&!t.shouldCapture(\"lifecycle\")||t.emit(ne(\"navigation\",\"info\",{hook:\"renderRouter\",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=ho(e);!t||!t.shouldCapture(\"updates\")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(e){let t=ho(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(ne(\"update\",\"debug\",{hook:\"update\",element:po(e),durationMs:r}))},beforeStateUpdate:D1(\"beforeStateUpdate\"),stateUpdate:D1(\"stateUpdate\")};for(let[e,t]of Object.entries(QI))zi[e]=ej(e,t);I();var pu={error:0,warn:1,info:2,debug:3,trace:4};var py=(e,t)=>{let r=pu[e],n=pu[t];return r==null||n==null?!0:r<=n},hu=e=>pu[e]!=null?e:\"warn\";I();var gu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var tj=(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},rj=(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\"***\"}},hy=(e,t,r,n)=>{if(n>6||e==null||typeof e!=\"object\")return e;if(Array.isArray(e))return e.map(s=>hy(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(tj(s,t)||gu.test(s)){let a=rj(e[s],r);a!==void 0&&(o[s]=a)}else o[s]=hy(e[s],t,r,n+1);return o},gy=(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=hy(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 L1=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=A,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}}}},M1=()=>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},N1=(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}},B1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},V1={redact:e=>gy(e.config.redact||[],e.config.maskStrategy),enrich:e=>L1(e),summarize:()=>M1(),dedupe:e=>N1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>B1(e.config.sample||{})},nj=(e,t)=>{if(typeof e==\"function\")return e;if(typeof e==\"string\"){let r=V1[e];return r?r(t):null}return null},my=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(V1.redact(e));for(let s of r){let i=nj(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();var oj={error:\"\\x1B[31m\",warn:\"\\x1B[33m\",info:\"\\x1B[36m\",debug:\"\\x1B[90m\",trace:\"\\x1B[90m\"},sj=\"\\x1B[0m\",mu=typeof A<\"u\"&&typeof A.document<\"u\",W1=(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(mu)i(a,s);else{let l=oj[s.level]||\"\";i(`${l}${a}${sj}`,s)}}},U1=(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},H1=(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=mu?new A.Blob([l],{type:\"application/json\"}):l;if(mu&&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(()=>{})};mu&&(A.addEventListener(\"pagehide\",i,{passive:!0}),A.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:W1,memory:U1,beacon:H1},yy=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 ij=typeof A<\"u\"&&typeof A.document<\"u\",aj=new Set([\"password\",\"hidden\"]),q1=(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))))}},by=\"__analyzeKeyPath\",go=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[by])return t[by];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[by]=i}catch{}return i},lj=(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\"***\"}},cj=e=>!!(!e||e.tagName===\"INPUT\"&&aj.has(e.type)||gu.test(e.name||\"\")||gu.test(e.id||\"\")||e.dataset?.analyze===\"skip\"),xy=e=>{if(!ij)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(A,\"error\",s=>{e.emit(ne(\"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(A,\"unhandledrejection\",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ne(\"error\",\"error\",{hook:\"unhandledrejection\",message:a?.message||(typeof i==\"string\"?i:\"Unhandled promise rejection\"),error:a}))})),t.pointer){o(A,\"click\",i=>{e.emit(ne(\"pointer\",\"info\",{hook:\"click\",target:go(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:G1(i)}))},{passive:!0,capture:!0}),o(A,\"dblclick\",i=>{e.emit(ne(\"pointer\",\"info\",{hook:\"dblclick\",target:go(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(A,\"contextmenu\",i=>{e.emit(ne(\"pointer\",\"info\",{hook:\"contextmenu\",target:go(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=q1(i=>{e.emit(ne(\"pointer\",\"trace\",{hook:\"pointermove\",x:i.clientX,y:i.clientY}))},r.pointermove);o(A,\"pointermove\",s,{passive:!0})}if(t.keyboard&&o(A,\"keydown\",s=>{e.emit(ne(\"keyboard\",\"info\",{hook:\"keydown\",code:s.code,key:s.key&&s.key.length===1?\"\\xB7\":s.key,modifiers:G1(s),target:go(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 c=cj(a),u=a.dataset?.analyze===\"track\",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=lj(a.value,e.config.maskStrategy)),e.emit(ne(\"forms\",\"info\",{hook:i.type,target:go(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(A,\"input\",s,{passive:!0,capture:!0}),o(A,\"change\",s,{passive:!0,capture:!0}),o(A,\"submit\",i=>{e.emit(ne(\"forms\",\"info\",{hook:\"submit\",target:go(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=q1(()=>{e.emit(ne(\"scroll\",\"trace\",{hook:\"scroll\",x:A.scrollX,y:A.scrollY}))},r.scroll);o(A,\"scroll\",s,{passive:!0,capture:!0})}if(t.viewport){let s=ds(()=>{e.emit(ne(\"viewport\",\"info\",{hook:\"resize\",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))},r.resize);o(A,\"resize\",s,{passive:!0}),o(A,\"orientationchange\",()=>{e.emit(ne(\"viewport\",\"info\",{hook:\"orientationchange\",orientation:typeof screen<\"u\"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(A.document,\"visibilitychange\",()=>{e.emit(ne(\"viewport\",\"info\",{hook:\"visibilitychange\",hidden:A.document.hidden}))},{passive:!0}),e.emit(ne(\"viewport\",\"info\",{hook:\"initial\",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))}if(t.console)for(let s of[\"log\",\"warn\",\"error\",\"debug\"]){let i=console[s];console[s]=function(...a){try{e.emit(ne(\"console\",s===\"error\"?\"error\":s===\"warn\"?\"warn\":\"debug\",{hook:`console.${s}`,args:a.map(uj)}))}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(ne(\"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{}},G1=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),uj=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 fj=typeof A<\"u\"&&typeof A.document<\"u\";var vy=e=>{if(fj&&e.config.capture.network){if(typeof A.fetch==\"function\"){let t=A.fetch.bind(A),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(ne(\"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(ne(\"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(ne(\"network\",\"error\",{hook:\"fetch.error\",source:\"window.fetch\",url:s,method:i,error:l,durationMs:c})),l})};A.fetch=r,e.__teardown.push(()=>{A.fetch=t})}if(typeof A.XMLHttpRequest==\"function\"){let t=A.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(ne(\"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(ne(\"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(ne(\"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 dj={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},pj={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},hj={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},gj=e=>{let t={...dj,...e};return t.replay&&Object.assign(t,pj),t.telemetry&&Object.assign(t,hj),t},mj=64,yj=()=>{if(typeof A>\"u\"||!A.location)return null;try{let t=new URLSearchParams(A.location.search).get(\"analyze\");return t||null}catch{return null}},wy=(e={})=>{let t=e===!0?{}:{...e};t.capture=gj(t.capture||{});let r=yj();(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=hu(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=my(n),n.__sinks=yy(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&&py(s.level,n.config.level)){if(!n.__ready){if(s.level!==\"error\"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<mj&&n.__preBuffer.push(s);return}o(),K1(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)K1(n,a)}try{xy(n)}catch(a){console.error(\"[analyze] browser attach error:\",a)}try{vy(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=hu(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},K1=(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 It=Object.create(null);It.open=\"0\";It.close=\"1\";It.ping=\"2\";It.pong=\"3\";It.message=\"4\";It.upgrade=\"5\";It.noop=\"6\";var Wi=Object.create(null);Object.keys(It).forEach(e=>{Wi[It[e]]=e});var Ui={type:\"error\",data:\"parser error\"};var Z1=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",J1=typeof ArrayBuffer==\"function\",Q1=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Hi=({type:e,data:t},r,n)=>Z1&&t instanceof Blob?r?n(t):X1(t,n):J1&&(t instanceof ArrayBuffer||Q1(t))?r?n(t):X1(new Blob([t]),n):n(It[e]+(t||\"\")),X1=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];t(\"b\"+(n||\"\"))},r.readAsDataURL(e)};function Y1(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var _y;function eC(e,t){if(Z1&&e.data instanceof Blob)return e.data.arrayBuffer().then(Y1).then(t);if(J1&&(e.data instanceof ArrayBuffer||Q1(e.data)))return t(Y1(e.data));Hi(e,!1,r=>{_y||(_y=new TextEncoder),t(_y.encode(r))})}var tC=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",qi=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let e=0;e<tC.length;e++)qi[tC.charCodeAt(e)]=e;var rC=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=qi[e.charCodeAt(n)],i=qi[e.charCodeAt(n+1)],a=qi[e.charCodeAt(n+2)],l=qi[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 bj=typeof ArrayBuffer==\"function\",Gi=(e,t)=>{if(typeof e!=\"string\")return{type:\"message\",data:nC(e,t)};let r=e.charAt(0);return r===\"b\"?{type:\"message\",data:xj(e.substring(1),t)}:Wi[r]?e.length>1?{type:Wi[r],data:e.substring(1)}:{type:Wi[r]}:Ui},xj=(e,t)=>{if(bj){let r=rC(e);return nC(r,t)}else return{base64:!0,data:e}},nC=(e,t)=>t===\"blob\"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var oC=\"\u001e\",sC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Hi(s,!1,a=>{n[i]=a,++o===r&&t(n.join(oC))})})},iC=(e,t)=>{let r=e.split(oC),n=[];for(let o=0;o<r.length;o++){let s=Gi(r[o],t);if(n.push(s),s.type===\"error\")break}return n};function aC(){return new TransformStream({transform(e,t){eC(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 Sy;function yu(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 lC(e,t){Sy||(Sy=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(yu(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(yu(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(yu(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(Ui);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(yu(r)<o)break;let l=bu(r,o);a.enqueue(Gi(s?l:Sy.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Ui);break}}}})}var ky=4;function fe(e){if(e)return vj(e)}function vj(e){for(var t in fe.prototype)e[t]=fe.prototype[t];return e}fe.prototype.on=fe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+e]=this._callbacks[\"$\"+e]||[]).push(t),this};fe.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};fe.prototype.off=fe.prototype.removeListener=fe.prototype.removeAllListeners=fe.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};fe.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};fe.prototype.emitReserved=fe.prototype.emit;fe.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+e]||[]};fe.prototype.hasListeners=function(e){return!!this.listeners(e).length};var lr=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\")(),cC=\"arraybuffer\";function xu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var wj=Ve.setTimeout,_j=Ve.clearTimeout;function cr(e,t){t.useNativeTimers?(e.setTimeoutFn=wj.bind(Ve),e.clearTimeoutFn=_j.bind(Ve)):(e.setTimeoutFn=Ve.setTimeout.bind(Ve),e.clearTimeoutFn=Ve.clearTimeout.bind(Ve))}var Sj=1.33;function uC(e){return typeof e==\"string\"?kj(e):Math.ceil((e.byteLength||e.size)*Sj)}function kj(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 vu(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function fC(e){let t=\"\";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+=\"&\"),t+=encodeURIComponent(r)+\"=\"+encodeURIComponent(e[r]));return t}function dC(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 wu=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type=\"TransportError\"}},ur=class extends fe{constructor(t){super(),this.writable=!1,cr(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 wu(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=Gi(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=fC(t);return r.length?\"?\"+r:\"\"}};var Ki=class extends ur{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)};iC(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,sC(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]=vu()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var pC=!1;try{pC=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var hC=pC;function Cj(){}var Cy=class extends Ki{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}},Mr=class e extends fe{constructor(t,r,n){super(),this.createRequest=t,cr(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=xu(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=Cj,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()}};Mr.requestsCount=0;Mr.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",gC);else if(typeof addEventListener==\"function\"){let e=\"onpagehide\"in Ve?\"pagehide\":\"unload\";addEventListener(e,gC,!1)}}function gC(){for(let e in Mr.requests)Mr.requests.hasOwnProperty(e)&&Mr.requests[e].abort()}var Aj=(function(){let e=mC({xdomain:!1});return e&&e.responseType!==null})(),Nr=class extends Cy{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=Aj&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Mr(mC,this.uri(),t)}};function mC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!t||hC))return new XMLHttpRequest}catch{}if(!t)try{return new Ve[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var yC=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",Ey=class extends ur{get name(){return\"websocket\"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=yC?{}:xu(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;Hi(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&lr(()=>{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]=vu()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Ay=Ve.WebSocket||Ve.MozWebSocket,Br=class extends Ey{createSocket(t,r,n){return yC?new Ay(t,r,n):r?new Ay(t,r):new Ay(t)}doWrite(t,r){this.ws.send(r)}};var mo=class extends ur{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=lC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=aC();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&&lr(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Oy={websocket:Br,webtransport:mo,polling:Nr};var Ej=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,Oj=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function yo(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=Ej.exec(e||\"\"),s={},i=14;for(;i--;)s[Oj[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=Tj(s,s.path),s.queryKey=Pj(s,s.query),s}function Tj(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 Pj(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ty=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",_u=[];Ty&&addEventListener(\"offline\",()=>{_u.forEach(e=>e())},!1);var vn=class e extends fe{constructor(t,r){if(super(),this.binaryType=cC,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=yo(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=yo(r.host).host);cr(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=dC(this.opts.query)),Ty&&(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\"})},_u.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=ky,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+=uC(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,lr(()=>{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(),Ty&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=_u.indexOf(this._offlineEventListener);n!==-1&&_u.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};vn.protocol=ky;var Su=class extends vn{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;vn.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;vn.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}},bo=class extends Su{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=>Oy[o]).filter(o=>!!o)),super(t,n)}};var h9=bo.protocol;function bC(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=yo(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 Dy={};G(Dy,{Decoder:()=>jy,Encoder:()=>Iy,PacketType:()=>Z,isPacketValid:()=>Zj,protocol:()=>TC});var $j=typeof ArrayBuffer==\"function\",Ij=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,xC=Object.prototype.toString,jj=typeof Blob==\"function\"||typeof Blob<\"u\"&&xC.call(Blob)===\"[object BlobConstructor]\",Fj=typeof File==\"function\"||typeof File<\"u\"&&xC.call(File)===\"[object FileConstructor]\";function Yi(e){return $j&&(e instanceof ArrayBuffer||Ij(e))||jj&&e instanceof Blob||Fj&&e instanceof File}function Xi(e,t){if(!e||typeof e!=\"object\")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Xi(e[r]))return!0;return!1}if(Yi(e))return!0;if(e.toJSON&&typeof e.toJSON==\"function\"&&arguments.length===1)return Xi(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Xi(e[r]))return!0;return!1}function vC(e){let t=[],r=e.data,n=e;return n.data=Py(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Py(e,t){if(!e)return e;if(Yi(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]=Py(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]=Py(e[n],t));return r}return e}function wC(e,t){return e.data=Ry(e.data,t),delete e.attachments,e}function Ry(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]=Ry(e[r],t);else if(typeof e==\"object\")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ry(e[r],t));return e}var EC=vv(AC(),1),$y=(0,EC.default)(\"socket.io-parser\"),OC=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],TC=5,Z;(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\"})(Z||(Z={}));var Iy=class{constructor(t){this.replacer=t}encode(t){return $y(\"encoding packet %j\",t),(t.type===Z.EVENT||t.type===Z.ACK)&&Xi(t)?this.encodeAsBinary({type:t.type===Z.EVENT?Z.BINARY_EVENT:Z.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=\"\"+t.type;return(t.type===Z.BINARY_EVENT||t.type===Z.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)),$y(\"encoded %j as %s\",t,r),r}encodeAsBinary(t){let r=vC(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},jy=class e extends fe{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===Z.BINARY_EVENT;n||r.type===Z.BINARY_ACK?(r.type=n?Z.EVENT:Z.ACK,this.reconstructor=new Fy(r),r.attachments===0&&super.emitReserved(\"decoded\",r)):super.emitReserved(\"decoded\",r)}else if(Yi(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(Z[n.type]===void 0)throw new Error(\"unknown packet type \"+n.type);if(n.type===Z.BINARY_EVENT||n.type===Z.BINARY_ACK){let s=r+1;for(;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(!PC(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 $y(\"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 Z.CONNECT:return Au(r);case Z.DISCONNECT:return r===void 0;case Z.CONNECT_ERROR:return typeof r==\"string\"||Au(r);case Z.EVENT:case Z.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&OC.indexOf(r[0])===-1);case Z.ACK:case Z.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Fy=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=wC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Kj(e){return typeof e==\"string\"}var PC=Number.isInteger||function(e){return typeof e==\"number\"&&isFinite(e)&&Math.floor(e)===e};function Xj(e){return e===void 0||PC(e)}function Au(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function Yj(e,t){switch(e){case Z.CONNECT:return t===void 0||Au(t);case Z.DISCONNECT:return t===void 0;case Z.EVENT:return Array.isArray(t)&&(typeof t[0]==\"number\"||typeof t[0]==\"string\"&&OC.indexOf(t[0])===-1);case Z.ACK:return Array.isArray(t);case Z.CONNECT_ERROR:return typeof t==\"string\"||Au(t);default:return!1}}function Zj(e){return Kj(e.nsp)&&Xj(e.id)&&Yj(e.type,e.data)}function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var Jj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),_o=class extends fe{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(Jj.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:Z.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:Z.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 Z.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 Z.EVENT:case Z.BINARY_EVENT:this.onevent(t);break;case Z.ACK:case Z.BINARY_ACK:this.onack(t);break;case Z.DISCONNECT:this.ondisconnect();break;case Z.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:Z.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:Z.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 _n(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}_n.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};_n.prototype.reset=function(){this.attempts=0};_n.prototype.setMin=function(e){this.ms=e};_n.prototype.setMax=function(e){this.max=e};_n.prototype.setJitter=function(e){this.jitter=e};var So=class extends fe{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,cr(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 _n({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||Dy;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 bo(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){lr(()=>{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 _o(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 Zi={};function ko(e,t){typeof e==\"object\"&&(t=e,e=void 0),t=t||{};let r=bC(e,t.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=Zi[o]&&s in Zi[o].nsps,a=t.forceNew||t[\"force new connection\"]||t.multiplex===!1||i,l;return a?l=new So(n,t):(Zi[o]||(Zi[o]=new So(n,t)),l=Zi[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(ko,{Manager:So,Socket:_o,io:ko,connect:ko});I();var Qj=new Set([\"__proto__\",\"constructor\",\"prototype\"]),RC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(Qj.has(e[t]))return!1;return!0},eF=(e,t)=>{!e||!RC(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},tF=(e,t,r,n=!1)=>{!e||!RC(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)},$C=(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\":eF(e,o);break;case\"update\":case\"set\":tF(e,o,s,!0);break;default:break}return r};var rF=Object.create,Ab=Object.defineProperty,nF=Object.getOwnPropertyDescriptor,oF=Object.getOwnPropertyNames,sF=Object.getPrototypeOf,iF=Object.prototype.hasOwnProperty,K=(e,t)=>()=>(e&&(t=e(e=0)),t),Eb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X=(e,t)=>{for(var r in t)Ab(e,r,{get:t[r],enumerable:!0})},aF=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of oF(t))!iF.call(e,o)&&o!==r&&Ab(e,o,{get:()=>t[o],enumerable:!(n=nF(t,o))||n.enumerable});return e},lF=(e,t,r)=>(r=e!=null?rF(sF(e)):{},aF(t||!e||!e.__esModule?Ab(r,\"default\",{value:e,enumerable:!0}):r,e)),Ob,Tb,se,me,Uf=K(()=>{Ob=globalThis,Tb=globalThis,se=globalThis,me=se.document}),za,Hf,st,qf=K(()=>{Uf(),za=e=>(typeof Node==\"object\"?e instanceof se.Node:e&&typeof e==\"object\"&&typeof e.nodeType==\"number\"&&typeof e.nodeName==\"string\")||!1,Hf=e=>(typeof HTMLElement==\"object\"?e instanceof se.HTMLElement:e&&typeof e==\"object\"&&e!==null&&e.nodeType===1&&typeof e.nodeName==\"string\")||!1,st=e=>typeof se<\"u\"&&(se.Node&&e instanceof se.Node||se.Window&&e instanceof se.Window||e===se||e===document)}),F,R,Tn,j,Xu,Yu,U,Zu,oe,No,Nt,ca,Xt,Pb,je=K(()=>{qf(),F=e=>e===null?!1:typeof e==\"object\"&&e.constructor===Object,R=e=>typeof e==\"string\",Tn=e=>typeof e==\"number\",j=e=>typeof e==\"function\",Xu=e=>e===!0||e===!1,Yu=e=>e===null,U=e=>Array.isArray(e),Zu=e=>e instanceof Date,oe=e=>e===null?!1:typeof e==\"object\",No=e=>e!==void 0,Nt=e=>e===void 0,ca={boolean:Xu,array:U,object:F,string:R,date:Zu,number:Tn,null:Yu,function:j,objectLike:oe,node:za,htmlElement:Hf,defined:No},Xt=e=>(...t)=>t.some(r=>ca[r](e)),Pb=e=>(...t)=>!t.some(r=>ca[r](e))}),Rb,$b,Ib,jb,$a,Gf,Fb,Db,Kf,Lb,Mb,Nb,Bb,Vb,zb,Wb,Ia,Xf,Wa=K(()=>{qr(),je(),Rb=(e,t)=>t.every(r=>e.includes(r)),$b=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Ib=(e,t)=>{if(R(t)&&(t=parseInt(t)),Tn(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},jb=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},$a=(...e)=>[].concat(...e),Gf=(e,t=[])=>e.reduce((r,n)=>Jt(r,et(n,{exclude:t}),t),{}),Fb=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Db=(e,t)=>{if(!U(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Kf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Lb=(e,t)=>e.filter(r=>r!==t),Mb=(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},Nb=(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},Bb=(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},Vb=(e,t)=>e.filter(r=>!t.includes(r)),zb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Wb=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Ia=e=>U(e)?[...new Set(e)]:e,Xf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function DA(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!e.includes(o))return e;let s=LA[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=Ro(h,f);return String(g??\"\")}else{let p=Ro(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=Ro(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=Ro(v,f);if(w!=null&&typeof w!=\"object\")return String(w)}}}let y=Ro(h.translations,f);if(y!=null&&typeof y!=\"object\")return String(y)}return\"\"}})}var Yf,Ub,LA,Ro,Ua,Hb,IC,qb,Gb,Kb,jC,Xb,Yb,Zf=K(()=>{Yf=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Ub=(e,t)=>{let r=new RegExp(`[${t.join(\"\\\\\")}]`,\"g\");return e.replace(r,\"\")},LA={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},Ro=(e,t)=>t.split(\".\").reduce((r,n)=>r?.[n],e),Ua=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Hb=(e,t)=>{let r=e.split(`\n`),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}},IC=/\\\\([0-7]{1,3})/g,qb=e=>e.replace(IC,(t,r)=>String.fromCharCode(parseInt(r,8))),Gb=e=>e.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),Kb=e=>e.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),jC=/[^a-zA-Z0-9\\s]/g,Xb=e=>e.replace(jC,t=>\"%\"+t.charCodeAt(0).toString(16).toUpperCase()),Yb=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),Wo,Jf,Zb,An,En,ja,Qf,Jb,Ha=K(()=>{Wo=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\"]),Jf=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),Zb=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],An=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\"]),En=new Set([\"update\",\"__element\"]),ja=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\"]),Qf=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...ja,...An,...En]),Jb=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])}),Ly,Vr,Ne,Qb,it,Jt,My,e0,et,ua,FC,fa,DC,LC,Io,MC,da,NC,t0,r0,n0,Ju,o0,s0,ed,td,Pn,Qu,BC,i0,a0,ef,l0,c0,u0,f0,d0,p0,h0,qr=K(()=>{Uf(),je(),Wa(),Zf(),qf(),Ha(),Ly=\"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)||F(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},Qb=(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},Jt=(e,t,r=Qf)=>My(e,t,r,null),My=(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(oe(i)&&oe(a)){let l=n||[];l.push(e,t),My(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},e0=(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||se||globalThis;if(!oe(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]=Gf(f,r);continue}if(j(f)){c[d]=f;continue}oe(f)?c[d]=et(f,{...t,visited:i}):c[d]=f}}return c},ua=(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(F(n))t[r]={},ua(n,t[r]);else if(U(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];F(i)?(o[s]={},ua(i,o[s])):j(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},FC=new Set([\"&\",\"*\",\"-\",\":\",\"%\",\"{\",\"}\",\">\",\"<\",\"@\",\".\",\"/\",\"!\",\" \"]),fa=(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=`{\n`;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(FC.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,U(i)){o+=`[\n`;for(let c of i)oe(c)&&c!==null?o+=`${n} ${fa(c,t+2)},\n`:R(c)?o+=`${n} '${c}',\n`:o+=`${n} ${c},\n`;o+=`${n} ]`}else oe(i)?o+=fa(i,t+1):R(i)?o+=Yf(i,[`\n`,\"'\"])?`\\`${i}\\``:`'${i}'`:o+=i;o+=`,\n`}return o+=`${n}}`,o},DC=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/],LC=/^[\"[{]/,Io=e=>{if(!e)return!1;let t=e.trim().replace(/\\n\\s*/g,\" \").trim();if(t===\"\"||t===\"{}\"||t===\"[]\"||!DC.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes(\"=>\");return!(r===123&&!n||r===91||LC.test(t)&&!n)},MC=e=>(0,eval)(e),da=(e,t={},r={window:{eval:MC}})=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(R(o))if(Io(o))try{t[n]=r.window.eval(`(${o})`)}catch(s){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: '+(s&&s.message?s.message:String(s))+`.\nFirst 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(R(a))if(Io(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)}.\nFirst 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else F(a)?s.push(da(a)):s.push(a)}}else F(o)?t[n]=da(o,t[n]):t[n]=o}return t},NC=e=>!e||typeof e!=\"object\"?e:e.__type===\"Set\"&&Array.isArray(e.values)?new Set(e.values):e.__type===\"Map\"&&Array.isArray(e.entries)?new Map(e.entries):e,t0=e=>{if(!e||typeof e!=\"object\")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];R(o)&&Io(o)?r.push([n,o]):t[n]=NC(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`\n`);t[n]=se.eval(`(function(__gs__) { ${s}\n return (${o}); })`)(t)}catch{try{t[n]=se.eval(`(${o})`)}catch{t[n]=o}}return t},r0=(e,t={verbose:!0})=>{try{return e?se.eval(\"(\"+e+\")\"):{}}catch(r){t.verbose&&console.warn(r)}},n0=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Ju=e=>{for(let t in e)return!1;return!0},o0=e=>F(e)&&Ju(e),s0=()=>Object.create(null),ed=(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},td=(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},Pn=(e,t,r={},n=new WeakMap)=>{if(!oe(e)||!oe(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:oe(l)&&oe(c)?e[a]=Pn(l,c,r,n):c!==void 0&&(e[a]=c)}return e},Qu=(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)||!Qu(e[i],t[i],r))return!1}return!0},BC=new Set([\"node\",\"__ref\"]),i0=(e,t,r=BC)=>{if(e===t)return!0;if(!oe(e)||!oe(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(oe(c)&&oe(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},a0=(e,t)=>{if(t==null)return e;if(Xt(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},ef=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]=ef(e[r]));return t},l0=(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},c0=(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]},u0=(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},f0=(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},d0=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(Ly===\"test\"||Ly===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",t),!0},p0=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)},h0=(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}}),pa,rd,nd,g0=K(()=>{qr(),pa=(function(){let e=0;function t(){return e++,e}return t})(),rd=pa,nd=(e,t,r)=>(Ne(r,e)||r||e.key||pa()).toString()}),Dt,m0,Bo,tf,y0,b0,x0,od,v0,qa,MA=K(()=>{Dt=\"production\",m0=Dt,Bo=(e=Dt)=>e===\"production\",tf=(e=Dt)=>e===\"testing\"||e===\"test\",y0=tf,b0=(e=Dt)=>e===\"staging\",x0=(e=Dt)=>e===\"local\",od=(e=Dt)=>e===\"development\"||e===\"dev\"||e===\"local\",v0=(e,t=Dt)=>t[e],qa=(e=Dt)=>!Bo(e)});function NA(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 BA(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 w0,_0,VC,S0,Ga,Fa,Da,k0=K(()=>{w0=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},_0=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}}},VC=/^((function\\s*\\([^)]*\\)\\s*\\{[^}]*\\})|(\\([^)]*\\)\\s*=>))/,S0=e=>VC.test(e),Ga=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Fa=(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},Da=(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}}),C0,cF=K(()=>{je(),qr(),C0=(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}}),A0,E0,uF=K(()=>{A0=(e,...t)=>{e&&t.map(r=>console.log(r))},E0=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function VA(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 zA(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 O0,T0,P0,R0,fF=K(()=>{je(),Uf(),O0=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),T0=(e,t,r=365)=>{if(Nt(me)||Nt(me.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;me.cookie=`${e}=${t};${o};path=/`},P0=e=>{if(Nt(me)||Nt(me.cookie))return;let t=`${e}=`,r=decodeURIComponent(me.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\"\"},R0=e=>{Nt(me)||Nt(me.cookie)||(me.cookie=e+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}}),La,$0,I0,WA=K(()=>{La={root:[\"body\",\"html\"],head:[\"title\",\"base\",\"meta\",\"style\",\"noscript\",\"script\"],body:new Set([\"string\",\"style\",\"fragment\",\"a\",\"abbr\",\"acronym\",\"address\",\"applet\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"basefont\",\"bdi\",\"bdo\",\"big\",\"blockquote\",\"br\",\"button\",\"canvas\",\"caption\",\"center\",\"cite\",\"code\",\"search\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"dir\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"font\",\"footer\",\"form\",\"frame\",\"frameset\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hr\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"meter\",\"nav\",\"noframes\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"hgroup\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"section\",\"select\",\"small\",\"source\",\"span\",\"strike\",\"strong\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"template\",\"hgroup\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"tr\",\"track\",\"tt\",\"u\",\"ul\",\"var\",\"video\",\"wbr\",\"svg\",\"path\",\"circle\",\"ellipse\",\"line\",\"polygon\",\"polyline\",\"rect\",\"g\",\"defs\",\"symbol\",\"use\",\"text\",\"tspan\",\"image\",\"clipPath\",\"mask\",\"pattern\",\"marker\",\"linearGradient\",\"radialGradient\",\"stop\",\"filter\",\"feGaussianBlur\",\"feOffset\",\"feMerge\",\"feMergeNode\",\"feBlend\",\"feColorMatrix\",\"feFlood\",\"feComposite\",\"foreignObject\"])},$0=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\"]),I0=e=>La.body.has(e)}),Eu,Ny,Ma,sd,Qe,j0,rf,ha,F0,ga,nf,of,ma,sf,jo,zC,Kt,By,ya,ba,D0,xa,L0,M0,af,lf,cf,uf,ff,df,N0,B0=K(()=>{Wa(),GA(),qr(),je(),Eu=\"production\",Ny=e=>e.sourcemap!==!1&&Eu!==\"production\",Ma=e=>{if(e.includes(\"+\"))return e.split(\"+\").filter(Cn);if(e.includes(\"_\")){let[t]=e.split(\"_\");return[t]}if(e.includes(\".\")&&!Cn(e.split(\".\")[1])){let[t]=e.split(\".\");return[t]}return[e]},sd=(e,t,r)=>{let n=[],o=Ma(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},j0=(e,t)=>{if(!e)return t;let{extends:r}=t,n=U(r)?r:[r],o=U(e)?e:[e];return{...t,extends:$a(o,n)}},rf=()=>Math.random().toString(36).substring(2),ha={},F0={},ga=e=>ha[e.__hash],nf=(e,t)=>{let r=rf();return R(e)||(e.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(ha[r]=t),t},of=(e,t)=>e.__hash?t.concat(ga(e)):nf(e,t),ma=(e,t,r,n=new Set,o,s)=>{for(let i of e)U(i)?ma(i,t,r,n,o,s):jo(i,t,r,n,o,void 0,s);return t},sf=(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&&jo(a,t,r,n,o,s,i),t},jo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(U(e))return ma(e,t,r,n,o,i);let a=s;return R(e)?(a=e,e=ba(e,r)):i&&F(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?sf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},zC=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"childExtends\",\"childExtendsRecursive\"]),Kt=(e,t,r,n,o)=>{t=et(t);for(let s in t){if(zC.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?F(a)&&!U(a)?(r[s]=r[s]||{},By(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(F(i)&&F(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];Cn(s)?e[s]=Kt(i,a,l,n,c):Kt(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)&&F(a)){let l=Kt({},i);e[s]=Kt(l,a)}}}}return e},By=(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];F(s)&&!U(s)?(e[o]=e[o]||{},By(e[o],s,r,n)):e[o]=r}}},ya=(e,t,r)=>e.reduce((n,o,s)=>{let i=et(o),a=r?r[s]:void 0;return Kt(n,i,t,a)},{}),ba=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(R(e)){let i=o&&(o[e+\".\"+n]||o[e]||o[\"smbls.\"+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Eu===\"test\"||Eu===\"development\")&&console.warn(\"Extend is string but component was not found:\",e);return}return e},D0=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),xa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ga(e)||[];let o=jo(e,[],t,new Set,r,void 0,n);return r?o:of(e,o)},L0=(e,t)=>{if(!e)return t;let r=U(e)?e:[e];return $a(r,t)},M0=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Cn(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},af=(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 lf(e,t,r),cf(e,t,r),uf(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),Ia(n.__extends)},lf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},cf=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},uf=(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},ff=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Ny(r),a=i?[...n.__extends]:null,l=Ia(n.__extends.map((c,u)=>ba(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&&F(p)&&R(h)&&c.set(p,h)}let u=[],d=xa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=xa(l,o);n.__extendsStack=c}return n.__extendsStack},df=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Ny(r)){let s={},i=n.__extendsNames||[],a=ya(o,s,i),l={};Kt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ya(o);Kt(e,s)}return e},N0=(e,t,r={})=>(af(e,t,r),ff(e,t,r),df(e,t,r),e)});function UA(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function HA(e){return Object.keys(e).filter(t=>/^\\d+$/.test(t))}function qA(e,t,r){let{context:n}=t||{},[o]=Ma(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Cn,GA=K(()=>{B0(),je(),Cn=e=>{if(!R(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function dF(e,t){let{props:r,on:n}=t,o=Ua(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 pF=K(()=>{Zf(),je()});function V0(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&&Ga(this.context))){let f=Ua(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=F(s)||j(s),l=F(i)||j(i);if(a||l)continue;let c=n.charAt(0);if(q0.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=hf.test(n)||H0.test(n)||XA(o),d=Wo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function z0(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&&Ga(this.context);if(s&&i){dF(n,e),delete e.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(q0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=F(l)||j(l),d=F(c)||j(c),f=hf.test(n)||H0.test(n),p=Wo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function W0(e=this){let t=[];return V0.call(this,e,{cachedKeys:t}),z0.call(this,e,{cachedKeys:t}),e}function KA(e={}){return e.on||(e.on={}),e.props||(e.props={}),W0.call(this,e)}function U0(e,t){this.__element.update({props:e},t)}function pf(e){let t={update:U0.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var hf,H0,q0,WC,XA,id,va,G0,wa,_a,Sa,gf,ka,K0,X0,YA=K(()=>{Ha(),pF(),qr(),je(),Zf(),k0(),hf=/^[A-Z]/,H0=/^\\d+$/,q0=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),WC=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),XA=e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))return!1;for(let t in e)if(WC.has(t)||hf.test(t))return!0;return!1},id=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return oe(n)?{...n}:(o.__propsStack.push(n),{})},va=e=>Xt(e)(\"string\",\"number\")?{inheritedString:e}:e,G0=(e,t)=>!e||!t.length?!1:t.includes(e),wa=(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=va(i);n.unshift(l)}if(s){let l=va(s);n.unshift(l)}return n},_a=e=>{let t=new Set;return e.filter(r=>!r||En.has(r)||t.has(r)?!1:(t.add(r),!0))},Sa=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(En.has(o))return n;for(;j(o);)o=Ne(o,t);return Jt(n,et(o,{exclude:En}))},{}),pf(t),t.props),gf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...wa(e,t)]),F(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=_a(o),n.__propsStack},ka=(e,t)=>{let{__ref:r}=e,n=gf(e,t);n.length?Sa(n,e):(r.__propsStack=[],e.props={})},K0=function(e,t,r){let{__ref:n}=e;if(n.__if)ka(e,t);else try{ka(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),e.props={},n.__propsStack=[]}return pf(e),e},X0=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=wa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=_a(o),n.__propsStack.length&&Sa(n.__propsStack,t),t}}),Vy,mf,yf,bf,xf,Y0,vf,wf,_f,Z0,hF=K(()=>{B0(),g0(),qf(),YA(),WA(),je(),Vy=\"production\",mf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=La.body.has(r)&&r;return{text:e,tag:n||o||s||\"string\"}},yf=(e,t,r)=>{if(e===void 0)return(Vy===\"test\"||Vy===\"development\")&&console.warn(r,\"element is undefined in\",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Xt(e)(\"string\",\"number\")?mf(e,t,r):j(e)?{props:e}:e},bf=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},xf=(e,t,r,n,o)=>{if(!t)return o;if(za(t)){let s={key:\":root\",node:t};return o[`${r}_parent`]=s,s}return t},Y0=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===\":root\";r?.root||(r.root=o?e:n?.root)},vf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},wf=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),_f=(e,t,r)=>{let n=bf(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=sd(e,t,r),n.path=vf(e,t,r),n},Z0=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:yf(e,t,r);if(!s)return;let i=xf(s,t,r,n,o),a=nd(s,i,r);_f(s,i,a);let l=id(s,i,a),c=wf(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),J0,Sf,kf,Cf,Af,Q0,Ef,ex,tx,rx,nx,gF=K(()=>{Wa(),Ha(),qr(),je(),J0=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Xt(o)(\"string\",\"number\")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Sf=(e,t)=>{if(e.includes(\"~/\")&&e.split(\"~/\").length>1)return t.root},kf=(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},Cf=(e,t,r={})=>{let n=R(e)?e.split(\"/\"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i===\"__proto__\"||a===\"__proto__\")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Af=(e,t,r={})=>{let n=e.__ref.__state;if(!Ef(e))return;let o=Sf(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll(\"~/\",\"\");else{let i=kf(n,t.state);i&&(s=i,n=n.replaceAll(\"../\",\"\"))}if(s)return Cf(n,s,r)},Q0=(e,t)=>{let r=e.__ref,n=Af(e,t);if(n===void 0)return e.state;if(Xt(n)(\"object\",\"array\"))return et(n);if(Xt(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},Ef=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Xt(r)(\"number\",\"string\",\"boolean\"))},ex=function(e){return oe(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},tx=(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},rx=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=et(n,An),s={[e.key]:o},i=F(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Xf(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},nx=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){Jt(e,t,An);return}(o?td:Pn)(e,t,An)}}),ox,mF=K(()=>{ox=(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)}}}),zy,Of,Vo,Tf,sx,ZA=K(()=>{je(),k0(),zy=(e,t)=>{let r=\"on\"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Of=(e,t,r,n,o)=>{if(e=Fa(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}},Vo=(e,t,r)=>{if(!t)throw new Error(\"Element is required\");Da(e,t,r);let n=zy(e,t);if(n){let{state:o,context:s}=t;return Of(n,t,o,s,r)}},Tf=(e,t,r,n,o,s)=>{if(e=Fa(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}},sx=(e,t,r,n)=>{Da(e,r,t,n);let o=zy(e,r);if(o){let{state:s,context:i}=r;return Tf(o,t,r,s,i,n)}}}),ix,ad,JA=K(()=>{ix={},ad={}}),QA={};X(QA,{setup:()=>eE,supabaseAdapter:()=>lb});var Wy,UC,eE,Ou,HC,lb,yF=K(()=>{\"use strict\";Wy=new Map,UC=(e,t,r)=>`${e}|${t}|${r?\"off\":\"on\"}`,eE=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=UC(l,t,o===!1),u=Wy.get(c);return u||(u=await n(l,t,a),u?.auth&&Wy.set(c,u)),!u||!u.auth?null:lb(u)},Ou=(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},HC=(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},lb=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=Ou(a,o),a=HC(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=Ou(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=Ou(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)})}),tE={};X(tE,{restAdapter:()=>cb,setup:()=>rE});var qC,fr,rE,cb,bF=K(()=>{\"use strict\";qC=(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()},fr=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}},rE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error(\"@symbo.ls/fetch rest: url is required\");return cb(e,t,r,n)},cb=(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 fr(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 fr(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 fr(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\"}`)),fr(qC(y||e,c||\"\",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>fr(l(`rpc/${c}`,f),a({method:\"POST\",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>fr(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 fr(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 fr(l(h,f),a({method:\"DELETE\",headers:s(d)}))}}}}),nE={};X(nE,{localAdapter:()=>ub,setup:()=>oE});var Tu,GC,oE,ub,xF=K(()=>{\"use strict\";Tu=(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},GC=(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}},oE=async({data:e,...t})=>ub(e,t),ub=(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=>Tu(h,d));return GC(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(Tu(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--)Tu(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)}}}}}),oa={};X(oa,{createAdapter:()=>iE,default:()=>cE,executeFetch:()=>Nu,fetchPlugin:()=>lE,initAdapterAuth:()=>sa,parseDuration:()=>$o,queryClient:()=>aE,registerAdapter:()=>sE,resolveDb:()=>fb});var KC,Ji,Uy,sE,iE,fb,$o,Me,Hy,Co,XC,Ao,Eo,Oo,Qi,Pu,ea,YC,qy,Ru,Gy,Ky,Sn,Xy,ZC,Yy,JC,ta,Zy,sa,$u,nt,xt,To,zr,jt,dr,QC,eA,tA,Iu,rA,Nu,aE,lE,cE,Fo=K(()=>{\"use strict\";M(),KC=[\"select\",\"rpc\",\"insert\",\"update\",\"delete\",\"subscribe\"],Ji=Symbol.for(\"@symbo.ls/fetch:BUILTIN_ADAPTERS\"),Uy=(()=>{if(typeof globalThis<\"u\"&&globalThis[Ji])return globalThis[Ji];let e={supabase:()=>Promise.resolve().then(()=>(yF(),QA)),rest:()=>Promise.resolve().then(()=>(bF(),tE)),local:()=>Promise.resolve().then(()=>(xF(),nE))};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Ji,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ji]}catch{}return e})(),sE=(e,t)=>{Uy[e]=t},iE=e=>{let t={};for(let r of KC)e[r]&&(t[r]=e[r]);return t.name=e.name||\"custom\",t},fb=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=Uy[n];if(!o)throw new Error(`Unknown db adapter: \"${n}\". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},$o=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,Hy=new Map,Co=new Map,XC=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=JC(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||\"\")}`;return t?`${n}:${t}`:n},Ao=e=>Me.get(e)||null,Eo=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=Hy.get(e);if(s)for(let i of s)j(i)&&i(o);return o},Oo=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},Qi=e=>{if(e){Me.delete(e);return}Me.clear()},Pu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e==\"number\"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:R(e)?{staleTime:$o(e),gcTime:3e5}:{staleTime:$o(e.stale||e.staleTime)||6e4,gcTime:$o(e.gc||e.gcTime||e.expire)||3e5,key:e.key},ea=null,YC=()=>{ea||(ea=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=Hy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),ea.unref&&ea.unref())},YC(),qy=3,Ru=e=>Math.min(1e3*2**e,3e4),Gy=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:qy,delay:Ru}:typeof t==\"number\"?{count:t,delay:Ru}:{count:t.count??qy,delay:j(t.delay)?t.delay:typeof t.delay==\"number\"?()=>t.delay:Ru}},Ky=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}},Sn={focus:new Set,online:new Set},Xy=!1,ZC=()=>{if(Xy||typeof window>\"u\")return;Xy=!0;let e=()=>{for(let r of Sn.focus)r()},t=()=>{for(let r of Sn.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&e()}),window.addEventListener(\"focus\",e),window.addEventListener(\"online\",t)},Yy=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:\"select\",query:!0,on:\"create\"};if(R(e))return{from:e,method:\"select\",query:!0,on:\"create\"};if(F(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},JC=e=>(!e||j(e),e),ta=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},Zy=(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},sa=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)})},$u=async(e,t)=>{if(j(e.select))return e.auth!==!1&&await sa(e,t),e;if(e.__resolved)return e.auth!==!1&&await sa(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=fb(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 sa(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)},To=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},zr=(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)},dr=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 $u(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:S,cursor:O,getNextPageParam:T,getPreviousPageParam:k,infinite:D,placeholderData:te,initialData:z,select:N,keepPreviousData:ye}=e,pe=R(N)?N:void 0;if(c&&j(t.getQuery)){let ie=t.getQuery(s.name||\"paths\");ie&&(pe=ie.select||ie.length&&ie.join(\",\")||pe)}let be=Zy(u,t,r),he=Pu(d),Qt=Gy(e),Kr=ta(t,r),_d=Kr?`:${Kr}`:\"\",Y=he?d?.key||`${a}:${l}:${JSON.stringify(be||\"\")}${D?\":infinite\":\"\"}${S?\":p\"+JSON.stringify(S):\"\"}${_d}`:null;if(!i.__fetchInitialized&&Y&&(i.__fetchInitialized=!0,z!==void 0)){let ie=j(z)?z():z;Eo(Y,ie,null)}if((l===\"select\"||l===\"rpc\")&&Y&&he){let ie=Ao(Y);if(ie&&!ie.error){let B=Date.now()-ie.time,V=ie.stale||B>(he.staleTime||0),L=ie.data;if(j(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),zr(t,L,m),!V){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(te!==void 0){let B=j(te)?te(t,t.state):te;B!==void 0&&zr(t,B,m)}}if(Y&&Co.has(Y)&&!n.force){let ie=Co.get(Y);try{let B=await Promise.race([ie,new Promise((V,L)=>setTimeout(()=>L(\"DEDUP_TIMEOUT\"),15e3))]);if(B?.data!==void 0){let V=B.data;j(N)&&(V=N(V,t,t.state)),f&&(V=f(V,t,t.state)),zr(t,V,m),nt(t,\"onFetchComplete\",V),xt(e,t,\"onFetchComplete\",V)}}catch{}return}let Sd=!Ao(Y)?.data;jt(t,{isFetching:!0,isLoading:Sd,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),nt(t,\"onFetchStart\"),xt(e,t,\"onFetchStart\");let ke=r?.analyze?.emitNetwork,Xr=ke?typeof performance<\"u\"?performance.now():Date.now():0;ke&&ke({phase:\"start\",mode:\"query\",from:a,method:l,cacheKey:Y,lang:Kr});let kd=Ky(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let L=await s.getSession();if(h===!0&&!L){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 ie=s[l];if(!j(ie))return{data:null,error:{message:`Method \"${l}\" not found on adapter`}};let B={from:a,select:pe,params:be,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},V=ta(t,r);if(V&&(B.headers={...B.headers,\"Accept-Language\":V}),S!==void 0){if(F(S))S.offset!==void 0&&(B.offset=S.offset),S.limit!==void 0&&(B.limit=S.limit),S.cursor!==void 0&&(B.params={...B.params,cursor:S.cursor});else if(typeof S==\"number\"){let L=e.pageSize||y||20;B.offset=(S-1)*L,B.limit=L}}if(O!==void 0&&(B.params={...B.params,cursor:O}),l===\"insert\"||l===\"update\"||l===\"upsert\"){let L;if(g===!0||e.on===\"submit\")L=To(t);else if(U(g)){let W=To(t);L={};for(let Ce of g)L[Ce]=W[Ce]}else t.state?.parse?L=t.state.parse():F(t.state)&&(L={...t.state});f&&(L=f(L,t,t.state)),B.data=L}if(l===\"rpc\"){let L=be;if(e.on===\"submit\"){let W=To(t);L=e.transformParams?e.transformParams(W,t,t.state):W}B.params=L}if(l===\"subscribe\"){let L=s.subscribe({from:a,params:be,on:e.subscribeOn},(W,Ce,Za)=>{zr(t,W,m),nt(t,\"onFetchComplete\",W),xt(e,t,\"onFetchComplete\",W)});return i.__unsubscribe=L,{data:null,error:null,subscribed:!0}}return ie(B)},Qt);Y&&Co.set(Y,kd);try{let ie=await kd;if(ie?.subscribed)return;let{data:B,error:V}=ie||{};if(V){Y&&Eo(Y,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),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:V.message||V,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Xr});return}if(B!==void 0){if((l===\"select\"||l===\"rpc\")&&Y){let W=Eo(Y,B,null);W.gcTime=he?.gcTime||3e5}let L=B;D&&U(B)&&(i.__pages||(i.__pages=[]),n.direction===\"previous\"?i.__pages.unshift(B):i.__pages.push(B),L=i.__pages.flat(),T&&(i.__nextPageParam=T(B,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),k&&(i.__prevPageParam=k(B,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),j(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),(!ye||L!==void 0)&&zr(t,L,m),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),nt(t,\"onFetchComplete\",L),xt(e,t,\"onFetchComplete\",L),ke&&ke({phase:\"success\",mode:\"query\",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Xr})}}catch(ie){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ie,status:\"error\",fetchStatus:\"idle\"}),nt(t,\"onFetchError\",ie),xt(e,t,\"onFetchError\",ie),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:ie.message||String(ie),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Xr})}finally{Y&&Co.delete(Y)}},QC=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||dr;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))},eA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),ZC();let o=e.refetchInterval;if(o){let s=typeof o==\"number\"?o:$o(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&dr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=ta(t,r),a=XC(e,i),l=Ao(a),c=Pu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&dr(e,t,r,{force:!0})};Sn.focus.add(s),n.__fetchCleanups.push(()=>Sn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>dr(e,t,r,{force:!0});Sn.online.add(s),n.__fetchCleanups.push(()=>Sn.online.delete(s))}},tA=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():F(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&&zr(e,i,o),s},Iu=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(zr(e,n,t.as),delete r.__optimisticSnapshot)},rA=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await $u(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=To(t);else if(U(l)){let k=To(t);w={};for(let D of l)w[D]=k[D]}else t.state?.parse?w=t.state.parse():F(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),j(y)&&y(w,t,t.state);let S=m?tA(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 O=r?.analyze?.emitNetwork,T=O?typeof performance<\"u\"?performance.now():Date.now():0;O&&O({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let be=await o.getSession();if(f===!0&&!be){S!==void 0&&Iu(t,e);let he={message:\"Not authenticated\"};nt(t,\"onFetchError\",he),xt(e,t,\"onFetchError\",he);return}}let k=o[i];if(!j(k))return;let D={from:a,data:w,headers:p,baseUrl:h};e.params&&(D.params=Zy(e.params,t,r));let te=ta(t,r);te&&(D.headers={...D.headers,\"Accept-Language\":te});let z=Gy(e),N=await Ky(()=>k(D),z),{data:ye,error:pe}=N||{};if(pe){S!==void 0&&Iu(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pe,status:\"error\",fetchStatus:\"idle\"}),nt(t,\"onFetchError\",pe),j(x)&&x(pe,w,t),j(v)&&v(null,pe,w,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:pe.message||String(pe),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,ye!==void 0){let be=u?{[u]:ye}:ye;t.state?.update&&t.state.update(be,{preventFetch:!0})}if(jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),nt(t,\"onFetchComplete\",ye),xt(e,t,\"onFetchComplete\",ye),j(b)&&b(ye,w,t),j(v)&&v(ye,null,w,t),O&&O({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T}),g){let be=U(g)?g:[g];for(let he of be)if(he===!0||he===\"*\")for(let[Qt]of Me)Qt.startsWith(a+\":\")&&Oo(Qt);else Oo(he)}}catch(k){S!==void 0&&Iu(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:\"error\",fetchStatus:\"idle\"}),nt(t,\"onFetchError\",k),xt(e,t,\"onFetchError\",k),j(x)&&x(k,w,t),j(v)&&v(null,k,w,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:k.message||String(k),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},Nu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=U(o)?o.map(a=>Yy(Ne(a,t),t)).filter(Boolean):[Yy(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?rA:dr;a.on===\"create\"?c(a,t,n):Promise.resolve().then(()=>{QC({...a,__runner:c},t,n)}),!l&&a.on===\"create\"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&eA(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)dr(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};dr(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};dr(c,t,n,{direction:\"previous\",force:!0})}},aE={invalidateQueries:e=>{if(!e){Oo();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Oo(t);else if(U(e)){let t=e.join(\":\");for(let[r]of Me)r.includes(t)&&Oo(r)}},removeQueries:e=>{if(!e){Qi();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Qi(t)},getQueryData:e=>Ao(e)?.data??void 0,setQueryData:(e,t)=>{let r=Ao(e),n=j(t)?t(r?.data):t;Eo(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await $u(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=Eo(o,i.data,null);a.gcTime=Pu(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>Qi(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Qi(r))}},lE={name:\"fetch\",create(e){let t=e.fetch;t&&(e.parent||Co.clear(),Nu(t,e,e.state,e.context))}},cE=Nu});function uE(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 fE(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 dE(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 pE(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 ax(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(F(n)&&o)ax.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 hE(e){let t=this;if(Vo(\"beforeRemove\",t,e)===!1)return t;j(t.node.remove)?t.node.remove():Bo()||(console.warn(\"This item cant be removed\"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Kf(t.parent.__ref.__children,t.key)),Vo(\"remove\",t,e)}function gE(e){return this[e]}function mE(e,t){let r=this;if(e)return r.update(e,t),r}function yE(e){return e?this.__ref&&this.__ref[e]:this.__ref}function bE(){return this.getRef(\"__children\").map(e=>this[e])}function xE(){return this.getRef().path}function vE(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=db();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=db()),e?t?.[e]:t}function wE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function _E(e){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&e?this.getRoot(\"data\")[e]:this.getRoot(\"data\")}function SE(e){let t=this.getRoot()?.context;return e?t[e]:t}function kE(e){let t=this.context;return e?t[e]:t}function lx(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Wo.has(r)&&!Jf.has(r)||t.push(r);return t}function cx(e=[]){let t=this,r={},n=lx.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 No(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Pf(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=cx.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=>oe(a)?Pf.call(a,e,t):a):oe(i)&&(n[s]=Pf.call(i,e,t))}return n}function ux(...e){if(gr!==\"test\"&&gr!==\"development\")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:\n`,\"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 CE(...e){(gr===\"test\"||gr===\"development\")&&console.log(...e)}function AE(...e){(gr===\"test\"||gr===\"development\")&&console.warn(...e)}function Rf(...e){if(gr===\"test\"||gr===\"development\"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&ux.call(this),new Error(...e)}}function EE(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function OE(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 TE(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 PE(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=>{Rf.call(this,s)}),o}catch(o){if(Rf.call(this,o),r?.strictMode)throw o}}async function RE(){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(()=>(Fo(),oa));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Fo(),oa));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Fo(),oa)).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(()=>(Fo(),oa));await o(n,e.context)}return n}function $E(e){let t=this,r=e||ad.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Bu(t,n),r===!0)return n;let o=jE[r];return o?o(n):n}function IE(e,t){return!!(ja.has(e)||t?.context?.methods?.[e])}var gr,Jy,fx,db,dx,Bu,nA,Qy,oA,sA,iA,aA,lA,cA,jE,vF=K(()=>{ZA(),Ha(),je(),qr(),MA(),Wa(),JA(),gr=\"production\",Jy=null,fx=e=>{Jy=e||null},db=()=>Jy||null,dx=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),Bu=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&nA(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Bu(l,t)}let s=r.contentElementKey||\"content\",i=e[s];i&&i.__ref&&Bu(i,t)},nA=(e,t)=>{let r=t.replaceAll(\"../\",\"\").replaceAll(\"~/\",\"\").split(\"/\"),n=e;for(let o=0;o<r.length;o++){let s=r[o];o===r.length-1?n[s]||(n[s]=!0):(n[s]===!0&&(n[s]={}),n[s]||(n[s]={}),n=n[s])}},Qy=(e,t=0)=>{let r=\" \".repeat(t),n=Object.entries(e);return n.length?n.map(([o,s])=>s===!0?`${r}${o}`:`${r}${o} {\n${Qy(s,t+1)}\n${r}}`).join(`\n`):\"\"},oA=e=>`{\n${Qy(e,1)}\n}`,sA=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},iA=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(\"&\")},aA=(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?`\n`+n.join(`\n`):\"\";return`SELECT ${l}\nFROM ${a}${c}`},lA=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},cA=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)}},jE={graphql:oA,\"json-api\":sA,odata:iA,sql:aA,supabase:cA,paths:lA}}),uA,px,wF=K(()=>{g0(),uA={snapshotId:rd},px=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let i=uA.snapshotId();return r.__currentSnapshot=i,[i,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}}),$f,hx,_F=K(()=>{$f=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),hx=e=>typeof e==\"string\"&&$f.has(e)});async function FE(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 SF=K(()=>{});function kF(e){return/^[0-9.]+$/.test(e)&&e!==\"\"}var Lt,If,gx,jf,mx,CF=K(()=>{Lt={skypack:{url:\"https://cdn.skypack.dev\",formatUrl:(e,t)=>`${Lt.skypack.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}`},esmsh:{url:\"https://esm.sh\",formatUrl:(e,t)=>`${Lt.esmsh.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}`},unpkg:{url:\"https://unpkg.com\",formatUrl:(e,t)=>`${Lt.unpkg.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}?module`},jsdelivr:{url:\"https://cdn.jsdelivr.net/npm\",formatUrl:(e,t)=>`${Lt.jsdelivr.url}/${e}${t!==\"latest\"?`@${t}`:\"\"}/+esm`},symbols:{url:\"https://pkg.symbo.ls\",formatUrl:(e,t)=>e.split(\"/\").length>2||!kF(t)?`${Lt.symbols.url}/${e}`:`${Lt.symbols.url}/${e}/${t}.js`}},If={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},gx=(e={})=>{let{packageManager:t}=e;return If[t]||null},jf=(e,t=\"latest\",r=\"esmsh\")=>(Lt[r]||Lt.esmsh).formatUrl(e,t),mx=(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]=jf(s,i,t)}return`<script type=\"importmap\">{\n \"imports\": ${JSON.stringify(o,null,2)}\n }<\\/script>`}}),yx,AF=K(()=>{yx=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}`}}),bx,EF=K(()=>{bx=(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)})}}),xx,OF=K(()=>{xx=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),vx,TF=K(()=>{vx=e=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(e)});function DE(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 LE(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 wx,_x,Sx,kx,Cx,PF=K(()=>{wx=(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)}}),_x=(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)}),Sx=(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}`)},kx=(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)}}),Cx=(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 RF(e,t){if(!t||typeof t!=\"object\")return e;let r=o=>{if(!NE(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 ju(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 $F(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]??ju(s,p)??u;if(f===\"getLocalStateLang\")return ju(i,p+o)??u;let h=ju(i,p);return h!==void 0?h:s[p]??ju(s,p)??u}));return a}function fA(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 ME(e,t,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=e.pages?.[t],i=F(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=fA(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=fA(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o===\"development\"?f.title=`${g} / dev:symbo.ls`:o===\"staging\"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title=\"Symbols demo\"}f=$F(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=RF(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,dA,Ax,NE,IF=K(()=>{je(),ot=e=>{if(e==null)return\"\";let t={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#039;\"};return e.toString().replace(/[&<>\"']/g,r=>t[r])},dA=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}=\"${ot(r)}\"`).join(\" \"),Ax=(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=dA(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(`\n`)),NE=e=>typeof e==\"string\"&&e.length>0&&!e.startsWith(\"/\")&&!e.startsWith(\"http\")}),Ff,Ex,jF=K(()=>{je(),Ff=(e,t)=>(U(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Ex=(e,t)=>(e=parseFloat(e),F(t)&&(t=Object.values(t)),Ff(e,t))});function Na(e){let t=String(e||\"\").trim();if(!t)return{owner:pb,key:\"\",full:\"\"};let r=null,n=t;if(t.includes(\"/\")){let s=t.indexOf(\"/\");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\\.symbo\\.ls$/iu,\"\"),r||(r=pb);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function Ox(e,t={}){return(t.provider||\"kv\")===\"api\"?pA(e,t):await FF(e,t)||pA(e,t)}async function FF(e,t={}){let r=t.kvBaseUrl||VE,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 pA(e,t={}){let r=t.apiBaseUrl||zE,{key:n}=Na(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}=Na(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 BE(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(F(r))return r;if(R(r)){let{full:n}=Na(r);if(!n)return null;try{let o=await Ox(n,t);return o||console.warn(`[smbls] Shared library \"${n}\" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library \"${n}\":`,o.message),null}}return null}))).filter(Boolean)}var pb,VE,zE,Ca,Tx,DF=K(()=>{je(),pb=\"system\",VE=\"https://smbls-kv.nika-980.workers.dev\",zE=\"https://api.symbols.app\",Ca=(e,t)=>{for(let r in t)r in e?F(e[r])&&F(t[r])&&Ca(e[r],t[r]):e[r]=t[r]},Tx=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(F(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(F(n[o])&&F(e[o]))if(o===\"designSystem\")Ca(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])}}}}),Px,Rx,$x,ld,Ix,cd,jx,Ka,LF=K(()=>{je(),Px=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn(\"Failed to copy text: \",t)}},Rx=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)}},$x=e=>e.replace(/[^a-zA-Z0-9_]/g,\"\"),ld=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,\"\")),Ix=e=>e&&e.replace(/\\w\\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),cd=e=>e.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),jx=(e=\"\")=>{if(typeof e!=\"string\")return;let t=e.replace(/([A-Z])/g,\" $1\");return t.charAt(0).toUpperCase()+t.slice(1)},Ka=e=>{if(U(e))return e;if(R(e))return e.split(\" \");if(F(e))return Object.values(e);if(Tn(e))return[e]}}),Fx,MF=K(()=>{Fx=()=>{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}}),Yt,Do,ud,fd,NF=K(()=>{Yt=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},Do=(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(\", \")},ud=e=>{if(!e||!Array.isArray(e.variants))return\"\";let t=e.variants.filter(r=>r.format===e.type);return Do(t,{keepOneX:!1})},fd=(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:Do(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Do(o,{keepOneX:!1}),i={src:e.src,alt:t||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}}),BF={};X(BF,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>Jb,DOMQ_PROPERTIES:()=>Wo,ENV:()=>m0,HTML_TAGS:()=>La,METHODS:()=>ja,METHODS_EXL:()=>Qf,NODE_ENV:()=>Dt,OPTIONS:()=>ad,PACKAGE_MANAGER_TO_CDN:()=>If,PARSED_DOMQ_PROPERTIES:()=>Jf,PROPS_METHODS:()=>En,STATE_METHODS:()=>An,STATE_PROPERTIES:()=>Zb,SVG_TAGS:()=>$0,TYPES:()=>ca,UNIVERSAL_RESERVED_KEYS:()=>$f,addCaching:()=>_f,addContext:()=>wf,addExtend:()=>L0,addExtends:()=>Qe,addItemAfterEveryElement:()=>Mb,addProtoToArray:()=>Xf,addRef:()=>bf,applyDependentState:()=>rx,applyEvent:()=>Of,applyEventUpdate:()=>Tf,applyExtends:()=>N0,applyProps:()=>ka,arrayContainsOtherArray:()=>Rb,arraysEqual:()=>Bb,arrayzeValue:()=>Ka,buildImgSrcset:()=>ud,buildSourcesAndImg:()=>fd,cache:()=>ix,call:()=>PE,captureSnapshot:()=>px,checkForStateTypes:()=>J0,checkIfInherits:()=>Ef,checkIfStringIsInArray:()=>Wb,clone:()=>e0,cloneAndMergeArrayExtend:()=>ya,cloneFunction:()=>BA,concatAddExtends:()=>j0,copyJavaScriptToClipboard:()=>Rx,copyStringToClipboard:()=>Px,createBasedOnType:()=>yf,createElement:()=>Z0,createElementExtends:()=>af,createExtends:()=>sd,createExtendsFromKeys:()=>Ma,createExtendsStack:()=>ff,createIfConditionFlag:()=>C0,createInheritedState:()=>Q0,createKey:()=>nd,createNestedObject:()=>l0,createNestedObjectByKeyPath:()=>tx,createObjectWithoutPrototype:()=>ef,createParent:()=>xf,createPath:()=>vf,createProps:()=>id,createPropsStack:()=>gf,createRoot:()=>Y0,createScope:()=>ox,createSnapshotId:()=>rd,customDecodeURIComponent:()=>Yb,customEncodeURIComponent:()=>Xb,cutArrayAfterValue:()=>Db,cutArrayBeforeValue:()=>Fb,debounce:()=>NA,debounceOnContext:()=>w0,decodeNewlines:()=>Kb,deepClone:()=>et,deepContains:()=>i0,deepDefaults:()=>Ca,deepDestringifyFunctions:()=>da,deepExtend:()=>sf,deepMerge:()=>Jt,deepMergeExtends:()=>Kt,deepStringifyFunctions:()=>ua,defineSetter:()=>dx,destringifyGlobalScope:()=>t0,detectHeightOnInit:()=>bx,detectInfiniteLoop:()=>d0,document:()=>me,encodeNewlines:()=>Gb,error:()=>Rf,excludeKeysFromObject:()=>h0,exec:()=>Ne,extendCachedRegistry:()=>F0,extendStackRegistry:()=>ha,extractArrayExtend:()=>ma,fetchLibraryData:()=>Ox,fibonacciNumberByIndex:()=>xx,filterArrays:()=>Vb,filterArraysFast:()=>zb,finalizeExtends:()=>df,findClosestNumber:()=>Ff,findClosestNumberInFactory:()=>Ex,findInheritedState:()=>Af,findKeyPosition:()=>Hb,flattenExtend:()=>jo,formatDate:()=>yx,generateHash:()=>rf,generateKey:()=>pa,generateMetaTags:()=>Ax,get:()=>gE,getCDNUrl:()=>jf,getCapitalCaseKeys:()=>UA,getCdnProviderFromConfig:()=>gx,getChildStateInKey:()=>Cf,getChildren:()=>bE,getContext:()=>kE,getCookie:()=>P0,getDB:()=>RE,getEmotionStylesheet:()=>Fx,getExtendsInElement:()=>M0,getExtendsStack:()=>xa,getExtendsStackRegistry:()=>of,getFrequencyInArray:()=>$b,getHashedExtend:()=>ga,getImportMapScript:()=>mx,getInObjectByPath:()=>f0,getLocalStorage:()=>VA,getNev:()=>v0,getPageMetadata:()=>ME,getParentStateInKey:()=>kf,getPath:()=>xE,getQuery:()=>$E,getRef:()=>yE,getRoot:()=>wE,getRootContext:()=>SE,getRootData:()=>_E,getRootState:()=>vE,getRootStateInKey:()=>Sf,getSpreadChildren:()=>HA,global:()=>Ob,hasFunction:()=>Io,hasHandlerPlugin:()=>Ga,hasOwnProperty:()=>n0,inheritChildExtends:()=>cf,inheritChildPropsExtends:()=>lf,inheritParentProps:()=>wa,inheritRecursiveChildExtends:()=>uf,initProps:()=>K0,is:()=>Xt,isArray:()=>U,isBoolean:()=>Xu,isContextComponent:()=>qA,isCyclic:()=>p0,isDOMNode:()=>st,isDate:()=>Zu,isDefined:()=>No,isDevelopment:()=>od,isEmpty:()=>Ju,isEmptyObject:()=>o0,isEqualDeep:()=>Qu,isFunction:()=>j,isHtmlElement:()=>Hf,isLocal:()=>x0,isMethod:()=>IE,isMobile:()=>O0,isNode:()=>za,isNot:()=>Pb,isNotProduction:()=>qa,isNull:()=>Yu,isNumber:()=>Tn,isObject:()=>F,isObjectLike:()=>oe,isPhoto:()=>vx,isProduction:()=>Bo,isStaging:()=>b0,isState:()=>ex,isString:()=>R,isStringFunction:()=>S0,isTest:()=>tf,isTesting:()=>y0,isUndefined:()=>Nt,isUniversallyReservedKey:()=>hx,isValidHtmlTag:()=>I0,joinArrays:()=>$a,jointStacks:()=>D0,keys:()=>lx,loadCssFile:()=>kx,loadJavascript:()=>Cx,loadJavascriptFile:()=>wx,loadJavascriptFileEmbedSync:()=>Sx,loadJavascriptFileSync:()=>_x,loadRemoteCSS:()=>LE,loadRemoteScript:()=>DE,log:()=>CE,logGroupIf:()=>E0,logIf:()=>A0,lookdown:()=>dE,lookdownAll:()=>pE,lookup:()=>fE,lowercaseFirstLetter:()=>Ua,makeObjectWithoutPrototype:()=>s0,map:()=>Qb,mapStringsWithContextComponents:()=>ba,matchesComponentNaming:()=>Cn,memoize:()=>_0,merge:()=>it,mergeSharedLibraries:()=>Tx,nextElement:()=>EE,normalizeLibraryKey:()=>Na,objectToString:()=>fa,objectizeStringProperty:()=>va,overwrite:()=>ed,overwriteDeep:()=>Pn,overwriteShallow:()=>td,overwriteState:()=>nx,parse:()=>cx,parseDeep:()=>Pf,pickupElementFromProps:()=>z0,pickupPropsFromElement:()=>V0,previousElement:()=>OE,propExists:()=>G0,propertizeElement:()=>W0,propertizeUpdate:()=>KA,remove:()=>hE,removeChars:()=>$x,removeCookie:()=>R0,removeDuplicateProps:()=>_a,removeDuplicatesInArray:()=>Ia,removeFromArray:()=>Ib,removeFromObject:()=>a0,removeNestedKeyByPath:()=>c0,removeValueFromArray:()=>Kf,removeValueFromArrayAll:()=>Lb,reorderArrayByValues:()=>Nb,replaceLiteralsWithObjectFields:()=>DA,replaceOctalEscapeSequences:()=>qb,resolveAsset:()=>Yt,resolveHandler:()=>Fa,resolveSharedLibraries:()=>BE,returnValueAsText:()=>mf,runPluginHook:()=>Da,self:()=>Tb,setActiveRootState:()=>fx,setCookie:()=>T0,setHashedExtend:()=>nf,setInObjectByPath:()=>u0,setLocalStorage:()=>zA,setNodeStyles:()=>ax,setProps:()=>mE,setPropsPrototype:()=>pf,spotByPath:()=>uE,srcsetFor:()=>Do,stringIncludesAny:()=>Yf,stringToObject:()=>r0,swapItemsInArray:()=>jb,syncProps:()=>Sa,toCamelCase:()=>ld,toDashCase:()=>cd,toDescriptionCase:()=>jx,toTitleCase:()=>Ix,toggleFullscreen:()=>FE,triggerEventOn:()=>Vo,triggerEventOnUpdate:()=>sx,trimStringFromSymbols:()=>Ub,unstackArrayOfObjects:()=>Gf,update:()=>U0,updateProps:()=>X0,variables:()=>TE,verbose:()=>ux,warn:()=>AE,window:()=>se});var M=K(()=>{g0(),MA(),je(),qr(),k0(),Wa(),qf(),cF(),uF(),Zf(),Uf(),fF(),WA(),GA(),YA(),B0(),hF(),gF(),Ha(),mF(),vF(),JA(),wF(),ZA(),_F(),SF(),CF(),AF(),EF(),OF(),TF(),PF(),IF(),jF(),DF(),LF(),MF(),NF()}),VF=Eb((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\":\"\")}}),zF=Eb((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=VF(),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),S=w-(h||w);v.diff=S,v.prev=h,v.curr=w,h=w,x[0]=s.coerce(x[0]),typeof x[0]!=\"string\"&&x.unshift(\"%O\");let O=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(T,k)=>{if(T===\"%%\")return\"%\";O++;let D=s.formatters[k];if(typeof D==\"function\"){let te=x[O];T=D.call(v,te),x.splice(O,1),O--}return T}),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}),WF=Eb((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=zF()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return\"[UnexpectedJSONParseError]: \"+c.message}}});var WE={};X(WE,{CSS_NATIVE_COLOR_REGEX:()=>$n,CSS_UNITS:()=>Lx,applyMediaSequenceVars:()=>Lf,applySequenceGlobalVars:()=>Kx,applySequenceVars:()=>gd,changeLightness:()=>XF,colorStringToRgbaArray:()=>Rn,convertSvgToSymbol:()=>fO,findHeadingLetter:()=>lO,findHeadings:()=>cO,generateSequence:()=>Ur,generateSequencePosition:()=>ID,generateSprite:()=>gb,generateSubSequence:()=>qx,getColorShade:()=>KE,getDefaultOrFirstKey:()=>Mx,getFnPrefixAndValue:()=>Ya,getFontFace:()=>JF,getFontFaceEach:()=>pd,getFontFaceEachString:()=>JE,getFontFaceString:()=>QE,getFontFormat:()=>YE,getRgbTone:()=>Aa,getSequenceValue:()=>Gx,getSequenceValueBySymbols:()=>aO,getSequenceValuePropertyPair:()=>Va,getSubratio:()=>sO,getSubratioDifference:()=>Hx,hexToRgb:()=>HF,hexToRgbArray:()=>UE,hexToRgba:()=>GF,hslToRgb:()=>GE,isCSSVar:()=>We,isGoogleFontsUrl:()=>Nx,isResolvedColor:()=>Uo,isScalingUnit:()=>Dx,mixTwoColors:()=>UF,mixTwoRgb:()=>KF,mixTwoRgba:()=>XE,numToLetterMap:()=>Wr,opacify:()=>hb,parseColorToken:()=>Xa,resolveFileUrl:()=>hr,returnSubThemeOrDefault:()=>ZF,rgbArrayToHex:()=>HE,rgbToHSL:()=>qE,rgbToHex:()=>qF,setCustomFont:()=>Vx,setCustomFontMedia:()=>Ba,setFontImport:()=>Bx,setInCustomFontMedia:()=>ZE,setScalingVar:()=>Ux,setSubScalingVar:()=>oO,setVariables:()=>jD,splitTopLevelCommas:()=>dd});var Dx=e=>e===\"em\"||e===\"rem\"||e===\"vw\"||e===\"vh\"||e===\"vmax\"||e===\"vmin\",Lx=[\"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\"];M();var Rn=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&&me&&se){let t=me.body.appendChild(me.createElement(\"fictum\")),r=\"rgb(1, 2, 3)\";if(t.style.color=r,t.style.color!==r){me.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color===\"\")return me.body.removeChild(t),[0,0,0,0];e=se.getComputedStyle(t).color,me.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]},UF=(e,t,r=.5)=>(e=Rn(e),t=Rn(t),XE(e,t,r)),HF=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},UE=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},qF=(e,t,r)=>\"#\"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),HE=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),GF=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},KF=(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})`},XF=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},qE=(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]},GE=(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)],KE=(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)},XE=(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})`},hb=(e,t)=>{let r=Rn(e);if(!r){qa()&&console.warn(e+\" color is not rgba\");return}return r[3]=t,`rgba(${r})`},We=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,$n=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,YF=/^([a-zA-Z]\\w*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,Xa=e=>{if(!R(e))return null;if($n.test(e))return{passthrough:e};if(We(e))return{cssVar:e};let t=e.match(YF);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}},Uo=e=>R(e)&&(e.includes(\"rgb\")||e.includes(\"var(\")||e.includes(\"#\")),dd=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},Aa=(e,t)=>{R(e)&&e.includes(\"rgb\")&&(e=Rn(e).join(\", \")),R(e)&&(e=e.split(\",\").map(o=>parseFloat(o.trim()))),Tn(t)&&(t+=\"\");let r=HE(e),n=t.slice(0,1);if(n===\"-\"||n===\"+\"){let o=KE(r,parseFloat(t));return UE(o).join(\", \")}else{let[o,s,i]=e,a=qE(o,s,i),[l,c,u]=a;return GE(l,c,parseFloat(t)/100*255)}},ZF=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},hr=(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},Mx=(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},YE=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},Nx=e=>e&&(e.includes(\"fonts.googleapis.com\")||e.includes(\"fonts.gstatic.com\")),Bx=e=>`@import url('${e}');`,ZE=e=>`@font-face { ${e} }`,Vx=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s==\"string\"&&s).map(s=>{let i=YE(s),a=i?` format('${i}')`:\"\";return`url('${s}')${a}`}).join(`,\n `);return`\n font-family: '${e}';\n font-style: ${n.fontStyle||\"normal\"};${r?`\n font-weight: ${r};`:\"\"}${n.fontStretch?`\n font-stretch: ${n.fontStretch};`:\"\"}${n.fontDisplay?`\n font-display: ${n.fontDisplay};`:\"\"}\n src: ${o};`},Ba=(e,t,r,n)=>`@font-face {${Vx(e,t,r,n)}\n}`,pd=(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=>hr(u,r)||u):hr(o,r)||o;return Vx(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),JF=e=>Object.keys(e).map(t=>pd(t,e[t].value)),JE=(e,t,r)=>{if(t&&t.isVariable){let o=hr(t.url,r)||t.url;return Nx(o)?Bx(o):Ba(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\"})}if(t[0])return pd(e,t,r).map(ZE);let n=Array.isArray(t.url)?t.url.map(o=>hr(o,r)||o):hr(t.url,r)||t.url;return Ba(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},QE=(e,t)=>Object.keys(e).map(r=>JE(r,e[r].value,t));M();M();M();var eO={};X(eO,{animation:()=>xD,breakpoints:()=>yD,class:()=>CD,color:()=>lD,devices:()=>bD,document:()=>mD,font:()=>tD,fontFace:()=>oD,fontFamily:()=>rD,fontFamilyTypes:()=>nD,gradient:()=>cD,grid:()=>kD,icons:()=>dD,media:()=>sD,reset:()=>AD,semanticIcons:()=>pD,sequence:()=>hd,shadow:()=>fD,spacing:()=>aD,svg:()=>vD,svgData:()=>wD,templates:()=>_D,theme:()=>uD,timing:()=>gD,typography:()=>tO,unit:()=>QF,vars:()=>ED});var hd={\"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},QF={default:\"em\"},eD={browserDefault:16,base:16,type:\"font-size\",ratio:hd[\"minor-third\"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:\"em\",templates:{},sequence:{},scales:{},vars:{}},tO=eD,tD={},rD={},nD={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},oD={},sD={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"},iD={base:tO.base,type:\"spacing\",ratio:hd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},aD=iD,lD={},cD={},uD={},fD={},dD={},pD={},hD={default:150,base:150,type:\"timing\",ratio:hd[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},gD=hD,mD={},yD={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},bD={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]},xD={},vD={},wD={},_D={},SD={},kD=SD,CD={},AD={},ED={},hA={},gA={},Fu=eO,Vu={},rO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Fu){let t=e.toLowerCase();Vu[t]=Fu[e];let r=rO(t);r!==t&&(Vu[r]=Fu[e]),t!==e&&(Vu[e]=Fu[e])}var zx={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:hA,cssMediaVars:gA,CSS_VARS:hA,CSS_MEDIA_VARS:gA,_scratchConfig:!0,...Vu},OD=et(zx),Df={active:\"0\",0:zx};var Ea=[],TD=e=>{e&&e._scratchConfig&&Ea.push(e)},PD=()=>{Ea.pop()},H=e=>Ea.length?Ea[Ea.length-1]:Df[e||Df.active]||zx,RD=e=>{if(F(e))return Df.active=\"1\",Df[1]=Jt(e,et(OD)),e};var Wr={\"-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\"},Wx=(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=nO.has(t.unit)?\"rem\":t.unit;t.vars[n]=s+l},Ya=e=>{if(!e.includes(\"(\"))return e;let t=e.split(\"(\")[0],r=e.slice(e.indexOf(\"(\")+1,e.lastIndexOf(\")\"));return[t,r]},nO=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),Ux=(e,t)=>{let{base:r,type:n,unit:o}=t,s=nO.has(o)?\"rem\":o,i=(Dx(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=Wr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Wr[e+1],u=Math.abs(e),d=Math.pow(iO,2*u),f=Wr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},oO=(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}))`},Hx=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},sO=(e,t)=>Hx(e,t).map(r=>r/e),qx=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=Hx(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=oO(h+1,c,i,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Wx(x,t)})},iO=1.618,$D=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(iO,2*n);return Math.max(o,s)},Ur=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=Wr[c],d=$D(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Ux(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Wx(g,e),s&&qx(g,e)}return e},ID=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Wr[t],a=R(t)?Object.entries(Wr).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=Ux(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Wx(p,l),s&&qx(p,l),l},Gx=(e=\"A\",t)=>{let r=H(),{unit:n}=r;if(R(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(Lx.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+\"-\":\"\"}${cd(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)},aO=(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:Gx(o,t)}).join(\"\")},Va=(e,t,r,n)=>{if(typeof e!=\"string\")return H().verbose&&console.warn(t,e,\"is not a string\"),{[t]:e};if(e===\"-\"||e===\"\")return{};if(!n&&e.includes(\"(\")){let o=Ya(e);n=o[0],e=o[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(o=>e.includes(o+\" \")).length?e=aO(e,r):e=Gx(e,r),{[t]:n?`${n}(${e})`:e}},lO=(e,t)=>Wr[e-t],cO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=lO(t,o);return r[s]})};M();var jD=(e,t)=>{let r=H(),{cssVars:n}=r;oe(e.value)||(n[e.var]=e.value)},Kx=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(l&&l.replace(\".\",\"-\"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=sO(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})`},uO=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),gd=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=uO.has(i)?\"rem\":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||Kx(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\"})`)}},Lf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=uO.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}`]={}),Kx(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=(Dx(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}};M();var FD=qa(),gb=e=>{let t=H(),r=\"\";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},DD=e=>{let t=e&&(e.default||e);if(!R(t))return FD&&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},{}):{}},LD=(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},fO=(e,t)=>{let r=DD(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,i=LD(t,e).replace(\"<svg\",`<symbol id=\"${e}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${s}\"`);return i=i.replace(/width=\"[^\"]*\"/,\"\"),i=i.replace(/height=\"[^\"]*\"/,\"\"),i=i.replace(\"</svg\",\"</symbol\"),i=BD(i),i},MD=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",ND=new RegExp(`<(${MD})\\\\b([^>]*?)\\\\s*/>`,\"g\"),BD=e=>e.replace(ND,\"<$1$2></$1>\"),dO={};X(dO,{appendSVGSprite:()=>EO,appendSvgIconsSprite:()=>TO,applyDocument:()=>AO,applyHeadings:()=>bO,applyReset:()=>RO,applySpacingSequence:()=>_O,applyTimingSequence:()=>CO,applyTypographySequence:()=>xO,checkIfBoxSize:()=>wO,getColor:()=>Te,getFontFamily:()=>mO,getFontSizeByKey:()=>vO,getMediaColor:()=>_t,getMediaTheme:()=>Hr,getShadow:()=>kO,getSpacingBasedOnRatio:()=>zo,getSpacingByKey:()=>ze,getTheme:()=>Xx,getTimingByKey:()=>pr,getTimingFunction:()=>On,runThroughMedia:()=>yO,setColor:()=>Oa,setFont:()=>gO,setFontFamily:()=>bb,setGradient:()=>Ta,setMediaTheme:()=>Yx,setSVG:()=>Jx,setShadow:()=>Pa,setSvgIcon:()=>OO,setTheme:()=>pO,splitSpacedValue:()=>SO});M();var Te=(e,t,r)=>{let n=r||H();if(!R(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=Xa(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=Aa(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||H();if(t||(t=n.globalTheme===\"auto\"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,\"- type for color is not valid\");return}if(We(e))return`var(${e})`;let o;if(U(e))o=e[0];else{let c=Xa(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=F(a);if(l&&a.value)return Te(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Te(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]=Te(e,u,r)}return c}}else return n.verbose&&console.warn(\"Can't find color\",e),e},Oa=(e,t,r)=>{let n=H();if(R(e)&&We(e)){let h=e.slice(2);if(e=Te(h),!(e.includes(\"rgb\")||e.includes(\"var\")||e.includes(\"#\"))){let g=h.split(\" \"),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||U(m)||F(m))&&(n.color[g[0]]=Oa(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=Aa(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:\"1\";if(y)try{let x=Rn(g[0]);x&&x.length>=3?e=`rgba(${Aa(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]}),F(e)){let h={};for(let g in e)h[g]=Oa(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(R(s)&&s.includes(\".\")&&!s.includes(\"(\")){let[h,g]=s.split(\".\"),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat(\"0.\"+g)||1})`)}if(R(s)&&!s.includes(\"(\")&&!s.startsWith(\"#\")){let h=Xa(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||U(g)||F(g))&&(n.color[h.name]=Oa(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Aa(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=Rn(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}},Ta=(e,t,r)=>{let n=H();if(R(e)&&We(e)&&(e=Te(e.slice(2))),U(e))return{\"@light\":Ta(e[0],t,\"light\"),\"@dark\":Ta(e[0],t,\"dark\")};if(F(e)){let s={};for(let i in e)s[i]=Ta(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}};M();var VD=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\"]),mA=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],zD=e=>{for(let t=0;t<mA.length;t++)if(e.includes(mA[t]))return!0;return!1},md=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?Te(e[i]):e[i]}),t},ia=e=>(e.value||(e.value=md(e)),e.value),Xx=(e,t)=>{let r=H();if(r.useVariable)return Hr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(\" \"),i=n[o];if(i){if(!s&&!t)return ia(i);e=[o,s||t]}}if(oe(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return ia(a[s]);if(i&&i[s])return ia(i[s]);if(l&&l[s])return ia(l[s])}else if(F(e))return md(e)},WD=(e,t,r)=>{if(F(t))e.variants.inverse.value=md(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},UD=(e,t,r,n)=>{let o=Xx(r);n[`&:${t}`]=o,F(r)&&!r.value&&(r.value=o)},HD=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return UD(e,n,o,t),e}),e):void 0},qD=(e,t,r,n)=>{let o=Xx(r);n[`@media (prefers-color-scheme: ${t})`]=o,F(r)&&!r.value&&(r.value=o)},GD=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n===\"dark\"||n===\"light\")&&qD(e,n,o,t),n===\"inverse\"&&WD(e,o,t),e}),e):void 0},KD=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:ia(n[o]),e}),e):void 0},pO=(e,t)=>{let r=H();if(r.useVariable)return Yx(e,t);let{state:n,media:o,helpers:s}=e,i=md(e,t),a=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${t}`;return HD(e,i),GD(e,i),KD(e,i),{var:a,value:i,state:n,media:o,helpers:s}},mb=(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===\":\")&&zD(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Te(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!VD.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>oe(f?.[c]));if(u===\".\"&&d){let f=c.slice(1),p={};for(let h in e)oe(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=mb(p,`${t}-${f}`,r)}else if(u===\":\"&&d){let f=c.replace(/^:+/,\"\"),p={};for(let h in e)oe(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=mb(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=Te(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},Yx=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(oe(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith(\"@\")&&oe(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=mb(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]=Yx(u,t,l,n||d)}else if(!a){let d=Te(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?\"-\"+f.join(\"-\"):\"\",h=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&We(e)){let l=o.theme[e.slice(2)];return Hr(l,n)}return i},yb=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(oe(e[n])){if(o===\"@\")continue;o===\":\"?r[`&${n}`]=yb(e[n]):o===\".\"&&(r[`&${n}`]=yb(e[n]))}else r[n]=e[n]}return r},hO=(e,t)=>{let r=t.shift();return e[r]?hO(e[r],t):e},yA=(e,t)=>U(t)?hO(e,t):R(t)&&e[t]?e[t]:e,Hr=(e,t)=>{let r=H();if(R(e)&&We(e)&&(e=Hr(e.slice(2))),!e||!R(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=yA(s,o):s&&t&&(s=yA(s,t)),yb(s)};M();M();var gO=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||U(e)&&!e[0])return;let o;if(e.isVariable){let s=hr(e.url,r.files)||e.url;Nx(s)?o=Bx(s):o=Ba(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\"})}else if(e[0])o=pd(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>hr(i,r.files)||i):hr(e.url,r.files)||e.url;o=Ba(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},mO=(e,t)=>{let r=H(),{fontFamily:n}=r;return Mx(t||n,e)},bb=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),F(s)&&(s=Ka(s));let a=`--font-family-${t}`,l=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};M();var yO=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)===\"@\",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;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:{}}),Ur(i),Lf(e,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),Ur(i),Lf(e,o)}},bO=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=cO(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}}}},xO=()=>{let e=H(),{typography:t}=e;Ur(t),bO(t),gd(t),yO(t)},vO=e=>{let t=H(),{typography:r}=t;return Va(e,\"fontSize\",r)};M();M();var XD=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:{}}),Ur(r),Lf(e,t)}},wO=e=>{let t=e.toLowerCase(),r=t.includes(\"width\")||t.includes(\"height\"),n=t.includes(\"border\")||t.includes(\"outline\");return r&&!n},_O=()=>{let e=H(),{spacing:t}=e;Ur(t),gd(t),XD(t)},YD=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:Ur(e)},ze=(e,t=\"padding\",r,n)=>{let o=YD(r);if(R(e)&&!n&&e.includes(\"(\")){let i=Ya(e);n=i[0],e=i[1]}let s=n?[e]:Ka(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)=>Va(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Va(e,t,o,n)}},zo=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes(\"(\")){let a=Ya(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)},SO=e=>{let t=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=Lx.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(\" \")};M();var Pa=(e,t,r,n)=>{let o=H();if(U(e))return{\"@light\":Pa(e[0],t,\"light\"),\"@dark\":Pa(e[1],t,\"dark\")};if(F(e)){let i={};for(let a in e)i[a]=Pa(e[a],t,a.startsWith(\"@\")?a.slice(1):a);return i}R(e)&&!$n.test(e)&&(e=dd(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=Te(a);if(Uo(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}},kO=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,\"- type for color is not valid\");return}if(We(e))return`var(${e})`;let[n]=U(e)?e:e.split(\" \"),o=r.shadow[n],s=F(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};M();var CO=()=>{let e=H(),{timing:t}=e;Ur(t),gd(t)},On=e=>{let t=H(),{timing:r}=t;return r[e]||r[ld(e)]||e},pr=(e,t=\"timing\")=>{let r=H(),{timing:n}=r;return Va(e,t,n)};M();var AO=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:Mx(r),fontSize:o.base,lineHeight:o.lineHeight})};M();var Zx={document:me},Jx=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn(\"setSVG: val is not defined\",t);return}return r.useSvgSprite?fO(t,e):e},EO=(e,t=Zx)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];PO(n,t)},OO=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?Jx(e,t):e},TO=(e,t=Zx)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];PO(n,t)},eb=(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},ZD=(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},bA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},PO=(e,t=Zx)=>{let r=H(),n=t.document||me;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),gb(e);let o=n.querySelector(\"#svgSprite\"),s=gb(e),i=`<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute\" id=\"svgSprite\">${s}</svg>`,a=ZD(n,s);if(o)if(a)bA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML(\"beforeend\",s);else{let l=eb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=eb(n);l&&l.nodeType&&(bA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML(\"afterbegin\",i);else{let l=eb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};M();var RO=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[\":root\"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Hr(\"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?Hr(\"document\"):{};if(r.html&&Pn(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 Jt(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}})}};M();var JD=new Set([\"none\",\"hidden\",\"dotted\",\"dashed\",\"solid\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\"]),QD=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),eL=e=>JD.has(e),kn=e=>{let t=e+\"\";if($n.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(eL(n)||/^\\d/.test(n)||n===\"0\")return n;let o=Te(n);if(Uo(o))return o;let s=ze(n,\"border\");return s&&s.border?s.border:n}).join(\" \")},tL=e=>$n.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=Te(t);return Uo(r)?r:t}).join(\" \"),rL=(e,t)=>kO(e,t),xA=(e,t)=>$n.test(e)?e:dd(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=Te(n);if(Uo(o)){let i=_t(n,t);return F(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(\", \"),$O=(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=dd(o).map(a=>(a=a.trim(),a.split(/\\s+/).map(l=>{if(!l||/^\\d/.test(l)||l===\"0\"||QD.has(l)||l===\"transparent\"||$n.test(l))return l;let c=Te(l);return Uo(c)?c:l}).join(\" \")));return n+i.join(\", \")+s},nL=(e,t)=>{let r=H();return e.split(\", \").map(n=>We(n)?`var(${n})`:n.includes(\"url\")?n:n.includes(\"gradient\")?$O(n,t):r.gradient[e]?{backgroundImage:_t(e,t||r.globalTheme)}:n.includes(\"/\")||n.startsWith(\"http\")||n.includes(\".\")&&!Xa(n)?`url(${n})`:n).join(\" \")},oL=e=>R(e)&&e.split(\" \").map(t=>ze(t,\"gap\").gap).join(\" \"),sL=e=>{let t=e.split(\" \");return t.length?t.map(r=>We(r)?`var(${r})`:r.length<3||r.includes(\"ms\")?pr(r).timing||r:On(r)?On(r):r).join(\" \"):e},vA=(e,t,r)=>{if(R(e))return e.split(\",\").map(n=>pr(n).timing||n).join(\",\")},iL=e=>{let t=e.split(\",\");if(t.length)return t.map(sL).join(\",\")};function Oe(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes(\"(\")){let l=Ya(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=wO(e);!i&&a&&!n.ratio&&(o=SO(o))}return n.ratio?zo(r,e,o,s):ze(o,e,void 0,s)}var re=(e,t=null,r)=>Oe(e,t,r,{ratio:!0}),wA=(e,t,r)=>{if(R(e))return{borderRadius:e.split(\" \").map((n,o)=>zo(t,r,n)[r]).join(\" \")}};M();var aL=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith(\"--\")?t:`--${t}`;return n[o]=e,e},vt=e=>e,_A={color:Oa,gradient:Ta,font:gO,fontFamily:bb,fontfamily:bb,theme:pO,icons:OO,semanticIcons:vt,semanticicons:vt,svg:Jx,svgData:vt,typography:vt,shadow:Pa,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:aL},lL=(e,t,r)=>{let n=H(),o=rO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=_A[o]||_A[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\")},cL=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=F(t[o])||U(t[o])?1:0,a=F(t[s])||U(t[s])?1:0;return i-a}).forEach(o=>{try{return lL(n,t[o],o)}catch(s){r.verbose&&console.warn(\"Error setting\",n,\"value\",t[o],o,s)}}),r[n]||r[e]};var uL={},Qx=(e,t=uL)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=RD(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 T=D=>{v.setAttribute(\"data-theme\",D.matches?\"dark\":\"light\")},k=x.matchMedia(\"(prefers-color-scheme: dark)\");if(T(k),v.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=T;try{k.addEventListener(\"change\",T)}catch{k.addListener(T)}}}else v.setAttribute(\"data-theme\",\"light\"),v.style.colorScheme=\"light\";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),S=new Set(w);if(w.forEach(T=>{let k=T.toLowerCase();k!==T&&S.has(k)&&Jt(y[k],y[T])}),w.map(T=>{let k=T.toLowerCase();if(!(k!==T&&S.has(k)))return cL(T,y[T])}),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{xO()}catch(T){r.verbose&&console.warn(\"Error applying typography sequence\",T)}if(y.spacing)try{_O()}catch(T){r.verbose&&console.warn(\"Error applying spacing sequence\",T)}if(y.timing)try{CO()}catch(T){r.verbose&&console.warn(\"Error applying timing sequence\",T)}AO();let O=RO();return O&&(r.reset=O),r};var fL=null,dL=null,pL=null;function hL(e){e.batchAtomicCss&&(dL=e.batchAtomicCss),e.compoundCssClass&&(pL=e.compoundCssClass)}function gL(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<\"u\"?document:null}function zu(e){return e.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}var SA=new WeakMap;function aa(e,t){let r=IO(t);if(!r)return;let n=SA.get(r);if(n||(n=new Set,SA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var kA=new WeakMap;function IO(e){let t=e||gL();if(!t||!t.head)return null;let r=kA.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 kA.set(t,o),fL=o,o}function Bt(e){if(IO(),typeof e==\"string\"){aa(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:zu(l);a+=`${c}:${i[l]};`}aa(`${n}{${s}{${a}}}`)}else{let a=s.startsWith(\"--\")?s:zu(s);aa(`${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:zu(a);s+=`${c}:${l};`}}if(s&&aa(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]==\"object\"&&o[c]!==null&&(c.startsWith(\"@media\")||c.startsWith(\"@supports\")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\\s*(\\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Bt({[`${n} ${c}`]:o[c]});for(let c of a)Bt({[c]:{[n]:o[c]}})}}}}function CA(e,t){let r=\"\";for(let n in t){let o=\"\";for(let s in t[n])o+=`${zu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return aa(`@keyframes ${e}{${r}}`),e}M();M();M();var mL=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],yL=[\"none\",\"forwards\",\"backwards\",\"both\"],bL=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],xL=[\"running\",\"paused\"],vL=e=>/^[\\d.]+m?s$/.test(e),wL=0,tb=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(F(e)){let o=`smbls-anim-${wL++}`;return{animationName:CA(o,e)}}let n=r&&r[e];return F(n)?CA(e,n):e},_L=(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:vL(d)?s.push(d):mL.includes(d)||d.startsWith(\"cubic-bezier\")||d.startsWith(\"steps(\")?i=d:d===\"infinite\"||/^\\d+$/.test(d)?a=d===\"infinite\"?d:Number(d):bL.includes(d)?l=d:yL.includes(d)?c=d:xL.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},SL={animation:(e,t)=>{if(R(e)&&e.includes(\" \")){let r=_L(e,t);return{animationName:tb(r.name||e,t),animationDuration:r.durations[0]||pr(t.animationDuration||\"A\").timing,animationDelay:r.durations[1]||pr(t.animationDelay||\"0s\").timing,animationTimingFunction:r.timingFunction||On(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:tb(e,t),animationDuration:pr(t.animationDuration||\"A\").timing,animationDelay:pr(t.animationDelay||\"0s\").timing,animationTimingFunction:On(t.animationTimingFunction||\"ease\"),animationFillMode:t.animationFillMode||\"both\",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:tb(e,t)}),animationDuration:e=>({animationDuration:pr(e).timing}),animationDelay:e=>({animationDelay:pr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:On(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};M();var kL={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=>Nt(e)?{boxSizing:\"border-box\"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"height\",t),...Oe(\"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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"minWidth\",t),...Oe(\"maxWidth\",r||t)}},minHeight:(e,t)=>re(\"minHeight\",e,t),maxHeight:(e,t)=>re(\"maxHeight\",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"minHeight\",t),...Oe(\"maxHeight\",r||t)}},size:e=>{if(!R(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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"minInlineSize\",t),...Oe(\"minBlockSize\",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"maxInlineSize\",t),...Oe(\"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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"paddingInlineStart\",t),...Oe(\"paddingInlineEnd\",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"paddingBlockStart\",t),...Oe(\"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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"marginInlineStart\",t),...Oe(\"marginInlineEnd\",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(\" \");return{...Oe(\"marginBlockStart\",r),...Oe(\"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:oL(e)}),columnGap:(e,t)=>zo(t,\"columnGap\",e),rowGap:(e,t)=>zo(t,\"rowGap\",e),flexWrap:e=>({display:\"flex\",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{display:\"flex\",alignItems:t,justifyContent:r}},round:(e,t)=>wA(e??t.borderRadius,t,\"round\"),borderRadius:(e,t)=>wA(e??t.round,t,\"borderRadius\")},CL={fontSize:e=>vO(e)||e,fontFamily:e=>({fontFamily:mO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'\"wght\" '+e})},AL={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},EL={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]}}};M();var Ft=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r===\"auto\"?null:r},OL={theme:(e,t)=>{if(e)return t.themeModifier?Hr(e,`@${t.themeModifier}`):Hr(e)},color:(e,t)=>{let r=Ft(t);if(e)return{color:_t(e,r)}},background:(e,t)=>{let r=Ft(t);if(e)return R(e)&&e.includes(\"gradient\")?{background:$O(e,r)}:{background:_t(e,r)}},backgroundColor:(e,t)=>{let r=Ft(t);if(e)return{backgroundColor:_t(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Ft(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:nL(e,o)}},textStroke:e=>({WebkitTextStroke:tL(e)}),outline:e=>({outline:kn(e)}),outlineOffset:(e,t)=>re(\"outlineOffset\",e,t),border:e=>({border:kn(e)}),borderColor:(e,t)=>{let r=Ft(t);if(e)return{borderColor:_t(e,r)}},borderTopColor:(e,t)=>{let r=Ft(t);if(e)return{borderTopColor:_t(e,r)}},borderBottomColor:(e,t)=>{let r=Ft(t);if(e)return{borderBottomColor:_t(e,r)}},borderLeftColor:(e,t)=>{let r=Ft(t);if(e)return{borderLeftColor:_t(e,r)}},borderRightColor:(e,t)=>{let r=Ft(t);if(e)return{borderRightColor:_t(e,r)}},borderLeft:e=>({borderLeft:kn(e)}),borderTop:e=>({borderTop:kn(e)}),borderRight:e=>({borderRight:kn(e)}),borderBottom:e=>({borderBottom:kn(e)}),shadow:(e,t)=>{let r=Ft(t);if(e)return{boxShadow:rL(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split(\"!importan\"),o=Ft(t),s=n?\" !important\":\"\";return{boxShadow:xA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:xA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:kn(e)})},jO={transition:e=>({transition:iL(e)}),transitionDuration:e=>({transitionDuration:vA(e)}),transitionDelay:e=>({transitionDelay:vA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:On(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};M();var TL={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},wrap:(e,t)=>({display:\"flex\",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}},PL={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})},AA={...SL,...kL,...CL,...AL,...EL,...OL,...jO,...TL,...PL},RL=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\"]);M();var $L=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,IL=(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($L),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},EA=(e,t,r)=>({[e]:Gr(t,r)}),ra=(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}},ev=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return j(r)?r.call(t,t):!!r},jL=(e,t,r)=>{let n=e.slice(1),o=ev(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Gr(t,r)},FL=(e,t,r)=>({[e]:t}),DL=(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=ev(n,r);s!==void 0&&(o=s)}if(o)return Gr(t,r)},LL=(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=ev(n,r);s!==void 0&&(o=s)}if(!o)return Gr(t,r)},ML=(e,t)=>Gr(e,t),NL={\"@\":IL,\":\":ra,\"[\":ra,\"*\":ra,\"+\":ra,\"~\":ra,\"&\":EA,\">\":EA,$:jL,\"-\":FL,\".\":DL,\"!\":LL},rb=Bo(),BL=(e,t,r)=>{let n=t?.context?.designSystem;n&&TD(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,ML(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),!rb&&F(o[a])&&(o[a].label=a)}else if(AA[a]){let c=Ne(l,t);U(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=AA[a](c,t,t.state,t.context);U(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&i(a,u),!rb&&F(o[a])&&(o[a].label=a)}else if(RL.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}),!rb&&F(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&PD()}},VL=(e,t)=>{let r={};for(let n in e){let o=NL[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\"?Pn(r[i],s[i]):r[i]=s[i])}}return r},Gr=(e,t,r={unpack:!0})=>{let[n,o]=BL(e,t,r),s=VL(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return ed(n,s);n._selectors=s}return n};M();M();M();M();var OA=(e,t)=>{let r=e.call(\"exec\",t,e);if(r)return R(r)&&r.includes(\"{{\")&&(r=e.call(\"replaceLiteralsWithObjectFields\",r)),r};var zL={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\"}}}},WL={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},UL={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\"}},...zL,...WL,...UL,none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var HL={};X(HL,{A:()=>mP,AssetPicture:()=>aT,Audio:()=>pT,Avatar:()=>DP,B:()=>IT,Block:()=>DO,Box:()=>LT,Br:()=>NT,Button:()=>wP,ButtonSet:()=>CP,COMPONENTS:()=>rM,Caption:()=>kT,Checkbox:()=>JT,CheckboxHgroup:()=>QT,Circle:()=>nT,CircleButton:()=>SP,Clickable:()=>ZO,Data:()=>FT,Dialog:()=>OP,DialogFooter:()=>PP,DialogHeader:()=>TP,Dropdown:()=>BP,DropdownList:()=>VP,DropdownParent:()=>zP,DropdownParentFocus:()=>WP,DropdownSiblingFocus:()=>UP,FileIcon:()=>dP,Flex:()=>MO,Focusable:()=>JO,FocusableComponent:()=>QO,Footnote:()=>$T,Form:()=>qO,Grid:()=>BO,Gutter:()=>zO,H1:()=>yT,H2:()=>bT,H3:()=>xT,H4:()=>vT,H5:()=>wT,H6:()=>_T,Headline:()=>PT,Hgroup:()=>UT,HgroupButton:()=>qT,HgroupRows:()=>HT,Hoverable:()=>YO,Hr:()=>MT,I:()=>jT,Icon:()=>uP,IconButton:()=>AP,IconText:()=>fP,Iframe:()=>KO,Img:()=>UO,Inline:()=>LO,InlineFlex:()=>NO,InlineGrid:()=>VO,Input:()=>KT,Italic:()=>OT,KangorooButton:()=>kP,Li:()=>BT,Link:()=>lv,Notification:()=>qP,NumberInput:()=>YT,Ol:()=>zT,P:()=>ST,Picture:()=>sT,Radio:()=>tP,RadioHgroup:()=>rP,Range:()=>MP,RouteLink:()=>yP,RouterLink:()=>cv,SHAPES:()=>Mf,Select:()=>xP,Shape:()=>rv,Span:()=>mT,SquareButton:()=>_P,Strong:()=>CT,Subhead:()=>RT,Svg:()=>cT,Text:()=>gT,Textarea:()=>aP,TextareaWithButton:()=>lP,Theme:()=>oT,Title:()=>TT,Toggle:()=>oP,ToggleHgroup:()=>sP,Tooltip:()=>$P,TooltipHidden:()=>IP,TooltipParent:()=>jP,U:()=>AT,Ul:()=>VT,Underline:()=>ET,Video:()=>fT,depth:()=>tv,getSystemGlobalTheme:()=>Nf});var FO={};X(FO,{Block:()=>DO,Flex:()=>MO,Grid:()=>BO,Gutter:()=>zO,Inline:()=>LO,InlineFlex:()=>NO,InlineGrid:()=>VO});var DO={display:\"block\"},LO={display:\"inline\"},MO={display:\"flex\"},NO={display:\"inline-flex\"},BO={display:\"grid\"},VO={display:\"inline-grid\"},zO={boxSize:\"C1\"},WO={};X(WO,{Img:()=>UO});M();var UO={tag:\"img\",attr:{title:e=>e.title||e.alt,src:e=>{let t=Yt(e);return t&&t.src||e.src},srcset:e=>{let t=Yt(e);return(t?ud(t):\"\")||e.srcset}}},HO={};X(HO,{Form:()=>qO});var qO={tag:\"form\"},GO={};X(GO,{Iframe:()=>KO});var KO={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"},XO={};X(XO,{Clickable:()=>ZO,Focusable:()=>JO,FocusableComponent:()=>QO,Hoverable:()=>YO});var qL={appearance:\"none\",cursor:\"pointer\",fontFamily:\"inherit\"},YO={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}}},ZO={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}},JO={border:\"none\",outline:\"solid 0 blue.3\",\":focus-visible\":{opacity:1,outline:\"solid X blue.3\"},attr:{tabIndex:e=>e.tabIndex}},QO={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",style:qL},eT={};X(eT,{Picture:()=>sT});var tT={};X(tT,{Theme:()=>oT,getSystemGlobalTheme:()=>Nf});var rT={};X(rT,{Circle:()=>nT,SHAPES:()=>Mf,Shape:()=>rv,default:()=>GL,depth:()=>tv});M();var wt=H(),tv={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}`}},Po=e=>Te(e.shapeDirectionColor)||Te(e.borderColor)||Te(e.backgroundColor)||Te(e.background),Du=e=>{let t=jO.transition(e.transition,e);return t&&t.transition},Mf={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:Po(e),transition:Du(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:Po(e),transition:Du(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:Po(e),transition:Du(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:Du(e),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${Po(e)} 25%, transparent 25%), linear-gradient(315deg, ${Po(e)} 25%, transparent 25%)`},\"&:after\":{background:Po(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)\"}}}},rv={deps:{exec:Ne,getSpacingBasedOnRatio:zo,getMediaColor:_t},classlist:{shape:e=>e.deps.exec(Mf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Mf[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}}},nT={round:\"100%\"},GL=rv;M();var Nf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n===\"auto\"?null:n},oT={deps:{depth:tv},classlist:{depth:e=>!Nt(e.depth)&&e.deps.depth[e.depth]}},sT={deps:{getSystemGlobalTheme:Nf},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:Nf},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}},iT={};X(iT,{AssetPicture:()=>aT});M();var aT={tag:\"picture\",children:e=>{let t=Yt(e);if(t)return fd(t,e.alt)}},lT={};X(lT,{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)}},uT={};X(uT,{Video:()=>fT});M();var fT={tag:\"video\",controls:!0,attr:{src:e=>{let t=Yt(e);return t&&t.src||e.src}},children:e=>{let t=Yt(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\"}},dT={};X(dT,{Audio:()=>pT});M();var pT={tag:\"audio\",controls:!0,attr:{src:e=>{let t=Yt(e);return t&&t.src||e.src}},children:e=>{let t=Yt(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\"}},hT={};X(hT,{B:()=>IT,Caption:()=>kT,Data:()=>FT,Footnote:()=>$T,H1:()=>yT,H2:()=>bT,H3:()=>xT,H4:()=>vT,H5:()=>wT,H6:()=>_T,Headline:()=>PT,I:()=>jT,Italic:()=>OT,P:()=>ST,Span:()=>mT,Strong:()=>CT,Subhead:()=>RT,Text:()=>gT,Title:()=>TT,U:()=>AT,Underline:()=>ET});var gT={},mT={tag:\"span\"},yT={tag:\"h1\"},bT={tag:\"h2\"},xT={tag:\"h3\"},vT={tag:\"h4\"},wT={tag:\"h5\"},_T={tag:\"h6\"},ST={tag:\"p\"},kT={tag:\"caption\"},CT={tag:\"strong\",fontWeight:\"700\"},AT={tag:\"u\"},ET={tag:\"u\"},OT={tag:\"i\"},TT={},PT={tag:\"h6\",fontSize:\"B\",fontWeight:500},RT={tag:\"span\",fontSize:\"Z1\"},$T={tag:\"span\",fontSize:\"Z\"},IT={tag:\"b\"},jT={tag:\"i\"},FT={tag:\"data\"},DT={};X(DT,{Box:()=>LT,Br:()=>NT,Hr:()=>MT,Li:()=>BT,Ol:()=>zT,Ul:()=>VT});var KL=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Gr(t,e,{unpack:!1});r.__class=n},LT={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:KL},MT={tag:\"hr\",margin:\"C1 0\"},NT={tag:\"br\"},BT={tag:\"li\"},VT={tag:\"ul\",childExtends:{extends:\"Li\"}},zT={tag:\"ol\",childExtends:{extends:\"Li\"}},WT={};X(WT,{Hgroup:()=>UT,HgroupButton:()=>qT,HgroupRows:()=>HT});var TA=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},UT={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:TA,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:TA,margin:\"0\",color:\"paragraph\"}},HT={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},qT={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}},GT={};X(GT,{Input:()=>KT});var KT={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}},XT={};X(XT,{NumberInput:()=>YT});var YT={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}},ZT={};X(ZT,{Checkbox:()=>JT,CheckboxHgroup:()=>QT});var JT={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\"}}},QT={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}},eP={};X(eP,{Radio:()=>tP,RadioHgroup:()=>rP});var tP={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}},rP={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}},nP={};X(nP,{Toggle:()=>oP,ToggleHgroup:()=>sP});var oP={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}},sP={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}},iP={};X(iP,{Textarea:()=>aP,TextareaWithButton:()=>lP});var aP={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\"}},lP={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\"}}},cP={};X(cP,{FileIcon:()=>dP,Icon:()=>uP,IconText:()=>fP});var uP={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,S)=>{let{semanticIcons:O}=S&&S.designSystem,{toCamelCase:T}=S&&S.utils,k=u(v,w),D=T(k).split(/([a-z])([A-Z])/g),te=D[1]?D[0]:k.split(\".\")[0].split(\" \")[0],z=O&&O[te];if(z){let N=k.includes(\".\")?\"sfsymbols.\"+k.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return k=z[N]||z[k.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${k}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},u=(v,w)=>{let{key:S}=v,O=v.call(\"exec\",v.name||v.icon||S,v);return v.call(\"isString\",O)&&O.includes(\"{{\")&&(O=v.call(\"replaceLiteralsWithObjectFields\",O)),v.call(\"isString\",O)?O:S},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\"}},fP={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},dP={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}},pP={};X(pP,{A:()=>mP,Link:()=>lv,RouteLink:()=>yP,RouterLink:()=>cv});var XL={};X(XL,{default:()=>eM,getActiveRoute:()=>av,lastLevel:()=>yd,lastPathname:()=>Bf,matchRoute:()=>ov,parseQuery:()=>sv,parseRoutePattern:()=>nv,router:()=>Ho,runGuards:()=>iv});M();var hP=/^:(.+)/,gP=/^\\*$/,PA=new Map,nv=e=>{let t=PA.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(hP);a?n.push({index:i,name:a[1]}):gP.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return PA.set(e,s),s},ov=(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=nv(l),u=YL(n,c);u>i&&(i=u,s=l,a=ZL(n,c))}return!s&&t[\"/*\"]&&(s=\"/*\"),{key:s,content:s?t[s]:null,params:a,routePath:o}},YL=(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(hP.test(r[i]))o+=1;else if(gP.test(r[i]))o+=.5;else return-1;return o},ZL=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},sv=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},iv=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},av=(e=0,t)=>{t||(t=typeof se<\"u\"?se.location.pathname:\"/\");let r=t.split(\"/\")[e+1];if(r)return`/${r}`},Bf,yd=0,JL=e=>!e||e===\"srcdoc\"||e===\"about:srcdoc\"?\"/\":e,QL={level:yd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:me&&me.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0},Ho=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||se,i=o?.context?.document||me,a={...QL,...o.context.routerOptions,...n};yd=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=JL(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=sv(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Bf;Bf=f;let x,v,w,S;if(a.useParamsMatching){let T=ov(f,o.routes,a.level);x=T.key,v=T.routePath,w=T.content,S=T.params}else x=av(a.level,f),v=x,w=o.routes[x||\"/\"]||o.routes[\"/*\"],S={};let O=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 T={pathname:f,route:x,params:S,query:g,hash:h,element:o,state:r},k=await iv(a.guards,T);if(k===!1)return;if(typeof k==\"string\")return Ho(k,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||\"\")+(h||\"\"))}catch{}if(b||!y){let T={route:x,routePath:v,hash:h,debugging:!1};Object.keys(S).length&&(T.params=S),Object.keys(g).length&&(T.query=g),a.updateState&&o.state.update(T,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let k=o.__ref?.origin?.content,D={};if(k)for(let z in k){let N=k[z];z===\"__ref\"||z===\"props\"||z===\"node\"||z===\"parent\"||z===\"key\"||(typeof N==\"string\"||typeof N==\"number\"||typeof N==\"boolean\"||typeof N==\"object\"&&N!==null&&!N.node&&!N.__ref)&&(D[z]=N)}let te={...D,...typeof w==\"object\"?w:{extends:w}};a.useFragment&&(te.tag=\"fragment\");try{o.set(te,{contentElementKey:c})}catch(z){console.error(\"[smbls/router] failed to render route content\",f,z)}}if(a.scrollToTop&&O?.scrollTo&&O.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 T=i.getElementById(h);if(T&&O?.scrollTo){let k=T.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:k,left:0})}}Vo(\"routeChanged\",o,a)},eM=Ho,tM=(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||Ho)(a,h,{},{scrollToOptions:{behaviour:\"instant\"},scrollToTop:t.call(\"isDefined\",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},lv={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:e=>OA(e,e.href)||OA(e,e.call(\"exec\",e,e).href),\"aria-label\":e=>e.aria?e.aria.label:e.text},onClick:tM},mP={extends:\"Link\"},cv={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||Ho)(a,h,{},{scrollToOptions:{behaviour:\"instant\"},scrollToTop:t.call(\"isDefined\",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},yP={extends:[lv,cv]},bP={};X(bP,{Select:()=>xP});var xP={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}}},vP={};X(vP,{Button:()=>wP,ButtonSet:()=>CP,CircleButton:()=>SP,IconButton:()=>AP,KangorooButton:()=>kP,SquareButton:()=>_P});var wP={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)},_P={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\"},SP={extends:\"SquareButton\",round:\"C\"},kP={extends:\"Button\",childExtends:\"IconText\"},CP={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},AP={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"},EP={};X(EP,{Dialog:()=>OP,DialogFooter:()=>PP,DialogHeader:()=>TP});var OP={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},TP={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},PP={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\"}},RP={};X(RP,{Tooltip:()=>$P,TooltipHidden:()=>IP,TooltipParent:()=>jP});M();var $P={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=>No(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)}},IP={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)}},jP={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\"}}})}},FP={};X(FP,{Avatar:()=>DP});var DP={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\"}`},LP={};X(LP,{Range:()=>MP});var MP={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:hb(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:hb(\"#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)}},NP={};X(NP,{Dropdown:()=>BP,DropdownList:()=>VP,DropdownParent:()=>zP,DropdownParentFocus:()=>WP,DropdownSiblingFocus:()=>UP});var BP={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\"},VP={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\"}}},zP={position:\"relative\",zIndex:999,style:{\"&:hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}}},WP={position:\"relative\",tabindex:\"0\",style:{\"&: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()}}},UP={position:\"relative\",tabindex:\"0\",style:{\"&: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()}}},HP={};X(HP,{Notification:()=>qP});var qP={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}}}},rM=Object.assign({},FO,WO,HO,GO,XO,eT,iT,lT,rT,uT,dT,tT,hT,DT,WT,GT,XT,ZT,eP,nP,iP,cP,pP,bP,vP,EP,RP,FP,LP,NP,HP);var nM=null;function oM(e){nM=e}M();var sM={};X(sM,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>Jb,DOMQ_PROPERTIES:()=>Wo,ENV:()=>m0,HTML_TAGS:()=>La,METHODS:()=>ja,METHODS_EXL:()=>Qf,NODE_ENV:()=>Dt,OPTIONS:()=>ad,PACKAGE_MANAGER_TO_CDN:()=>If,PARSED_DOMQ_PROPERTIES:()=>Jf,PROPS_METHODS:()=>En,STATE_METHODS:()=>An,STATE_PROPERTIES:()=>Zb,SVG_TAGS:()=>$0,TYPES:()=>ca,UNIVERSAL_RESERVED_KEYS:()=>$f,addCaching:()=>_f,addContext:()=>wf,addExtend:()=>L0,addExtends:()=>Qe,addItemAfterEveryElement:()=>Mb,addProtoToArray:()=>Xf,addRef:()=>bf,applyCSS:()=>cM,applyDependentState:()=>rx,applyEvent:()=>Of,applyEventUpdate:()=>Tf,applyExtends:()=>N0,applyProps:()=>ka,arrayContainsOtherArray:()=>Rb,arraysEqual:()=>Bb,arrayzeValue:()=>Ka,buildImgSrcset:()=>ud,buildSourcesAndImg:()=>fd,cache:()=>ix,call:()=>PE,captureSnapshot:()=>px,checkForStateTypes:()=>J0,checkIfInherits:()=>Ef,checkIfStringIsInArray:()=>Wb,clone:()=>e0,cloneAndMergeArrayExtend:()=>ya,cloneFunction:()=>BA,concatAddExtends:()=>j0,copyJavaScriptToClipboard:()=>Rx,copyStringToClipboard:()=>Px,createBasedOnType:()=>yf,createElement:()=>Z0,createElementExtends:()=>af,createExtends:()=>sd,createExtendsFromKeys:()=>Ma,createExtendsStack:()=>ff,createIfConditionFlag:()=>C0,createInheritedState:()=>Q0,createKey:()=>nd,createNestedObject:()=>l0,createNestedObjectByKeyPath:()=>tx,createObjectWithoutPrototype:()=>ef,createParent:()=>xf,createPath:()=>vf,createProps:()=>id,createPropsStack:()=>gf,createRoot:()=>Y0,createScope:()=>ox,createSnapshotId:()=>rd,customDecodeURIComponent:()=>Yb,customEncodeURIComponent:()=>Xb,cutArrayAfterValue:()=>Db,cutArrayBeforeValue:()=>Fb,debounce:()=>NA,debounceOnContext:()=>w0,decodeNewlines:()=>Kb,deepClone:()=>et,deepContains:()=>i0,deepDefaults:()=>Ca,deepDestringifyFunctions:()=>da,deepExtend:()=>sf,deepMerge:()=>Jt,deepMergeExtends:()=>Kt,deepStringifyFunctions:()=>ua,defineSetter:()=>dx,destringifyGlobalScope:()=>t0,detectHeightOnInit:()=>bx,detectInfiniteLoop:()=>d0,document:()=>me,encodeNewlines:()=>Gb,error:()=>Rf,excludeKeysFromObject:()=>h0,exec:()=>Ne,extendCachedRegistry:()=>F0,extendStackRegistry:()=>ha,extractArrayExtend:()=>ma,fetchLibraryData:()=>Ox,fibonacciNumberByIndex:()=>xx,filterArrays:()=>Vb,filterArraysFast:()=>zb,finalizeExtends:()=>df,findClosestNumber:()=>Ff,findClosestNumberInFactory:()=>Ex,findInheritedState:()=>Af,findKeyPosition:()=>Hb,flattenExtend:()=>jo,formatDate:()=>yx,generateHash:()=>rf,generateKey:()=>pa,generateMetaTags:()=>Ax,get:()=>gE,getActiveRoute:()=>av,getCDNUrl:()=>jf,getCapitalCaseKeys:()=>UA,getCdnProviderFromConfig:()=>gx,getChildStateInKey:()=>Cf,getChildren:()=>bE,getContext:()=>kE,getCookie:()=>P0,getDB:()=>RE,getEmotionStylesheet:()=>Fx,getExtendsInElement:()=>M0,getExtendsStack:()=>xa,getExtendsStackRegistry:()=>of,getFrequencyInArray:()=>$b,getHashedExtend:()=>ga,getImportMapScript:()=>mx,getInObjectByPath:()=>f0,getLocalStorage:()=>VA,getNev:()=>v0,getPageMetadata:()=>ME,getParentStateInKey:()=>kf,getPath:()=>xE,getQuery:()=>$E,getRef:()=>yE,getRoot:()=>wE,getRootContext:()=>SE,getRootData:()=>_E,getRootState:()=>vE,getRootStateInKey:()=>Sf,getSpreadChildren:()=>HA,global:()=>Ob,hasFunction:()=>Io,hasHandlerPlugin:()=>Ga,hasOwnProperty:()=>n0,inheritChildExtends:()=>cf,inheritChildPropsExtends:()=>lf,inheritParentProps:()=>wa,inheritRecursiveChildExtends:()=>uf,init:()=>bd,initProps:()=>K0,is:()=>Xt,isArray:()=>U,isBoolean:()=>Xu,isContextComponent:()=>qA,isCyclic:()=>p0,isDOMNode:()=>st,isDate:()=>Zu,isDefined:()=>No,isDevelopment:()=>od,isEmpty:()=>Ju,isEmptyObject:()=>o0,isEqualDeep:()=>Qu,isFunction:()=>j,isHtmlElement:()=>Hf,isLocal:()=>x0,isMethod:()=>IE,isMobile:()=>O0,isNode:()=>za,isNot:()=>Pb,isNotProduction:()=>qa,isNull:()=>Yu,isNumber:()=>Tn,isObject:()=>F,isObjectLike:()=>oe,isPhoto:()=>vx,isProduction:()=>Bo,isStaging:()=>b0,isState:()=>ex,isString:()=>R,isStringFunction:()=>S0,isTest:()=>tf,isTesting:()=>y0,isUndefined:()=>Nt,isUniversallyReservedKey:()=>hx,isValidHtmlTag:()=>I0,joinArrays:()=>$a,jointStacks:()=>D0,keys:()=>lx,lastLevel:()=>yd,lastPathname:()=>Bf,loadCssFile:()=>kx,loadJavascript:()=>Cx,loadJavascriptFile:()=>wx,loadJavascriptFileEmbedSync:()=>Sx,loadJavascriptFileSync:()=>_x,loadRemoteCSS:()=>LE,loadRemoteScript:()=>DE,log:()=>CE,logGroupIf:()=>E0,logIf:()=>A0,lookdown:()=>dE,lookdownAll:()=>pE,lookup:()=>fE,lowercaseFirstLetter:()=>Ua,makeObjectWithoutPrototype:()=>s0,map:()=>Qb,mapStringsWithContextComponents:()=>ba,matchRoute:()=>ov,matchesComponentNaming:()=>Cn,memoize:()=>_0,merge:()=>it,mergeSharedLibraries:()=>Tx,nextElement:()=>EE,normalizeLibraryKey:()=>Na,objectToString:()=>fa,objectizeStringProperty:()=>va,overwrite:()=>ed,overwriteDeep:()=>Pn,overwriteShallow:()=>td,overwriteState:()=>nx,parse:()=>cx,parseDeep:()=>Pf,parseQuery:()=>sv,parseRoutePattern:()=>nv,pickupElementFromProps:()=>z0,pickupPropsFromElement:()=>V0,previousElement:()=>OE,propExists:()=>G0,propertizeElement:()=>W0,propertizeUpdate:()=>KA,reinit:()=>lM,remove:()=>hE,removeChars:()=>$x,removeCookie:()=>R0,removeDuplicateProps:()=>_a,removeDuplicatesInArray:()=>Ia,removeFromArray:()=>Ib,removeFromObject:()=>a0,removeNestedKeyByPath:()=>c0,removeValueFromArray:()=>Kf,removeValueFromArrayAll:()=>Lb,reorderArrayByValues:()=>Nb,replaceLiteralsWithObjectFields:()=>DA,replaceOctalEscapeSequences:()=>qb,resolveAsset:()=>Yt,resolveHandler:()=>Fa,resolveSharedLibraries:()=>BE,returnValueAsText:()=>mf,router:()=>Ho,runGuards:()=>iv,runPluginHook:()=>Da,scratchSystem:()=>dO,scratchUtils:()=>WE,self:()=>Tb,set:()=>Qx,setActiveRootState:()=>fx,setCookie:()=>T0,setHashedExtend:()=>nf,setInObjectByPath:()=>u0,setLocalStorage:()=>zA,setNodeStyles:()=>ax,setProps:()=>mE,setPropsPrototype:()=>pf,spotByPath:()=>uE,srcsetFor:()=>Do,stringIncludesAny:()=>Yf,stringToObject:()=>r0,swapItemsInArray:()=>jb,syncProps:()=>Sa,toCamelCase:()=>ld,toDashCase:()=>cd,toDescriptionCase:()=>jx,toTitleCase:()=>Ix,toggleFullscreen:()=>FE,triggerEventOn:()=>Vo,triggerEventOnUpdate:()=>sx,trimStringFromSymbols:()=>Ub,unstackArrayOfObjects:()=>Gf,update:()=>U0,updateProps:()=>X0,variables:()=>TE,verbose:()=>ux,warn:()=>AE,window:()=>se});M();M();var iM=H(),GP=(e=iM,t)=>{let r=F(t.localFile)?t.localFile:{},n=et(r.designSystem||{});return Jt(e,n)},aM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},bd=(e,t=aM)=>{let r=GP(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=Qx({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=QE(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Bt(a),c&&(Bt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith(\"@media\")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Bt(m)}l&&Bt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Bt(m)}return(f||d)&&EO(i.svg,{document:t.document}),(h||p)&&TO(i.icons,{document:t.document}),i},KP={},lM=(e,t=KP)=>{let r=GP(e||{},t),n=t.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=Qx({verbose:!1,...r});if(!t.preventInject){if(Bt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith(\"@media\")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Bt(i)}Bt(s.reset)}return s},cM=(e,t=KP)=>{Bt(e)};M();M();var o7=se&&se.location?se.location.host.includes(\"dev.\"):od();M();Fo();var uM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},fM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},s7={...uM,router:fM};M();M();M();M();Fo();var Vf={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\"},dM=Object.create(null);for(let e in Vf)dM[Vf[e]]=e;var nb=Object.create(null);for(let e in Vf){let t=Vf[e];if(nb[t])throw new Error(`Duplicate abbreviation \"${t}\" for \"${e}\" \\u2014 already used by \"${nb[t]}\"`);nb[t]=e}var pM=0,hM=()=>`${Date.now().toString(36)}-${(pM++).toString(36)}`,Ra=(e,t,r={})=>({id:hM(),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(\" > \")},zf=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,Lo=e=>e?.context?.analyze,mM={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\"}},yM=(e,{category:t,type:r,level:n})=>o=>{let s=Lo(o);!s||!s.shouldCapture(t)||s.emit(Ra(r,n,{hook:e,element:zf(o)}))},RA=e=>(t,r)=>{let n=Lo(t);!n||!n.shouldCapture(\"state\")||n.emit(Ra(\"state\",\"debug\",{hook:e,element:zf(t),changedKeys:r?.changedKeys||null}))},bM={name:\"analyze\",error(e,t){let r=Lo(e);if(!r||r.config.enabled===!1||!r.shouldCapture(\"errors\"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ra(\"error\",\"error\",{hook:t?.hook||\"error\",element:zf(e),error:n,message:n?.message||(typeof t?.message==\"string\"?t.message:null)}))},renderRouter(e){let t=Lo(e);t&&(!t.shouldCapture(\"navigation\")&&!t.shouldCapture(\"lifecycle\")||t.emit(Ra(\"navigation\",\"info\",{hook:\"renderRouter\",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Lo(e);!t||!t.shouldCapture(\"updates\")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(e){let t=Lo(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(Ra(\"update\",\"debug\",{hook:\"update\",element:zf(e),durationMs:r}))},beforeStateUpdate:RA(\"beforeStateUpdate\"),stateUpdate:RA(\"stateUpdate\")};for(let[e,t]of Object.entries(mM))bM[e]=yM(e,t);M();M();M();var i7=typeof se<\"u\"&&typeof se.document<\"u\";M();var a7=typeof se<\"u\"&&typeof se.document<\"u\";M();var l7=typeof se<\"u\"&&typeof se.document<\"u\";var Zt=Object.create(null);Zt.open=\"0\";Zt.close=\"1\";Zt.ping=\"2\";Zt.pong=\"3\";Zt.message=\"4\";Zt.upgrade=\"5\";Zt.noop=\"6\";var Wu=Object.create(null);Object.keys(Zt).forEach(e=>{Wu[Zt[e]]=e});var xb={type:\"error\",data:\"parser error\"},XP=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",YP=typeof ArrayBuffer==\"function\",ZP=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,uv=({type:e,data:t},r,n)=>XP&&t instanceof Blob?r?n(t):$A(t,n):YP&&(t instanceof ArrayBuffer||ZP(t))?r?n(t):$A(new Blob([t]),n):n(Zt[e]+(t||\"\")),$A=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];t(\"b\"+(n||\"\"))},r.readAsDataURL(e)};function IA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var ob;function xM(e,t){if(XP&&e.data instanceof Blob)return e.data.arrayBuffer().then(IA).then(t);if(YP&&(e.data instanceof ArrayBuffer||ZP(e.data)))return t(IA(e.data));uv(e,!1,r=>{ob||(ob=new TextEncoder),t(ob.encode(r))})}var jA=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",la=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let e=0;e<jA.length;e++)la[jA.charCodeAt(e)]=e;var vM=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=la[e.charCodeAt(n)],i=la[e.charCodeAt(n+1)],a=la[e.charCodeAt(n+2)],l=la[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},wM=typeof ArrayBuffer==\"function\",fv=(e,t)=>{if(typeof e!=\"string\")return{type:\"message\",data:JP(e,t)};let r=e.charAt(0);return r===\"b\"?{type:\"message\",data:_M(e.substring(1),t)}:Wu[r]?e.length>1?{type:Wu[r],data:e.substring(1)}:{type:Wu[r]}:xb},_M=(e,t)=>{if(wM){let r=vM(e);return JP(r,t)}else return{base64:!0,data:e}},JP=(e,t)=>t===\"blob\"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,QP=\"\u001e\",SM=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{uv(s,!1,a=>{n[i]=a,++o===r&&t(n.join(QP))})})},kM=(e,t)=>{let r=e.split(QP),n=[];for(let o=0;o<r.length;o++){let s=fv(r[o],t);if(n.push(s),s.type===\"error\")break}return n};function CM(){return new TransformStream({transform(e,t){xM(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!=\"string\"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var sb;function Lu(e){return e.reduce((t,r)=>t+r.length,0)}function Mu(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 AM(e,t){sb||(sb=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Lu(r)<1)break;let l=Mu(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(Lu(r)<2)break;let l=Mu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Lu(r)<8)break;let l=Mu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(xb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Lu(r)<o)break;let l=Mu(r,o);a.enqueue(fv(s?l:sb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(xb);break}}}})}var eR=4;function Se(e){if(e)return EM(e)}function EM(e){for(var t in Se.prototype)e[t]=Se.prototype[t];return e}Se.prototype.on=Se.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+e]=this._callbacks[\"$\"+e]||[]).push(t),this};Se.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Se.prototype.off=Se.prototype.removeListener=Se.prototype.removeAllListeners=Se.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};Se.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};Se.prototype.emitReserved=Se.prototype.emit;Se.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+e]||[]};Se.prototype.hasListeners=function(e){return!!this.listeners(e).length};var xd=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\")(),OM=\"arraybuffer\";function tR(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var TM=St.setTimeout,PM=St.clearTimeout;function vd(e,t){t.useNativeTimers?(e.setTimeoutFn=TM.bind(St),e.clearTimeoutFn=PM.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var RM=1.33;function $M(e){return typeof e==\"string\"?IM(e):Math.ceil((e.byteLength||e.size)*RM)}function IM(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 rR(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function jM(e){let t=\"\";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+=\"&\"),t+=encodeURIComponent(r)+\"=\"+encodeURIComponent(e[r]));return t}function FM(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 DM=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type=\"TransportError\"}},dv=class extends Se{constructor(e){super(),this.writable=!1,vd(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 DM(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=fv(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=jM(e);return t.length?\"?\"+t:\"\"}},LM=class extends dv{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)};kM(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,SM(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]=rR()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},nR=!1;try{nR=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var MM=nR;function NM(){}var BM=class extends LM{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}},Mo=class Uu extends Se{constructor(t,r,n){super(),this.createRequest=t,vd(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=tR(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=Uu.requestsCount++,Uu.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=NM,t)try{this._xhr.abort()}catch{}typeof document<\"u\"&&delete Uu.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()}};Mo.requestsCount=0;Mo.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",FA);else if(typeof addEventListener==\"function\"){let e=\"onpagehide\"in St?\"pagehide\":\"unload\";addEventListener(e,FA,!1)}}function FA(){for(let e in Mo.requests)Mo.requests.hasOwnProperty(e)&&Mo.requests[e].abort()}var VM=(function(){let e=oR({xdomain:!1});return e&&e.responseType!==null})(),zM=class extends BM{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=VM&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Mo(oR,this.uri(),e)}};function oR(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!t||MM))return new XMLHttpRequest}catch{}if(!t)try{return new St[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var sR=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",WM=class extends dv{get name(){return\"websocket\"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=sR?{}:tR(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;uv(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&xd(()=>{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]=rR()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},ib=St.WebSocket||St.MozWebSocket,UM=class extends WM{createSocket(e,t,r){return sR?new ib(e,t,r):t?new ib(e,t):new ib(e)}doWrite(e,t){this.ws.send(t)}},HM=class extends dv{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=AM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=CM();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&&xd(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},qM={websocket:UM,webtransport:HM,polling:zM},GM=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,KM=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function vb(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=GM.exec(e||\"\"),s={},i=14;for(;i--;)s[KM[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=XM(s,s.path),s.queryKey=YM(s,s.query),s}function XM(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 YM(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var wb=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",Hu=[];wb&&addEventListener(\"offline\",()=>{Hu.forEach(e=>e())},!1);var qu=class Gu extends Se{constructor(t,r){if(super(),this.binaryType=OM,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=vb(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=vb(r.host).host);vd(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=FM(this.opts.query)),wb&&(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\"})},Hu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=eR,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&&Gu.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\",Gu.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+=$M(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,xd(()=>{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(Gu.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(),wb&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Hu.indexOf(this._offlineEventListener);n!==-1&&Hu.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};qu.protocol=eR;var ZM=class extends qu{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;qu.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;qu.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}},iR=class extends ZM{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=>qM[n]).filter(n=>!!n)),super(e,r)}},c7=iR.protocol;function JM(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=vb(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 aR={};X(aR,{Decoder:()=>lN,Encoder:()=>aN,PacketType:()=>J,isPacketValid:()=>pN,protocol:()=>iN});var QM=typeof ArrayBuffer==\"function\",eN=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,lR=Object.prototype.toString,tN=typeof Blob==\"function\"||typeof Blob<\"u\"&&lR.call(Blob)===\"[object BlobConstructor]\",rN=typeof File==\"function\"||typeof File<\"u\"&&lR.call(File)===\"[object FileConstructor]\";function pv(e){return QM&&(e instanceof ArrayBuffer||eN(e))||tN&&e instanceof Blob||rN&&e instanceof File}function Ku(e,t){if(!e||typeof e!=\"object\")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Ku(e[r]))return!0;return!1}if(pv(e))return!0;if(e.toJSON&&typeof e.toJSON==\"function\"&&arguments.length===1)return Ku(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Ku(e[r]))return!0;return!1}function nN(e){let t=[],r=e.data,n=e;return n.data=_b(r,t),n.attachments=t.length,{packet:n,buffers:t}}function _b(e,t){if(!e)return e;if(pv(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]=_b(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]=_b(e[n],t));return r}return e}function oN(e,t){return e.data=Sb(e.data,t),delete e.attachments,e}function Sb(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]=Sb(e[r],t);else if(typeof e==\"object\")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Sb(e[r],t));return e}var sN=lF(WF(),1),kb=(0,sN.default)(\"socket.io-parser\"),cR=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],iN=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 aN=class{constructor(e){this.replacer=e}encode(e){return kb(\"encoding packet %j\",e),(e.type===J.EVENT||e.type===J.ACK)&&Ku(e)?this.encodeAsBinary({type:e.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=\"\"+e.type;return(e.type===J.BINARY_EVENT||e.type===J.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)),kb(\"encoded %j as %s\",e,t),t}encodeAsBinary(e){let t=nN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},lN=class uR extends Se{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 cN(r),r.attachments===0&&super.emitReserved(\"decoded\",r)):super.emitReserved(\"decoded\",r)}else if(pv(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(!fR(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(uR.isPayloadValid(n.type,s))n.data=s;else throw new Error(\"invalid payload\")}return kb(\"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 Wf(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r==\"string\"||Wf(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&cR.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},cN=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=oN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function uN(e){return typeof e==\"string\"}var fR=Number.isInteger||function(e){return typeof e==\"number\"&&isFinite(e)&&Math.floor(e)===e};function fN(e){return e===void 0||fR(e)}function Wf(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function dN(e,t){switch(e){case J.CONNECT:return t===void 0||Wf(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]==\"number\"||typeof t[0]==\"string\"&&cR.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t==\"string\"||Wf(t);default:return!1}}function pN(e){return uN(e.nsp)&&fN(e.id)&&dN(e.type,e.data)}function Mt(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}),dR=class extends Se{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Mt(e,\"open\",this.onopen.bind(this)),Mt(e,\"packet\",this.onpacket.bind(this)),Mt(e,\"error\",this.onerror.bind(this)),Mt(e,\"close\",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===\"open\"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(\"message\"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(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:J.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:J.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 J.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 J.EVENT:case J.BINARY_EVENT:this.onevent(e);break;case J.ACK:case J.BINARY_ACK:this.onack(e);break;case J.DISCONNECT:this.ondisconnect();break;case J.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:J.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:J.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 qo(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}qo.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};qo.prototype.reset=function(){this.attempts=0};qo.prototype.setMin=function(e){this.ms=e};qo.prototype.setMax=function(e){this.max=e};qo.prototype.setJitter=function(e){this.jitter=e};var Cb=class extends Se{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,vd(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 qo({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||aR;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 iR(this.uri,this.opts);let t=this.engine,r=this;this._readyState=\"opening\",this.skipReconnect=!1;let n=Mt(t,\"open\",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",i),e?e(i):this.maybeReconnectOnOpen()},s=Mt(t,\"error\",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error(\"timeout\")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=\"open\",this.emitReserved(\"open\");let e=this.engine;this.subs.push(Mt(e,\"ping\",this.onping.bind(this)),Mt(e,\"data\",this.ondata.bind(this)),Mt(e,\"error\",this.onerror.bind(this)),Mt(e,\"close\",this.onclose.bind(this)),Mt(this.decoder,\"decoded\",this.ondecoded.bind(this)))}onping(){this.emitReserved(\"ping\")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose(\"parse error\",t)}}ondecoded(e){xd(()=>{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 dR(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)}},na={};function ab(e,t){typeof e==\"object\"&&(t=e,e=void 0),t=t||{};let r=JM(e,t.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=na[o]&&s in na[o].nsps,a=t.forceNew||t[\"force new connection\"]||t.multiplex===!1||i,l;return a?l=new Cb(n,t):(na[o]||(na[o]=new Cb(n,t)),l=na[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(ab,{Manager:Cb,Socket:dR,io:ab,connect:ab});M();M();M();oM(hL);I();var pR=(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\"?bd(a):en(r[i],a):r[i]=a}),s&&(r.schema=s))},hR=(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=$C(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\")&&bd(r.designSystem)};var gN={success:\"green\",error:\"red\",warning:\"yellow\"},gR=(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)}},mR={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 mN=!1,yN=()=>mN?\"http://localhost:8080\":\"https://api.symbols.app\",bN=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}},xN=async e=>{try{let t=e||yN(),r=await A.fetch(`${t}/service-token`,{method:\"GET\"}),n;try{let o=await r.clone().json();if(o&&typeof o.token==\"string\")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||\"\").replace(/\\s+/gu,\"\")||void 0}catch(t){console.error(\"[sync] Failed to fetch service-token\",t)}},xR=(e,t,r,n)=>{e.on(\"snapshot\",pR(t,r,n)),e.on(\"ops\",hR(t,r,n)),e.on(\"clients\",o=>{n.editor?.verbose&&gR(o,t,r)}),e.on(\"disconnect\",o=>{n.editor?.verbose&&console.info(\"[sync] disconnected\",o)})},vN=async(e,t,r,n)=>{let o=await xN(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=ko(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)\")}),xR(a,e,t,r),a},wN=(e,t,r)=>{let n=ko({transports:[\"websocket\",\"polling\"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on(\"connect\",()=>{r.editor?.verbose!==!1&&console.info(\"[sync] connected (runner)\")}),xR(n,e,t,r),n.on(\"reload\",()=>{typeof A<\"u\"&&A.location&&A.location.reload()}),n},_N=async(e,t,r)=>{let{mode:n,baseUrl:o}=bN(r);return n?n===\"collab\"?vN(e,t,r,o):n===\"runner\"?wN(e,t,r):null:null},SN={onInit:_N};var vR=e=>typeof e>\"u\",yR=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),bR=e=>e?.editor?.runtime===\"runner\",wR=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},_R={name:\"sync\",beforeCreate(e,t){let r=t&&t.editor;(r&&!vR(r.liveSync)?r.liveSync:yR(t)||bR(t))&&(yR(t)&&!bR(t)&&!t?.key||wR(e,SN))}},SR={name:\"notifications\",beforeCreate(e,t){if(!t)return;let r=vR(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&wR(e,mR)}};I();function kR(e){return C(e)?e:$(e)?e.find(t=>C(t)):\"\"}function gv(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&kR(e.extends),n=e.parent&&e.parent.childExtends&&kR(e.parent.childExtends);return(t||r||n||\"\").split(\"_\")[0].split(\".\")[0].split(\"+\")[0]}function wd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=gv(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?wd(e.parent):o&&(t[o]||r[o])?e:wd(e.parent)}var kN=(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}))}},hv={\".preventSelect\":{userSelect:\"none\"},\"!preventSelect\":{userSelect:\"auto\"},onInspect:kN,onMousemove:(e,t,r)=>{let n=e.target.ref,o=wd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=gv(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=wd(n);if(!o)return;let s=gv(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)ao[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=`\n display: block !important;\n top: ${a-6}px;\n left: ${i-6}px;\n width: ${l+12}px;\n height: ${c+12}px;\n `}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},CR={name:\"inspect\",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(hv):e.extends?e.extends=[e.extends,hv]:e.extends=[hv]}};var CN=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(C(e)?e:\"smblsapp\");if(t.define=t.define||uo,t.cssPropsRegistry=_e,t.window=b1(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(f=>typeof f==\"string\")){let{resolveSharedLibraries:f}=await Promise.resolve().then(()=>(I(),Iw));t.sharedLibraries=await f(t.sharedLibraries)}T1(t)}let[s,i]=A1(o,t);t.designSystem=s,t.registry=i,t.cases||(t.cases={}),t.shorthand&&du.prepareContext(t);let a=E1(e,t);t.state=a,Bs(a),t.pages=O1(e,t),t.components=x1(t),t.utils=v1(t),Ar[t.packageManager]&&(t.dependencies=await _1(t)),t.methods=w1(t),t.routerOptions=o1(e,t),t.defaultExtends=[Uc],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&_(t.globalScope)&&(t.globalScope=as(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(cu);for(let d in Fi)d in t.functions||(t.functions[d]=Fi[d])}if(c(\"helmet\")||t.plugins.push(c1),t.fetch&&!c(\"fetch\")&&t.plugins.push(xh),t.designSystem?.typography?.useCapsize!==!1&&!c(\"capsize\")&&(t.plugins.push(I1),t.cssPropsRegistry.useCapsize=$1),t.shorthand&&!c(\"shorthand\")&&t.plugins.push(du),t.analyze&&!c(\"analyze\")){let d=t.analyze===!0?{}:t.analyze;t.analyze=wy(d),t.plugins.push(zi)}return t.sync!==!1&&!c(\"sync\")&&t.plugins.push(_R),t.inspect&&!c(\"inspect\")&&t.plugins.push(CR),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!c(\"notifications\")&&t.plugins.push(SR),t},mv=async(e,t)=>{_(t)||(t={}),er(e)?(e={},t.parent=e):C(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 CN(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=h1(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await S1({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 AN(Rt,e,i,t,r,o);let a=Rt(e,i,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<\"u\"&&!t.document&&(window.__smblsApp=a),a},AN=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 EN(o),l},EN=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var yv=(e,t)=>ae(e,_(t)?t:{}),ON=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},TN=()=>{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}},AR=e=>{let t=TN();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t===\"runner\"&&typeof e.editor.livesync>\"u\"&&(e.editor.livesync=!0))},bv=(e,t=Dr,r)=>{let n={...Dr,...yv(t,r)};return AR(n),ON(n),mv(e,n).then(s=>{if(oy(s,n),s.destroy=()=>$i(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})},PN=(e,t=Dr,r)=>{let n=bv(e,t,r),o={...Dr,...yv(t,r)},s=o.key;return l1(n,s,{utils:Ri,...o}),n},RN=async(e,t=Dr,r)=>{let n={...Dr,...yv(t,r)};AR(n);let o=t.key;await a1(o,n);let s=await mv(e,n);return oy(s,n),s.destroy=()=>$i(s),n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},$N=(e={},t=Dr,r)=>bv({deps:{isUndefined:Pe},...e},ae({domqlOptions:{onlyResolveExtends:!0}},t),r);Yc(Lc);return IR(IN);})();\n";
2
+ export default "\"use strict\";var Smbls=(()=>{var TR=Object.create;var el=Object.defineProperty;var PR=Object.getOwnPropertyDescriptor;var RR=Object.getOwnPropertyNames;var $R=Object.getPrototypeOf,IR=Object.prototype.hasOwnProperty;var FR=(e=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(e,{get:(t,r)=>(typeof require<\"u\"?require:t)[r]}):e)(function(e){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+e+'\" is not supported')});var q=(e,t)=>()=>(e&&(t=e(e=0)),t);var Cd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),G=(e,t)=>{for(var r in t)el(e,r,{get:t[r],enumerable:!0})},bv=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of RR(t))!IR.call(e,o)&&o!==r&&el(e,o,{get:()=>t[o],enumerable:!(n=PR(t,o))||n.enumerable});return e};var xv=(e,t,r)=>(r=e!=null?TR($R(e)):{},bv(t||!e||!e.__esModule?el(r,\"default\",{value:e,enumerable:!0}):r,e)),jR=e=>bv(el({},\"__esModule\",{value:!0}),e);var Pd,Rd,A,ce,Xo=q(()=>{\"use strict\";Pd=globalThis,Rd=globalThis,A=globalThis,ce=A.document});var tr,Yo,He,Zo=q(()=>{\"use strict\";Xo();tr=e=>(typeof Node==\"object\"?e instanceof A.Node:e&&typeof e==\"object\"&&typeof e.nodeType==\"number\"&&typeof e.nodeName==\"string\")||!1,Yo=e=>(typeof HTMLElement==\"object\"?e instanceof A.HTMLElement:e&&typeof e==\"object\"&&e!==null&&e.nodeType===1&&typeof e.nodeName==\"string\")||!1,He=e=>typeof A<\"u\"&&(A.Node&&e instanceof A.Node||A.Window&&e instanceof A.Window||e===A||e===document)});var w,C,zt,E,ol,sl,$,il,Q,qe,Pe,Jo,Ge,$d,Re=q(()=>{\"use strict\";Zo();w=e=>e===null?!1:typeof e==\"object\"&&e.constructor===Object,C=e=>typeof e==\"string\",zt=e=>typeof e==\"number\",E=e=>typeof e==\"function\",ol=e=>e===!0||e===!1,sl=e=>e===null,$=e=>Array.isArray(e),il=e=>e instanceof Date,Q=e=>e===null?!1:typeof e==\"object\",qe=e=>e!==void 0,Pe=e=>e===void 0,Jo={boolean:ol,array:$,object:w,string:C,date:il,number:zt,null:sl,function:E,objectLike:Q,node:tr,htmlElement:Yo,defined:qe},Ge=e=>(...t)=>t.some(r=>Jo[r](e)),$d=e=>(...t)=>!t.some(r=>Jo[r](e))});var Id,Fd,jd,Dd,Ln,Qo,Ld,Md,es,Nd,Bd,Vd,zd,Ud,Wd,Hd,Mn,ts,Nn=q(()=>{\"use strict\";rr();Re();Id=(e,t)=>t.every(r=>e.includes(r)),Fd=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},jd=(e,t)=>{if(C(t)&&(t=parseInt(t)),zt(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},Dd=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Ln=(...e)=>[].concat(...e),Qo=(e,t=[])=>e.reduce((r,n)=>ae(r,ue(n,{exclude:t}),t),{}),Ld=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Md=(e,t)=>{if(!$(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},es=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Nd=(e,t)=>e.filter(r=>r!==t),Bd=(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},Vd=(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},zd=(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},Ud=(e,t)=>e.filter(r=>!t.includes(r)),Wd=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Hd=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Mn=e=>$(e)?[...new Set(e)]:e,ts=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function Zr(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!e.includes(o))return e;let s=MR[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=rs(h,f);return String(g??\"\")}else{let p=rs(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=rs(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 _=rs(v,f);if(_!=null&&typeof _!=\"object\")return String(_)}}}let y=rs(h.translations,f);if(y!=null&&typeof y!=\"object\")return String(y)}return\"\"}})}var ns,qd,MR,rs,Jr,Gd,NR,Kd,Xd,Yd,BR,Zd,Jd,os=q(()=>{\"use strict\";ns=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},qd=(e,t)=>{let r=new RegExp(`[${t.join(\"\\\\\")}]`,\"g\");return e.replace(r,\"\")},MR={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},rs=(e,t)=>t.split(\".\").reduce((r,n)=>r?.[n],e);Jr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Gd=(e,t)=>{let r=e.split(`\n`),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}},NR=/\\\\([0-7]{1,3})/g,Kd=e=>e.replace(NR,(t,r)=>String.fromCharCode(parseInt(r,8))),Xd=e=>e.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),Yd=e=>e.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),BR=/[^a-zA-Z0-9\\s]/g,Zd=e=>e.replace(BR,t=>\"%\"+t.charCodeAt(0).toString(16).toUpperCase()),Jd=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var xr,ss,Qd,Qr,vr,Bn,is,ep,Vn=q(()=>{\"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\"]),ss=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),Qd=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],Qr=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\"]),Bn=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\"]),is=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...Bn,...Qr,...vr]),ep=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])});var Av,en,le,tp,ge,ae,Ev,rp,ue,as,VR,ls,zR,UR,zn,WR,lt,HR,cs,np,op,al,sp,ip,us,tn,Ke,ll,qR,ap,lp,cl,cp,up,fp,dp,pp,hp,gp,rr=q(()=>{\"use strict\";Xo();Re();Nn();os();Zo();Vn();Av=\"production\",en=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,le=(e,t,r,n)=>{if(E(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)||w(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 le(i,t,r,n)}}return e},tp=(e,t,r)=>{for(let n in t)e[n]=le(t[n],r)},ge=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(en(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},ae=(e,t,r=is)=>Ev(e,t,r,null),Ev=(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)||en(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(Q(i)&&Q(a)){let l=n||[];l.push(e,t),Ev(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},rp=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(en(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},ue=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=t,l=s||A||globalThis;if(!Q(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)||en(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]=Qo(p,r);continue}if(E(p)){u[f]=p;continue}Q(p)?u[f]=ue(p,{...t,visited:i}):u[f]=p}}return u},as=(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(E(n))t[r]=n.toString();else if(w(n))t[r]={},as(n,t[r]);else if($(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];w(i)?(o[s]={},as(i,o[s])):E(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},VR=new Set([\"&\",\"*\",\"-\",\":\",\"%\",\"{\",\"}\",\">\",\"<\",\"@\",\".\",\"/\",\"!\",\" \"]),ls=(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=`{\n`;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(VR.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,$(i)){o+=`[\n`;for(let c of i)Q(c)&&c!==null?o+=`${n} ${ls(c,t+2)},\n`:C(c)?o+=`${n} '${c}',\n`:o+=`${n} ${c},\n`;o+=`${n} ]`}else Q(i)?o+=ls(i,t+1):C(i)?o+=ns(i,[`\n`,\"'\"])?`\\`${i}\\``:`'${i}'`:o+=i;o+=`,\n`}return o+=`${n}}`,o},zR=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/],UR=/^[\"[{]/,zn=e=>{if(!e)return!1;let t=e.trim().replace(/\\n\\s*/g,\" \").trim();if(t===\"\"||t===\"{}\"||t===\"[]\"||!zR.some(s=>s.test(t)))return!1;let n=t.charCodeAt(0),o=t.includes(\"=>\");return!(n===123&&!o||n===91||UR.test(t)&&!o)},WR=e=>(0,eval)(e),lt=(e,t={},r={window:{eval:WR}})=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(C(o))if(zn(o))try{t[n]=r.window.eval(`(${o})`)}catch(s){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: '+(s&&s.message?s.message:String(s))+`.\nFirst 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(C(a))if(zn(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)}.\nFirst 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else w(a)?s.push(lt(a)):s.push(a)}}else w(o)?t[n]=lt(o,t[n]):t[n]=o}return t},HR=e=>!e||typeof e!=\"object\"?e:e.__type===\"Set\"&&Array.isArray(e.values)?new Set(e.values):e.__type===\"Map\"&&Array.isArray(e.entries)?new Map(e.entries):e,cs=e=>{if(!e||typeof e!=\"object\")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];C(o)&&zn(o)?r.push([n,o]):t[n]=HR(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`\n`);t[n]=A.eval(`(function(__gs__) { ${s}\n return (${o}); })`)(t)}catch{try{t[n]=A.eval(`(${o})`)}catch{t[n]=o}}return t},np=(e,t={verbose:!0})=>{try{return e?A.eval(\"(\"+e+\")\"):{}}catch(r){t.verbose&&console.warn(r)}},op=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),al=e=>{for(let t in e)return!1;return!0},sp=e=>w(e)&&al(e),ip=()=>Object.create(null),us=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&en(s)||s===\"constructor\"||s===\"prototype\"||t[s]!==void 0&&(e[s]=t[s]);return e},tn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)en(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(!Q(e)||!Q(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&&en(a)||a===\"constructor\"||a===\"prototype\")continue;let l=e[a],c=t[a];He(c)?e[a]=c:Q(l)&&Q(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ll=(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)||!ll(e[i],t[i],r))return!1}return!0},qR=new Set([\"node\",\"__ref\"]),ap=(e,t,r=qR)=>{if(e===t)return!0;if(!Q(e)||!Q(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(Q(c)&&Q(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},lp=(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},cl=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]=cl(e[r]));return t},cp=(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},up=(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]},fp=(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},dp=(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},pp=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(Av===\"test\"||Av===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",r),!0},hp=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)},gp=(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 fs,ds,ps,ul=q(()=>{\"use strict\";rr();fs=(function(){let e=0;function t(){return e++,e}return t})(),ds=fs,ps=(e,t,r)=>(le(r,e)||r||e.key||fs()).toString()});var kt,mp,_r,fl,yp,bp,xp,wr,vp,rn,_p=q(()=>{\"use strict\";kt=\"production\",mp=kt,_r=(e=kt)=>e===\"production\",fl=(e=kt)=>e===\"testing\"||e===\"test\",yp=fl,bp=(e=kt)=>e===\"staging\",xp=(e=kt)=>e===\"local\",wr=(e=kt)=>e===\"development\"||e===\"dev\"||e===\"local\",vp=(e,t=kt)=>t[e],rn=(e=kt)=>!_r(e)});function hs(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 Cp(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 wp,Sp,GR,kp,Un,Wn,Ct,Hn=q(()=>{\"use strict\";wp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Sp=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}}},GR=/^((function\\s*\\([^)]*\\)\\s*\\{[^}]*\\})|(\\([^)]*\\)\\s*=>))/,kp=e=>GR.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},Wn=(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 Ap,Ov=q(()=>{\"use strict\";Re();rr();Ap=(e,t)=>{let{__ref:r}=e,n=e.if;if(E(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\"?le(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Ep,Op,Tv=q(()=>{\"use strict\";Ep=(e,...t)=>{e&&t.map(r=>console.log(r))},Op=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Ip(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 Fp(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 Tp,Pp,Rp,$p,Pv=q(()=>{\"use strict\";Re();Xo();Tp=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),Pp=(e,t,r=365)=>{if(Pe(ce)||Pe(ce.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;ce.cookie=`${e}=${t};${o};path=/`},Rp=e=>{if(Pe(ce)||Pe(ce.cookie))return;let t=`${e}=`,n=decodeURIComponent(ce.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\"\"},$p=e=>{Pe(ce)||Pe(ce.cookie)||(ce.cookie=e+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}});var qn,Rv,jp,Dp=q(()=>{\"use strict\";qn={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\"])},Rv=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\"]),jp=e=>qn.body.has(e)});var Lp,$v,Gn,ys,Xe,Mp,dl,bs,Np,xs,pl,hl,vs,gl,Kn,KR,Ut,Iv,gs,_s,Bp,ms,Vp,zp,ml,yl,bl,xl,vl,_l,Fv,wl=q(()=>{\"use strict\";Nn();Up();rr();Re();Lp=\"production\",$v=e=>e.sourcemap!==!1&&Lp!==\"production\",Gn=e=>{if(e.includes(\"+\"))return e.split(\"+\").filter(Wt);if(e.includes(\"_\")){let[t]=e.split(\"_\");return[t]}if(e.includes(\".\")&&!Wt(e.split(\".\")[1])){let[t]=e.split(\".\");return[t]}return[e]},ys=(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},Mp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=$(r)?r:[r],o=$(e)?e:[e];return{...t,extends:Ln(o,n)}},dl=()=>Math.random().toString(36).substring(2),bs={},Np={},xs=e=>bs[e.__hash],pl=(e,t)=>{let r=dl();return C(e)||(e.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(bs[r]=t),t},hl=(e,t)=>e.__hash?t.concat(xs(e)):pl(e,t),vs=(e,t,r,n=new Set,o,s)=>{for(let i of e)$(i)?vs(i,t,r,n,o,s):Kn(i,t,r,n,o,void 0,s);return t},gl=(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&&Kn(a,t,r,n,o,s,i),t},Kn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if($(e))return vs(e,t,r,n,o,i);let a=s;return C(e)?(a=e,e=_s(e,r)):i&&w(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?gl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},KR=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"childExtends\",\"childExtendsRecursive\"]),Ut=(e,t,r,n,o)=>{t=ue(t);for(let s in t){if(KR.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?w(a)&&!$(a)?(r[s]=r[s]||{},Iv(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(w(i)&&w(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];Wt(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)&&w(a)){let l=Ut({},i);e[s]=Ut(l,a)}}}}return e},Iv=(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];w(s)&&!$(s)?(e[o]=e[o]||{},Iv(e[o],s,r,n)):e[o]=r}}},gs=(e,t,r)=>e.reduce((n,o,s)=>{let i=ue(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(C(e)){let i=o&&(o[e+\".\"+n]||o[e]||o[\"smbls.\"+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Lp===\"test\"||Lp===\"development\")&&console.warn(\"Extend is string but component was not found:\",e);return}return e},Bp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),ms=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return xs(e)||[];let s=Kn(e,[],t,new Set,r,void 0,n);return r?s:hl(e,s)},Vp=(e,t)=>{if(!e)return t;let r=$(e)?e:[e];return Ln(r,t)},zp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Wt(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},ml=(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 yl(e,t,r),bl(e,t,r),xl(e,t,r),e.component&&Xe(le(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Mn(n.__extends)},yl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},bl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},xl=(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},vl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=$v(r),a=i?[...n.__extends]:null,l=Mn(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&&w(p)&&C(h)&&c.set(p,h)}let u=[],d=ms(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=ms(l,o);n.__extendsStack=c}return n.__extendsStack},_l=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if($v(r)){let s={},i=n.__extendsNames||[],a=gs(o,s,i),l={};Ut(e,a,l,void 0,s),n.__sourcemap=l}else{let s=gs(o);Ut(e,s)}return e},Fv=(e,t,r={})=>(ml(e,t,r),vl(e,t,r),_l(e,t,r),e)});function Wp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Hp(e){return Object.keys(e).filter(t=>/^\\d+$/.test(t))}function qp(e,t,r){let{context:n}=t||{},[o]=Gn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Wt,Up=q(()=>{\"use strict\";wl();Re();Wt=e=>{if(!C(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function jv(e,t){let{props:r,on:n}=t,o=Jr(e.split(\"on\")[1]),s=n[o],i=r[e];E(s)?n[o]=(...a)=>{if(s(...a)!==!1&&E(i))return i(...a)}:n[o]=i}var Dv=q(()=>{\"use strict\";os();Re()});function Sl(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()&&(E(o)||o!=null&&Un(this.context))){let h=Jr(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=w(a)||E(a),u=w(l)||E(l);if(c||u)continue;let d=n.charAt(0);if(Mv.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=Gp.test(n)||Lv.test(n)||YR(o),p=xr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function kl(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=E(o)||o!=null&&Un(this.context);if(s&&i){jv(n,e),delete e.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(Mv.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=w(l)||E(l),d=w(c)||E(c),f=Gp.test(n)||Lv.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 Cl(e=this){let t=[];return Sl.call(this,e,{cachedKeys:t}),kl.call(this,e,{cachedKeys:t}),e}function Kp(e={}){return e.on||(e.on={}),e.props||(e.props={}),Cl.call(this,e)}function Yp(e,t){this.__element.update({props:e},t)}function As(e){let t={update:Yp.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Gp,Lv,Mv,XR,YR,ks,ws,Xp,Cs,Es,Os,Al,Ss,Zp,Jp,Qp=q(()=>{\"use strict\";Vn();Dv();rr();Re();os();Hn();Gp=/^[A-Z]/,Lv=/^\\d+$/,Mv=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),XR=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),YR=e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))return!1;for(let t in e)if(XR.has(t)||Gp.test(t))return!0;return!1},ks=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return Q(n)?{...n}:(o.__propsStack.push(n),{})};ws=e=>Ge(e)(\"string\",\"number\")?{inheritedString:e}:e,Xp=(e,t)=>!e||!t.length?!1:t.includes(e),Cs=(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=ws(i);n.unshift(l)}if(s){let l=ws(s);n.unshift(l)}return n};Es=e=>{let t=new Set;return e.filter(r=>!r||vr.has(r)||t.has(r)?!1:(t.add(r),!0))},Os=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(vr.has(o))return n;for(;E(o);)o=le(o,t);return ae(n,ue(o,{exclude:vr}))},{}),As(t),t.props),Al=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Cs(e,t)]),w(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=Es(o),n.__propsStack},Ss=(e,t)=>{let{__ref:r}=e,n=Al(e,t);n.length?Os(n,e):(r.__propsStack=[],e.props={})},Zp=function(e,t,r){let{__ref:n}=e;if(n.__if)Ss(e,t);else try{Ss(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),e.props={},n.__propsStack=[]}return As(e),e},Jp=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=Cs(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=Es(s),n.__propsStack.length&&Os(n.__propsStack,t),t}});var Nv,El,Ol,Tl,Pl,eh,Rl,$l,Il,th,Bv=q(()=>{\"use strict\";wl();ul();Zo();Qp();Dp();Re();Nv=\"production\",El=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=qn.body.has(r)&&r;return{text:e,tag:n||o||s||\"string\"}},Ol=(e,t,r)=>{if(e===void 0)return(Nv===\"test\"||Nv===\"development\")&&console.warn(r,\"element is undefined in\",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)(\"string\",\"number\")?El(e,t,r):E(e)?{props:e}:e},Tl=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Pl=(e,t,r,n,o)=>{if(!t)return o;if(tr(t)){let s={key:\":root\",node:t};return o[`${r}_parent`]=s,s}return t},eh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===\":root\";r?.root||(r.root=o?e:n?.root)},Rl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},$l=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Il=(e,t,r)=>{let n=Tl(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=ys(e,t,r),n.path=Rl(e,t,r),n},th=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:Ol(e,t,r);if(!i)return;let a=Pl(i,t,r,n,o),l=ps(i,a,r);Il(i,a,l);let c=ks(i,a,l),u=$l(i,a,l,n,o),d=i.on||{};return{...i,key:l,props:c,parent:a,context:u,on:d}}});var rh,Fl,jl,Dl,Ll,nh,Ml,oh,sh,ih,ah,Vv=q(()=>{\"use strict\";Nn();Vn();rr();Re();rh=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},Fl=(e,t)=>{if(!e.includes(\"~/\"))return;if(e.split(\"~/\").length>1)return t.root},jl=(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},Dl=(e,t,r={})=>{let n=C(e)?e.split(\"/\"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i===\"__proto__\"||a===\"__proto__\")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Ll=(e,t,r={})=>{let o=e.__ref.__state;if(!Ml(e))return;let s=Fl(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll(\"~/\",\"\");else{let a=jl(o,t.state);a&&(i=a,o=o.replaceAll(\"../\",\"\"))}if(i)return Dl(o,i,r)},nh=(e,t)=>{let r=e.__ref,n=Ll(e,t);if(n===void 0)return e.state;if(Ge(n)(\"object\",\"array\"))return ue(n);if(Ge(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},Ml=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)(\"number\",\"string\",\"boolean\"))},oh=function(e){return Q(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},sh=(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},ih=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ue(n,Qr),s={[e.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?ts(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},ah=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){ae(e,t,Qr);return}(o?tn:Ke)(e,t,Qr)}});var lh,zv=q(()=>{\"use strict\";lh=(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 Uv,Nl,Sr,Bl,ch,uh=q(()=>{\"use strict\";Re();Hn();Uv=(e,t)=>{let r=\"on\"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Nl=(e,t,r,n,o)=>{if(e=Wn(e,t),!!E(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=Uv(e,t);if(n){let{state:o,context:s}=t;return Nl(n,t,o,s,r)}},Bl=(e,t,r,n,o,s)=>{if(e=Wn(e,r),!!E(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}},ch=(e,t,r,n)=>{Ct(e,r,t,n);let o=Uv(e,r);if(o){let{state:s,context:i}=r;return Bl(o,t,r,s,i,n)}}});var fh,Ts,dh=q(()=>{\"use strict\";fh={},Ts={}});var qv={};G(qv,{setup:()=>JR,supabaseAdapter:()=>Hv});var Wv,ZR,JR,ph,QR,Hv,Gv=q(()=>{\"use strict\";Wv=new Map,ZR=(e,t,r)=>`${e}|${t}|${r?\"off\":\"on\"}`,JR=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=ZR(l,t,o===!1),u=Wv.get(c);return u||(u=await n(l,t,a),u?.auth&&Wv.set(c,u)),!u||!u.auth?null:Hv(u)},ph=(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},QR=(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},Hv=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=ph(l,o),l=QR(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=ph(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=ph(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 Xv={};G(Xv,{restAdapter:()=>Kv,setup:()=>t2});var e2,kr,t2,Kv,Yv=q(()=>{\"use strict\";e2=(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}},t2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error(\"@symbo.ls/fetch rest: url is required\");return Kv(e,t,r,n)},Kv=(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(e2(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 Jv={};G(Jv,{localAdapter:()=>Zv,setup:()=>n2});var hh,r2,n2,Zv,Qv=q(()=>{\"use strict\";hh=(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},r2=(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}},n2=async({data:e,...t})=>Zv(e,t),Zv=(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=>hh(g,d));return r2(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(hh(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--)hh(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 Ls={};G(Ls,{createAdapter:()=>i2,default:()=>m2,executeFetch:()=>Ds,fetchPlugin:()=>xh,initAdapterAuth:()=>Wl,parseDuration:()=>Rs,queryClient:()=>g2,registerAdapter:()=>s2,resolveDb:()=>o_});var o2,Vl,n_,s2,i2,o_,Rs,Be,s_,Ps,a2,js,$s,Is,zl,yh,Ul,l2,e_,gh,i_,a_,Xn,t_,c2,r_,u2,Hl,l_,Wl,bh,ct,At,Fs,nn,Ht,Cr,f2,d2,p2,mh,h2,Ds,g2,xh,m2,on=q(()=>{\"use strict\";I();o2=[\"select\",\"rpc\",\"insert\",\"update\",\"delete\",\"subscribe\"],Vl=Symbol.for(\"@symbo.ls/fetch:BUILTIN_ADAPTERS\"),n_=(()=>{if(typeof globalThis<\"u\"&&globalThis[Vl])return globalThis[Vl];let e={supabase:()=>Promise.resolve().then(()=>(Gv(),qv)),rest:()=>Promise.resolve().then(()=>(Yv(),Xv)),local:()=>Promise.resolve().then(()=>(Qv(),Jv))};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Vl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Vl]}catch{}return e})(),s2=(e,t)=>{n_[e]=t},i2=e=>{let t={};for(let r of o2)e[r]&&(t[r]=e[r]);return t.name=e.name||\"custom\",t},o_=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=n_[n];if(!o)throw new Error(`Unknown db adapter: \"${n}\". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Rs=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,s_=new Map,Ps=new Map,a2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=u2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||\"\")}`;return t?`${n}:${t}`:n},js=e=>Be.get(e)||null,$s=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=s_.get(e);if(s)for(let i of s)E(i)&&i(o);return o},Is=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},zl=e=>{if(e){Be.delete(e);return}Be.clear()},yh=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e==\"number\"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:C(e)?{staleTime:Rs(e),gcTime:3e5}:{staleTime:Rs(e.stale||e.staleTime)||6e4,gcTime:Rs(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Ul=null,l2=()=>{Ul||(Ul=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=s_.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Ul.unref&&Ul.unref())};l2();e_=3,gh=e=>Math.min(1e3*2**e,3e4),i_=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:e_,delay:gh}:typeof t==\"number\"?{count:t,delay:gh}:{count:t.count??e_,delay:E(t.delay)?t.delay:typeof t.delay==\"number\"?()=>t.delay:gh}},a_=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=E(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=E(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Xn={focus:new Set,online:new Set},t_=!1,c2=()=>{if(t_||typeof window>\"u\")return;t_=!0;let e=()=>{for(let r of Xn.focus)r()},t=()=>{for(let r of Xn.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&e()}),window.addEventListener(\"focus\",e),window.addEventListener(\"online\",t)},r_=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:\"select\",query:!0,on:\"create\"};if(C(e))return{from:e,method:\"select\",query:!0,on:\"create\"};if(w(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},u2=e=>(!e||E(e),e),Hl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},l_=(e,t,r)=>{let n;if(!e)n=void 0;else if(E(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=E(s)?s(t,t.state):s}}return n},Wl=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)})},bh=async(e,t)=>{if(E(e.select))return e.auth!==!1&&await Wl(e,t),e;if(e.__resolved)return e.auth!==!1&&await Wl(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=o_(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 Wl(r,t),r):null},ct=(e,t,...r)=>{let n=E(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},At=(e,t,r,...n)=>{let o=e&&E(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Fs=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},nn=(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})}},Ht=(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||E(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||E(e.skip)&&e.skip(t,t.state))return;let s=await bh(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:_,page:S,cursor:O,getNextPageParam:T,getPreviousPageParam:k,infinite:D,placeholderData:te,initialData:z,select:N,keepPreviousData:ye}=e,pe=C(N)?N:void 0;if(c&&E(t.getQuery)){let B=t.getQuery(s.name||\"paths\");B&&(pe=B.select||B.length&&B.join(\",\")||pe)}let be=l_(u,t,r),he=yh(d),er=i_(e),Xr=Hl(t,r),wd=Xr?`:${Xr}`:\"\",Y=he?d?.key||`${a}:${l}:${JSON.stringify(be||\"\")}${D?\":infinite\":\"\"}${S?\":p\"+JSON.stringify(S):\"\"}${wd}`:null;if(!i.__fetchInitialized&&Y&&(i.__fetchInitialized=!0,z!==void 0)){let B=E(z)?z():z;$s(Y,B,null)}if((l===\"select\"||l===\"rpc\")&&Y&&he){let B=js(Y);if(B&&!B.error){let V=Date.now()-B.time,L=B.stale||V>(he.staleTime||0),U=B.data;if(E(N)&&(U=N(U,t,t.state)),f&&(U=f(U,t,t.state)),nn(t,U,m),!L){Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(te!==void 0){let V=E(te)?te(t,t.state):te;V!==void 0&&nn(t,V,m)}}if(Y&&Ps.has(Y)&&!n.force){let B=Ps.get(Y);try{let V=await Promise.race([B,new Promise((L,U)=>setTimeout(()=>U(\"DEDUP_TIMEOUT\"),15e3))]);if(V?.data!==void 0){let L=V.data;E(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),nn(t,L,m),ct(t,\"onFetchComplete\",L),At(e,t,\"onFetchComplete\",L)}}catch{}return}let Sd=!js(Y)?.data;Ht(t,{isFetching:!0,isLoading:Sd,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),ct(t,\"onFetchStart\"),At(e,t,\"onFetchStart\");let ke=r?.analyze?.emitNetwork,Yr=ke?typeof performance<\"u\"?performance.now():Date.now():0;ke&&ke({phase:\"start\",mode:\"query\",from:a,method:l,cacheKey:Y,lang:Xr});let ie=a_(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let Ce={message:\"Not authenticated\"};return Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Ce,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",Ce),At(e,t,\"onFetchError\",Ce),{data:null,error:Ce}}}let B=s[l];if(!E(B))return{data:null,error:{message:`Method \"${l}\" not found on adapter`}};let V={from:a,select:pe,params:be,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:_},L=Hl(t,r);if(L&&(V.headers={...V.headers,\"Accept-Language\":L}),S!==void 0){if(w(S))S.offset!==void 0&&(V.offset=S.offset),S.limit!==void 0&&(V.limit=S.limit),S.cursor!==void 0&&(V.params={...V.params,cursor:S.cursor});else if(typeof S==\"number\"){let U=e.pageSize||y||20;V.offset=(S-1)*U,V.limit=U}}if(O!==void 0&&(V.params={...V.params,cursor:O}),l===\"insert\"||l===\"update\"||l===\"upsert\"){let U;if(g===!0||e.on===\"submit\")U=Fs(t);else if($(g)){let Ce=Fs(t);U={};for(let Qa of g)U[Qa]=Ce[Qa]}else t.state?.parse?U=t.state.parse():w(t.state)&&(U={...t.state});f&&(U=f(U,t,t.state)),V.data=U}if(l===\"rpc\"){let U=be;if(e.on===\"submit\"){let Ce=Fs(t);U=e.transformParams?e.transformParams(Ce,t,t.state):Ce}V.params=U}if(l===\"subscribe\"){let U=s.subscribe({from:a,params:be,on:e.subscribeOn},(Ce,Qa,LN)=>{nn(t,Ce,m),ct(t,\"onFetchComplete\",Ce),At(e,t,\"onFetchComplete\",Ce)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return B(V)},er);Y&&Ps.set(Y,ie);try{let B=await ie;if(B?.subscribed)return;let{data:V,error:L}=B||{};if(L){Y&&$s(Y,null,L),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:L,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",L),At(e,t,\"onFetchError\",L),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:L.message||L,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Yr});return}if(V!==void 0){if((l===\"select\"||l===\"rpc\")&&Y){let Ce=$s(Y,V,null);Ce.gcTime=he?.gcTime||3e5}let U=V;D&&$(V)&&(i.__pages||(i.__pages=[]),n.direction===\"previous\"?i.__pages.unshift(V):i.__pages.push(V),U=i.__pages.flat(),T&&(i.__nextPageParam=T(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),k&&(i.__prevPageParam=k(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),E(N)&&(U=N(U,t,t.state)),f&&(U=f(U,t,t.state)),(!ye||U!==void 0)&&nn(t,U,m),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),ct(t,\"onFetchComplete\",U),At(e,t,\"onFetchComplete\",U),ke&&ke({phase:\"success\",mode:\"query\",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Yr})}}catch(B){Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",B),At(e,t,\"onFetchError\",B),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:B.message||String(B),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Yr})}finally{Y&&Ps.delete(Y)}},f2=(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))},d2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),c2();let o=e.refetchInterval;if(o){let s=typeof o==\"number\"?o:Rs(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=Hl(t,r),a=a2(e,i),l=js(a),c=yh(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Cr(e,t,r,{force:!0})};Xn.focus.add(s),n.__fetchCleanups.push(()=>Xn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Cr(e,t,r,{force:!0});Xn.online.add(s),n.__fetchCleanups.push(()=>Xn.online.delete(s))}},p2=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():w(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=E(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&nn(e,i,o),s},mh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(nn(e,n,t.as),delete r.__optimisticSnapshot)},h2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await bh(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,_;if(l===!0||d===\"submit\")_=Fs(t);else if($(l)){let k=Fs(t);_={};for(let D of l)_[D]=k[D]}else t.state?.parse?_=t.state.parse():w(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),E(y)&&y(_,t,t.state);let S=m?p2(t,e,_):null;s.__fetching=!0,Ht(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),ct(t,\"onFetchStart\"),At(e,t,\"onFetchStart\");let O=r?.analyze?.emitNetwork,T=O?typeof performance<\"u\"?performance.now():Date.now():0;O&&O({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let be=await o.getSession();if(f===!0&&!be){S!==void 0&&mh(t,e);let he={message:\"Not authenticated\"};ct(t,\"onFetchError\",he),At(e,t,\"onFetchError\",he);return}}let k=o[i];if(!E(k))return;let D={from:a,data:_,headers:p,baseUrl:h};e.params&&(D.params=l_(e.params,t,r));let te=Hl(t,r);te&&(D.headers={...D.headers,\"Accept-Language\":te});let z=i_(e),N=await a_(()=>k(D),z),{data:ye,error:pe}=N||{};if(pe){S!==void 0&&mh(t,e),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pe,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",pe),E(x)&&x(pe,_,t),E(v)&&v(null,pe,_,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:pe.message||String(pe),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,ye!==void 0){let be=u?{[u]:ye}:ye;t.state?.update&&t.state.update(be,{preventFetch:!0})}if(Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),ct(t,\"onFetchComplete\",ye),At(e,t,\"onFetchComplete\",ye),E(b)&&b(ye,_,t),E(v)&&v(ye,null,_,t),O&&O({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T}),g){let be=$(g)?g:[g];for(let he of be)if(he===!0||he===\"*\")for(let[er]of Be)er.startsWith(a+\":\")&&Is(er);else Is(he)}}catch(k){S!==void 0&&mh(t,e),Ht(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:\"error\",fetchStatus:\"idle\"}),ct(t,\"onFetchError\",k),At(e,t,\"onFetchError\",k),E(x)&&x(k,_,t),E(v)&&v(null,k,_,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:k.message||String(k),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},Ds=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=le(e,t);if(!s)return;let i=$(s)?s.map(l=>r_(le(l,t),t)).filter(Boolean):[r_(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?h2:Cr;l.on===\"create\"?u(l,t,n):Promise.resolve().then(()=>{f2({...l,__runner:u},t,n)}),!c&&l.on===\"create\"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&d2(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})}},g2={invalidateQueries:e=>{if(!e){Is();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Is(t);else if($(e)){let t=e.join(\":\");for(let[r]of Be)r.includes(t)&&Is(r)}},removeQueries:e=>{if(!e){zl();return}if(C(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&zl(t)},getQueryData:e=>js(e)?.data??void 0,setQueryData:(e,t)=>{let r=js(e),n=E(t)?t(r?.data):t;$s(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await bh(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(!E(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=$s(o,i.data,null);a.gcTime=yh(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>zl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||zl(r))}},xh={name:\"fetch\",create(e){let t=e.fetch;t&&(e.parent||Ps.clear(),Ds(t,e,e.state,e.context))}},m2=Ds});function Ns(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 _h(e){let t=this,{parent:r}=t;if(E(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 wh(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(E(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 Sh(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(E(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 ql(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(w(n)&&o)ql.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 u_(e){let t=this;if(Sr(\"beforeRemove\",t,e)===!1)return t;E(t.node.remove)?t.node.remove():_r()||(console.warn(\"This item cant be removed\"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=es(t.parent.__ref.__children,t.key)),Sr(\"remove\",t,e)}function kh(e){return this[e]}function Ch(e,t){let r=this;if(e)return r.update(e,t),r}function Ah(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Bs(){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=c_();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=E(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=c_()),e?t?.[e]:t}function Ws(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Hs(e){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&e?this.getRoot(\"data\")[e]:this.getRoot(\"data\")}function qs(e){let t=this.getRoot()?.context;return e?t[e]:t}function Gs(e){let t=this.context;return e?t[e]:t}function Gl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||xr.has(r)&&!ss.has(r)||t.push(r);return t}function Kl(e=[]){let t=this,r={},n=Gl.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=E(l&&l.parse)?l.parse():l;r[a]=E(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 Ms(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Kl.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=>Q(a)?Ms.call(a,e,t):a):Q(i)&&(n[s]=Ms.call(i,e,t))}return n}function Yn(...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}:\n`,\"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 Oh(...e){(Ar===\"test\"||Ar===\"development\")&&console.log(...e)}function Ks(...e){(Ar===\"test\"||Ar===\"development\")&&console.warn(...e)}function sn(...e){if(Ar===\"test\"||Ar===\"development\"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Yn.call(this),new Error(...e)}}function Xs(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function Ys(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 Zs(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,ue(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 Th(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=>{sn.call(this,s)}),o}catch(o){if(sn.call(this,o),r?.strictMode)throw o}}async function Js(){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(()=>(on(),Ls));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(on(),Ls));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(on(),Ls)).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(()=>(on(),Ls));await o(n,e.context)}return n}function Qs(e){let t=this,r=e||Ts.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(vh(t,n),r===!0)return n;let o=k2[r];return o?o(n):n}function Ph(e,t){return!!(Bn.has(e)||t?.context?.methods?.[e])}var Ar,f_,zs,c_,Eh,vh,y2,d_,b2,x2,v2,_2,w2,S2,k2,p_=q(()=>{\"use strict\";uh();Vn();Re();rr();_p();Nn();dh();Ar=\"production\";f_=null,zs=e=>{f_=e||null},c_=()=>f_||null;Eh=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});vh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&y2(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&vh(l,t)}let s=r.contentElementKey||\"content\",i=e[s];i&&i.__ref&&vh(i,t)},y2=(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])}},d_=(e,t=0)=>{let r=\" \".repeat(t),n=Object.entries(e);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {\n${d_(i,t+1)}\n${r}}`).join(`\n`):\"\"},b2=e=>`{\n${d_(e,1)}\n}`,x2=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},v2=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(\"&\")},_2=(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?`\n`+n.join(`\n`):\"\";return`SELECT ${l}\nFROM ${a}${c}`},w2=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},S2=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)}},k2={graphql:b2,\"json-api\":x2,odata:v2,sql:_2,supabase:S2,paths:w2}});var C2,Rh,h_=q(()=>{\"use strict\";ul();C2={snapshotId:ds},Rh=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let a=C2.snapshotId();return r.__currentSnapshot=a,[a,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Xl,$h,g_=q(()=>{Xl=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),$h=e=>typeof e==\"string\"&&Xl.has(e)});async function Ih(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 m_=q(()=>{\"use strict\"});function A2(e){return/^[0-9.]+$/.test(e)&&e!==\"\"}var Et,Er,Zn,Ot,Fh,y_=q(()=>{\"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||!A2(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\"},Zn=(e={})=>{let{packageManager:t}=e;return Er[t]||null},Ot=(e,t=\"latest\",r=\"esmsh\")=>(Et[r]||Et.esmsh).formatUrl(e,t),Fh=(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\">{\n \"imports\": ${JSON.stringify(o,null,2)}\n }<\\/script>`}});var jh,b_=q(()=>{\"use strict\";jh=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 Dh,x_=q(()=>{\"use strict\";Dh=(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 Lh,v_=q(()=>{\"use strict\";Lh=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 Mh,__=q(()=>{\"use strict\";Mh=e=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(e)});function Jn(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 Wh(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 Nh,Bh,Vh,zh,Uh,w_=q(()=>{\"use strict\";Nh=(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)}}),Bh=(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)}),Vh=(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}`)},zh=(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)}}),Uh=(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 T2(e,t){if(!t||typeof t!=\"object\")return e;let r=o=>{if(!O2(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 Yl(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 P2(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]??Yl(a,g)??f;if(h===\"getLocalStateLang\")return Yl(l,g+s)??f;let m=Yl(l,g);return m!==void 0?m:a[g]??Yl(a,g)??f}));return c}function S_(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 qh(e,t,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=e.pages?.[t],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=S_(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=S_(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=P2(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=T2(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,E2,Hh,O2,k_=q(()=>{\"use strict\";Re();ut=e=>{if(e==null)return\"\";let t={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#039;\"};return e.toString().replace(/[&<>\"']/g,r=>t[r])},E2=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}=\"${ut(r)}\"`).join(\" \"),Hh=(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=E2(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(`\n`)),O2=e=>typeof e==\"string\"&&e.length>0&&!e.startsWith(\"/\")&&!e.startsWith(\"http\")});var Zl,Gh,C_=q(()=>{\"use strict\";Re();Zl=(e,t)=>($(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Gh=(e,t)=>(e=parseFloat(e),w(t)&&(t=Object.values(t)),Zl(e,t))});function Qn(e){let t=String(e||\"\").trim();if(!t)return{owner:A_,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=A_);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function Jl(e,t={}){if((t.provider||\"kv\")===\"api\")return E_(e,t);let n=await I2(e,t);return n||E_(e,t)}async function I2(e,t={}){let r=t.kvBaseUrl||R2,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 E_(e,t={}){let r=t.apiBaseUrl||$2,{key:n}=Qn(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}=Qn(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 Kh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(w(n))return n;if(C(n)){let{full:o}=Qn(n);if(!o)return null;try{let s=await Jl(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 A_,R2,$2,ei,ti,O_=q(()=>{\"use strict\";Re();A_=\"system\",R2=\"https://smbls-kv.nika-980.workers.dev\",$2=\"https://api.symbols.app\";ei=(e,t)=>{for(let r in t)r in e?w(e[r])&&w(t[r])&&ei(e[r],t[r]):e[r]=t[r]},ti=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(w(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(w(n[o])&&w(e[o]))if(o===\"designSystem\")ei(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 Xh,Yh,Zh,ri,Jh,ni,Qh,an,T_=q(()=>{\"use strict\";Re();Xh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn(\"Failed to copy text: \",t)}},Yh=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)}},Zh=e=>e.replace(/[^a-zA-Z0-9_]/g,\"\"),ri=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,\"\")),Jh=e=>e&&e.replace(/\\w\\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),ni=e=>e.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),Qh=(e=\"\")=>{if(typeof e!=\"string\")return;let t=e.replace(/([A-Z])/g,\" $1\");return t.charAt(0).toUpperCase()+t.slice(1)},an=e=>{if($(e))return e;if(C(e))return e.split(\" \");if(w(e))return Object.values(e);if(zt(e))return[e]}});var eg,P_=q(()=>{\"use strict\";eg=()=>{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,eo,oi,si,R_=q(()=>{\"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},eo=(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(\", \")},oi=e=>{if(!e||!Array.isArray(e.variants))return\"\";let t=e.variants.filter(r=>r.format===e.type);return eo(t,{keepOneX:!1})},si=(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:eo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=eo(o,{keepOneX:!1}),i={src:e.src,alt:t||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}});var $_={};G($_,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>ep,DOMQ_PROPERTIES:()=>xr,ENV:()=>mp,HTML_TAGS:()=>qn,METHODS:()=>Bn,METHODS_EXL:()=>is,NODE_ENV:()=>kt,OPTIONS:()=>Ts,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ss,PROPS_METHODS:()=>vr,STATE_METHODS:()=>Qr,STATE_PROPERTIES:()=>Qd,SVG_TAGS:()=>Rv,TYPES:()=>Jo,UNIVERSAL_RESERVED_KEYS:()=>Xl,addCaching:()=>Il,addContext:()=>$l,addExtend:()=>Vp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Bd,addProtoToArray:()=>ts,addRef:()=>Tl,applyDependentState:()=>ih,applyEvent:()=>Nl,applyEventUpdate:()=>Bl,applyExtends:()=>Fv,applyProps:()=>Ss,arrayContainsOtherArray:()=>Id,arraysEqual:()=>zd,arrayzeValue:()=>an,buildImgSrcset:()=>oi,buildSourcesAndImg:()=>si,cache:()=>fh,call:()=>Th,captureSnapshot:()=>Rh,checkForStateTypes:()=>rh,checkIfInherits:()=>Ml,checkIfStringIsInArray:()=>Hd,clone:()=>rp,cloneAndMergeArrayExtend:()=>gs,cloneFunction:()=>Cp,concatAddExtends:()=>Mp,copyJavaScriptToClipboard:()=>Yh,copyStringToClipboard:()=>Xh,createBasedOnType:()=>Ol,createElement:()=>th,createElementExtends:()=>ml,createExtends:()=>ys,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>vl,createIfConditionFlag:()=>Ap,createInheritedState:()=>nh,createKey:()=>ps,createNestedObject:()=>cp,createNestedObjectByKeyPath:()=>sh,createObjectWithoutPrototype:()=>cl,createParent:()=>Pl,createPath:()=>Rl,createProps:()=>ks,createPropsStack:()=>Al,createRoot:()=>eh,createScope:()=>lh,createSnapshotId:()=>ds,customDecodeURIComponent:()=>Jd,customEncodeURIComponent:()=>Zd,cutArrayAfterValue:()=>Md,cutArrayBeforeValue:()=>Ld,debounce:()=>hs,debounceOnContext:()=>wp,decodeNewlines:()=>Yd,deepClone:()=>ue,deepContains:()=>ap,deepDefaults:()=>ei,deepDestringifyFunctions:()=>lt,deepExtend:()=>gl,deepMerge:()=>ae,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>as,defineSetter:()=>Eh,destringifyGlobalScope:()=>cs,detectHeightOnInit:()=>Dh,detectInfiniteLoop:()=>pp,document:()=>ce,encodeNewlines:()=>Xd,error:()=>sn,excludeKeysFromObject:()=>gp,exec:()=>le,extendCachedRegistry:()=>Np,extendStackRegistry:()=>bs,extractArrayExtend:()=>vs,fetchLibraryData:()=>Jl,fibonacciNumberByIndex:()=>Lh,filterArrays:()=>Ud,filterArraysFast:()=>Wd,finalizeExtends:()=>_l,findClosestNumber:()=>Zl,findClosestNumberInFactory:()=>Gh,findInheritedState:()=>Ll,findKeyPosition:()=>Gd,flattenExtend:()=>Kn,formatDate:()=>jh,generateHash:()=>dl,generateKey:()=>fs,generateMetaTags:()=>Hh,get:()=>kh,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>Wp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Dl,getChildren:()=>Bs,getContext:()=>Gs,getCookie:()=>Rp,getDB:()=>Js,getEmotionStylesheet:()=>eg,getExtendsInElement:()=>zp,getExtendsStack:()=>ms,getExtendsStackRegistry:()=>hl,getFrequencyInArray:()=>Fd,getHashedExtend:()=>xs,getImportMapScript:()=>Fh,getInObjectByPath:()=>dp,getLocalStorage:()=>Ip,getNev:()=>vp,getPageMetadata:()=>qh,getParentStateInKey:()=>jl,getPath:()=>Vs,getQuery:()=>Qs,getRef:()=>Ah,getRoot:()=>Ws,getRootContext:()=>qs,getRootData:()=>Hs,getRootState:()=>Us,getRootStateInKey:()=>Fl,getSpreadChildren:()=>Hp,global:()=>Pd,hasFunction:()=>zn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>op,inheritChildExtends:()=>bl,inheritChildPropsExtends:()=>yl,inheritParentProps:()=>Cs,inheritRecursiveChildExtends:()=>xl,initProps:()=>Zp,is:()=>Ge,isArray:()=>$,isBoolean:()=>ol,isContextComponent:()=>qp,isCyclic:()=>hp,isDOMNode:()=>He,isDate:()=>il,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>al,isEmptyObject:()=>sp,isEqualDeep:()=>ll,isFunction:()=>E,isHtmlElement:()=>Yo,isLocal:()=>xp,isMethod:()=>Ph,isMobile:()=>Tp,isNode:()=>tr,isNot:()=>$d,isNotProduction:()=>rn,isNull:()=>sl,isNumber:()=>zt,isObject:()=>w,isObjectLike:()=>Q,isPhoto:()=>Mh,isProduction:()=>_r,isStaging:()=>bp,isState:()=>oh,isString:()=>C,isStringFunction:()=>kp,isTest:()=>fl,isTesting:()=>yp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>$h,isValidHtmlTag:()=>jp,joinArrays:()=>Ln,jointStacks:()=>Bp,keys:()=>Gl,loadCssFile:()=>zh,loadJavascript:()=>Uh,loadJavascriptFile:()=>Nh,loadJavascriptFileEmbedSync:()=>Vh,loadJavascriptFileSync:()=>Bh,loadRemoteCSS:()=>Wh,loadRemoteScript:()=>Jn,log:()=>Oh,logGroupIf:()=>Op,logIf:()=>Ep,lookdown:()=>wh,lookdownAll:()=>Sh,lookup:()=>_h,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>ip,map:()=>tp,mapStringsWithContextComponents:()=>_s,matchesComponentNaming:()=>Wt,memoize:()=>Sp,merge:()=>ge,mergeSharedLibraries:()=>ti,nextElement:()=>Xs,normalizeLibraryKey:()=>Qn,objectToString:()=>ls,objectizeStringProperty:()=>ws,overwrite:()=>us,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>ah,parse:()=>Kl,parseDeep:()=>Ms,pickupElementFromProps:()=>kl,pickupPropsFromElement:()=>Sl,previousElement:()=>Ys,propExists:()=>Xp,propertizeElement:()=>Cl,propertizeUpdate:()=>Kp,remove:()=>u_,removeChars:()=>Zh,removeCookie:()=>$p,removeDuplicateProps:()=>Es,removeDuplicatesInArray:()=>Mn,removeFromArray:()=>jd,removeFromObject:()=>lp,removeNestedKeyByPath:()=>up,removeValueFromArray:()=>es,removeValueFromArrayAll:()=>Nd,reorderArrayByValues:()=>Vd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Kd,resolveAsset:()=>Ye,resolveHandler:()=>Wn,resolveSharedLibraries:()=>Kh,returnValueAsText:()=>El,runPluginHook:()=>Ct,self:()=>Rd,setActiveRootState:()=>zs,setCookie:()=>Pp,setHashedExtend:()=>pl,setInObjectByPath:()=>fp,setLocalStorage:()=>Fp,setNodeStyles:()=>ql,setProps:()=>Ch,setPropsPrototype:()=>As,spotByPath:()=>Ns,srcsetFor:()=>eo,stringIncludesAny:()=>ns,stringToObject:()=>np,swapItemsInArray:()=>Dd,syncProps:()=>Os,toCamelCase:()=>ri,toDashCase:()=>ni,toDescriptionCase:()=>Qh,toTitleCase:()=>Jh,toggleFullscreen:()=>Ih,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ch,trimStringFromSymbols:()=>qd,unstackArrayOfObjects:()=>Qo,update:()=>Yp,updateProps:()=>Jp,variables:()=>Zs,verbose:()=>Yn,warn:()=>Ks,window:()=>A});var I=q(()=>{\"use strict\";ul();_p();Re();rr();Hn();Nn();Zo();Ov();Tv();os();Xo();Pv();Dp();Up();Qp();wl();Bv();Vv();Vn();zv();p_();dh();h_();uh();g_();m_();y_();b_();x_();v_();__();w_();k_();C_();O_();T_();P_();R_()});var CC=Cd((L9,kC)=>{var _o=1e3,wo=_o*60,So=wo*60,wn=So*24,NF=wn*7,BF=wn*365.25;kC.exports=function(e,t){t=t||{};var r=typeof e;if(r===\"string\"&&e.length>0)return VF(e);if(r===\"number\"&&isFinite(e))return t.long?UF(e):zF(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function VF(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*BF;case\"weeks\":case\"week\":case\"w\":return r*NF;case\"days\":case\"day\":case\"d\":return r*wn;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*So;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*wo;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 zF(e){var t=Math.abs(e);return t>=wn?Math.round(e/wn)+\"d\":t>=So?Math.round(e/So)+\"h\":t>=wo?Math.round(e/wo)+\"m\":t>=_o?Math.round(e/_o)+\"s\":e+\"ms\"}function UF(e){var t=Math.abs(e);return t>=wn?ku(e,t,wn,\"day\"):t>=So?ku(e,t,So,\"hour\"):t>=wo?ku(e,t,wo,\"minute\"):t>=_o?ku(e,t,_o,\"second\"):e+\" ms\"}function ku(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+\" \"+n+(o?\"s\":\"\")}});var EC=Cd((M9,AC)=>{function WF(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=CC(),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,(S,O)=>{if(S===\"%%\")return\"%\";v++;let T=r.formatters[O];if(typeof T==\"function\"){let k=m[v];S=T.call(y,k),m.splice(v,1),v--}return S}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,\"enabled\",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init==\"function\"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>\"u\"?\":\":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u==\"string\"?u:\"\").trim().replace(/\\s+/g,\",\").split(\",\").filter(Boolean);for(let f of d)f[0]===\"-\"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]===\"*\"))d[p]===\"*\"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]===\"*\";)p++;return p===d.length}function i(){let u=[...r.names,...r.skips.map(d=>\"-\"+d)].join(\",\");return r.enable(\"\"),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return r.enable(r.load()),r}AC.exports=WF});var OC=Cd((Je,Cu)=>{Je.formatArgs=qF;Je.save=GF;Je.load=KF;Je.useColors=HF;Je.storage=XF();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 HF(){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 qF(e){if(e[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+e[0]+(this.useColors?\"%c \":\" \")+\"+\"+Cu.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 GF(e){try{e?Je.storage.setItem(\"debug\",e):Je.storage.removeItem(\"debug\")}catch{}}function KF(){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 XF(){try{return localStorage}catch{}}Cu.exports=EC()(Je);var{formatters:YF}=Cu.exports;YF.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}});var DN={};G(DN,{ANIMATION_PROPS:()=>Ng,ARIA_ROLES:()=>q$,ATTR_TRANSFORMS:()=>em,BLOCK_PROPS:()=>Bg,CDN_PROVIDERS:()=>Et,CONFIG:()=>sc,CSS_NATIVE_COLOR_REGEX:()=>qt,CSS_PROPS_REGISTRY:()=>we,CSS_UNITS:()=>Dn,DEFAULT_CONFIG:()=>Ti,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>_i,DESIGN_SYSTEM_OPTIONS:()=>iy,DOMQL_EVENTS:()=>ep,DOMQ_PROPERTIES:()=>xr,DOM_EVENTS:()=>Yw,ENV:()=>mp,FACTORY:()=>sr,FLEX_PROPS:()=>Hg,FONT_PROPS:()=>Vg,GRID_PROPS:()=>qg,HTML_ATTRIBUTES:()=>Bc,HTML_TAGS:()=>qn,LIFECYCLE_EVENTS:()=>xn,METHODS:()=>Bn,METHODS_EXL:()=>is,MISC_PROPS:()=>zg,MIXINS:()=>jg,NODE_ENV:()=>kt,OPTIONS:()=>Ts,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ss,POSITION_PROPS:()=>Ug,PROPS_METHODS:()=>vr,REGISTRY:()=>Ze,ROUTER_OPTIONS:()=>eu,STATE_PROPERTIES:()=>Qd,SVG_TAGS:()=>xi,THEME_PROPS:()=>Wg,TIMING_PROPS:()=>Ai,TYPES:()=>Jo,UNIVERSAL_RESERVED_KEYS:()=>Xl,VALUE_TRANSFORMERS:()=>Tg,activateConfig:()=>V2,addCaching:()=>Il,addContext:()=>$l,addDelegatedEvent:()=>Mc,addExtend:()=>Vp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Bd,addMethods:()=>Oi,addProtoToArray:()=>ts,addRef:()=>Tl,animation:()=>nw,appendSVGSprite:()=>Oc,appendSvgIconsSprite:()=>Pc,applyAttrTransforms:()=>nm,applyCSS:()=>ry,applyDependentState:()=>ih,applyDocument:()=>Ec,applyEvent:()=>Nl,applyEventUpdate:()=>Bl,applyExtends:()=>Si,applyHeadings:()=>_g,applyInitialState:()=>Jg,applyMediaSequenceVars:()=>fn,applyProps:()=>Ss,applyReset:()=>Rc,applySequenceGlobalVars:()=>dc,applySequenceVars:()=>Rr,applySpacingSequence:()=>Sc,applyStateMethods:()=>mt,applyTimingSequence:()=>Ac,applyTrueProps:()=>Kg,applyTypographySequence:()=>vc,arrayContainsOtherArray:()=>Id,arraysEqual:()=>zd,arrayzeValue:()=>an,batch:()=>br,breakpoints:()=>tw,buildImgSrcset:()=>oi,buildSourcesAndImg:()=>si,cache:()=>fh,cacheNode:()=>bn,call:()=>Th,captureSnapshot:()=>Rh,changeGlobalTheme:()=>Pg,changeLightness:()=>M_,checkAttributeByTagName:()=>Fr,checkEventFunctions:()=>rm,checkForStateTypes:()=>rh,checkIfBoxSize:()=>wc,checkIfInherits:()=>Ml,checkIfStringIsInArray:()=>Hd,class:()=>lw,clone:()=>rp,cloneAndMergeArrayExtend:()=>gs,cloneFunction:()=>Cp,color:()=>K_,colorStringToRgbaArray:()=>nr,components:()=>co,concatAddExtends:()=>Mp,convertSvgToSymbol:()=>pc,copyJavaScriptToClipboard:()=>Yh,copyStringToClipboard:()=>Xh,create:()=>yv,createAsync:()=>IN,createBasedOnType:()=>Ol,createComputed:()=>_v,createConfig:()=>pg,createDefine:()=>g1,createEffect:()=>Ae,createElement:()=>th,createElementExtends:()=>ml,createExtends:()=>ys,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>vl,createHTMLNode:()=>bi,createIfConditionFlag:()=>Ap,createInheritedState:()=>nh,createKey:()=>ps,createNestedObject:()=>cp,createNestedObjectByKeyPath:()=>sh,createObjectWithoutPrototype:()=>cl,createParent:()=>Pl,createPath:()=>Rl,createProps:()=>ks,createPropsStack:()=>Al,createRoot:()=>eh,createScope:()=>lh,createSignal:()=>yr,createSkeleton:()=>jN,createSnapshotId:()=>ds,createState:()=>Hw,createStore:()=>at,createSync:()=>FN,css:()=>$r,cssMediaVars:()=>fg,cssVars:()=>ug,customDecodeURIComponent:()=>Jd,customEncodeURIComponent:()=>Zd,cutArrayAfterValue:()=>Md,cutArrayBeforeValue:()=>Ld,debounce:()=>hs,debounceOnContext:()=>wp,decodeNewlines:()=>Yd,deepClone:()=>ue,deepContains:()=>ap,deepDefaults:()=>ei,deepDestringifyFunctions:()=>lt,deepExtend:()=>gl,deepMerge:()=>ae,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>as,defaultDefine:()=>po,defineSetter:()=>Eh,destringifyGlobalScope:()=>cs,destroy:()=>Ii,detectHeightOnInit:()=>Dh,detectInfiniteLoop:()=>pp,detectTag:()=>yn,devices:()=>rw,dispose:()=>vn,encodeNewlines:()=>Xd,error:()=>sn,excludeKeysFromObject:()=>gp,exec:()=>le,executeAttr:()=>K$,exetuteClassPerComponent:()=>M$,extendCachedRegistry:()=>Np,extendStackRegistry:()=>bs,extractArrayExtend:()=>vs,extractConditionalAttrs:()=>Z$,fetchLibraryData:()=>Jl,fibonacciNumberByIndex:()=>Lh,filterArrays:()=>Ud,filterArraysFast:()=>Wd,filterAttributesByTagName:()=>G$,finalizeExtends:()=>_l,findClosestNumber:()=>Zl,findClosestNumberInFactory:()=>Gh,findHeadingLetter:()=>yg,findHeadings:()=>fc,findInheritedState:()=>Ll,findKeyPosition:()=>Gd,flattenExtend:()=>Kn,font:()=>z_,fontFace:()=>H_,fontFamily:()=>U_,fontFamilyTypes:()=>W_,formatDate:()=>jh,generateHash:()=>dl,generateKey:()=>fs,generateMetaTags:()=>Hh,generateSequence:()=>ft,generateSequencePosition:()=>pw,generateSprite:()=>fi,generateSubSequence:()=>cc,get:()=>kh,getActiveConfig:()=>P,getActiveDocument:()=>Ig,getActiveLang:()=>ji,getCDNUrl:()=>Ot,getCacheSize:()=>Tw,getCapitalCaseKeys:()=>Wp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Dl,getChildren:()=>Bs,getColor:()=>de,getColorShade:()=>sg,getContext:()=>Gs,getCookie:()=>Rp,getDB:()=>Js,getDefaultOrFirstKey:()=>to,getEmotionStylesheet:()=>eg,getExtendsInElement:()=>zp,getExtendsStack:()=>ms,getExtendsStackRegistry:()=>hl,getFnPrefixAndValue:()=>Pr,getFontFace:()=>B_,getFontFaceEach:()=>ro,getFontFaceEachString:()=>cg,getFontFaceString:()=>ec,getFontFamily:()=>xc,getFontFormat:()=>ag,getFontSizeByKey:()=>_c,getFrequencyInArray:()=>Fd,getHashedExtend:()=>xs,getImportMapScript:()=>Fh,getInObjectByPath:()=>dp,getLanguages:()=>nu,getLocalStateLang:()=>lu,getLocalStorage:()=>Ip,getMediaColor:()=>De,getMediaTheme:()=>Pt,getNev:()=>vp,getObserver:()=>Fn,getPageMetadata:()=>qh,getParentStateInKey:()=>jl,getPath:()=>Vs,getQuery:()=>Qs,getRef:()=>Ah,getRgbTone:()=>cn,getRoot:()=>Ws,getRootContext:()=>qs,getRootData:()=>Hs,getRootState:()=>Us,getRootStateInKey:()=>Fl,getSequenceValue:()=>uc,getSequenceValueBySymbols:()=>mg,getSequenceValuePropertyPair:()=>ar,getShadow:()=>Cc,getSignals:()=>Cv,getSpacingBasedOnRatio:()=>Gt,getSpacingByKey:()=>Ee,getSpreadChildren:()=>Hp,getSubratio:()=>lc,getSubratioDifference:()=>ac,getSystemGlobalTheme:()=>gt,getTheme:()=>gc,getTimingByKey:()=>dt,getTimingFunction:()=>Rt,global:()=>Pd,gradient:()=>X_,grid:()=>aw,hasFunction:()=>zn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>op,hexToRgb:()=>F_,hexToRgbArray:()=>tg,hexToRgba:()=>D_,hslToRgb:()=>og,icons:()=>J_,inheritChildExtends:()=>bl,inheritChildPropsExtends:()=>yl,inheritParentProps:()=>Cs,inheritRecursiveChildExtends:()=>xl,init:()=>fo,initPolyglot:()=>ay,initProps:()=>Zp,injectGlobal:()=>_e,is:()=>Ge,isArray:()=>$,isBoolean:()=>ol,isCSSVar:()=>xe,isContextComponent:()=>qp,isCyclic:()=>hp,isDOMNode:()=>He,isDate:()=>il,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>al,isEmptyObject:()=>sp,isEqualDeep:()=>ll,isFunction:()=>E,isGoogleFontsUrl:()=>ai,isHtmlElement:()=>Yo,isLocal:()=>xp,isMethod:()=>Ph,isMobile:()=>Tp,isNode:()=>tr,isNot:()=>$d,isNotProduction:()=>rn,isNull:()=>sl,isNumber:()=>zt,isObject:()=>w,isObjectLike:()=>Q,isPhoto:()=>Mh,isProduction:()=>_r,isResolvedColor:()=>or,isScalingUnit:()=>jn,isStaging:()=>bp,isState:()=>oh,isStore:()=>je,isString:()=>C,isStringFunction:()=>kp,isSvgTag:()=>vi,isTest:()=>fl,isTesting:()=>yp,isTracking:()=>Kw,isUndefined:()=>Pe,isUniversallyReservedKey:()=>$h,isValidHtmlTag:()=>jp,isValidTag:()=>yi,isWasmLoaded:()=>r1,joinArrays:()=>Ln,jointStacks:()=>Bp,keyframes:()=>mi,keys:()=>Gl,loadCssFile:()=>zh,loadJavascript:()=>Uh,loadJavascriptFile:()=>Nh,loadJavascriptFileEmbedSync:()=>Vh,loadJavascriptFileSync:()=>Bh,loadRemoteCSS:()=>Wh,loadRemoteScript:()=>Jn,loadTranslations:()=>su,loadWasm:()=>t1,log:()=>Oh,logGroupIf:()=>Op,logIf:()=>Ep,lookdown:()=>wh,lookdownAll:()=>Sh,lookup:()=>_h,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>ip,map:()=>tp,mapStringsWithContextComponents:()=>_s,matchesComponentNaming:()=>Wt,media:()=>q_,memoize:()=>Sp,merge:()=>ge,mergeSharedLibraries:()=>ti,mixTwoColors:()=>I_,mixTwoRgb:()=>L_,mixTwoRgba:()=>ig,nextElement:()=>Xs,normalizeLibraryKey:()=>Qn,numToLetterMap:()=>ir,objectToString:()=>ls,objectizeStringProperty:()=>ws,opacify:()=>ii,overwrite:()=>us,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>ah,parse:()=>Kl,parseColorToken:()=>Or,parseDeep:()=>Ms,pickupElementFromProps:()=>kl,pickupPropsFromElement:()=>Sl,polyglotFunctions:()=>Di,polyglotPlugin:()=>cu,popConfig:()=>$e,previousElement:()=>Ys,propExists:()=>Xp,propertizeElement:()=>Cl,propertizeUpdate:()=>Kp,pushConfig:()=>Ie,registerEvent:()=>wi,reinit:()=>ty,remove:()=>Ci,removeChars:()=>Zh,removeCookie:()=>$p,removeDelegatedEvent:()=>Nc,removeDuplicateProps:()=>Es,removeDuplicatesInArray:()=>Mn,removeFromArray:()=>jd,removeFromObject:()=>lp,removeNestedKeyByPath:()=>up,removeValueFromArray:()=>es,removeValueFromArrayAll:()=>Nd,reorderArrayByValues:()=>Vd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Kd,resolveAsset:()=>Ye,resolveColorsInGradient:()=>Ic,resolveFileSource:()=>Qg,resolveFileUrl:()=>Tt,resolveHandler:()=>Wn,resolvePropValue:()=>Ir,resolveSharedLibraries:()=>Kh,returnSubThemeOrDefault:()=>N_,returnValueAsText:()=>El,rgbArrayToHex:()=>rg,rgbToHSL:()=>ng,rgbToHex:()=>j_,runPluginHook:()=>Ct,runThroughMedia:()=>vg,scratchDefaultConfig:()=>ci,scratchSystem:()=>gi,scratchUtils:()=>dn,self:()=>Rd,semanticIcons:()=>Q_,sequence:()=>Tr,set:()=>no,setActiveConfig:()=>dg,setActiveDocument:()=>Ew,setActiveRootState:()=>zs,setClass:()=>AI,setClassname:()=>N$,setColor:()=>pn,setCookie:()=>Pp,setCssEngineHook:()=>Yc,setCustomFont:()=>Ql,setCustomFontMedia:()=>un,setEach:()=>Sw,setFont:()=>bc,setFontFamily:()=>pi,setFontImport:()=>li,setGradient:()=>hn,setHashedExtend:()=>pl,setInCustomFontMedia:()=>lg,setInObjectByPath:()=>fp,setLang:()=>iu,setLocalStorage:()=>Fp,setMediaTheme:()=>yc,setNodeStyles:()=>ql,setObserver:()=>vv,setProps:()=>Ch,setPropsPrototype:()=>As,setSVG:()=>hi,setScalingVar:()=>ic,setShadow:()=>gn,setSubScalingVar:()=>gg,setSvgIcon:()=>Tc,setTheme:()=>mc,setValue:()=>ww,setVariables:()=>hw,setWasmEngine:()=>Lc,shadow:()=>Z_,spacing:()=>G_,splitSpacedValue:()=>kc,splitTopLevelCommas:()=>ln,splitTransition:()=>Og,spotByPath:()=>Ns,srcsetFor:()=>eo,stringIncludesAny:()=>ns,stringToObject:()=>np,svg:()=>ow,svgData:()=>sw,swapItemsInArray:()=>Dd,syncProps:()=>Os,templates:()=>iw,theme:()=>Y_,timing:()=>ew,toCamel:()=>oc,toCamelCase:()=>ri,toDashCase:()=>ni,toDescriptionCase:()=>Qh,toTitleCase:()=>Jh,toggleFullscreen:()=>Ih,transformBackgroundImage:()=>Ag,transformBorder:()=>lr,transformBorderRadius:()=>jc,transformBoxShadow:()=>$c,transformClassname:()=>Vw,transformDuration:()=>Fc,transformShadow:()=>Cg,transformSize:()=>ve,transformSizeRatio:()=>ee,transformTextStroke:()=>kg,transformTransition:()=>_w,transformersByPrefix:()=>Xg,transfromGap:()=>Eg,translate:()=>ou,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ch,trimStringFromSymbols:()=>qd,typography:()=>tc,unit:()=>V_,unstackArrayOfObjects:()=>Qo,update:()=>ki,updateProps:()=>Jp,updateVars:()=>CI,upsertTranslation:()=>au,useCssInProps:()=>tt,useHostState:()=>Gw,usePropsAsCSS:()=>Nw,useSelectorsAsCSS:()=>Bw,variables:()=>Zs,vars:()=>cw,verbose:()=>Yn,warn:()=>Ks,window:()=>A});var We=null,tl=0,rl=[],Fn=()=>We,vv=e=>{We=e};function yr(e){let t=new Set;function r(){return We&&(t.add(We),We._sources.add(s)),e}function n(i){i!==e&&(e=i,Sv(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:\"signal\"};return s}function _v(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:\"computed\",_subscribers:n,_execute(){Od(o);let s=We;We=o;try{let i=e();i!==t?(t=i,r=!1,Sv(n)):r=!1}finally{We=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return We&&(n.add(We),We._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Ad=new Set,Ed=!1;function Ae(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;Od(n);let o=We;We=n;try{e()}catch(s){console.error(\"[smbls] effect error:\",s)}finally{We=o}},_notify(){n._disposed||(tl>0?rl.push(n):wv(n))},dispose(){n._disposed=!0,Od(n)}};return n._execute(),n}function br(e){tl++;try{e()}finally{tl--,tl===0&&LR()}}function wv(e){Ad.add(e),Ed||(Ed=!0,queueMicrotask(DR))}function DR(){Ed=!1;let e=Array.from(Ad).sort((t,r)=>t._depth-r._depth);Ad=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function LR(){for(let e=0;e<rl.length;e++)wv(rl[e]);rl.length=0}function Sv(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Od(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var nl=Symbol(\"store\"),kv=Symbol(\"signals\"),Td=e=>!e||typeof e!=\"object\"||Array.isArray(e)||e[nl]||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){let b=e[y];r<s&&b&&typeof b==\"object\"&&!Td(b)?(o[y]=b,n[y]=yr(at(b,t,r+1))):(o[y]=b,n[y]=yr(b))}let i=new Proxy(o,{get(y,b){if(b===nl)return!0;if(b===kv)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\"&&Fn()!=null)return n[b]=yr(void 0),n[b].get()},set(y,b,x){return b===\"__element\"||b===\"parent\"||b===\"root\"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x==\"object\"&&!Td(x)?n[b].set(at(x,t,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x==\"object\"&&!Td(x)?n[b]=yr(at(x,t,r+1)):n[b]=yr(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)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[nl]?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)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[nl]===!0}function Cv(e){return e[kv]}var dn={};G(dn,{CSS_NATIVE_COLOR_REGEX:()=>qt,CSS_UNITS:()=>Dn,applyMediaSequenceVars:()=>fn,applySequenceGlobalVars:()=>dc,applySequenceVars:()=>Rr,changeLightness:()=>M_,colorStringToRgbaArray:()=>nr,convertSvgToSymbol:()=>pc,findHeadingLetter:()=>yg,findHeadings:()=>fc,generateSequence:()=>ft,generateSequencePosition:()=>pw,generateSprite:()=>fi,generateSubSequence:()=>cc,getColorShade:()=>sg,getDefaultOrFirstKey:()=>to,getFnPrefixAndValue:()=>Pr,getFontFace:()=>B_,getFontFaceEach:()=>ro,getFontFaceEachString:()=>cg,getFontFaceString:()=>ec,getFontFormat:()=>ag,getRgbTone:()=>cn,getSequenceValue:()=>uc,getSequenceValueBySymbols:()=>mg,getSequenceValuePropertyPair:()=>ar,getSubratio:()=>lc,getSubratioDifference:()=>ac,hexToRgb:()=>F_,hexToRgbArray:()=>tg,hexToRgba:()=>D_,hslToRgb:()=>og,isCSSVar:()=>xe,isGoogleFontsUrl:()=>ai,isResolvedColor:()=>or,isScalingUnit:()=>jn,mixTwoColors:()=>I_,mixTwoRgb:()=>L_,mixTwoRgba:()=>ig,numToLetterMap:()=>ir,opacify:()=>ii,parseColorToken:()=>Or,resolveFileUrl:()=>Tt,returnSubThemeOrDefault:()=>N_,rgbArrayToHex:()=>rg,rgbToHSL:()=>ng,rgbToHex:()=>j_,setCustomFont:()=>Ql,setCustomFontMedia:()=>un,setFontImport:()=>li,setInCustomFontMedia:()=>lg,setScalingVar:()=>ic,setSubScalingVar:()=>gg,setVariables:()=>hw,splitTopLevelCommas:()=>ln});var jn=e=>e===\"em\"||e===\"rem\"||e===\"vw\"||e===\"vh\"||e===\"vmax\"||e===\"vmin\",Dn=[\"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 nr=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&&ce&&A){let t=ce.body.appendChild(ce.createElement(\"fictum\")),r=\"rgb(1, 2, 3)\";if(t.style.color=r,t.style.color!==r){ce.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color===\"\")return ce.body.removeChild(t),[0,0,0,0];e=A.getComputedStyle(t).color,ce.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]},I_=(e,t,r=.5)=>(e=nr(e),t=nr(t),ig(e,t,r)),F_=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},tg=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},j_=(e,t,r)=>\"#\"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),rg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),D_=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},L_=(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})`},M_=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},ng=(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]},og=(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)],sg=(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)},ig=(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})`},ii=(e,t)=>{let r=nr(e);if(!r){rn()&&console.warn(e+\" color is not rgba\");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,qt=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,F2=/^([a-zA-Z]\\w*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,Or=e=>{if(!C(e))return null;if(qt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(F2);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}},or=e=>C(e)&&(e.includes(\"rgb\")||e.includes(\"var(\")||e.includes(\"#\")),ln=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},cn=(e,t)=>{C(e)&&e.includes(\"rgb\")&&(e=nr(e).join(\", \")),C(e)&&(e=e.split(\",\").map(o=>parseFloat(o.trim()))),zt(t)&&(t+=\"\");let r=rg(e),n=t.slice(0,1);if(n===\"-\"||n===\"+\"){let o=sg(r,parseFloat(t));return tg(o).join(\", \")}else{let[o,s,i]=e,a=ng(o,s,i),[l,c,u]=a;return og(l,c,parseFloat(t)/100*255)}};var N_=(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},to=(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},ag=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},ai=e=>e&&(e.includes(\"fonts.googleapis.com\")||e.includes(\"fonts.gstatic.com\")),li=e=>`@import url('${e}');`,lg=e=>`@font-face { ${e} }`,Ql=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a==\"string\"&&a).map(a=>{let l=ag(a),c=l?` format('${l}')`:\"\";return`url('${a}')${c}`}).join(`,\n `);return`\n font-family: '${e}';\n font-style: ${n.fontStyle||\"normal\"};${r?`\n font-weight: ${r};`:\"\"}${n.fontStretch?`\n font-stretch: ${n.fontStretch};`:\"\"}${n.fontDisplay?`\n font-display: ${n.fontDisplay};`:\"\"}\n src: ${i};`},un=(e,t,r,n)=>`@font-face {${Ql(e,t,r,n)}\n}`,ro=(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 Ql(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),B_=e=>Object.keys(e).map(r=>ro(r,e[r].value)),cg=(e,t,r)=>{if(t&&t.isVariable){let s=Tt(t.url,r)||t.url;return ai(s)?li(s):un(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\"})}if(t[0])return ro(e,t,r).map(lg);let o=Array.isArray(t.url)?t.url.map(s=>Tt(s,r)||s):Tt(t.url,r)||t.url;return un(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},ec=(e,t)=>Object.keys(e).map(n=>cg(n,e[n].value,t));I();I();I();var ci={};G(ci,{animation:()=>nw,breakpoints:()=>tw,class:()=>lw,color:()=>K_,devices:()=>rw,document:()=>M2,font:()=>z_,fontFace:()=>H_,fontFamily:()=>U_,fontFamilyTypes:()=>W_,gradient:()=>X_,grid:()=>aw,icons:()=>J_,media:()=>q_,reset:()=>B2,semanticIcons:()=>Q_,sequence:()=>Tr,shadow:()=>Z_,spacing:()=>G_,svg:()=>ow,svgData:()=>sw,templates:()=>iw,theme:()=>Y_,timing:()=>ew,typography:()=>tc,unit:()=>V_,vars:()=>cw});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 V_={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:{}},tc=j2;var z_={};var U_={},W_={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},H_={};var q_={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var D2={base:tc.base,type:\"spacing\",ratio:Tr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},G_=D2;var K_={},X_={};var Y_={};var Z_={};var J_={},Q_={};var L2={default:150,base:150,type:\"timing\",ratio:Tr[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},ew=L2;var M2={};var tw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},rw={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 nw={};var ow={},sw={};var iw={};var N2={},aw=N2;var lw={};var B2={},cw={};var ug={},fg={},rc=ci,nc={},oc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in rc){let t=e.toLowerCase();nc[t]=rc[e];let r=oc(t);r!==t&&(nc[r]=rc[e]),t!==e&&(nc[e]=rc[e])}var sc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:ug,cssMediaVars:fg,CSS_VARS:ug,CSS_MEDIA_VARS:fg,_scratchConfig:!0,...nc},uw=ue(sc),sr={active:\"0\",0:sc},V2=e=>(qe(e)&&(sr.active=e),sr[e||sr.active]),ui=[],Ie=e=>{e&&e._scratchConfig&&ui.push(e)},$e=()=>{ui.pop()},P=e=>ui.length?ui[ui.length-1]:sr[e||sr.active]||sc,dg=e=>{if(w(e))return sr.active=\"1\",sr[1]=ae(e,ue(uw)),e},z2=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],U2=[[\"fontfamily\",\"fontFamily\",\"font_family\"],[\"fontfamilytypes\",\"fontFamilyTypes\"],[\"semanticicons\",\"semanticIcons\"],[\"svgdata\",\"svgData\"]],W2=e=>{for(let t of U2){let r;for(let n of t){let o=e[n];w(o)&&(r=r?ae(o,r):o)}if(r)for(let n of t)w(e[n])&&(e[n]=r)}},pg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:P(),o=ue(!r&&n&&n._scratchConfig?n:uw);for(let i of z2)delete o[i];let s=ae(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,W2(s),e&&(sr[e]=s),s};var ir={\"-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\"},hg=(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=fw.has(t.unit)?\"rem\":t.unit;t.vars[n]=s+l},Pr=e=>{if(!e.includes(\"(\"))return e;let t=e.split(\"(\")[0],r=e.slice(e.indexOf(\"(\")+1,e.lastIndexOf(\")\"));return[t,r]},fw=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),ic=(e,t)=>{let{base:r,type:n,unit:o}=t,s=fw.has(o)?\"rem\":o,i=(jn(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=ir[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=ir[e+1],d=Math.abs(e),f=Math.pow(dw,2*d),p=ir[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},gg=(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}))`},ac=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},lc=(e,t)=>ac(e,t).map(r=>r/e),cc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=ac(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=gg(g+1,u,i,t),v={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};hg(v,t)})},dw=1.618,H2=(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(dw,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=ir[u],f=H2(u,r,n),p=~~(f/r*100)/100,h=l+d,g=ic(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};hg(m,e),s&&cc(m,e)}return e},pw=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=C(t)?t:ir[t],a=C(t)?Object.entries(ir).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=ic(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return hg(g,l),s&&cc(g,l),l},uc=(e=\"A\",t)=>{let r=P(),{unit:n}=r;if(C(e)&&xe(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Dn.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+\"-\":\"\"}${ni(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(\"+\"),_=`${y(x)} + ${y(v)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes(\"*\")){let[x,v]=g.split(\"*\"),_=`${y(x)} * ${y(v)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes(\"-\")){let[x,v]=g.split(\"-\"),_=`${y(x)} - ${y(v)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}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)},mg=(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:uc(i,t)}).join(\"\")},ar=(e,t,r,n)=>{if(typeof e!=\"string\")return P().verbose&&console.warn(t,e,\"is not a string\"),{[t]:e};if(e===\"-\"||e===\"\")return{};if(!n&&e.includes(\"(\")){let s=Pr(e);n=s[0],e=s[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>e.includes(s+\" \")).length?e=mg(e,r):e=uc(e,r),{[t]:n?`${n}(${e})`:e}},yg=(e,t)=>ir[e-t],fc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=yg(t,o);return r[s]})};I();var hw=(e,t)=>{let r=P(),{cssVars:n}=r;Q(e.value)||(n[e.var]=e.value)},dc=(e,t,r)=>{let n=P(),{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]=lc(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})`},gw=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),Rr=(e,t={})=>{let r=P(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=gw.has(i)?\"rem\":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||dc(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\"})`)}},fn=(e,t,r={})=>{let n=P(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=gw.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}`]={}),dc(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=(jn(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 q2=rn(),fi=e=>{let t=P(),r=\"\";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},G2=e=>{let t=e&&(e.default||e);if(!C(t))return q2&&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},{}):{}},K2=(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},pc=(e,t)=>{let r=G2(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,l=K2(t,e).replace(\"<svg\",`<symbol id=\"${e}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${s}\"`);return l=l.replace(/width=\"[^\"]*\"/,\"\"),l=l.replace(/height=\"[^\"]*\"/,\"\"),l=l.replace(\"</svg\",\"</symbol\"),l=Z2(l),l},X2=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",Y2=new RegExp(`<(${X2})\\\\b([^>]*?)\\\\s*/>`,\"g\"),Z2=e=>e.replace(Y2,\"<$1$2></$1>\");var gi={};G(gi,{appendSVGSprite:()=>Oc,appendSvgIconsSprite:()=>Pc,applyDocument:()=>Ec,applyHeadings:()=>_g,applyReset:()=>Rc,applySpacingSequence:()=>Sc,applyTimingSequence:()=>Ac,applyTypographySequence:()=>vc,checkIfBoxSize:()=>wc,getColor:()=>de,getFontFamily:()=>xc,getFontSizeByKey:()=>_c,getMediaColor:()=>De,getMediaTheme:()=>Pt,getShadow:()=>Cc,getSpacingBasedOnRatio:()=>Gt,getSpacingByKey:()=>Ee,getTheme:()=>gc,getTimingByKey:()=>dt,getTimingFunction:()=>Rt,runThroughMedia:()=>vg,setColor:()=>pn,setFont:()=>bc,setFontFamily:()=>pi,setGradient:()=>hn,setMediaTheme:()=>yc,setSVG:()=>hi,setShadow:()=>gn,setSvgIcon:()=>Tc,setTheme:()=>mc,splitSpacedValue:()=>kc});I();var de=(e,t,r)=>{let n=r||P();if(!C(e)){n.verbose&&console.warn(e,\"- type for color is not valid\");return}if(xe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if($(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=cn(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||P();if(t||(t=n.globalTheme===\"auto\"?null:n.globalTheme),!C(e)){n.verbose&&console.warn(e,\"- type for color is not valid\");return}if(xe(e))return`var(${e})`;let o;if($(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=w(a);if(l&&a.value)return de(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return de(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]=de(e,u,r)}return c}}else return n.verbose&&console.warn(\"Can't find color\",e),e},pn=(e,t,r)=>{let n=P();if(C(e)&&xe(e)){let g=e.slice(2);if(e=de(g),!(e.includes(\"rgb\")||e.includes(\"var\")||e.includes(\"#\"))){let m=g.split(\" \"),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(C(y)||$(y)||w(y))&&(n.color[m[0]]=pn(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=cn(b,v)),e=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:\"1\";if(b)try{let v=nr(m[0]);v&&v.length>=3?e=`rgba(${cn(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]}),w(e)){let g={};for(let m in e)g[m]=pn(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 _=v.slice(1),S=g[v],O=S&&(S.value||S);!O||typeof O!=\"string\"||(x[_]=O,(_===\"light\"||b===void 0)&&(b=O))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let v in x){let _=`[data-theme=\"${v}\"]`;if(n.cssMediaVars[_]||(n.cssMediaVars[_]={}),n.cssMediaVars[_][y]=x[v],v===\"light\"||v===\"dark\"){let S=`@media (prefers-color-scheme: ${v})`;n.cssMediaVars[S]||(n.cssMediaVars[S]={}),n.cssMediaVars[S][y]=x[v]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${t}`+(r?`-${r}`:\"\"),i=e.value||e;if(C(i)&&i.includes(\".\")&&!i.includes(\"(\")){let[g,m]=i.split(\".\"),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat(\"0.\"+m)||1})`)}if(C(i)&&!i.includes(\"(\")&&!i.startsWith(\"#\")){let g=Or(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(C(m)||$(m)||w(m))&&(n.color[g.name]=pn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=cn(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=nr(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}},hn=(e,t,r)=>{let n=P();if(C(e)&&xe(e)&&(e=de(e.slice(2))),$(e))return{\"@light\":hn(e[0],t,\"light\"),\"@dark\":hn(e[0],t,\"dark\")};if(w(e)){let i={};for(let a in e)i[a]=hn(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 J2=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\"]),mw=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],Q2=e=>{for(let t=0;t<mw.length;t++)if(e.includes(mw[t]))return!0;return!1},hc=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?de(e[a]):e[a]}),t},di=e=>(e.value||(e.value=hc(e)),e.value),gc=(e,t)=>{let r=P();if(r.useVariable)return Pt(e,t);let n=r.theme;if(C(e)){let[o,s]=e.split(\" \"),i=n[o];if(i){if(!s&&!t)return di(i);e=[o,s||t]}}if(Q(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return di(a[s]);if(i&&i[s])return di(i[s]);if(l&&l[s])return di(l[s])}else if(w(e))return hc(e)},e$=(e,t,r)=>{if(w(t))e.variants.inverse.value=hc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},t$=(e,t,r,n)=>{let o=gc(r);n[`&:${t}`]=o,w(r)&&!r.value&&(r.value=o)},r$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return t$(e,o,s,t),e}),e):void 0},n$=(e,t,r,n)=>{let o=gc(r);n[`@media (prefers-color-scheme: ${t})`]=o,w(r)&&!r.value&&(r.value=o)},o$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o===\"dark\"||o===\"light\")&&n$(e,o,s,t),o===\"inverse\"&&e$(e,s,t),e}),e):void 0},s$=(e,t)=>{let r=P(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return C(i)?n[s]=r.theme[i]:di(n[s]),e}),e):void 0},mc=(e,t)=>{let r=P();if(r.useVariable)return yc(e,t);let{state:n,media:o,helpers:s}=e,i=hc(e,t),l=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${t}`;return r$(e,i),o$(e,i),s$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var bg=(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===\":\")&&Q2(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=de(f,`@${d}`);p!==void 0&&C(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!J2.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>Q(f?.[c]));if(u===\".\"&&d){let f=c.slice(1),p={};for(let h in e)Q(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=bg(p,`${t}-${f}`,r)}else if(u===\":\"&&d){let f=c.replace(/^:+/,\"\"),p={};for(let h in e)Q(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=bg(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=de(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},yc=(e,t,r,n)=>{let o=P(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(Q(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith(\"@\")&&Q(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=bg(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]=yc(u,t,l,n||d)}else if(!a){let d=de(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?\"-\"+f.join(\"-\"):\"\",g=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=d),i[l]=`var(${g})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(C(e)&&xe(e)){let c=o.theme[e.slice(2)];return Pt(c,n)}return i},xg=e=>{let t=P(),r={};for(let n in e){let o=n.slice(0,1);if(Q(e[n])){if(o===\"@\")continue;o===\":\"?r[`&${n}`]=xg(e[n]):o===\".\"&&(r[`&${n}`]=xg(e[n]))}else r[n]=e[n]}return r},bw=(e,t)=>{let r=t.shift();return e[r]?bw(e[r],t):e},yw=(e,t)=>$(t)?bw(e,t):C(t)&&e[t]?e[t]:e;var Pt=(e,t)=>{let r=P();if(C(e)&&xe(e)&&(e=Pt(e.slice(2))),!e||!C(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=yw(s,o):s&&t&&(s=yw(s,t)),xg(s)};I();I();var bc=(e,t)=>{let r=P(),n=`--font-${t}`;if(!e||$(e)&&!e[0])return;let o;if(e.isVariable){let s=Tt(e.url,r.files)||e.url;ai(s)?o=li(s):o=un(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\"})}else if(e[0])o=ro(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=un(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},xc=(e,t)=>{let r=P(),{fontFamily:n}=r;return to(t||n,e)},pi=(e,t)=>{let r=P(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),w(s)&&(s=an(s));let a=`--font-family-${t}`,l=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};I();var vg=e=>{let t=P(),{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;ge(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){ge(i,{sequence:{},scales:{},vars:{}}),ft(i),fn(e,o);continue}ge(i,{sequence:{},scales:{},templates:{},vars:{}}),ft(i),fn(e,o)}},_g=e=>{let t=P();if(e.h1Matches){let r=e.unit,n=fc(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}}}},vc=()=>{let e=P(),{typography:t}=e;ft(t),_g(t),Rr(t),vg(t)},_c=e=>{let t=P(),{typography:r}=t;return ar(e,\"fontSize\",r)};I();I();var i$=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;ge(r,{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),ft(r),fn(e,t)}},wc=e=>{let t=e.toLowerCase(),r=t.includes(\"width\")||t.includes(\"height\"),n=t.includes(\"border\")||t.includes(\"outline\");return r&&!n},Sc=()=>{let e=P(),{spacing:t}=e;ft(t),Rr(t),i$(t)},a$=e=>{let t=P(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:ft(e)},Ee=(e,t=\"padding\",r,n)=>{let o=a$(r);if(C(e)&&!n&&e.includes(\"(\")){let i=Pr(e);n=i[0],e=i[1]}let s=n?[e]:an(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)=>ar(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return ar(e,t,o,n)}},Gt=(e,t,r,n)=>{let o=P(),{spacing:s}=o,i=r||e[t];if(!n&&C(i)&&i.includes(\"(\")){let a=Pr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return Ee(i,t,a,n)}return Ee(i,t,s,n)},kc=e=>{let t=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=Dn.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 gn=(e,t,r,n)=>{let o=P();if($(e))return{\"@light\":gn(e[0],t,\"light\"),\"@dark\":gn(e[1],t,\"dark\")};if(w(e)){let a={};for(let l in e)a[l]=gn(e[l],t,l.startsWith(\"@\")?l.slice(1):l);return a}C(e)&&!qt.test(e)&&(e=ln(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=de(l);if(or(c))return c;if(/^\\d/.test(l)||l===\"0\"||l.includes(\"px\")||l.slice(-2)===\"em\"||l===\"inset\"||l===\"none\")return l;let u=Ee(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}},Cc=(e,t)=>{let r=P();if(t||(t=r.globalTheme),!C(e)){r.verbose&&console.warn(e,\"- type for color is not valid\");return}if(xe(e))return`var(${e})`;let[n]=$(e)?e:e.split(\" \"),s=r.shadow[n],i=w(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 Ac=()=>{let e=P(),{timing:t}=e;ft(t),Rr(t)},Rt=e=>{let t=P(),{timing:r}=t;return r[e]||r[ri(e)]||e},dt=(e,t=\"timing\")=>{let r=P(),{timing:n}=r;return ar(e,t,n)};I();var Ec=()=>{let e=P(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ge(t,{theme:n.document,fontFamily:to(r),fontSize:o.base,lineHeight:o.lineHeight})};I();var Sg={document:ce},hi=(e,t)=>{let r=P();if(!e){r.verbose&&console.warn(\"setSVG: val is not defined\",t);return}return r.useSvgSprite?pc(t,e):e},Oc=(e,t=Sg)=>{let r=P(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];vw(n,t)},Tc=(e,t)=>{let r=P();return r.useIconSprite&&!r.semanticIcons?.[t]?hi(e,t):e},Pc=(e,t=Sg)=>{let r=P(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];vw(n,t)},wg=(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},l$=(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},xw=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},vw=(e,t=Sg)=>{let r=P(),n=t.document||ce;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),fi(e);let o=n.querySelector(\"#svgSprite\"),s=fi(e),i=`<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute\" id=\"svgSprite\">${s}</svg>`,a=l$(n,s);if(o)if(a)xw(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML(\"beforeend\",s);else{let l=wg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=wg(n);l&&l.nodeType&&(xw(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML(\"afterbegin\",i);else{let l=wg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};I();var Rc=(e={})=>{let t=P(),{reset:r,typography:n,document:o}=t;if(r){if(r[\":root\"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Pt(\"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?Pt(\"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 ae(ge(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\"]),u$=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),f$=e=>c$.has(e),lr=e=>{let t=e+\"\";if(qt.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(f$(o)||/^\\d/.test(o)||o===\"0\")return o;let s=de(o);if(or(s))return s;let i=Ee(o,\"border\");return i&&i.border?i.border:o}).join(\" \")},kg=e=>qt.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=de(t);return or(r)?r:t}).join(\" \"),Cg=(e,t)=>Cc(e,t),$c=(e,t)=>qt.test(e)?e:ln(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=de(n);if(or(o)){let i=De(n,t);return w(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=Ee(n,\"shadow\");return s&&s.shadow?s.shadow:n}).join(\" \"):\"\")).join(\", \"),Ic=(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=ln(o).map(l=>(l=l.trim(),l.split(/\\s+/).map(u=>{if(!u||/^\\d/.test(u)||u===\"0\"||u$.has(u)||u===\"transparent\"||qt.test(u))return u;let d=de(u);return or(d)?d:u}).join(\" \")));return n+a.join(\", \")+s},Ag=(e,t)=>{let r=P();return e.split(\", \").map(n=>xe(n)?`var(${n})`:n.includes(\"url\")?n:n.includes(\"gradient\")?Ic(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes(\"/\")||n.startsWith(\"http\")||n.includes(\".\")&&!Or(n)?`url(${n})`:n).join(\" \")},Eg=e=>C(e)&&e.split(\" \").map(t=>Ee(t,\"gap\").gap).join(\" \"),_w=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:Rt(r)?Rt(r):r).join(\" \"):e},Fc=(e,t,r)=>{if(C(e))return e.split(\",\").map(n=>dt(n).timing||n).join(\",\")},Og=e=>{let t=e.split(\",\");if(t.length)return t.map(_w).join(\",\")};function ve(e,t,r={},n={}){let o=le.call(this,t||r[e]);if(o==null)return;let s;if(C(o)){if(o.includes(\"(\")){let l=Pr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=wc(e);!i&&a&&!n.ratio&&(o=kc(o))}return n.ratio?Gt(r,e,o,s):Ee(o,e,void 0,s)}var ee=(e,t=null,r)=>ve(e,t,r,{ratio:!0}),jc=(e,t,r)=>{if(C(e))return{borderRadius:e.split(\" \").map((n,o)=>Gt(t,r,n)[r]).join(\" \")}};I();var d$=(e,t)=>{let r=P(),{cssVars:n}=r,o=t.startsWith(\"--\")?t:`--${t}`;return n[o]=e,e},pt=e=>e,Tg={color:pn,gradient:hn,font:bc,fontFamily:pi,fontfamily:pi,theme:mc,icons:Tc,semanticIcons:pt,semanticicons:pt,svg:hi,svgData:pt,typography:pt,shadow:gn,spacing:pt,media:pt,grid:pt,class:pt,timing:pt,reset:pt,unit:pt,animation:pt,vars:d$},ww=(e,t,r)=>{let n=P(),o=oc(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=Tg[o]||Tg[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\")},Sw=(e,t)=>{let r=P(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=w(t[s])||$(t[s])?1:0,l=w(t[i])||$(t[i])?1:0;return a-l}).forEach(s=>{try{return ww(n,t[s],s)}catch(i){r.verbose&&console.warn(\"Error setting\",n,\"value\",t[s],s,i)}}),r[n]||r[e]},Pg=(e,t)=>{let r=t||P();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},p$={},no=(e,t=p$)=>{let r=t.config||P(),{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=dg(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),_=x&&(r.themeRoot||x.documentElement);if(_&&typeof _.setAttribute==\"function\")if(r.globalTheme&&r.globalTheme!==\"auto\")_.setAttribute(\"data-theme\",r.globalTheme),r.globalTheme===\"dark\"||r.globalTheme===\"light\"?_.style.colorScheme=r.globalTheme:_.style.colorScheme=\"light dark\";else if(v&&v.matchMedia){let D=z=>{_.setAttribute(\"data-theme\",z.matches?\"dark\":\"light\")},te=v.matchMedia(\"(prefers-color-scheme: dark)\");if(D(te),_.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=D;try{te.addEventListener(\"change\",D)}catch{te.addListener(D)}}}else _.setAttribute(\"data-theme\",\"light\"),_.style.colorScheme=\"light\";r.__svgCache||(r.__svgCache={});let S=Object.keys(y),O=new Set(S);if(S.forEach(k=>{let D=k.toLowerCase();D!==k&&O.has(D)&&ae(y[D],y[k])}),S.map(k=>{let D=k.toLowerCase();if(!(D!==k&&O.has(D)))return Sw(k,y[k])}),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{vc()}catch(k){r.verbose&&console.warn(\"Error applying typography sequence\",k)}if(y.spacing)try{Sc()}catch(k){r.verbose&&console.warn(\"Error applying spacing sequence\",k)}if(y.timing)try{Ac()}catch(k){r.verbose&&console.warn(\"Error applying timing sequence\",k)}Ec();let T=Rc();return T&&(r.reset=T),r};var oo=new Map,h$=null,$g=null,g$=null;function Lc(e){e.batchAtomicCss&&($g=e.batchAtomicCss),e.compoundCssClass&&(g$=e.compoundCssClass)}var m$=new Set;function Ew(e){try{let t=P();t&&(t.document=e)}catch{}e&&m$.add(e)}function Ig(){try{let e=P();if(e?.document)return e.document}catch{}return typeof document<\"u\"?document:null}var y$={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 mn(e){return e.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}function Dc(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 b$(e){let t=String(e);return t.length<=20?t.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():Dc(t)}function kw(e,t,r){let n=(r?r+\"\u0001\":\"\")+e+\":\"+t,o=oo.get(n),s=o?null:mn(e);if(!o){let a=y$[e]||Dc(e),l=b$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,oo.set(n,o)}if(typeof t==\"string\"&&(t.indexOf(\"}\")!==-1||t.indexOf(\"{\")!==-1))return o;let i=`.${o}{${s||mn(e)}:${t}}`;return ht(i),o}var Cw=new WeakMap;function ht(e,t){let r=Ow(t);if(!r)return;let n=Cw.get(r);if(n||(n=new Set,Cw.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var Aw=new WeakMap;function Ow(e){let t=e||Ig();if(!t||!t.head)return null;let r=Aw.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 Aw.set(t,o),h$=o,o}var x$=8;function $r(e,t,r){if(!e||typeof e!=\"object\")return\"\";let n=null,o=0,s=[];for(let i in e){let a=e[i];a==null||a===!1||a===\"\"||(typeof a==\"object\"?s.push(v$(i,a,r)):$g?(n||(n=[]),n.push(i,String(a)),o++):s.push(kw(i,String(a),r)))}if(n&&o>=x$){let i=n.join(\"\\0\"),a=$g(i),l=a.indexOf(\"\\0\"),c=a.substring(0,l),u=a.substring(l+1);if(u){let d=u.split(`\n`);for(let f=0;f<d.length;f++)d[f]&&ht(d[f])}if(s.length>0)s.push(c);else return c}else if(n)for(let i=0;i<n.length;i+=2)s.push(kw(n[i],n[i+1],r));return s.join(\" \")}var Rg=new Map;function v$(e,t,r){let n=(r?r+\"\u0001\":\"\")+e+JSON.stringify(t),o=oo.get(n);if(o){let f=Rg.get(o);if(f)for(let p=0;p<f.length;p++)ht(f[p]);return o}o=r?`_${r}_c${Dc(n)}`:`_c${Dc(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+=`${mn(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 Rg.set(o,u),oo.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 Rg.set(o,u),oo.set(n,o),o}function _e(e){if(Ow(),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:mn(l);a+=`${c}:${i[l]};`}ht(`${n}{${s}{${a}}}`)}else{let a=s.startsWith(\"--\")?s:mn(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:mn(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 mi(e,t){let r=\"\";for(let n in t){let o=\"\";for(let s in t[n])o+=`${mn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ht(`@keyframes ${e}{${r}}`),e}function Tw(){return oo.size}I();var Fg=\"http://www.w3.org/2000/svg\",xi=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\"]),_$=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 yi(e){return _$.has(e)||xi.has(e)}function vi(e){return xi.has(e)}function yn(e){let{tag:t,key:r}=e;if(typeof t==\"function\"&&(t=t(e)),t===!0&&(t=r),typeof t==\"string\"&&yi(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]),yi(o)&&!n.has(o)?o:\"div\"}var Pw={};function bi(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(vi(e)){let n=t?.parent;if(e===\"svg\"||n?.node?.namespaceURI===Fg)return r.createElementNS(Fg,e);if(e!==\"svg\")return r.createElement(\"div\")}return r.createElement(e)}function bn(e){let t=e.tag=yn(e),n=vi(t)&&(t===\"svg\"||e.parent?.node?.namespaceURI===Fg)?\"svg:\"+t:t,o=e?.context?.document||globalThis.document,s=Pw[n];if(s||(s=Pw[n]=bi(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?bi(t,e):s.cloneNode(!0);return t===\"string\"&&(i.nodeValue=e.text||\"\"),i}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\"]),jg={text:\"text\",html:\"html\",style:\"style\",attr:\"attr\",data:\"data\",classlist:\"classlist\",state:\"state\",scope:\"scope\"},xn=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\"]),Rw=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 Dg=new WeakMap,w$={passive:!0},S$={passive:!0,capture:!0},Lg=(e,t)=>Rw.has(e)?t?S$:w$:t||!1;function Iw(e){let t=Dg.get(e);return t||(t={handlers:new Map,installed:new Set},Dg.set(e,t)),t}function k$(e,t){let r=Iw(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}},Lg(e,n))}function Mc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=Iw(n);k$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Nc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Dg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function $w(e){return _i.has(e)&&!xn.has(e)}function wi(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Ie(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&&$e()});return}}catch(l){if(t.error=l,console.error(\"[DOMQL] Event error:\",l),o?.strictMode)throw l}s&&$e()};if($w(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Mc(e,n,i,a)}else n.addEventListener(e,i,Lg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if($w(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Nc(e,n,a)}else n.removeEventListener(e,i,Lg(e,!1))})}function Fw(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 Si(e,t,r){let n=Fw(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=jw(n[i],s);a&&a!==t&&Dw(e,a,r,new Set([t]))}}function jw(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 Dw(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=Fw(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=jw(o[a],i);l&&Dw(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]=Lw(e[s],i):e[s]=i}}function Lw(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]=Lw(o,s):r[n]=s}return r}Hn();function ki(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 vn(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&&vn(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 Ci(){vn(this)}I();I();var C$=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],A$=[\"none\",\"forwards\",\"backwards\",\"both\"],E$=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],O$=[\"running\",\"paused\"],T$=e=>/^[\\d.]+m?s$/.test(e),P$=0,Mg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(w(e)){let o=`smbls-anim-${P$++}`;return{animationName:mi(o,e)}}let n=r&&r[e];return w(n)?mi(e,n):e},R$=(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:T$(d)?s.push(d):C$.includes(d)||d.startsWith(\"cubic-bezier\")||d.startsWith(\"steps(\")?i=d:d===\"infinite\"||/^\\d+$/.test(d)?a=d===\"infinite\"?d:Number(d):E$.includes(d)?l=d:A$.includes(d)?c=d:O$.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},Ng={animation:(e,t)=>{if(C(e)&&e.includes(\" \")){let r=R$(e,t);return{animationName:Mg(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||Rt(t.animationTimingFunction||\"ease\"),animationFillMode:r.fillMode||t.animationFillMode||\"both\",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Mg(e,t),animationDuration:dt(t.animationDuration||\"A\").timing,animationDelay:dt(t.animationDelay||\"0s\").timing,animationTimingFunction:Rt(t.animationTimingFunction||\"ease\"),animationFillMode:t.animationFillMode||\"both\",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Mg(e,t)}),animationDuration:e=>({animationDuration:dt(e).timing}),animationDelay:e=>({animationDelay:dt(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};I();var Bg={show:e=>e?void 0:{display:\"none !important\"},hide:e=>e?{display:\"none !important\"}:void 0,height:(e,t)=>ee(\"height\",e,t),width:(e,t)=>ee(\"width\",e,t),boxSizing:e=>Pe(e)?{boxSizing:\"border-box\"}:{boxSizing:e},boxSize:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"height\",t),...ve(\"width\",r||t)}},inlineSize:(e,t)=>ee(\"inlineSize\",e,t),blockSize:(e,t)=>ee(\"blockSize\",e,t),minWidth:(e,t)=>ee(\"minWidth\",e,t),maxWidth:(e,t)=>ee(\"maxWidth\",e,t),widthRange:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"minWidth\",t),...ve(\"maxWidth\",r||t)}},minHeight:(e,t)=>ee(\"minHeight\",e,t),maxHeight:(e,t)=>ee(\"maxHeight\",e,t),heightRange:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"minHeight\",t),...ve(\"maxHeight\",r||t)}},size:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ee(\"inlineSize\",t),...ee(\"blockSize\",r||t)}},minBlockSize:(e,t)=>ee(\"minBlockSize\",e,t),minInlineSize:(e,t)=>ee(\"minInlineSize\",e,t),maxBlockSize:(e,t)=>ee(\"maxBlockSize\",e,t),maxInlineSize:(e,t)=>ee(\"maxInlineSize\",e,t),minSize:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"minInlineSize\",t),...ve(\"minBlockSize\",r||t)}},maxSize:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"maxInlineSize\",t),...ve(\"maxBlockSize\",r||t)}},borderWidth:(e,t)=>ee(\"borderWidth\",e,t),padding:(e,t)=>ee(\"padding\",e,t),scrollPadding:(e,t)=>ee(\"scrollPadding\",e,t),paddingInline:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"paddingInlineStart\",t),...ve(\"paddingInlineEnd\",r||t)}},paddingBlock:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"paddingBlockStart\",t),...ve(\"paddingBlockEnd\",r||t)}},paddingTop:(e,t)=>ee(\"paddingBlockStart\",e,t),paddingBottom:(e,t)=>ee(\"paddingBlockEnd\",e,t),paddingLeft:(e,t)=>ee(\"paddingInlineStart\",e,t),paddingRight:(e,t)=>ee(\"paddingInlineEnd\",e,t),paddingBlockStart:(e,t)=>ee(\"paddingBlockStart\",e,t),paddingBlockEnd:(e,t)=>ee(\"paddingBlockEnd\",e,t),paddingInlineStart:(e,t)=>ee(\"paddingInlineStart\",e,t),paddingInlineEnd:(e,t)=>ee(\"paddingInlineEnd\",e,t),margin:(e,t)=>ee(\"margin\",e,t),marginInline:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{...ve(\"marginInlineStart\",t),...ve(\"marginInlineEnd\",r||t)}},marginBlock:(e,t)=>{if(!C(t.marginBlock))return;let[r,n]=t.marginBlock.split(\" \");return{...ve(\"marginBlockStart\",r),...ve(\"marginBlockEnd\",n||r)}},marginTop:(e,t)=>ee(\"marginBlockStart\",e,t),marginBottom:(e,t)=>ee(\"marginBlockEnd\",e,t),marginLeft:(e,t)=>ee(\"marginInlineStart\",e,t),marginRight:(e,t)=>ee(\"marginInlineEnd\",e,t),marginInlineStart:(e,t)=>ee(\"marginInlineStart\",e,t),marginInlineEnd:(e,t)=>ee(\"marginInlineEnd\",e,t),marginBlockStart:(e,t)=>ee(\"marginBlockStart\",e,t),marginBlockEnd:(e,t)=>ee(\"marginBlockEnd\",e,t),gap:e=>({gap:Eg(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(!C(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},flexAlign:e=>{if(!C(e))return;let[t,r]=e.split(\" \");return{display:\"flex\",alignItems:t,justifyContent:r}},round:(e,t)=>jc(e??t.borderRadius,t,\"round\"),borderRadius:(e,t)=>jc(e??t.round,t,\"borderRadius\")};var Vg={fontSize:e=>_c(e)||e,fontFamily:e=>({fontFamily:xc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'\"wght\" '+e})};var zg={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 Ug={inset:(e,t)=>{if(t.call(\"isNumber\",e))return{inset:e};if(t.call(\"isString\",e))return{inset:e.split(\" \").map(r=>Ee(r,\"k\").k).join(\" \")}},left:e=>Ee(e,\"left\"),top:e=>Ee(e,\"top\"),right:e=>Ee(e,\"right\"),bottom:e=>Ee(e,\"bottom\"),verticalInset:e=>{if(typeof e!=\"string\")return;let t=e.split(\" \").map(r=>Ee(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=>Ee(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},Wg={theme:(e,t)=>{if(e)return t.themeModifier?Pt(e,`@${t.themeModifier}`):Pt(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 C(e)&&e.includes(\"gradient\")?{background:Ic(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:Ag(e,o)}},textStroke:e=>({WebkitTextStroke:kg(e)}),outline:e=>({outline:lr(e)}),outlineOffset:(e,t)=>ee(\"outlineOffset\",e,t),border:e=>({border:lr(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:lr(e)}),borderTop:e=>({borderTop:lr(e)}),borderRight:e=>({borderRight:lr(e)}),borderBottom:e=>({borderBottom:lr(e)}),shadow:(e,t)=>{let r=gt(t);if(e)return{boxShadow:Cg(e,r)}},boxShadow:(e,t)=>{if(!C(e))return;let[r,n]=e.split(\"!importan\"),o=gt(t),s=n?\" !important\":\"\";return{boxShadow:$c(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:$c(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:lr(e)})};var Ai={transition:e=>({transition:Og(e)}),transitionDuration:e=>({transitionDuration:Fc(e)}),transitionDelay:e=>({transitionDelay:Fc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};I();var Hg={flow:(e,t)=>{let r=t.reverse;if(!C(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},wrap:(e,t)=>({display:\"flex\",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}};var qg={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 we={...Ng,...Bg,...Vg,...zg,...Ug,...Wg,...Ai,...Hg,...qg};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 $$=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,I$=(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($$),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},Mw=(e,t,r)=>({[e]:tt(t,r)}),Ei=(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}},Gg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return E(r)?r.call(t,t):!!r},F$=(e,t,r)=>{let n=e.slice(1),o=Gg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return tt(t,r)},j$=(e,t,r)=>({[e]:t}),D$=(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=Gg(n,r);s!==void 0&&(o=s)}if(o)return tt(t,r)},L$=(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=Gg(n,r);s!==void 0&&(o=s)}if(!o)return tt(t,r)},Kg=(e,t)=>tt(e,t),Xg={\"@\":I$,\":\":Ei,\"[\":Ei,\"*\":Ei,\"+\":Ei,\"~\":Ei,\"&\":Mw,\">\":Mw,$:F$,\"-\":j$,\".\":D$,\"!\":L$};var Yg=_r(),Nw=(e,t,r)=>{let n=t?.context?.designSystem;n&&Ie(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)=>ge(f,u[p]),{});o.designSystemClass=d}}else if(a===\"true\"){let c=le(l,t);ge(o,Kg(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=E(c)?c(t,t.state,t.context):c;u&&i(a,u),!Yg&&w(o[a])&&(o[a].label=a)}else if(we[a]){let c=le(l,t);$(c)&&(c=c.reduce((d,f)=>ge(d,f),{}));let u=we[a](c,t,t.state,t.context);$(u)&&(u=u.reduce((d,f)=>ge(d,f),{})),u&&i(a,u),!Yg&&w(o[a])&&(o[a].label=a)}else if(Le.has(a)){let c=le(l,t);typeof c==\"string\"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!Yg&&w(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&$e()}},Bw=(e,t)=>{let r={};for(let n in e){let o=Xg[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]=Nw(e,t,r),s=Bw(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return us(n,s);n._selectors=s}return n},M$=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};I();var Vw=e=>{if(w(e))return tt(e,e)},N$=(e,t)=>{let r=Vw(e);return typeof t==\"function\"?t(r):$r(r)};I();function Ww(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 B$(...e){return Ww(this,\"warn\",e),Ks.apply(this,e)}function V$(...e){return Ww(this,\"error\",e),sn.apply(this,e)}var zw={update:ki,remove:Ci,getDB:Js,getQuery:Qs,getRootData:Hs,getChildren:Bs,getPath:Vs,nextElement:Xs,previousElement:Ys,verbose:Yn,warn:B$,error:V$,variables:Zs,spotByPath:Ns,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,\"content\",t)}},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:Ws,getRootState:Us,getRootContext:qs,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)}},Uw=new WeakMap;function z$(e){if(!e)return zw;let t=Uw.get(e);if(t)return t;t=Object.create(zw);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return Uw.set(e,t),t}function Oi(e){let t=z$(e.context);Object.setPrototypeOf(e,t)}I();Hn();var U$=(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\"&&U$(t,o,n[o])};var Hw=function(e,t,r){return e.state=Jg(e,t,r),e.state},Jg=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\",W$(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 Zg(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 W$(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?Zg(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?Zg(o,s):o??{}}let n=Zg(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 Gw=(e,t)=>{if(!e)return qw;let r=H$(e,t);return!r||!r.state?qw:new Proxy(Object.create(null),{get(n,o){try{return r.state[o]}catch{return}},has(n,o){try{return o in r.state}catch{return!1}},ownKeys(){try{return Reflect.ownKeys(r.state)}catch{return[]}},getOwnPropertyDescriptor(n,o){try{return Object.getOwnPropertyDescriptor(r.state,o)}catch{return}}})},Kw=()=>Fn()!=null;function H$(e,t){let r;typeof t==\"function\"?r=t:typeof t==\"string\"?r=s=>!!s?.[t]:r=s=>!!s?.state;let n=e,o=null;for(let s=0;s<1024&&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 qw=new Proxy(Object.create(null),{get(){},set(){return!0},has(){return!1}});I();var q$=[\"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\"],Bc={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\"]},Yw=[\"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\"],tm=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-\")||tm(t)||Bc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Bc,e)?Bc[e].includes(t):!1,rm=e=>{if(!C(e))return!1;let t=e.toLowerCase();return Yw.includes(t)},G$=(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=rm(o);if(qe(t[o])&&(s||i)){let a=tm(o)||o;n[a]=t[o]}}return n},K$=(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 C(r)&&r.includes(\"{{\")&&(r=e.call(\"replaceLiteralsWithObjectFields\",r)),r},Qg=(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},em={src:e=>Qg(e,e.src),href:e=>Ir(e,e.href),action:e=>Ir(e,e.action),poster:e=>Qg(e,e.poster),data:e=>Ir(e,e.data)},nm=e=>{let t=e.tag||\"div\",r={};for(let n in em)if(e[n]!==void 0&&Fr(t,n)){let o=em[n](e);o!==void 0&&(r[n]=o)}return r},Xw=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return E(r)?r.call(t,t):!!r},X$=(e,t,r)=>{if(e===\"$\"){let o=Xw(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=Xw(t,r);o!==void 0&&(n=o)}return e===\".\"?!!n:!n},Y$=new Set([\"$\",\".\",\"!\"]),Z$=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(X$(a,l,u))return E(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!Y$.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=rm(c);if(!u&&!d)continue;let f=tm(c)||c;o(f,a[c],i,l)}}return n};var J$=1;function io(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function Q$(e){return e.charAt(2).toLowerCase()+e.slice(3)}function eI(e){return e.toLowerCase()}function im(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]=im(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||`_${J$++}`,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})}}Si(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]=im(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]=im(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?Object.create(f):null);if(e.scope!==void 0||u){let g=p?Object.create(p):{};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=g}else p&&(s.scope=Object.create(p));if(e.if!==void 0&&(s.if=e.if),Oi(s),tI(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\"&&am(s,{if:e.if}),s;s.tag||(s.tag=yn(s)),jr(\"Init\",s,n);let h=s.node=bn(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),am(s,e),lm(s),Jw(s),Qw(s,n);try{eS(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?`\n`+g.stack.split(`\n`).slice(0,6).join(`\n`):\"\")}}if(fm(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)try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!=\"function\"&&(s.node.innerHTML=g)}catch{}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&&Ie(m);try{g(s,s.state,s.context)}catch(b){console.error(\"[DOMQL] onFrame error:\",b)}finally{m&&$e()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function tI(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=Zw(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 om(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 Zw(e,t){if(!t)return{};if(e===\".\")return t.state||{};if(e.startsWith(\"../\")){let o=e.slice(3);return o?om(t.state,o):t.state??{}}if(e.startsWith(\"~/\")){let o=t.state?.root||t.state,s=e.slice(2);return s?om(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=om(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 rI(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||io(a)||we[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&&Ie(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&$e()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function am(e,t){let r=e.__ref;if(rI(e),typeof e.text==\"function\"){let o=e.text,s=Ae(()=>{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=Ae(()=>{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\"&&!Ze.has(o)&&!io(o)&&!r.__exec[o]){if(we[o]){let s=e[o],i=o,a=Ae(()=>{let l=e.context?.designSystem;l&&Ie(l);try{let c=s(e,e.state,e.context),u=we[i](c,e,e.state,e.context);u&&e.node?so(e.node,u):e.node&&(i===\"show\"||i===\"hide\")&&(e.node.style.display=\"\")}finally{l&&$e()}},{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=Ae(()=>{let l=e.context?.designSystem;l&&Ie(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?so(e.node,{[i]:c}):e.node.style[i]=\"\")}finally{l&&$e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html==\"function\"){let o=t.html,s=Ae(()=>{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!=\"function\"&&(e.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value==\"function\"){let o=t.value,s=Ae(()=>{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=Ae(()=>{let i=o(e,e.state,e.context);so(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=Ae(()=>{try{let a=s(e,e.state,e.context);e.node&&so(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=Ae(()=>{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=Ae(()=>{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=Ae(()=>{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=Ae(()=>{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=Ae(()=>{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=bn(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 fm(e,e.parent);lm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=yn(e)),jr(\"Init\",e,{}),e.node||(e.node=bn(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{am(e,t)}finally{t.if=l}lm(e),Jw(e),Qw(e,{}),eS(e,{}),fm(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||io(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||\"div\";if(Fr(a,o)&&!we[o]&&!(Le&&Le.has(o))){let l=o,c=Ae(()=>{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)}}sI(e)}function lm(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),iI(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\"&&so(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 so(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&&oI(e,r)}var nI=0;function oI(e,t){let r=`_ds${nI++}`;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} }\n`}else u+=`${f.replace(/[A-Z]/g,h=>\"-\"+h.toLowerCase())}: ${p};`}u&&(s+=`${l} { ${u} }\n`),d&&(s+=d)}}s&&(o.textContent+=s)}function sI(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&&Ie(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(we[m]){let b=we[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?(so(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&&$e()}};t.__conditionalRunners.push(l);let c=Ae(l,{depth:t.path.length});t.__effects.push(c)}}var sm=new WeakSet;function iI(e){let{node:t}=e;if(!t)return;if(sm.has(e)){console.error(\"[applyCssInProps] re-entry detected for element\",e.key,\"prop path:\",e.__ref?.path);return}sm.add(e);let r=e.context?.designSystem;r&&Ie(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)&&!io(s)){if(we[s]){let a=e[s],l=we[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(we[c]){let d=we[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(we[m]){let y=we[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&&$e(),sm.delete(e)}}function Jw(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=nm(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)&&!io(o)&&!(we[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 Qw(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!io(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=Q$(r);xn.has(o)||wi(eI(o),e,n)}}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 um(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=cm(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=Zw(t,e);if(Array.isArray(o)){um(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=cm(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 eS(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=Ae(()=>{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 v=0;v<u.length;v++){let _=u[v],S=p;if(typeof p==\"function\")try{S=p(e,_)}catch{S=null}let O=S&&S.key||_&&_.key||`${v}`;h.push(O),g.set(O,{rawChild:_,childProps:S})}let m=new Set(h);for(let v=a.__children.length-1;v>=0;v--){let _=a.__children[v];if(!m.has(_)){let S=e[_];S?.remove&&S.remove(),delete e[_],a.__children.splice(v,1)}}let y=e.childExtends,x=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let _=g.get(v),S=_.rawChild,O=e[v];if(O&&O.state){if(S&&typeof S==\"object\"){let z=O.state;if(typeof z.replace==\"function\")z.replace(S);else if(typeof z.update==\"function\"){for(let N in z)if(!(N===\"__element\"||N===\"root\"||N===\"parent\"||N===\"update\")&&!Object.prototype.hasOwnProperty.call(S,N))try{z[N]=void 0}catch{}z.update(S)}else for(let N in S)z[N]=S[N]}continue}let T=S;(typeof S==\"string\"||typeof S==\"number\")&&(T={value:S,text:S});let k=_.childProps,D=k?{...k,state:T}:{state:T};if(y&&!D.ignoreChildExtends)if(D.extends){let z=Array.isArray(D.extends)?D.extends:[D.extends],N=Array.isArray(y)?y:[y];D={...D,extends:[...N,...z]}}else D={extends:y,...D};let te=$t(D,e,v,t);te?.node&&x&&x.appendChild(te.node)}x&&x.childNodes.length&&e.node&&e.node.appendChild(x),a.__children=h;return}for(let p of[...a.__children]){let h=e[p];h?.remove&&h.remove(),delete e[p]}a.__children=[],um(e,u,t)},{depth:a.path.length});a.__effects.push(c)}if(um(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 fm(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&&Ie(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&&$e()}}return!0}var tS={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\"]},rS={\"gradient-blue-light\":`linear-gradient(to right,\n rgba(4, 116, 242, 1),\n rgba(0, 48, 103, 1)\n )`,\"gradient-blue-dark\":`linear-gradient(to right,\n #0474F2,\n #003067\n )`,\"gradient-dark\":`linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )`,\"gradient-dark-active\":`linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )`,\"gradient-light\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )`,\"gradient-light-active\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )`,\"gradient-colorful\":`linear-gradient(60deg,\n #00A2E7 0%,\n #185DF3 31%,\n #1E54F0 36%,\n #8B4CCA 69%,\n #C66894 100%\n )`};var 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\"}}}},lI={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},cI={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\"}}},nS={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...aI,...lI,...cI,none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var oS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var sS={ratio:1.618,subSequence:!0};var iS={SourceSans:[{url:\"\"}]},aS={system:{value:['\"Helvetica Neue\"',\"Helvetica\",\"Arial\"],type:\"sans-serif\",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var lS={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 cS={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 uS={base:150,ratio:1.333,unit:\"ms\",subSequence:!0};var Ti={version:\"0.0.1\",color:tS,gradient:rS,theme:nS,typography:oS,spacing:sS,font:iS,fontFamily:aS,timing:uS,icons:lS,media:cS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var co={};G(co,{A:()=>kk,AssetPicture:()=>OS,Audio:()=>RS,Avatar:()=>Nk,B:()=>YS,Block:()=>fS,Box:()=>Wc,Br:()=>ek,Button:()=>Ek,ButtonSet:()=>Rk,COMPONENTS:()=>lo,Caption:()=>VS,Checkbox:()=>uk,CheckboxHgroup:()=>fk,Circle:()=>CS,CircleButton:()=>Tk,Clickable:()=>wS,Data:()=>JS,Dialog:()=>Ik,DialogFooter:()=>jk,DialogHeader:()=>Fk,Dropdown:()=>Vk,DropdownList:()=>zk,DropdownParent:()=>Uk,DropdownParentFocus:()=>Wk,DropdownSiblingFocus:()=>Hk,FileIcon:()=>vk,Flex:()=>pS,Focusable:()=>SS,FocusableComponent:()=>kS,Footnote:()=>XS,Form:()=>xS,Grid:()=>gS,Gutter:()=>yS,H1:()=>FS,H2:()=>jS,H3:()=>DS,H4:()=>LS,H5:()=>MS,H6:()=>NS,Headline:()=>GS,Hgroup:()=>sk,HgroupButton:()=>ak,HgroupRows:()=>ik,Hoverable:()=>_S,Hr:()=>QS,I:()=>ZS,Icon:()=>bk,IconButton:()=>$k,IconText:()=>xk,Iframe:()=>vS,Img:()=>bS,Inline:()=>dS,InlineFlex:()=>hS,InlineGrid:()=>mS,Input:()=>lk,Italic:()=>HS,KangorooButton:()=>Pk,Li:()=>tk,Link:()=>Vm,Notification:()=>qk,NumberInput:()=>ck,Ol:()=>nk,P:()=>BS,Picture:()=>ES,Radio:()=>dk,RadioHgroup:()=>pk,Range:()=>Bk,RouteLink:()=>Ck,RouterLink:()=>zm,SHAPES:()=>zc,Select:()=>Ak,Shape:()=>ym,Span:()=>IS,SquareButton:()=>Ok,Strong:()=>zS,Subhead:()=>KS,Svg:()=>TS,Text:()=>$S,Textarea:()=>mk,TextareaWithButton:()=>yk,Theme:()=>AS,Title:()=>qS,Toggle:()=>hk,ToggleHgroup:()=>gk,Tooltip:()=>Dk,TooltipHidden:()=>Lk,TooltipParent:()=>Mk,U:()=>US,Ul:()=>rk,Underline:()=>WS,Video:()=>PS,depth:()=>Uc,getSystemGlobalTheme:()=>Pi});var dm={};G(dm,{Block:()=>fS,Flex:()=>pS,Grid:()=>gS,Gutter:()=>yS,Inline:()=>dS,InlineFlex:()=>hS,InlineGrid:()=>mS});var fS={display:\"block\"},dS={display:\"inline\"},pS={display:\"flex\"},hS={display:\"inline-flex\"},gS={display:\"grid\"},mS={display:\"inline-grid\"},yS={boxSize:\"C1\"};var pm={};G(pm,{Img:()=>bS});I();var bS={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?oi(t):\"\")||e.srcset}}};var hm={};G(hm,{Form:()=>xS});var xS={tag:\"form\"};var gm={};G(gm,{Iframe:()=>vS});var vS={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"};var mm={};G(mm,{Clickable:()=>wS,Focusable:()=>SS,FocusableComponent:()=>kS,Hoverable:()=>_S});var uI={appearance:\"none\",cursor:\"pointer\",fontFamily:\"inherit\"},_S={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}}},wS={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}},SS={border:\"none\",outline:\"solid 0 blue.3\",\":focus-visible\":{opacity:1,outline:\"solid X blue.3\"},attr:{tabIndex:e=>e.tabIndex}},kS={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",style:uI};var vm={};G(vm,{Picture:()=>ES});var xm={};G(xm,{Theme:()=>AS,getSystemGlobalTheme:()=>Pi});var bm={};G(bm,{Circle:()=>CS,SHAPES:()=>zc,Shape:()=>ym,default:()=>fI,depth:()=>Uc});I();var yt=P(),Uc={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}`}},ao=e=>de(e.shapeDirectionColor)||de(e.borderColor)||de(e.backgroundColor)||de(e.background),Vc=e=>{let t=Ai.transition(e.transition,e);return t&&t.transition},zc={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:ao(e),transition:Vc(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:ao(e),transition:Vc(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:ao(e),transition:Vc(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:Vc(e),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${ao(e)} 25%, transparent 25%), linear-gradient(315deg, ${ao(e)} 25%, transparent 25%)`},\"&:after\":{background:ao(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)\"}}}},ym={deps:{exec:le,getSpacingBasedOnRatio:Gt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(zc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=zc[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}}},CS={round:\"100%\"},fI=ym;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},AS={deps:{depth:Uc},classlist:{depth:e=>!Pe(e.depth)&&e.deps.depth[e.depth]}};var ES={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 _m={};G(_m,{AssetPicture:()=>OS});I();var OS={tag:\"picture\",children:e=>{let t=Ye(e);if(t)return si(t,e.alt)}};var wm={};G(wm,{Svg:()=>TS});var TS={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 Sm={};G(Sm,{Video:()=>PS});I();var PS={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 km={};G(km,{Audio:()=>RS});I();var RS={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 Cm={};G(Cm,{B:()=>YS,Caption:()=>VS,Data:()=>JS,Footnote:()=>XS,H1:()=>FS,H2:()=>jS,H3:()=>DS,H4:()=>LS,H5:()=>MS,H6:()=>NS,Headline:()=>GS,I:()=>ZS,Italic:()=>HS,P:()=>BS,Span:()=>IS,Strong:()=>zS,Subhead:()=>KS,Text:()=>$S,Title:()=>qS,U:()=>US,Underline:()=>WS});var $S={},IS={tag:\"span\"},FS={tag:\"h1\"},jS={tag:\"h2\"},DS={tag:\"h3\"},LS={tag:\"h4\"},MS={tag:\"h5\"},NS={tag:\"h6\"},BS={tag:\"p\"},VS={tag:\"caption\"},zS={tag:\"strong\",fontWeight:\"700\"},US={tag:\"u\"},WS={tag:\"u\"},HS={tag:\"i\"},qS={},GS={tag:\"h6\",fontSize:\"B\",fontWeight:500},KS={tag:\"span\",fontSize:\"Z1\"},XS={tag:\"span\",fontSize:\"Z\"},YS={tag:\"b\"},ZS={tag:\"i\"},JS={tag:\"data\"};var Am={};G(Am,{Box:()=>Wc,Br:()=>ek,Hr:()=>QS,Li:()=>tk,Ol:()=>nk,Ul:()=>rk});var dI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=tt(t,e,{unpack:!1});r.__class=n},Wc={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:dI},QS={tag:\"hr\",margin:\"C1 0\"},ek={tag:\"br\"},tk={tag:\"li\"},rk={tag:\"ul\",childExtends:{extends:\"Li\"}},nk={tag:\"ol\",childExtends:{extends:\"Li\"}};var Em={};G(Em,{Hgroup:()=>sk,HgroupButton:()=>ak,HgroupRows:()=>ik});var ok=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},sk={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:ok,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:ok,margin:\"0\",color:\"paragraph\"}},ik={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},ak={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}};var Om={};G(Om,{Input:()=>lk});var lk={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 Tm={};G(Tm,{NumberInput:()=>ck});var ck={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 Pm={};G(Pm,{Checkbox:()=>uk,CheckboxHgroup:()=>fk});var uk={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\"}}},fk={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}};var Rm={};G(Rm,{Radio:()=>dk,RadioHgroup:()=>pk});var dk={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}},pk={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}};var $m={};G($m,{Toggle:()=>hk,ToggleHgroup:()=>gk});var hk={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}},gk={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}};var Im={};G(Im,{Textarea:()=>mk,TextareaWithButton:()=>yk});var mk={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\"}},yk={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 Fm={};G(Fm,{FileIcon:()=>vk,Icon:()=>bk,IconText:()=>xk});var bk={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 _=v[\".isActive\"];if(_)return v.call(\"exec\",_.name||_.icon)},c=(v,_,S)=>{let{semanticIcons:O}=S&&S.designSystem,{toCamelCase:T}=S&&S.utils,k=u(v,_),te=T(k).split(/([a-z])([A-Z])/g),z=te[1]?te[0]:k.split(\".\")[0].split(\" \")[0],N=O&&O[z];if(N){let ye=k.includes(\".\")?\"sfsymbols.\"+k.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return k=N[ye]||N[k.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${k}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},u=(v,_)=>{let{key:S}=v,O=v.call(\"exec\",v.name||v.icon||S,v);return v.call(\"isString\",O)&&O.includes(\"{{\")&&(O=v.call(\"replaceLiteralsWithObjectFields\",O)),v.call(\"isString\",O)?O:S},d=u(e,t);if(d.includes(\" \")){let v=d.split(\" \");d=v[0]+v.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join(\"\")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[\".isActive\"];n&&n.isActive&&m&&m.icon&&(g=e.call(\"exec\",m.icon||m.Icon.name||m.Icon.icon,e)),e.call(\"isString\",g)&&g.includes(\"{{\")&&(g=e.call(\"replaceLiteralsWithObjectFields\",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn(\"Can't find icon:\",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:\"0 0 24 24\"}},xk={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},vk={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}};var Um={};G(Um,{A:()=>kk,Link:()=>Vm,RouteLink:()=>Ck,RouterLink:()=>zm});var Bm={};G(Bm,{default:()=>yI,getActiveRoute:()=>Nm,lastLevel:()=>qc,lastPathname:()=>Hc,matchRoute:()=>Dm,parseQuery:()=>Lm,parseRoutePattern:()=>jm,router:()=>Kt,runGuards:()=>Mm});I();var wk=/^:(.+)/,Sk=/^\\*$/,_k=new Map,jm=e=>{let t=_k.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(wk);a?n.push({index:i,name:a[1]}):Sk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return _k.set(e,s),s},Dm=(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=jm(c),d=pI(o,u);d>a&&(a=d,i=c,l=hI(o,u))}return!i&&t[\"/*\"]&&(i=\"/*\"),{key:i,content:i?t[i]:null,params:l,routePath:s}},pI=(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(wk.test(r[i]))o+=1;else if(Sk.test(r[i]))o+=.5;else return-1;return o},hI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Lm=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},Mm=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},Nm=(e=0,t)=>{t||(t=typeof A<\"u\"?A.location.pathname:\"/\");let n=t.split(\"/\")[e+1];if(n)return`/${n}`},Hc,qc=0,gI=e=>!e||e===\"srcdoc\"||e===\"about:srcdoc\"?\"/\":e,mI={level:qc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:ce&&ce.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0},Kt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||A,i=o?.context?.document||ce,a={...mI,...o.context.routerOptions,...n};qc=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=gI(e);let d=new s.URL(u+e),{pathname:f,search:p,hash:h}=d,g=Lm(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Hc;Hc=f;let x,v,_,S;if(a.useParamsMatching){let T=Dm(f,o.routes,a.level);x=T.key,v=T.routePath,_=T.content,S=T.params}else x=Nm(a.level,f),v=x,_=o.routes[x||\"/\"]||o.routes[\"/*\"],S={};let O=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!_){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 T={pathname:f,route:x,params:S,query:g,hash:h,element:o,state:r},k=await Mm(a.guards,T);if(k===!1)return;if(typeof k==\"string\")return Kt(k,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||\"\")+(h||\"\"))}catch{}if(b||!y){let T={route:x,routePath:v,hash:h,debugging:!1};Object.keys(S).length&&(T.params=S),Object.keys(g).length&&(T.query=g),a.updateState&&o.state.update(T,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let k=o.__ref?.origin?.content,D={};if(k)for(let z in k){let N=k[z];z===\"__ref\"||z===\"props\"||z===\"node\"||z===\"parent\"||z===\"key\"||(typeof N==\"string\"||typeof N==\"number\"||typeof N==\"boolean\"||typeof N==\"object\"&&N!==null&&!N.node&&!N.__ref)&&(D[z]=N)}let te={...D,...typeof _==\"object\"?_:{extends:_}};a.useFragment&&(te.tag=\"fragment\");try{o.set(te,{contentElementKey:c})}catch(z){console.error(\"[smbls/router] failed to render route content\",f,z)}}if(a.scrollToTop&&O?.scrollTo&&O.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&_[c]?.node?.scrollTo&&_[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let T=i.getElementById(h);if(T&&O?.scrollTo){let k=T.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:k,left:0})}}Sr(\"routeChanged\",o,a)},yI=Kt;var bI=(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||Kt)(a,h,{},{scrollToOptions:{behaviour:\"instant\"},scrollToTop:t.call(\"isDefined\",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Vm={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:bI},kk={extends:\"Link\"},zm={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||Kt)(a,h,{},{scrollToOptions:{behaviour:\"instant\"},scrollToTop:t.call(\"isDefined\",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},Ck={extends:[Vm,zm]};var Wm={};G(Wm,{Select:()=>Ak});var Ak={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 Hm={};G(Hm,{Button:()=>Ek,ButtonSet:()=>Rk,CircleButton:()=>Tk,IconButton:()=>$k,KangorooButton:()=>Pk,SquareButton:()=>Ok});var Ek={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)},Ok={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\"},Tk={extends:\"SquareButton\",round:\"C\"},Pk={extends:\"Button\",childExtends:\"IconText\"},Rk={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},$k={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"};var qm={};G(qm,{Dialog:()=>Ik,DialogFooter:()=>jk,DialogHeader:()=>Fk});var Ik={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},Fk={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},jk={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 Gm={};G(Gm,{Tooltip:()=>Dk,TooltipHidden:()=>Lk,TooltipParent:()=>Mk});I();var Dk={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)}},Lk={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)}},Mk={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 Km={};G(Km,{Avatar:()=>Nk});var Nk={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 Xm={};G(Xm,{Range:()=>Bk});var Bk={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:ii(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:ii(\"#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 Ym={};G(Ym,{Dropdown:()=>Vk,DropdownList:()=>zk,DropdownParent:()=>Uk,DropdownParentFocus:()=>Wk,DropdownSiblingFocus:()=>Hk});var Vk={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\"},zk={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\"}}},Uk={position:\"relative\",zIndex:999,style:{\"&:hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}}},Wk={position:\"relative\",tabindex:\"0\",style:{\"&: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()}}},Hk={position:\"relative\",tabindex:\"0\",style:{\"&: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 Zm={};G(Zm,{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 lo=Object.assign({},dm,pm,hm,gm,mm,vm,_m,wm,bm,Sm,km,xm,Cm,Am,Em,Om,Tm,Pm,Rm,$m,Im,Fm,Um,Wm,Hm,qm,Gm,Km,Xm,Ym,Zm);function Gc(e){if(e==null)return 0;if(typeof e!=\"object\")return Gk(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Gc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^Gk(r[n]))*16777619,t=(t^Gc(e[r[n]]))*16777619;return t>>>0}function Gk(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Kc(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(!Kc(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)||!Kc(e[s],t[s]))return!1}return!0}function Jm(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=Jm(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 Qm(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])?Qm(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 uo(e){return e.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}function Ri(e){let t=String(e);return t.length<=20?t.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():Dr(t)}function Kk(e){return e.split(`\n`).map(Dr).join(`\n`)}var Xk={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 Yk(e,t){let r=Xk[e]||Dr(e),n=Ri(t),o=`_${r}-${n}`,s=uo(e),i=`.${o}{${s}: ${t}}`;return`${o}\n${i}`}var Zk=e=>typeof e==\"string\"&&(e.indexOf(\"{\")!==-1||e.indexOf(\"}\")!==-1);function Jk(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||Zk(i))continue;let a=Xk[s]||Dr(s),l=Ri(i),c=`_${a}-${l}`,u=uo(s);r.push(c),n.push(`.${c}{${u}:${i}}`)}return r.join(\" \")+\"\\0\"+n.join(`\n`)}function Qk(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&&(Zk(c)||(s+=`${uo(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}\n${i}`}var ey=null;function Yc(e){ey=e}var It={structuralHash:Gc,deepEqual:Kc,mergeStructural:Jm,overwriteDeep:Qm,shortHash:Dr,toKebab:uo,sanitizeValue:Ri,batchShortHash:Kk,atomicCssClass:Yk,batchAtomicCss:Jk,compoundCssClass:Qk},e1=!1,Xc=null;function t1(e){return Xc||(Xc=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),e1=!0,ey&&t.batchAtomicCss&&ey({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug(\"[smbls] WASM not available, using JS fallbacks:\",t.message),!1)),Xc)}function r1(){return e1}I();var $i={};G($i,{CDN_PROVIDERS:()=>Et,DOMQL_EVENTS:()=>ep,DOMQ_PROPERTIES:()=>xr,ENV:()=>mp,HTML_TAGS:()=>qn,METHODS:()=>Bn,METHODS_EXL:()=>is,NODE_ENV:()=>kt,OPTIONS:()=>Ts,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ss,PROPS_METHODS:()=>vr,STATE_METHODS:()=>Qr,STATE_PROPERTIES:()=>Qd,SVG_TAGS:()=>Rv,TYPES:()=>Jo,UNIVERSAL_RESERVED_KEYS:()=>Xl,addCaching:()=>Il,addContext:()=>$l,addExtend:()=>Vp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Bd,addProtoToArray:()=>ts,addRef:()=>Tl,applyCSS:()=>ry,applyDependentState:()=>ih,applyEvent:()=>Nl,applyEventUpdate:()=>Bl,applyExtends:()=>Fv,applyProps:()=>Ss,arrayContainsOtherArray:()=>Id,arraysEqual:()=>zd,arrayzeValue:()=>an,buildImgSrcset:()=>oi,buildSourcesAndImg:()=>si,cache:()=>fh,call:()=>Th,captureSnapshot:()=>Rh,checkForStateTypes:()=>rh,checkIfInherits:()=>Ml,checkIfStringIsInArray:()=>Hd,clone:()=>rp,cloneAndMergeArrayExtend:()=>gs,cloneFunction:()=>Cp,concatAddExtends:()=>Mp,copyJavaScriptToClipboard:()=>Yh,copyStringToClipboard:()=>Xh,createBasedOnType:()=>Ol,createElement:()=>th,createElementExtends:()=>ml,createExtends:()=>ys,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>vl,createIfConditionFlag:()=>Ap,createInheritedState:()=>nh,createKey:()=>ps,createNestedObject:()=>cp,createNestedObjectByKeyPath:()=>sh,createObjectWithoutPrototype:()=>cl,createParent:()=>Pl,createPath:()=>Rl,createProps:()=>ks,createPropsStack:()=>Al,createRoot:()=>eh,createScope:()=>lh,createSnapshotId:()=>ds,customDecodeURIComponent:()=>Jd,customEncodeURIComponent:()=>Zd,cutArrayAfterValue:()=>Md,cutArrayBeforeValue:()=>Ld,debounce:()=>hs,debounceOnContext:()=>wp,decodeNewlines:()=>Yd,deepClone:()=>ue,deepContains:()=>ap,deepDefaults:()=>ei,deepDestringifyFunctions:()=>lt,deepExtend:()=>gl,deepMerge:()=>ae,deepMergeExtends:()=>Ut,deepStringifyFunctions:()=>as,defineSetter:()=>Eh,destringifyGlobalScope:()=>cs,detectHeightOnInit:()=>Dh,detectInfiniteLoop:()=>pp,document:()=>ce,encodeNewlines:()=>Xd,error:()=>sn,excludeKeysFromObject:()=>gp,exec:()=>le,extendCachedRegistry:()=>Np,extendStackRegistry:()=>bs,extractArrayExtend:()=>vs,fetchLibraryData:()=>Jl,fibonacciNumberByIndex:()=>Lh,filterArrays:()=>Ud,filterArraysFast:()=>Wd,finalizeExtends:()=>_l,findClosestNumber:()=>Zl,findClosestNumberInFactory:()=>Gh,findInheritedState:()=>Ll,findKeyPosition:()=>Gd,flattenExtend:()=>Kn,formatDate:()=>jh,generateHash:()=>dl,generateKey:()=>fs,generateMetaTags:()=>Hh,get:()=>kh,getActiveRoute:()=>Nm,getCDNUrl:()=>Ot,getCapitalCaseKeys:()=>Wp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Dl,getChildren:()=>Bs,getContext:()=>Gs,getCookie:()=>Rp,getDB:()=>Js,getEmotionStylesheet:()=>eg,getExtendsInElement:()=>zp,getExtendsStack:()=>ms,getExtendsStackRegistry:()=>hl,getFrequencyInArray:()=>Fd,getHashedExtend:()=>xs,getImportMapScript:()=>Fh,getInObjectByPath:()=>dp,getLocalStorage:()=>Ip,getNev:()=>vp,getPageMetadata:()=>qh,getParentStateInKey:()=>jl,getPath:()=>Vs,getQuery:()=>Qs,getRef:()=>Ah,getRoot:()=>Ws,getRootContext:()=>qs,getRootData:()=>Hs,getRootState:()=>Us,getRootStateInKey:()=>Fl,getSpreadChildren:()=>Hp,global:()=>Pd,hasFunction:()=>zn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>op,inheritChildExtends:()=>bl,inheritChildPropsExtends:()=>yl,inheritParentProps:()=>Cs,inheritRecursiveChildExtends:()=>xl,init:()=>fo,initProps:()=>Zp,is:()=>Ge,isArray:()=>$,isBoolean:()=>ol,isContextComponent:()=>qp,isCyclic:()=>hp,isDOMNode:()=>He,isDate:()=>il,isDefined:()=>qe,isDevelopment:()=>wr,isEmpty:()=>al,isEmptyObject:()=>sp,isEqualDeep:()=>ll,isFunction:()=>E,isHtmlElement:()=>Yo,isLocal:()=>xp,isMethod:()=>Ph,isMobile:()=>Tp,isNode:()=>tr,isNot:()=>$d,isNotProduction:()=>rn,isNull:()=>sl,isNumber:()=>zt,isObject:()=>w,isObjectLike:()=>Q,isPhoto:()=>Mh,isProduction:()=>_r,isStaging:()=>bp,isState:()=>oh,isString:()=>C,isStringFunction:()=>kp,isTest:()=>fl,isTesting:()=>yp,isUndefined:()=>Pe,isUniversallyReservedKey:()=>$h,isValidHtmlTag:()=>jp,joinArrays:()=>Ln,jointStacks:()=>Bp,keys:()=>Gl,lastLevel:()=>qc,lastPathname:()=>Hc,loadCssFile:()=>zh,loadJavascript:()=>Uh,loadJavascriptFile:()=>Nh,loadJavascriptFileEmbedSync:()=>Vh,loadJavascriptFileSync:()=>Bh,loadRemoteCSS:()=>Wh,loadRemoteScript:()=>Jn,log:()=>Oh,logGroupIf:()=>Op,logIf:()=>Ep,lookdown:()=>wh,lookdownAll:()=>Sh,lookup:()=>_h,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>ip,map:()=>tp,mapStringsWithContextComponents:()=>_s,matchRoute:()=>Dm,matchesComponentNaming:()=>Wt,memoize:()=>Sp,merge:()=>ge,mergeSharedLibraries:()=>ti,nextElement:()=>Xs,normalizeLibraryKey:()=>Qn,objectToString:()=>ls,objectizeStringProperty:()=>ws,overwrite:()=>us,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>ah,parse:()=>Kl,parseDeep:()=>Ms,parseQuery:()=>Lm,parseRoutePattern:()=>jm,pickupElementFromProps:()=>kl,pickupPropsFromElement:()=>Sl,previousElement:()=>Ys,propExists:()=>Xp,propertizeElement:()=>Cl,propertizeUpdate:()=>Kp,reinit:()=>ty,remove:()=>u_,removeChars:()=>Zh,removeCookie:()=>$p,removeDuplicateProps:()=>Es,removeDuplicatesInArray:()=>Mn,removeFromArray:()=>jd,removeFromObject:()=>lp,removeNestedKeyByPath:()=>up,removeValueFromArray:()=>es,removeValueFromArrayAll:()=>Nd,reorderArrayByValues:()=>Vd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Kd,resolveAsset:()=>Ye,resolveHandler:()=>Wn,resolveSharedLibraries:()=>Kh,returnValueAsText:()=>El,router:()=>Kt,runGuards:()=>Mm,runPluginHook:()=>Ct,scratchSystem:()=>gi,scratchUtils:()=>dn,self:()=>Rd,set:()=>no,setActiveRootState:()=>zs,setCookie:()=>Pp,setHashedExtend:()=>pl,setInObjectByPath:()=>fp,setLocalStorage:()=>Fp,setNodeStyles:()=>ql,setProps:()=>Ch,setPropsPrototype:()=>As,spotByPath:()=>Ns,srcsetFor:()=>eo,stringIncludesAny:()=>ns,stringToObject:()=>np,swapItemsInArray:()=>Dd,syncProps:()=>Os,toCamelCase:()=>ri,toDashCase:()=>ni,toDescriptionCase:()=>Qh,toTitleCase:()=>Jh,toggleFullscreen:()=>Ih,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ch,trimStringFromSymbols:()=>qd,unstackArrayOfObjects:()=>Qo,update:()=>Yp,updateProps:()=>Jp,variables:()=>Zs,verbose:()=>Yn,warn:()=>Ks,window:()=>A});I();I();var SI=P(),n1=(e=SI,t)=>{let r=w(t.localFile)?t.localFile:{},n=ue(r.designSystem||{});return ae(e,n)},kI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},fo=(e,t=kI)=>{let r=n1(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=no({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=ec(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)&&Oc(i.svg,{document:t.document}),(h||p)&&Pc(i.icons,{document:t.document}),i},Zc={},ty=(e,t=Zc)=>{let r=n1(e||{},t),n=t.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=no({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},ry=(e,t=Zc)=>{_e(e)},CI=(e,t=Zc)=>{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 AI=(e,t=Zc)=>{};I();var o1=e=>!e||e===\"srcdoc\"||e===\"about:srcdoc\"||e===\"blank\"||e===\"about:blank\"?\"/\":e,ny={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},s1=(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},i1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=ny:t.router=ge(t.router||{},ny);let r=t.router,n=async(s,i)=>{let a=s.context?.window||A;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=o1(l);let d=l+c+u,f=s;if(r.customRouterElement){let p=s1(s,r.customRouterElement);p&&(f=p,s.routes&&(f.routes=s.routes))}f.routes&&await Kt(d,f,{},{initialRender:!0,pushState:!1})},o=!Pe(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),EI(t,r),r},oy=(e,t)=>{if(t.router===!1)return;let r=t.router||ny;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Kt,o=t.window||A,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=o1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=s1(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))},EI=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return ae(r.Link||r[\"smbls.Link\"],r.RouterLink||r[\"smbls.RouterLink\"])};I();var sy=A&&A.location?A.location.host.includes(\"dev.\"):wr(),a1=sy?\"http://localhost:8080/get\":\"https://api.symbols.app/get\",OI={endpoint:a1},l1=async(e,t=OI)=>{let r=t.endpoint||a1,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(E(t.onError))return t.onError(s);console.error(s)}},TI=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await l1(e,r),o=sy||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},PI=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await l1(e,n),s=sy||t.isDevelopment?lt(o):lt(o.releases[0]);r(s)}},c1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await TI(e,t)}catch(r){console.error(r)}},u1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&PI(t,r,n||(o=>{let s=o.designSystem;w(s)&&r.utils.init(s),w(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Ii=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{vn(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 RI={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\"}},$I=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}\"]`},Jc=(e,t,r)=>{if(!e)return{};let n=E(e)?le(e,t,r):{...e};if(!w(n))return{};for(let o in n){let s=n[o];E(s)&&(s=le(s,t,r)),C(s)&&s.includes(\"{{\")&&t?.call&&(s=t.call(\"replaceLiteralsWithObjectFields\",s,r)),n[o]=s}return n};var II=(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},Qc=(e,t)=>{if(!(!w(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=RI[r];if(!o)continue;let s=$I(o),i=t.querySelector(s)||II(o,t);i&&(r===\"title\"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute(\"content\",n))}};var f1={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=Jc(t,e,e.state);Qc(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=Jc(t,e,e.state);Qc(n,r)}};on();var d1=(e,t,r,n)=>{e&&Ds(e,t,r,n)},p1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=Jc(e,t,r);Qc(o,n)},h1=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},po={routes:e=>e,metadata:p1,fetch:d1,$router:h1},g1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=p1),e.fetch!==!1&&(t.fetch=d1),e.router!==!1&&(t.$router=h1),t};var iy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},eu={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},tu={...iy,router:eu},FI={state:{},pages:{},components:{},router:eu,define:po},Lr=FI;I();I();var m1=(e,t)=>Q(e.extends)?e.extends:[];I();var v1=e=>{let t=typeof window<\"u\"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<\"u\"?document:t.document;return e.document=e.document||r,e.window=e.window||t,e.window},y1=(e=\"smbls\")=>{let t={};for(let r in lo)Object.prototype.hasOwnProperty.call(lo,r)&&(Wt(r)?t[`smbls.${r}`]=lo[r]:t[r]=lo[r]);return t},_1=e=>e.components?{...y1(),...e.components}:y1(),w1=e=>({...$i,...Bm,...dn,...e.utils,...e.snippets,...e.functions}),S1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),b1={},k1=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=wr()&&n?`?${Math.random()}`:\"\",d=Ot(l,c,o)+u;try{if(b1[l])continue;b1[l]=!0,await Promise.race([Jn(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([Jn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),1e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},C1=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=wr()?`?${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=ge(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)},jI=/\\s+/g,A1=(e,t)=>typeof e==\"function\"?e(t,t?.state,t?.context):e,DI=(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+=` ${A1(o,t)}`)}return r},LI=(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=DI(e,t));let o=e.replace(jI,\" \").trim();if(r&&typeof r.setAttribute==\"function\")r.setAttribute(\"class\",o);else if(r)try{r.className=o}catch{}return o},MI=()=>(e,t,r)=>{let n=A1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}E1()(t.classlist,t,t.state,!0)},E1=()=>(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&&LI(i,t,t.node)}},NI=()=>({style:MI(),classlist:E1()}),BI=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],x1=!1,O1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||NI(),s=t.designSystem?ae(ue(t.designSystem),Ti):ue(Ti),i={};for(let p of BI)t[p]!==void 0&&(i[p]=t[p]);let a,l=x1&&!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=P(e)||P(),a&&(a.document=r),a?.CSS_VARS){Ie(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{$e()}}}else if(l){let p=pg(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,Ie(p);try{a=fo(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...tu,...i,...n})}finally{$e()}}else{let p=P();p&&(p.document=r),a=fo(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...tu,...i,...n}),a&&a!==p&&(a.document=r),x1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Ie(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{$e()}}return[a,o]},T1=(e,t)=>{let r={};t.state&&ae(r,t.state),e&&e.state&&ae(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,ue(r)},P1=(e,t)=>{w(e.routes)&&w(t.pages)&&ge(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},R1=e=>{ti(e,e.sharedLibraries)};I();var I1=\"smbls_lang\",VI=\"smbls_t_\",zI=\"smbls_tv_\",ho={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)}}},Fi={};function ji(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||\"en\"}function nu(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var ru=(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},$1=(e,t,r)=>{let n=t.lastIndexOf(\".\");if(n===-1)return e[t+\"_\"+r];let o=ru(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+\"_\"+r]};function ou(e,t){if(!e)return\"\";let r=this?.context,n=r?.polyglot,o=t||this.call(\"getActiveLang\"),s=this?.state;if(s){let c=$1(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=ru(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=ru(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||\"en\";if(s){let c=$1(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=ru(c,e);if(u!==void 0)return u}}return e}async function su(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||VI,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,\"v_\"):zI);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=ho.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(Fi[i])return Fi[i];let a=this;return Fi[i]=(async()=>{try{let l=r.fetch,c=parseInt(ho.get(s+e),10)||0,u,d,f;if(E(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(w(l)){let h=a.getDB||(()=>t.fetch),g=E(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;ho.set(o+e,JSON.stringify(u)),d&&ho.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 Fi[i]}})(),Fi[i]}async function iu(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||I1;ho.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 au(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&&w(o.fetch)){let i=this.getDB||(()=>n.fetch),a=E(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 ay(){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||I1,s=ho.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 lu(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 cu={name:\"polyglot\",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,ay.call(e))}};var Di={polyglot:ou,getLocalStateLang:lu,getActiveLang:ji,getLang:ji,setLang:iu,getLanguages:nu,loadTranslations:su,upsertTranslation:au};on();var uu={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}},fu=e=>parseFloat(e.toFixed(4)),UI=(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:`${fu(e/16)}rem`,lineHeight:`${fu(u)}px`,capHeightTrim:`${fu(-p)}em`,baselineTrim:`${fu(-h)}em`}},WI=(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},HI=(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(uu[i])return uu[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(uu[a])return uu[a]}}return null},F1=(e,t,r,n)=>{if(!e)return;let o=WI(t.fontSize,n);if(!o)return;let s=HI(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=UI(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},j1={name:\"capsize\",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Li={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 Li)bt[Li[e]]=e;var ly=Object.create(null);for(let e in Li){let t=Li[e];if(ly[t])throw new Error(`Duplicate abbreviation \"${t}\" for \"${e}\" \\u2014 already used by \"${ly[t]}\"`);ly[t]=e}var Mr=new Set([\"state\",\"st\",\"scope\",\"scp\",\"attr\",\"at\",\"style\",\"sy\",\"data\",\"dt\",\"context\",\"ctx\",\"query\",\"qy\",\"class\",\"cl\"]);function Mi(e){return/^[A-Z]/.test(e)}function Ni(e){return/^[:@.!$>&]/.test(e)||e.startsWith(\"> \")}function qI(e){return e.trim().split(/\\s+/).filter(Boolean)}function D1(e){return e.replace(/_/g,\" \")}function GI(e){if(!e||typeof e!=\"string\")return{};let t={},r=qI(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(D1);continue}t[a]=D1(i)}return t}function Bi(e){if(!e||typeof e!=\"object\")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r==\"object\"?Bi(r):r});let t={};for(let r in e){let n=e[r];if(Mi(r)){t[r]=cy(n);continue}let o=bt[r]||r;if(Ni(r)&&o===r){t[r]=cy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=cy(n)}return t}function cy(e){return e==null||typeof e==\"function\"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t==\"object\"?Bi(t):t}):typeof e==\"object\"?Bi(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=GI(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(Mi(r)){t[r]=uy(n);continue}let o=bt[r]||r;if(Ni(r)&&o===r){t[r]=uy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=uy(n)}return t}function uy(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 KI(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 XI(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 L1(e){return e.startsWith(\"#\")&&/^#-?\\d+(\\.\\d+)?$/.test(e)?Number(e.slice(1)):KI(e)}function fy(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=XI(i);if(l.length>1){t[a]=l.map(L1);continue}t[a]=L1(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={};if(typeof e.in==\"string\"){let r=fy(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(Mi(r)){typeof n==\"string\"?t[r]=fy(n):t[r]=dy(n);continue}let o=bt[r]||r;if(Ni(r)&&o===r){typeof n==\"string\"?t[r]=fy(n):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}var YI={shorten:Bi,stringify:Vi,stringifyFurther:zi};function ZI(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 JI=[\"components\",\"pages\",\"snippets\"],du={name:\"shorthand\",prepareContext(e){let t=e.shorthand;if(!t)return;let n=YI[t===!0?\"shorten\":t];if(n){for(let o of JI)e[o]&&(e[o]=ZI(e[o],n));e.app&&typeof e.app==\"object\"&&(e.app=n(e.app))}}};var QI=0,eF=()=>`${Date.now().toString(36)}-${(QI++).toString(36)}`,ne=(e,t,r={})=>({id:eF(),ts:Date.now(),type:e,level:t,...r}),tF=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(\" > \")},go=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:tF(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var mo=e=>e?.context?.analyze,rF={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\"}},nF=(e,{category:t,type:r,level:n})=>o=>{let s=mo(o);!s||!s.shouldCapture(t)||s.emit(ne(r,n,{hook:e,element:go(o)}))},M1=e=>(t,r)=>{let n=mo(t);!n||!n.shouldCapture(\"state\")||n.emit(ne(\"state\",\"debug\",{hook:e,element:go(t),changedKeys:r?.changedKeys||null}))},Ui={name:\"analyze\",error(e,t){let r=mo(e);if(!r||r.config.enabled===!1||!r.shouldCapture(\"errors\"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ne(\"error\",\"error\",{hook:t?.hook||\"error\",element:go(e),error:n,message:n?.message||(typeof t?.message==\"string\"?t.message:null)}))},renderRouter(e){let t=mo(e);t&&(!t.shouldCapture(\"navigation\")&&!t.shouldCapture(\"lifecycle\")||t.emit(ne(\"navigation\",\"info\",{hook:\"renderRouter\",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=mo(e);!t||!t.shouldCapture(\"updates\")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(e){let t=mo(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(ne(\"update\",\"debug\",{hook:\"update\",element:go(e),durationMs:r}))},beforeStateUpdate:M1(\"beforeStateUpdate\"),stateUpdate:M1(\"stateUpdate\")};for(let[e,t]of Object.entries(rF))Ui[e]=nF(e,t);I();var pu={error:0,warn:1,info:2,debug:3,trace:4};var py=(e,t)=>{let r=pu[e],n=pu[t];return r==null||n==null?!0:r<=n},hu=e=>pu[e]!=null?e:\"warn\";I();var gu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var oF=(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},sF=(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\"***\"}},hy=(e,t,r,n)=>{if(n>6||e==null||typeof e!=\"object\")return e;if(Array.isArray(e))return e.map(s=>hy(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(oF(s,t)||gu.test(s)){let a=sF(e[s],r);a!==void 0&&(o[s]=a)}else o[s]=hy(e[s],t,r,n+1);return o},gy=(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=hy(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 N1=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=A,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}}}},B1=()=>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},V1=(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}},z1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},U1={redact:e=>gy(e.config.redact||[],e.config.maskStrategy),enrich:e=>N1(e),summarize:()=>B1(),dedupe:e=>V1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>z1(e.config.sample||{})},iF=(e,t)=>{if(typeof e==\"function\")return e;if(typeof e==\"string\"){let r=U1[e];return r?r(t):null}return null},my=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(U1.redact(e));for(let s of r){let i=iF(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();var aF={error:\"\\x1B[31m\",warn:\"\\x1B[33m\",info:\"\\x1B[36m\",debug:\"\\x1B[90m\",trace:\"\\x1B[90m\"},lF=\"\\x1B[0m\",mu=typeof A<\"u\"&&typeof A.document<\"u\",H1=(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(mu)i(a,s);else{let l=aF[s.level]||\"\";i(`${l}${a}${lF}`,s)}}},q1=(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},G1=(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=mu?new A.Blob([l],{type:\"application/json\"}):l;if(mu&&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(()=>{})};mu&&(A.addEventListener(\"pagehide\",i,{passive:!0}),A.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},W1={console:H1,memory:q1,beacon:G1},yy=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=W1[n];if(!o)continue;r.push(n===\"memory\"?o(e,{}):o({}))}else if(n&&typeof n==\"object\"&&n.type){let o=W1[n.type];if(!o)continue;r.push(n.type===\"memory\"?o(e,n):o(n))}return r};I();var cF=typeof A<\"u\"&&typeof A.document<\"u\",uF=new Set([\"password\",\"hidden\"]),K1=(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))))}},by=\"__analyzeKeyPath\",yo=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[by])return t[by];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[by]=i}catch{}return i},fF=(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\"***\"}},dF=e=>!!(!e||e.tagName===\"INPUT\"&&uF.has(e.type)||gu.test(e.name||\"\")||gu.test(e.id||\"\")||e.dataset?.analyze===\"skip\"),xy=e=>{if(!cF)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(A,\"error\",s=>{e.emit(ne(\"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(A,\"unhandledrejection\",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ne(\"error\",\"error\",{hook:\"unhandledrejection\",message:a?.message||(typeof i==\"string\"?i:\"Unhandled promise rejection\"),error:a}))})),t.pointer){o(A,\"click\",i=>{e.emit(ne(\"pointer\",\"info\",{hook:\"click\",target:yo(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:X1(i)}))},{passive:!0,capture:!0}),o(A,\"dblclick\",i=>{e.emit(ne(\"pointer\",\"info\",{hook:\"dblclick\",target:yo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(A,\"contextmenu\",i=>{e.emit(ne(\"pointer\",\"info\",{hook:\"contextmenu\",target:yo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=K1(i=>{e.emit(ne(\"pointer\",\"trace\",{hook:\"pointermove\",x:i.clientX,y:i.clientY}))},r.pointermove);o(A,\"pointermove\",s,{passive:!0})}if(t.keyboard&&o(A,\"keydown\",s=>{e.emit(ne(\"keyboard\",\"info\",{hook:\"keydown\",code:s.code,key:s.key&&s.key.length===1?\"\\xB7\":s.key,modifiers:X1(s),target:yo(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 c=dF(a),u=a.dataset?.analyze===\"track\",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=fF(a.value,e.config.maskStrategy)),e.emit(ne(\"forms\",\"info\",{hook:i.type,target:yo(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(A,\"input\",s,{passive:!0,capture:!0}),o(A,\"change\",s,{passive:!0,capture:!0}),o(A,\"submit\",i=>{e.emit(ne(\"forms\",\"info\",{hook:\"submit\",target:yo(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=K1(()=>{e.emit(ne(\"scroll\",\"trace\",{hook:\"scroll\",x:A.scrollX,y:A.scrollY}))},r.scroll);o(A,\"scroll\",s,{passive:!0,capture:!0})}if(t.viewport){let s=hs(()=>{e.emit(ne(\"viewport\",\"info\",{hook:\"resize\",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))},r.resize);o(A,\"resize\",s,{passive:!0}),o(A,\"orientationchange\",()=>{e.emit(ne(\"viewport\",\"info\",{hook:\"orientationchange\",orientation:typeof screen<\"u\"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(A.document,\"visibilitychange\",()=>{e.emit(ne(\"viewport\",\"info\",{hook:\"visibilitychange\",hidden:A.document.hidden}))},{passive:!0}),e.emit(ne(\"viewport\",\"info\",{hook:\"initial\",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))}if(t.console)for(let s of[\"log\",\"warn\",\"error\",\"debug\"]){let i=console[s];console[s]=function(...a){try{e.emit(ne(\"console\",s===\"error\"?\"error\":s===\"warn\"?\"warn\":\"debug\",{hook:`console.${s}`,args:a.map(pF)}))}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(ne(\"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{}},X1=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),pF=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 hF=typeof A<\"u\"&&typeof A.document<\"u\";var vy=e=>{if(hF&&e.config.capture.network){if(typeof A.fetch==\"function\"){let t=A.fetch.bind(A),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(ne(\"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(ne(\"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(ne(\"network\",\"error\",{hook:\"fetch.error\",source:\"window.fetch\",url:s,method:i,error:l,durationMs:c})),l})};A.fetch=r,e.__teardown.push(()=>{A.fetch=t})}if(typeof A.XMLHttpRequest==\"function\"){let t=A.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(ne(\"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(ne(\"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(ne(\"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 gF={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},mF={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},yF={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},bF=e=>{let t={...gF,...e};return t.replay&&Object.assign(t,mF),t.telemetry&&Object.assign(t,yF),t},xF=64,vF=()=>{if(typeof A>\"u\"||!A.location)return null;try{let t=new URLSearchParams(A.location.search).get(\"analyze\");return t||null}catch{return null}},_y=(e={})=>{let t=e===!0?{}:{...e};t.capture=bF(t.capture||{});let r=vF();(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=hu(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=my(n),n.__sinks=yy(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&&py(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(),Y1(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)Y1(n,a)}try{xy(n)}catch(a){console.error(\"[analyze] browser attach error:\",a)}try{vy(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=hu(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},Y1=(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 Wi=Object.create(null);Object.keys(Ft).forEach(e=>{Wi[Ft[e]]=e});var Hi={type:\"error\",data:\"parser error\"};var Q1=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",eC=typeof ArrayBuffer==\"function\",tC=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,qi=({type:e,data:t},r,n)=>Q1&&t instanceof Blob?r?n(t):Z1(t,n):eC&&(t instanceof ArrayBuffer||tC(t))?r?n(t):Z1(new Blob([t]),n):n(Ft[e]+(t||\"\")),Z1=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];t(\"b\"+(n||\"\"))},r.readAsDataURL(e)};function J1(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var wy;function rC(e,t){if(Q1&&e.data instanceof Blob)return e.data.arrayBuffer().then(J1).then(t);if(eC&&(e.data instanceof ArrayBuffer||tC(e.data)))return t(J1(e.data));qi(e,!1,r=>{wy||(wy=new TextEncoder),t(wy.encode(r))})}var nC=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",Gi=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let e=0;e<nC.length;e++)Gi[nC.charCodeAt(e)]=e;var oC=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 _F=typeof ArrayBuffer==\"function\",Ki=(e,t)=>{if(typeof e!=\"string\")return{type:\"message\",data:sC(e,t)};let r=e.charAt(0);return r===\"b\"?{type:\"message\",data:wF(e.substring(1),t)}:Wi[r]?e.length>1?{type:Wi[r],data:e.substring(1)}:{type:Wi[r]}:Hi},wF=(e,t)=>{if(_F){let r=oC(e);return sC(r,t)}else return{base64:!0,data:e}},sC=(e,t)=>t===\"blob\"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var iC=\"\u001e\",aC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{qi(s,!1,a=>{n[i]=a,++o===r&&t(n.join(iC))})})},lC=(e,t)=>{let r=e.split(iC),n=[];for(let o=0;o<r.length;o++){let s=Ki(r[o],t);if(n.push(s),s.type===\"error\")break}return n};function cC(){return new TransformStream({transform(e,t){rC(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 Sy;function yu(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 uC(e,t){Sy||(Sy=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(yu(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(yu(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(yu(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(Hi);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(yu(r)<o)break;let l=bu(r,o);a.enqueue(Ki(s?l:Sy.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Hi);break}}}})}var ky=4;function fe(e){if(e)return SF(e)}function SF(e){for(var t in fe.prototype)e[t]=fe.prototype[t];return e}fe.prototype.on=fe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+e]=this._callbacks[\"$\"+e]||[]).push(t),this};fe.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};fe.prototype.off=fe.prototype.removeListener=fe.prototype.removeAllListeners=fe.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};fe.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};fe.prototype.emitReserved=fe.prototype.emit;fe.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+e]||[]};fe.prototype.hasListeners=function(e){return!!this.listeners(e).length};var cr=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\")(),fC=\"arraybuffer\";function xu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var kF=Ve.setTimeout,CF=Ve.clearTimeout;function ur(e,t){t.useNativeTimers?(e.setTimeoutFn=kF.bind(Ve),e.clearTimeoutFn=CF.bind(Ve)):(e.setTimeoutFn=Ve.setTimeout.bind(Ve),e.clearTimeoutFn=Ve.clearTimeout.bind(Ve))}var AF=1.33;function dC(e){return typeof e==\"string\"?EF(e):Math.ceil((e.byteLength||e.size)*AF)}function EF(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 vu(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function pC(e){let t=\"\";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+=\"&\"),t+=encodeURIComponent(r)+\"=\"+encodeURIComponent(e[r]));return t}function hC(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 _u=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type=\"TransportError\"}},fr=class extends fe{constructor(t){super(),this.writable=!1,ur(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 _u(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=Ki(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=pC(t);return r.length?\"?\"+r:\"\"}};var Xi=class extends fr{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)};lC(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,aC(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]=vu()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var gC=!1;try{gC=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var mC=gC;function OF(){}var Cy=class extends Xi{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 fe{constructor(t,r,n){super(),this.createRequest=t,ur(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=xu(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=OF,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\",yC);else if(typeof addEventListener==\"function\"){let e=\"onpagehide\"in Ve?\"pagehide\":\"unload\";addEventListener(e,yC,!1)}}function yC(){for(let e in Nr.requests)Nr.requests.hasOwnProperty(e)&&Nr.requests[e].abort()}var TF=(function(){let e=bC({xdomain:!1});return e&&e.responseType!==null})(),Br=class extends Cy{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=TF&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Nr(bC,this.uri(),t)}};function bC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!t||mC))return new XMLHttpRequest}catch{}if(!t)try{return new Ve[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var xC=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",Ey=class extends fr{get name(){return\"websocket\"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=xC?{}:xu(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;qi(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&cr(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){typeof this.ws<\"u\"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?\"wss\":\"ws\",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=vu()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Ay=Ve.WebSocket||Ve.MozWebSocket,Vr=class extends Ey{createSocket(t,r,n){return xC?new Ay(t,r,n):r?new Ay(t,r):new Ay(t)}doWrite(t,r){this.ws.send(r)}};var bo=class extends fr{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=uC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=cC();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&&cr(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Oy={websocket:Vr,webtransport:bo,polling:Br};var PF=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,RF=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function xo(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=PF.exec(e||\"\"),s={},i=14;for(;i--;)s[RF[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=$F(s,s.path),s.queryKey=IF(s,s.query),s}function $F(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 IF(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ty=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",wu=[];Ty&&addEventListener(\"offline\",()=>{wu.forEach(e=>e())},!1);var _n=class e extends fe{constructor(t,r){if(super(),this.binaryType=fC,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=xo(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=xo(r.host).host);ur(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=hC(this.opts.query)),Ty&&(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\"})},wu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=ky,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+=dC(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,cr(()=>{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(),Ty&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=wu.indexOf(this._offlineEventListener);n!==-1&&wu.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};_n.protocol=ky;var Su=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}},vo=class extends Su{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=>Oy[o]).filter(o=>!!o)),super(t,n)}};var b9=vo.protocol;function vC(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=xo(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 Dy={};G(Dy,{Decoder:()=>Fy,Encoder:()=>Iy,PacketType:()=>Z,isPacketValid:()=>ej,protocol:()=>RC});var jF=typeof ArrayBuffer==\"function\",DF=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,_C=Object.prototype.toString,LF=typeof Blob==\"function\"||typeof Blob<\"u\"&&_C.call(Blob)===\"[object BlobConstructor]\",MF=typeof File==\"function\"||typeof File<\"u\"&&_C.call(File)===\"[object FileConstructor]\";function Zi(e){return jF&&(e instanceof ArrayBuffer||DF(e))||LF&&e instanceof Blob||MF&&e instanceof File}function Yi(e,t){if(!e||typeof e!=\"object\")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Yi(e[r]))return!0;return!1}if(Zi(e))return!0;if(e.toJSON&&typeof e.toJSON==\"function\"&&arguments.length===1)return Yi(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Yi(e[r]))return!0;return!1}function wC(e){let t=[],r=e.data,n=e;return n.data=Py(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Py(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]=Py(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]=Py(e[n],t));return r}return e}function SC(e,t){return e.data=Ry(e.data,t),delete e.attachments,e}function Ry(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]=Ry(e[r],t);else if(typeof e==\"object\")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ry(e[r],t));return e}var TC=xv(OC(),1),$y=(0,TC.default)(\"socket.io-parser\"),PC=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],RC=5,Z;(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\"})(Z||(Z={}));var Iy=class{constructor(t){this.replacer=t}encode(t){return $y(\"encoding packet %j\",t),(t.type===Z.EVENT||t.type===Z.ACK)&&Yi(t)?this.encodeAsBinary({type:t.type===Z.EVENT?Z.BINARY_EVENT:Z.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=\"\"+t.type;return(t.type===Z.BINARY_EVENT||t.type===Z.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)),$y(\"encoded %j as %s\",t,r),r}encodeAsBinary(t){let r=wC(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Fy=class e extends fe{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===Z.BINARY_EVENT;n||r.type===Z.BINARY_ACK?(r.type=n?Z.EVENT:Z.ACK,this.reconstructor=new jy(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(Z[n.type]===void 0)throw new Error(\"unknown packet type \"+n.type);if(n.type===Z.BINARY_EVENT||n.type===Z.BINARY_ACK){let s=r+1;for(;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(!$C(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 $y(\"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 Z.CONNECT:return Au(r);case Z.DISCONNECT:return r===void 0;case Z.CONNECT_ERROR:return typeof r==\"string\"||Au(r);case Z.EVENT:case Z.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&PC.indexOf(r[0])===-1);case Z.ACK:case Z.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},jy=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=SC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function ZF(e){return typeof e==\"string\"}var $C=Number.isInteger||function(e){return typeof e==\"number\"&&isFinite(e)&&Math.floor(e)===e};function JF(e){return e===void 0||$C(e)}function Au(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function QF(e,t){switch(e){case Z.CONNECT:return t===void 0||Au(t);case Z.DISCONNECT:return t===void 0;case Z.EVENT:return Array.isArray(t)&&(typeof t[0]==\"number\"||typeof t[0]==\"string\"&&PC.indexOf(t[0])===-1);case Z.ACK:return Array.isArray(t);case Z.CONNECT_ERROR:return typeof t==\"string\"||Au(t);default:return!1}}function ej(e){return ZF(e.nsp)&&JF(e.id)&&QF(e.type,e.data)}function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var tj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),ko=class extends fe{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(tj.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:Z.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:Z.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 Z.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 Z.EVENT:case Z.BINARY_EVENT:this.onevent(t);break;case Z.ACK:case Z.BINARY_ACK:this.onack(t);break;case Z.DISCONNECT:this.ondisconnect();break;case Z.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:Z.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:Z.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 Sn(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}Sn.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};Sn.prototype.reset=function(){this.attempts=0};Sn.prototype.setMin=function(e){this.ms=e};Sn.prototype.setMax=function(e){this.max=e};Sn.prototype.setJitter=function(e){this.jitter=e};var Co=class extends fe{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,ur(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 Sn({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||Dy;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 vo(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){cr(()=>{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 ko(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 Ji={};function Ao(e,t){typeof e==\"object\"&&(t=e,e=void 0),t=t||{};let r=vC(e,t.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=Ji[o]&&s in Ji[o].nsps,a=t.forceNew||t[\"force new connection\"]||t.multiplex===!1||i,l;return a?l=new Co(n,t):(Ji[o]||(Ji[o]=new Co(n,t)),l=Ji[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Ao,{Manager:Co,Socket:ko,io:Ao,connect:Ao});I();var rj=new Set([\"__proto__\",\"constructor\",\"prototype\"]),IC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(rj.has(e[t]))return!1;return!0},nj=(e,t)=>{!e||!IC(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},oj=(e,t,r,n=!1)=>{!e||!IC(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)},FC=(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\":nj(e,o);break;case\"update\":case\"set\":oj(e,o,s,!0);break;default:break}return r};var sj=Object.create,Ab=Object.defineProperty,ij=Object.getOwnPropertyDescriptor,aj=Object.getOwnPropertyNames,lj=Object.getPrototypeOf,cj=Object.prototype.hasOwnProperty,K=(e,t)=>()=>(e&&(t=e(e=0)),t),Eb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X=(e,t)=>{for(var r in t)Ab(e,r,{get:t[r],enumerable:!0})},uj=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of aj(t))!cj.call(e,o)&&o!==r&&Ab(e,o,{get:()=>t[o],enumerable:!(n=ij(t,o))||n.enumerable});return e},fj=(e,t,r)=>(r=e!=null?sj(lj(e)):{},uj(t||!e||!e.__esModule?Ab(r,\"default\",{value:e,enumerable:!0}):r,e)),Ob,Tb,se,me,Wf=K(()=>{\"use strict\";Ob=globalThis,Tb=globalThis,se=globalThis,me=se.document}),Ua,Hf,st,qf=K(()=>{\"use strict\";Wf(),Ua=e=>(typeof Node==\"object\"?e instanceof se.Node:e&&typeof e==\"object\"&&typeof e.nodeType==\"number\"&&typeof e.nodeName==\"string\")||!1,Hf=e=>(typeof HTMLElement==\"object\"?e instanceof se.HTMLElement:e&&typeof e==\"object\"&&e!==null&&e.nodeType===1&&typeof e.nodeName==\"string\")||!1,st=e=>typeof se<\"u\"&&(se.Node&&e instanceof se.Node||se.Window&&e instanceof se.Window||e===se||e===document)}),j,R,Pn,F,Xu,Yu,W,Zu,oe,Vo,Bt,ua,Yt,Pb,Fe=K(()=>{\"use strict\";qf(),j=e=>e===null?!1:typeof e==\"object\"&&e.constructor===Object,R=e=>typeof e==\"string\",Pn=e=>typeof e==\"number\",F=e=>typeof e==\"function\",Xu=e=>e===!0||e===!1,Yu=e=>e===null,W=e=>Array.isArray(e),Zu=e=>e instanceof Date,oe=e=>e===null?!1:typeof e==\"object\",Vo=e=>e!==void 0,Bt=e=>e===void 0,ua={boolean:Xu,array:W,object:j,string:R,date:Zu,number:Pn,null:Yu,function:F,objectLike:oe,node:Ua,htmlElement:Hf,defined:Vo},Yt=e=>(...t)=>t.some(r=>ua[r](e)),Pb=e=>(...t)=>!t.some(r=>ua[r](e))}),Rb,$b,Ib,Fb,Ia,Gf,jb,Db,Kf,Lb,Mb,Nb,Bb,Vb,zb,Ub,Fa,Xf,Wa=K(()=>{\"use strict\";Gr(),Fe(),Rb=(e,t)=>t.every(r=>e.includes(r)),$b=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Ib=(e,t)=>{if(R(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},Fb=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Ia=(...e)=>[].concat(...e),Gf=(e,t=[])=>e.reduce((r,n)=>Qt(r,et(n,{exclude:t}),t),{}),jb=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Db=(e,t)=>{if(!W(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Kf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Lb=(e,t)=>e.filter(r=>r!==t),Mb=(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},Nb=(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},Bb=(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},Vb=(e,t)=>e.filter(r=>!t.includes(r)),zb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Ub=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Fa=e=>W(e)?[...new Set(e)]:e,Xf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function MA(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!e.includes(o))return e;let s=NA[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=Io(h,f);return String(g??\"\")}else{let p=Io(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=Io(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 _=Io(v,f);if(_!=null&&typeof _!=\"object\")return String(_)}}}let y=Io(h.translations,f);if(y!=null&&typeof y!=\"object\")return String(y)}return\"\"}})}var Yf,Wb,NA,Io,Ha,Hb,jC,qb,Gb,Kb,DC,Xb,Yb,Zf=K(()=>{\"use strict\";Yf=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Wb=(e,t)=>{let r=new RegExp(`[${t.join(\"\\\\\")}]`,\"g\");return e.replace(r,\"\")},NA={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},Io=(e,t)=>t.split(\".\").reduce((r,n)=>r?.[n],e),Ha=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Hb=(e,t)=>{let r=e.split(`\n`),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}},jC=/\\\\([0-7]{1,3})/g,qb=e=>e.replace(jC,(t,r)=>String.fromCharCode(parseInt(r,8))),Gb=e=>e.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),Kb=e=>e.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),DC=/[^a-zA-Z0-9\\s]/g,Xb=e=>e.replace(DC,t=>\"%\"+t.charCodeAt(0).toString(16).toUpperCase()),Yb=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),Ho,Jf,Zb,En,On,ja,Qf,Jb,qa=K(()=>{\"use strict\";Ho=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\"]),Jf=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),Zb=[\"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\"]),On=new Set([\"update\",\"__element\"]),ja=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\"]),Qf=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...ja,...En,...On]),Jb=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])}),Ly,zr,Ne,Qb,it,Qt,My,ex,et,fa,LC,da,MC,NC,jo,BC,pa,VC,tx,rx,nx,Ju,ox,sx,ed,td,Rn,Qu,zC,ix,ax,ef,lx,cx,ux,fx,dx,px,hx,Gr=K(()=>{\"use strict\";Wf(),Fe(),Wa(),Zf(),qf(),qa(),Ly=\"production\",zr=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,Ne=(e,t,r,n)=>{if(F(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&&(W(e)||j(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},Qb=(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)&&(zr(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},Qt=(e,t,r=Qf)=>My(e,t,r,null),My=(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)||zr(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(oe(i)&&oe(a)){let l=n||[];l.push(e,t),My(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},ex=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(zr(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||se||globalThis;if(!oe(e)||st(e))return e;if(i.has(e))return i.get(e);let c=W(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)||zr(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\"&&W(f)){c[d]=Gf(f,r);continue}if(F(f)){c[d]=f;continue}oe(f)?c[d]=et(f,{...t,visited:i}):c[d]=f}}return c},fa=(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(F(n))t[r]=n.toString();else if(j(n))t[r]={},fa(n,t[r]);else if(W(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];j(i)?(o[s]={},fa(i,o[s])):F(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},LC=new Set([\"&\",\"*\",\"-\",\":\",\"%\",\"{\",\"}\",\">\",\"<\",\"@\",\".\",\"/\",\"!\",\" \"]),da=(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=`{\n`;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(LC.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,W(i)){o+=`[\n`;for(let c of i)oe(c)&&c!==null?o+=`${n} ${da(c,t+2)},\n`:R(c)?o+=`${n} '${c}',\n`:o+=`${n} ${c},\n`;o+=`${n} ]`}else oe(i)?o+=da(i,t+1):R(i)?o+=Yf(i,[`\n`,\"'\"])?`\\`${i}\\``:`'${i}'`:o+=i;o+=`,\n`}return o+=`${n}}`,o},MC=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/],NC=/^[\"[{]/,jo=e=>{if(!e)return!1;let t=e.trim().replace(/\\n\\s*/g,\" \").trim();if(t===\"\"||t===\"{}\"||t===\"[]\"||!MC.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes(\"=>\");return!(r===123&&!n||r===91||NC.test(t)&&!n)},BC=e=>(0,eval)(e),pa=(e,t={},r={window:{eval:BC}})=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(R(o))if(jo(o))try{t[n]=r.window.eval(`(${o})`)}catch(s){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: '+(s&&s.message?s.message:String(s))+`.\nFirst 200 chars of source: `+String(o).slice(0,200)),t[n]=o}else t[n]=o;else if(W(o)){let s=t[n]=[];for(let i=0;i<o.length;i++){let a=o[i];if(R(a))if(jo(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)}.\nFirst 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else j(a)?s.push(pa(a)):s.push(a)}}else j(o)?t[n]=pa(o,t[n]):t[n]=o}return t},VC=e=>!e||typeof e!=\"object\"?e:e.__type===\"Set\"&&Array.isArray(e.values)?new Set(e.values):e.__type===\"Map\"&&Array.isArray(e.entries)?new Map(e.entries):e,tx=e=>{if(!e||typeof e!=\"object\")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];R(o)&&jo(o)?r.push([n,o]):t[n]=VC(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`\n`);t[n]=se.eval(`(function(__gs__) { ${s}\n return (${o}); })`)(t)}catch{try{t[n]=se.eval(`(${o})`)}catch{t[n]=o}}return t},rx=(e,t={verbose:!0})=>{try{return e?se.eval(\"(\"+e+\")\"):{}}catch(r){t.verbose&&console.warn(r)}},nx=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Ju=e=>{for(let t in e)return!1;return!0},ox=e=>j(e)&&Ju(e),sx=()=>Object.create(null),ed=(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},td=(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},Rn=(e,t,r={},n=new WeakMap)=>{if(!oe(e)||!oe(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:oe(l)&&oe(c)?e[a]=Rn(l,c,r,n):c!==void 0&&(e[a]=c)}return e},Qu=(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)||!Qu(e[i],t[i],r))return!1}return!0},zC=new Set([\"node\",\"__ref\"]),ix=(e,t,r=zC)=>{if(e===t)return!0;if(!oe(e)||!oe(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(oe(c)&&oe(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},ax=(e,t)=>{if(t==null)return e;if(Yt(t)(\"string\",\"number\"))delete e[t];else if(W(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error(\"Invalid input: props must be a string or an array of strings\");return e},ef=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]=ef(e[r]));return t},lx=(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},cx=(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]},ux=(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},fx=(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},dx=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(Ly===\"test\"||Ly===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",t),!0},px=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)},hx=(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}}),ha,rd,nd,gx=K(()=>{\"use strict\";Gr(),ha=(function(){let e=0;function t(){return e++,e}return t})(),rd=ha,nd=(e,t,r)=>(Ne(r,e)||r||e.key||ha()).toString()}),Lt,mx,zo,tf,yx,bx,xx,od,vx,Ga,BA=K(()=>{\"use strict\";Lt=\"production\",mx=Lt,zo=(e=Lt)=>e===\"production\",tf=(e=Lt)=>e===\"testing\"||e===\"test\",yx=tf,bx=(e=Lt)=>e===\"staging\",xx=(e=Lt)=>e===\"local\",od=(e=Lt)=>e===\"development\"||e===\"dev\"||e===\"local\",vx=(e,t=Lt)=>t[e],Ga=(e=Lt)=>!zo(e)});function VA(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 zA(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 _x,wx,UC,Sx,Ka,Da,La,Xa=K(()=>{\"use strict\";_x=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},wx=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}}},UC=/^((function\\s*\\([^)]*\\)\\s*\\{[^}]*\\})|(\\([^)]*\\)\\s*=>))/,Sx=e=>UC.test(e),Ka=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Da=(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},La=(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}}),kx,dj=K(()=>{\"use strict\";Fe(),Gr(),kx=(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}}),Cx,Ax,pj=K(()=>{\"use strict\";Cx=(e,...t)=>{e&&t.map(r=>console.log(r))},Ax=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function UA(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 WA(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 Ex,Ox,Tx,Px,hj=K(()=>{\"use strict\";Fe(),Wf(),Ex=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),Ox=(e,t,r=365)=>{if(Bt(me)||Bt(me.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;me.cookie=`${e}=${t};${o};path=/`},Tx=e=>{if(Bt(me)||Bt(me.cookie))return;let t=`${e}=`,r=decodeURIComponent(me.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\"\"},Px=e=>{Bt(me)||Bt(me.cookie)||(me.cookie=e+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}}),Ma,Rx,$x,HA=K(()=>{\"use strict\";Ma={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\"])},Rx=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\"]),$x=e=>Ma.body.has(e)}),Eu,Ny,Na,sd,Qe,Ix,rf,ga,Fx,ma,nf,of,ya,sf,Do,WC,Xt,By,ba,xa,jx,va,Dx,Lx,af,lf,cf,uf,ff,df,Mx,Nx=K(()=>{\"use strict\";Wa(),XA(),Gr(),Fe(),Eu=\"production\",Ny=e=>e.sourcemap!==!1&&Eu!==\"production\",Na=e=>{if(e.includes(\"+\"))return e.split(\"+\").filter(An);if(e.includes(\"_\")){let[t]=e.split(\"_\");return[t]}if(e.includes(\".\")&&!An(e.split(\".\")[1])){let[t]=e.split(\".\");return[t]}return[e]},sd=(e,t,r)=>{let n=[],o=Na(r);o&&(n=[...o]);let s=e.extends;return s&&(n=W(s)?[...n,...s]:[...n,s]),n},Qe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e==\"string\"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Ix=(e,t)=>{if(!e)return t;let{extends:r}=t,n=W(r)?r:[r],o=W(e)?e:[e];return{...t,extends:Ia(o,n)}},rf=()=>Math.random().toString(36).substring(2),ga={},Fx={},ma=e=>ga[e.__hash],nf=(e,t)=>{let r=rf();return R(e)||(e.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(ga[r]=t),t},of=(e,t)=>e.__hash?t.concat(ma(e)):nf(e,t),ya=(e,t,r,n=new Set,o,s)=>{for(let i of e)W(i)?ya(i,t,r,n,o,s):Do(i,t,r,n,o,void 0,s);return t},sf=(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&&Do(a,t,r,n,o,s,i),t},Do=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(W(e))return ya(e,t,r,n,o,i);let a=s;return R(e)?(a=e,e=xa(e,r)):i&&j(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?sf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},WC=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"childExtends\",\"childExtendsRecursive\"]),Xt=(e,t,r,n,o)=>{t=et(t);for(let s in t){if(WC.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)&&!W(a)?(r[s]=r[s]||{},By(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];An(s)?e[s]=Xt(i,a,l,n,c):Xt(i,a,l,n,c)}if(s===\"extends\"||s===\"childExtends\"||s===\"childExtendsRecursive\"){if(W(i)&&W(a))e[s]=i.concat(a);else if(W(i)&&j(a)){let l=Xt({},i);e[s]=Xt(l,a)}}}}return e},By=(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)&&!W(s)?(e[o]=e[o]||{},By(e[o],s,r,n)):e[o]=r}}},ba=(e,t,r)=>e.reduce((n,o,s)=>{let i=et(o),a=r?r[s]:void 0;return Xt(n,i,t,a)},{}),xa=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(R(e)){let i=o&&(o[e+\".\"+n]||o[e]||o[\"smbls.\"+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Eu===\"test\"||Eu===\"development\")&&console.warn(\"Extend is string but component was not found:\",e);return}return e},jx=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),va=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ma(e)||[];let o=Do(e,[],t,new Set,r,void 0,n);return r?o:of(e,o)},Dx=(e,t)=>{if(!e)return t;let r=W(e)?e:[e];return Ia(r,t)},Lx=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(An(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},af=(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 lf(e,t,r),cf(e,t,r),uf(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),Fa(n.__extends)},lf=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},cf=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},uf=(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},ff=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Ny(r),a=i?[...n.__extends]:null,l=Fa(n.__extends.map((c,u)=>xa(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)&&R(h)&&c.set(p,h)}let u=[],d=va(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=va(l,o);n.__extendsStack=c}return n.__extendsStack},df=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Ny(r)){let s={},i=n.__extendsNames||[],a=ba(o,s,i),l={};Xt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ba(o);Xt(e,s)}return e},Mx=(e,t,r={})=>(af(e,t,r),ff(e,t,r),df(e,t,r),e)});function qA(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function GA(e){return Object.keys(e).filter(t=>/^\\d+$/.test(t))}function KA(e,t,r){let{context:n}=t||{},[o]=Na(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var An,XA=K(()=>{\"use strict\";Nx(),Fe(),An=e=>{if(!R(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function gj(e,t){let{props:r,on:n}=t,o=Ha(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 mj=K(()=>{\"use strict\";Zf(),Fe()});function Bx(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&&Ka(this.context))){let f=Ha(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(Hx.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=hf.test(n)||Wx.test(n)||ZA(o),d=Ho.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Vx(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&&Ka(this.context);if(s&&i){gj(n,e),delete e.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(Hx.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=j(l)||F(l),d=j(c)||F(c),f=hf.test(n)||Wx.test(n),p=Ho.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function zx(e=this){let t=[];return Bx.call(this,e,{cachedKeys:t}),Vx.call(this,e,{cachedKeys:t}),e}function YA(e={}){return e.on||(e.on={}),e.props||(e.props={}),zx.call(this,e)}function Ux(e,t){this.__element.update({props:e},t)}function pf(e){let t={update:Ux.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var hf,Wx,Hx,HC,ZA,id,_a,qx,wa,Sa,ka,gf,Ca,Gx,Kx,JA=K(()=>{\"use strict\";qa(),mj(),Gr(),Fe(),Zf(),Xa(),hf=/^[A-Z]/,Wx=/^\\d+$/,Hx=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),HC=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),ZA=e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))return!1;for(let t in e)if(HC.has(t)||hf.test(t))return!0;return!1},id=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return oe(n)?{...n}:(o.__propsStack.push(n),{})},_a=e=>Yt(e)(\"string\",\"number\")?{inheritedString:e}:e,qx=(e,t)=>!e||!t.length?!1:t.includes(e),wa=(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},Sa=e=>{let t=new Set;return e.filter(r=>!r||On.has(r)||t.has(r)?!1:(t.add(r),!0))},ka=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(On.has(o))return n;for(;F(o);)o=Ne(o,t);return Qt(n,et(o,{exclude:On}))},{}),pf(t),t.props),gf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...wa(e,t)]),j(r)?o.push(r):r===\"inherit\"&&t?.props?o.push(t.props):r&&o.push(r),W(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Sa(o),n.__propsStack},Ca=(e,t)=>{let{__ref:r}=e,n=gf(e,t);n.length?ka(n,e):(r.__propsStack=[],e.props={})},Gx=function(e,t,r){let{__ref:n}=e;if(n.__if)Ca(e,t);else try{Ca(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),e.props={},n.__propsStack=[]}return pf(e),e},Kx=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=wa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=Sa(o),n.__propsStack.length&&ka(n.__propsStack,t),t}}),Vy,mf,yf,bf,xf,Xx,vf,_f,wf,Yx,yj=K(()=>{\"use strict\";Nx(),gx(),qf(),JA(),HA(),Fe(),Vy=\"production\",mf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Ma.body.has(r)&&r;return{text:e,tag:n||o||s||\"string\"}},yf=(e,t,r)=>{if(e===void 0)return(Vy===\"test\"||Vy===\"development\")&&console.warn(r,\"element is undefined in\",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Yt(e)(\"string\",\"number\")?mf(e,t,r):F(e)?{props:e}:e},bf=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},xf=(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},Xx=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===\":root\";r?.root||(r.root=o?e:n?.root)},vf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},_f=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),wf=(e,t,r)=>{let n=bf(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=sd(e,t,r),n.path=vf(e,t,r),n},Yx=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:yf(e,t,r);if(!s)return;let i=xf(s,t,r,n,o),a=nd(s,i,r);wf(s,i,a);let l=id(s,i,a),c=_f(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),Zx,Sf,kf,Cf,Af,Jx,Ef,Qx,e0,t0,r0,bj=K(()=>{\"use strict\";Wa(),qa(),Gr(),Fe(),Zx=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Yt(o)(\"string\",\"number\")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Sf=(e,t)=>{if(e.includes(\"~/\")&&e.split(\"~/\").length>1)return t.root},kf=(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},Cf=(e,t,r={})=>{let n=R(e)?e.split(\"/\"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i===\"__proto__\"||a===\"__proto__\")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Af=(e,t,r={})=>{let n=e.__ref.__state;if(!Ef(e))return;let o=Sf(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll(\"~/\",\"\");else{let i=kf(n,t.state);i&&(s=i,n=n.replaceAll(\"../\",\"\"))}if(s)return Cf(n,s,r)},Jx=(e,t)=>{let r=e.__ref,n=Af(e,t);if(n===void 0)return e.state;if(Yt(n)(\"object\",\"array\"))return et(n);if(Yt(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},Ef=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Yt(r)(\"number\",\"string\",\"boolean\"))},Qx=function(e){return oe(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},e0=(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},t0=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=et(n,En),s={[e.key]:o},i=j(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Xf(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},r0=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){Qt(e,t,En);return}(o?td:Rn)(e,t,En)}}),n0,xj=K(()=>{\"use strict\";n0=(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)}}}),zy,Of,Uo,Tf,o0,QA=K(()=>{\"use strict\";Fe(),Xa(),zy=(e,t)=>{let r=\"on\"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Of=(e,t,r,n,o)=>{if(e=Da(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\");La(e,t,r);let n=zy(e,t);if(n){let{state:o,context:s}=t;return Of(n,t,o,s,r)}},Tf=(e,t,r,n,o,s)=>{if(e=Da(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}},o0=(e,t,r,n)=>{La(e,r,t,n);let o=zy(e,r);if(o){let{state:s,context:i}=r;return Tf(o,t,r,s,i,n)}}}),s0,ad,eE=K(()=>{\"use strict\";s0={},ad={}}),tE={};X(tE,{setup:()=>rE,supabaseAdapter:()=>lb});var Uy,qC,rE,Ou,GC,lb,vj=K(()=>{\"use strict\";Uy=new Map,qC=(e,t,r)=>`${e}|${t}|${r?\"off\":\"on\"}`,rE=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=qC(l,t,o===!1),u=Uy.get(c);return u||(u=await n(l,t,a),u?.auth&&Uy.set(c,u)),!u||!u.auth?null:lb(u)},Ou=(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},GC=(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},lb=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=Ou(a,o),a=GC(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=Ou(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=Ou(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||\"*\",i=e.channel(`db-${t}-${Date.now()}`).on(\"postgres_changes\",{event:s,schema:\"public\",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),nE={};X(nE,{restAdapter:()=>cb,setup:()=>oE});var KC,dr,oE,cb,_j=K(()=>{\"use strict\";KC=(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()},dr=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}},oE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error(\"@symbo.ls/fetch rest: url is required\");return cb(e,t,r,n)},cb=(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 dr(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 dr(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 dr(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\"}`)),dr(KC(y||e,c||\"\",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>dr(l(`rpc/${c}`,f),a({method:\"POST\",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>dr(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 dr(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 dr(l(h,f),a({method:\"DELETE\",headers:s(d)}))}}}}),sE={};X(sE,{localAdapter:()=>ub,setup:()=>iE});var Tu,XC,iE,ub,wj=K(()=>{\"use strict\";Tu=(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},XC=(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}},iE=async({data:e,...t})=>ub(e,t),ub=(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=>Tu(h,d));return XC(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(Tu(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--)Tu(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)}}}}}),sa={};X(sa,{createAdapter:()=>lE,default:()=>fE,executeFetch:()=>Nu,fetchPlugin:()=>uE,initAdapterAuth:()=>ia,parseDuration:()=>Fo,queryClient:()=>cE,registerAdapter:()=>aE,resolveDb:()=>fb});var YC,Qi,Wy,aE,lE,fb,Fo,Me,Hy,Eo,ZC,Oo,To,Po,ea,Pu,ta,JC,qy,Ru,Gy,Ky,kn,Xy,QC,Yy,eA,ra,Zy,ia,$u,nt,xt,Ro,Ur,jt,pr,tA,rA,nA,Iu,oA,Nu,cE,uE,fE,Lo=K(()=>{\"use strict\";M(),YC=[\"select\",\"rpc\",\"insert\",\"update\",\"delete\",\"subscribe\"],Qi=Symbol.for(\"@symbo.ls/fetch:BUILTIN_ADAPTERS\"),Wy=(()=>{if(typeof globalThis<\"u\"&&globalThis[Qi])return globalThis[Qi];let e={supabase:()=>Promise.resolve().then(()=>(vj(),tE)),rest:()=>Promise.resolve().then(()=>(_j(),nE)),local:()=>Promise.resolve().then(()=>(wj(),sE))};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Qi,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Qi]}catch{}return e})(),aE=(e,t)=>{Wy[e]=t},lE=e=>{let t={};for(let r of YC)e[r]&&(t[r]=e[r]);return t.name=e.name||\"custom\",t},fb=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=Wy[n];if(!o)throw new Error(`Unknown db adapter: \"${n}\". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Fo=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,Hy=new Map,Eo=new Map,ZC=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=eA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||\"\")}`;return t?`${n}:${t}`:n},Oo=e=>Me.get(e)||null,To=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=Hy.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},ea=e=>{if(e){Me.delete(e);return}Me.clear()},Pu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e==\"number\"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:R(e)?{staleTime:Fo(e),gcTime:3e5}:{staleTime:Fo(e.stale||e.staleTime)||6e4,gcTime:Fo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},ta=null,JC=()=>{ta||(ta=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=Hy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),ta.unref&&ta.unref())},JC(),qy=3,Ru=e=>Math.min(1e3*2**e,3e4),Gy=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:qy,delay:Ru}:typeof t==\"number\"?{count:t,delay:Ru}:{count:t.count??qy,delay:F(t.delay)?t.delay:typeof t.delay==\"number\"?()=>t.delay:Ru}},Ky=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}},kn={focus:new Set,online:new Set},Xy=!1,QC=()=>{if(Xy||typeof window>\"u\")return;Xy=!0;let e=()=>{for(let r of kn.focus)r()},t=()=>{for(let r of kn.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&e()}),window.addEventListener(\"focus\",e),window.addEventListener(\"online\",t)},Yy=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:\"select\",query:!0,on:\"create\"};if(R(e))return{from:e,method:\"select\",query:!0,on:\"create\"};if(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},eA=e=>(!e||F(e),e),ra=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},Zy=(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},ia=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)})},$u=async(e,t)=>{if(F(e.select))return e.auth!==!1&&await ia(e,t),e;if(e.__resolved)return e.auth!==!1&&await ia(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=fb(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 ia(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)},Ro=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},Ur=(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)},pr=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 $u(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:_,page:S,cursor:O,getNextPageParam:T,getPreviousPageParam:k,infinite:D,placeholderData:te,initialData:z,select:N,keepPreviousData:ye}=e,pe=R(N)?N:void 0;if(c&&F(t.getQuery)){let ie=t.getQuery(s.name||\"paths\");ie&&(pe=ie.select||ie.length&&ie.join(\",\")||pe)}let be=Zy(u,t,r),he=Pu(d),er=Gy(e),Xr=ra(t,r),wd=Xr?`:${Xr}`:\"\",Y=he?d?.key||`${a}:${l}:${JSON.stringify(be||\"\")}${D?\":infinite\":\"\"}${S?\":p\"+JSON.stringify(S):\"\"}${wd}`:null;if(!i.__fetchInitialized&&Y&&(i.__fetchInitialized=!0,z!==void 0)){let ie=F(z)?z():z;To(Y,ie,null)}if((l===\"select\"||l===\"rpc\")&&Y&&he){let ie=Oo(Y);if(ie&&!ie.error){let B=Date.now()-ie.time,V=ie.stale||B>(he.staleTime||0),L=ie.data;if(F(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),Ur(t,L,m),!V){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(te!==void 0){let B=F(te)?te(t,t.state):te;B!==void 0&&Ur(t,B,m)}}if(Y&&Eo.has(Y)&&!n.force){let ie=Eo.get(Y);try{let B=await Promise.race([ie,new Promise((V,L)=>setTimeout(()=>L(\"DEDUP_TIMEOUT\"),15e3))]);if(B?.data!==void 0){let V=B.data;F(N)&&(V=N(V,t,t.state)),f&&(V=f(V,t,t.state)),Ur(t,V,m),nt(t,\"onFetchComplete\",V),xt(e,t,\"onFetchComplete\",V)}}catch{}return}let Sd=!Oo(Y)?.data;jt(t,{isFetching:!0,isLoading:Sd,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),nt(t,\"onFetchStart\"),xt(e,t,\"onFetchStart\");let ke=r?.analyze?.emitNetwork,Yr=ke?typeof performance<\"u\"?performance.now():Date.now():0;ke&&ke({phase:\"start\",mode:\"query\",from:a,method:l,cacheKey:Y,lang:Xr});let kd=Ky(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let L=await s.getSession();if(h===!0&&!L){let U={message:\"Not authenticated\"};return jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:\"error\",fetchStatus:\"idle\"}),nt(t,\"onFetchError\",U),xt(e,t,\"onFetchError\",U),{data:null,error:U}}}let ie=s[l];if(!F(ie))return{data:null,error:{message:`Method \"${l}\" not found on adapter`}};let B={from:a,select:pe,params:be,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:_},V=ra(t,r);if(V&&(B.headers={...B.headers,\"Accept-Language\":V}),S!==void 0){if(j(S))S.offset!==void 0&&(B.offset=S.offset),S.limit!==void 0&&(B.limit=S.limit),S.cursor!==void 0&&(B.params={...B.params,cursor:S.cursor});else if(typeof S==\"number\"){let L=e.pageSize||y||20;B.offset=(S-1)*L,B.limit=L}}if(O!==void 0&&(B.params={...B.params,cursor:O}),l===\"insert\"||l===\"update\"||l===\"upsert\"){let L;if(g===!0||e.on===\"submit\")L=Ro(t);else if(W(g)){let U=Ro(t);L={};for(let Ce of g)L[Ce]=U[Ce]}else t.state?.parse?L=t.state.parse():j(t.state)&&(L={...t.state});f&&(L=f(L,t,t.state)),B.data=L}if(l===\"rpc\"){let L=be;if(e.on===\"submit\"){let U=Ro(t);L=e.transformParams?e.transformParams(U,t,t.state):U}B.params=L}if(l===\"subscribe\"){let L=s.subscribe({from:a,params:be,on:e.subscribeOn},(U,Ce,Qa)=>{Ur(t,U,m),nt(t,\"onFetchComplete\",U),xt(e,t,\"onFetchComplete\",U)});return i.__unsubscribe=L,{data:null,error:null,subscribed:!0}}return ie(B)},er);Y&&Eo.set(Y,kd);try{let ie=await kd;if(ie?.subscribed)return;let{data:B,error:V}=ie||{};if(V){Y&&To(Y,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),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:V.message||V,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Yr});return}if(B!==void 0){if((l===\"select\"||l===\"rpc\")&&Y){let U=To(Y,B,null);U.gcTime=he?.gcTime||3e5}let L=B;D&&W(B)&&(i.__pages||(i.__pages=[]),n.direction===\"previous\"?i.__pages.unshift(B):i.__pages.push(B),L=i.__pages.flat(),T&&(i.__nextPageParam=T(B,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),k&&(i.__prevPageParam=k(B,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),F(N)&&(L=N(L,t,t.state)),f&&(L=f(L,t,t.state)),(!ye||L!==void 0)&&Ur(t,L,m),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),nt(t,\"onFetchComplete\",L),xt(e,t,\"onFetchComplete\",L),ke&&ke({phase:\"success\",mode:\"query\",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Yr})}}catch(ie){jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ie,status:\"error\",fetchStatus:\"idle\"}),nt(t,\"onFetchError\",ie),xt(e,t,\"onFetchError\",ie),ke&&ke({phase:\"error\",mode:\"query\",from:a,method:l,cacheKey:Y,error:ie.message||String(ie),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Yr})}finally{Y&&Eo.delete(Y)}},tA=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||pr;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))},rA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),QC();let o=e.refetchInterval;if(o){let s=typeof o==\"number\"?o:Fo(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&pr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=ra(t,r),a=ZC(e,i),l=Oo(a),c=Pu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&pr(e,t,r,{force:!0})};kn.focus.add(s),n.__fetchCleanups.push(()=>kn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>pr(e,t,r,{force:!0});kn.online.add(s),n.__fetchCleanups.push(()=>kn.online.delete(s))}},nA=(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&&Ur(e,i,o),s},Iu=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ur(e,n,t.as),delete r.__optimisticSnapshot)},oA=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await $u(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,_;if(l===!0||d===\"submit\")_=Ro(t);else if(W(l)){let k=Ro(t);_={};for(let D of l)_[D]=k[D]}else t.state?.parse?_=t.state.parse():j(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),F(y)&&y(_,t,t.state);let S=m?nA(t,e,_):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 O=r?.analyze?.emitNetwork,T=O?typeof performance<\"u\"?performance.now():Date.now():0;O&&O({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let be=await o.getSession();if(f===!0&&!be){S!==void 0&&Iu(t,e);let he={message:\"Not authenticated\"};nt(t,\"onFetchError\",he),xt(e,t,\"onFetchError\",he);return}}let k=o[i];if(!F(k))return;let D={from:a,data:_,headers:p,baseUrl:h};e.params&&(D.params=Zy(e.params,t,r));let te=ra(t,r);te&&(D.headers={...D.headers,\"Accept-Language\":te});let z=Gy(e),N=await Ky(()=>k(D),z),{data:ye,error:pe}=N||{};if(pe){S!==void 0&&Iu(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:pe,status:\"error\",fetchStatus:\"idle\"}),nt(t,\"onFetchError\",pe),F(x)&&x(pe,_,t),F(v)&&v(null,pe,_,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:pe.message||String(pe),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,ye!==void 0){let be=u?{[u]:ye}:ye;t.state?.update&&t.state.update(be,{preventFetch:!0})}if(jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),nt(t,\"onFetchComplete\",ye),xt(e,t,\"onFetchComplete\",ye),F(b)&&b(ye,_,t),F(v)&&v(ye,null,_,t),O&&O({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T}),g){let be=W(g)?g:[g];for(let he of be)if(he===!0||he===\"*\")for(let[er]of Me)er.startsWith(a+\":\")&&Po(er);else Po(he)}}catch(k){S!==void 0&&Iu(t,e),jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:\"error\",fetchStatus:\"idle\"}),nt(t,\"onFetchError\",k),xt(e,t,\"onFetchError\",k),F(x)&&x(k,_,t),F(v)&&v(null,k,_,t),O&&O({phase:\"error\",mode:\"mutation\",from:a,method:i,error:k.message||String(k),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},Nu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=W(o)?o.map(a=>Yy(Ne(a,t),t)).filter(Boolean):[Yy(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?oA:pr;a.on===\"create\"?c(a,t,n):Promise.resolve().then(()=>{tA({...a,__runner:c},t,n)}),!l&&a.on===\"create\"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&rA(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)pr(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};pr(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};pr(c,t,n,{direction:\"previous\",force:!0})}},cE={invalidateQueries:e=>{if(!e){Po();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Po(t);else if(W(e)){let t=e.join(\":\");for(let[r]of Me)r.includes(t)&&Po(r)}},removeQueries:e=>{if(!e){ea();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&ea(t)},getQueryData:e=>Oo(e)?.data??void 0,setQueryData:(e,t)=>{let r=Oo(e),n=F(t)?t(r?.data):t;To(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await $u(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=To(o,i.data,null);a.gcTime=Pu(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>ea(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||ea(r))}},uE={name:\"fetch\",create(e){let t=e.fetch;t&&(e.parent||Eo.clear(),Nu(t,e,e.state,e.context))}},fE=Nu});function dE(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 pE(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 hE(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 gE(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 i0(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(j(n)&&o)i0.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 mE(e){let t=this;if(Uo(\"beforeRemove\",t,e)===!1)return t;F(t.node.remove)?t.node.remove():zo()||(console.warn(\"This item cant be removed\"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Kf(t.parent.__ref.__children,t.key)),Uo(\"remove\",t,e)}function yE(e){return this[e]}function bE(e,t){let r=this;if(e)return r.update(e,t),r}function xE(e){return e?this.__ref&&this.__ref[e]:this.__ref}function vE(){return this.getRef(\"__children\").map(e=>this[e])}function _E(){return this.getRef().path}function wE(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=db();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=db()),e?t?.[e]:t}function SE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function kE(e){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&e?this.getRoot(\"data\")[e]:this.getRoot(\"data\")}function CE(e){let t=this.getRoot()?.context;return e?t[e]:t}function AE(e){let t=this.context;return e?t[e]:t}function a0(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Ho.has(r)&&!Jf.has(r)||t.push(r);return t}function l0(e=[]){let t=this,r={},n=a0.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 Vo(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Pf(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=l0.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=>oe(a)?Pf.call(a,e,t):a):oe(i)&&(n[s]=Pf.call(i,e,t))}return n}function c0(...e){if(mr!==\"test\"&&mr!==\"development\")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:\n`,\"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 EE(...e){(mr===\"test\"||mr===\"development\")&&console.log(...e)}function OE(...e){(mr===\"test\"||mr===\"development\")&&console.warn(...e)}function Rf(...e){if(mr===\"test\"||mr===\"development\"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&c0.call(this),new Error(...e)}}function TE(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function PE(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 RE(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 $E(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=>{Rf.call(this,s)}),o}catch(o){if(Rf.call(this,o),r?.strictMode)throw o}}async function IE(){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(()=>(Lo(),sa));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Lo(),sa));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Lo(),sa)).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(()=>(Lo(),sa));await o(n,e.context)}return n}function FE(e){let t=this,r=e||ad.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Bu(t,n),r===!0)return n;let o=DE[r];return o?o(n):n}function jE(e,t){return!!(ja.has(e)||t?.context?.methods?.[e])}var mr,Jy,u0,db,f0,Bu,sA,Qy,iA,aA,lA,cA,uA,fA,DE,Sj=K(()=>{\"use strict\";QA(),qa(),Fe(),Gr(),BA(),Wa(),eE(),mr=\"production\",Jy=null,u0=e=>{Jy=e||null},db=()=>Jy||null,f0=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),Bu=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&sA(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Bu(l,t)}let s=r.contentElementKey||\"content\",i=e[s];i&&i.__ref&&Bu(i,t)},sA=(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])}},Qy=(e,t=0)=>{let r=\" \".repeat(t),n=Object.entries(e);return n.length?n.map(([o,s])=>s===!0?`${r}${o}`:`${r}${o} {\n${Qy(s,t+1)}\n${r}}`).join(`\n`):\"\"},iA=e=>`{\n${Qy(e,1)}\n}`,aA=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},lA=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(\"&\")},cA=(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?`\n`+n.join(`\n`):\"\";return`SELECT ${l}\nFROM ${a}${c}`},uA=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},fA=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)}},DE={graphql:iA,\"json-api\":aA,odata:lA,sql:cA,supabase:fA,paths:uA}}),dA,d0,kj=K(()=>{\"use strict\";gx(),dA={snapshotId:rd},d0=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let i=dA.snapshotId();return r.__currentSnapshot=i,[i,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}}),$f,p0,Cj=K(()=>{$f=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),p0=e=>typeof e==\"string\"&&$f.has(e)});async function LE(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 Aj=K(()=>{\"use strict\"});function Ej(e){return/^[0-9.]+$/.test(e)&&e!==\"\"}var Mt,If,h0,Ff,g0,Oj=K(()=>{\"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||!Ej(t)?`${Mt.symbols.url}/${e}`:`${Mt.symbols.url}/${e}/${t}.js`}},If={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},h0=(e={})=>{let{packageManager:t}=e;return If[t]||null},Ff=(e,t=\"latest\",r=\"esmsh\")=>(Mt[r]||Mt.esmsh).formatUrl(e,t),g0=(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]=Ff(s,i,t)}return`<script type=\"importmap\">{\n \"imports\": ${JSON.stringify(o,null,2)}\n }<\\/script>`}}),m0,Tj=K(()=>{\"use strict\";m0=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}`}}),y0,Pj=K(()=>{\"use strict\";y0=(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)})}}),b0,Rj=K(()=>{\"use strict\";b0=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),x0,$j=K(()=>{\"use strict\";x0=e=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(e)});function ME(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 NE(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 v0,_0,w0,S0,k0,Ij=K(()=>{\"use strict\";v0=(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)}}),_0=(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)}),w0=(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}`)},S0=(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)}}),k0=(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 Fj(e,t){if(!t||typeof t!=\"object\")return e;let r=o=>{if(!VE(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 Fu(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 jj(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]??Fu(s,p)??u;if(f===\"getLocalStateLang\")return Fu(i,p+o)??u;let h=Fu(i,p);return h!==void 0?h:s[p]??Fu(s,p)??u}));return a}function pA(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 BE(e,t,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=e.pages?.[t],i=j(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=pA(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=pA(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=jj(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=Fj(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,hA,C0,VE,Dj=K(()=>{\"use strict\";Fe(),ot=e=>{if(e==null)return\"\";let t={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#039;\"};return e.toString().replace(/[&<>\"']/g,r=>t[r])},hA=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}=\"${ot(r)}\"`).join(\" \"),C0=(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=hA(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(`\n`)),VE=e=>typeof e==\"string\"&&e.length>0&&!e.startsWith(\"/\")&&!e.startsWith(\"http\")}),jf,A0,Lj=K(()=>{\"use strict\";Fe(),jf=(e,t)=>(W(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),A0=(e,t)=>(e=parseFloat(e),j(t)&&(t=Object.values(t)),jf(e,t))});function Ba(e){let t=String(e||\"\").trim();if(!t)return{owner:pb,key:\"\",full:\"\"};let r=null,n=t;if(t.includes(\"/\")){let s=t.indexOf(\"/\");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\\.symbo\\.ls$/iu,\"\"),r||(r=pb);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function E0(e,t={}){return(t.provider||\"kv\")===\"api\"?gA(e,t):await Mj(e,t)||gA(e,t)}async function Mj(e,t={}){let r=t.kvBaseUrl||UE,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 gA(e,t={}){let r=t.apiBaseUrl||WE,{key:n}=Ba(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}=Ba(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 zE(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(j(r))return r;if(R(r)){let{full:n}=Ba(r);if(!n)return null;try{let o=await E0(n,t);return o||console.warn(`[smbls] Shared library \"${n}\" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library \"${n}\":`,o.message),null}}return null}))).filter(Boolean)}var pb,UE,WE,Aa,O0,Nj=K(()=>{\"use strict\";Fe(),pb=\"system\",UE=\"https://smbls-kv.nika-980.workers.dev\",WE=\"https://api.symbols.app\",Aa=(e,t)=>{for(let r in t)r in e?j(e[r])&&j(t[r])&&Aa(e[r],t[r]):e[r]=t[r]},O0=(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\")Aa(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])}}}}),T0,P0,R0,ld,$0,cd,I0,Ya,Bj=K(()=>{\"use strict\";Fe(),T0=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn(\"Failed to copy text: \",t)}},P0=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)}},R0=e=>e.replace(/[^a-zA-Z0-9_]/g,\"\"),ld=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,\"\")),$0=e=>e&&e.replace(/\\w\\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),cd=e=>e.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),I0=(e=\"\")=>{if(typeof e!=\"string\")return;let t=e.replace(/([A-Z])/g,\" $1\");return t.charAt(0).toUpperCase()+t.slice(1)},Ya=e=>{if(W(e))return e;if(R(e))return e.split(\" \");if(j(e))return Object.values(e);if(Pn(e))return[e]}}),F0,Vj=K(()=>{\"use strict\";F0=()=>{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,Mo,ud,fd,zj=K(()=>{\"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},Mo=(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(\", \")},ud=e=>{if(!e||!Array.isArray(e.variants))return\"\";let t=e.variants.filter(r=>r.format===e.type);return Mo(t,{keepOneX:!1})},fd=(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:Mo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Mo(o,{keepOneX:!1}),i={src:e.src,alt:t||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}}),Uj={};X(Uj,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>Jb,DOMQ_PROPERTIES:()=>Ho,ENV:()=>mx,HTML_TAGS:()=>Ma,METHODS:()=>ja,METHODS_EXL:()=>Qf,NODE_ENV:()=>Lt,OPTIONS:()=>ad,PACKAGE_MANAGER_TO_CDN:()=>If,PARSED_DOMQ_PROPERTIES:()=>Jf,PROPS_METHODS:()=>On,STATE_METHODS:()=>En,STATE_PROPERTIES:()=>Zb,SVG_TAGS:()=>Rx,TYPES:()=>ua,UNIVERSAL_RESERVED_KEYS:()=>$f,addCaching:()=>wf,addContext:()=>_f,addExtend:()=>Dx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Mb,addProtoToArray:()=>Xf,addRef:()=>bf,applyDependentState:()=>t0,applyEvent:()=>Of,applyEventUpdate:()=>Tf,applyExtends:()=>Mx,applyProps:()=>Ca,arrayContainsOtherArray:()=>Rb,arraysEqual:()=>Bb,arrayzeValue:()=>Ya,buildImgSrcset:()=>ud,buildSourcesAndImg:()=>fd,cache:()=>s0,call:()=>$E,captureSnapshot:()=>d0,checkForStateTypes:()=>Zx,checkIfInherits:()=>Ef,checkIfStringIsInArray:()=>Ub,clone:()=>ex,cloneAndMergeArrayExtend:()=>ba,cloneFunction:()=>zA,concatAddExtends:()=>Ix,copyJavaScriptToClipboard:()=>P0,copyStringToClipboard:()=>T0,createBasedOnType:()=>yf,createElement:()=>Yx,createElementExtends:()=>af,createExtends:()=>sd,createExtendsFromKeys:()=>Na,createExtendsStack:()=>ff,createIfConditionFlag:()=>kx,createInheritedState:()=>Jx,createKey:()=>nd,createNestedObject:()=>lx,createNestedObjectByKeyPath:()=>e0,createObjectWithoutPrototype:()=>ef,createParent:()=>xf,createPath:()=>vf,createProps:()=>id,createPropsStack:()=>gf,createRoot:()=>Xx,createScope:()=>n0,createSnapshotId:()=>rd,customDecodeURIComponent:()=>Yb,customEncodeURIComponent:()=>Xb,cutArrayAfterValue:()=>Db,cutArrayBeforeValue:()=>jb,debounce:()=>VA,debounceOnContext:()=>_x,decodeNewlines:()=>Kb,deepClone:()=>et,deepContains:()=>ix,deepDefaults:()=>Aa,deepDestringifyFunctions:()=>pa,deepExtend:()=>sf,deepMerge:()=>Qt,deepMergeExtends:()=>Xt,deepStringifyFunctions:()=>fa,defineSetter:()=>f0,destringifyGlobalScope:()=>tx,detectHeightOnInit:()=>y0,detectInfiniteLoop:()=>dx,document:()=>me,encodeNewlines:()=>Gb,error:()=>Rf,excludeKeysFromObject:()=>hx,exec:()=>Ne,extendCachedRegistry:()=>Fx,extendStackRegistry:()=>ga,extractArrayExtend:()=>ya,fetchLibraryData:()=>E0,fibonacciNumberByIndex:()=>b0,filterArrays:()=>Vb,filterArraysFast:()=>zb,finalizeExtends:()=>df,findClosestNumber:()=>jf,findClosestNumberInFactory:()=>A0,findInheritedState:()=>Af,findKeyPosition:()=>Hb,flattenExtend:()=>Do,formatDate:()=>m0,generateHash:()=>rf,generateKey:()=>ha,generateMetaTags:()=>C0,get:()=>yE,getCDNUrl:()=>Ff,getCapitalCaseKeys:()=>qA,getCdnProviderFromConfig:()=>h0,getChildStateInKey:()=>Cf,getChildren:()=>vE,getContext:()=>AE,getCookie:()=>Tx,getDB:()=>IE,getEmotionStylesheet:()=>F0,getExtendsInElement:()=>Lx,getExtendsStack:()=>va,getExtendsStackRegistry:()=>of,getFrequencyInArray:()=>$b,getHashedExtend:()=>ma,getImportMapScript:()=>g0,getInObjectByPath:()=>fx,getLocalStorage:()=>UA,getNev:()=>vx,getPageMetadata:()=>BE,getParentStateInKey:()=>kf,getPath:()=>_E,getQuery:()=>FE,getRef:()=>xE,getRoot:()=>SE,getRootContext:()=>CE,getRootData:()=>kE,getRootState:()=>wE,getRootStateInKey:()=>Sf,getSpreadChildren:()=>GA,global:()=>Ob,hasFunction:()=>jo,hasHandlerPlugin:()=>Ka,hasOwnProperty:()=>nx,inheritChildExtends:()=>cf,inheritChildPropsExtends:()=>lf,inheritParentProps:()=>wa,inheritRecursiveChildExtends:()=>uf,initProps:()=>Gx,is:()=>Yt,isArray:()=>W,isBoolean:()=>Xu,isContextComponent:()=>KA,isCyclic:()=>px,isDOMNode:()=>st,isDate:()=>Zu,isDefined:()=>Vo,isDevelopment:()=>od,isEmpty:()=>Ju,isEmptyObject:()=>ox,isEqualDeep:()=>Qu,isFunction:()=>F,isHtmlElement:()=>Hf,isLocal:()=>xx,isMethod:()=>jE,isMobile:()=>Ex,isNode:()=>Ua,isNot:()=>Pb,isNotProduction:()=>Ga,isNull:()=>Yu,isNumber:()=>Pn,isObject:()=>j,isObjectLike:()=>oe,isPhoto:()=>x0,isProduction:()=>zo,isStaging:()=>bx,isState:()=>Qx,isString:()=>R,isStringFunction:()=>Sx,isTest:()=>tf,isTesting:()=>yx,isUndefined:()=>Bt,isUniversallyReservedKey:()=>p0,isValidHtmlTag:()=>$x,joinArrays:()=>Ia,jointStacks:()=>jx,keys:()=>a0,loadCssFile:()=>S0,loadJavascript:()=>k0,loadJavascriptFile:()=>v0,loadJavascriptFileEmbedSync:()=>w0,loadJavascriptFileSync:()=>_0,loadRemoteCSS:()=>NE,loadRemoteScript:()=>ME,log:()=>EE,logGroupIf:()=>Ax,logIf:()=>Cx,lookdown:()=>hE,lookdownAll:()=>gE,lookup:()=>pE,lowercaseFirstLetter:()=>Ha,makeObjectWithoutPrototype:()=>sx,map:()=>Qb,mapStringsWithContextComponents:()=>xa,matchesComponentNaming:()=>An,memoize:()=>wx,merge:()=>it,mergeSharedLibraries:()=>O0,nextElement:()=>TE,normalizeLibraryKey:()=>Ba,objectToString:()=>da,objectizeStringProperty:()=>_a,overwrite:()=>ed,overwriteDeep:()=>Rn,overwriteShallow:()=>td,overwriteState:()=>r0,parse:()=>l0,parseDeep:()=>Pf,pickupElementFromProps:()=>Vx,pickupPropsFromElement:()=>Bx,previousElement:()=>PE,propExists:()=>qx,propertizeElement:()=>zx,propertizeUpdate:()=>YA,remove:()=>mE,removeChars:()=>R0,removeCookie:()=>Px,removeDuplicateProps:()=>Sa,removeDuplicatesInArray:()=>Fa,removeFromArray:()=>Ib,removeFromObject:()=>ax,removeNestedKeyByPath:()=>cx,removeValueFromArray:()=>Kf,removeValueFromArrayAll:()=>Lb,reorderArrayByValues:()=>Nb,replaceLiteralsWithObjectFields:()=>MA,replaceOctalEscapeSequences:()=>qb,resolveAsset:()=>Zt,resolveHandler:()=>Da,resolveSharedLibraries:()=>zE,returnValueAsText:()=>mf,runPluginHook:()=>La,self:()=>Tb,setActiveRootState:()=>u0,setCookie:()=>Ox,setHashedExtend:()=>nf,setInObjectByPath:()=>ux,setLocalStorage:()=>WA,setNodeStyles:()=>i0,setProps:()=>bE,setPropsPrototype:()=>pf,spotByPath:()=>dE,srcsetFor:()=>Mo,stringIncludesAny:()=>Yf,stringToObject:()=>rx,swapItemsInArray:()=>Fb,syncProps:()=>ka,toCamelCase:()=>ld,toDashCase:()=>cd,toDescriptionCase:()=>I0,toTitleCase:()=>$0,toggleFullscreen:()=>LE,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>o0,trimStringFromSymbols:()=>Wb,unstackArrayOfObjects:()=>Gf,update:()=>Ux,updateProps:()=>Kx,variables:()=>RE,verbose:()=>c0,warn:()=>OE,window:()=>se});var M=K(()=>{\"use strict\";gx(),BA(),Fe(),Gr(),Xa(),Wa(),qf(),dj(),pj(),Zf(),Wf(),hj(),HA(),XA(),JA(),Nx(),yj(),bj(),qa(),xj(),Sj(),eE(),kj(),QA(),Cj(),Aj(),Oj(),Tj(),Pj(),Rj(),$j(),Ij(),Dj(),Lj(),Nj(),Bj(),Vj(),zj()}),Wj=Eb((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\":\"\")}}),Hj=Eb((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=Wj(),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,_=Number(new Date),S=_-(h||_);v.diff=S,v.prev=h,v.curr=_,h=_,x[0]=s.coerce(x[0]),typeof x[0]!=\"string\"&&x.unshift(\"%O\");let O=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(T,k)=>{if(T===\"%%\")return\"%\";O++;let D=s.formatters[k];if(typeof D==\"function\"){let te=x[O];T=D.call(v,te),x.splice(O,1),O--}return T}),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}),qj=Eb((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=Hj()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return\"[UnexpectedJSONParseError]: \"+c.message}}});var HE={};X(HE,{CSS_NATIVE_COLOR_REGEX:()=>In,CSS_UNITS:()=>D0,applyMediaSequenceVars:()=>Lf,applySequenceGlobalVars:()=>G0,applySequenceVars:()=>gd,changeLightness:()=>Jj,colorStringToRgbaArray:()=>$n,convertSvgToSymbol:()=>pO,findHeadingLetter:()=>uO,findHeadings:()=>fO,generateSequence:()=>Hr,generateSequencePosition:()=>DD,generateSprite:()=>gb,generateSubSequence:()=>H0,getColorShade:()=>YE,getDefaultOrFirstKey:()=>L0,getFnPrefixAndValue:()=>Ja,getFontFace:()=>tD,getFontFaceEach:()=>pd,getFontFaceEachString:()=>eO,getFontFaceString:()=>tO,getFontFormat:()=>JE,getRgbTone:()=>Ea,getSequenceValue:()=>q0,getSequenceValueBySymbols:()=>cO,getSequenceValuePropertyPair:()=>za,getSubratio:()=>aO,getSubratioDifference:()=>W0,hexToRgb:()=>Kj,hexToRgbArray:()=>qE,hexToRgba:()=>Yj,hslToRgb:()=>XE,isCSSVar:()=>Ue,isGoogleFontsUrl:()=>M0,isResolvedColor:()=>qo,isScalingUnit:()=>j0,mixTwoColors:()=>Gj,mixTwoRgb:()=>Zj,mixTwoRgba:()=>ZE,numToLetterMap:()=>Wr,opacify:()=>hb,parseColorToken:()=>Za,resolveFileUrl:()=>gr,returnSubThemeOrDefault:()=>eD,rgbArrayToHex:()=>GE,rgbToHSL:()=>KE,rgbToHex:()=>Xj,setCustomFont:()=>B0,setCustomFontMedia:()=>Va,setFontImport:()=>N0,setInCustomFontMedia:()=>QE,setScalingVar:()=>U0,setSubScalingVar:()=>iO,setVariables:()=>LD,splitTopLevelCommas:()=>dd});var j0=e=>e===\"em\"||e===\"rem\"||e===\"vw\"||e===\"vh\"||e===\"vmax\"||e===\"vmin\",D0=[\"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\"];M();var $n=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&&me&&se){let t=me.body.appendChild(me.createElement(\"fictum\")),r=\"rgb(1, 2, 3)\";if(t.style.color=r,t.style.color!==r){me.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color===\"\")return me.body.removeChild(t),[0,0,0,0];e=se.getComputedStyle(t).color,me.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]},Gj=(e,t,r=.5)=>(e=$n(e),t=$n(t),ZE(e,t,r)),Kj=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},qE=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},Xj=(e,t,r)=>\"#\"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),GE=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),Yj=(e,t=1)=>{let[r,n,o]=e.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},Zj=(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})`},Jj=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},KE=(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]},XE=(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)],YE=(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)},ZE=(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})`},hb=(e,t)=>{let r=$n(e);if(!r){Ga()&&console.warn(e+\" color is not rgba\");return}return r[3]=t,`rgba(${r})`},Ue=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,In=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,Qj=/^([a-zA-Z]\\w*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,Za=e=>{if(!R(e))return null;if(In.test(e))return{passthrough:e};if(Ue(e))return{cssVar:e};let t=e.match(Qj);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}},qo=e=>R(e)&&(e.includes(\"rgb\")||e.includes(\"var(\")||e.includes(\"#\")),dd=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},Ea=(e,t)=>{R(e)&&e.includes(\"rgb\")&&(e=$n(e).join(\", \")),R(e)&&(e=e.split(\",\").map(o=>parseFloat(o.trim()))),Pn(t)&&(t+=\"\");let r=GE(e),n=t.slice(0,1);if(n===\"-\"||n===\"+\"){let o=YE(r,parseFloat(t));return qE(o).join(\", \")}else{let[o,s,i]=e,a=KE(o,s,i),[l,c,u]=a;return XE(l,c,parseFloat(t)/100*255)}},eD=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},gr=(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},L0=(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},JE=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},M0=e=>e&&(e.includes(\"fonts.googleapis.com\")||e.includes(\"fonts.gstatic.com\")),N0=e=>`@import url('${e}');`,QE=e=>`@font-face { ${e} }`,B0=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s==\"string\"&&s).map(s=>{let i=JE(s),a=i?` format('${i}')`:\"\";return`url('${s}')${a}`}).join(`,\n `);return`\n font-family: '${e}';\n font-style: ${n.fontStyle||\"normal\"};${r?`\n font-weight: ${r};`:\"\"}${n.fontStretch?`\n font-stretch: ${n.fontStretch};`:\"\"}${n.fontDisplay?`\n font-display: ${n.fontDisplay};`:\"\"}\n src: ${o};`},Va=(e,t,r,n)=>`@font-face {${B0(e,t,r,n)}\n}`,pd=(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=>gr(u,r)||u):gr(o,r)||o;return B0(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),tD=e=>Object.keys(e).map(t=>pd(t,e[t].value)),eO=(e,t,r)=>{if(t&&t.isVariable){let o=gr(t.url,r)||t.url;return M0(o)?N0(o):Va(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\"})}if(t[0])return pd(e,t,r).map(QE);let n=Array.isArray(t.url)?t.url.map(o=>gr(o,r)||o):gr(t.url,r)||t.url;return Va(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},tO=(e,t)=>Object.keys(e).map(r=>eO(r,e[r].value,t));M();M();M();var rO={};X(rO,{animation:()=>wD,breakpoints:()=>vD,class:()=>OD,color:()=>fD,devices:()=>_D,document:()=>xD,font:()=>oD,fontFace:()=>aD,fontFamily:()=>sD,fontFamilyTypes:()=>iD,gradient:()=>dD,grid:()=>ED,icons:()=>gD,media:()=>lD,reset:()=>TD,semanticIcons:()=>mD,sequence:()=>hd,shadow:()=>hD,spacing:()=>uD,svg:()=>SD,svgData:()=>kD,templates:()=>CD,theme:()=>pD,timing:()=>bD,typography:()=>nO,unit:()=>rD,vars:()=>PD});var hd={\"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},rD={default:\"em\"},nD={browserDefault:16,base:16,type:\"font-size\",ratio:hd[\"minor-third\"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:\"em\",templates:{},sequence:{},scales:{},vars:{}},nO=nD,oD={},sD={},iD={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},aD={},lD={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"},cD={base:nO.base,type:\"spacing\",ratio:hd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},uD=cD,fD={},dD={},pD={},hD={},gD={},mD={},yD={default:150,base:150,type:\"timing\",ratio:hd[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},bD=yD,xD={},vD={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},_D={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]},wD={},SD={},kD={},CD={},AD={},ED=AD,OD={},TD={},PD={},mA={},yA={},ju=rO,Vu={},oO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in ju){let t=e.toLowerCase();Vu[t]=ju[e];let r=oO(t);r!==t&&(Vu[r]=ju[e]),t!==e&&(Vu[e]=ju[e])}var V0={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:mA,cssMediaVars:yA,CSS_VARS:mA,CSS_MEDIA_VARS:yA,_scratchConfig:!0,...Vu},RD=et(V0),Df={active:\"0\",0:V0};var Oa=[],$D=e=>{e&&e._scratchConfig&&Oa.push(e)},ID=()=>{Oa.pop()},H=e=>Oa.length?Oa[Oa.length-1]:Df[e||Df.active]||V0,FD=e=>{if(j(e))return Df.active=\"1\",Df[1]=Qt(e,et(RD)),e};var Wr={\"-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\"},z0=(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=sO.has(t.unit)?\"rem\":t.unit;t.vars[n]=s+l},Ja=e=>{if(!e.includes(\"(\"))return e;let t=e.split(\"(\")[0],r=e.slice(e.indexOf(\"(\")+1,e.lastIndexOf(\")\"));return[t,r]},sO=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),U0=(e,t)=>{let{base:r,type:n,unit:o}=t,s=sO.has(o)?\"rem\":o,i=(j0(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=Wr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Wr[e+1],u=Math.abs(e),d=Math.pow(lO,2*u),f=Wr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},iO=(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}))`},W0=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},aO=(e,t)=>W0(e,t).map(r=>r/e),H0=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=W0(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=iO(h+1,c,i,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};z0(x,t)})},lO=1.618,jD=(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(lO,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=Wr[c],d=jD(c,r,n),f=~~(d/r*100)/100,p=a+u,h=U0(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};z0(g,e),s&&H0(g,e)}return e},DD=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Wr[t],a=R(t)?Object.entries(Wr).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=U0(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return z0(p,l),s&&H0(p,l),l},q0=(e=\"A\",t)=>{let r=H(),{unit:n}=r;if(R(e)&&Ue(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(D0.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+\"-\":\"\"}${cd(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)},cO=(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:q0(o,t)}).join(\"\")},za=(e,t,r,n)=>{if(typeof e!=\"string\")return H().verbose&&console.warn(t,e,\"is not a string\"),{[t]:e};if(e===\"-\"||e===\"\")return{};if(!n&&e.includes(\"(\")){let o=Ja(e);n=o[0],e=o[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(o=>e.includes(o+\" \")).length?e=cO(e,r):e=q0(e,r),{[t]:n?`${n}(${e})`:e}},uO=(e,t)=>Wr[e-t],fO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=uO(t,o);return r[s]})};M();var LD=(e,t)=>{let r=H(),{cssVars:n}=r;oe(e.value)||(n[e.var]=e.value)},G0=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(l&&l.replace(\".\",\"-\"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=aO(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})`},dO=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),gd=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=dO.has(i)?\"rem\":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||G0(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\"})`)}},Lf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=dO.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}`]={}),G0(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=(j0(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}};M();var MD=Ga(),gb=e=>{let t=H(),r=\"\";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},ND=e=>{let t=e&&(e.default||e);if(!R(t))return MD&&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},{}):{}},BD=(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},pO=(e,t)=>{let r=ND(t),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,i=BD(t,e).replace(\"<svg\",`<symbol id=\"${e}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${s}\"`);return i=i.replace(/width=\"[^\"]*\"/,\"\"),i=i.replace(/height=\"[^\"]*\"/,\"\"),i=i.replace(\"</svg\",\"</symbol\"),i=UD(i),i},VD=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",zD=new RegExp(`<(${VD})\\\\b([^>]*?)\\\\s*/>`,\"g\"),UD=e=>e.replace(zD,\"<$1$2></$1>\"),hO={};X(hO,{appendSVGSprite:()=>TO,appendSvgIconsSprite:()=>RO,applyDocument:()=>OO,applyHeadings:()=>vO,applyReset:()=>IO,applySpacingSequence:()=>kO,applyTimingSequence:()=>EO,applyTypographySequence:()=>_O,checkIfBoxSize:()=>SO,getColor:()=>Te,getFontFamily:()=>bO,getFontSizeByKey:()=>wO,getMediaColor:()=>wt,getMediaTheme:()=>qr,getShadow:()=>AO,getSpacingBasedOnRatio:()=>Wo,getSpacingByKey:()=>ze,getTheme:()=>K0,getTimingByKey:()=>hr,getTimingFunction:()=>Tn,runThroughMedia:()=>xO,setColor:()=>Ta,setFont:()=>yO,setFontFamily:()=>bb,setGradient:()=>Pa,setMediaTheme:()=>X0,setSVG:()=>Z0,setShadow:()=>Ra,setSvgIcon:()=>PO,setTheme:()=>gO,splitSpacedValue:()=>CO});M();var Te=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,\"- type for color is not valid\");return}if(Ue(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(W(e))[o,s,i]=e;else{let d=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=Ea(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},wt=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme===\"auto\"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,\"- type for color is not valid\");return}if(Ue(e))return`var(${e})`;let o;if(W(e))o=e[0];else{let c=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 Te(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Te(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]=Te(e,u,r)}return c}}else return n.verbose&&console.warn(\"Can't find color\",e),e},Ta=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)){let h=e.slice(2);if(e=Te(h),!(e.includes(\"rgb\")||e.includes(\"var\")||e.includes(\"#\"))){let g=h.split(\" \"),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||W(m)||j(m))&&(n.color[g[0]]=Ta(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=Ea(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:\"1\";if(y)try{let x=$n(g[0]);x&&x.length>=3?e=`rgba(${Ea(x.slice(0,3).join(\", \"),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(W(e)&&(e={\"@light\":e[0],\"@dark\":e[1]}),j(e)){let h={};for(let g in e)h[g]=Ta(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],_=v&&(v.value||v);!_||typeof _!=\"string\"||(y[x]=_,(x===\"light\"||m===void 0)&&(m=_))}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(R(s)&&s.includes(\".\")&&!s.includes(\"(\")){let[h,g]=s.split(\".\"),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat(\"0.\"+g)||1})`)}if(R(s)&&!s.includes(\"(\")&&!s.startsWith(\"#\")){let h=Za(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||W(g)||j(g))&&(n.color[h.name]=Ta(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Ea(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=$n(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=H();if(R(e)&&Ue(e)&&(e=Te(e.slice(2))),W(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}};M();var WD=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\"]),bA=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],HD=e=>{for(let t=0;t<bA.length;t++)if(e.includes(bA[t]))return!0;return!1},md=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?Te(e[i]):e[i]}),t},aa=e=>(e.value||(e.value=md(e)),e.value),K0=(e,t)=>{let r=H();if(r.useVariable)return qr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(\" \"),i=n[o];if(i){if(!s&&!t)return aa(i);e=[o,s||t]}}if(oe(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return aa(a[s]);if(i&&i[s])return aa(i[s]);if(l&&l[s])return aa(l[s])}else if(j(e))return md(e)},qD=(e,t,r)=>{if(j(t))e.variants.inverse.value=md(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},GD=(e,t,r,n)=>{let o=K0(r);n[`&:${t}`]=o,j(r)&&!r.value&&(r.value=o)},KD=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return GD(e,n,o,t),e}),e):void 0},XD=(e,t,r,n)=>{let o=K0(r);n[`@media (prefers-color-scheme: ${t})`]=o,j(r)&&!r.value&&(r.value=o)},YD=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n===\"dark\"||n===\"light\")&&XD(e,n,o,t),n===\"inverse\"&&qD(e,o,t),e}),e):void 0},ZD=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:aa(n[o]),e}),e):void 0},gO=(e,t)=>{let r=H();if(r.useVariable)return X0(e,t);let{state:n,media:o,helpers:s}=e,i=md(e,t),a=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${t}`;return KD(e,i),YD(e,i),ZD(e,i),{var:a,value:i,state:n,media:o,helpers:s}},mb=(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===\":\")&&HD(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Te(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!WD.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>oe(f?.[c]));if(u===\".\"&&d){let f=c.slice(1),p={};for(let h in e)oe(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=mb(p,`${t}-${f}`,r)}else if(u===\":\"&&d){let f=c.replace(/^:+/,\"\"),p={};for(let h in e)oe(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=mb(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=Te(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},X0=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(oe(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith(\"@\")&&oe(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=mb(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]=X0(u,t,l,n||d)}else if(!a){let d=Te(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?\"-\"+f.join(\"-\"):\"\",h=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&Ue(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},yb=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(oe(e[n])){if(o===\"@\")continue;o===\":\"?r[`&${n}`]=yb(e[n]):o===\".\"&&(r[`&${n}`]=yb(e[n]))}else r[n]=e[n]}return r},mO=(e,t)=>{let r=t.shift();return e[r]?mO(e[r],t):e},xA=(e,t)=>W(t)?mO(e,t):R(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=H();if(R(e)&&Ue(e)&&(e=qr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=W(e)?e:e.split(\" \"),s=r.theme[n];return s&&o.length?s=xA(s,o):s&&t&&(s=xA(s,t)),yb(s)};M();M();var yO=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||W(e)&&!e[0])return;let o;if(e.isVariable){let s=gr(e.url,r.files)||e.url;M0(s)?o=N0(s):o=Va(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\"})}else if(e[0])o=pd(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>gr(i,r.files)||i):gr(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}},bO=(e,t)=>{let r=H(),{fontFamily:n}=r;return L0(t||n,e)},bb=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),j(s)&&(s=Ya(s));let a=`--font-family-${t}`,l=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};M();var xO=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)===\"@\",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;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),Lf(e,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),Hr(i),Lf(e,o)}},vO=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=fO(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}}}},_O=()=>{let e=H(),{typography:t}=e;Hr(t),vO(t),gd(t),xO(t)},wO=e=>{let t=H(),{typography:r}=t;return za(e,\"fontSize\",r)};M();M();var JD=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),Lf(e,t)}},SO=e=>{let t=e.toLowerCase(),r=t.includes(\"width\")||t.includes(\"height\"),n=t.includes(\"border\")||t.includes(\"outline\");return r&&!n},kO=()=>{let e=H(),{spacing:t}=e;Hr(t),gd(t),JD(t)},QD=e=>{let t=H(),{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=QD(r);if(R(e)&&!n&&e.includes(\"(\")){let i=Ja(e);n=i[0],e=i[1]}let s=n?[e]:Ya(e);if(W(s)){if(s.length>1){let i=\"\";t===\"borderWidth\"&&(t=\"border\",i=\"Width\");let a={2:[\"Block\",\"Inline\"],3:[\"BlockStart\",\"Inline\",\"BlockEnd\"],4:[\"BlockStart\",\"InlineEnd\",\"BlockEnd\",\"InlineStart\"]},l=(c,u)=>za(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return za(e,t,o,n)}},Wo=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes(\"(\")){let a=Ja(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)},CO=e=>{let t=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=D0.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(\" \")};M();var Ra=(e,t,r,n)=>{let o=H();if(W(e))return{\"@light\":Ra(e[0],t,\"light\"),\"@dark\":Ra(e[1],t,\"dark\")};if(j(e)){let i={};for(let a in e)i[a]=Ra(e[a],t,a.startsWith(\"@\")?a.slice(1):a);return i}R(e)&&!In.test(e)&&(e=dd(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=Te(a);if(qo(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}},AO=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,\"- type for color is not valid\");return}if(Ue(e))return`var(${e})`;let[n]=W(e)?e:e.split(\" \"),o=r.shadow[n],s=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};M();var EO=()=>{let e=H(),{timing:t}=e;Hr(t),gd(t)},Tn=e=>{let t=H(),{timing:r}=t;return r[e]||r[ld(e)]||e},hr=(e,t=\"timing\")=>{let r=H(),{timing:n}=r;return za(e,t,n)};M();var OO=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:L0(r),fontSize:o.base,lineHeight:o.lineHeight})};M();var Y0={document:me},Z0=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn(\"setSVG: val is not defined\",t);return}return r.useSvgSprite?pO(t,e):e},TO=(e,t=Y0)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];$O(n,t)},PO=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?Z0(e,t):e},RO=(e,t=Y0)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];$O(n,t)},eb=(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},eL=(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},vA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},$O=(e,t=Y0)=>{let r=H(),n=t.document||me;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),gb(e);let o=n.querySelector(\"#svgSprite\"),s=gb(e),i=`<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute\" id=\"svgSprite\">${s}</svg>`,a=eL(n,s);if(o)if(a)vA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML(\"beforeend\",s);else{let l=eb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=eb(n);l&&l.nodeType&&(vA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML(\"afterbegin\",i);else{let l=eb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};M();var IO=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[\":root\"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?qr(\"document\"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?qr(\"document\"):{};if(r.html&&Rn(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 Qt(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}})}};M();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\"]),nL=e=>tL.has(e),Cn=e=>{let t=e+\"\";if(In.test(t))return t;let r=t.trim();return r===\"none\"||r===\"0\"||r===\"initial\"||r===\"inherit\"||r===\"unset\"?t:t.split(/\\s+/).map(n=>{if(n=n.trim(),!n)return\"\";if(Ue(n))return`var(${n})`;if(nL(n)||/^\\d/.test(n)||n===\"0\")return n;let o=Te(n);if(qo(o))return o;let s=ze(n,\"border\");return s&&s.border?s.border:n}).join(\" \")},oL=e=>In.test(e)?e:e.split(/\\s+/).map(t=>{if(t=t.trim(),!t)return\"\";if(Ue(t))return`var(${t})`;if(/^\\d/.test(t)||t.includes(\"px\")||t===\"0\")return t;let r=Te(t);return qo(r)?r:t}).join(\" \"),sL=(e,t)=>AO(e,t),_A=(e,t)=>In.test(e)?e:dd(e).map(r=>(r=r.trim(),r?r.split(/\\s+/).map(n=>{if(n=n.trim(),!n)return\"\";if(Ue(n))return`var(${n})`;if(n===\"inset\"||n===\"none\")return n;let o=Te(n);if(qo(o)){let i=wt(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(\", \"),FO=(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=dd(o).map(a=>(a=a.trim(),a.split(/\\s+/).map(l=>{if(!l||/^\\d/.test(l)||l===\"0\"||rL.has(l)||l===\"transparent\"||In.test(l))return l;let c=Te(l);return qo(c)?c:l}).join(\" \")));return n+i.join(\", \")+s},iL=(e,t)=>{let r=H();return e.split(\", \").map(n=>Ue(n)?`var(${n})`:n.includes(\"url\")?n:n.includes(\"gradient\")?FO(n,t):r.gradient[e]?{backgroundImage:wt(e,t||r.globalTheme)}:n.includes(\"/\")||n.startsWith(\"http\")||n.includes(\".\")&&!Za(n)?`url(${n})`:n).join(\" \")},aL=e=>R(e)&&e.split(\" \").map(t=>ze(t,\"gap\").gap).join(\" \"),lL=e=>{let t=e.split(\" \");return t.length?t.map(r=>Ue(r)?`var(${r})`:r.length<3||r.includes(\"ms\")?hr(r).timing||r:Tn(r)?Tn(r):r).join(\" \"):e},wA=(e,t,r)=>{if(R(e))return e.split(\",\").map(n=>hr(n).timing||n).join(\",\")},cL=e=>{let t=e.split(\",\");if(t.length)return t.map(lL).join(\",\")};function Oe(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes(\"(\")){let l=Ja(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=SO(e);!i&&a&&!n.ratio&&(o=CO(o))}return n.ratio?Wo(r,e,o,s):ze(o,e,void 0,s)}var re=(e,t=null,r)=>Oe(e,t,r,{ratio:!0}),SA=(e,t,r)=>{if(R(e))return{borderRadius:e.split(\" \").map((n,o)=>Wo(t,r,n)[r]).join(\" \")}};M();var uL=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith(\"--\")?t:`--${t}`;return n[o]=e,e},vt=e=>e,kA={color:Ta,gradient:Pa,font:yO,fontFamily:bb,fontfamily:bb,theme:gO,icons:PO,semanticIcons:vt,semanticicons:vt,svg:Z0,svgData:vt,typography:vt,shadow:Ra,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:uL},fL=(e,t,r)=>{let n=H(),o=oO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=kA[o]||kA[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\")},dL=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=j(t[o])||W(t[o])?1:0,a=j(t[s])||W(t[s])?1:0;return i-a}).forEach(o=>{try{return fL(n,t[o],o)}catch(s){r.verbose&&console.warn(\"Error setting\",n,\"value\",t[o],o,s)}}),r[n]||r[e]};var pL={},J0=(e,t=pL)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=FD(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 T=D=>{v.setAttribute(\"data-theme\",D.matches?\"dark\":\"light\")},k=x.matchMedia(\"(prefers-color-scheme: dark)\");if(T(k),v.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=T;try{k.addEventListener(\"change\",T)}catch{k.addListener(T)}}}else v.setAttribute(\"data-theme\",\"light\"),v.style.colorScheme=\"light\";r.__svgCache||(r.__svgCache={});let _=Object.keys(y),S=new Set(_);if(_.forEach(T=>{let k=T.toLowerCase();k!==T&&S.has(k)&&Qt(y[k],y[T])}),_.map(T=>{let k=T.toLowerCase();if(!(k!==T&&S.has(k)))return dL(T,y[T])}),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{_O()}catch(T){r.verbose&&console.warn(\"Error applying typography sequence\",T)}if(y.spacing)try{kO()}catch(T){r.verbose&&console.warn(\"Error applying spacing sequence\",T)}if(y.timing)try{EO()}catch(T){r.verbose&&console.warn(\"Error applying timing sequence\",T)}OO();let O=IO();return O&&(r.reset=O),r};var hL=null,gL=null,mL=null;function yL(e){e.batchAtomicCss&&(gL=e.batchAtomicCss),e.compoundCssClass&&(mL=e.compoundCssClass)}function bL(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<\"u\"?document:null}function zu(e){return e.replace(/[A-Z]/g,t=>\"-\"+t.toLowerCase())}var CA=new WeakMap;function la(e,t){let r=jO(t);if(!r)return;let n=CA.get(r);if(n||(n=new Set,CA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var AA=new WeakMap;function jO(e){let t=e||bL();if(!t||!t.head)return null;let r=AA.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 AA.set(t,o),hL=o,o}function Vt(e){if(jO(),typeof e==\"string\"){la(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:zu(l);a+=`${c}:${i[l]};`}la(`${n}{${s}{${a}}}`)}else{let a=s.startsWith(\"--\")?s:zu(s);la(`${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:zu(a);s+=`${c}:${l};`}}if(s&&la(`${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 EA(e,t){let r=\"\";for(let n in t){let o=\"\";for(let s in t[n])o+=`${zu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return la(`@keyframes ${e}{${r}}`),e}M();Xa();M();M();var xL=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],vL=[\"none\",\"forwards\",\"backwards\",\"both\"],_L=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],wL=[\"running\",\"paused\"],SL=e=>/^[\\d.]+m?s$/.test(e),kL=0,tb=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(j(e)){let o=`smbls-anim-${kL++}`;return{animationName:EA(o,e)}}let n=r&&r[e];return j(n)?EA(e,n):e},CL=(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:SL(d)?s.push(d):xL.includes(d)||d.startsWith(\"cubic-bezier\")||d.startsWith(\"steps(\")?i=d:d===\"infinite\"||/^\\d+$/.test(d)?a=d===\"infinite\"?d:Number(d):_L.includes(d)?l=d:vL.includes(d)?c=d:wL.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},AL={animation:(e,t)=>{if(R(e)&&e.includes(\" \")){let r=CL(e,t);return{animationName:tb(r.name||e,t),animationDuration:r.durations[0]||hr(t.animationDuration||\"A\").timing,animationDelay:r.durations[1]||hr(t.animationDelay||\"0s\").timing,animationTimingFunction:r.timingFunction||Tn(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:tb(e,t),animationDuration:hr(t.animationDuration||\"A\").timing,animationDelay:hr(t.animationDelay||\"0s\").timing,animationTimingFunction:Tn(t.animationTimingFunction||\"ease\"),animationFillMode:t.animationFillMode||\"both\",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:tb(e,t)}),animationDuration:e=>({animationDuration:hr(e).timing}),animationDelay:e=>({animationDelay:hr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Tn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};M();var EL={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=>Bt(e)?{boxSizing:\"border-box\"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"height\",t),...Oe(\"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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"minWidth\",t),...Oe(\"maxWidth\",r||t)}},minHeight:(e,t)=>re(\"minHeight\",e,t),maxHeight:(e,t)=>re(\"maxHeight\",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"minHeight\",t),...Oe(\"maxHeight\",r||t)}},size:e=>{if(!R(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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"minInlineSize\",t),...Oe(\"minBlockSize\",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"maxInlineSize\",t),...Oe(\"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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"paddingInlineStart\",t),...Oe(\"paddingInlineEnd\",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"paddingBlockStart\",t),...Oe(\"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(!R(e))return;let[t,r]=e.split(\" \");return{...Oe(\"marginInlineStart\",t),...Oe(\"marginInlineEnd\",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(\" \");return{...Oe(\"marginBlockStart\",r),...Oe(\"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:aL(e)}),columnGap:(e,t)=>Wo(t,\"columnGap\",e),rowGap:(e,t)=>Wo(t,\"rowGap\",e),flexWrap:e=>({display:\"flex\",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(\" \");return{display:\"flex\",alignItems:t,justifyContent:r}},round:(e,t)=>SA(e??t.borderRadius,t,\"round\"),borderRadius:(e,t)=>SA(e??t.round,t,\"borderRadius\")},OL={fontSize:e=>wO(e)||e,fontFamily:e=>({fontFamily:bO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'\"wght\" '+e})},TL={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},PL={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]}}};M();var Dt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r===\"auto\"?null:r},RL={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:wt(e,r)}},background:(e,t)=>{let r=Dt(t);if(e)return R(e)&&e.includes(\"gradient\")?{background:FO(e,r)}:{background:wt(e,r)}},backgroundColor:(e,t)=>{let r=Dt(t);if(e)return{backgroundColor:wt(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:iL(e,o)}},textStroke:e=>({WebkitTextStroke:oL(e)}),outline:e=>({outline:Cn(e)}),outlineOffset:(e,t)=>re(\"outlineOffset\",e,t),border:e=>({border:Cn(e)}),borderColor:(e,t)=>{let r=Dt(t);if(e)return{borderColor:wt(e,r)}},borderTopColor:(e,t)=>{let r=Dt(t);if(e)return{borderTopColor:wt(e,r)}},borderBottomColor:(e,t)=>{let r=Dt(t);if(e)return{borderBottomColor:wt(e,r)}},borderLeftColor:(e,t)=>{let r=Dt(t);if(e)return{borderLeftColor:wt(e,r)}},borderRightColor:(e,t)=>{let r=Dt(t);if(e)return{borderRightColor:wt(e,r)}},borderLeft:e=>({borderLeft:Cn(e)}),borderTop:e=>({borderTop:Cn(e)}),borderRight:e=>({borderRight:Cn(e)}),borderBottom:e=>({borderBottom:Cn(e)}),shadow:(e,t)=>{let r=Dt(t);if(e)return{boxShadow:sL(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split(\"!importan\"),o=Dt(t),s=n?\" !important\":\"\";return{boxShadow:_A(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:_A(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:Cn(e)})},DO={transition:e=>({transition:cL(e)}),transitionDuration:e=>({transitionDuration:wA(e)}),transitionDelay:e=>({transitionDelay:wA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Tn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};M();var $L={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||\"row\").split(\" \");return(e.startsWith(\"x\")||e===\"row\")&&(n=\"row\"),(e.startsWith(\"y\")||e===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},wrap:(e,t)=>({display:\"flex\",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}},IL={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})},OA={...AL,...EL,...OL,...TL,...PL,...RL,...DO,...$L,...IL},FL=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\"]);M();var jL=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,DL=(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(jL),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},TA=(e,t,r)=>({[e]:Kr(t,r)}),na=(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}},Q0=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return F(r)?r.call(t,t):!!r},LL=(e,t,r)=>{let n=e.slice(1),o=Q0(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},ML=(e,t,r)=>({[e]:t}),NL=(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=Q0(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},BL=(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=Q0(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},VL=(e,t)=>Kr(e,t),zL={\"@\":DL,\":\":na,\"[\":na,\"*\":na,\"+\":na,\"~\":na,\"&\":TA,\">\":TA,$:LL,\"-\":ML,\".\":NL,\"!\":BL},rb=zo(),UL=(e,t,r)=>{let n=t?.context?.designSystem;n&&$D(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,VL(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),!rb&&j(o[a])&&(o[a].label=a)}else if(OA[a]){let c=Ne(l,t);W(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=OA[a](c,t,t.state,t.context);W(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&i(a,u),!rb&&j(o[a])&&(o[a].label=a)}else if(FL.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}),!rb&&j(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&ID()}},WL=(e,t)=>{let r={};for(let n in e){let o=zL[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\"?Rn(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=UL(e,t,r),s=WL(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return ed(n,s);n._selectors=s}return n};M();M();M();Xa();var a7=new Proxy(Object.create(null),{get(){},set(){return!0},has(){return!1}});M();var PA=(e,t)=>{let r=e.call(\"exec\",t,e);if(r)return R(r)&&r.includes(\"{{\")&&(r=e.call(\"replaceLiteralsWithObjectFields\",r)),r};var HL={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\"}}}},qL={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},GL={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\"}}},l7={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...HL,...qL,...GL,none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var KL={};X(KL,{A:()=>bP,AssetPicture:()=>cT,Audio:()=>gT,Avatar:()=>MP,B:()=>jT,Block:()=>MO,Box:()=>NT,Br:()=>VT,Button:()=>SP,ButtonSet:()=>EP,COMPONENTS:()=>sM,Caption:()=>AT,Checkbox:()=>eP,CheckboxHgroup:()=>tP,Circle:()=>sT,CircleButton:()=>CP,Clickable:()=>QO,Data:()=>LT,Dialog:()=>PP,DialogFooter:()=>$P,DialogHeader:()=>RP,Dropdown:()=>zP,DropdownList:()=>UP,DropdownParent:()=>WP,DropdownParentFocus:()=>HP,DropdownSiblingFocus:()=>qP,FileIcon:()=>hP,Flex:()=>BO,Focusable:()=>eT,FocusableComponent:()=>tT,Footnote:()=>FT,Form:()=>KO,Grid:()=>zO,Gutter:()=>WO,H1:()=>xT,H2:()=>vT,H3:()=>_T,H4:()=>wT,H5:()=>ST,H6:()=>kT,Headline:()=>$T,Hgroup:()=>qT,HgroupButton:()=>KT,HgroupRows:()=>GT,Hoverable:()=>JO,Hr:()=>BT,I:()=>DT,Icon:()=>dP,IconButton:()=>OP,IconText:()=>pP,Iframe:()=>YO,Img:()=>qO,Inline:()=>NO,InlineFlex:()=>VO,InlineGrid:()=>UO,Input:()=>YT,Italic:()=>PT,KangorooButton:()=>AP,Li:()=>zT,Link:()=>av,Notification:()=>KP,NumberInput:()=>JT,Ol:()=>WT,P:()=>CT,Picture:()=>aT,Radio:()=>nP,RadioHgroup:()=>oP,Range:()=>BP,RouteLink:()=>xP,RouterLink:()=>lv,SHAPES:()=>Mf,Select:()=>_P,Shape:()=>tv,Span:()=>bT,SquareButton:()=>kP,Strong:()=>ET,Subhead:()=>IT,Svg:()=>fT,Text:()=>yT,Textarea:()=>cP,TextareaWithButton:()=>uP,Theme:()=>iT,Title:()=>RT,Toggle:()=>iP,ToggleHgroup:()=>aP,Tooltip:()=>FP,TooltipHidden:()=>jP,TooltipParent:()=>DP,U:()=>OT,Ul:()=>UT,Underline:()=>TT,Video:()=>pT,depth:()=>ev,getSystemGlobalTheme:()=>Nf});var LO={};X(LO,{Block:()=>MO,Flex:()=>BO,Grid:()=>zO,Gutter:()=>WO,Inline:()=>NO,InlineFlex:()=>VO,InlineGrid:()=>UO});var MO={display:\"block\"},NO={display:\"inline\"},BO={display:\"flex\"},VO={display:\"inline-flex\"},zO={display:\"grid\"},UO={display:\"inline-grid\"},WO={boxSize:\"C1\"},HO={};X(HO,{Img:()=>qO});M();var qO={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?ud(t):\"\")||e.srcset}}},GO={};X(GO,{Form:()=>KO});var KO={tag:\"form\"},XO={};X(XO,{Iframe:()=>YO});var YO={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"},ZO={};X(ZO,{Clickable:()=>QO,Focusable:()=>eT,FocusableComponent:()=>tT,Hoverable:()=>JO});var XL={appearance:\"none\",cursor:\"pointer\",fontFamily:\"inherit\"},JO={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}}},QO={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}},eT={border:\"none\",outline:\"solid 0 blue.3\",\":focus-visible\":{opacity:1,outline:\"solid X blue.3\"},attr:{tabIndex:e=>e.tabIndex}},tT={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",style:XL},rT={};X(rT,{Picture:()=>aT});var nT={};X(nT,{Theme:()=>iT,getSystemGlobalTheme:()=>Nf});var oT={};X(oT,{Circle:()=>sT,SHAPES:()=>Mf,Shape:()=>tv,default:()=>YL,depth:()=>ev});M();var _t=H(),ev={4:{boxShadow:`rgba(0,0,0,.10) 0 2${_t.unit.default} 4${_t.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${_t.unit.default} 6${_t.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${_t.unit.default} 10${_t.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${_t.unit.default} 16${_t.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${_t.unit.default} 26${_t.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${_t.unit.default} 42${_t.unit.default}`}},$o=e=>Te(e.shapeDirectionColor)||Te(e.borderColor)||Te(e.backgroundColor)||Te(e.background),Du=e=>{let t=DO.transition(e.transition,e);return t&&t.transition},Mf={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:$o(e),transition:Du(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:$o(e),transition:Du(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:$o(e),transition:Du(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:Du(e),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${$o(e)} 25%, transparent 25%), linear-gradient(315deg, ${$o(e)} 25%, transparent 25%)`},\"&:after\":{background:$o(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)\"}}}},tv={deps:{exec:Ne,getSpacingBasedOnRatio:Wo,getMediaColor:wt},classlist:{shape:e=>e.deps.exec(Mf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Mf[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}}},sT={round:\"100%\"},YL=tv;M();var Nf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n===\"auto\"?null:n},iT={deps:{depth:ev},classlist:{depth:e=>!Bt(e.depth)&&e.deps.depth[e.depth]}},aT={deps:{getSystemGlobalTheme:Nf},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:Nf},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}},lT={};X(lT,{AssetPicture:()=>cT});M();var cT={tag:\"picture\",children:e=>{let t=Zt(e);if(t)return fd(t,e.alt)}},uT={};X(uT,{Svg:()=>fT});var fT={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)}},dT={};X(dT,{Video:()=>pT});M();var pT={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\"}},hT={};X(hT,{Audio:()=>gT});M();var gT={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\"}},mT={};X(mT,{B:()=>jT,Caption:()=>AT,Data:()=>LT,Footnote:()=>FT,H1:()=>xT,H2:()=>vT,H3:()=>_T,H4:()=>wT,H5:()=>ST,H6:()=>kT,Headline:()=>$T,I:()=>DT,Italic:()=>PT,P:()=>CT,Span:()=>bT,Strong:()=>ET,Subhead:()=>IT,Text:()=>yT,Title:()=>RT,U:()=>OT,Underline:()=>TT});var yT={},bT={tag:\"span\"},xT={tag:\"h1\"},vT={tag:\"h2\"},_T={tag:\"h3\"},wT={tag:\"h4\"},ST={tag:\"h5\"},kT={tag:\"h6\"},CT={tag:\"p\"},AT={tag:\"caption\"},ET={tag:\"strong\",fontWeight:\"700\"},OT={tag:\"u\"},TT={tag:\"u\"},PT={tag:\"i\"},RT={},$T={tag:\"h6\",fontSize:\"B\",fontWeight:500},IT={tag:\"span\",fontSize:\"Z1\"},FT={tag:\"span\",fontSize:\"Z\"},jT={tag:\"b\"},DT={tag:\"i\"},LT={tag:\"data\"},MT={};X(MT,{Box:()=>NT,Br:()=>VT,Hr:()=>BT,Li:()=>zT,Ol:()=>WT,Ul:()=>UT});var ZL=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},NT={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:ZL},BT={tag:\"hr\",margin:\"C1 0\"},VT={tag:\"br\"},zT={tag:\"li\"},UT={tag:\"ul\",childExtends:{extends:\"Li\"}},WT={tag:\"ol\",childExtends:{extends:\"Li\"}},HT={};X(HT,{Hgroup:()=>qT,HgroupButton:()=>KT,HgroupRows:()=>GT});var RA=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},qT={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:RA,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:RA,margin:\"0\",color:\"paragraph\"}},GT={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},KT={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}},XT={};X(XT,{Input:()=>YT});var YT={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}},ZT={};X(ZT,{NumberInput:()=>JT});var JT={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}},QT={};X(QT,{Checkbox:()=>eP,CheckboxHgroup:()=>tP});var eP={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\"}}},tP={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}},rP={};X(rP,{Radio:()=>nP,RadioHgroup:()=>oP});var nP={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}},oP={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}},sP={};X(sP,{Toggle:()=>iP,ToggleHgroup:()=>aP});var iP={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}},aP={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}},lP={};X(lP,{Textarea:()=>cP,TextareaWithButton:()=>uP});var cP={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\"}},uP={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\"}}},fP={};X(fP,{FileIcon:()=>hP,Icon:()=>dP,IconText:()=>pP});var dP={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 _=v[\".isActive\"];if(_)return v.call(\"exec\",_.name||_.icon)},c=(v,_,S)=>{let{semanticIcons:O}=S&&S.designSystem,{toCamelCase:T}=S&&S.utils,k=u(v,_),D=T(k).split(/([a-z])([A-Z])/g),te=D[1]?D[0]:k.split(\".\")[0].split(\" \")[0],z=O&&O[te];if(z){let N=k.includes(\".\")?\"sfsymbols.\"+k.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return k=z[N]||z[k.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${k}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},u=(v,_)=>{let{key:S}=v,O=v.call(\"exec\",v.name||v.icon||S,v);return v.call(\"isString\",O)&&O.includes(\"{{\")&&(O=v.call(\"replaceLiteralsWithObjectFields\",O)),v.call(\"isString\",O)?O:S},d=u(e,t);if(d.includes(\" \")){let v=d.split(\" \");d=v[0]+v.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join(\"\")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[\".isActive\"];n&&n.isActive&&m&&m.icon&&(g=e.call(\"exec\",m.icon||m.Icon.name||m.Icon.icon,e)),e.call(\"isString\",g)&&g.includes(\"{{\")&&(g=e.call(\"replaceLiteralsWithObjectFields\",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn(\"Can't find icon:\",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:\"0 0 24 24\"}},pP={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},hP={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}},gP={};X(gP,{A:()=>bP,Link:()=>av,RouteLink:()=>xP,RouterLink:()=>lv});var JL={};X(JL,{default:()=>nM,getActiveRoute:()=>iv,lastLevel:()=>yd,lastPathname:()=>Bf,matchRoute:()=>nv,parseQuery:()=>ov,parseRoutePattern:()=>rv,router:()=>Go,runGuards:()=>sv});M();var mP=/^:(.+)/,yP=/^\\*$/,$A=new Map,rv=e=>{let t=$A.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(mP);a?n.push({index:i,name:a[1]}):yP.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return $A.set(e,s),s},nv=(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=rv(l),u=QL(n,c);u>i&&(i=u,s=l,a=eM(n,c))}return!s&&t[\"/*\"]&&(s=\"/*\"),{key:s,content:s?t[s]:null,params:a,routePath:o}},QL=(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(mP.test(r[i]))o+=1;else if(yP.test(r[i]))o+=.5;else return-1;return o},eM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},ov=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},sv=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},iv=(e=0,t)=>{t||(t=typeof se<\"u\"?se.location.pathname:\"/\");let r=t.split(\"/\")[e+1];if(r)return`/${r}`},Bf,yd=0,tM=e=>!e||e===\"srcdoc\"||e===\"about:srcdoc\"?\"/\":e,rM={level:yd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:me&&me.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||se,i=o?.context?.document||me,a={...rM,...o.context.routerOptions,...n};yd=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=ov(p),m=o.node,y=h&&h!==s.location.hash.slice(1),b=f!==Bf;Bf=f;let x,v,_,S;if(a.useParamsMatching){let T=nv(f,o.routes,a.level);x=T.key,v=T.routePath,_=T.content,S=T.params}else x=iv(a.level,f),v=x,_=o.routes[x||\"/\"]||o.routes[\"/*\"],S={};let O=a.scrollToNode?m:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!_){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 T={pathname:f,route:x,params:S,query:g,hash:h,element:o,state:r},k=await sv(a.guards,T);if(k===!1)return;if(typeof k==\"string\")return Go(k,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,f+(p||\"\")+(h||\"\"))}catch{}if(b||!y){let T={route:x,routePath:v,hash:h,debugging:!1};Object.keys(S).length&&(T.params=S),Object.keys(g).length&&(T.query=g),a.updateState&&o.state.update(T,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let k=o.__ref?.origin?.content,D={};if(k)for(let z in k){let N=k[z];z===\"__ref\"||z===\"props\"||z===\"node\"||z===\"parent\"||z===\"key\"||(typeof N==\"string\"||typeof N==\"number\"||typeof N==\"boolean\"||typeof N==\"object\"&&N!==null&&!N.node&&!N.__ref)&&(D[z]=N)}let te={...D,...typeof _==\"object\"?_:{extends:_}};a.useFragment&&(te.tag=\"fragment\");try{o.set(te,{contentElementKey:c})}catch(z){console.error(\"[smbls/router] failed to render route content\",f,z)}}if(a.scrollToTop&&O?.scrollTo&&O.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&_[c]?.node?.scrollTo&&_[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let T=i.getElementById(h);if(T&&O?.scrollTo){let k=T.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:k,left:0})}}Uo(\"routeChanged\",o,a)},nM=Go,oM=(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)}}},av={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:e=>PA(e,e.href)||PA(e,e.call(\"exec\",e,e).href),\"aria-label\":e=>e.aria?e.aria.label:e.text},onClick:oM},bP={extends:\"Link\"},lv={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)}}}},xP={extends:[av,lv]},vP={};X(vP,{Select:()=>_P});var _P={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}}},wP={};X(wP,{Button:()=>SP,ButtonSet:()=>EP,CircleButton:()=>CP,IconButton:()=>OP,KangorooButton:()=>AP,SquareButton:()=>kP});var SP={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)},kP={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\"},CP={extends:\"SquareButton\",round:\"C\"},AP={extends:\"Button\",childExtends:\"IconText\"},EP={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},OP={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"},TP={};X(TP,{Dialog:()=>PP,DialogFooter:()=>$P,DialogHeader:()=>RP});var PP={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},RP={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},$P={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\"}},IP={};X(IP,{Tooltip:()=>FP,TooltipHidden:()=>jP,TooltipParent:()=>DP});M();var FP={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)}},jP={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)}},DP={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\"}}})}},LP={};X(LP,{Avatar:()=>MP});var MP={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\"}`},NP={};X(NP,{Range:()=>BP});var BP={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:hb(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:hb(\"#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)}},VP={};X(VP,{Dropdown:()=>zP,DropdownList:()=>UP,DropdownParent:()=>WP,DropdownParentFocus:()=>HP,DropdownSiblingFocus:()=>qP});var zP={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\"},UP={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\"}}},WP={position:\"relative\",zIndex:999,style:{\"&:hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}}},HP={position:\"relative\",tabindex:\"0\",style:{\"&: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()}}},qP={position:\"relative\",tabindex:\"0\",style:{\"&: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()}}},GP={};X(GP,{Notification:()=>KP});var KP={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}}}},sM=Object.assign({},LO,HO,GO,XO,ZO,rT,lT,uT,oT,dT,hT,nT,mT,MT,HT,XT,ZT,QT,rP,sP,lP,fP,gP,vP,wP,TP,IP,LP,NP,VP,GP);var iM=null;function aM(e){iM=e}M();var lM={};X(lM,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>Jb,DOMQ_PROPERTIES:()=>Ho,ENV:()=>mx,HTML_TAGS:()=>Ma,METHODS:()=>ja,METHODS_EXL:()=>Qf,NODE_ENV:()=>Lt,OPTIONS:()=>ad,PACKAGE_MANAGER_TO_CDN:()=>If,PARSED_DOMQ_PROPERTIES:()=>Jf,PROPS_METHODS:()=>On,STATE_METHODS:()=>En,STATE_PROPERTIES:()=>Zb,SVG_TAGS:()=>Rx,TYPES:()=>ua,UNIVERSAL_RESERVED_KEYS:()=>$f,addCaching:()=>wf,addContext:()=>_f,addExtend:()=>Dx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Mb,addProtoToArray:()=>Xf,addRef:()=>bf,applyCSS:()=>dM,applyDependentState:()=>t0,applyEvent:()=>Of,applyEventUpdate:()=>Tf,applyExtends:()=>Mx,applyProps:()=>Ca,arrayContainsOtherArray:()=>Rb,arraysEqual:()=>Bb,arrayzeValue:()=>Ya,buildImgSrcset:()=>ud,buildSourcesAndImg:()=>fd,cache:()=>s0,call:()=>$E,captureSnapshot:()=>d0,checkForStateTypes:()=>Zx,checkIfInherits:()=>Ef,checkIfStringIsInArray:()=>Ub,clone:()=>ex,cloneAndMergeArrayExtend:()=>ba,cloneFunction:()=>zA,concatAddExtends:()=>Ix,copyJavaScriptToClipboard:()=>P0,copyStringToClipboard:()=>T0,createBasedOnType:()=>yf,createElement:()=>Yx,createElementExtends:()=>af,createExtends:()=>sd,createExtendsFromKeys:()=>Na,createExtendsStack:()=>ff,createIfConditionFlag:()=>kx,createInheritedState:()=>Jx,createKey:()=>nd,createNestedObject:()=>lx,createNestedObjectByKeyPath:()=>e0,createObjectWithoutPrototype:()=>ef,createParent:()=>xf,createPath:()=>vf,createProps:()=>id,createPropsStack:()=>gf,createRoot:()=>Xx,createScope:()=>n0,createSnapshotId:()=>rd,customDecodeURIComponent:()=>Yb,customEncodeURIComponent:()=>Xb,cutArrayAfterValue:()=>Db,cutArrayBeforeValue:()=>jb,debounce:()=>VA,debounceOnContext:()=>_x,decodeNewlines:()=>Kb,deepClone:()=>et,deepContains:()=>ix,deepDefaults:()=>Aa,deepDestringifyFunctions:()=>pa,deepExtend:()=>sf,deepMerge:()=>Qt,deepMergeExtends:()=>Xt,deepStringifyFunctions:()=>fa,defineSetter:()=>f0,destringifyGlobalScope:()=>tx,detectHeightOnInit:()=>y0,detectInfiniteLoop:()=>dx,document:()=>me,encodeNewlines:()=>Gb,error:()=>Rf,excludeKeysFromObject:()=>hx,exec:()=>Ne,extendCachedRegistry:()=>Fx,extendStackRegistry:()=>ga,extractArrayExtend:()=>ya,fetchLibraryData:()=>E0,fibonacciNumberByIndex:()=>b0,filterArrays:()=>Vb,filterArraysFast:()=>zb,finalizeExtends:()=>df,findClosestNumber:()=>jf,findClosestNumberInFactory:()=>A0,findInheritedState:()=>Af,findKeyPosition:()=>Hb,flattenExtend:()=>Do,formatDate:()=>m0,generateHash:()=>rf,generateKey:()=>ha,generateMetaTags:()=>C0,get:()=>yE,getActiveRoute:()=>iv,getCDNUrl:()=>Ff,getCapitalCaseKeys:()=>qA,getCdnProviderFromConfig:()=>h0,getChildStateInKey:()=>Cf,getChildren:()=>vE,getContext:()=>AE,getCookie:()=>Tx,getDB:()=>IE,getEmotionStylesheet:()=>F0,getExtendsInElement:()=>Lx,getExtendsStack:()=>va,getExtendsStackRegistry:()=>of,getFrequencyInArray:()=>$b,getHashedExtend:()=>ma,getImportMapScript:()=>g0,getInObjectByPath:()=>fx,getLocalStorage:()=>UA,getNev:()=>vx,getPageMetadata:()=>BE,getParentStateInKey:()=>kf,getPath:()=>_E,getQuery:()=>FE,getRef:()=>xE,getRoot:()=>SE,getRootContext:()=>CE,getRootData:()=>kE,getRootState:()=>wE,getRootStateInKey:()=>Sf,getSpreadChildren:()=>GA,global:()=>Ob,hasFunction:()=>jo,hasHandlerPlugin:()=>Ka,hasOwnProperty:()=>nx,inheritChildExtends:()=>cf,inheritChildPropsExtends:()=>lf,inheritParentProps:()=>wa,inheritRecursiveChildExtends:()=>uf,init:()=>bd,initProps:()=>Gx,is:()=>Yt,isArray:()=>W,isBoolean:()=>Xu,isContextComponent:()=>KA,isCyclic:()=>px,isDOMNode:()=>st,isDate:()=>Zu,isDefined:()=>Vo,isDevelopment:()=>od,isEmpty:()=>Ju,isEmptyObject:()=>ox,isEqualDeep:()=>Qu,isFunction:()=>F,isHtmlElement:()=>Hf,isLocal:()=>xx,isMethod:()=>jE,isMobile:()=>Ex,isNode:()=>Ua,isNot:()=>Pb,isNotProduction:()=>Ga,isNull:()=>Yu,isNumber:()=>Pn,isObject:()=>j,isObjectLike:()=>oe,isPhoto:()=>x0,isProduction:()=>zo,isStaging:()=>bx,isState:()=>Qx,isString:()=>R,isStringFunction:()=>Sx,isTest:()=>tf,isTesting:()=>yx,isUndefined:()=>Bt,isUniversallyReservedKey:()=>p0,isValidHtmlTag:()=>$x,joinArrays:()=>Ia,jointStacks:()=>jx,keys:()=>a0,lastLevel:()=>yd,lastPathname:()=>Bf,loadCssFile:()=>S0,loadJavascript:()=>k0,loadJavascriptFile:()=>v0,loadJavascriptFileEmbedSync:()=>w0,loadJavascriptFileSync:()=>_0,loadRemoteCSS:()=>NE,loadRemoteScript:()=>ME,log:()=>EE,logGroupIf:()=>Ax,logIf:()=>Cx,lookdown:()=>hE,lookdownAll:()=>gE,lookup:()=>pE,lowercaseFirstLetter:()=>Ha,makeObjectWithoutPrototype:()=>sx,map:()=>Qb,mapStringsWithContextComponents:()=>xa,matchRoute:()=>nv,matchesComponentNaming:()=>An,memoize:()=>wx,merge:()=>it,mergeSharedLibraries:()=>O0,nextElement:()=>TE,normalizeLibraryKey:()=>Ba,objectToString:()=>da,objectizeStringProperty:()=>_a,overwrite:()=>ed,overwriteDeep:()=>Rn,overwriteShallow:()=>td,overwriteState:()=>r0,parse:()=>l0,parseDeep:()=>Pf,parseQuery:()=>ov,parseRoutePattern:()=>rv,pickupElementFromProps:()=>Vx,pickupPropsFromElement:()=>Bx,previousElement:()=>PE,propExists:()=>qx,propertizeElement:()=>zx,propertizeUpdate:()=>YA,reinit:()=>fM,remove:()=>mE,removeChars:()=>R0,removeCookie:()=>Px,removeDuplicateProps:()=>Sa,removeDuplicatesInArray:()=>Fa,removeFromArray:()=>Ib,removeFromObject:()=>ax,removeNestedKeyByPath:()=>cx,removeValueFromArray:()=>Kf,removeValueFromArrayAll:()=>Lb,reorderArrayByValues:()=>Nb,replaceLiteralsWithObjectFields:()=>MA,replaceOctalEscapeSequences:()=>qb,resolveAsset:()=>Zt,resolveHandler:()=>Da,resolveSharedLibraries:()=>zE,returnValueAsText:()=>mf,router:()=>Go,runGuards:()=>sv,runPluginHook:()=>La,scratchSystem:()=>hO,scratchUtils:()=>HE,self:()=>Tb,set:()=>J0,setActiveRootState:()=>u0,setCookie:()=>Ox,setHashedExtend:()=>nf,setInObjectByPath:()=>ux,setLocalStorage:()=>WA,setNodeStyles:()=>i0,setProps:()=>bE,setPropsPrototype:()=>pf,spotByPath:()=>dE,srcsetFor:()=>Mo,stringIncludesAny:()=>Yf,stringToObject:()=>rx,swapItemsInArray:()=>Fb,syncProps:()=>ka,toCamelCase:()=>ld,toDashCase:()=>cd,toDescriptionCase:()=>I0,toTitleCase:()=>$0,toggleFullscreen:()=>LE,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>o0,trimStringFromSymbols:()=>Wb,unstackArrayOfObjects:()=>Gf,update:()=>Ux,updateProps:()=>Kx,variables:()=>RE,verbose:()=>c0,warn:()=>OE,window:()=>se});M();M();var cM=H(),XP=(e=cM,t)=>{let r=j(t.localFile)?t.localFile:{},n=et(r.designSystem||{});return Qt(e,n)},uM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},bd=(e,t=uM)=>{let r=XP(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=J0({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=tO(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)&&TO(i.svg,{document:t.document}),(h||p)&&RO(i.icons,{document:t.document}),i},YP={},fM=(e,t=YP)=>{let r=XP(e||{},t),n=t.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=J0({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},dM=(e,t=YP)=>{Vt(e)};M();M();var c7=se&&se.location?se.location.host.includes(\"dev.\"):od();M();Lo();var pM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},hM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},u7={...pM,router:hM};M();M();M();M();Lo();var Vf={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\"},gM=Object.create(null);for(let e in Vf)gM[Vf[e]]=e;var nb=Object.create(null);for(let e in Vf){let t=Vf[e];if(nb[t])throw new Error(`Duplicate abbreviation \"${t}\" for \"${e}\" \\u2014 already used by \"${nb[t]}\"`);nb[t]=e}var mM=0,yM=()=>`${Date.now().toString(36)}-${(mM++).toString(36)}`,$a=(e,t,r={})=>({id:yM(),ts:Date.now(),type:e,level:t,...r}),bM=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(\" > \")},zf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:bM(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,No=e=>e?.context?.analyze,xM={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\"}},vM=(e,{category:t,type:r,level:n})=>o=>{let s=No(o);!s||!s.shouldCapture(t)||s.emit($a(r,n,{hook:e,element:zf(o)}))},IA=e=>(t,r)=>{let n=No(t);!n||!n.shouldCapture(\"state\")||n.emit($a(\"state\",\"debug\",{hook:e,element:zf(t),changedKeys:r?.changedKeys||null}))},_M={name:\"analyze\",error(e,t){let r=No(e);if(!r||r.config.enabled===!1||!r.shouldCapture(\"errors\"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit($a(\"error\",\"error\",{hook:t?.hook||\"error\",element:zf(e),error:n,message:n?.message||(typeof t?.message==\"string\"?t.message:null)}))},renderRouter(e){let t=No(e);t&&(!t.shouldCapture(\"navigation\")&&!t.shouldCapture(\"lifecycle\")||t.emit($a(\"navigation\",\"info\",{hook:\"renderRouter\",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=No(e);!t||!t.shouldCapture(\"updates\")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(e){let t=No(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($a(\"update\",\"debug\",{hook:\"update\",element:zf(e),durationMs:r}))},beforeStateUpdate:IA(\"beforeStateUpdate\"),stateUpdate:IA(\"stateUpdate\")};for(let[e,t]of Object.entries(xM))_M[e]=vM(e,t);M();M();M();var f7=typeof se<\"u\"&&typeof se.document<\"u\";M();var d7=typeof se<\"u\"&&typeof se.document<\"u\";M();var p7=typeof se<\"u\"&&typeof se.document<\"u\";var Jt=Object.create(null);Jt.open=\"0\";Jt.close=\"1\";Jt.ping=\"2\";Jt.pong=\"3\";Jt.message=\"4\";Jt.upgrade=\"5\";Jt.noop=\"6\";var Uu=Object.create(null);Object.keys(Jt).forEach(e=>{Uu[Jt[e]]=e});var xb={type:\"error\",data:\"parser error\"},ZP=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",JP=typeof ArrayBuffer==\"function\",QP=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,cv=({type:e,data:t},r,n)=>ZP&&t instanceof Blob?r?n(t):FA(t,n):JP&&(t instanceof ArrayBuffer||QP(t))?r?n(t):FA(new Blob([t]),n):n(Jt[e]+(t||\"\")),FA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];t(\"b\"+(n||\"\"))},r.readAsDataURL(e)};function jA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var ob;function wM(e,t){if(ZP&&e.data instanceof Blob)return e.data.arrayBuffer().then(jA).then(t);if(JP&&(e.data instanceof ArrayBuffer||QP(e.data)))return t(jA(e.data));cv(e,!1,r=>{ob||(ob=new TextEncoder),t(ob.encode(r))})}var DA=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",ca=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let e=0;e<DA.length;e++)ca[DA.charCodeAt(e)]=e;var SM=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=ca[e.charCodeAt(n)],i=ca[e.charCodeAt(n+1)],a=ca[e.charCodeAt(n+2)],l=ca[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},kM=typeof ArrayBuffer==\"function\",uv=(e,t)=>{if(typeof e!=\"string\")return{type:\"message\",data:eR(e,t)};let r=e.charAt(0);return r===\"b\"?{type:\"message\",data:CM(e.substring(1),t)}:Uu[r]?e.length>1?{type:Uu[r],data:e.substring(1)}:{type:Uu[r]}:xb},CM=(e,t)=>{if(kM){let r=SM(e);return eR(r,t)}else return{base64:!0,data:e}},eR=(e,t)=>t===\"blob\"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,tR=\"\u001e\",AM=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{cv(s,!1,a=>{n[i]=a,++o===r&&t(n.join(tR))})})},EM=(e,t)=>{let r=e.split(tR),n=[];for(let o=0;o<r.length;o++){let s=uv(r[o],t);if(n.push(s),s.type===\"error\")break}return n};function OM(){return new TransformStream({transform(e,t){wM(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!=\"string\"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var sb;function Lu(e){return e.reduce((t,r)=>t+r.length,0)}function Mu(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 TM(e,t){sb||(sb=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Lu(r)<1)break;let l=Mu(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(Lu(r)<2)break;let l=Mu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Lu(r)<8)break;let l=Mu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(xb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Lu(r)<o)break;let l=Mu(r,o);a.enqueue(uv(s?l:sb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(xb);break}}}})}var rR=4;function Se(e){if(e)return PM(e)}function PM(e){for(var t in Se.prototype)e[t]=Se.prototype[t];return e}Se.prototype.on=Se.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+e]=this._callbacks[\"$\"+e]||[]).push(t),this};Se.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Se.prototype.off=Se.prototype.removeListener=Se.prototype.removeAllListeners=Se.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};Se.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};Se.prototype.emitReserved=Se.prototype.emit;Se.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+e]||[]};Se.prototype.hasListeners=function(e){return!!this.listeners(e).length};var xd=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\")(),RM=\"arraybuffer\";function nR(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var $M=St.setTimeout,IM=St.clearTimeout;function vd(e,t){t.useNativeTimers?(e.setTimeoutFn=$M.bind(St),e.clearTimeoutFn=IM.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var FM=1.33;function jM(e){return typeof e==\"string\"?DM(e):Math.ceil((e.byteLength||e.size)*FM)}function DM(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 oR(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function LM(e){let t=\"\";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+=\"&\"),t+=encodeURIComponent(r)+\"=\"+encodeURIComponent(e[r]));return t}function MM(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 NM=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type=\"TransportError\"}},fv=class extends Se{constructor(e){super(),this.writable=!1,vd(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 NM(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=uv(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=LM(e);return t.length?\"?\"+t:\"\"}},BM=class extends fv{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)};EM(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,AM(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]=oR()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},sR=!1;try{sR=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var VM=sR;function zM(){}var UM=class extends BM{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}},Bo=class Wu extends Se{constructor(t,r,n){super(),this.createRequest=t,vd(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=nR(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=Wu.requestsCount++,Wu.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=zM,t)try{this._xhr.abort()}catch{}typeof document<\"u\"&&delete Wu.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()}};Bo.requestsCount=0;Bo.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",LA);else if(typeof addEventListener==\"function\"){let e=\"onpagehide\"in St?\"pagehide\":\"unload\";addEventListener(e,LA,!1)}}function LA(){for(let e in Bo.requests)Bo.requests.hasOwnProperty(e)&&Bo.requests[e].abort()}var WM=(function(){let e=iR({xdomain:!1});return e&&e.responseType!==null})(),HM=class extends UM{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=WM&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Bo(iR,this.uri(),e)}};function iR(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!t||VM))return new XMLHttpRequest}catch{}if(!t)try{return new St[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var aR=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",qM=class extends fv{get name(){return\"websocket\"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=aR?{}:nR(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;cv(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&xd(()=>{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]=oR()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},ib=St.WebSocket||St.MozWebSocket,GM=class extends qM{createSocket(e,t,r){return aR?new ib(e,t,r):t?new ib(e,t):new ib(e)}doWrite(e,t){this.ws.send(t)}},KM=class extends fv{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=TM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=OM();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&&xd(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},XM={websocket:GM,webtransport:KM,polling:HM},YM=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,ZM=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function vb(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=YM.exec(e||\"\"),s={},i=14;for(;i--;)s[ZM[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=JM(s,s.path),s.queryKey=QM(s,s.query),s}function JM(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 QM(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var _b=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",Hu=[];_b&&addEventListener(\"offline\",()=>{Hu.forEach(e=>e())},!1);var qu=class Gu extends Se{constructor(t,r){if(super(),this.binaryType=RM,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=vb(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=vb(r.host).host);vd(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=MM(this.opts.query)),_b&&(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\"})},Hu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=rR,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&&Gu.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\",Gu.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+=jM(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,xd(()=>{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(Gu.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(),_b&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Hu.indexOf(this._offlineEventListener);n!==-1&&Hu.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};qu.protocol=rR;var eN=class extends qu{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;qu.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;qu.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}},lR=class extends eN{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=>XM[n]).filter(n=>!!n)),super(e,r)}},h7=lR.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=vb(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 cR={};X(cR,{Decoder:()=>fN,Encoder:()=>uN,PacketType:()=>J,isPacketValid:()=>mN,protocol:()=>cN});var rN=typeof ArrayBuffer==\"function\",nN=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,uR=Object.prototype.toString,oN=typeof Blob==\"function\"||typeof Blob<\"u\"&&uR.call(Blob)===\"[object BlobConstructor]\",sN=typeof File==\"function\"||typeof File<\"u\"&&uR.call(File)===\"[object FileConstructor]\";function dv(e){return rN&&(e instanceof ArrayBuffer||nN(e))||oN&&e instanceof Blob||sN&&e instanceof File}function Ku(e,t){if(!e||typeof e!=\"object\")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Ku(e[r]))return!0;return!1}if(dv(e))return!0;if(e.toJSON&&typeof e.toJSON==\"function\"&&arguments.length===1)return Ku(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Ku(e[r]))return!0;return!1}function iN(e){let t=[],r=e.data,n=e;return n.data=wb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function wb(e,t){if(!e)return e;if(dv(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]=wb(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]=wb(e[n],t));return r}return e}function aN(e,t){return e.data=Sb(e.data,t),delete e.attachments,e}function Sb(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]=Sb(e[r],t);else if(typeof e==\"object\")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Sb(e[r],t));return e}var lN=fj(qj(),1),kb=(0,lN.default)(\"socket.io-parser\"),fR=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],cN=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 uN=class{constructor(e){this.replacer=e}encode(e){return kb(\"encoding packet %j\",e),(e.type===J.EVENT||e.type===J.ACK)&&Ku(e)?this.encodeAsBinary({type:e.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=\"\"+e.type;return(e.type===J.BINARY_EVENT||e.type===J.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)),kb(\"encoded %j as %s\",e,t),t}encodeAsBinary(e){let t=iN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},fN=class dR extends Se{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 dN(r),r.attachments===0&&super.emitReserved(\"decoded\",r)):super.emitReserved(\"decoded\",r)}else if(dv(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(!pR(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(dR.isPayloadValid(n.type,s))n.data=s;else throw new Error(\"invalid payload\")}return kb(\"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 Uf(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r==\"string\"||Uf(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&fR.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},dN=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=aN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function pN(e){return typeof e==\"string\"}var pR=Number.isInteger||function(e){return typeof e==\"number\"&&isFinite(e)&&Math.floor(e)===e};function hN(e){return e===void 0||pR(e)}function Uf(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function gN(e,t){switch(e){case J.CONNECT:return t===void 0||Uf(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]==\"number\"||typeof t[0]==\"string\"&&fR.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t==\"string\"||Uf(t);default:return!1}}function mN(e){return pN(e.nsp)&&hN(e.id)&&gN(e.type,e.data)}function Nt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var yN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),hR=class extends Se{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(yN.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:J.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:J.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 J.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 J.EVENT:case J.BINARY_EVENT:this.onevent(e);break;case J.ACK:case J.BINARY_ACK:this.onack(e);break;case J.DISCONNECT:this.ondisconnect();break;case J.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:J.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:J.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 Ko(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}Ko.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};Ko.prototype.reset=function(){this.attempts=0};Ko.prototype.setMin=function(e){this.ms=e};Ko.prototype.setMax=function(e){this.max=e};Ko.prototype.setJitter=function(e){this.jitter=e};var Cb=class extends Se{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,vd(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 Ko({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||cR;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 lR(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){xd(()=>{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 hR(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)}},oa={};function ab(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=oa[o]&&s in oa[o].nsps,a=t.forceNew||t[\"force new connection\"]||t.multiplex===!1||i,l;return a?l=new Cb(n,t):(oa[o]||(oa[o]=new Cb(n,t)),l=oa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(ab,{Manager:Cb,Socket:hR,io:ab,connect:ab});M();M();M();aM(yL);I();var gR=(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\"?bd(a):tn(r[i],a):r[i]=a}),s&&(r.schema=s))},mR=(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=FC(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\")&&bd(r.designSystem)};var bN={success:\"green\",error:\"red\",warning:\"yellow\"},yR=(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)}},bR={state:{notifications:[]},Notifications:{position:\"fixed\",left:\"A2\",bottom:\"Z2\",zIndex:\"999\",childExtends:\"Notification\",childProps:({state:e})=>({animationDuration:\"C\",background:bN[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 xN=!1,vN=()=>xN?\"http://localhost:8080\":\"https://api.symbols.app\",_N=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}},wN=async e=>{try{let t=e||vN(),r=await A.fetch(`${t}/service-token`,{method:\"GET\"}),n;try{let o=await r.clone().json();if(o&&typeof o.token==\"string\")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||\"\").replace(/\\s+/gu,\"\")||void 0}catch(t){console.error(\"[sync] Failed to fetch service-token\",t)}},_R=(e,t,r,n)=>{e.on(\"snapshot\",gR(t,r,n)),e.on(\"ops\",mR(t,r,n)),e.on(\"clients\",o=>{n.editor?.verbose&&yR(o,t,r)}),e.on(\"disconnect\",o=>{n.editor?.verbose&&console.info(\"[sync] disconnected\",o)})},SN=async(e,t,r,n)=>{let o=await wN(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=Ao(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)\")}),_R(a,e,t,r),a},kN=(e,t,r)=>{let n=Ao({transports:[\"websocket\",\"polling\"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on(\"connect\",()=>{r.editor?.verbose!==!1&&console.info(\"[sync] connected (runner)\")}),_R(n,e,t,r),n.on(\"reload\",()=>{typeof A<\"u\"&&A.location&&A.location.reload()}),n},CN=async(e,t,r)=>{let{mode:n,baseUrl:o}=_N(r);return n?n===\"collab\"?SN(e,t,r,o):n===\"runner\"?kN(e,t,r):null:null},AN={onInit:CN};var wR=e=>typeof e>\"u\",xR=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),vR=e=>e?.editor?.runtime===\"runner\",SR=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},kR={name:\"sync\",beforeCreate(e,t){let r=t&&t.editor;(r&&!wR(r.liveSync)?r.liveSync:xR(t)||vR(t))&&(xR(t)&&!vR(t)&&!t?.key||SR(e,AN))}},CR={name:\"notifications\",beforeCreate(e,t){if(!t)return;let r=wR(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&SR(e,bR)}};I();function AR(e){return C(e)?e:$(e)?e.find(t=>C(t)):\"\"}function hv(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&AR(e.extends),n=e.parent&&e.parent.childExtends&&AR(e.parent.childExtends);return(t||r||n||\"\").split(\"_\")[0].split(\".\")[0].split(\"+\")[0]}function _d(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=hv(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?_d(e.parent):o&&(t[o]||r[o])?e:_d(e.parent)}var EN=(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}))}},pv={\".preventSelect\":{userSelect:\"none\"},\"!preventSelect\":{userSelect:\"auto\"},onInspect:EN,onMousemove:(e,t,r)=>{let n=e.target.ref,o=_d(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=hv(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=_d(n);if(!o)return;let s=hv(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(w(t)){let{Content:r,...n}=t;for(let o in n)co[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=`\n display: block !important;\n top: ${a-6}px;\n left: ${i-6}px;\n width: ${l+12}px;\n height: ${c+12}px;\n `}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},ER={name:\"inspect\",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(pv):e.extends?e.extends=[e.extends,pv]:e.extends=[pv]}};var ON=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(C(e)?e:\"smblsapp\");if(t.define=t.define||po,t.cssPropsRegistry=we,t.window=v1(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(f=>typeof f==\"string\")){let{resolveSharedLibraries:f}=await Promise.resolve().then(()=>(I(),$_));t.sharedLibraries=await f(t.sharedLibraries)}R1(t)}let[s,i]=O1(o,t);t.designSystem=s,t.registry=i,t.cases||(t.cases={}),t.shorthand&&du.prepareContext(t);let a=T1(e,t);t.state=a,zs(a),t.pages=P1(e,t),t.components=_1(t),t.utils=w1(t),Er[t.packageManager]&&(t.dependencies=await k1(t)),t.methods=S1(t),t.routerOptions=i1(e,t),t.defaultExtends=[Wc],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&w(t.globalScope)&&(t.globalScope=cs(t.globalScope));let l=(d,f)=>{let p=f?d[f]:d;if(!w(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(cu);for(let d in Di)d in t.functions||(t.functions[d]=Di[d])}if(c(\"helmet\")||t.plugins.push(f1),t.fetch&&!c(\"fetch\")&&t.plugins.push(xh),t.designSystem?.typography?.useCapsize!==!1&&!c(\"capsize\")&&(t.plugins.push(j1),t.cssPropsRegistry.useCapsize=F1),t.shorthand&&!c(\"shorthand\")&&t.plugins.push(du),t.analyze&&!c(\"analyze\")){let d=t.analyze===!0?{}:t.analyze;t.analyze=_y(d),t.plugins.push(Ui)}return t.sync!==!1&&!c(\"sync\")&&t.plugins.push(kR),t.inspect&&!c(\"inspect\")&&t.plugins.push(ER),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!c(\"notifications\")&&t.plugins.push(CR),t},gv=async(e,t)=>{w(t)||(t={}),tr(e)?(e={},t.parent=e):C(e)?(e={},t.key=e):w(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 ON(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&&w(t.app))for(let l in t.app)e[l]===void 0&&(e[l]=t.app[l]);e.extends=m1(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await C1({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 TN($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},TN=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 PN(o),l},PN=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var mv=(e,t)=>ae(e,w(t)?t:{}),RN=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},$N=()=>{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}},OR=e=>{let t=$N();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t===\"runner\"&&typeof e.editor.livesync>\"u\"&&(e.editor.livesync=!0))},yv=(e,t=Lr,r)=>{let n={...Lr,...mv(t,r)};return OR(n),RN(n),gv(e,n).then(s=>{if(oy(s,n),s.destroy=()=>Ii(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})},IN=(e,t=Lr,r)=>{let n=yv(e,t,r),o={...Lr,...mv(t,r)},s=o.key;return u1(n,s,{utils:$i,...o}),n},FN=async(e,t=Lr,r)=>{let n={...Lr,...mv(t,r)};OR(n);let o=t.key;await c1(o,n);let s=await gv(e,n);return oy(s,n),s.destroy=()=>Ii(s),n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},jN=(e={},t=Lr,r)=>yv({deps:{isUndefined:Pe},...e},ae({domqlOptions:{onlyResolveExtends:!0}},t),r);Yc(Lc);return jR(DN);})();\n";