smbls 3.7.3 → 3.7.4

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,14 +1,14 @@
1
- "use strict";var Smbls=(()=>{var la=Object.defineProperty;var ty=Object.getOwnPropertyDescriptor;var ey=Object.getOwnPropertyNames;var ry=Object.prototype.hasOwnProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Nt=(t,e)=>{for(var r in e)la(t,r,{get:e[r],enumerable:!0})},ny=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ey(e))!ry.call(t,o)&&o!==r&&la(t,o,{get:()=>e[o],enumerable:!(n=ty(e,o))||n.enumerable});return t};var oy=t=>ny(la({},"__esModule",{value:!0}),t);var Ul,Vl,F,L,Yr=G(()=>{Ul=globalThis,Vl=globalThis,F=globalThis,L=F.document});var me,oo,Dt,Xr=G(()=>{Yr();me=t=>(typeof Node=="object"?t instanceof F.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,oo=t=>(typeof HTMLElement=="object"?t instanceof F.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Dt=t=>typeof F<"u"&&(F.Node&&t instanceof F.Node||F.Window&&t instanceof F.Window||t===F||t===document)});var g,b,ct,y,Qr,fa,S,ua,R,kt,K,so,Ot,fr,xt=G(()=>{Xr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,b=t=>typeof t=="string",ct=t=>typeof t=="number",y=t=>typeof t=="function",Qr=t=>t===!0||t===!1,fa=t=>t===null,S=t=>Array.isArray(t),ua=t=>t instanceof Date,R=t=>t===null?!1:typeof t=="object",kt=t=>t!==void 0,K=t=>t===void 0,so={boolean:Qr,array:S,object:g,string:b,date:ua,number:ct,null:fa,function:y,objectLike:R,node:me,htmlElement:oo,defined:kt},Ot=t=>(...e)=>e.some(r=>so[r](t)),fr=t=>(...e)=>!e.some(r=>so[r](t))});var jl,zl,io,Hl,Jr,ao,ql,Wl,co,Gl,Kl,Yl,Xl,Ql,Jl,Zl,Zr,ur,pr=G(()=>{ge();xt();jl=(t,e)=>e.every(r=>t.includes(r)),zl=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},io=(t,e)=>{if(b(e)&&(e=parseInt(e)),ct(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},Hl=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},Jr=(...t)=>[].concat(...t),ao=(t,e=[])=>t.reduce((r,n)=>M(r,j(n,{exclude:e}),e),{}),ql=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Wl=(t,e)=>{if(!S(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},co=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Gl=(t,e)=>t.filter(r=>r!==e),Kl=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},Yl=(t,e,r)=>{let n=[...t],o=n.indexOf(e),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},Xl=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},Ql=(t,e)=>t.filter(r=>!e.includes(r)),Jl=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Zl=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Zr=t=>S(t)?[...new Set(t)]:t,ur=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function ef(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=sy[n],i=e||this.state||{},a=this;return t.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let d=a?.context?.functions?.[u];if(d){let h=pa(i,p);return String(d.call(a,h!==void 0?h:p)??"")}return""}if(f){let d=(f.match(/\.\.\//g)||[]).length,h=i;for(let x=0;x<d;x++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=pa(h,p);return String(m??"")}else{let d=pa(i,p);return String(d??"")}})}var lo,tf,sy,pa,re,rf,iy,nf,of,sf,ay,af,cf,tn=G(()=>{lo=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},tf=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},sy={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},pa=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);re=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,rf=(t,e)=>{let r=t.split(`
1
+ "use strict";var Smbls=(()=>{var la=Object.defineProperty;var ty=Object.getOwnPropertyDescriptor;var ey=Object.getOwnPropertyNames;var ry=Object.prototype.hasOwnProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Nt=(t,e)=>{for(var r in e)la(t,r,{get:e[r],enumerable:!0})},ny=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ey(e))!ry.call(t,o)&&o!==r&&la(t,o,{get:()=>e[o],enumerable:!(n=ty(e,o))||n.enumerable});return t};var oy=t=>ny(la({},"__esModule",{value:!0}),t);var Ul,Vl,F,L,Xr=G(()=>{Ul=globalThis,Vl=globalThis,F=globalThis,L=F.document});var me,so,Dt,Qr=G(()=>{Xr();me=t=>(typeof Node=="object"?t instanceof F.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,so=t=>(typeof HTMLElement=="object"?t instanceof F.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Dt=t=>typeof F<"u"&&(F.Node&&t instanceof F.Node||F.Window&&t instanceof F.Window||t===F||t===document)});var g,y,ct,b,Jr,fa,S,ua,R,kt,K,io,Ot,fr,xt=G(()=>{Qr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,y=t=>typeof t=="string",ct=t=>typeof t=="number",b=t=>typeof t=="function",Jr=t=>t===!0||t===!1,fa=t=>t===null,S=t=>Array.isArray(t),ua=t=>t instanceof Date,R=t=>t===null?!1:typeof t=="object",kt=t=>t!==void 0,K=t=>t===void 0,io={boolean:Jr,array:S,object:g,string:y,date:ua,number:ct,null:fa,function:b,objectLike:R,node:me,htmlElement:so,defined:kt},Ot=t=>(...e)=>e.some(r=>io[r](t)),fr=t=>(...e)=>!e.some(r=>io[r](t))});var jl,zl,ao,Hl,Zr,co,ql,Wl,lo,Gl,Kl,Yl,Xl,Ql,Jl,Zl,tn,ur,pr=G(()=>{ge();xt();jl=(t,e)=>e.every(r=>t.includes(r)),zl=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},ao=(t,e)=>{if(y(e)&&(e=parseInt(e)),ct(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},Hl=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},Zr=(...t)=>[].concat(...t),co=(t,e=[])=>t.reduce((r,n)=>M(r,j(n,{exclude:e}),e),{}),ql=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Wl=(t,e)=>{if(!S(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},lo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Gl=(t,e)=>t.filter(r=>r!==e),Kl=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},Yl=(t,e,r)=>{let n=[...t],o=n.indexOf(e),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},Xl=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},Ql=(t,e)=>t.filter(r=>!e.includes(r)),Jl=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Zl=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},tn=t=>S(t)?[...new Set(t)]:t,ur=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function ef(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=sy[n],i=e||this.state||{},a=this;return t.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let d=a?.context?.functions?.[u];if(d){let h=pa(i,p);return String(d.call(a,h!==void 0?h:p)??"")}return""}if(f){let d=(f.match(/\.\.\//g)||[]).length,h=i;for(let x=0;x<d;x++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=pa(h,p);return String(m??"")}else{let d=pa(i,p);return String(d??"")}})}var fo,tf,sy,pa,re,rf,iy,nf,of,sf,ay,af,cf,en=G(()=>{fo=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},tf=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},sy={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},pa=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);re=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,rf=(t,e)=>{let r=t.split(`
2
2
  `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,f=!1;for(let l=0;l<r.length;l++)if(a.test(r[l])&&!f){if(f=!0,n=l+1,s=r[l].indexOf(e)+1,r[l].includes("{}")){o=n,i=r[l].indexOf("{}")+3;break}let u=r[l].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=l+1,i=r[l].length+1;break}}else if(f&&(c+=(r[l].match(/{/g)||[]).length,c+=(r[l].match(/\[/g)||[]).length,c-=(r[l].match(/}/g)||[]).length,c-=(r[l].match(/]/g)||[]).length,c===0)){o=l+1,i=r[l].lastIndexOf("}")!==-1?r[l].lastIndexOf("}")+2:r[l].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},iy=/\\([0-7]{1,3})/g,nf=t=>t.replace(iy,(e,r)=>String.fromCharCode(parseInt(r,8))),of=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),sf=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),ay=/[^a-zA-Z0-9\s]/g,af=t=>t.replace(ay,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),cf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var De,fo,lf,At,Fe,en,uo,po,dr=G(()=>{De=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"]),fo=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),lf=["ref","parent","__element","__depends","__ref","__children","root"],At=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"]),Fe=new Set(["update","__element"]),en=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"]),uo=new Set(["node","context","extends","__element","__ref",...en,...At,...Fe]),po=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var ff,$e,O,uf,Y,M,pf,j,ho,cy,mo,ly,fy,go,ne,df,hf,da,mf,gf,oe,hr,it,ha,uy,yo,bo,ma,xo,So,_o,wo,vo,yf,bf,ge=G(()=>{Yr();xt();pr();tn();Xr();dr();ff=process.env.NODE_ENV,$e=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,O=(t,e,r,n)=>{if(y(t)){if(!e)return;let o=t.call(e,e,r||e.state,n||e.context);if(o&&typeof o.then=="function"){let s;return o.then(i=>{s=i}),s}return o}return t},uf=(t,e,r)=>{for(let n in e)t[n]=O(e[n],r)},Y=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&($e(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},M=(t,e,r=uo)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||$e(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];R(s)&&R(i)?M(s,i,r):s===void 0&&(t[o]=i)}return t},pf=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&($e(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},j=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||F||globalThis;if(!R(t)||Dt(t))return t;if(i.has(t))return i.get(t);let l=S(t)?[]:{};i.set(t,l);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||$e(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Dt(d)){l[p]=d;continue}if(a&&p==="extends"&&S(d)){l[p]=ao(d,r);continue}if(y(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}R(d)?l[p]=j(d,{...e,visited:i}):l[p]=d}}return l},ho=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(y(n))e[r]=n.toString();else if(g(n))e[r]={},ho(n,e[r]);else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];g(i)?(o[s]={},ho(i,o[s])):y(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},cy=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),mo=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),ay=/[^a-zA-Z0-9\s]/g,af=t=>t.replace(ay,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),cf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var De,uo,lf,At,Fe,rn,po,ho,dr=G(()=>{De=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"]),uo=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),lf=["ref","parent","__element","__depends","__ref","__children","root"],At=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"]),Fe=new Set(["update","__element"]),rn=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"]),po=new Set(["node","context","extends","__element","__ref",...rn,...At,...Fe]),ho=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var ff,$e,O,uf,Y,M,pf,j,mo,cy,go,ly,fy,yo,ne,df,hf,da,mf,gf,oe,hr,it,ha,uy,bo,xo,ma,So,_o,wo,vo,Co,yf,bf,ge=G(()=>{Xr();xt();pr();en();Qr();dr();ff=process.env.NODE_ENV,$e=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,O=(t,e,r,n)=>{if(b(t)){if(!e)return;let o=t.call(e,e,r||e.state,n||e.context);if(o&&typeof o.then=="function"){let s;return o.then(i=>{s=i}),s}return o}return t},uf=(t,e,r)=>{for(let n in e)t[n]=O(e[n],r)},Y=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&($e(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},M=(t,e,r=po)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||$e(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];R(s)&&R(i)?M(s,i,r):s===void 0&&(t[o]=i)}return t},pf=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&($e(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},j=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||F||globalThis;if(!R(t)||Dt(t))return t;if(i.has(t))return i.get(t);let l=S(t)?[]:{};i.set(t,l);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||$e(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Dt(d)){l[p]=d;continue}if(a&&p==="extends"&&S(d)){l[p]=co(d,r);continue}if(b(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}R(d)?l[p]=j(d,{...e,visited:i}):l[p]=d}}return l},mo=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(b(n))e[r]=n.toString();else if(g(n))e[r]={},mo(n,e[r]);else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];g(i)?(o[s]={},mo(i,o[s])):b(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},cy=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),go=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
4
  `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let f=0;f<s.length;f++)if(cy.has(s[f])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,S(i)){o+=`[
5
- `;for(let f of i)R(f)&&f!==null?o+=`${n} ${mo(f,e+2)},
6
- `:b(f)?o+=`${n} '${f}',
5
+ `;for(let f of i)R(f)&&f!==null?o+=`${n} ${go(f,e+2)},
6
+ `:y(f)?o+=`${n} '${f}',
7
7
  `:o+=`${n} ${f},
8
- `;o+=`${n} ]`}else R(i)?o+=mo(i,e+1):b(i)?o+=lo(i,[`
8
+ `;o+=`${n} ]`}else R(i)?o+=go(i,e+1):y(i)?o+=fo(i,[`
9
9
  `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
- `}return o+=`${n}}`,o},ly=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],fy=/^["[{]/,go=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!ly.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||fy.test(e)&&!o)},ne=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(b(n))if(go(n))try{e[r]=F.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(b(i))if(go(i))try{o.push(F.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(ne(i)):o.push(i)}}else g(n)?e[r]=ne(n,e[r]):e[r]=n}return e},df=(t,e={verbose:!0})=>{try{return t?F.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},hf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),da=t=>{for(let e in t)return!1;return!0},mf=t=>g(t)&&da(t),gf=()=>Object.create(null),oe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&$e(s)||e[s]!==void 0&&(t[s]=e[s]);return t},hr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)$e(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!R(t)||!R(e)||Dt(t)||Dt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&$e(a))continue;let c=t[a],f=e[a];Dt(f)?t[a]=f:R(c)&&R(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},ha=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!ha(t[i],e[i],r))return!1}return!0},uy=new Set(["node","__ref"]),yo=(t,e,r=uy)=>{if(t===e)return!0;if(!R(t)||!R(e)||Dt(t)||Dt(e))return t===e;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 c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let f=a[c],l=i[c];if(Dt(f)||Dt(l)){if(f!==l)return!1}else if(R(f)&&R(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},bo=(t,e)=>{if(e==null)return t;if(Ot(e)("string","number"))delete t[e];else if(S(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},ma=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=ma(t[r]));return e},xo=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},So=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},_o=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},wo=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},vo=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(ff==="test"||ff==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},yf=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.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(t)},bf=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var Co,Eo,ko,Oo=G(()=>{ge();Co=(function(){let t=0;function e(){return t++,t}return e})(),Eo=Co,ko=(t,e,r)=>(O(r,t)||r||t.key||Co()).toString()});var Yt,xf,Le,ga,Sf,_f,wf,Xt,vf,mr,ya=G(()=>{Yt=process.env.NODE_ENV,xf=Yt,Le=(t=Yt)=>t==="production",ga=(t=Yt)=>t==="testing"||t==="test",Sf=ga,_f=(t=Yt)=>t==="staging",wf=(t=Yt)=>t==="local",Xt=(t=Yt)=>t==="development"||t==="dev"||t==="local",vf=(t,e=Yt)=>e[t],mr=(t=Yt)=>!Le(t)});function Cf(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function Af(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var Ef,kf,py,Of,Me,Be,rn,Ao=G(()=>{Ef=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},kf=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},py=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Of=t=>py.test(t),Me=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Be=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},rn=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var gr,Tf=G(()=>{xt();gr=(t,e)=>{let{__ref:r}=t;y(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var Rf,If,Pf=G(()=>{Rf=(t,...e)=>{t&&e.map(r=>console.log(r))},If=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Lf(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function Mf(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var Nf,Df,Ff,$f,Bf=G(()=>{xt();Yr();Nf=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Df=(t,e,r=365)=>{if(K(L)||K(L.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;L.cookie=`${t}=${e};${o};path=/`},Ff=t=>{if(K(L)||K(L.cookie))return;let e=`${t}=`,n=decodeURIComponent(L.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(e)===0)return s.substring(e.length,s.length)}return""},$f=t=>{K(L)||K(L.cookie)||(L.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var nn,Ue,ye,ba=G(()=>{nn={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"])},Ue=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"]),ye=t=>nn.body.has(t)});var xa,Uf,on,Io,Tt,Po,Sa,No,Vf,Do,_a,wa,Fo,va,sn,dy,se,jf,To,$o,zf,Ro,Hf,qf,Ca,Ea,ka,Oa,Aa,Ta,Lo,Mo=G(()=>{pr();Ra();ge();xt();xa=process.env.NODE_ENV,Uf=t=>t.sourcemap!==!1&&xa!=="production",on=t=>{if(t.includes("+"))return t.split("+").filter(Rt);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Rt(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Io=(t,e,r)=>{let n=[],o=on(r);o&&(n=[...o]);let s=t.extends;return s&&(n=S(s)?[...n,...s]:[...n,s]),n},Tt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},Po=(t,e)=>{if(!t)return e;let{extends:r}=e,n=S(r)?r:[r],o=S(t)?t:[t];return{...e,extends:Jr(o,n)}},Sa=()=>Math.random().toString(36).substring(2),No={},Vf={},Do=t=>No[t.__hash],_a=(t,e)=>{let r=Sa();return b(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(No[r]=e),e},wa=(t,e)=>t.__hash?e.concat(Do(t)):_a(t,e),Fo=(t,e,r,n=new Set,o,s)=>{for(let i of t)S(i)?Fo(i,e,r,n,o,s):sn(i,e,r,n,o,void 0,s);return e},va=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&sn(a,e,r,n,o,s,i),e},sn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(S(t))return Fo(t,e,r,n,o,i);let a=s;return b(t)?(a=t,t=$o(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?va(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},dy=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),se=(t,e,r,n,o)=>{e=j(e);for(let s in e){if(dy.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?g(a)&&!S(a)?(r[s]=r[s]||{},jf(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];Rt(s)?t[s]=se(i,a,c,n,f):se(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(S(i)&&S(a))t[s]=i.concat(a);else if(S(i)&&g(a)){let c=se({},i);t[s]=se(c,a)}}}}return t},jf=(t,e,r)=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="__proto__"||n==="constructor"||n==="prototype")continue;let o=e[n];g(o)&&!S(o)?(t[n]=t[n]||{},jf(t[n],o,r)):t[n]=r}},To=(t,e,r)=>t.reduce((n,o,s)=>{let i=j(o),a=r?r[s]:void 0;return se(n,i,e,a)},{}),$o=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(b(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(xa==="test"||xa==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},zf=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Ro=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Do(t)||[];let s=sn(t,[],e,new Set,r,void 0,n);return r?s:wa(t,s)},Hf=(t,e)=>{if(!t)return e;let r=S(t)?t:[t];return Jr(r,e)},qf=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Rt(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Ca=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Tt([c,...a],t):Tt(t.extends,t)}else Tt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Tt(i,t):Tt(t.extends,t)}else Tt(t.extends,t);return Ea(t,e,r),ka(t,e,r),Oa(t,e,r),t.component&&Tt(O(t.component,t),t),o.defaultExtends&&Tt(o.defaultExtends,t),Zr(n.__extends)},Ea=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Tt(e.props?.childProps.extends,t),o.__extends},ka=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Tt(i,t),o.__extends},Oa=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Tt(s,t),o.__extends},Aa=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Uf(r),c=a?[...o.__extends]:null,f=Zr(o.__extends.map((l,u)=>$o(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&b(m)&&l.set(h,m)}let u=[],p=Ro(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=Ro(f,s);o.__extendsStack=l}return o.__extendsStack},Ta=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Uf(r)){let s={},i=n.__extendsNames||[],a=To(o,s,i),c={};se(t,a,c,void 0,s),n.__sourcemap=c}else{let s=To(o);se(t,s)}return t},Lo=(t,e,r={})=>(Ca(t,e,r),Aa(t,e,r),Ta(t,e,r),t)});function Wf(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Gf(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Bo(t,e,r){let{context:n}=e||{},[o]=on(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Rt,Ra=G(()=>{Mo();xt();Rt=t=>{if(!b(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Kf(t,e){let{props:r,on:n}=e,o=re(t.split("on")[1]),s=n[o],i=r[t];y(s)?n[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:n[o]=i}var Yf=G(()=>{tn();xt()});function Pa(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(y(o)||o!=null&&Me(this.context))){let h=re(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||y(a),l=g(c)||y(c);if(f||l)continue;let u=n.charAt(0);if(Qf.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Ia.test(n)||Xf.test(n)||my(o),d=De.has(n);!p&&!d&&(t.props[n]=o,delete t[n],r.push(n))}return t}function yr(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=y(o)||o!=null&&Me(this.context);if(s&&i){Kf(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Qf.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||y(c),u=g(f)||y(f),p=Ia.test(n)||Xf.test(n),d=De.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function an(t=this){let e=[];return Pa.call(this,t,{cachedKeys:e}),yr.call(this,t,{cachedKeys:e}),t}function zo(t={}){return t.on||(t.on={}),t.props||(t.props={}),an.call(this,t)}function Na(t,e){this.__element.update({props:t},e)}function qo(t){let e={update:Na.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Ia,Xf,Qf,hy,my,jo,Uo,Jf,Ho,Wo,Go,Da,Vo,cn,Ko,Fa=G(()=>{dr();Yf();ge();xt();tn();Ao();Ia=/^[A-Z]/,Xf=/^\d+$/,Qf=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),hy=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),my=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(hy.has(e)||Ia.test(e))return!0;return!1},jo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return R(n)?{...n}:(o.__propsStack.push(n),{})};Uo=t=>Ot(t)("string","number")?{inheritedString:t}:t,Jf=(t,e)=>!t||!e.length?!1:e.includes(t),Ho=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Uo(i);n.unshift(c)}if(s){let c=Uo(s);n.unshift(c)}return n};Wo=t=>{let e=new Set;return t.filter(r=>!r||Fe.has(r)||e.has(r)?!1:(e.add(r),!0))},Go=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Fe.has(o))return n;for(;y(o);)o=O(o,e);return M(n,j(o,{exclude:Fe}))},{}),qo(e),e.props),Da=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Ho(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),S(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=Wo(o),n.__propsStack},Vo=(t,e)=>{let{__ref:r}=t,n=Da(t,e);n.length?Go(n,t):(r.__propsStack=[],t.props={})},cn=function(t,e,r){let{__ref:n}=t;if(n.__if)Vo(t,e);else try{Vo(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return qo(t),t},Ko=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Ho(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Wo(s),n.__propsStack.length&&Go(n.__propsStack,e),e}});var Zf,$a,La,Ma,Ba,Yo,Ua,Va,ja,Xo,tu=G(()=>{Mo();Oo();Xr();Fa();ba();xt();Zf=process.env.NODE_ENV,$a=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=nn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},La=(t,e,r)=>{if(t===void 0)return(Zf==="test"||Zf==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ot(t)("string","number")?$a(t,e,r):y(t)?{props:t}:t},Ma=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ba=(t,e,r,n,o)=>{if(!e)return o;if(me(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Yo=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Ua=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Va=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),ja=(t,e,r)=>{let n=Ma(t,e);return t.__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=Io(t,e,r),n.path=Ua(t,e,r),n},Xo=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:La(t,e,r);if(!i)return;let a=Ba(i,e,r,n,o),c=ko(i,a,r);ja(i,a,c);let f=jo(i,a,c),l=Va(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Qo,Ve,je,ze,He,Jo,qe,ln,Zo,ts,es,eu=G(()=>{pr();dr();ge();xt();Qo=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ot(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Ve=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},je=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},ze=(t,e,r={})=>{let n=b(t)?t.split("/"):[t],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 c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},He=(t,e,r={})=>{let o=t.__ref.__state;if(!qe(t))return;let s=Ve(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=je(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return ze(o,i,r)},Jo=(t,e)=>{let r=t.__ref,n=He(t,e);if(n===void 0)return t.state;if(Ot(n)("object","array"))return j(n);if(Ot(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},qe=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ot(r)("number","string","boolean"))},ln=function(t){return R(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Zo=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},ts=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=j(n,At),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?ur(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},es=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){M(t,e,At);return}(o?hr:it)(t,e,At)}});var fn,ru=G(()=>{fn=(t,e)=>{let{__ref:r}=t;t.scope||(t.scope=e.scope||r.root?.scope||{})}});var nu,br,H,rs,St,za=G(()=>{xt();Ao();nu=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},br=(t,e,r,n,o)=>{if(t=Be(t,e),!!y(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},H=(t,e,r)=>{if(!e)throw new Error("Element is required");rn(t,e,r);let n=nu(t,e);if(n){let{state:o,context:s}=e;return br(n,e,o,s,r)}},rs=(t,e,r,n,o,s)=>{if(t=Be(t,r),!!y(t))try{let i=t.call(r,e,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}},St=(t,e,r,n)=>{rn(t,r,e,n);let o=nu(t,r);if(o){let{state:s,context:i}=r;return rs(o,e,r,s,i,n)}}});var ou,lt,Ha=G(()=>{ou={},lt={}});var iu={};Nt(iu,{setup:()=>gy,supabaseAdapter:()=>su});var gy,qa,yy,su,au=G(()=>{"use strict";gy=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");return n||(n=(await import("@supabase/supabase-js")).createClient),su(n(s,e,o))},qa=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},yy=(t,{limit:e,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;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},su=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=qa(s,n),s=yy(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=qa(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=qa(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var lu={};Nt(lu,{restAdapter:()=>cu,setup:()=>xy});var by,be,xy,cu,fu=G(()=>{"use strict";by=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);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()},be=async(t,e)=>{let r=await globalThis.fetch(t,e),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}},xy=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return cu(t,e,r,n)},cu=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await be(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await be(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await be(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:x,headers:_,baseUrl:w})=>{let C={...u};return p&&(C.select=p),d&&(C.limit=d),h&&(C.offset=h),x&&(C.single=!0),m&&(typeof m=="string"?C.order=m:Array.isArray(m)?C.order=m.map(P=>`${P.by}:${P.asc===!1?"desc":"asc"}`).join(","):m.by&&(C.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),be(by(w||t,l||"",C),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>be(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>be(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let x=p?.id||u?.id,_=x?`${l}/${x}`:l;return be(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return be(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var pu={};Nt(pu,{localAdapter:()=>uu,setup:()=>_y});var Wa,Sy,_y,uu,du=G(()=>{"use strict";Wa=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Sy=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,f)=>c[i]<f[i]?a?-1:1:c[i]>f[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}},_y=async({data:t,...e})=>uu(t,e),uu=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>Wa(m,u));return Sy(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let x={id:m.id||++f,...m};return p.push(x),x});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(Wa(d[m],p)){let x={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],x)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)Wa(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,x)=>{u&&u!=="*"&&u!==x.event||p(h,m,x)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var yn={};Nt(yn,{createAdapter:()=>Cy,default:()=>Dy,executeFetch:()=>gn,fetchPlugin:()=>Ja,initAdapterAuth:()=>ss,parseDuration:()=>un,queryClient:()=>Ny,registerAdapter:()=>vy,resolveDb:()=>bu});var wy,yu,vy,Cy,bu,un,_t,xu,ns,Ey,mn,pn,dn,Ga,Xa,os,ky,hu,Ka,Su,_u,xr,mu,Oy,gu,Ay,wu,vu,ss,Qa,Ft,hn,We,Qt,xe,Ty,Ry,Iy,Ya,Py,gn,Ny,Ja,Dy,Ge=G(()=>{"use strict";v();wy=["select","rpc","insert","update","delete","subscribe"],yu={supabase:()=>Promise.resolve().then(()=>(au(),iu)),rest:()=>Promise.resolve().then(()=>(fu(),lu)),local:()=>Promise.resolve().then(()=>(du(),pu))},vy=(t,e)=>{yu[t]=e},Cy=t=>{let e={};for(let r of wy)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},bu=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=yu[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},un=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},_t=new Map,xu=new Map,ns=new Map,Ey=t=>{if(t.cache?.key)return t.cache.key;let e=Ay(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},mn=t=>_t.get(t)||null,pn=(t,e,r)=>{let n=_t.get(t),o={data:e,error:r,time:Date.now(),stale:!1};_t.set(t,o);let s=xu.get(t);if(s)for(let i of s)y(i)&&i(o);return o},dn=t=>{if(t){let e=_t.get(t);e&&(e.stale=!0);return}for(let[,e]of _t)e.stale=!0},Ga=t=>{if(t){_t.delete(t);return}_t.clear()},Xa=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:b(t)?{staleTime:un(t),gcTime:3e5}:{staleTime:un(t.stale||t.staleTime)||6e4,gcTime:un(t.gc||t.gcTime||t.expire)||3e5,key:t.key},os=null,ky=()=>{os||(os=setInterval(()=>{let t=Date.now();for(let[e,r]of _t){let n=xu.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&_t.delete(e)}},3e4),os.unref&&os.unref())};ky();hu=3,Ka=t=>Math.min(1e3*2**t,3e4),Su=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:hu,delay:Ka}:typeof e=="number"?{count:e,delay:Ka}:{count:e.count??hu,delay:y(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:Ka}},_u=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=y(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=y(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},xr={focus:new Set,online:new Set},mu=!1,Oy=()=>{if(mu||typeof window>"u")return;mu=!0;let t=()=>{for(let r of xr.focus)r()},e=()=>{for(let r of xr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},gu=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(b(t))return{from:t,method:"select",query:!0,on:"create"};if(g(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},Ay=t=>(!t||y(t),t),wu=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},vu=(t,e,r)=>{let n;if(!t)n=void 0;else if(y(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=y(s)?s(e,e.state):s}}return n},ss=async(t,e)=>{if(t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch{}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Qa=async(t,e)=>{if(y(t.select))return t.auth!==!1&&await ss(t,e),t;if(t.__resolved)return t.auth!==!1&&await ss(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=bu(t);let r=await t.__resolving;return t.__resolved=r,e.fetch=r,delete t.__resolving,t.auth!==!1&&await ss(r,e),r},Ft=(t,e,...r)=>{let n=y(t[e])?t[e]:t.props&&y(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},hn=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}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"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},We=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Qt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},xe=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||y(t.enabled)&&!t.enabled(e,e.state))return;let s=await Qa(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:x,limit:_,offset:w,order:C,headers:P,baseUrl:A,page:T,cursor:k,getNextPageParam:$,getPreviousPageParam:N,infinite:D,placeholderData:z,initialData:Z,select:tt,keepPreviousData:pt}=t,Ct;if(f&&y(e.getQuery)){let J=e.getQuery(s.name||"paths");J&&(Ct=J.select||J.length&&J.join(",")||void 0)}let Ut=vu(l,e,r),Kr=Xa(u),sa=Su(t),st=Kr?u?.key||`${a}:${c}:${JSON.stringify(Ut||"")}${D?":infinite":""}${T?":p"+JSON.stringify(T):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let J=y(Z)?Z():Z;pn(st,J,null)}if((c==="select"||c==="rpc")&&st&&Kr){let J=mn(st);if(J&&!J.error){let W=Date.now()-J.time,ut=J.stale||W>(Kr.staleTime||0),V=J.data;if(tt&&(V=tt(V,e,e.state)),p&&(V=p(V,e,e.state)),We(e,V,x),!ut){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(z!==void 0){let W=y(z)?z(e,e.state):z;W!==void 0&&We(e,W,x)}}if(st&&ns.has(st)&&!n.force){let J=ns.get(st);try{let W=await J;if(W?.data!==void 0){let ut=W.data;tt&&(ut=tt(ut,e,e.state)),p&&(ut=p(ut,e,e.state)),We(e,ut,x),Ft(e,"onFetchComplete",ut)}}catch{}return}let ia=!mn(st)?.data;Qt(e,{isFetching:!0,isLoading:ia,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ft(e,"onFetchStart");let Bl=_u(async()=>{if(h!==!1&&s.getSession){let V=await s.getSession();if(h===!0&&!V){let Et={message:"Not authenticated"};return Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Et,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",Et),{data:null,error:Et}}}let J=s[c];if(!y(J))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let W={from:a,select:Ct,params:Ut,single:d,limit:_,offset:w,order:C,headers:P,baseUrl:A},ut=wu(e,r);if(ut&&(W.headers={...W.headers,"Accept-Language":ut}),T!==void 0){if(g(T))T.offset!==void 0&&(W.offset=T.offset),T.limit!==void 0&&(W.limit=T.limit),T.cursor!==void 0&&(W.params={...W.params,cursor:T.cursor});else if(typeof T=="number"){let V=t.pageSize||_||20;W.offset=(T-1)*V,W.limit=V}}if(k!==void 0&&(W.params={...W.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let V;if(m===!0||t.on==="submit")V=hn(e);else if(S(m)){let Et=hn(e);V={};for(let ca of m)V[ca]=Et[ca]}else e.state?.parse?V=e.state.parse():g(e.state)&&(V={...e.state});p&&(V=p(V,e,e.state)),W.data=V}if(c==="rpc"){let V=Ut;if(t.on==="submit"){let Et=hn(e);V=t.transformParams?t.transformParams(Et,e,e.state):Et}W.params=V}if(c==="subscribe"){let V=s.subscribe({from:a,params:Ut,on:t.subscribeOn},(Et,ca,h_)=>{We(e,Et,x),Ft(e,"onFetchComplete",Et)});return i.__unsubscribe=V,{data:null,error:null,subscribed:!0}}return J(W)},sa);st&&ns.set(st,Bl);try{let J=await Bl;if(J?.subscribed)return;let{data:W,error:ut}=J||{};if(ut){st&&pn(st,null,ut),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",ut);return}if(W!==void 0){if((c==="select"||c==="rpc")&&st){let Et=pn(st,W,null);Et.gcTime=Kr?.gcTime||3e5}let V=W;D&&S(W)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(W):i.__pages.push(W),V=i.__pages.flat(),$&&(i.__nextPageParam=$(W,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),N&&(i.__prevPageParam=N(W,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(V=tt(V,e,e.state)),p&&(V=p(V,e,e.state)),(!pt||V!==void 0)&&We(e,V,x),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ft(e,"onFetchComplete",V)}}catch(J){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",J)}finally{st&&ns.delete(st)}},Ty=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||xe;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},Ry=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Oy();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:un(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&xe(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Ey(t),a=mn(i),c=Xa(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&xe(t,e,r,{force:!0})};xr.focus.add(s),n.__fetchCleanups.push(()=>xr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>xe(t,e,r,{force:!0});xr.online.add(s),n.__fetchCleanups.push(()=>xr.online.delete(s))}},Iy=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=y(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&We(t,i,o),s},Ya=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(We(t,n,e.as),delete r.__optimisticSnapshot)},Py=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Qa(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:x,onMutate:_,onSuccess:w,onError:C,onSettled:P}=t,A;if(c===!0||u==="submit")A=hn(e);else if(S(c)){let k=hn(e);A={};for(let $ of c)A[$]=k[$]}else e.state?.parse?A=e.state.parse():g(e.state)&&(A={...e.state});f&&(A=f(A,e,e.state)),y(_)&&_(A,e,e.state);let T=x?Iy(e,t,A):null;s.__fetching=!0,Qt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ft(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){T!==void 0&&Ya(e,t),Ft(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!y(k))return;let $={from:a,data:A,headers:d,baseUrl:h};t.params&&($.params=vu(t.params,e,r));let N=wu(e,r);N&&($.headers={...$.headers,"Accept-Language":N});let D=Su(t),z=await _u(()=>k($),D),{data:Z,error:tt}=z||{};if(tt){T!==void 0&&Ya(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",tt),y(C)&&C(tt,A,e),y(P)&&P(null,tt,A,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ft(e,"onFetchComplete",Z),y(w)&&w(Z,A,e),y(P)&&P(Z,null,A,e),m){let pt=S(m)?m:[m];for(let Ct of pt)if(Ct===!0||Ct==="*")for(let[Ut]of _t)Ut.startsWith(a+":")&&dn(Ut);else dn(Ct)}}catch(k){T!==void 0&&Ya(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",k),y(C)&&C(k,A,e),y(P)&&P(null,k,A,e)}finally{s.__fetching=!1}},gn=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=O(t,e);if(!s)return;let i=S(s)?s.map(c=>gu(O(c,e),e)).filter(Boolean):[gu(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?Py:xe;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{Ty({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Ry(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)xe(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};xe(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};xe(l,e,n,{direction:"previous",force:!0})}},Ny={invalidateQueries:t=>{if(!t){dn();return}if(b(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&dn(e);else if(S(t)){let e=t.join(":");for(let[r]of _t)r.includes(e)&&dn(r)}},removeQueries:t=>{if(!t){Ga();return}if(b(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&Ga(e)},getQueryData:t=>mn(t)?.data??void 0,setQueryData:(t,e)=>{let r=mn(t),n=y(e)?e(r?.data):e;pn(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Qa(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!y(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=pn(o,i.data,null);a.gcTime=Xa(t.cache)?.gcTime||3e5}return i},getCache:()=>_t,clear:()=>Ga()},Ja={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&gn(e,t,t.state,t.context)}},Dy=gn});function is(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function as(t){let e=this,{parent:r}=e;if(y(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function cs(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(y(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function ls(t,e=[]){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===t)e.push(a);else if(y(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function bn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?bn.call(o,n):e.node.style[r]=n}return e}}function fs(t){let e=this;if(H("beforeRemove",e,t)===!1)return e;y(e.node.remove)?e.node.remove():Le()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=co(e.parent.__ref.__children,e.key)),H("remove",e,t)}function Cu(t){return this[t]}function us(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function ps(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Eu(){return this.getRef("__children").map(e=>this[e])}function ds(){return this.getRef().path}function hs(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=y(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function ms(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function gs(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function ys(t){let e=this.getRoot()?.context;return t?e[t]:e}function bs(t){let e=this.context;return t?e[t]:e}function xn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||De.has(r)&&!fo.has(r)||e.push(r);return e}function Sn(t=[]){let e=this,r={},n=xn.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let f=y(c&&c.parse)?c.parse():c;r[a]=y(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else kt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Sr(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Sn.call(r,t),o=t.length?new Set(t):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=>R(a)?Sr.call(a,t,e):a):R(i)&&(n[s]=Sr.call(i,t,e))}return n}function _n(...t){if(Se!=="test"&&Se!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
11
- `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function xs(...t){(Se==="test"||Se==="development")&&console.log(...t)}function Ss(...t){(Se==="test"||Se==="development")&&console.warn(...t)}function _s(...t){if(Se==="test"||Se==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&_n.call(this),new Error(...t)}}function ws(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function vs(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Cs(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,j(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 Es(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{this.error=s}),o}catch(o){if(this.error=o,r?.strictMode)throw o}}async function ks(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),yn));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),yn));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ge(),yn)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),yn));await o(n,t.context)}return n}function Os(t){let e=this,r=t||lt.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Za(e,n),r===!0)return n;let o=jy[r];return o?o(n):n}function Vt(t,e){return!!(en.has(t)||e?.context?.methods?.[t])}var Se,ku,Za,Fy,Ou,$y,Ly,My,By,Uy,Vy,jy,tc=G(()=>{za();dr();xt();ge();ya();pr();Ha();Se=process.env.NODE_ENV;ku=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Za=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&Fy(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Za(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Za(i,e)},Fy=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;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])}},Ou=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
10
+ `}return o+=`${n}}`,o},ly=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],fy=/^["[{]/,yo=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!ly.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||fy.test(e)&&!o)},ne=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(y(n))if(yo(n))try{e[r]=F.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(y(i))if(yo(i))try{o.push(F.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(ne(i)):o.push(i)}}else g(n)?e[r]=ne(n,e[r]):e[r]=n}return e},df=(t,e={verbose:!0})=>{try{return t?F.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},hf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),da=t=>{for(let e in t)return!1;return!0},mf=t=>g(t)&&da(t),gf=()=>Object.create(null),oe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&$e(s)||e[s]!==void 0&&(t[s]=e[s]);return t},hr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)$e(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!R(t)||!R(e)||Dt(t)||Dt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&$e(a))continue;let c=t[a],f=e[a];Dt(f)?t[a]=f:R(c)&&R(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},ha=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!ha(t[i],e[i],r))return!1}return!0},uy=new Set(["node","__ref"]),bo=(t,e,r=uy)=>{if(t===e)return!0;if(!R(t)||!R(e)||Dt(t)||Dt(e))return t===e;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 c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let f=a[c],l=i[c];if(Dt(f)||Dt(l)){if(f!==l)return!1}else if(R(f)&&R(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},xo=(t,e)=>{if(e==null)return t;if(Ot(e)("string","number"))delete t[e];else if(S(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},ma=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=ma(t[r]));return e},So=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},_o=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},wo=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},vo=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},Co=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(ff==="test"||ff==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},yf=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.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(t)},bf=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var Eo,ko,Oo,Ao=G(()=>{ge();Eo=(function(){let t=0;function e(){return t++,t}return e})(),ko=Eo,Oo=(t,e,r)=>(O(r,t)||r||t.key||Eo()).toString()});var Yt,xf,Le,ga,Sf,_f,wf,Xt,vf,mr,ya=G(()=>{Yt=process.env.NODE_ENV,xf=Yt,Le=(t=Yt)=>t==="production",ga=(t=Yt)=>t==="testing"||t==="test",Sf=ga,_f=(t=Yt)=>t==="staging",wf=(t=Yt)=>t==="local",Xt=(t=Yt)=>t==="development"||t==="dev"||t==="local",vf=(t,e=Yt)=>e[t],mr=(t=Yt)=>!Le(t)});function Cf(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function Af(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var Ef,kf,py,Of,Me,Be,nn,To=G(()=>{Ef=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},kf=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},py=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Of=t=>py.test(t),Me=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Be=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},nn=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var gr,Tf=G(()=>{xt();gr=(t,e)=>{let{__ref:r}=t;b(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var Rf,If,Pf=G(()=>{Rf=(t,...e)=>{t&&e.map(r=>console.log(r))},If=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Lf(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function Mf(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var Nf,Df,Ff,$f,Bf=G(()=>{xt();Xr();Nf=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Df=(t,e,r=365)=>{if(K(L)||K(L.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;L.cookie=`${t}=${e};${o};path=/`},Ff=t=>{if(K(L)||K(L.cookie))return;let e=`${t}=`,n=decodeURIComponent(L.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(e)===0)return s.substring(e.length,s.length)}return""},$f=t=>{K(L)||K(L.cookie)||(L.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var on,Ue,ye,ba=G(()=>{on={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"])},Ue=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"]),ye=t=>on.body.has(t)});var xa,Uf,sn,Po,Tt,No,Sa,Do,Vf,Fo,_a,wa,$o,va,an,dy,se,jf,Ro,Lo,zf,Io,Hf,qf,Ca,Ea,ka,Oa,Aa,Ta,Mo,Bo=G(()=>{pr();Ra();ge();xt();xa=process.env.NODE_ENV,Uf=t=>t.sourcemap!==!1&&xa!=="production",sn=t=>{if(t.includes("+"))return t.split("+").filter(Rt);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Rt(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Po=(t,e,r)=>{let n=[],o=sn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=S(s)?[...n,...s]:[...n,s]),n},Tt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},No=(t,e)=>{if(!t)return e;let{extends:r}=e,n=S(r)?r:[r],o=S(t)?t:[t];return{...e,extends:Zr(o,n)}},Sa=()=>Math.random().toString(36).substring(2),Do={},Vf={},Fo=t=>Do[t.__hash],_a=(t,e)=>{let r=Sa();return y(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Do[r]=e),e},wa=(t,e)=>t.__hash?e.concat(Fo(t)):_a(t,e),$o=(t,e,r,n=new Set,o,s)=>{for(let i of t)S(i)?$o(i,e,r,n,o,s):an(i,e,r,n,o,void 0,s);return e},va=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&an(a,e,r,n,o,s,i),e},an=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(S(t))return $o(t,e,r,n,o,i);let a=s;return y(t)?(a=t,t=Lo(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?va(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},dy=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),se=(t,e,r,n,o)=>{e=j(e);for(let s in e){if(dy.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?g(a)&&!S(a)?(r[s]=r[s]||{},jf(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];Rt(s)?t[s]=se(i,a,c,n,f):se(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(S(i)&&S(a))t[s]=i.concat(a);else if(S(i)&&g(a)){let c=se({},i);t[s]=se(c,a)}}}}return t},jf=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];g(s)&&!S(s)?(t[o]=t[o]||{},jf(t[o],s,r,n)):t[o]=r}}},Ro=(t,e,r)=>t.reduce((n,o,s)=>{let i=j(o),a=r?r[s]:void 0;return se(n,i,e,a)},{}),Lo=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(y(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(xa==="test"||xa==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},zf=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Io=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Fo(t)||[];let s=an(t,[],e,new Set,r,void 0,n);return r?s:wa(t,s)},Hf=(t,e)=>{if(!t)return e;let r=S(t)?t:[t];return Zr(r,e)},qf=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Rt(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Ca=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Tt([c,...a],t):Tt(t.extends,t)}else Tt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Tt(i,t):Tt(t.extends,t)}else Tt(t.extends,t);return Ea(t,e,r),ka(t,e,r),Oa(t,e,r),t.component&&Tt(O(t.component,t),t),o.defaultExtends&&Tt(o.defaultExtends,t),tn(n.__extends)},Ea=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Tt(e.props?.childProps.extends,t),o.__extends},ka=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Tt(i,t),o.__extends},Oa=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Tt(s,t),o.__extends},Aa=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Uf(r),c=a?[...o.__extends]:null,f=tn(o.__extends.map((l,u)=>Lo(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&y(m)&&l.set(h,m)}let u=[],p=Io(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=Io(f,s);o.__extendsStack=l}return o.__extendsStack},Ta=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Uf(r)){let s={},i=n.__extendsNames||[],a=Ro(o,s,i),c={};se(t,a,c,void 0,s),n.__sourcemap=c}else{let s=Ro(o);se(t,s)}return t},Mo=(t,e,r={})=>(Ca(t,e,r),Aa(t,e,r),Ta(t,e,r),t)});function Wf(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Gf(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Uo(t,e,r){let{context:n}=e||{},[o]=sn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Rt,Ra=G(()=>{Bo();xt();Rt=t=>{if(!y(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Kf(t,e){let{props:r,on:n}=e,o=re(t.split("on")[1]),s=n[o],i=r[t];b(s)?n[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:n[o]=i}var Yf=G(()=>{en();xt()});function Pa(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(b(o)||o!=null&&Me(this.context))){let h=re(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||b(a),l=g(c)||b(c);if(f||l)continue;let u=n.charAt(0);if(Qf.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Ia.test(n)||Xf.test(n)||my(o),d=De.has(n);!p&&!d&&(t.props[n]=o,delete t[n],r.push(n))}return t}function yr(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=b(o)||o!=null&&Me(this.context);if(s&&i){Kf(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Qf.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||b(c),u=g(f)||b(f),p=Ia.test(n)||Xf.test(n),d=De.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function cn(t=this){let e=[];return Pa.call(this,t,{cachedKeys:e}),yr.call(this,t,{cachedKeys:e}),t}function Ho(t={}){return t.on||(t.on={}),t.props||(t.props={}),cn.call(this,t)}function Na(t,e){this.__element.update({props:t},e)}function Wo(t){let e={update:Na.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Ia,Xf,Qf,hy,my,zo,Vo,Jf,qo,Go,Ko,Da,jo,ln,Yo,Fa=G(()=>{dr();Yf();ge();xt();en();To();Ia=/^[A-Z]/,Xf=/^\d+$/,Qf=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),hy=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),my=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(hy.has(e)||Ia.test(e))return!0;return!1},zo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return R(n)?{...n}:(o.__propsStack.push(n),{})};Vo=t=>Ot(t)("string","number")?{inheritedString:t}:t,Jf=(t,e)=>!t||!e.length?!1:e.includes(t),qo=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Vo(i);n.unshift(c)}if(s){let c=Vo(s);n.unshift(c)}return n};Go=t=>{let e=new Set;return t.filter(r=>!r||Fe.has(r)||e.has(r)?!1:(e.add(r),!0))},Ko=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Fe.has(o))return n;for(;b(o);)o=O(o,e);return M(n,j(o,{exclude:Fe}))},{}),Wo(e),e.props),Da=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...qo(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),S(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=Go(o),n.__propsStack},jo=(t,e)=>{let{__ref:r}=t,n=Da(t,e);n.length?Ko(n,t):(r.__propsStack=[],t.props={})},ln=function(t,e,r){let{__ref:n}=t;if(n.__if)jo(t,e);else try{jo(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Wo(t),t},Yo=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=qo(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Go(s),n.__propsStack.length&&Ko(n.__propsStack,e),e}});var Zf,$a,La,Ma,Ba,Xo,Ua,Va,ja,Qo,tu=G(()=>{Bo();Ao();Qr();Fa();ba();xt();Zf=process.env.NODE_ENV,$a=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=on.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},La=(t,e,r)=>{if(t===void 0)return(Zf==="test"||Zf==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ot(t)("string","number")?$a(t,e,r):b(t)?{props:t}:t},Ma=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ba=(t,e,r,n,o)=>{if(!e)return o;if(me(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Xo=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Ua=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Va=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),ja=(t,e,r)=>{let n=Ma(t,e);return t.__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=Po(t,e,r),n.path=Ua(t,e,r),n},Qo=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:La(t,e,r);if(!i)return;let a=Ba(i,e,r,n,o),c=Oo(i,a,r);ja(i,a,c);let f=zo(i,a,c),l=Va(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Jo,Ve,je,ze,He,Zo,qe,fn,ts,es,rs,eu=G(()=>{pr();dr();ge();xt();Jo=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ot(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Ve=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},je=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},ze=(t,e,r={})=>{let n=y(t)?t.split("/"):[t],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 c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},He=(t,e,r={})=>{let o=t.__ref.__state;if(!qe(t))return;let s=Ve(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=je(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return ze(o,i,r)},Zo=(t,e)=>{let r=t.__ref,n=He(t,e);if(n===void 0)return t.state;if(Ot(n)("object","array"))return j(n);if(Ot(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},qe=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ot(r)("number","string","boolean"))},fn=function(t){return R(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},ts=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},es=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=j(n,At),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?ur(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},rs=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){M(t,e,At);return}(o?hr:it)(t,e,At)}});var un,ru=G(()=>{un=(t,e)=>{let{__ref:r}=t;t.scope||(t.scope=e.scope||r.root?.scope||{})}});var nu,br,H,ns,St,za=G(()=>{xt();To();nu=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},br=(t,e,r,n,o)=>{if(t=Be(t,e),!!b(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},H=(t,e,r)=>{if(!e)throw new Error("Element is required");nn(t,e,r);let n=nu(t,e);if(n){let{state:o,context:s}=e;return br(n,e,o,s,r)}},ns=(t,e,r,n,o,s)=>{if(t=Be(t,r),!!b(t))try{let i=t.call(r,e,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}},St=(t,e,r,n)=>{nn(t,r,e,n);let o=nu(t,r);if(o){let{state:s,context:i}=r;return ns(o,e,r,s,i,n)}}});var ou,lt,Ha=G(()=>{ou={},lt={}});var iu={};Nt(iu,{setup:()=>gy,supabaseAdapter:()=>su});var gy,qa,yy,su,au=G(()=>{"use strict";gy=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");return n||(n=(await import("@supabase/supabase-js")).createClient),su(n(s,e,o))},qa=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},yy=(t,{limit:e,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;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},su=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=qa(s,n),s=yy(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=qa(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=qa(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var lu={};Nt(lu,{restAdapter:()=>cu,setup:()=>xy});var by,be,xy,cu,fu=G(()=>{"use strict";by=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);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()},be=async(t,e)=>{let r=await globalThis.fetch(t,e),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}},xy=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return cu(t,e,r,n)},cu=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await be(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await be(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await be(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:x,headers:_,baseUrl:w})=>{let C={...u};return p&&(C.select=p),d&&(C.limit=d),h&&(C.offset=h),x&&(C.single=!0),m&&(typeof m=="string"?C.order=m:Array.isArray(m)?C.order=m.map(P=>`${P.by}:${P.asc===!1?"desc":"asc"}`).join(","):m.by&&(C.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),be(by(w||t,l||"",C),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>be(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>be(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let x=p?.id||u?.id,_=x?`${l}/${x}`:l;return be(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return be(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var pu={};Nt(pu,{localAdapter:()=>uu,setup:()=>_y});var Wa,Sy,_y,uu,du=G(()=>{"use strict";Wa=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Sy=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,f)=>c[i]<f[i]?a?-1:1:c[i]>f[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}},_y=async({data:t,...e})=>uu(t,e),uu=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>Wa(m,u));return Sy(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let x={id:m.id||++f,...m};return p.push(x),x});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(Wa(d[m],p)){let x={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],x)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)Wa(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,x)=>{u&&u!=="*"&&u!==x.event||p(h,m,x)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var bn={};Nt(bn,{createAdapter:()=>Cy,default:()=>Dy,executeFetch:()=>yn,fetchPlugin:()=>Ja,initAdapterAuth:()=>is,parseDuration:()=>pn,queryClient:()=>Ny,registerAdapter:()=>vy,resolveDb:()=>bu});var wy,yu,vy,Cy,bu,pn,_t,xu,os,Ey,gn,dn,hn,Ga,Xa,ss,ky,hu,Ka,Su,_u,xr,mu,Oy,gu,Ay,wu,vu,is,Qa,Ft,mn,We,Qt,xe,Ty,Ry,Iy,Ya,Py,yn,Ny,Ja,Dy,Ge=G(()=>{"use strict";v();wy=["select","rpc","insert","update","delete","subscribe"],yu={supabase:()=>Promise.resolve().then(()=>(au(),iu)),rest:()=>Promise.resolve().then(()=>(fu(),lu)),local:()=>Promise.resolve().then(()=>(du(),pu))},vy=(t,e)=>{yu[t]=e},Cy=t=>{let e={};for(let r of wy)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},bu=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=yu[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},pn=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},_t=new Map,xu=new Map,os=new Map,Ey=t=>{if(t.cache?.key)return t.cache.key;let e=Ay(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},gn=t=>_t.get(t)||null,dn=(t,e,r)=>{let n=_t.get(t),o={data:e,error:r,time:Date.now(),stale:!1};_t.set(t,o);let s=xu.get(t);if(s)for(let i of s)b(i)&&i(o);return o},hn=t=>{if(t){let e=_t.get(t);e&&(e.stale=!0);return}for(let[,e]of _t)e.stale=!0},Ga=t=>{if(t){_t.delete(t);return}_t.clear()},Xa=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:y(t)?{staleTime:pn(t),gcTime:3e5}:{staleTime:pn(t.stale||t.staleTime)||6e4,gcTime:pn(t.gc||t.gcTime||t.expire)||3e5,key:t.key},ss=null,ky=()=>{ss||(ss=setInterval(()=>{let t=Date.now();for(let[e,r]of _t){let n=xu.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&_t.delete(e)}},3e4),ss.unref&&ss.unref())};ky();hu=3,Ka=t=>Math.min(1e3*2**t,3e4),Su=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:hu,delay:Ka}:typeof e=="number"?{count:e,delay:Ka}:{count:e.count??hu,delay:b(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:Ka}},_u=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=b(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=b(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},xr={focus:new Set,online:new Set},mu=!1,Oy=()=>{if(mu||typeof window>"u")return;mu=!0;let t=()=>{for(let r of xr.focus)r()},e=()=>{for(let r of xr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},gu=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(y(t))return{from:t,method:"select",query:!0,on:"create"};if(g(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},Ay=t=>(!t||b(t),t),wu=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},vu=(t,e,r)=>{let n;if(!t)n=void 0;else if(b(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=b(s)?s(e,e.state):s}}return n},is=async(t,e)=>{if(t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch{}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Qa=async(t,e)=>{if(b(t.select))return t.auth!==!1&&await is(t,e),t;if(t.__resolved)return t.auth!==!1&&await is(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=bu(t);let r=await t.__resolving;return t.__resolved=r,e.fetch=r,delete t.__resolving,t.auth!==!1&&await is(r,e),r},Ft=(t,e,...r)=>{let n=b(t[e])?t[e]:t.props&&b(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},mn=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}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"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},We=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Qt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},xe=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||b(t.enabled)&&!t.enabled(e,e.state))return;let s=await Qa(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:x,limit:_,offset:w,order:C,headers:P,baseUrl:A,page:T,cursor:k,getNextPageParam:$,getPreviousPageParam:N,infinite:D,placeholderData:z,initialData:Z,select:tt,keepPreviousData:pt}=t,Ct;if(f&&b(e.getQuery)){let J=e.getQuery(s.name||"paths");J&&(Ct=J.select||J.length&&J.join(",")||void 0)}let Ut=vu(l,e,r),Yr=Xa(u),sa=Su(t),st=Yr?u?.key||`${a}:${c}:${JSON.stringify(Ut||"")}${D?":infinite":""}${T?":p"+JSON.stringify(T):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let J=b(Z)?Z():Z;dn(st,J,null)}if((c==="select"||c==="rpc")&&st&&Yr){let J=gn(st);if(J&&!J.error){let W=Date.now()-J.time,ut=J.stale||W>(Yr.staleTime||0),V=J.data;if(tt&&(V=tt(V,e,e.state)),p&&(V=p(V,e,e.state)),We(e,V,x),!ut){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(z!==void 0){let W=b(z)?z(e,e.state):z;W!==void 0&&We(e,W,x)}}if(st&&os.has(st)&&!n.force){let J=os.get(st);try{let W=await J;if(W?.data!==void 0){let ut=W.data;tt&&(ut=tt(ut,e,e.state)),p&&(ut=p(ut,e,e.state)),We(e,ut,x),Ft(e,"onFetchComplete",ut)}}catch{}return}let ia=!gn(st)?.data;Qt(e,{isFetching:!0,isLoading:ia,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ft(e,"onFetchStart");let Bl=_u(async()=>{if(h!==!1&&s.getSession){let V=await s.getSession();if(h===!0&&!V){let Et={message:"Not authenticated"};return Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Et,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",Et),{data:null,error:Et}}}let J=s[c];if(!b(J))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let W={from:a,select:Ct,params:Ut,single:d,limit:_,offset:w,order:C,headers:P,baseUrl:A},ut=wu(e,r);if(ut&&(W.headers={...W.headers,"Accept-Language":ut}),T!==void 0){if(g(T))T.offset!==void 0&&(W.offset=T.offset),T.limit!==void 0&&(W.limit=T.limit),T.cursor!==void 0&&(W.params={...W.params,cursor:T.cursor});else if(typeof T=="number"){let V=t.pageSize||_||20;W.offset=(T-1)*V,W.limit=V}}if(k!==void 0&&(W.params={...W.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let V;if(m===!0||t.on==="submit")V=mn(e);else if(S(m)){let Et=mn(e);V={};for(let ca of m)V[ca]=Et[ca]}else e.state?.parse?V=e.state.parse():g(e.state)&&(V={...e.state});p&&(V=p(V,e,e.state)),W.data=V}if(c==="rpc"){let V=Ut;if(t.on==="submit"){let Et=mn(e);V=t.transformParams?t.transformParams(Et,e,e.state):Et}W.params=V}if(c==="subscribe"){let V=s.subscribe({from:a,params:Ut,on:t.subscribeOn},(Et,ca,h_)=>{We(e,Et,x),Ft(e,"onFetchComplete",Et)});return i.__unsubscribe=V,{data:null,error:null,subscribed:!0}}return J(W)},sa);st&&os.set(st,Bl);try{let J=await Bl;if(J?.subscribed)return;let{data:W,error:ut}=J||{};if(ut){st&&dn(st,null,ut),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",ut);return}if(W!==void 0){if((c==="select"||c==="rpc")&&st){let Et=dn(st,W,null);Et.gcTime=Yr?.gcTime||3e5}let V=W;D&&S(W)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(W):i.__pages.push(W),V=i.__pages.flat(),$&&(i.__nextPageParam=$(W,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),N&&(i.__prevPageParam=N(W,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(V=tt(V,e,e.state)),p&&(V=p(V,e,e.state)),(!pt||V!==void 0)&&We(e,V,x),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ft(e,"onFetchComplete",V)}}catch(J){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",J)}finally{st&&os.delete(st)}},Ty=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||xe;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},Ry=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Oy();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:pn(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&xe(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Ey(t),a=gn(i),c=Xa(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&xe(t,e,r,{force:!0})};xr.focus.add(s),n.__fetchCleanups.push(()=>xr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>xe(t,e,r,{force:!0});xr.online.add(s),n.__fetchCleanups.push(()=>xr.online.delete(s))}},Iy=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=b(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&We(t,i,o),s},Ya=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(We(t,n,e.as),delete r.__optimisticSnapshot)},Py=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Qa(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:x,onMutate:_,onSuccess:w,onError:C,onSettled:P}=t,A;if(c===!0||u==="submit")A=mn(e);else if(S(c)){let k=mn(e);A={};for(let $ of c)A[$]=k[$]}else e.state?.parse?A=e.state.parse():g(e.state)&&(A={...e.state});f&&(A=f(A,e,e.state)),b(_)&&_(A,e,e.state);let T=x?Iy(e,t,A):null;s.__fetching=!0,Qt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ft(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){T!==void 0&&Ya(e,t),Ft(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!b(k))return;let $={from:a,data:A,headers:d,baseUrl:h};t.params&&($.params=vu(t.params,e,r));let N=wu(e,r);N&&($.headers={...$.headers,"Accept-Language":N});let D=Su(t),z=await _u(()=>k($),D),{data:Z,error:tt}=z||{};if(tt){T!==void 0&&Ya(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",tt),b(C)&&C(tt,A,e),b(P)&&P(null,tt,A,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ft(e,"onFetchComplete",Z),b(w)&&w(Z,A,e),b(P)&&P(Z,null,A,e),m){let pt=S(m)?m:[m];for(let Ct of pt)if(Ct===!0||Ct==="*")for(let[Ut]of _t)Ut.startsWith(a+":")&&hn(Ut);else hn(Ct)}}catch(k){T!==void 0&&Ya(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",k),b(C)&&C(k,A,e),b(P)&&P(null,k,A,e)}finally{s.__fetching=!1}},yn=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=O(t,e);if(!s)return;let i=S(s)?s.map(c=>gu(O(c,e),e)).filter(Boolean):[gu(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?Py:xe;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{Ty({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Ry(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)xe(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};xe(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};xe(l,e,n,{direction:"previous",force:!0})}},Ny={invalidateQueries:t=>{if(!t){hn();return}if(y(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&hn(e);else if(S(t)){let e=t.join(":");for(let[r]of _t)r.includes(e)&&hn(r)}},removeQueries:t=>{if(!t){Ga();return}if(y(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&Ga(e)},getQueryData:t=>gn(t)?.data??void 0,setQueryData:(t,e)=>{let r=gn(t),n=b(e)?e(r?.data):e;dn(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Qa(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!b(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=dn(o,i.data,null);a.gcTime=Xa(t.cache)?.gcTime||3e5}return i},getCache:()=>_t,clear:()=>Ga()},Ja={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&yn(e,t,t.state,t.context)}},Dy=yn});function as(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function cs(t){let e=this,{parent:r}=e;if(b(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function ls(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(b(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function fs(t,e=[]){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===t)e.push(a);else if(b(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function xn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?xn.call(o,n):e.node.style[r]=n}return e}}function us(t){let e=this;if(H("beforeRemove",e,t)===!1)return e;b(e.node.remove)?e.node.remove():Le()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=lo(e.parent.__ref.__children,e.key)),H("remove",e,t)}function Cu(t){return this[t]}function ps(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function ds(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Eu(){return this.getRef("__children").map(e=>this[e])}function hs(){return this.getRef().path}function ms(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=b(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function gs(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function ys(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function bs(t){let e=this.getRoot()?.context;return t?e[t]:e}function xs(t){let e=this.context;return t?e[t]:e}function Sn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||De.has(r)&&!uo.has(r)||e.push(r);return e}function _n(t=[]){let e=this,r={},n=Sn.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let f=b(c&&c.parse)?c.parse():c;r[a]=b(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else kt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Sr(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=_n.call(r,t),o=t.length?new Set(t):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=>R(a)?Sr.call(a,t,e):a):R(i)&&(n[s]=Sr.call(i,t,e))}return n}function wn(...t){if(Se!=="test"&&Se!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
11
+ `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Ss(...t){(Se==="test"||Se==="development")&&console.log(...t)}function _s(...t){(Se==="test"||Se==="development")&&console.warn(...t)}function _r(...t){if(Se==="test"||Se==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&wn.call(this),new Error(...t)}}function ws(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function vs(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Cs(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,j(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 Es(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{_r.call(this,s)}),o}catch(o){if(_r.call(this,o),r?.strictMode)throw o}}async function ks(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),bn));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),bn));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ge(),bn)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),bn));await o(n,t.context)}return n}function Os(t){let e=this,r=t||lt.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Za(e,n),r===!0)return n;let o=jy[r];return o?o(n):n}function Vt(t,e){return!!(rn.has(t)||e?.context?.methods?.[t])}var Se,ku,Za,Fy,Ou,$y,Ly,My,By,Uy,Vy,jy,tc=G(()=>{za();dr();xt();ge();ya();pr();Ha();Se=process.env.NODE_ENV;ku=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Za=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&Fy(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Za(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Za(i,e)},Fy=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;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])}},Ou=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
12
12
  ${Ou(i,e+1)}
13
13
  ${r}}`).join(`
14
14
  `):""},$y=t=>`{
@@ -16,21 +16,21 @@ ${Ou(t,1)}
16
16
  }`,Ly=t=>{let e={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;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},My=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let f=e(s[c]),l=[];f.select&&l.push(`$select=${f.select}`),f.expand&&l.push(`$expand=${f.expand}`),a.push(l.length?`${c}(${l.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},By=(t,e)=>{let r=[],n=[],o=new Set,s=(l,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in l)l[d]===!0?r.push(`${u}.${d}`):s(l[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",f=n.length?`
17
17
  `+n.join(`
18
18
  `):"";return`SELECT ${c}
19
- FROM ${a}${f}`},Uy=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},Vy=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},jy={graphql:$y,"json-api":Ly,odata:My,sql:By,supabase:Vy,paths:Uy}});var zy,As,Au=G(()=>{Oo();zy={snapshotId:Eo},As=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=zy.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{Oo();ya();xt();ge();Ao();pr();Xr();Tf();Pf();tn();Yr();Bf();ba();Ra();Fa();Mo();tu();eu();dr();ru();tc();Ha();Au();za()});var d_={};Nt(d_,{A:()=>dm,ANIMATION_PROPS:()=>Bc,ARIA_ROLES:()=>Hy,ATTR_TRANSFORMS:()=>ec,Avatar:()=>Mm,B:()=>yh,BLOCK_PROPS:()=>Uc,Block:()=>Dd,Box:()=>Ei,Br:()=>_h,Button:()=>km,ButtonSet:()=>Rm,CDN_PROVIDERS:()=>te,CLASS:()=>cd,CONFIG:()=>Hs,CSS_MEDIA_VARS:()=>ud,CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_PROPS_REGISTRY:()=>Mr,CSS_UNITS:()=>Pr,CSS_VARS:()=>fd,Caption:()=>ch,Checkbox:()=>ym,CheckboxHgroup:()=>bm,CircleButton:()=>Am,Clickable:()=>qd,DEFAULT_CONFIG:()=>_i,DEFAULT_CONTEXT:()=>Ui,DEFAULT_CSS_PROPERTIES_LIST:()=>Gc,DESIGN_SYSTEM_OPTIONS:()=>Sl,DOMQL_EVENTS:()=>po,DOMQ_PROPERTIES:()=>De,DOM_EVENTS:()=>Tu,Data:()=>xh,Dialog:()=>Pm,DialogFooter:()=>Dm,DialogHeader:()=>Nm,DropdownList:()=>Um,DropdownParent:()=>Vm,DropdownParentFocus:()=>jm,DropdownSiblingFocus:()=>zm,ENV:()=>xf,FACTORY:()=>Ce,FLEX_PROPS:()=>qc,FONT_PROPS:()=>Vc,FileIcon:()=>Rh,Flex:()=>$d,Focusable:()=>Wd,FocusableComponent:()=>Gd,Footnote:()=>gh,Form:()=>jd,GRID_PROPS:()=>Wc,Grid:()=>Md,Gutter:()=>Ud,H1:()=>eh,H2:()=>rh,H3:()=>nh,H4:()=>oh,H5:()=>sh,H6:()=>ih,HTML_ATTRIBUTES:()=>Ts,HTML_TAGS:()=>nn,Headline:()=>hh,Hgroup:()=>Eh,HgroupButton:()=>Oh,HgroupRows:()=>kh,Hoverable:()=>Hd,Hr:()=>Sh,I:()=>bh,Icon:()=>Ah,IconButton:()=>Im,IconText:()=>Th,Iframe:()=>zd,Img:()=>Vd,Inline:()=>Fd,InlineFlex:()=>Ld,InlineGrid:()=>Bd,Input:()=>mm,Italic:()=>ph,KangorooButton:()=>Tm,Li:()=>wh,Link:()=>hl,METHODS:()=>en,METHODS_EXL:()=>uo,MISC_PROPS:()=>Si,NODE_ENV:()=>Yt,Notification:()=>Hm,NumberInput:()=>gm,OPTIONS:()=>lt,Ol:()=>Ch,P:()=>ah,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>fo,POSITION_PROPS:()=>jc,PROPS_METHODS:()=>Fe,Picture:()=>Qd,ROUTER_OPTIONS:()=>Bi,Radio:()=>xm,RadioHgroup:()=>Sm,Range:()=>Bm,RouteLink:()=>hm,RouterLink:()=>ml,SHAPES:()=>Yd,STATE_METHODS:()=>At,STATE_PROPERTIES:()=>lf,SVG_TAGS:()=>Ue,Select:()=>Em,SquareButton:()=>Om,Strong:()=>lh,Subhead:()=>mh,Svg:()=>Jd,THEME_PROPS:()=>zc,TIMING_PROPS:()=>Hc,TYPES:()=>so,Text:()=>th,Textarea:()=>vm,TextareaWithButton:()=>Cm,Theme:()=>Xd,Title:()=>dh,Toggle:()=>_m,ToggleHgroup:()=>wm,Tooltip:()=>Fm,TooltipHidden:()=>$m,TooltipParent:()=>Lm,U:()=>fh,Ul:()=>vh,Underline:()=>uh,VALUE_TRANSFORMERS:()=>Lc,Video:()=>Zd,activateConfig:()=>Ab,addCaching:()=>ja,addContext:()=>Va,addExtend:()=>Hf,addExtends:()=>Tt,addItemAfterEveryElement:()=>Kl,addProtoToArray:()=>ur,addRef:()=>Ma,animation:()=>nd,appendSVGSprite:()=>di,appendSvgIconsSprite:()=>mi,applyAttrTransforms:()=>Wy,applyCSS:()=>yl,applyClassListOnNode:()=>Ms,applyClasslist:()=>hb,applyDependentState:()=>ts,applyDocument:()=>pi,applyEvent:()=>br,applyEventUpdate:()=>rs,applyExtends:()=>Lo,applyHeadings:()=>Ic,applyMediaSequenceVars:()=>tr,applyProps:()=>Vo,applyReset:()=>gi,applySequenceGlobalVars:()=>Qs,applySequenceVars:()=>Oe,applySpacingSequence:()=>ci,applyTimingSequence:()=>ui,applyTrueProps:()=>Kc,applyTypographySequence:()=>si,arrayContainsOtherArray:()=>jl,arraysEqual:()=>Xl,arrayzeValue:()=>$r,assignKeyAsClassname:()=>db,breakpoints:()=>td,cache:()=>ou,call:()=>Es,captureSnapshot:()=>As,cases:()=>rd,changeLightness:()=>bp,checkAttributeByTagName:()=>rc,checkEventFunctions:()=>Ru,checkForStateTypes:()=>Qo,checkIfBoxSize:()=>ai,checkIfInherits:()=>qe,checkIfStringIsInArray:()=>Zl,classList:()=>fp,classify:()=>lp,clone:()=>pf,cloneAndMergeArrayExtend:()=>To,cloneFunction:()=>Af,color:()=>Gp,colorStringToRgbaArray:()=>ie,concatAddExtends:()=>Po,convertSvgToSymbol:()=>Js,copyJavaScriptToClipboard:()=>$p,copyStringToClipboard:()=>Fp,create:()=>Ml,createAsync:()=>f_,createBasedOnType:()=>La,createDefine:()=>og,createElement:()=>Xo,createElementExtends:()=>Ca,createEmotion:()=>up,createExtends:()=>Io,createExtendsFromKeys:()=>on,createExtendsStack:()=>Aa,createIfConditionFlag:()=>gr,createInheritedState:()=>Jo,createKey:()=>ko,createNestedObject:()=>xo,createNestedObjectByKeyPath:()=>Zo,createObjectWithoutPrototype:()=>ma,createParent:()=>Ba,createPath:()=>Ua,createProps:()=>jo,createPropsStack:()=>Da,createRoot:()=>Yo,createScope:()=>fn,createSkeleton:()=>p_,createSnapshotId:()=>Eo,createSync:()=>u_,customDecodeURIComponent:()=>cf,customEncodeURIComponent:()=>af,cutArrayAfterValue:()=>Wl,cutArrayBeforeValue:()=>ql,debounce:()=>Cf,debounceOnContext:()=>Ef,decodeNewlines:()=>sf,deepClone:()=>j,deepContains:()=>yo,deepDestringifyFunctions:()=>ne,deepExtend:()=>va,deepMerge:()=>M,deepMergeExtends:()=>se,deepStringifyFunctions:()=>ho,defaultDefine:()=>Vr,defineSetter:()=>ku,depth:()=>vi,detectInfiniteLoop:()=>vo,devices:()=>ed,emotion:()=>wt,encodeNewlines:()=>of,error:()=>_s,excludeKeysFromObject:()=>bf,exec:()=>O,executeAttr:()=>qy,exetuteClassPerComponent:()=>nx,extendCachedRegistry:()=>Vf,extendStackRegistry:()=>No,extractArrayExtend:()=>Fo,fibonacciNumberByIndex:()=>Cp,filterArrays:()=>Ql,filterArraysFast:()=>Jl,filterAttributesByTagName:()=>nc,finalizeExtends:()=>Ta,findClosestNumber:()=>_c,findClosestNumberInFactory:()=>wp,findHeadingLetter:()=>Ac,findHeadings:()=>Xs,findInheritedState:()=>He,findKeyPosition:()=>rf,flattenExtend:()=>sn,font:()=>Vp,font_face:()=>Hp,font_family:()=>jp,font_family_types:()=>zp,formatDate:()=>vp,generateHash:()=>Sa,generateKey:()=>Co,generateMetaTags:()=>Np,generateSequence:()=>zt,generateSequencePosition:()=>pd,generateSprite:()=>Dn,generateSubSequence:()=>Ks,get:()=>Cu,getActiveConfig:()=>E,getActiveLang:()=>ro,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>Wf,getCdnProviderFromConfig:()=>In,getChildStateInKey:()=>ze,getChildren:()=>Eu,getColor:()=>Q,getColorShade:()=>gc,getContext:()=>bs,getCookie:()=>Ff,getDB:()=>ks,getDefaultOrFirstKey:()=>Dr,getExtendsInElement:()=>qf,getExtendsStack:()=>Ro,getExtendsStackRegistry:()=>wa,getFnPrefixAndValue:()=>ke,getFontFace:()=>Sp,getFontFaceEach:()=>Fr,getFontFaceEachString:()=>Sc,getFontFaceString:()=>Us,getFontFamily:()=>oi,getFontFormat:()=>bc,getFontSizeByKey:()=>ii,getFrequencyInArray:()=>zl,getHashedExtend:()=>Do,getImportMapScript:()=>Pp,getInObjectByPath:()=>wo,getLanguages:()=>Ji,getLocalStateLang:()=>na,getLocalStorage:()=>Lf,getMediaColor:()=>vt,getMediaTheme:()=>Ht,getNev:()=>vf,getPageMetadata:()=>Dp,getParentStateInKey:()=>je,getPath:()=>ds,getQuery:()=>Os,getRef:()=>ps,getRgbTone:()=>Nr,getRoot:()=>ms,getRootContext:()=>ys,getRootData:()=>gs,getRootState:()=>hs,getRootStateInKey:()=>Ve,getSequenceValue:()=>Ys,getSequenceValueBySymbols:()=>Oc,getSequenceValuePropertyPair:()=>ce,getShadow:()=>fi,getSpacingBasedOnRatio:()=>Ae,getSpacingByKey:()=>at,getSpreadChildren:()=>Gf,getSubratio:()=>Gs,getSubratioDifference:()=>Ws,getTheme:()=>ti,getTimingByKey:()=>Lt,getTimingFunction:()=>It,global:()=>Ul,gradient:()=>Kp,grid:()=>ad,hasFunction:()=>go,hasHandlerPlugin:()=>Me,hasOwnProperty:()=>hf,hexToRgb:()=>hp,hexToRgbArray:()=>pc,hexToRgba:()=>gp,hslToRgb:()=>mc,icons:()=>Qp,inheritChildExtends:()=>ka,inheritChildPropsExtends:()=>Ea,inheritParentProps:()=>Ho,inheritRecursiveChildExtends:()=>Oa,init:()=>Te,initPolyglot:()=>Fl,initProps:()=>cn,is:()=>Ot,isArray:()=>S,isBoolean:()=>Qr,isCSSVar:()=>rt,isContextComponent:()=>Bo,isCyclic:()=>yf,isDOMNode:()=>Dt,isDate:()=>ua,isDefined:()=>kt,isDevelopment:()=>Xt,isEmpty:()=>da,isEmptyObject:()=>mf,isEqualDeep:()=>ha,isFunction:()=>y,isGoogleFontsUrl:()=>An,isHtmlElement:()=>oo,isLocal:()=>wf,isMethod:()=>Vt,isMobile:()=>Nf,isNode:()=>me,isNot:()=>fr,isNotProduction:()=>mr,isNull:()=>fa,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>R,isPhoto:()=>Ip,isProduction:()=>Le,isResolvedColor:()=>ae,isScalingUnit:()=>Ir,isStaging:()=>_f,isState:()=>ln,isString:()=>b,isStringFunction:()=>Of,isTest:()=>ga,isTesting:()=>Sf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>Jr,jointStacks:()=>zf,keys:()=>xn,loadCssFile:()=>Ap,loadJavascript:()=>Tp,loadJavascriptFile:()=>Ep,loadJavascriptFileEmbedSync:()=>Op,loadJavascriptFileSync:()=>kp,loadRemoteCSS:()=>Rp,loadRemoteScript:()=>Rn,loadTranslations:()=>ta,log:()=>xs,logGroupIf:()=>If,logIf:()=>Rf,lookdown:()=>cs,lookdownAll:()=>ls,lookup:()=>as,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>gf,map:()=>uf,mapStringsWithContextComponents:()=>$o,matchesComponentNaming:()=>Rt,media:()=>qp,memoize:()=>kf,merge:()=>Y,mixTwoColors:()=>dp,mixTwoRgb:()=>yp,mixTwoRgba:()=>yc,nextElement:()=>ws,numToLetterMap:()=>Ee,objectToString:()=>mo,objectizeStringProperty:()=>Uo,opacify:()=>On,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>hr,overwriteState:()=>es,parse:()=>Sn,parseColorToken:()=>Xe,parseDeep:()=>Sr,pickupElementFromProps:()=>yr,pickupPropsFromElement:()=>Pa,polyglotFunctions:()=>no,polyglotPlugin:()=>oa,previousElement:()=>vs,propExists:()=>Jf,propertizeElement:()=>an,propertizeUpdate:()=>zo,reinit:()=>gl,remove:()=>fs,removeChars:()=>Lp,removeCookie:()=>$f,removeDuplicateProps:()=>Wo,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>io,removeFromObject:()=>bo,removeNestedKeyByPath:()=>So,removeValueFromArray:()=>co,removeValueFromArrayAll:()=>Gl,reorderArrayByValues:()=>Yl,replaceLiteralsWithObjectFields:()=>ef,replaceOctalEscapeSequences:()=>nf,reset:()=>ld,resolveColorsInGradient:()=>bi,resolveFileUrl:()=>we,resolveHandler:()=>Be,resolvePropValue:()=>jt,returnSubThemeOrDefault:()=>xp,returnValueAsText:()=>$a,rgbArrayToHex:()=>dc,rgbToHSL:()=>hc,rgbToHex:()=>mp,runPluginHook:()=>rn,runThroughMedia:()=>Rc,scratchSystem:()=>Mn,scratchUtils:()=>er,self:()=>Vl,semantic_icons:()=>Jp,sequence:()=>ve,set:()=>Lr,setActiveConfig:()=>Cc,setClass:()=>bS,setColor:()=>rr,setCookie:()=>Df,setCustomFont:()=>Bs,setCustomFontMedia:()=>Je,setEach:()=>_d,setFont:()=>ni,setFontFamily:()=>$n,setFontImport:()=>Tn,setGradient:()=>nr,setHashedExtend:()=>_a,setInCustomFontMedia:()=>xc,setInObjectByPath:()=>_o,setLang:()=>ea,setLocalStorage:()=>Mf,setMediaTheme:()=>ri,setNodeStyles:()=>bn,setProps:()=>us,setPropsPrototype:()=>qo,setSVG:()=>Ln,setScalingVar:()=>qs,setShadow:()=>or,setSubScalingVar:()=>kc,setSvgIcon:()=>hi,setTheme:()=>ei,setValue:()=>Sd,setVariables:()=>dd,shadow:()=>Xp,spacing:()=>Wp,splitSpacedValue:()=>li,splitTopLevelCommas:()=>Qe,splitTransition:()=>Bn,spotByPath:()=>is,stringIncludesAny:()=>lo,stringToObject:()=>df,svg:()=>od,svg_data:()=>sd,swapItemsInArray:()=>Hl,syncProps:()=>Go,templates:()=>id,theme:()=>Yp,timing:()=>Zp,toCamelCase:()=>Vs,toDashCase:()=>js,toDescriptionCase:()=>Bp,toTitleCase:()=>Mp,toggleFullscreen:()=>_p,transformBackgroundImage:()=>Fc,transformBorder:()=>le,transformBorderRadius:()=>xi,transformBoxShadow:()=>yi,transformDOMQLEmotion:()=>uc,transformDuration:()=>sr,transformEmotion:()=>sx,transformEmotionClass:()=>fc,transformEmotionStyle:()=>pp,transformShadow:()=>Dc,transformSize:()=>nt,transformSizeRatio:()=>U,transformTextStroke:()=>Nc,transformTransition:()=>xd,transformersByPrefix:()=>Yc,transfromGap:()=>$c,translate:()=>Zi,triggerEventOn:()=>H,triggerEventOnUpdate:()=>St,trimStringFromSymbols:()=>tf,typography:()=>zs,unit:()=>Up,unstackArrayOfObjects:()=>ao,update:()=>Na,updateProps:()=>Ko,updateVars:()=>yS,upsertTranslation:()=>ra,useCssInProps:()=>Wt,usePropsAsCSS:()=>vd,useSelectorsAsCSS:()=>Cd,variables:()=>Cs,verbose:()=>_n,warn:()=>Ss,window:()=>F});v();v();var Hy=["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"],Ts={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"]},Tu=["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"],rc=(t,e)=>{if(Object.prototype.hasOwnProperty.call(Ts,t)){let r=Ts[t];return r.includes(e)||r.includes("default")}else return Ts.default.includes(e)},Ru=t=>{if(!b(t))return!1;let e=t.toLowerCase();return Tu.includes(e)},nc=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;let s=rc(t,o),i=Ru(o);kt(e[o])&&(s||i)&&(n[o]=e[o])}return n},qy=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},jt=(t,e)=>{let r=t.call("exec",e,t);if(r)return b(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},ec={src:t=>jt(t,t.props.src),href:t=>jt(t,t.props.href),action:t=>jt(t,t.props.action),poster:t=>jt(t,t.props.poster),data:t=>jt(t,t.props.data)},Wy=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in ec)if(r[o]!==void 0&&rc(e,o)){let s=ec[o](t);s!==void 0&&(n[o]=s)}return n};v();v();var Gy=!1;function Ky(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Yy(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Iu=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Gy:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yy(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ky(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var ft="-ms-",wn="-moz-",q="-webkit-",Rs="comm",_r="rule",wr="decl";var Pu="@import";var Is="@keyframes";var Nu="@layer";var Du=Math.abs,Ke=String.fromCharCode,Fu=Object.assign;function $u(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function Ps(t){return t.trim()}function oc(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,r){return t.replace(e,r)}function vn(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function _e(t,e,r){return t.slice(e,r)}function dt(t){return t.length}function vr(t){return t.length}function Cr(t,e){return e.push(t),t}function sc(t,e){return t.map(e).join("")}var Ns=1,Er=1,Lu=0,ht=0,ot=0,Or="";function Cn(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:Ns,column:Er,length:i,return:""}}function Ar(t,e){return Fu(Cn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Mu(){return ot}function Bu(){return ot=ht>0?et(Or,--ht):0,Er--,ot===10&&(Er=1,Ns--),ot}function mt(){return ot=ht<Lu?et(Or,ht++):0,Er++,ot===10&&(Er=1,Ns++),ot}function $t(){return et(Or,ht)}function En(){return ht}function Tr(t,e){return _e(Or,t,e)}function kr(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ds(t){return Ns=Er=1,Lu=dt(Or=t),ht=0,[]}function Fs(t){return Or="",t}function Rr(t){return Ps(Tr(ht-1,ic(t===91?t+2:t===40?t+1:t)))}function Uu(t){for(;(ot=$t())&&ot<33;)mt();return kr(t)>2||kr(ot)>3?"":" "}function Vu(t,e){for(;--e&&mt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Tr(t,En()+(e<6&&$t()==32&&mt()==32))}function ic(t){for(;mt();)switch(ot){case t:return ht;case 34:case 39:t!==34&&t!==39&&ic(ot);break;case 40:t===41&&ic(t);break;case 92:mt();break}return ht}function ju(t,e){for(;mt()&&t+ot!==57;)if(t+ot===84&&$t()===47)break;return"/*"+Tr(e,ht-1)+"*"+Ke(t===47?t:mt())}function zu(t){for(;!kr($t());)mt();return Tr(t,ht)}function Wu(t){return Fs($s("",null,null,null,[""],t=Ds(t),0,[0],t))}function $s(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,x=1,_=1,w=0,C="",P=o,A=s,T=n,k=C;x;)switch(h=w,w=mt()){case 40:if(h!=108&&et(k,u-1)==58){vn(k+=B(Rr(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=Rr(w);break;case 9:case 10:case 13:case 32:k+=Uu(h);break;case 92:k+=Vu(En()-1,7);continue;case 47:switch($t()){case 42:case 47:Cr(Xy(ju(mt(),En()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=dt(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+l:_==-1&&(k=B(k,/\f/g,"")),d>0&&dt(k)-u&&Cr(d>32?qu(k+";",n,r,u-1):qu(B(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Cr(T=Hu(k,e,r,f,l,o,a,C,P=[],A=[],u),s),w===123)if(l===0)$s(k,e,T,T,P,s,u,a,A);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:$s(t,T,T,n&&Cr(Hu(t,T,T,0,0,o,a,C,o,P=[],u),A),o,A,u,a,n?P:A);break;default:$s(k,T,T,T,[""],A,0,a,A)}}f=l=d=0,m=_=1,C=k="",u=i;break;case 58:u=1+dt(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&Bu()==125)continue}switch(k+=Ke(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(dt(k)-1)*_,_=1;break;case 64:$t()===45&&(k+=Rr(mt())),p=$t(),l=u=dt(C=k+=zu(En())),w++;break;case 45:h===45&&dt(k)==2&&(m=0)}}return s}function Hu(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=vr(p),h=0,m=0,x=0;h<n;++h)for(var _=0,w=_e(t,u+1,u=Du(m=i[h])),C=t;_<d;++_)(C=Ps(m>0?p[_]+" "+w:B(w,/&\f/g,p[_])))&&(c[x++]=C);return Cn(t,e,r,o===0?_r:a,c,f,l)}function Xy(t,e,r){return Cn(t,e,r,Rs,Ke(Mu()),_e(t,2,-2),0)}function qu(t,e,r,n){return Cn(t,e,r,wr,_e(t,0,n),_e(t,n+1,-1),n)}function Ye(t,e){for(var r="",n=vr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Gu(t,e,r,n){switch(t.type){case Nu:if(t.children.length)break;case Pu:case wr:return t.return=t.return||t.value;case Rs:return"";case Is:return t.return=t.value+"{"+Ye(t.children,n)+"}";case _r:t.value=t.props.join(",")}return dt(r=Ye(t.children,n))?t.return=t.value+"{"+r+"}":""}function Ku(t){var e=vr(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function Yu(t){return function(e){e.root||(e=e.return)&&t(e)}}function Xu(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Qy=function(e,r,n){for(var o=0,s=0;o=s,s=$t(),o===38&&s===12&&(r[n]=1),!kr(s);)mt();return Tr(e,ht)},Jy=function(e,r){var n=-1,o=44;do switch(kr(o)){case 0:o===38&&$t()===12&&(r[n]=1),e[n]+=Qy(ht-1,r,n);break;case 2:e[n]+=Rr(o);break;case 4:if(o===44){e[++n]=$t()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Ke(o)}while(o=mt());return e},Zy=function(e,r){return Fs(Jy(Ds(e),r))},Qu=new WeakMap,tb=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Qu.get(n))&&!o){Qu.set(e,!0);for(var s=[],i=Zy(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},eb=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ju(t,e){switch($u(t,e)){case 5103:return q+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return q+t+wn+t+ft+t+t;case 6828:case 4268:return q+t+ft+t+t;case 6165:return q+t+ft+"flex-"+t+t;case 5187:return q+t+B(t,/(\w+).+(:[^]+)/,q+"box-$1$2"+ft+"flex-$1$2")+t;case 5443:return q+t+ft+"flex-item-"+B(t,/flex-|-self/,"")+t;case 4675:return q+t+ft+"flex-line-pack"+B(t,/align-content|flex-|-self/,"")+t;case 5548:return q+t+ft+B(t,"shrink","negative")+t;case 5292:return q+t+ft+B(t,"basis","preferred-size")+t;case 6060:return q+"box-"+B(t,"-grow","")+q+t+ft+B(t,"grow","positive")+t;case 4554:return q+B(t,/([^-])(transform)/g,"$1"+q+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+t+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,q+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+wn+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~vn(t,"stretch")?Ju(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,dt(t)-3-(~vn(t,"!important")&&10))){case 107:return B(t,":",":"+q)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(et(t,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+ft+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return q+t+ft+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return q+t+ft+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return q+t+ft+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return q+t+ft+t+t}return t}var rb=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case wr:e.return=Ju(e.value,e.length);break;case Is:return Ye([Ar(e,{value:B(e.value,"@","@"+q)})],o);case _r:if(e.length)return sc(e.props,function(s){switch(oc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ye([Ar(e,{props:[B(s,/:(read-\w+)/,":"+wn+"$1")]})],o);case"::placeholder":return Ye([Ar(e,{props:[B(s,/:(plac\w+)/,":"+q+"input-$1")]}),Ar(e,{props:[B(s,/:(plac\w+)/,":"+wn+"$1")]}),Ar(e,{props:[B(s,/:(plac\w+)/,ft+"input-$1")]})],o)}return""})}},nb=[rb],Zu=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||nb,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),_=1;_<x.length;_++)s[x[_]]=!0;a.push(m)});var c,f=[tb,eb];{var l,u=[Gu,Yu(function(m){l.insert(m)})],p=Ku(f.concat(o,u)),d=function(x){return Ye(Wu(x),p)};c=function(x,_,w,C){l=w,d(x?x+"{"+_.styles+"}":_.styles),C&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new Iu({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function tp(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ep={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ob=!1,sb=/[A-Z]|^ms/g,ib=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sp=function(e){return e.charCodeAt(1)===45},rp=function(e){return e!=null&&typeof e!="boolean"},ac=Xu(function(t){return sp(t)?t:t.replace(sb,"-$&").toLowerCase()}),np=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(ib,function(n,o,s){return Jt={name:o,styles:s,next:Jt},o})}return ep[e]!==1&&!sp(e)&&typeof r=="number"&&r!==0?r+"px":r},ab="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function kn(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Jt={name:o.name,styles:o.styles,next:Jt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Jt={name:i.name,styles:i.styles,next:Jt},i=i.next;var a=s.styles+";";return a}return cb(t,e,r)}case"function":{if(t!==void 0){var c=Jt,f=r(t);return Jt=c,kn(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function cb(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=kn(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":rp(a)&&(n+=ac(s)+":"+np(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&ob)throw new Error(ab);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)rp(i[c])&&(n+=ac(s)+":"+np(s,i[c])+";");else{var f=kn(t,e,i);switch(s){case"animation":case"animationName":{n+=ac(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var op=/label:\s*([^\s;{]+)\s*(;|$)/g,Jt;function Ls(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Jt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=kn(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=kn(r,e,t[a]),n){var c=s;o+=c[a]}op.lastIndex=0;for(var f="",l;(l=op.exec(o))!==null;)f+="-"+l[1];var u=tp(o)+f;return{name:u,styles:o,next:Jt}}var lb=!0;function cc(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var fb=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||lb===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},ip=function(e,r,n){fb(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function ap(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function cp(t,e,r){var n=[],o=cc(t,n,r);return n.length<2?r:o+e(n)}var lc=function(e){var r=Zu(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=Ls(f,r.registered,void 0);return ip(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=Ls(f,r.registered),p="animation-"+u.name;return ap(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=Ls(f,r.registered);ap(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return cp(r.registered,n,ub(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:cc.bind(null,r.registered),merge:cp.bind(null,r.registered,n)}},ub=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var pb=/\s+/g,db=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},lp=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},fp=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=lp(t,e)),t.replace(pb," ").trim()},Ms=(t,e,r)=>{let n=fp(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function hb(t,e,r){Ms(t,e,r)}var up=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return lc({key:r,container:e})},wt=up(),pp=t=>(e,r,n)=>{let o=O(e,r);if(e){let{__ref:s}=r;s.__class.style=o}fc(t)(r.classlist,r,r.state,!0)},fc=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(R(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;b(f)||ct(f)?l=f:Qr(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&Ms(a,r,r.node)}},uc=(t,e)=>(t||(t=lc(e||{key:"smbls"})),{style:pp(t),classlist:fc(t)});var er={};Nt(er,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>Pr,applyMediaSequenceVars:()=>tr,applySequenceGlobalVars:()=>Qs,applySequenceVars:()=>Oe,changeLightness:()=>bp,colorStringToRgbaArray:()=>ie,convertSvgToSymbol:()=>Js,findHeadingLetter:()=>Ac,findHeadings:()=>Xs,generateSequence:()=>zt,generateSequencePosition:()=>pd,generateSprite:()=>Dn,generateSubSequence:()=>Ks,getColorShade:()=>gc,getDefaultOrFirstKey:()=>Dr,getFnPrefixAndValue:()=>ke,getFontFace:()=>Sp,getFontFaceEach:()=>Fr,getFontFaceEachString:()=>Sc,getFontFaceString:()=>Us,getFontFormat:()=>bc,getRgbTone:()=>Nr,getSequenceValue:()=>Ys,getSequenceValueBySymbols:()=>Oc,getSequenceValuePropertyPair:()=>ce,getSubratio:()=>Gs,getSubratioDifference:()=>Ws,hexToRgb:()=>hp,hexToRgbArray:()=>pc,hexToRgba:()=>gp,hslToRgb:()=>mc,isCSSVar:()=>rt,isGoogleFontsUrl:()=>An,isResolvedColor:()=>ae,isScalingUnit:()=>Ir,mixTwoColors:()=>dp,mixTwoRgb:()=>yp,mixTwoRgba:()=>yc,numToLetterMap:()=>Ee,opacify:()=>On,parseColorToken:()=>Xe,resolveFileUrl:()=>we,returnSubThemeOrDefault:()=>xp,rgbArrayToHex:()=>dc,rgbToHSL:()=>hc,rgbToHex:()=>mp,setCustomFont:()=>Bs,setCustomFontMedia:()=>Je,setFontImport:()=>Tn,setInCustomFontMedia:()=>xc,setScalingVar:()=>qs,setSubScalingVar:()=>kc,setVariables:()=>dd,splitTopLevelCommas:()=>Qe});var Ir=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Pr=["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"];v();var ie=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&L&&F){let e=L.body.appendChild(L.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){L.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return L.body.removeChild(e),[0,0,0,0];t=F.getComputedStyle(e).color,L.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},dp=(t,e,r=.5)=>(t=ie(t),e=ie(e),yc(t,e,r)),hp=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},pc=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},mp=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),dc=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),gp=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},yp=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},bp=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},hc=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},mc=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],gc=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},yc=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},On=(t,e)=>{let r=ie(t);if(!r){mr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},rt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,mb=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Xe=t=>{if(!b(t))return null;if(Zt.test(t))return{passthrough:t};if(rt(t))return{cssVar:t};let e=t.match(mb);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},ae=t=>b(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Qe=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},Nr=(t,e)=>{b(t)&&t.includes("rgb")&&(t=ie(t).join(", ")),b(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=dc(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=gc(r,parseFloat(e));return pc(o).join(", ")}else{let[o,s,i]=t,a=hc(o,s,i),[c,f,l]=a;return mc(c,f,parseFloat(e)/100*255)}};var xp=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var we=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},Dr=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},bc=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},An=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Tn=t=>`@import url('${t}');`,xc=t=>`@font-face { ${t} }`,Bs=(t,e,r,n={})=>{let o=bc(e),s=o?` format('${o}')`:"";return`
19
+ FROM ${a}${f}`},Uy=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},Vy=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},jy={graphql:$y,"json-api":Ly,odata:My,sql:By,supabase:Vy,paths:Uy}});var zy,As,Au=G(()=>{Ao();zy={snapshotId:ko},As=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=zy.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{Ao();ya();xt();ge();To();pr();Qr();Tf();Pf();en();Xr();Bf();ba();Ra();Fa();Bo();tu();eu();dr();ru();tc();Ha();Au();za()});var d_={};Nt(d_,{A:()=>vm,ANIMATION_PROPS:()=>Bc,ARIA_ROLES:()=>Hy,ATTR_TRANSFORMS:()=>ec,Avatar:()=>Mm,B:()=>yh,BLOCK_PROPS:()=>Uc,Block:()=>Dd,Box:()=>Ei,Br:()=>_h,Button:()=>km,ButtonSet:()=>Rm,CDN_PROVIDERS:()=>te,CLASS:()=>cd,CONFIG:()=>Hs,CSS_MEDIA_VARS:()=>ud,CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_PROPS_REGISTRY:()=>Br,CSS_UNITS:()=>Nr,CSS_VARS:()=>fd,Caption:()=>ch,Checkbox:()=>Rh,CheckboxHgroup:()=>Ih,CircleButton:()=>Am,Clickable:()=>qd,DEFAULT_CONFIG:()=>_i,DEFAULT_CONTEXT:()=>Ui,DEFAULT_CSS_PROPERTIES_LIST:()=>Gc,DESIGN_SYSTEM_OPTIONS:()=>Sl,DOMQL_EVENTS:()=>ho,DOMQ_PROPERTIES:()=>De,DOM_EVENTS:()=>Tu,Data:()=>xh,Dialog:()=>Pm,DialogFooter:()=>Dm,DialogHeader:()=>Nm,DropdownList:()=>Um,DropdownParent:()=>Vm,DropdownParentFocus:()=>jm,DropdownSiblingFocus:()=>zm,ENV:()=>xf,FACTORY:()=>Ce,FLEX_PROPS:()=>qc,FONT_PROPS:()=>Vc,FileIcon:()=>Uh,Flex:()=>$d,Focusable:()=>Wd,FocusableComponent:()=>Gd,Footnote:()=>gh,Form:()=>jd,GRID_PROPS:()=>Wc,Grid:()=>Md,Gutter:()=>Ud,H1:()=>eh,H2:()=>rh,H3:()=>nh,H4:()=>oh,H5:()=>sh,H6:()=>ih,HTML_ATTRIBUTES:()=>Ts,HTML_TAGS:()=>on,Headline:()=>hh,Hgroup:()=>Eh,HgroupButton:()=>Oh,HgroupRows:()=>kh,Hoverable:()=>Hd,Hr:()=>Sh,I:()=>bh,Icon:()=>Mh,IconButton:()=>Im,IconText:()=>Bh,Iframe:()=>zd,Img:()=>Vd,Inline:()=>Fd,InlineFlex:()=>Ld,InlineGrid:()=>Bd,Input:()=>Ah,Italic:()=>ph,KangorooButton:()=>Tm,Li:()=>wh,Link:()=>hl,METHODS:()=>rn,METHODS_EXL:()=>po,MISC_PROPS:()=>Si,NODE_ENV:()=>Yt,Notification:()=>Hm,NumberInput:()=>Th,OPTIONS:()=>lt,Ol:()=>Ch,P:()=>ah,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>uo,POSITION_PROPS:()=>jc,PROPS_METHODS:()=>Fe,Picture:()=>Qd,ROUTER_OPTIONS:()=>Bi,Radio:()=>Ph,RadioHgroup:()=>Nh,Range:()=>Bm,RouteLink:()=>Cm,RouterLink:()=>ml,SHAPES:()=>Yd,STATE_METHODS:()=>At,STATE_PROPERTIES:()=>lf,SVG_TAGS:()=>Ue,Select:()=>Em,SquareButton:()=>Om,Strong:()=>lh,Subhead:()=>mh,Svg:()=>Jd,THEME_PROPS:()=>zc,TIMING_PROPS:()=>Hc,TYPES:()=>io,Text:()=>th,Textarea:()=>$h,TextareaWithButton:()=>Lh,Theme:()=>Xd,Title:()=>dh,Toggle:()=>Dh,ToggleHgroup:()=>Fh,Tooltip:()=>Fm,TooltipHidden:()=>$m,TooltipParent:()=>Lm,U:()=>fh,Ul:()=>vh,Underline:()=>uh,VALUE_TRANSFORMERS:()=>Lc,Video:()=>Zd,activateConfig:()=>Ab,addCaching:()=>ja,addContext:()=>Va,addExtend:()=>Hf,addExtends:()=>Tt,addItemAfterEveryElement:()=>Kl,addProtoToArray:()=>ur,addRef:()=>Ma,animation:()=>nd,appendSVGSprite:()=>di,appendSvgIconsSprite:()=>mi,applyAttrTransforms:()=>Wy,applyCSS:()=>yl,applyClassListOnNode:()=>Ms,applyClasslist:()=>hb,applyDependentState:()=>es,applyDocument:()=>pi,applyEvent:()=>br,applyEventUpdate:()=>ns,applyExtends:()=>Mo,applyHeadings:()=>Ic,applyMediaSequenceVars:()=>tr,applyProps:()=>jo,applyReset:()=>gi,applySequenceGlobalVars:()=>Qs,applySequenceVars:()=>Oe,applySpacingSequence:()=>ci,applyTimingSequence:()=>ui,applyTrueProps:()=>Kc,applyTypographySequence:()=>si,arrayContainsOtherArray:()=>jl,arraysEqual:()=>Xl,arrayzeValue:()=>Lr,assignKeyAsClassname:()=>db,breakpoints:()=>td,cache:()=>ou,call:()=>Es,captureSnapshot:()=>As,cases:()=>rd,changeLightness:()=>bp,checkAttributeByTagName:()=>rc,checkEventFunctions:()=>Ru,checkForStateTypes:()=>Jo,checkIfBoxSize:()=>ai,checkIfInherits:()=>qe,checkIfStringIsInArray:()=>Zl,classList:()=>fp,classify:()=>lp,clone:()=>pf,cloneAndMergeArrayExtend:()=>Ro,cloneFunction:()=>Af,color:()=>Gp,colorStringToRgbaArray:()=>ie,concatAddExtends:()=>No,convertSvgToSymbol:()=>Js,copyJavaScriptToClipboard:()=>$p,copyStringToClipboard:()=>Fp,create:()=>Ml,createAsync:()=>f_,createBasedOnType:()=>La,createDefine:()=>og,createElement:()=>Qo,createElementExtends:()=>Ca,createEmotion:()=>up,createExtends:()=>Po,createExtendsFromKeys:()=>sn,createExtendsStack:()=>Aa,createIfConditionFlag:()=>gr,createInheritedState:()=>Zo,createKey:()=>Oo,createNestedObject:()=>So,createNestedObjectByKeyPath:()=>ts,createObjectWithoutPrototype:()=>ma,createParent:()=>Ba,createPath:()=>Ua,createProps:()=>zo,createPropsStack:()=>Da,createRoot:()=>Xo,createScope:()=>un,createSkeleton:()=>p_,createSnapshotId:()=>ko,createSync:()=>u_,customDecodeURIComponent:()=>cf,customEncodeURIComponent:()=>af,cutArrayAfterValue:()=>Wl,cutArrayBeforeValue:()=>ql,debounce:()=>Cf,debounceOnContext:()=>Ef,decodeNewlines:()=>sf,deepClone:()=>j,deepContains:()=>bo,deepDestringifyFunctions:()=>ne,deepExtend:()=>va,deepMerge:()=>M,deepMergeExtends:()=>se,deepStringifyFunctions:()=>mo,defaultDefine:()=>jr,defineSetter:()=>ku,depth:()=>vi,detectInfiniteLoop:()=>Co,devices:()=>ed,emotion:()=>wt,encodeNewlines:()=>of,error:()=>_r,excludeKeysFromObject:()=>bf,exec:()=>O,executeAttr:()=>qy,exetuteClassPerComponent:()=>nx,extendCachedRegistry:()=>Vf,extendStackRegistry:()=>Do,extractArrayExtend:()=>$o,fibonacciNumberByIndex:()=>Cp,filterArrays:()=>Ql,filterArraysFast:()=>Jl,filterAttributesByTagName:()=>nc,finalizeExtends:()=>Ta,findClosestNumber:()=>_c,findClosestNumberInFactory:()=>wp,findHeadingLetter:()=>Ac,findHeadings:()=>Xs,findInheritedState:()=>He,findKeyPosition:()=>rf,flattenExtend:()=>an,font:()=>Vp,font_face:()=>Hp,font_family:()=>jp,font_family_types:()=>zp,formatDate:()=>vp,generateHash:()=>Sa,generateKey:()=>Eo,generateMetaTags:()=>Np,generateSequence:()=>zt,generateSequencePosition:()=>pd,generateSprite:()=>Fn,generateSubSequence:()=>Ks,get:()=>Cu,getActiveConfig:()=>E,getActiveLang:()=>no,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>Wf,getCdnProviderFromConfig:()=>Pn,getChildStateInKey:()=>ze,getChildren:()=>Eu,getColor:()=>Q,getColorShade:()=>gc,getContext:()=>xs,getCookie:()=>Ff,getDB:()=>ks,getDefaultOrFirstKey:()=>Fr,getExtendsInElement:()=>qf,getExtendsStack:()=>Io,getExtendsStackRegistry:()=>wa,getFnPrefixAndValue:()=>ke,getFontFace:()=>Sp,getFontFaceEach:()=>$r,getFontFaceEachString:()=>Sc,getFontFaceString:()=>Us,getFontFamily:()=>oi,getFontFormat:()=>bc,getFontSizeByKey:()=>ii,getFrequencyInArray:()=>zl,getHashedExtend:()=>Fo,getImportMapScript:()=>Pp,getInObjectByPath:()=>vo,getLanguages:()=>Ji,getLocalStateLang:()=>na,getLocalStorage:()=>Lf,getMediaColor:()=>vt,getMediaTheme:()=>Ht,getNev:()=>vf,getPageMetadata:()=>Dp,getParentStateInKey:()=>je,getPath:()=>hs,getQuery:()=>Os,getRef:()=>ds,getRgbTone:()=>Dr,getRoot:()=>gs,getRootContext:()=>bs,getRootData:()=>ys,getRootState:()=>ms,getRootStateInKey:()=>Ve,getSequenceValue:()=>Ys,getSequenceValueBySymbols:()=>Oc,getSequenceValuePropertyPair:()=>ce,getShadow:()=>fi,getSpacingBasedOnRatio:()=>Ae,getSpacingByKey:()=>at,getSpreadChildren:()=>Gf,getSubratio:()=>Gs,getSubratioDifference:()=>Ws,getTheme:()=>ti,getTimingByKey:()=>Lt,getTimingFunction:()=>It,global:()=>Ul,gradient:()=>Kp,grid:()=>ad,hasFunction:()=>yo,hasHandlerPlugin:()=>Me,hasOwnProperty:()=>hf,hexToRgb:()=>hp,hexToRgbArray:()=>pc,hexToRgba:()=>gp,hslToRgb:()=>mc,icons:()=>Qp,inheritChildExtends:()=>ka,inheritChildPropsExtends:()=>Ea,inheritParentProps:()=>qo,inheritRecursiveChildExtends:()=>Oa,init:()=>Te,initPolyglot:()=>Fl,initProps:()=>ln,is:()=>Ot,isArray:()=>S,isBoolean:()=>Jr,isCSSVar:()=>rt,isContextComponent:()=>Uo,isCyclic:()=>yf,isDOMNode:()=>Dt,isDate:()=>ua,isDefined:()=>kt,isDevelopment:()=>Xt,isEmpty:()=>da,isEmptyObject:()=>mf,isEqualDeep:()=>ha,isFunction:()=>b,isGoogleFontsUrl:()=>Tn,isHtmlElement:()=>so,isLocal:()=>wf,isMethod:()=>Vt,isMobile:()=>Nf,isNode:()=>me,isNot:()=>fr,isNotProduction:()=>mr,isNull:()=>fa,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>R,isPhoto:()=>Ip,isProduction:()=>Le,isResolvedColor:()=>ae,isScalingUnit:()=>Pr,isStaging:()=>_f,isState:()=>fn,isString:()=>y,isStringFunction:()=>Of,isTest:()=>ga,isTesting:()=>Sf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>Zr,jointStacks:()=>zf,keys:()=>Sn,loadCssFile:()=>Ap,loadJavascript:()=>Tp,loadJavascriptFile:()=>Ep,loadJavascriptFileEmbedSync:()=>Op,loadJavascriptFileSync:()=>kp,loadRemoteCSS:()=>Rp,loadRemoteScript:()=>In,loadTranslations:()=>ta,log:()=>Ss,logGroupIf:()=>If,logIf:()=>Rf,lookdown:()=>ls,lookdownAll:()=>fs,lookup:()=>cs,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>gf,map:()=>uf,mapStringsWithContextComponents:()=>Lo,matchesComponentNaming:()=>Rt,media:()=>qp,memoize:()=>kf,merge:()=>Y,mixTwoColors:()=>dp,mixTwoRgb:()=>yp,mixTwoRgba:()=>yc,nextElement:()=>ws,numToLetterMap:()=>Ee,objectToString:()=>go,objectizeStringProperty:()=>Vo,opacify:()=>An,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>hr,overwriteState:()=>rs,parse:()=>_n,parseColorToken:()=>Xe,parseDeep:()=>Sr,pickupElementFromProps:()=>yr,pickupPropsFromElement:()=>Pa,polyglotFunctions:()=>oo,polyglotPlugin:()=>oa,previousElement:()=>vs,propExists:()=>Jf,propertizeElement:()=>cn,propertizeUpdate:()=>Ho,reinit:()=>gl,remove:()=>us,removeChars:()=>Lp,removeCookie:()=>$f,removeDuplicateProps:()=>Go,removeDuplicatesInArray:()=>tn,removeFromArray:()=>ao,removeFromObject:()=>xo,removeNestedKeyByPath:()=>_o,removeValueFromArray:()=>lo,removeValueFromArrayAll:()=>Gl,reorderArrayByValues:()=>Yl,replaceLiteralsWithObjectFields:()=>ef,replaceOctalEscapeSequences:()=>nf,reset:()=>ld,resolveColorsInGradient:()=>bi,resolveFileUrl:()=>we,resolveHandler:()=>Be,resolvePropValue:()=>jt,returnSubThemeOrDefault:()=>xp,returnValueAsText:()=>$a,rgbArrayToHex:()=>dc,rgbToHSL:()=>hc,rgbToHex:()=>mp,runPluginHook:()=>nn,runThroughMedia:()=>Rc,scratchSystem:()=>Bn,scratchUtils:()=>er,self:()=>Vl,semantic_icons:()=>Jp,sequence:()=>ve,set:()=>Mr,setActiveConfig:()=>Cc,setClass:()=>bS,setColor:()=>rr,setCookie:()=>Df,setCustomFont:()=>Bs,setCustomFontMedia:()=>Je,setEach:()=>_d,setFont:()=>ni,setFontFamily:()=>Ln,setFontImport:()=>Rn,setGradient:()=>nr,setHashedExtend:()=>_a,setInCustomFontMedia:()=>xc,setInObjectByPath:()=>wo,setLang:()=>ea,setLocalStorage:()=>Mf,setMediaTheme:()=>ri,setNodeStyles:()=>xn,setProps:()=>ps,setPropsPrototype:()=>Wo,setSVG:()=>Mn,setScalingVar:()=>qs,setShadow:()=>or,setSubScalingVar:()=>kc,setSvgIcon:()=>hi,setTheme:()=>ei,setValue:()=>Sd,setVariables:()=>dd,shadow:()=>Xp,spacing:()=>Wp,splitSpacedValue:()=>li,splitTopLevelCommas:()=>Qe,splitTransition:()=>Un,spotByPath:()=>as,stringIncludesAny:()=>fo,stringToObject:()=>df,svg:()=>od,svg_data:()=>sd,swapItemsInArray:()=>Hl,syncProps:()=>Ko,templates:()=>id,theme:()=>Yp,timing:()=>Zp,toCamelCase:()=>Vs,toDashCase:()=>js,toDescriptionCase:()=>Bp,toTitleCase:()=>Mp,toggleFullscreen:()=>_p,transformBackgroundImage:()=>Fc,transformBorder:()=>le,transformBorderRadius:()=>xi,transformBoxShadow:()=>yi,transformDOMQLEmotion:()=>uc,transformDuration:()=>sr,transformEmotion:()=>sx,transformEmotionClass:()=>fc,transformEmotionStyle:()=>pp,transformShadow:()=>Dc,transformSize:()=>nt,transformSizeRatio:()=>U,transformTextStroke:()=>Nc,transformTransition:()=>xd,transformersByPrefix:()=>Yc,transfromGap:()=>$c,translate:()=>Zi,triggerEventOn:()=>H,triggerEventOnUpdate:()=>St,trimStringFromSymbols:()=>tf,typography:()=>zs,unit:()=>Up,unstackArrayOfObjects:()=>co,update:()=>Na,updateProps:()=>Yo,updateVars:()=>yS,upsertTranslation:()=>ra,useCssInProps:()=>Wt,usePropsAsCSS:()=>vd,useSelectorsAsCSS:()=>Cd,variables:()=>Cs,verbose:()=>wn,warn:()=>_s,window:()=>F});v();v();var Hy=["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"],Ts={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"]},Tu=["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"],rc=(t,e)=>{if(Object.prototype.hasOwnProperty.call(Ts,t)){let r=Ts[t];return r.includes(e)||r.includes("default")}else return Ts.default.includes(e)},Ru=t=>{if(!y(t))return!1;let e=t.toLowerCase();return Tu.includes(e)},nc=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;let s=rc(t,o),i=Ru(o);kt(e[o])&&(s||i)&&(n[o]=e[o])}return n},qy=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},jt=(t,e)=>{let r=t.call("exec",e,t);if(r)return y(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},ec={src:t=>jt(t,t.props.src),href:t=>jt(t,t.props.href),action:t=>jt(t,t.props.action),poster:t=>jt(t,t.props.poster),data:t=>jt(t,t.props.data)},Wy=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in ec)if(r[o]!==void 0&&rc(e,o)){let s=ec[o](t);s!==void 0&&(n[o]=s)}return n};v();v();var Gy=!1;function Ky(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Yy(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Iu=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Gy:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yy(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ky(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var ft="-ms-",vn="-moz-",q="-webkit-",Rs="comm",wr="rule",vr="decl";var Pu="@import";var Is="@keyframes";var Nu="@layer";var Du=Math.abs,Ke=String.fromCharCode,Fu=Object.assign;function $u(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function Ps(t){return t.trim()}function oc(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,r){return t.replace(e,r)}function Cn(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function _e(t,e,r){return t.slice(e,r)}function dt(t){return t.length}function Cr(t){return t.length}function Er(t,e){return e.push(t),t}function sc(t,e){return t.map(e).join("")}var Ns=1,kr=1,Lu=0,ht=0,ot=0,Ar="";function En(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:Ns,column:kr,length:i,return:""}}function Tr(t,e){return Fu(En("",null,null,"",null,null,0),t,{length:-t.length},e)}function Mu(){return ot}function Bu(){return ot=ht>0?et(Ar,--ht):0,kr--,ot===10&&(kr=1,Ns--),ot}function mt(){return ot=ht<Lu?et(Ar,ht++):0,kr++,ot===10&&(kr=1,Ns++),ot}function $t(){return et(Ar,ht)}function kn(){return ht}function Rr(t,e){return _e(Ar,t,e)}function Or(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ds(t){return Ns=kr=1,Lu=dt(Ar=t),ht=0,[]}function Fs(t){return Ar="",t}function Ir(t){return Ps(Rr(ht-1,ic(t===91?t+2:t===40?t+1:t)))}function Uu(t){for(;(ot=$t())&&ot<33;)mt();return Or(t)>2||Or(ot)>3?"":" "}function Vu(t,e){for(;--e&&mt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Rr(t,kn()+(e<6&&$t()==32&&mt()==32))}function ic(t){for(;mt();)switch(ot){case t:return ht;case 34:case 39:t!==34&&t!==39&&ic(ot);break;case 40:t===41&&ic(t);break;case 92:mt();break}return ht}function ju(t,e){for(;mt()&&t+ot!==57;)if(t+ot===84&&$t()===47)break;return"/*"+Rr(e,ht-1)+"*"+Ke(t===47?t:mt())}function zu(t){for(;!Or($t());)mt();return Rr(t,ht)}function Wu(t){return Fs($s("",null,null,null,[""],t=Ds(t),0,[0],t))}function $s(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,x=1,_=1,w=0,C="",P=o,A=s,T=n,k=C;x;)switch(h=w,w=mt()){case 40:if(h!=108&&et(k,u-1)==58){Cn(k+=B(Ir(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=Ir(w);break;case 9:case 10:case 13:case 32:k+=Uu(h);break;case 92:k+=Vu(kn()-1,7);continue;case 47:switch($t()){case 42:case 47:Er(Xy(ju(mt(),kn()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=dt(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+l:_==-1&&(k=B(k,/\f/g,"")),d>0&&dt(k)-u&&Er(d>32?qu(k+";",n,r,u-1):qu(B(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Er(T=Hu(k,e,r,f,l,o,a,C,P=[],A=[],u),s),w===123)if(l===0)$s(k,e,T,T,P,s,u,a,A);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:$s(t,T,T,n&&Er(Hu(t,T,T,0,0,o,a,C,o,P=[],u),A),o,A,u,a,n?P:A);break;default:$s(k,T,T,T,[""],A,0,a,A)}}f=l=d=0,m=_=1,C=k="",u=i;break;case 58:u=1+dt(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&Bu()==125)continue}switch(k+=Ke(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(dt(k)-1)*_,_=1;break;case 64:$t()===45&&(k+=Ir(mt())),p=$t(),l=u=dt(C=k+=zu(kn())),w++;break;case 45:h===45&&dt(k)==2&&(m=0)}}return s}function Hu(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=Cr(p),h=0,m=0,x=0;h<n;++h)for(var _=0,w=_e(t,u+1,u=Du(m=i[h])),C=t;_<d;++_)(C=Ps(m>0?p[_]+" "+w:B(w,/&\f/g,p[_])))&&(c[x++]=C);return En(t,e,r,o===0?wr:a,c,f,l)}function Xy(t,e,r){return En(t,e,r,Rs,Ke(Mu()),_e(t,2,-2),0)}function qu(t,e,r,n){return En(t,e,r,vr,_e(t,0,n),_e(t,n+1,-1),n)}function Ye(t,e){for(var r="",n=Cr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Gu(t,e,r,n){switch(t.type){case Nu:if(t.children.length)break;case Pu:case vr:return t.return=t.return||t.value;case Rs:return"";case Is:return t.return=t.value+"{"+Ye(t.children,n)+"}";case wr:t.value=t.props.join(",")}return dt(r=Ye(t.children,n))?t.return=t.value+"{"+r+"}":""}function Ku(t){var e=Cr(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function Yu(t){return function(e){e.root||(e=e.return)&&t(e)}}function Xu(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Qy=function(e,r,n){for(var o=0,s=0;o=s,s=$t(),o===38&&s===12&&(r[n]=1),!Or(s);)mt();return Rr(e,ht)},Jy=function(e,r){var n=-1,o=44;do switch(Or(o)){case 0:o===38&&$t()===12&&(r[n]=1),e[n]+=Qy(ht-1,r,n);break;case 2:e[n]+=Ir(o);break;case 4:if(o===44){e[++n]=$t()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Ke(o)}while(o=mt());return e},Zy=function(e,r){return Fs(Jy(Ds(e),r))},Qu=new WeakMap,tb=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Qu.get(n))&&!o){Qu.set(e,!0);for(var s=[],i=Zy(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},eb=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ju(t,e){switch($u(t,e)){case 5103:return q+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return q+t+vn+t+ft+t+t;case 6828:case 4268:return q+t+ft+t+t;case 6165:return q+t+ft+"flex-"+t+t;case 5187:return q+t+B(t,/(\w+).+(:[^]+)/,q+"box-$1$2"+ft+"flex-$1$2")+t;case 5443:return q+t+ft+"flex-item-"+B(t,/flex-|-self/,"")+t;case 4675:return q+t+ft+"flex-line-pack"+B(t,/align-content|flex-|-self/,"")+t;case 5548:return q+t+ft+B(t,"shrink","negative")+t;case 5292:return q+t+ft+B(t,"basis","preferred-size")+t;case 6060:return q+"box-"+B(t,"-grow","")+q+t+ft+B(t,"grow","positive")+t;case 4554:return q+B(t,/([^-])(transform)/g,"$1"+q+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+t+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,q+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+vn+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Cn(t,"stretch")?Ju(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,dt(t)-3-(~Cn(t,"!important")&&10))){case 107:return B(t,":",":"+q)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(et(t,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+ft+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return q+t+ft+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return q+t+ft+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return q+t+ft+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return q+t+ft+t+t}return t}var rb=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case vr:e.return=Ju(e.value,e.length);break;case Is:return Ye([Tr(e,{value:B(e.value,"@","@"+q)})],o);case wr:if(e.length)return sc(e.props,function(s){switch(oc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ye([Tr(e,{props:[B(s,/:(read-\w+)/,":"+vn+"$1")]})],o);case"::placeholder":return Ye([Tr(e,{props:[B(s,/:(plac\w+)/,":"+q+"input-$1")]}),Tr(e,{props:[B(s,/:(plac\w+)/,":"+vn+"$1")]}),Tr(e,{props:[B(s,/:(plac\w+)/,ft+"input-$1")]})],o)}return""})}},nb=[rb],Zu=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||nb,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),_=1;_<x.length;_++)s[x[_]]=!0;a.push(m)});var c,f=[tb,eb];{var l,u=[Gu,Yu(function(m){l.insert(m)})],p=Ku(f.concat(o,u)),d=function(x){return Ye(Wu(x),p)};c=function(x,_,w,C){l=w,d(x?x+"{"+_.styles+"}":_.styles),C&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new Iu({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function tp(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ep={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ob=!1,sb=/[A-Z]|^ms/g,ib=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sp=function(e){return e.charCodeAt(1)===45},rp=function(e){return e!=null&&typeof e!="boolean"},ac=Xu(function(t){return sp(t)?t:t.replace(sb,"-$&").toLowerCase()}),np=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(ib,function(n,o,s){return Jt={name:o,styles:s,next:Jt},o})}return ep[e]!==1&&!sp(e)&&typeof r=="number"&&r!==0?r+"px":r},ab="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function On(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Jt={name:o.name,styles:o.styles,next:Jt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Jt={name:i.name,styles:i.styles,next:Jt},i=i.next;var a=s.styles+";";return a}return cb(t,e,r)}case"function":{if(t!==void 0){var c=Jt,f=r(t);return Jt=c,On(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function cb(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=On(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":rp(a)&&(n+=ac(s)+":"+np(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&ob)throw new Error(ab);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)rp(i[c])&&(n+=ac(s)+":"+np(s,i[c])+";");else{var f=On(t,e,i);switch(s){case"animation":case"animationName":{n+=ac(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var op=/label:\s*([^\s;{]+)\s*(;|$)/g,Jt;function Ls(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Jt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=On(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=On(r,e,t[a]),n){var c=s;o+=c[a]}op.lastIndex=0;for(var f="",l;(l=op.exec(o))!==null;)f+="-"+l[1];var u=tp(o)+f;return{name:u,styles:o,next:Jt}}var lb=!0;function cc(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var fb=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||lb===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},ip=function(e,r,n){fb(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function ap(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function cp(t,e,r){var n=[],o=cc(t,n,r);return n.length<2?r:o+e(n)}var lc=function(e){var r=Zu(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=Ls(f,r.registered,void 0);return ip(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=Ls(f,r.registered),p="animation-"+u.name;return ap(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=Ls(f,r.registered);ap(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return cp(r.registered,n,ub(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:cc.bind(null,r.registered),merge:cp.bind(null,r.registered,n)}},ub=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var pb=/\s+/g,db=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},lp=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},fp=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=lp(t,e)),t.replace(pb," ").trim()},Ms=(t,e,r)=>{let n=fp(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function hb(t,e,r){Ms(t,e,r)}var up=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return lc({key:r,container:e})},wt=up(),pp=t=>(e,r,n)=>{let o=O(e,r);if(e){let{__ref:s}=r;s.__class.style=o}fc(t)(r.classlist,r,r.state,!0)},fc=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(R(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;y(f)||ct(f)?l=f:Jr(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&Ms(a,r,r.node)}},uc=(t,e)=>(t||(t=lc(e||{key:"smbls"})),{style:pp(t),classlist:fc(t)});var er={};Nt(er,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>Nr,applyMediaSequenceVars:()=>tr,applySequenceGlobalVars:()=>Qs,applySequenceVars:()=>Oe,changeLightness:()=>bp,colorStringToRgbaArray:()=>ie,convertSvgToSymbol:()=>Js,findHeadingLetter:()=>Ac,findHeadings:()=>Xs,generateSequence:()=>zt,generateSequencePosition:()=>pd,generateSprite:()=>Fn,generateSubSequence:()=>Ks,getColorShade:()=>gc,getDefaultOrFirstKey:()=>Fr,getFnPrefixAndValue:()=>ke,getFontFace:()=>Sp,getFontFaceEach:()=>$r,getFontFaceEachString:()=>Sc,getFontFaceString:()=>Us,getFontFormat:()=>bc,getRgbTone:()=>Dr,getSequenceValue:()=>Ys,getSequenceValueBySymbols:()=>Oc,getSequenceValuePropertyPair:()=>ce,getSubratio:()=>Gs,getSubratioDifference:()=>Ws,hexToRgb:()=>hp,hexToRgbArray:()=>pc,hexToRgba:()=>gp,hslToRgb:()=>mc,isCSSVar:()=>rt,isGoogleFontsUrl:()=>Tn,isResolvedColor:()=>ae,isScalingUnit:()=>Pr,mixTwoColors:()=>dp,mixTwoRgb:()=>yp,mixTwoRgba:()=>yc,numToLetterMap:()=>Ee,opacify:()=>An,parseColorToken:()=>Xe,resolveFileUrl:()=>we,returnSubThemeOrDefault:()=>xp,rgbArrayToHex:()=>dc,rgbToHSL:()=>hc,rgbToHex:()=>mp,setCustomFont:()=>Bs,setCustomFontMedia:()=>Je,setFontImport:()=>Rn,setInCustomFontMedia:()=>xc,setScalingVar:()=>qs,setSubScalingVar:()=>kc,setVariables:()=>dd,splitTopLevelCommas:()=>Qe});var Pr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Nr=["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"];v();var ie=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&L&&F){let e=L.body.appendChild(L.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){L.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return L.body.removeChild(e),[0,0,0,0];t=F.getComputedStyle(e).color,L.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},dp=(t,e,r=.5)=>(t=ie(t),e=ie(e),yc(t,e,r)),hp=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},pc=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},mp=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),dc=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),gp=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},yp=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},bp=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},hc=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},mc=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],gc=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},yc=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},An=(t,e)=>{let r=ie(t);if(!r){mr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},rt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,mb=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Xe=t=>{if(!y(t))return null;if(Zt.test(t))return{passthrough:t};if(rt(t))return{cssVar:t};let e=t.match(mb);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},ae=t=>y(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Qe=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},Dr=(t,e)=>{y(t)&&t.includes("rgb")&&(t=ie(t).join(", ")),y(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=dc(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=gc(r,parseFloat(e));return pc(o).join(", ")}else{let[o,s,i]=t,a=hc(o,s,i),[c,f,l]=a;return mc(c,f,parseFloat(e)/100*255)}};var xp=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var we=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},Fr=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},bc=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},Tn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Rn=t=>`@import url('${t}');`,xc=t=>`@font-face { ${t} }`,Bs=(t,e,r,n={})=>{let o=bc(e),s=o?` format('${o}')`:"";return`
20
20
  font-family: '${t}';
21
21
  font-style: normal;${r?`
22
22
  font-weight: ${r};`:""}${n.fontStretch?`
23
23
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
24
24
  font-display: ${n.fontDisplay};`:""}
25
25
  src: url('${e}')${s};`},Je=(t,e,r,n)=>`@font-face {${Bs(t,e,r,n)}
26
- }`,Fr=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=we(s,r)||s;return Bs(t,a,i)}),Sp=t=>Object.keys(t).map(r=>Fr(r,t[r].value)),Sc=(t,e,r)=>{if(e&&e.isVariable){let s=we(e.url,r)||e.url;return An(s)?Tn(s):Je(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return Fr(t,e,r).map(xc);let o=we(e.url,r)||e.url;return Je(t,o)},Us=(t,e)=>Object.keys(t).map(n=>Sc(n,t[n].value,e));v();v();async function _p(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}v();var _c=(t,e)=>(S(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),wp=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),_c(t,e));var vp=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`};var Cp=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]};var Ep=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),kp=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),Op=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},Ap=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Tp=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}};function Rn(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function Rp(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var Ip=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function gb(t){return/^[0-9.]+$/.test(t)&&t!==""}var te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!gb(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},Ze={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},In=(t={})=>{let{packageManager:e}=t;return Ze[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),Pp=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
26
+ }`,$r=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=we(s,r)||s;return Bs(t,a,i)}),Sp=t=>Object.keys(t).map(r=>$r(r,t[r].value)),Sc=(t,e,r)=>{if(e&&e.isVariable){let s=we(e.url,r)||e.url;return Tn(s)?Rn(s):Je(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return $r(t,e,r).map(xc);let o=we(e.url,r)||e.url;return Je(t,o)},Us=(t,e)=>Object.keys(t).map(n=>Sc(n,t[n].value,e));v();v();async function _p(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}v();var _c=(t,e)=>(S(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),wp=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),_c(t,e));var vp=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`};var Cp=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]};var Ep=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),kp=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),Op=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},Ap=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Tp=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}};function In(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function Rp(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var Ip=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function gb(t){return/^[0-9.]+$/.test(t)&&t!==""}var te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!gb(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},Ze={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Pn=(t={})=>{let{packageManager:e}=t;return Ze[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),Pp=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
27
27
  "imports": ${JSON.stringify(o,null,2)}
28
28
  }<\/script>`};v();var gt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},wc=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${gt(r)}"`).join(" "),Np=(t,e)=>{if(!e){let n=(()=>{let o=t?.favicon||t?.favicons;return o?typeof o=="string"?`<link rel="icon" href="${gt(o)}">`:Array.isArray(o)?o.map(s=>typeof s=="string"?`<link rel="icon" href="${gt(s)}">`:`<link ${wc({rel:"icon",...s})}>`).join(`
29
29
  `):`<link ${wc({rel:"icon",...o})}>`:'<link rel="icon" href="/favicon.ico">'})();return['<meta charset="UTF-8">',`<title>${gt(t.title||"Test")}</title>`,'<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">','<meta name="robots" content="noindex">','<meta name="apple-mobile-web-app-capable" content="yes">',n].join(`
30
30
  `)}return Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="string")n.push(`<link rel="icon" href="${gt(l)}">`);else if(typeof l=="object"){let u=wc(l);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="object"){let u=Object.entries(l).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${gt(d)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(f,l,u="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")n.push(`<meta ${u}="${gt(f)}" content="${gt(l)}">`);else if(Array.isArray(l))l.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${gt(f)}" content="${gt(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${gt(m)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof l=="object"){let p=Object.entries(l).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${gt(h)}"`).join(" ");n.push(`<meta ${p}>`)}};if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");return i(f,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");return i(f,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>o.startsWith(f));if(c){let f=o.replace(c,"");return i(`${c.replace(":","")}:${f}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let f=o.startsWith("apple:")?"apple-":"msapplication-",l=o.replace(/^apple:|^msapplication:/,"");return i(`${f}${l}`,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(`
31
- `)},yb=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function bb(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!yb(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};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 Dp(t,e){let r=t.pages?.[e],n=g(r?.state)&&r?.state,o=r?.metadata||r?.helmet||n||{},s=t.app?.metadata||{};return t.integrations?.seo?o={...t.integrations.seo,...s,...o}:Object.keys(s).length&&(o={...s,...o}),o.title||(o.title=t.name+" / symbo.ls"||"Symbols demo"),o=bb(o,t.files),o}var Fp=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},$p=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Lp=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Vs=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Mp=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),js=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Bp=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},$r=t=>{if(S(t))return t;if(b(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var vc={};Nt(vc,{CLASS:()=>cd,animation:()=>nd,breakpoints:()=>td,cases:()=>rd,color:()=>Gp,devices:()=>ed,document:()=>wb,font:()=>Vp,font_face:()=>Hp,font_family:()=>jp,font_family_types:()=>zp,gradient:()=>Kp,grid:()=>ad,icons:()=>Qp,media:()=>qp,reset:()=>ld,semantic_icons:()=>Jp,sequence:()=>ve,shadow:()=>Xp,spacing:()=>Wp,svg:()=>od,svg_data:()=>sd,templates:()=>id,theme:()=>Yp,timing:()=>Zp,typography:()=>zs,unit:()=>Up});var ve={"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 Up={default:"em"};var xb={browserDefault:16,base:16,type:"font-size",ratio:ve["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},zs=xb;var Vp={};var jp={},zp={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Hp={};var qp={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Sb={base:zs.base,type:"spacing",ratio:ve.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Wp=Sb;var Gp={},Kp={};var Yp={};var Xp={};var Qp={},Jp={};var _b={default:150,base:150,type:"timing",ratio:ve["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Zp=_b;var wb={};var td={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},ed={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 rd={};var nd={};var od={},sd={};var id={};var vb={},ad=vb;var Cb={},cd=Cb;var ld={};var fd={},ud={},Pn=vc,Nn={},Eb=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),kb=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in Pn){let e=t.toLowerCase();Nn[e]=Pn[t];let r=Eb(e);r!==e&&(Nn[r]=Pn[t]),e!==t&&(Nn[t]=Pn[t]);let n=kb(t);n!==t&&(Nn[n]=Pn[t])}var Hs={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:fd,CSS_MEDIA_VARS:ud,...Nn},Ob=j(Hs),Ce={active:"0",0:Hs},Ab=t=>(kt(t)&&(Ce.active=t),Ce[t||Ce.active]),E=t=>Ce[t||Ce.active]||Hs,Cc=t=>{if(g(t))return Ce.active="1",Ce[1]=M(t,j(Ob)),t};var Ee={"-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"},Ec=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s,e.vars[n]=s+e.unit},ke=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},qs=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(Ir(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=Ee[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=Ee[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},kc=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Ws=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Gs=(t,e)=>Ws(t,e).map(r=>r/t),Ks=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Ws(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let x=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,C=kc(m+1,l,i,e),P={key:r+(m+1),variable:_,value:h,scaling:x,scalingVariable:C,index:w};Ec(P,e)})},Tb=(t,e,r)=>e*Math.pow(r,t),zt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=Ee[f],u=Tb(f,r,n),p=~~(u/r*100)/100,d=a+l,h=qs(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Ec(m,t),s&&Ks(m,t)}return t},pd=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=b(e)?e:Ee[e],a=b(e)?Object.entries(Ee).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=qs(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Ec(h,c),s&&Ks(h,c),c},Ys=(t="A",e)=>{let r=E(),{unit:n}=r;if(b(t)&&rt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Pr.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${js(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let x=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,C]=h.split("+"),P=`${x(w)} + ${x(C)}`;return d?`calc((${P}) * -1)`:`calc(${P})`}else if(h.includes("*")){let[w,C]=h.split("*"),P=`${x(w)} * ${x(C)}`;return d?`calc((${P}) * -1)`:`calc(${P})`}else if(h.includes("-")){let[w,C]=h.split("-"),P=`${x(w)} - ${x(C)}`;return d?`calc((${P}) * -1)`:`calc(${P})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},Oc=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>Ys(i,e)).join(" "+n+" ")).join(""):t},ce=(t,e,r,n)=>{if(typeof t!="string")return E().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=ke(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Oc(t,r):t=Ys(t,r),{[e]:n?`${n}(${t})`:t}},Ac=(t,e)=>Ee[t-e],Xs=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Ac(e,o);return r[s]})};v();var dd=(t,e)=>{let r=E(),{CSS_VARS:n}=r;R(t.value)||(n[t.var]=t.value)},Qs=(t,e,r)=>{let n=E(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=Gs(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},Oe=(t,e={})=>{let r=E(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||Qs(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},tr=(t,e,r={})=>{let n=E(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),Qs(d,t[e],r);return}for(let d in l){let h=l[d],m=(Ir(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let x=i[`@media ${p}`];x||(x=i[`@media ${p}`]={}),x[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var Rb=mr(),Dn=t=>{let e=E(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},Ib=t=>{let e=t.default||t;if(!b(e)){Rb&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},Pb=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return S(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},Js=(t,e)=>{let r=Ib(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=Pb(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var Mn={};Nt(Mn,{appendSVGSprite:()=>di,appendSvgIconsSprite:()=>mi,applyDocument:()=>pi,applyHeadings:()=>Ic,applyReset:()=>gi,applySpacingSequence:()=>ci,applyTimingSequence:()=>ui,applyTypographySequence:()=>si,checkIfBoxSize:()=>ai,getColor:()=>Q,getFontFamily:()=>oi,getFontSizeByKey:()=>ii,getMediaColor:()=>vt,getMediaTheme:()=>Ht,getShadow:()=>fi,getSpacingBasedOnRatio:()=>Ae,getSpacingByKey:()=>at,getTheme:()=>ti,getTimingByKey:()=>Lt,getTimingFunction:()=>It,runThroughMedia:()=>Rc,setColor:()=>rr,setFont:()=>ni,setFontFamily:()=>$n,setGradient:()=>nr,setMediaTheme:()=>ri,setSVG:()=>Ln,setShadow:()=>or,setSvgIcon:()=>hi,setTheme:()=>ei,splitSpacedValue:()=>li});v();var Q=(t,e,r)=>{let n=r||E();if(!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(S(t))[o,s,i]=t;else{let u=Xe(t);if(!u)return t;if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=Nr(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},vt=(t,e,r)=>{let n=r||E();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let o;if(S(t))o=t[0];else{let f=Xe(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return Q(t,`@${e}`,r);if(c){if(e)return Q(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=Q(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},rr=(t,e,r)=>{let n=E();if(b(t)&&rt(t)){let d=t.slice(2);if(t=Q(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let x=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(x=Nr(x,w)),t=`rgba(${x}, ${_})`}else{let x=h[2],_=h[1]!==void 0?h[1]:"1";if(x)try{let w=ie(h[0]);w&&w.length>=3?t=`rgba(${Nr(w.slice(0,3).join(", "),x)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(S(t))return{"@light":rr(t[0],e,"light"),"@dark":rr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=rr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ie(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},nr=(t,e,r)=>{let n=E();if(b(t)&&rt(t)&&(t=Q(t.slice(2))),S(t))return{"@light":nr(t[0],e,"light"),"@dark":nr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=nr(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var Zs=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?Q(t[a]):t[a]}),e},Fn=t=>(t.value||(t.value=Zs(t)),t.value),ti=(t,e)=>{let r=E();if(r.useVariable)return Ht(t,e);let n=r.theme;if(b(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Fn(i);t=[o,s||e]}}if(R(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Fn(a[s]);if(i&&i[s])return Fn(i[s]);if(c&&c[s])return Fn(c[s])}else if(g(t))return Zs(t)},Nb=(t,e,r)=>{if(g(e))t.variants.inverse.value=Zs(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Db=(t,e,r,n)=>{let o=ti(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},Fb=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Db(t,o,s,e),t}),t):void 0},$b=(t,e,r,n)=>{let o=ti(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},Lb=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&$b(t,o,s,e),o==="inverse"&&Nb(t,s,e),t}),t):void 0},Mb=(t,e)=>{let r=E(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return b(i)?n[s]=r.theme[i]:Fn(n[s]),t}),t):void 0},ei=(t,e)=>{if(E().useVariable)return ri(t,e);let{state:n,media:o,helpers:s}=t,i=Zs(t,e),a=`--theme-${e}`;return Fb(t,i),Lb(t,i),Mb(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var Tc=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>R(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)R(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Tc(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)R(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Tc(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=Q(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let x=`@media (prefers-color-scheme: ${p})`;o[x]||(o[x]={}),o[x][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=Q(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},ri=(t,e,r,n)=>{let o=E(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(R(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&R(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=Tc(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=ri(l,e,c,n||u)}else if(!a){let u=Q(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(b(t)&&rt(t)){let f=o.theme[t.slice(2)];return Ht(f,n)}return i},md=t=>{let e=E(),r={};for(let n in t){let o=n.slice(0,1);if(R(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=md(t[n]))}else r[n]=t[n]}return r},gd=(t,e)=>{let r=e.shift();return t[r]?gd(t[r],e):t},hd=(t,e)=>S(e)?gd(t,e):b(e)&&t[e]?t[e]:t;var Ht=(t,e)=>{let r=E();if(b(t)&&rt(t)&&(t=Ht(t.slice(2))),!t||!b(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=S(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=hd(s,o):s&&e&&(s=hd(s,e)),md(s)};v();var ni=(t,e)=>{let r=E(),n=`--font-${e}`;if(!t||S(t)&&!t[0])return;let o;if(t.isVariable){let s=we(t.url,r.files)||t.url;An(s)?o=Tn(s):o=Je(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=Fr(e,t,r.files);else{let s=we(t.url,r.files)||t.url;o=Je(e,s)}return{var:n,value:t,fontFace:o}},oi=(t,e)=>{let r=E(),{font_family:n}=r;return Dr(e||n,t)},$n=(t,e)=>{let r=E(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=$r(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Rc=t=>{let e=E(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let x=n[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){tr(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),zt(i),tr(t,o)}},Ic=t=>{let e=E();if(t.h1Matches){let r=t.unit,n=Xs(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},si=()=>{let t=E(),{typography:e}=t;zt(e),Ic(e),Oe(e),Rc(e)},ii=t=>{let e=E(),{typography:r}=e;return ce(t,"fontSize",r)};v();var Bb=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),zt(r),tr(t,e)}},ai=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},ci=()=>{let t=E(),{spacing:e}=t;zt(e),Oe(e),Bb(e)},Ub=t=>{let e=E(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:zt(t)},at=(t,e="padding",r,n)=>{let o=Ub(r);if(b(t)&&!n&&t.includes("(")){let i=ke(t);n=i[0],t=i[1]}let s=n?[t]:$r(t);if(S(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(f,l)=>ce(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return ce(t,e,o,n)}},Ae=(t,e,r,n)=>{let o=E(),{spacing:s}=o,i=r||t[e];if(!n&&b(i)&&i.includes("(")){let a=ke(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},li=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Pr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};v();var or=(t,e,r,n)=>{let o=E();if(S(t))return{"@light":or(t[0],e,"light"),"@dark":or(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=or(t[a],e,a.startsWith("@")?a.slice(1):a);return i}b(t)&&!Zt.test(t)&&(t=Qe(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=Q(a);if(ae(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},fi=(t,e)=>{let r=E();if(e||(e=r.globalTheme),!b(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let[n]=S(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var ui=()=>{let t=E(),{timing:e}=t;zt(e),Oe(e)},It=t=>{let e=E(),{timing:r}=e;return r[t]||r[Vs(t)]||t},Lt=(t,e="timing")=>{let r=E(),{timing:n}=r;return ce(t,e,n)};v();var pi=()=>{let t=E(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:Dr(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var Pc={document:L},Ln=(t,e)=>{let r=E();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Js(e,t):t},di=(t,e=Pc)=>{let r=E(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];bd(n,e)},hi=(t,e)=>{let r=E();return r.useIconSprite&&!r.semantic_icons?.[e]?Ln(t,e):t},mi=(t,e=Pc)=>{let r=E(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];bd(n,e)},yd=(t={isRoot:!0})=>{if(!L||!L.createElementNS)return;let e=L.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},bd=(t,e=Pc)=>{let r=E(),n=e.document||L;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Dn(t);let o=n.querySelector("#svgSprite"),s=Dn(t);if(o){let i=yd({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=yd();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var gi=(t={})=>{let e=E(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Ht("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Ht("document"):{};return r.html&&it(r.html,a),M(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize: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+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var Vb=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),jb=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),zb=t=>Vb.has(t),le=t=>{let e=t+"";if(Zt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(rt(o))return`var(${o})`;if(zb(o)||/^\d/.test(o)||o==="0")return o;let s=Q(o);if(ae(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},Nc=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(rt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=Q(e);return ae(r)?r:e}).join(" "),Dc=(t,e)=>fi(t,e),yi=(t,e)=>Zt.test(t)?t:Qe(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(rt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Q(n);if(ae(o)){let i=vt(n,e);return g(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),bi=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=Qe(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||jb.has(l)||l==="transparent"||Zt.test(l))return l;let u=Q(l);return ae(u)?u:l}).join(" ")));return n+a.join(", ")+s},Fc=(t,e)=>{let r=E();return t.split(", ").map(n=>rt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?bi(n,e):r.gradient[t]?{backgroundImage:vt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Xe(n)?`url(${n})`:n).join(" ")},$c=t=>b(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),xd=t=>{let e=t.split(" ");return e.length?e.map(r=>rt(r)?`var(${r})`:r.length<3||r.includes("ms")?Lt(r).timing||r:It(r)?It(r):r).join(" "):t},sr=(t,e,r)=>{if(b(t))return t.split(",").map(n=>Lt(n).timing||n).join(",")},Bn=t=>{let e=t.split(",");if(e.length)return e.map(xd).join(",")};function nt(t,e,r={},n={}){let o=O.call(this,e||r[t]);if(o==null)return;let s;if(b(o)){if(o.includes("(")){let c=ke(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=ai(t);!i&&a&&!n.ratio&&(o=li(o))}return n.ratio?Ae(r,t,o,s):at(o,t,void 0,s)}var U=(t,e=null,r)=>nt(t,e,r,{ratio:!0}),xi=(t,e,r)=>{if(b(t))return{borderRadius:t.split(" ").map((n,o)=>Ae(e,r,n)[r]).join(" ")}};v();var Hb=(t,e)=>y(t)?t():t,Mt=(t,e)=>t,Lc={color:rr,gradient:nr,font:ni,font_family:$n,fontfamily:$n,theme:ei,icons:hi,semantic_icons:Mt,semanticicons:Mt,svg:Ln,svg_data:Mt,typography:Mt,cases:Hb,shadow:or,spacing:Mt,media:Mt,grid:Mt,class:Mt,timing:Mt,reset:Mt,unit:Mt,animation:Mt},Sd=(t,e,r)=>{let n=E(),o=t.toLowerCase(),s=n[o]||n[t];if(Lc[o])try{let i=Lc[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},_d=(t,e)=>{let r=E(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return Sd(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},qb={},Lr=(t,e=qb)=>{let r=E(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:x,..._}=t;e.newConfig&&(r=Cc(e.newConfig)),x!==void 0&&(r.files=x),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let C=Object.keys(_),P=new Set(C);if(C.forEach(A=>{let T=A.toLowerCase();T!==A&&P.has(T)&&M(_[T],_[A])}),C.map(A=>{let T=A.toLowerCase();if(!(T!==A&&P.has(T)))return _d(A,_[A])}),_.typography||_.TYPOGRAPHY)try{si()}catch(A){r.verbose&&console.warn("Error applying typography sequence",A)}if(_.spacing||_.SPACING)try{ci()}catch(A){r.verbose&&console.warn("Error applying spacing sequence",A)}if(_.timing||_.TIMING)try{ui()}catch(A){r.verbose&&console.warn("Error applying timing sequence",A)}return pi(),gi(),r};var Wb=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Gb=["none","forwards","backwards","both"],Kb=["normal","reverse","alternate","alternate-reverse"],Yb=["running","paused"],Xb=t=>/^[\d.]+m?s$/.test(t),Mc=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||wt;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},Qb=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:Xb(u)?s.push(u):Wb.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):Kb.includes(u)?c=u:Gb.includes(u)?f=u:Yb.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},Bc={animation:(t,e)=>{if(b(t)&&t.includes(" ")){let r=Qb(t,e);return{animationName:Mc(r.name||t,e),animationDuration:r.durations[0]||Lt(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||It(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:Mc(t,e),animationDuration:Lt(e.props.animationDuration||"A").timing,animationDelay:Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:It(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:Mc(t,e)}),animationDuration:t=>({animationDuration:Lt(t).timing}),animationDelay:t=>({animationDelay:Lt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:It(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var Uc={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>U("height",t,e),width:(t,{props:e})=>U("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("height",e),...nt("width",r||e)}},inlineSize:(t,{props:e})=>U("inlineSize",t,e),blockSize:(t,{props:e})=>U("blockSize",t,e),minWidth:(t,{props:e})=>U("minWidth",t,e),maxWidth:(t,{props:e})=>U("maxWidth",t,e),widthRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minWidth",e),...nt("maxWidth",r||e)}},minHeight:(t,{props:e})=>U("minHeight",t,e),maxHeight:(t,{props:e})=>U("maxHeight",t,e),heightRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minHeight",e),...nt("maxHeight",r||e)}},size:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...U("inlineSize",e),...U("blockSize",r||e)}},minBlockSize:(t,{props:e})=>U("minBlockSize",t,e),minInlineSize:(t,{props:e})=>U("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>U("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>U("maxInlineSize",t,e),minSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minInlineSize",e),...nt("minBlockSize",r||e)}},maxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("maxInlineSize",e),...nt("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>U("borderWidth",t,e),padding:(t,{props:e})=>U("padding",t,e),scrollPadding:(t,{props:e})=>U("scrollPadding",t,e),paddingInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("paddingInlineStart",e),...nt("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("paddingBlockStart",e),...nt("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>U("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>U("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>U("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>U("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>U("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>U("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>U("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>U("paddingInlineEnd",t,e),margin:(t,{props:e})=>U("margin",t,e),marginInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("marginInlineStart",e),...nt("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!b(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...nt("marginBlockStart",r),...nt("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>U("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>U("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>U("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>U("marginBlockEnd",t,e),gap:t=>({gap:$c(t)}),columnGap:(t,{props:e})=>Ae(e,"columnGap",t),rowGap:(t,{props:e})=>Ae(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!b(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>xi(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>xi(t||e.round,e,"borderRadius")};var Vc={fontSize:t=>ii(t)||t,fontFamily:t=>({fontFamily:oi(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Si={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var jc={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var qt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},zc={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Ht(t,`@${r.themeModifier}`):Ht(t)},color:(t,e)=>{let r=qt(e);if(t)return{color:vt(t,r)}},background:(t,e)=>{let r=qt(e);if(t)return b(t)&&t.includes("gradient")?{background:bi(t,r)}:{background:vt(t,r)}},backgroundColor:(t,e)=>{let r=qt(e);if(t)return{backgroundColor:vt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=qt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:Fc(t,o)}},textStroke:t=>({WebkitTextStroke:Nc(t)}),outline:t=>({outline:le(t)}),outlineOffset:(t,{props:e})=>U("outlineOffset",t,e),border:t=>({border:le(t)}),borderColor:(t,e)=>{let r=qt(e);if(t)return{borderColor:vt(t,r)}},borderTopColor:(t,e)=>{let r=qt(e);if(t)return{borderTopColor:vt(t,r)}},borderBottomColor:(t,e)=>{let r=qt(e);if(t)return{borderBottomColor:vt(t,r)}},borderLeftColor:(t,e)=>{let r=qt(e);if(t)return{borderLeftColor:vt(t,r)}},borderRightColor:(t,e)=>{let r=qt(e);if(t)return{borderRightColor:vt(t,r)}},borderLeft:t=>({borderLeft:le(t)}),borderTop:t=>({borderTop:le(t)}),borderRight:t=>({borderRight:le(t)}),borderBottom:t=>({borderBottom:le(t)}),shadow:(t,e)=>{let r=qt(e);if(t)return{boxShadow:Dc(t,r)}},boxShadow:(t,e)=>{if(!b(t))return;let[r,n]=t.split("!importan"),o=qt(e),s=n?" !important":"";return{boxShadow:yi(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:yi(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:le(t)})};var Hc={transition:t=>({transition:Bn(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var qc={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!b(t))return;let[o,s]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Wc={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var Mr={...Bc,...Uc,...Vc,...Si,...Si,...jc,...zc,...Hc,...qc,...Wc};var Gc=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"]);var Jb=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Wt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},wd=(t,e,r)=>({[t]:Wt(e,r)}),Un=(t,e,r)=>({[`&${t}`]:Wt(e,r)}),Zb=(t,e,r)=>{let{cases:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Wt(e,r)},tx=(t,e,r)=>({[t]:e}),ex=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Wt(e,r)},rx=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Wt(e,r)},Kc=(t,e)=>Wt(t,e),Yc={"@":Jb,":":Un,"[":Un,"*":Un,"+":Un,"~":Un,"&":wd,">":wd,$:Zb,"-":tx,".":ex,"!":rx};var Xc=Le(),vd=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=O(a,e);Y(n,Kc(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=y(c)?c(e,e.state,e.context):c;f&&s(i,f),!Xc&&g(n[i])&&(n[i].label=i)}else if(Mr[i]){let c=O(a,e);S(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=Mr[i](c,e,e.state,e.context);S(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!Xc&&g(n[i])&&(n[i].label=i)}else if(Gc.has(i)){let c=O(a,e);s(i,{[i]:c}),!Xc&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},Cd=(t,e)=>{let r={};for(let n in t){let o=Yc[n.slice(0,1)];if(o){let s=o(n,t[n],e);s&&it(r,s)}}return r},Wt=(t,e,r={unpack:!0})=>{let[n,o]=vd(t,e,r),s=Cd(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return oe(n,s);n._selectors=s}return n},nx=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:ox}=wt,sx=(t,e)=>y(e)?e(t):ox(t);var Ed={transparent:"rgba(0, 0, 0, 0)",black:"black",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"]},kd={};var ix={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},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"},"@light":{color:"gray3",background:"gradient-dark"}}},ax={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},cx={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"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},Od={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...ix,...ax,...cx,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Ad={base:16,ratio:1.25,subSequence:!0,templates:{}};var Td={ratio:1.618,subSequence:!0};var Rd={},Id={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var Pd={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 Nd={base:150,ratio:1.333,unit:"ms",subSequence:!0};var _i={version:"0.0.1",color:Ed,gradient:kd,theme:Od,typography:Ad,spacing:Td,font:Rd,font_family:Id,timing:Nd,media:Pd,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},cases:{},class:{},svg:{},grid:{},shape:{}};var ar={};Nt(ar,{A:()=>dm,Avatar:()=>Mm,B:()=>yh,Block:()=>Dd,Box:()=>Ei,Br:()=>_h,Button:()=>km,ButtonSet:()=>Rm,Caption:()=>ch,Checkbox:()=>ym,CheckboxHgroup:()=>bm,CircleButton:()=>Am,Clickable:()=>qd,Data:()=>xh,Dialog:()=>Pm,DialogFooter:()=>Dm,DialogHeader:()=>Nm,DropdownList:()=>Um,DropdownParent:()=>Vm,DropdownParentFocus:()=>jm,DropdownSiblingFocus:()=>zm,FileIcon:()=>Rh,Flex:()=>$d,Focusable:()=>Wd,FocusableComponent:()=>Gd,Footnote:()=>gh,Form:()=>jd,Grid:()=>Md,Gutter:()=>Ud,H1:()=>eh,H2:()=>rh,H3:()=>nh,H4:()=>oh,H5:()=>sh,H6:()=>ih,Headline:()=>hh,Hgroup:()=>Eh,HgroupButton:()=>Oh,HgroupRows:()=>kh,Hoverable:()=>Hd,Hr:()=>Sh,I:()=>bh,Icon:()=>Ah,IconButton:()=>Im,IconText:()=>Th,Iframe:()=>zd,Img:()=>Vd,Inline:()=>Fd,InlineFlex:()=>Ld,InlineGrid:()=>Bd,Input:()=>mm,Italic:()=>ph,KangorooButton:()=>Tm,Li:()=>wh,Link:()=>hl,Notification:()=>Hm,NumberInput:()=>gm,Ol:()=>Ch,P:()=>ah,Picture:()=>Qd,Radio:()=>xm,RadioHgroup:()=>Sm,Range:()=>Bm,RouteLink:()=>hm,RouterLink:()=>ml,SHAPES:()=>Yd,Select:()=>Em,SquareButton:()=>Om,Strong:()=>lh,Subhead:()=>mh,Svg:()=>Jd,Text:()=>th,Textarea:()=>vm,TextareaWithButton:()=>Cm,Theme:()=>Xd,Title:()=>dh,Toggle:()=>_m,ToggleHgroup:()=>wm,Tooltip:()=>Fm,TooltipHidden:()=>$m,TooltipParent:()=>Lm,U:()=>fh,Ul:()=>vh,Underline:()=>uh,Video:()=>Zd,depth:()=>vi,getSystemGlobalTheme:()=>Ci});var Dd={display:"block"},Fd={display:"inline"},$d={display:"flex"},Ld={display:"inline-flex"},Md={display:"grid"},Bd={display:"inline-grid"},Ud={boxSize:"C1"};var Vd={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+jt(t,e.src),o;try{o=new URL(n)}catch{}if(o)return n;let s=n&&n.startsWith("/files/")?n.slice(7):n,i=r.files&&(r.files[n]||r.files[s]);if(i)return i.content&&i.content.src},title:({props:t})=>t.title||t.alt}};var jd={tag:"form"};var zd={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var lx={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},Hd={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}}},qd={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Wd={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},Gd={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:lx};var Kd={transition:t=>({transition:Bn(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Bt=E(),vi={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Bt.UNIT.default} 4${Bt.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Bt.UNIT.default} 6${Bt.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Bt.UNIT.default} 10${Bt.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Bt.UNIT.default} 16${Bt.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Bt.UNIT.default} 26${Bt.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Bt.UNIT.default} 42${Bt.UNIT.default}`}},Br=({props:t})=>Q(t.shapeDirectionColor)||Q(t.borderColor)||Q(t.backgroundColor)||Q(t.background),wi=({props:t,deps:e})=>{let r=Kd.transition(t.transition,{props:t,deps:e});return r&&r.transition},Yd={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Br({props:t,deps:e}),transition:wi({props:t,deps: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:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:Br({props:t,deps:e}),transition:wi({props:t,deps: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:({props:t,deps: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:Br({props:t,deps:e}),transition:wi({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:wi({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Br({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Br({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Br({props:t,deps:e}),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}};v();var Ci=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Xd={deps:{depth:vi},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var Qd={deps:{getSystemGlobalTheme:Ci},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ci},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var Jd={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var Zd={tag:"video",controls:!0,childExtends:{tag:"source"}};var th={},eh={tag:"h1"},rh={tag:"h2"},nh={tag:"h3"},oh={tag:"h4"},sh={tag:"h5"},ih={tag:"h6"},ah={tag:"p"},ch={tag:"caption"},lh={tag:"strong",fontWeight:"700"},fh={tag:"u"},uh={tag:"u"},ph={tag:"i"},dh={},hh={tag:"h6",fontSize:"B",fontWeight:500},mh={tag:"span",fontSize:"Z1"},gh={tag:"span",fontSize:"Z"},yh={tag:"b"},bh={tag:"i"},xh={tag:"data"};var fx=t=>{if(!t.context)return;let{props:e,__ref:r}=t;r.__class=Wt(e,t,{unpack:!1})},Ei={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:fx},Sh={tag:"hr",margin:"C1 0"},_h={tag:"br"},wh={tag:"li"},vh={tag:"ul",childExtends:{extends:"Li"}},Ch={tag:"ol",childExtends:{extends:"Li"}};var Eh={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},kh={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Oh={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Ah={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=T=>{let{props:k}=T,$=k[".isActive"];if($)return T.call("exec",$.name||$.icon)},l=(T,k,$)=>{let{semanticIcons:N}=$&&$.designSystem,{toCamelCase:D}=$&&$.utils,z=u(T,k),tt=D(z).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:z.split(".")[0].split(" ")[0],Ct=N&&N[pt];if(Ct){let Ut=z.includes(".")?"sfsymbols."+z.split(".").slice(1).join("."):"sfsymbols";return z=Ct[Ut]||Ct[z.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${z}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(T,k)=>{let{key:$,props:N}=T,D=T.call("exec",N.name||N.icon||$,T);return T.call("isString",D)&&D.includes("{{")&&(D=T.call("replaceLiteralsWithObjectFields",D)),T.call("isString",D)?D:$},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let x;n.isActive&&(x=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(x=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let C;s[x]&&(C=x),s[d]?C=d:s[h[0]+h[1]]?C=h[0]+h[1]:s[h[0]]?C=h[0]:a&&t.warn("Can't find icon:",p,C);let P=s[C],A=o&&o.props&&o.props.src||n.src;return{spriteId:i&&C,src:P||A||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Th={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},Rh={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var dl={};Nt(dl,{default:()=>hS,getActiveRoute:()=>pl,lastLevel:()=>Fi,lastPathname:()=>Di,matchRoute:()=>ll,parseQuery:()=>fl,parseRoutePattern:()=>cl,router:()=>ue,runGuards:()=>ul});v();v();v();v();v();var ux=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},px=(t,e,r,n)=>{let o=Be(ux(t,e),e);if(y(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},Ih=(t,e)=>{let{node:r,on:n}=t;for(let o in n)po.has(o)||px(o,t,r,e)};var Ph={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},yt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=Ph.en[t]);let s=o?`
31
+ `)},yb=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function bb(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!yb(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};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 Dp(t,e){let r=t.pages?.[e],n=g(r?.state)&&r?.state,o=r?.metadata||r?.helmet||n||{},s=t.app?.metadata||{};return t.integrations?.seo?o={...t.integrations.seo,...s,...o}:Object.keys(s).length&&(o={...s,...o}),o.title||(o.title=t.name+" / symbo.ls"||"Symbols demo"),o=bb(o,t.files),o}var Fp=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},$p=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Lp=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Vs=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Mp=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),js=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Bp=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Lr=t=>{if(S(t))return t;if(y(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var vc={};Nt(vc,{CLASS:()=>cd,animation:()=>nd,breakpoints:()=>td,cases:()=>rd,color:()=>Gp,devices:()=>ed,document:()=>wb,font:()=>Vp,font_face:()=>Hp,font_family:()=>jp,font_family_types:()=>zp,gradient:()=>Kp,grid:()=>ad,icons:()=>Qp,media:()=>qp,reset:()=>ld,semantic_icons:()=>Jp,sequence:()=>ve,shadow:()=>Xp,spacing:()=>Wp,svg:()=>od,svg_data:()=>sd,templates:()=>id,theme:()=>Yp,timing:()=>Zp,typography:()=>zs,unit:()=>Up});var ve={"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 Up={default:"em"};var xb={browserDefault:16,base:16,type:"font-size",ratio:ve["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},zs=xb;var Vp={};var jp={},zp={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Hp={};var qp={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Sb={base:zs.base,type:"spacing",ratio:ve.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Wp=Sb;var Gp={},Kp={};var Yp={};var Xp={};var Qp={},Jp={};var _b={default:150,base:150,type:"timing",ratio:ve["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Zp=_b;var wb={};var td={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},ed={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 rd={};var nd={};var od={},sd={};var id={};var vb={},ad=vb;var Cb={},cd=Cb;var ld={};var fd={},ud={},Nn=vc,Dn={},Eb=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),kb=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in Nn){let e=t.toLowerCase();Dn[e]=Nn[t];let r=Eb(e);r!==e&&(Dn[r]=Nn[t]),e!==t&&(Dn[t]=Nn[t]);let n=kb(t);n!==t&&(Dn[n]=Nn[t])}var Hs={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:fd,CSS_MEDIA_VARS:ud,...Dn},Ob=j(Hs),Ce={active:"0",0:Hs},Ab=t=>(kt(t)&&(Ce.active=t),Ce[t||Ce.active]),E=t=>Ce[t||Ce.active]||Hs,Cc=t=>{if(g(t))return Ce.active="1",Ce[1]=M(t,j(Ob)),t};var Ee={"-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"},Ec=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s,e.vars[n]=s+e.unit},ke=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},qs=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(Pr(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=Ee[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=Ee[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},kc=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Ws=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Gs=(t,e)=>Ws(t,e).map(r=>r/t),Ks=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Ws(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let x=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,C=kc(m+1,l,i,e),P={key:r+(m+1),variable:_,value:h,scaling:x,scalingVariable:C,index:w};Ec(P,e)})},Tb=(t,e,r)=>e*Math.pow(r,t),zt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=Ee[f],u=Tb(f,r,n),p=~~(u/r*100)/100,d=a+l,h=qs(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Ec(m,t),s&&Ks(m,t)}return t},pd=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=y(e)?e:Ee[e],a=y(e)?Object.entries(Ee).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=qs(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Ec(h,c),s&&Ks(h,c),c},Ys=(t="A",e)=>{let r=E(),{unit:n}=r;if(y(t)&&rt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Nr.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${js(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let x=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,C]=h.split("+"),P=`${x(w)} + ${x(C)}`;return d?`calc((${P}) * -1)`:`calc(${P})`}else if(h.includes("*")){let[w,C]=h.split("*"),P=`${x(w)} * ${x(C)}`;return d?`calc((${P}) * -1)`:`calc(${P})`}else if(h.includes("-")){let[w,C]=h.split("-"),P=`${x(w)} - ${x(C)}`;return d?`calc((${P}) * -1)`:`calc(${P})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},Oc=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>Ys(i,e)).join(" "+n+" ")).join(""):t},ce=(t,e,r,n)=>{if(typeof t!="string")return E().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=ke(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Oc(t,r):t=Ys(t,r),{[e]:n?`${n}(${t})`:t}},Ac=(t,e)=>Ee[t-e],Xs=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Ac(e,o);return r[s]})};v();var dd=(t,e)=>{let r=E(),{CSS_VARS:n}=r;R(t.value)||(n[t.var]=t.value)},Qs=(t,e,r)=>{let n=E(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=Gs(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},Oe=(t,e={})=>{let r=E(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||Qs(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},tr=(t,e,r={})=>{let n=E(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),Qs(d,t[e],r);return}for(let d in l){let h=l[d],m=(Pr(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let x=i[`@media ${p}`];x||(x=i[`@media ${p}`]={}),x[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var Rb=mr(),Fn=t=>{let e=E(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},Ib=t=>{let e=t.default||t;if(!y(e)){Rb&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},Pb=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return S(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},Js=(t,e)=>{let r=Ib(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=Pb(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var Bn={};Nt(Bn,{appendSVGSprite:()=>di,appendSvgIconsSprite:()=>mi,applyDocument:()=>pi,applyHeadings:()=>Ic,applyReset:()=>gi,applySpacingSequence:()=>ci,applyTimingSequence:()=>ui,applyTypographySequence:()=>si,checkIfBoxSize:()=>ai,getColor:()=>Q,getFontFamily:()=>oi,getFontSizeByKey:()=>ii,getMediaColor:()=>vt,getMediaTheme:()=>Ht,getShadow:()=>fi,getSpacingBasedOnRatio:()=>Ae,getSpacingByKey:()=>at,getTheme:()=>ti,getTimingByKey:()=>Lt,getTimingFunction:()=>It,runThroughMedia:()=>Rc,setColor:()=>rr,setFont:()=>ni,setFontFamily:()=>Ln,setGradient:()=>nr,setMediaTheme:()=>ri,setSVG:()=>Mn,setShadow:()=>or,setSvgIcon:()=>hi,setTheme:()=>ei,splitSpacedValue:()=>li});v();var Q=(t,e,r)=>{let n=r||E();if(!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(S(t))[o,s,i]=t;else{let u=Xe(t);if(!u)return t;if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=Dr(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},vt=(t,e,r)=>{let n=r||E();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let o;if(S(t))o=t[0];else{let f=Xe(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return Q(t,`@${e}`,r);if(c){if(e)return Q(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=Q(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},rr=(t,e,r)=>{let n=E();if(y(t)&&rt(t)){let d=t.slice(2);if(t=Q(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let x=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(x=Dr(x,w)),t=`rgba(${x}, ${_})`}else{let x=h[2],_=h[1]!==void 0?h[1]:"1";if(x)try{let w=ie(h[0]);w&&w.length>=3?t=`rgba(${Dr(w.slice(0,3).join(", "),x)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(S(t))return{"@light":rr(t[0],e,"light"),"@dark":rr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=rr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ie(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},nr=(t,e,r)=>{let n=E();if(y(t)&&rt(t)&&(t=Q(t.slice(2))),S(t))return{"@light":nr(t[0],e,"light"),"@dark":nr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=nr(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var Zs=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?Q(t[a]):t[a]}),e},$n=t=>(t.value||(t.value=Zs(t)),t.value),ti=(t,e)=>{let r=E();if(r.useVariable)return Ht(t,e);let n=r.theme;if(y(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return $n(i);t=[o,s||e]}}if(R(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return $n(a[s]);if(i&&i[s])return $n(i[s]);if(c&&c[s])return $n(c[s])}else if(g(t))return Zs(t)},Nb=(t,e,r)=>{if(g(e))t.variants.inverse.value=Zs(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Db=(t,e,r,n)=>{let o=ti(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},Fb=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Db(t,o,s,e),t}),t):void 0},$b=(t,e,r,n)=>{let o=ti(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},Lb=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&$b(t,o,s,e),o==="inverse"&&Nb(t,s,e),t}),t):void 0},Mb=(t,e)=>{let r=E(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return y(i)?n[s]=r.theme[i]:$n(n[s]),t}),t):void 0},ei=(t,e)=>{if(E().useVariable)return ri(t,e);let{state:n,media:o,helpers:s}=t,i=Zs(t,e),a=`--theme-${e}`;return Fb(t,i),Lb(t,i),Mb(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var Tc=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>R(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)R(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Tc(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)R(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Tc(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=Q(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let x=`@media (prefers-color-scheme: ${p})`;o[x]||(o[x]={}),o[x][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=Q(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},ri=(t,e,r,n)=>{let o=E(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(R(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&R(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=Tc(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=ri(l,e,c,n||u)}else if(!a){let u=Q(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(y(t)&&rt(t)){let f=o.theme[t.slice(2)];return Ht(f,n)}return i},md=t=>{let e=E(),r={};for(let n in t){let o=n.slice(0,1);if(R(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=md(t[n]))}else r[n]=t[n]}return r},gd=(t,e)=>{let r=e.shift();return t[r]?gd(t[r],e):t},hd=(t,e)=>S(e)?gd(t,e):y(e)&&t[e]?t[e]:t;var Ht=(t,e)=>{let r=E();if(y(t)&&rt(t)&&(t=Ht(t.slice(2))),!t||!y(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=S(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=hd(s,o):s&&e&&(s=hd(s,e)),md(s)};v();var ni=(t,e)=>{let r=E(),n=`--font-${e}`;if(!t||S(t)&&!t[0])return;let o;if(t.isVariable){let s=we(t.url,r.files)||t.url;Tn(s)?o=Rn(s):o=Je(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=$r(e,t,r.files);else{let s=we(t.url,r.files)||t.url;o=Je(e,s)}return{var:n,value:t,fontFace:o}},oi=(t,e)=>{let r=E(),{font_family:n}=r;return Fr(e||n,t)},Ln=(t,e)=>{let r=E(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=Lr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Rc=t=>{let e=E(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let x=n[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){tr(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),zt(i),tr(t,o)}},Ic=t=>{let e=E();if(t.h1Matches){let r=t.unit,n=Xs(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},si=()=>{let t=E(),{typography:e}=t;zt(e),Ic(e),Oe(e),Rc(e)},ii=t=>{let e=E(),{typography:r}=e;return ce(t,"fontSize",r)};v();var Bb=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),zt(r),tr(t,e)}},ai=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},ci=()=>{let t=E(),{spacing:e}=t;zt(e),Oe(e),Bb(e)},Ub=t=>{let e=E(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:zt(t)},at=(t,e="padding",r,n)=>{let o=Ub(r);if(y(t)&&!n&&t.includes("(")){let i=ke(t);n=i[0],t=i[1]}let s=n?[t]:Lr(t);if(S(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(f,l)=>ce(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return ce(t,e,o,n)}},Ae=(t,e,r,n)=>{let o=E(),{spacing:s}=o,i=r||t[e];if(!n&&y(i)&&i.includes("(")){let a=ke(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},li=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Nr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};v();var or=(t,e,r,n)=>{let o=E();if(S(t))return{"@light":or(t[0],e,"light"),"@dark":or(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=or(t[a],e,a.startsWith("@")?a.slice(1):a);return i}y(t)&&!Zt.test(t)&&(t=Qe(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=Q(a);if(ae(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},fi=(t,e)=>{let r=E();if(e||(e=r.globalTheme),!y(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let[n]=S(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var ui=()=>{let t=E(),{timing:e}=t;zt(e),Oe(e)},It=t=>{let e=E(),{timing:r}=e;return r[t]||r[Vs(t)]||t},Lt=(t,e="timing")=>{let r=E(),{timing:n}=r;return ce(t,e,n)};v();var pi=()=>{let t=E(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:Fr(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var Pc={document:L},Mn=(t,e)=>{let r=E();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Js(e,t):t},di=(t,e=Pc)=>{let r=E(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];bd(n,e)},hi=(t,e)=>{let r=E();return r.useIconSprite&&!r.semantic_icons?.[e]?Mn(t,e):t},mi=(t,e=Pc)=>{let r=E(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];bd(n,e)},yd=(t={isRoot:!0})=>{if(!L||!L.createElementNS)return;let e=L.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},bd=(t,e=Pc)=>{let r=E(),n=e.document||L;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Fn(t);let o=n.querySelector("#svgSprite"),s=Fn(t);if(o){let i=yd({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=yd();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var gi=(t={})=>{let e=E(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Ht("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Ht("document"):{};return r.html&&it(r.html,a),M(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize: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+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var Vb=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),jb=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),zb=t=>Vb.has(t),le=t=>{let e=t+"";if(Zt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(rt(o))return`var(${o})`;if(zb(o)||/^\d/.test(o)||o==="0")return o;let s=Q(o);if(ae(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},Nc=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(rt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=Q(e);return ae(r)?r:e}).join(" "),Dc=(t,e)=>fi(t,e),yi=(t,e)=>Zt.test(t)?t:Qe(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(rt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Q(n);if(ae(o)){let i=vt(n,e);return g(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),bi=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=Qe(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||jb.has(l)||l==="transparent"||Zt.test(l))return l;let u=Q(l);return ae(u)?u:l}).join(" ")));return n+a.join(", ")+s},Fc=(t,e)=>{let r=E();return t.split(", ").map(n=>rt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?bi(n,e):r.gradient[t]?{backgroundImage:vt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Xe(n)?`url(${n})`:n).join(" ")},$c=t=>y(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),xd=t=>{let e=t.split(" ");return e.length?e.map(r=>rt(r)?`var(${r})`:r.length<3||r.includes("ms")?Lt(r).timing||r:It(r)?It(r):r).join(" "):t},sr=(t,e,r)=>{if(y(t))return t.split(",").map(n=>Lt(n).timing||n).join(",")},Un=t=>{let e=t.split(",");if(e.length)return e.map(xd).join(",")};function nt(t,e,r={},n={}){let o=O.call(this,e||r[t]);if(o==null)return;let s;if(y(o)){if(o.includes("(")){let c=ke(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=ai(t);!i&&a&&!n.ratio&&(o=li(o))}return n.ratio?Ae(r,t,o,s):at(o,t,void 0,s)}var U=(t,e=null,r)=>nt(t,e,r,{ratio:!0}),xi=(t,e,r)=>{if(y(t))return{borderRadius:t.split(" ").map((n,o)=>Ae(e,r,n)[r]).join(" ")}};v();var Hb=(t,e)=>b(t)?t():t,Mt=(t,e)=>t,Lc={color:rr,gradient:nr,font:ni,font_family:Ln,fontfamily:Ln,theme:ei,icons:hi,semantic_icons:Mt,semanticicons:Mt,svg:Mn,svg_data:Mt,typography:Mt,cases:Hb,shadow:or,spacing:Mt,media:Mt,grid:Mt,class:Mt,timing:Mt,reset:Mt,unit:Mt,animation:Mt},Sd=(t,e,r)=>{let n=E(),o=t.toLowerCase(),s=n[o]||n[t];if(Lc[o])try{let i=Lc[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},_d=(t,e)=>{let r=E(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return Sd(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},qb={},Mr=(t,e=qb)=>{let r=E(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:x,..._}=t;e.newConfig&&(r=Cc(e.newConfig)),x!==void 0&&(r.files=x),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let C=Object.keys(_),P=new Set(C);if(C.forEach(A=>{let T=A.toLowerCase();T!==A&&P.has(T)&&M(_[T],_[A])}),C.map(A=>{let T=A.toLowerCase();if(!(T!==A&&P.has(T)))return _d(A,_[A])}),_.typography||_.TYPOGRAPHY)try{si()}catch(A){r.verbose&&console.warn("Error applying typography sequence",A)}if(_.spacing||_.SPACING)try{ci()}catch(A){r.verbose&&console.warn("Error applying spacing sequence",A)}if(_.timing||_.TIMING)try{ui()}catch(A){r.verbose&&console.warn("Error applying timing sequence",A)}return pi(),gi(),r};var Wb=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Gb=["none","forwards","backwards","both"],Kb=["normal","reverse","alternate","alternate-reverse"],Yb=["running","paused"],Xb=t=>/^[\d.]+m?s$/.test(t),Mc=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||wt;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},Qb=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:Xb(u)?s.push(u):Wb.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):Kb.includes(u)?c=u:Gb.includes(u)?f=u:Yb.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},Bc={animation:(t,e)=>{if(y(t)&&t.includes(" ")){let r=Qb(t,e);return{animationName:Mc(r.name||t,e),animationDuration:r.durations[0]||Lt(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||It(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:Mc(t,e),animationDuration:Lt(e.props.animationDuration||"A").timing,animationDelay:Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:It(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:Mc(t,e)}),animationDuration:t=>({animationDuration:Lt(t).timing}),animationDelay:t=>({animationDelay:Lt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:It(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var Uc={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>U("height",t,e),width:(t,{props:e})=>U("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("height",e),...nt("width",r||e)}},inlineSize:(t,{props:e})=>U("inlineSize",t,e),blockSize:(t,{props:e})=>U("blockSize",t,e),minWidth:(t,{props:e})=>U("minWidth",t,e),maxWidth:(t,{props:e})=>U("maxWidth",t,e),widthRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("minWidth",e),...nt("maxWidth",r||e)}},minHeight:(t,{props:e})=>U("minHeight",t,e),maxHeight:(t,{props:e})=>U("maxHeight",t,e),heightRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("minHeight",e),...nt("maxHeight",r||e)}},size:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...U("inlineSize",e),...U("blockSize",r||e)}},minBlockSize:(t,{props:e})=>U("minBlockSize",t,e),minInlineSize:(t,{props:e})=>U("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>U("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>U("maxInlineSize",t,e),minSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("minInlineSize",e),...nt("minBlockSize",r||e)}},maxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("maxInlineSize",e),...nt("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>U("borderWidth",t,e),padding:(t,{props:e})=>U("padding",t,e),scrollPadding:(t,{props:e})=>U("scrollPadding",t,e),paddingInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("paddingInlineStart",e),...nt("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("paddingBlockStart",e),...nt("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>U("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>U("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>U("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>U("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>U("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>U("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>U("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>U("paddingInlineEnd",t,e),margin:(t,{props:e})=>U("margin",t,e),marginInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...nt("marginInlineStart",e),...nt("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!y(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...nt("marginBlockStart",r),...nt("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>U("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>U("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>U("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>U("marginBlockEnd",t,e),gap:t=>({gap:$c(t)}),columnGap:(t,{props:e})=>Ae(e,"columnGap",t),rowGap:(t,{props:e})=>Ae(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!y(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>xi(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>xi(t||e.round,e,"borderRadius")};var Vc={fontSize:t=>ii(t)||t,fontFamily:t=>({fontFamily:oi(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Si={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var jc={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var qt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},zc={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Ht(t,`@${r.themeModifier}`):Ht(t)},color:(t,e)=>{let r=qt(e);if(t)return{color:vt(t,r)}},background:(t,e)=>{let r=qt(e);if(t)return y(t)&&t.includes("gradient")?{background:bi(t,r)}:{background:vt(t,r)}},backgroundColor:(t,e)=>{let r=qt(e);if(t)return{backgroundColor:vt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=qt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:Fc(t,o)}},textStroke:t=>({WebkitTextStroke:Nc(t)}),outline:t=>({outline:le(t)}),outlineOffset:(t,{props:e})=>U("outlineOffset",t,e),border:t=>({border:le(t)}),borderColor:(t,e)=>{let r=qt(e);if(t)return{borderColor:vt(t,r)}},borderTopColor:(t,e)=>{let r=qt(e);if(t)return{borderTopColor:vt(t,r)}},borderBottomColor:(t,e)=>{let r=qt(e);if(t)return{borderBottomColor:vt(t,r)}},borderLeftColor:(t,e)=>{let r=qt(e);if(t)return{borderLeftColor:vt(t,r)}},borderRightColor:(t,e)=>{let r=qt(e);if(t)return{borderRightColor:vt(t,r)}},borderLeft:t=>({borderLeft:le(t)}),borderTop:t=>({borderTop:le(t)}),borderRight:t=>({borderRight:le(t)}),borderBottom:t=>({borderBottom:le(t)}),shadow:(t,e)=>{let r=qt(e);if(t)return{boxShadow:Dc(t,r)}},boxShadow:(t,e)=>{if(!y(t))return;let[r,n]=t.split("!importan"),o=qt(e),s=n?" !important":"";return{boxShadow:yi(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:yi(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:le(t)})};var Hc={transition:t=>({transition:Un(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var qc={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!y(t))return;let[o,s]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Wc={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var Br={...Bc,...Uc,...Vc,...Si,...Si,...jc,...zc,...Hc,...qc,...Wc};var Gc=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"]);var Jb=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Wt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},wd=(t,e,r)=>({[t]:Wt(e,r)}),Vn=(t,e,r)=>({[`&${t}`]:Wt(e,r)}),Zb=(t,e,r)=>{let{cases:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Wt(e,r)},tx=(t,e,r)=>({[t]:e}),ex=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Wt(e,r)},rx=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Wt(e,r)},Kc=(t,e)=>Wt(t,e),Yc={"@":Jb,":":Vn,"[":Vn,"*":Vn,"+":Vn,"~":Vn,"&":wd,">":wd,$:Zb,"-":tx,".":ex,"!":rx};var Xc=Le(),vd=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=O(a,e);Y(n,Kc(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=b(c)?c(e,e.state,e.context):c;f&&s(i,f),!Xc&&g(n[i])&&(n[i].label=i)}else if(Br[i]){let c=O(a,e);S(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=Br[i](c,e,e.state,e.context);S(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!Xc&&g(n[i])&&(n[i].label=i)}else if(Gc.has(i)){let c=O(a,e);s(i,{[i]:c}),!Xc&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},Cd=(t,e)=>{let r={};for(let n in t){let o=Yc[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?it(r[i],s[i]):r[i]=s[i])}}return r},Wt=(t,e,r={unpack:!0})=>{let[n,o]=vd(t,e,r),s=Cd(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return oe(n,s);n._selectors=s}return n},nx=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:ox}=wt,sx=(t,e)=>b(e)?e(t):ox(t);var Ed={transparent:"rgba(0, 0, 0, 0)",black:"black",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"]},kd={};var ix={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},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"},"@light":{color:"gray3",background:"gradient-dark"}}},ax={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},cx={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"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},Od={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...ix,...ax,...cx,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Ad={base:16,ratio:1.25,subSequence:!0,templates:{}};var Td={ratio:1.618,subSequence:!0};var Rd={},Id={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var Pd={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 Nd={base:150,ratio:1.333,unit:"ms",subSequence:!0};var _i={version:"0.0.1",color:Ed,gradient:kd,theme:Od,typography:Ad,spacing:Td,font:Rd,font_family:Id,timing:Nd,media:Pd,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},cases:{},class:{},svg:{},grid:{},shape:{}};var ar={};Nt(ar,{A:()=>vm,Avatar:()=>Mm,B:()=>yh,Block:()=>Dd,Box:()=>Ei,Br:()=>_h,Button:()=>km,ButtonSet:()=>Rm,Caption:()=>ch,Checkbox:()=>Rh,CheckboxHgroup:()=>Ih,CircleButton:()=>Am,Clickable:()=>qd,Data:()=>xh,Dialog:()=>Pm,DialogFooter:()=>Dm,DialogHeader:()=>Nm,DropdownList:()=>Um,DropdownParent:()=>Vm,DropdownParentFocus:()=>jm,DropdownSiblingFocus:()=>zm,FileIcon:()=>Uh,Flex:()=>$d,Focusable:()=>Wd,FocusableComponent:()=>Gd,Footnote:()=>gh,Form:()=>jd,Grid:()=>Md,Gutter:()=>Ud,H1:()=>eh,H2:()=>rh,H3:()=>nh,H4:()=>oh,H5:()=>sh,H6:()=>ih,Headline:()=>hh,Hgroup:()=>Eh,HgroupButton:()=>Oh,HgroupRows:()=>kh,Hoverable:()=>Hd,Hr:()=>Sh,I:()=>bh,Icon:()=>Mh,IconButton:()=>Im,IconText:()=>Bh,Iframe:()=>zd,Img:()=>Vd,Inline:()=>Fd,InlineFlex:()=>Ld,InlineGrid:()=>Bd,Input:()=>Ah,Italic:()=>ph,KangorooButton:()=>Tm,Li:()=>wh,Link:()=>hl,Notification:()=>Hm,NumberInput:()=>Th,Ol:()=>Ch,P:()=>ah,Picture:()=>Qd,Radio:()=>Ph,RadioHgroup:()=>Nh,Range:()=>Bm,RouteLink:()=>Cm,RouterLink:()=>ml,SHAPES:()=>Yd,Select:()=>Em,SquareButton:()=>Om,Strong:()=>lh,Subhead:()=>mh,Svg:()=>Jd,Text:()=>th,Textarea:()=>$h,TextareaWithButton:()=>Lh,Theme:()=>Xd,Title:()=>dh,Toggle:()=>Dh,ToggleHgroup:()=>Fh,Tooltip:()=>Fm,TooltipHidden:()=>$m,TooltipParent:()=>Lm,U:()=>fh,Ul:()=>vh,Underline:()=>uh,Video:()=>Zd,depth:()=>vi,getSystemGlobalTheme:()=>Ci});var Dd={display:"block"},Fd={display:"inline"},$d={display:"flex"},Ld={display:"inline-flex"},Md={display:"grid"},Bd={display:"inline-grid"},Ud={boxSize:"C1"};var Vd={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+jt(t,e.src),o;try{o=new URL(n)}catch{}if(o)return n;let s=n&&n.startsWith("/files/")?n.slice(7):n,i=r.files&&(r.files[n]||r.files[s]);if(i)return i.content&&i.content.src},title:({props:t})=>t.title||t.alt}};var jd={tag:"form"};var zd={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var lx={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},Hd={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}}},qd={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Wd={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},Gd={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:lx};var Kd={transition:t=>({transition:Un(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Bt=E(),vi={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Bt.UNIT.default} 4${Bt.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Bt.UNIT.default} 6${Bt.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Bt.UNIT.default} 10${Bt.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Bt.UNIT.default} 16${Bt.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Bt.UNIT.default} 26${Bt.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Bt.UNIT.default} 42${Bt.UNIT.default}`}},Ur=({props:t})=>Q(t.shapeDirectionColor)||Q(t.borderColor)||Q(t.backgroundColor)||Q(t.background),wi=({props:t,deps:e})=>{let r=Kd.transition(t.transition,{props:t,deps:e});return r&&r.transition},Yd={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Ur({props:t,deps:e}),transition:wi({props:t,deps: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:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:Ur({props:t,deps:e}),transition:wi({props:t,deps: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:({props:t,deps: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:Ur({props:t,deps:e}),transition:wi({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:wi({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ur({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Ur({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Ur({props:t,deps:e}),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}};v();var Ci=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Xd={deps:{depth:vi},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var Qd={deps:{getSystemGlobalTheme:Ci},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ci},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var Jd={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var Zd={tag:"video",controls:!0,childExtends:{tag:"source"}};var th={},eh={tag:"h1"},rh={tag:"h2"},nh={tag:"h3"},oh={tag:"h4"},sh={tag:"h5"},ih={tag:"h6"},ah={tag:"p"},ch={tag:"caption"},lh={tag:"strong",fontWeight:"700"},fh={tag:"u"},uh={tag:"u"},ph={tag:"i"},dh={},hh={tag:"h6",fontSize:"B",fontWeight:500},mh={tag:"span",fontSize:"Z1"},gh={tag:"span",fontSize:"Z"},yh={tag:"b"},bh={tag:"i"},xh={tag:"data"};var fx=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Wt(e,t,{unpack:!1});r.__class=n},Ei={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:fx},Sh={tag:"hr",margin:"C1 0"},_h={tag:"br"},wh={tag:"li"},vh={tag:"ul",childExtends:{extends:"Li"}},Ch={tag:"ol",childExtends:{extends:"Li"}};var Eh={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},kh={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Oh={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Ah={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var Th={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:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var Rh={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:t=>t.call("exec",t.parent.props.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"}}},Ih={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Ph={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}},Nh={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Dh={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}},Fh={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var $h={tag:"textarea",extends:["Input","Flex"],variant:"outlined",fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",maxWidth:"G1_default",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",style:{resize:"none"},".simple":{theme:"field",round:"Z2",lineHeight:1.4},".outlined":{theme:"field",borderWidth:"1px",borderStyle:"solid",lineHeight:1.4,placeholder:"Leave us a message...",resize:"none"},html:(t,e)=>t.props.value},Lh={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 Mh={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=T=>{let{props:k}=T,$=k[".isActive"];if($)return T.call("exec",$.name||$.icon)},l=(T,k,$)=>{let{semanticIcons:N}=$&&$.designSystem,{toCamelCase:D}=$&&$.utils,z=u(T,k),tt=D(z).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:z.split(".")[0].split(" ")[0],Ct=N&&N[pt];if(Ct){let Ut=z.includes(".")?"sfsymbols."+z.split(".").slice(1).join("."):"sfsymbols";return z=Ct[Ut]||Ct[z.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${z}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(T,k)=>{let{key:$,props:N}=T,D=T.call("exec",N.name||N.icon||$,T);return T.call("isString",D)&&D.includes("{{")&&(D=T.call("replaceLiteralsWithObjectFields",D)),T.call("isString",D)?D:$},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let x;n.isActive&&(x=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(x=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let C;s[x]&&(C=x),s[d]?C=d:s[h[0]+h[1]]?C=h[0]+h[1]:s[h[0]]?C=h[0]:a&&t.warn("Can't find icon:",p,C);let P=s[C],A=o&&o.props&&o.props.src||n.src;return{spriteId:i&&C,src:P||A||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Bh={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},Uh={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var dl={};Nt(dl,{default:()=>hS,getActiveRoute:()=>pl,lastLevel:()=>Fi,lastPathname:()=>Di,matchRoute:()=>ll,parseQuery:()=>fl,parseRoutePattern:()=>cl,router:()=>ue,runGuards:()=>ul});v();v();v();v();v();var ux=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},px=(t,e,r,n)=>{let o=Be(ux(t,e),e);if(b(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},Vh=(t,e)=>{let{node:r,on:n}=t;for(let o in n)ho.has(o)||px(o,t,r,e)};var jh={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},yt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=jh.en[t]);let s=o?`
32
32
 
33
33
  ${o.description}`:"",i=r?`
34
34
 
35
- ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var Nh=t=>ye(t||"div")||yt("HTMLInvalidTag");var dx=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},hx=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},Dh=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(Qc||!e)return;Qc=!0;function r(){if(t.size===0){Qc=!1;return}hx(t),e(r)}e(r)},Fh=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(dx(t),Dh(o))},Qc=!1,$h=()=>{let t=new Set;return Dh(t),t};v();var Lh=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=re(n.slice(2)),s=r[o],i=e[n];y(s)?r[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:r[o]=i}},Mh=t=>{let{on:e}=t,r=Me(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!y(o)&&!(r&&o!=null))continue;let s=re(n.slice(2)),i=e[s];y(i)?e[s]=(...a)=>{if(i(...a)!==!1&&y(o))return o(...a)}:e[s]=o}};v();var Jc="http://www.w3.org/2000/svg",mx=t=>{let{tag:e,context:r}=t,n=r.document||L;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Ue.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Jc)?n.createElementNS(Jc,e):n.createElement(e):n.createElement("div")},Zc=t=>{let{tag:e,key:r,props:n}=t;if(e=O(e,t),e===!0&&(e=r),g(n)&&b(n.tag)&&ye(n.tag))return n.tag;if(b(e)){if(ye(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ye(o))return o}return"div"},Bh=t=>{let{context:e}=t,r=e.window||window,n=t.tag=Zc(t);if(!Nh(n))return yt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Ue.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Jc)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=mx(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var gx=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},yx=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},bx=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},tl=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?bx:yx)(t.node,n.node||e.node):gx(t.node,e.node,t)),t};v();var ki=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(y(o)&&!Vt(n,t)){r.__exec[n]=o;let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}):t[n]=s}}},Uh=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=b(a)||ct(a);if(s?.node&&c)oe(s,{text:a});else if(a!==s)if(Rt(o)){let{extends:f,...l}=Bo(a,t,o);oe(s,l)}else n[o]=s,t[o]=a}return n},Oi=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(y(a)){let c=O(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&y(r[n])){e.__execProps[n]=r[n];let c=O(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},Ai=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(y(c)&&!Vt(a,t)){n.__exec[a]=c;let l=O(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},Vh=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=O(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function jh(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(fr(t)("object")&&yt("HTMLInvalidAttr",t),t){let i=O(t,e);o.attr&&M(i,o.attr);for(let a in i){let c=O(i[a],e);c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var zh=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},xx=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},Hh=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=xx(t,e)),t.replace(/\s+/g," ").trim()};v();function Sx(t,e,r){if(t&&(e.props.data&&M(t,e.props.data),t.showOnNode)){g(t)||yt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=O(t[n],e))}}var qh=Sx;v();function _x(t,e,r){let n=O(t??e?.props?.html,e),{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var Wh=_x;v();function wx(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=O(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else yt("HTMLInvalidStyles",t)}var Gh=wx;v();function vx(t,e,r){let n=O(e.props.text||t,e);if(b(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Ue.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else Gt({tag:"string",text:n},e,"__text")}}var Kh=vx;v();function Cx(t,e,r){let n=O(t,e);if(g(n))for(let o in n)At.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var Yh=Cx;v();function Ex(t,e,r){if(g(t))for(let n in t){let o=t[n];y(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var Xh=Ex;var fe={attr:jh,style:Gh,text:Kh,html:Wh,data:qh,classlist:Hh,state:Yh,scope:Xh,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var Ti=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=O(e[t],e),{onlyUpdate:a}=r,c=fe[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){y(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var el=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(S(t)&&S(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!el(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!el(t[a],e[a]))return!1}return!0}return t===e},Qh=new Set([".","/","./"]),kx=(t,e)=>{if(!b(t)||!e)return;if(Qh.has(t))return e.parse?e.parse():e;let r=Ve(t,e);if(r){let o=t.replaceAll("~/","");return ze(o,r)}let n=je(t,e);if(n){let o=t.replaceAll("../","");return ze(o,n)}return ze(t,e)};function Ox(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=O(t,e,s),c=O(n,e,s);n=a||c;let f;if(n){if(ln(n)&&(i=i||"state",n=n.parse()),b(n)||ct(n)){let p=kx(n,s);p!==void 0?(f=Qh.has(n)?"":n,n=ln(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return Rt(p)?Po(p,d):d})}}if(!n||fr(n)("array","object"))return;if(S(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?el(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=j(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=j(n),o.__childrenCache=l),(g(n)||S(n))&&(n=l||j(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(kt(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=R(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Ri=Ox;var Jh=process.env.NODE_ENV,Zh=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=Bh(t),H("attachNode",t,e)),(Jh==="test"||Jh==="development"||e.alowRefReference)&&(r.ref=t,y(r.setAttribute)&&r.setAttribute("key",t.key)),Oi(t),Ai(t),ki(t),Lh(t),Mh(t),Ih(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||Vt(a,t)||g(fe[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=Ti(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{Gt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||H("lazyLoad",t,e)}):p()}}}let i=t.children?Ri(t.children,t,e):t.children||t.content;return i&&Vn(i,t,e),t};v();var rl={key:":root",node:L?L.body:yt("DocumentNotDefined",L)},nl=rl;v();v();v();v();var tm={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},em=function(t,e=tm){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,tm),r.__element||yt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&St("beforeStateUpdate",t,n,e)===!1?n:(es(r,t,e),Ax(r,t,e)||(Tx(r,t,e),Rx(r,t,e),e.preventStateUpdateListener||St("stateUpdate",t,n,e)),r)},Ax=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=qe(n),f=He(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=Ve(i,o.state),m=je(i,o.state),x=i.replaceAll("~/","").replaceAll("../",""),_=Zo(x,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let C=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&C&&St("stateUpdate",e,n,r),!0},Tx=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},Rx=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var Ix=function(){let t=this;if(g(t)){let e={};for(let r in t)At.has(r)||(e[r]=t[r]);return e}else if(S(t))return t.filter(e=>!At.has(e))},Px=function(t={}){let e=this;for(let r in e)!At.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},Nx=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(b(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(S(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},Dx=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},Fx=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},$x=function(t,e={}){let r=this;if(S(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},Lx=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},Mx=function(t,e={}){let r=this;return S(r)?io(r,t):g(r)&&bo(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},Bx=function(t,e={}){let r=this,n=j(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},rm=function(t,e,r={}){let n=this,o=j(e);r.preventReplace||_o(n,t,e);let s=xo(t,o);return r.preventStateUpdate?s:n.update(s,r)},Ux=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=rm.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&ol.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},ol=function(t,e={}){let r=this;return So(r,t),e.preventUpdate?t:r.update({},e)},Vx=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)ol(t[n],{preventUpdate:!0});return r.update({},e)},jx=function(t,e={}){return wo(this,t)},zx=function(t={}){let e=this,r=j(e.parse());return e.set(r,{replace:!0,...t})},Hx=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},qx=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.replace(n,e)}},Wx=function(t,e={}){let r=this;if(y(t))return t(r),r.update(r.parse(),{replace:!0,...e})},Gx=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},Kx=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},Yx=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},Xx=function(t,e={}){return Object.keys(this)},Qx=function(t,e={}){return Object.values(this)},nm=t=>{let e=t.state,r=t.__ref,n={clean:Px.bind(e),parse:Ix.bind(e),destroy:Nx.bind(e),update:em.bind(e),rootUpdate:Fx.bind(e),parentUpdate:Dx.bind(e),create:ir.bind(e),add:$x.bind(e),toggle:Lx.bind(e),remove:Mx.bind(e),apply:Hx.bind(e),applyReplace:qx.bind(e),applyFunction:Wx.bind(e),set:Bx.bind(e),quietUpdate:Gx.bind(e),replace:Kx.bind(e),quietReplace:Yx.bind(e),reset:zx.bind(e),parent:t.parent?.state||e,setByPath:rm.bind(e),setPathCollection:Ux.bind(e),removeByPath:ol.bind(e),removePathCollection:Vx.bind(e),getByPath:jx.bind(e),keys:Xx.bind(e),values:Qx.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};S(e)?ur(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var ir=function(t,e,r){return t.state=Jx(t,e,r),t.state},Jx=function(t,e,r){let n=Qo(t);if(n===!1)return e.state||{};if(t.state=n,H("stateInit",t,r)===!1)return t.state;if(qe(t)){let i=Jo(t,e);t.state=K(i)?{}:i}let s=ts(t,t.state||e.state||{});return s&&(t.state=s),nm(t),H("stateCreated",t),t.state};v();v();var om=[];var Ii={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:om},jn=function(t={},e){let r=g(e)?{...Ii,...e}:{...Ii},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=As(n,r);if(a)return;r.preventListeners||St("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,Ii),(b(t)||ct(t))&&(t={text:t}),t=zo.call(n,t),eS(n,r)===!1)||tS(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let N=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(y),z=t.props||N||D;z&&Ko(z,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),St("beforeUpdate",t,D,r)===!1)return n}if(it(n,t),Oi(n),Uh(n,{ignore:Ii}),Vh(n),!r.isForced&&!r.preventListeners&&H("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:x,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:C,preventUpdateListener:P,preventUpdateAfter:A,preventUpdateAfterCount:T}=r;if(A){if(ct(T)&&A<=T)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=S(m)?new Set(m):null,$=S(x)?new Set(x):null;for(let N in n){let D=n[N];if(!Object.prototype.hasOwnProperty.call(n,N))continue;let z=k&&k.has(N),Z=$&&$.has(N),tt=y(D)&&N.length>2&&N.charCodeAt(0)===111&&N.charCodeAt(1)===110&&N.charCodeAt(2)>=65&&N.charCodeAt(2)<=90;if(K(D)||z||Z||x===!0||x===N||w&&N==="state"||Vt(N,n)||tt||g(fe[N]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=Ti(N,n,r);if(pt){let{hasDefine:Ct,hasContextDefine:Ut}=pt;if(!(g(D)&&!Ct&&!Ut&&!C))continue;let sa=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(N,n,n.state,n.context);let st=t[N];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(N!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let ia=r.onlyUpdate&&N===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},aa=()=>jn.call(D,st,ia);sa?F.requestAnimationFrame(()=>{aa(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):aa()}}if(!_){let N=o.contentElementKey||"content",D=n[N],z=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(z){let Z=Ri(z,n,e);if(Z&&!o.__noChildrenDifference)Vn(Z,n,r);else if(D?.__ref&&y(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>jn.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});tt?F.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):pt()}}else if(D?.__ref&&y(D.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>jn.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});Z?F.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&Vn(Z,n,r)}}!P&&!r.preventListeners&&H("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},Zx=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},tS=(t,e,r)=>{if(!y(t.if)&&!y(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=Zx(t,e);delete t.__ref,delete t.parent;let c=Gt(t,e,t.key,lt.create,a);return r.preventUpdate!==!0&&t.on&&y(t.on.update)&&br(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},eS=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=He(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&St("beforeStateUpdate",i,t,e)===!1)return t;let a=rS(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&St("stateUpdate",a.parse(),t,e)},rS=(t,e,r)=>{let n=t.state.__children,o=ir(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};tc();var sl=(t,e,r={})=>{let n={set:al,reset:sm,update:jn,variables:Cs,remove:fs,updateContent:im,removeContent:il,setProps:us,lookup:as,lookdown:cs,lookdownAll:ls,getRef:ps,getDB:ks,getPath:ds,getQuery:Os,getRootState:hs,getRoot:ms,getRootData:gs,getRootContext:ys,getContext:bs,setNodeStyles:bn,spotByPath:is,parse:Sn,parseDeep:Sr,keys:xn,nextElement:ws,previousElement:vs,log:xs,verbose:_n,warn:Ss,error:_s,call:Es};t.context.methods&&(r.strict?Y:oe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var nS=new Set(["class","style"]),oS=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=nc(e,r,n?.cssPropsRegistry),s={};for(let a in o)nS.has(a)||(s[a]=o[a]);let i=!1;for(let a in s){i=!0;break}i&&(t.attr?typeof t.attr=="object"&&(t.attr={...s,...t.attr}):t.attr=s)},Pi=process.env.NODE_ENV,Gt=(t,e,r,n=lt.create||{},o)=>{sS(n);let s=Xo(t,e,r,n,rl);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Yo(s,a),Lo(s,a,n),n.onlyResolveExtends?lS(s,a,i,n):(an.call(s,s),H("start",s,n),iS(s,a,n),sl(s,a,n),fn(s,a),ir(s,a),s.scope==="state"&&(s.scope=s.state),gr(s,a),cn(s,a,n),yr.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=Zc(s)),oS(s),(s.scope==="props"||s.scope===!0)&&(s.scope=s.props),gr(s,a),s.node&&c.__if?tl(s,a,i,o):(H("init",s,n)===!1||(H("beforeClassAssign",s,n),zh(s),cS(s,a,n,o),cm(s,a),H("complete",s,n)),s))},sS=t=>{t&&!lt.create&&(lt.create=t,lt.create.context=t.context)},iS=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(lt.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},cm=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},aS=1,am=new WeakMap,cS=(t,e,r,n)=>{am.has(t)&&(Pi==="test"||Pi==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),am.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=vo(o.path);o.__uniqId||a||(Zh(t,r),o.__uniqId=aS++)};if(Pi==="test"||Pi==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;tl(t,e,s,n),Fh(t,r),H("render",t,r),H("renderRouter",t,r),H("done",t,r),H("create",t,r)},lS=(t,e,r,n)=>{let{__ref:o}=t;if(sl(t,e,n),fn(t,e),ir(t,e),t.scope==="state"&&(t.scope=t.state),gr(t,e),cn(t,e,n),yr.call(t,t,{cachedKeys:[]}),(t.scope==="props"||t.scope===!0)&&(t.scope=t.props),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),cm(t,e),t.tag!=="string"&&t.tag!=="fragment"){Ai(t),ki(t);for(let s in t){if(K(t[s])||Vt(s,t)||g(fe[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];!o.__skipCreate&&fe[s]&&!c||t[s]&&!i&&!c&&!a&&Gt(O(t[s],t),t,s,n)}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Ni=Gt;var Ur=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function sm(t){let e=this;Gt(e,e.parent,void 0,{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...t})}var lm=(t,e,r)=>{let n=Ur(e,r);e[n]?.node&&il(e,r);let o=Gt(t,e,n||"content",{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},im=function(t,e){let r=this,n=Ur(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function Vn(t,e,r){let n=O(t,e);n&&e&&al.call(e,n,r)}var il=function(t,e={}){let r=t||this,n=Ur(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),y(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),y(o.remove)&&o.remove();delete r[n]}},al=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return fS(t,e,n)}finally{o.__settingContent=!1}},fS=function(t,e,r){let{__ref:n}=r,o=Ur(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&yo(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&St("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&H("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{lm(t,r,e),e.preventUpdateListener||H("lazyLoad",r,e)}):lm(t,r,e)};var um=/^:(.+)/,pm=/^\*$/,fm=new Map,cl=t=>{let e=fm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(um);a?n.push({index:i,name:a[1]}):pm.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return fm.set(t,s),s},ll=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=cl(f),u=uS(o,l);u>a&&(a=u,i=f,c=pS(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},uS=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(um.test(r[i]))o+=1;else if(pm.test(r[i]))o+=.5;else return-1;return o},pS=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},fl=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},ul=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},pl=(t=0,e=F.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},Di,Fi=0,dS={level:Fi,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:L&&L.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!1},ue=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||F,i=o.context.document||L,a={...dS,...o.context.routerOptions,...n};Fi=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Ur(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=fl(d),x=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==Di;Di=p;let C,P,A;if(a.useParamsMatching){let k=ll(p,o.routes,a.level);C=k.routePath,P=k.content,A=k.params}else C=pl(a.level,p),P=o.routes[C||"/"]||o.routes["/*"],A={};let T=a.scrollToNode?x:a.scrollNode;if(!P||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:C,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:C,params:A,query:m,hash:h,element:o,state:r},$=ul(a.guards,k);if($===!1)return;if(typeof $=="string")return ue($,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,p+(d||"")+(h||"")),w||!_){let k={route:C,hash:h,debugging:!1};Object.keys(A).length&&(k.params=A),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let $=o.__ref?.origin?.content,N={};if($)for(let D in $){let z=$[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof z=="string"||typeof z=="number"||typeof z=="boolean"||typeof z=="object"&&z!==null&&!z.node&&!z.__ref)&&(N[D]=z)}o.set({...N,tag:a.useFragment&&"fragment",extends:P},{contentElementKey:f})}if(a.scrollToTop&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&P[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k){let $=k.getBoundingClientRect().top+x.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}H("routeChanged",o,a)},hS=ue;var hl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return jt(t,e.href)||jt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},dm={extends:"Link"},ml={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let x=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of x){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ue)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},hm={extends:[hl,ml]};var mm={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var gm={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:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var ym={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:t=>t.call("exec",t.parent.props.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"}}},bm={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var xm={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}},Sm={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var _m={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}},wm={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var vm={tag:"textarea",extends:["Input","Flex"],variant:"outlined",fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",maxWidth:"G1_default",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",style:{resize:"none"},".simple":{theme:"field",round:"Z2",lineHeight:1.4},".outlined":{theme:"field",borderWidth:"1px",borderStyle:"solid",lineHeight:1.4,placeholder:"Leave us a message...",resize:"none"},html:(t,e)=>t.props.value},Cm={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 Em={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var km={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:t=>t.call("exec",t.props.disabled)},Om={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},Am={extends:"SquareButton",round:"C"},Tm={extends:"Button",childExtends:"IconText"},Rm={tag:"nav",display:"flex",childExtends:"SquareButton"},Im={extends:["SquareButton","ClickableItem"],round:"Z"};var Pm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Nm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Dm={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"}};v();var Fm={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:({parent:t,props:e})=>kt(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},$m={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:({props:e})=>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"}}:{}})},Lm={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var Mm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var Bm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.onChange(t,e,r):r.update({value:parseFloat(e.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:On("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:On("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,r)=>{let n=t.props&&t.call("exec",t.props[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.props.value||t.props.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var Um={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:({props:t})=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Vm={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},jm={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",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},zm={props:{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",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var Hm={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}}}};v();var zn={};Nt(zn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>po,DOMQ_PROPERTIES:()=>De,ENV:()=>xf,ERRORS_REGISTRY:()=>Ph,HTML_TAGS:()=>nn,METHODS:()=>en,METHODS_EXL:()=>uo,NODE_ENV:()=>Yt,OPTIONS:()=>lt,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>fo,PROPS_METHODS:()=>Fe,STATE_METHODS:()=>At,STATE_PROPERTIES:()=>lf,SVG_TAGS:()=>Ue,TYPES:()=>so,addCaching:()=>ja,addContext:()=>Va,addExtend:()=>Hf,addExtends:()=>Tt,addItemAfterEveryElement:()=>Kl,addProtoToArray:()=>ur,addRef:()=>Ma,applyCSS:()=>yl,applyDependentState:()=>ts,applyEvent:()=>br,applyEventUpdate:()=>rs,applyExtends:()=>Lo,applyProps:()=>Vo,arrayContainsOtherArray:()=>jl,arraysEqual:()=>Xl,arrayzeValue:()=>$r,cache:()=>ou,call:()=>Es,captureSnapshot:()=>As,checkForStateTypes:()=>Qo,checkIfInherits:()=>qe,checkIfStringIsInArray:()=>Zl,clone:()=>pf,cloneAndMergeArrayExtend:()=>To,cloneFunction:()=>Af,concatAddExtends:()=>Po,copyJavaScriptToClipboard:()=>$p,copyStringToClipboard:()=>Fp,createBasedOnType:()=>La,createElement:()=>Xo,createElementExtends:()=>Ca,createExtends:()=>Io,createExtendsFromKeys:()=>on,createExtendsStack:()=>Aa,createIfConditionFlag:()=>gr,createInheritedState:()=>Jo,createKey:()=>ko,createNestedObject:()=>xo,createNestedObjectByKeyPath:()=>Zo,createObjectWithoutPrototype:()=>ma,createParent:()=>Ba,createPath:()=>Ua,createProps:()=>jo,createPropsStack:()=>Da,createRoot:()=>Yo,createScope:()=>fn,createSnapshotId:()=>Eo,customDecodeURIComponent:()=>cf,customEncodeURIComponent:()=>af,cutArrayAfterValue:()=>Wl,cutArrayBeforeValue:()=>ql,debounce:()=>Cf,debounceOnContext:()=>Ef,decodeNewlines:()=>sf,deepClone:()=>j,deepContains:()=>yo,deepDestringifyFunctions:()=>ne,deepExtend:()=>va,deepMerge:()=>M,deepMergeExtends:()=>se,deepStringifyFunctions:()=>ho,defineSetter:()=>ku,detectInfiniteLoop:()=>vo,document:()=>L,encodeNewlines:()=>of,error:()=>_s,excludeKeysFromObject:()=>bf,exec:()=>O,extendCachedRegistry:()=>Vf,extendStackRegistry:()=>No,extractArrayExtend:()=>Fo,fibonacciNumberByIndex:()=>Cp,filterArrays:()=>Ql,filterArraysFast:()=>Jl,finalizeExtends:()=>Ta,findClosestNumber:()=>_c,findClosestNumberInFactory:()=>wp,findInheritedState:()=>He,findKeyPosition:()=>rf,flattenExtend:()=>sn,formatDate:()=>vp,generateHash:()=>Sa,generateKey:()=>Co,generateMetaTags:()=>Np,get:()=>Cu,getActiveRoute:()=>pl,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>Wf,getCdnProviderFromConfig:()=>In,getChildStateInKey:()=>ze,getChildren:()=>Eu,getContext:()=>bs,getCookie:()=>Ff,getDB:()=>ks,getExtendsInElement:()=>qf,getExtendsStack:()=>Ro,getExtendsStackRegistry:()=>wa,getFrequencyInArray:()=>zl,getHashedExtend:()=>Do,getImportMapScript:()=>Pp,getInObjectByPath:()=>wo,getLocalStorage:()=>Lf,getNev:()=>vf,getPageMetadata:()=>Dp,getParentStateInKey:()=>je,getPath:()=>ds,getQuery:()=>Os,getRef:()=>ps,getRoot:()=>ms,getRootContext:()=>ys,getRootData:()=>gs,getRootState:()=>hs,getRootStateInKey:()=>Ve,getSpreadChildren:()=>Gf,global:()=>Ul,hasFunction:()=>go,hasHandlerPlugin:()=>Me,hasOwnProperty:()=>hf,inheritChildExtends:()=>ka,inheritChildPropsExtends:()=>Ea,inheritParentProps:()=>Ho,inheritRecursiveChildExtends:()=>Oa,init:()=>Te,initProps:()=>cn,is:()=>Ot,isArray:()=>S,isBoolean:()=>Qr,isContextComponent:()=>Bo,isCyclic:()=>yf,isDOMNode:()=>Dt,isDate:()=>ua,isDefined:()=>kt,isDevelopment:()=>Xt,isEmpty:()=>da,isEmptyObject:()=>mf,isEqualDeep:()=>ha,isFunction:()=>y,isHtmlElement:()=>oo,isLocal:()=>wf,isMethod:()=>Vt,isMobile:()=>Nf,isNode:()=>me,isNot:()=>fr,isNotProduction:()=>mr,isNull:()=>fa,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>R,isPhoto:()=>Ip,isProduction:()=>Le,isStaging:()=>_f,isState:()=>ln,isString:()=>b,isStringFunction:()=>Of,isTest:()=>ga,isTesting:()=>Sf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>Jr,jointStacks:()=>zf,keys:()=>xn,lastLevel:()=>Fi,lastPathname:()=>Di,loadCssFile:()=>Ap,loadJavascript:()=>Tp,loadJavascriptFile:()=>Ep,loadJavascriptFileEmbedSync:()=>Op,loadJavascriptFileSync:()=>kp,loadRemoteCSS:()=>Rp,loadRemoteScript:()=>Rn,log:()=>xs,logGroupIf:()=>If,logIf:()=>Rf,lookdown:()=>cs,lookdownAll:()=>ls,lookup:()=>as,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>gf,map:()=>uf,mapStringsWithContextComponents:()=>$o,matchRoute:()=>ll,matchesComponentNaming:()=>Rt,memoize:()=>kf,merge:()=>Y,nextElement:()=>ws,objectToString:()=>mo,objectizeStringProperty:()=>Uo,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>hr,overwriteState:()=>es,parse:()=>Sn,parseDeep:()=>Sr,parseQuery:()=>fl,parseRoutePattern:()=>cl,pickupElementFromProps:()=>yr,pickupPropsFromElement:()=>Pa,previousElement:()=>vs,propExists:()=>Jf,propertizeElement:()=>an,propertizeUpdate:()=>zo,reinit:()=>gl,remove:()=>fs,removeChars:()=>Lp,removeCookie:()=>$f,removeDuplicateProps:()=>Wo,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>io,removeFromObject:()=>bo,removeNestedKeyByPath:()=>So,removeValueFromArray:()=>co,removeValueFromArrayAll:()=>Gl,reorderArrayByValues:()=>Yl,replaceLiteralsWithObjectFields:()=>ef,replaceOctalEscapeSequences:()=>nf,report:()=>yt,resolveHandler:()=>Be,returnValueAsText:()=>$a,router:()=>ue,runGuards:()=>ul,runPluginHook:()=>rn,scratchSystem:()=>Mn,scratchUtils:()=>er,self:()=>Vl,set:()=>Lr,setCookie:()=>Df,setHashedExtend:()=>_a,setInObjectByPath:()=>_o,setLocalStorage:()=>Mf,setNodeStyles:()=>bn,setProps:()=>us,setPropsPrototype:()=>qo,spotByPath:()=>is,stringIncludesAny:()=>lo,stringToObject:()=>df,swapItemsInArray:()=>Hl,syncProps:()=>Go,toCamelCase:()=>Vs,toDashCase:()=>js,toDescriptionCase:()=>Bp,toTitleCase:()=>Mp,toggleFullscreen:()=>_p,triggerEventOn:()=>H,triggerEventOnUpdate:()=>St,trimStringFromSymbols:()=>tf,unstackArrayOfObjects:()=>ao,update:()=>Na,updateProps:()=>Ko,variables:()=>Cs,verbose:()=>_n,warn:()=>Ss,window:()=>F});v();v();var mS=E(),qm=(t=mS,e)=>{let r=g(e.localFile)?e.localFile:{},n=j(r.designSystem||{});return M(t,n)},gS={emotion:wt,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Te=(t,e=gS)=>{let r=e.emotion||wt,n=qm(t||{},e),o=Lr({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=Us(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&di(o.svg,{document:e.document}),(p||u)&&mi(o.icons,{document:e.document}),o},$i={emotion:wt},gl=(t,e=$i)=>{let r=e.emotion||wt,n=qm(t||{},e),o=Lr({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},yl=(t,e=$i)=>{(e.emotion||wt).injectGlobal(t)},yS=(t,e=$i)=>{let r=e.emotion||wt;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}},bS=(t,e=$i)=>{};v();var bl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Gm=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},Km=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=bl:e.router=Y(e.router||{},bl);let r=e.router,n=async(s,i)=>{if(!F.location)return;let{pathname:a,search:c,hash:f}=F.location,l=a+c+f,u=s;if(r.customRouterElement){let p=Gm(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ue(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),xS(e,r),r},Wm,Ym=(t,e)=>{if(Wm)return;Wm=!0;let r=e.router||bl;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ue;F.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=F.location,c=s+i+a,f=t;if(r.customRouterElement){let l=Gm(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},xS=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return M(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var xl=F&&F.location?F.location.host.includes("dev."):Xt(),Xm=xl?"http://localhost:8080/get":"https://api.symbols.app/get",SS={endpoint:Xm},Qm=async(t,e=SS)=>{let r=e.endpoint||Xm,n=e.serviceRoute?S(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(y(e.onError))return e.onError(s);console.error(s)}},_S=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await Qm(t,r),o=xl||e.isDevelopment?ne(n):ne(n.releases[0]);r.serviceRoute?S(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},wS=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await Qm(t,n),s=xl||e.isDevelopment?ne(o):ne(o.releases[0]);r(s)}},Jm=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await _S(t,e)}catch(r){console.error(r)}},Zm=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&wS(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var vS={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"}},CS=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Li=(t,e,r)=>{if(!t)return{};let n=y(t)?O(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];y(s)&&(s=O(s,e,r)),b(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var ES=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Mi=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=vS[r];if(!o)continue;let s=CS(o),i=e.querySelector(s)||ES(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var tg={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Li(e,t,t.state);Mi(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Li(e,t,t.state);Mi(n,r)}};Ge();var eg=(t,e,r,n)=>{t&&gn(t,e,r,n)},rg=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Li(t,e,r);Mi(o,n)},ng=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},Vr={routes:t=>t,metadata:rg,fetch:eg,$router:ng},og=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=rg),t.fetch!==!1&&(e.fetch=eg),t.router!==!1&&(e.$router=ng),e};var Sl={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Bi={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ui={...Sl,router:Bi},kS={state:{},pages:{},components:{},router:Bi,define:Vr},Re=kS;var OS=(t,e,r,n)=>{let o=(Ni.default||Ni)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},Vi={TREE:nl,create:OS};v();v();var Kt=Object.create(null);Kt.open="0";Kt.close="1";Kt.ping="2";Kt.pong="3";Kt.message="4";Kt.upgrade="5";Kt.noop="6";var Hn=Object.create(null);Object.keys(Kt).forEach(t=>{Hn[Kt[t]]=t});var qn={type:"error",data:"parser error"};var ag=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",cg=typeof ArrayBuffer=="function",lg=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Wn=({type:t,data:e},r,n)=>ag&&e instanceof Blob?r?n(e):sg(e,n):cg&&(e instanceof ArrayBuffer||lg(e))?r?n(e):sg(new Blob([e]),n):n(Kt[t]+(e||"")),sg=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function ig(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var _l;function fg(t,e){if(ag&&t.data instanceof Blob)return t.data.arrayBuffer().then(ig).then(e);if(cg&&(t.data instanceof ArrayBuffer||lg(t.data)))return e(ig(t.data));Wn(t,!1,r=>{_l||(_l=new TextEncoder),e(_l.encode(r))})}var ug="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<ug.length;t++)Gn[ug.charCodeAt(t)]=t;var pg=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=Gn[t.charCodeAt(n)],i=Gn[t.charCodeAt(n+1)],a=Gn[t.charCodeAt(n+2)],c=Gn[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var AS=typeof ArrayBuffer=="function",Kn=(t,e)=>{if(typeof t!="string")return{type:"message",data:dg(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:TS(t.substring(1),e)}:Hn[r]?t.length>1?{type:Hn[r],data:t.substring(1)}:{type:Hn[r]}:qn},TS=(t,e)=>{if(AS){let r=pg(t);return dg(r,e)}else return{base64:!0,data:t}},dg=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}};var hg="",mg=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Wn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(hg))})})},gg=(t,e)=>{let r=t.split(hg),n=[];for(let o=0;o<r.length;o++){let s=Kn(r[o],e);if(n.push(s),s.type==="error")break}return n};function yg(){return new TransformStream({transform(t,e){fg(t,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))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var wl;function ji(t){return t.reduce((e,r)=>e+r.length,0)}function zi(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function bg(t,e){wl||(wl=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ji(r)<1)break;let c=zi(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(ji(r)<2)break;let c=zi(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(ji(r)<8)break;let c=zi(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(qn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(ji(r)<o)break;let c=zi(r,o);a.enqueue(Kn(s?c:wl.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(qn);break}}}})}var vl=4;function X(t){if(t)return RS(t)}function RS(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};X.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var pe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),xg="arraybuffer";function Hi(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var IS=bt.setTimeout,PS=bt.clearTimeout;function de(t,e){e.useNativeTimers?(t.setTimeoutFn=IS.bind(bt),t.clearTimeoutFn=PS.bind(bt)):(t.setTimeoutFn=bt.setTimeout.bind(bt),t.clearTimeoutFn=bt.clearTimeout.bind(bt))}var NS=1.33;function Sg(t){return typeof t=="string"?DS(t):Math.ceil((t.byteLength||t.size)*NS)}function DS(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function qi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function _g(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function wg(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Wi=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},he=class extends X{constructor(e){super(),this.writable=!1,de(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new Wi(e,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(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Kn(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=_g(e);return r.length?"?"+r:""}};var Yn=class extends he{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};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(e){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)};gg(e,this.socket.binaryType).forEach(r),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,mg(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=qi()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var vg=!1;try{vg=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Cg=vg;function FS(){}var Cl=class extends Yn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Ie=class t extends X{constructor(e,r,n){super(),this.createRequest=e,de(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 e;let r=Hi(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=FS,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ie.requestsCount=0;Ie.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Eg);else if(typeof addEventListener=="function"){let t="onpagehide"in bt?"pagehide":"unload";addEventListener(t,Eg,!1)}}function Eg(){for(let t in Ie.requests)Ie.requests.hasOwnProperty(t)&&Ie.requests[t].abort()}var $S=(function(){let t=kg({xdomain:!1});return t&&t.responseType!==null})(),Pe=class extends Cl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=$S&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ie(kg,this.uri(),e)}};function kg(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Cg))return new XMLHttpRequest}catch{}if(!e)try{return new bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Og=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",kl=class extends he{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Og?{}:Hi(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(e,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=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 r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;Wn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&pe(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=qi()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},El=bt.WebSocket||bt.MozWebSocket,Ne=class extends kl{createSocket(e,r,n){return Og?new El(e,r,n):r?new El(e,r):new El(e)}doWrite(e,r){this.ws.send(r)}};var jr=class extends he{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 r=bg(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=yg();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&pe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Ol={websocket:Ne,webtransport:jr,polling:Pe};var LS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,MS=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=LS.exec(t||""),s={},i=14;for(;i--;)s[MS[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=BS(s,s.path),s.queryKey=US(s,s.query),s}function BS(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function US(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Al=typeof addEventListener=="function"&&typeof removeEventListener=="function",Gi=[];Al&&addEventListener("offline",()=>{Gi.forEach(t=>t())},!1);var cr=class t extends X{constructor(e,r){if(super(),this.binaryType=xg,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=zr(e);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=zr(r.host).host);de(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=wg(this.opts.query)),Al&&(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"})},Gi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=vl,r.transport=e,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[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Sg(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,pe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,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:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),Al&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Gi.indexOf(this._offlineEventListener);n!==-1&&Gi.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};cr.protocol=vl;var Ki=class extends cr{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 r=this.createTransport(e),n=!1;cr.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;cr.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Hr=class extends Ki{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Ol[o]).filter(o=>!!o)),super(e,n)}};var dI=Hr.protocol;function Ag(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=zr(t)),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+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Dl={};Nt(Dl,{Decoder:()=>Pl,Encoder:()=>Il,PacketType:()=>I,isPacketValid:()=>XS,protocol:()=>Ng});var jS=typeof ArrayBuffer=="function",zS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Tg=Object.prototype.toString,HS=typeof Blob=="function"||typeof Blob<"u"&&Tg.call(Blob)==="[object BlobConstructor]",qS=typeof File=="function"||typeof File<"u"&&Tg.call(File)==="[object FileConstructor]";function Qn(t){return jS&&(t instanceof ArrayBuffer||zS(t))||HS&&t instanceof Blob||qS&&t instanceof File}function Xn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Xn(t[r]))return!0;return!1}if(Qn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Xn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Xn(t[r]))return!0;return!1}function Rg(t){let e=[],r=t.data,n=t;return n.data=Tl(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Tl(t,e){if(!t)return t;if(Qn(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=Tl(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=Tl(t[n],e));return r}return t}function Ig(t,e){return t.data=Rl(t.data,e),delete t.attachments,t}function Rl(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=Rl(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Rl(t[r],e));return t}var Pg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Ng=5,I;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(I||(I={}));var Il=class{constructor(e){this.replacer=e}encode(e){return(e.type===I.EVENT||e.type===I.ACK)&&Xn(e)?this.encodeAsBinary({type:e.type===I.EVENT?I.BINARY_EVENT:I.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===I.BINARY_EVENT||e.type===I.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){let r=Rg(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Pl=class t extends X{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===I.BINARY_EVENT;n||r.type===I.BINARY_ACK?(r.type=n?I.EVENT:I.ACK,this.reconstructor=new Nl(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Qn(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(I[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===I.BINARY_EVENT||n.type===I.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(i)}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case I.CONNECT:return Yi(r);case I.DISCONNECT:return r===void 0;case I.CONNECT_ERROR:return typeof r=="string"||Yi(r);case I.EVENT:case I.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Pg.indexOf(r[0])===-1);case I.ACK:case I.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Nl=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 r=Ig(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function WS(t){return typeof t=="string"}var GS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function KS(t){return t===void 0||GS(t)}function Yi(t){return Object.prototype.toString.call(t)==="[object Object]"}function YS(t,e){switch(t){case I.CONNECT:return e===void 0||Yi(e);case I.DISCONNECT:return e===void 0;case I.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Pg.indexOf(e[0])===-1);case I.ACK:return Array.isArray(e);case I.CONNECT_ERROR:return typeof e=="string"||Yi(e);default:return!1}}function XS(t){return WS(t.nsp)&&KS(t.id)&&YS(t.type,t.data)}function Pt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var QS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),qr=class extends X{constructor(e,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=e,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 e=this.io;this.subs=[Pt(e,"open",this.onopen.bind(this)),Pt(e,"packet",this.onpacket.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(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,...r){var n,o,s;if(QS.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:I.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);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[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...s)=>(this._queue[0],o!==null?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(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:I.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case I.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 I.EVENT:case I.BINARY_EVENT:this.onevent(e);break;case I.ACK:case I.BINARY_ACK:this.onack(e);break;case I.DISCONNECT:this.ondisconnect();break;case I.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.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 r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:I.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:I.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 r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,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 r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function lr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}lr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};lr.prototype.reset=function(){this.attempts=0};lr.prototype.setMin=function(t){this.ms=t};lr.prototype.setMax=function(t){this.max=t};lr.prototype.setJitter=function(t){this.jitter=t};var Wr=class extends X{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,de(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 lr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||Dl;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 Hr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Pt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Pt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Pt(e,"ping",this.onping.bind(this)),Pt(e,"data",this.ondata.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this)),Pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){pe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new qr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],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,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Jn={};function Zn(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Ag(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Jn[o]&&s in Jn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Wr(n,e):(Jn[o]||(Jn[o]=new Wr(n,e)),c=Jn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Zn,{Manager:Wr,Socket:qr,io:Zn,connect:Zn});v();var JS={success:"green",error:"red",warning:"yellow"},Dg=(t,e,r)=>{if(t.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,e.notifications.content.connected.setProps({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,e.notifications.content.connected&&e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},to={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:JS[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Fg=process.env.NODE_ENV==="local",ZS=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},t_=(t,e,r,n=!1)=>{!t||!Array.isArray(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},e_=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":ZS(t,o);break;case"update":case"set":t_(t,o,s,!0);break;default:break}return r},r_=async()=>{try{let t=Fg?"http://localhost:8080":"https://api.symbols.app",e=await F.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},n_=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Te(a):hr(r[i],a):r[i]=a}),s&&(r.schema=s))},o_=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=e_(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Te(r.designSystem)},s_=async(t,e,r)=>{let n=await r_();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=Zn(Fg?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",n_(t,e,r)),i.on("ops",o_(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Dg(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},Xi={onInitSync:s_};var $g=(t,e)=>R(t.extends)?t.extends:[],Lg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Xt():r.liveSync)&&(S(t.extends)?t.extends.push(Xi):t.extends?t.extends=[t.extends,Xi]:t.extends=[Xi])};var Mg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Xt()||e.verbose:r.verbose)&&(S(t.extends)?t.extends.push(to):t.extends?t.extends=[t.extends,to]:t.extends=[to])};v();v();var i_=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Bg=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=wt);let s=e.registry||uc(n.emotion,e),i=e.designSystem?M(j(_i),e.designSystem):j(_i),a={};for(let f of i_)e[f]!==void 0&&(a[f]=e[f]);return[Te(i,{key:t,emotion:o,document:r,files:e.files,...Ui,...a,...n}),o,s]};var jg=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},Ug=(t="smbls")=>{let e={};for(let r in ar)Object.prototype.hasOwnProperty.call(ar,r)&&(Rt(r)?e[`smbls.${r}`]=ar[r]:e[r]=ar[r]);return e},zg=t=>t.components?{...Ug(),...t.components}:Ug(),Hg=t=>({...zn,...dl,...er,...t.utils,...t.snippets,...t.functions}),qg=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Vg={},Wg=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ze[s]||In(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Xt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(Vg[c])return;Vg[c]=!0,await Rn(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await Rn(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Gg=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||In(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Xt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let x=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(x,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},Kg=(t,e)=>{let[r,n,o]=Bg(t,e);return[r,n,o]},Yg=(t,e)=>{let r={};return e.state&&M(r,e.state),t&&t.state&&M(r,t.state),r.isRootState=!0,j(r)},Xg=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(t.routes,e.pages);let r=t.routes||e.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},Qg=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];t.type==="template"?(overwriteShallow(t.designSystem,n.designSystem),M(t,n,["designSystem"],1)):M(t,n,[],1)}};v();var Zg="smbls_lang",a_="smbls_t_",c_="smbls_tv_",Gr={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch{}},remove(t){try{window?.localStorage.removeItem(t)}catch{}}},eo={};function ro(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Ji(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Qi=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},Jg=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Qi(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function Zi(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=Jg(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=Qi(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=Qi(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=Jg(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=Qi(f,t);if(l!==void 0)return l}}return t}async function ta(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||a_,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):c_);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch)return;if(!n.translations?.[t]){let c=Gr.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch{}}let i=(r.storagePrefix||"smbls")+":"+t;if(eo[i])return eo[i];let a=this;return eo[i]=(async()=>{try{let c=r.fetch,f=parseInt(Gr.get(s+t),10)||0,l,u,p;if(y(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=y(h)?await h.call(a):e.fetch;if(!m)return;let x=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:x,params:_});if(w.error)throw w.error;let C=w.data;if(!C||!C.changed)return;l=C.translations||{},u=C.version||0,p=!0}else return;if(!p||!l)return;Gr.set(o+t,JSON.stringify(l)),u&&Gr.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){r.verbose!==!1&&console.error("[polyglot] Failed to load translations for",t,c)}finally{delete eo[i]}})(),eo[i]}async function ea(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||Zg;Gr.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function ra(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=y(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function Fl(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||Zg,s=Gr.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&await this.call("loadTranslations",s)}function na(t){let e=this.call("getActiveLang"),r=this?.state;if(!r)return"";let n=t.lastIndexOf(".");if(n===-1)return r[t+e]??"";let o=t.substring(0,n).split("."),s=r;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(n+1)+e]??""}var oa={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Fl.call(t))}};var no={polyglot:Zi,getLocalStateLang:na,getActiveLang:ro,getLang:ro,setLang:ea,getLanguages:Ji,loadTranslations:ta,upsertTranslation:ra};Ge();var l_=async(t,e={})=>{let r=e.key=e.key||(b(t)?t:"smblsapp");e.define=e.define||Vr,e.cssPropsRegistry=Mr,e.window=jg(e),e.sharedLibraries&&e.sharedLibraries.length&&Qg(e);let[n,o,s]=Kg(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=Yg(t,e);e.state=i,e.pages=Xg(t,e),e.components=zg(e),e.utils=Hg(e),Ze[e.packageManager]&&(e.dependencies=await Wg(e)),e.methods=qg(e),e.routerOptions=Km(t,e),e.defaultExtends=[Ei],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[];let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(oa);for(let c in no)c in e.functions||(e.functions[c]=no[c])}return a("helmet")||e.plugins.push(tg),e.fetch&&!a("fetch")&&e.plugins.push(Ja),e},$l=async(t,e)=>{g(e)||(e={}),me(t)?(t={},e.parent=t):b(t)?(t={},e.key=t):g(t)||(t={}),await l_(t,e),t.extends=$g(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=$h(e),await Gg({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),Lg(t,e),Mg(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.parent||r.body;return await(Vi.default&&Vi.default.create||Vi.create)(t,n,e.key,{verbose:e.verbose,...e.domqlOptions})};var Ll=(t,e)=>M(t,g(e)?e:{}),Ml=(t,e=Re,r)=>{let n={...Re,...Ll(e,r)},o=$l(t,n).then(s=>{Ym(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},f_=(t,e=Re,r)=>{let n=Ml(t,e,r),o={...Re,...Ll(e,r)},s=o.key;return Zm(n,s,{utils:zn,...o}),n},u_=async(t,e=Re,r)=>{let n={...Re,...Ll(e,r)},o=e.key;await Jm(o,n);let s=await $l(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},p_=(t={},e=Re,r)=>Ml({deps:{isUndefined:K},...t},M({domqlOptions:{onlyResolveExtends:!0}},e),r);return oy(d_);})();
35
+ ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var zh=t=>ye(t||"div")||yt("HTMLInvalidTag");var dx=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},hx=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},Hh=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(Qc||!e)return;Qc=!0;function r(){if(t.size===0){Qc=!1;return}hx(t),e(r)}e(r)},qh=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(dx(t),Hh(o))},Qc=!1,Wh=()=>{let t=new Set;return Hh(t),t};v();var Gh=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=re(n.slice(2)),s=r[o],i=e[n];b(s)?r[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:r[o]=i}},Kh=t=>{let{on:e}=t,r=Me(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!b(o)&&!(r&&o!=null))continue;let s=re(n.slice(2)),i=e[s];b(i)?e[s]=(...a)=>{if(i(...a)!==!1&&b(o))return o(...a)}:e[s]=o}};v();var Jc="http://www.w3.org/2000/svg",mx=t=>{let{tag:e,context:r}=t,n=r.document||L;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Ue.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Jc)?n.createElementNS(Jc,e):n.createElement(e):n.createElement("div")},Zc=t=>{let{tag:e,key:r,props:n}=t;if(e=O(e,t),e===!0&&(e=r),g(n)&&y(n.tag)&&ye(n.tag))return n.tag;if(y(e)){if(ye(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ye(o))return o}return"div"},Yh=t=>{let{context:e}=t,r=e.window||window,n=t.tag=Zc(t);if(!zh(n))return yt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Ue.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Jc)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=mx(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var gx=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},yx=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},bx=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},tl=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?bx:yx)(t.node,n.node||e.node):gx(t.node,e.node,t)),t};v();var ki=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(b(o)&&!Vt(n,t)){r.__exec[n]=o;let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}):t[n]=s}}},Xh=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=y(a)||ct(a);if(s?.node&&c)oe(s,{text:a});else if(a!==s)if(Rt(o)){let{extends:f,...l}=Uo(a,t,o);oe(s,l)}else n[o]=s,t[o]=a}return n},Oi=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(b(a)){let c=O(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&b(r[n])){e.__execProps[n]=r[n];let c=O(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},Ai=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(b(c)&&!Vt(a,t)){n.__exec[a]=c;let l=O(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},Qh=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=O(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function Jh(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(fr(t)("object")&&yt("HTMLInvalidAttr",t),t){let i=O(t,e);o.attr&&M(i,o.attr);for(let a in i){let c=O(i[a],e);y(c)&&c.includes("{{")&&e.call&&(c=e.call("replaceLiteralsWithObjectFields",c,e.state)),c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var Zh=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},xx=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},tm=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=xx(t,e)),t.replace(/\s+/g," ").trim()};v();function Sx(t,e,r){if(t&&(e.props.data&&M(t,e.props.data),t.showOnNode)){g(t)||yt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=O(t[n],e))}}var em=Sx;v();function _x(t,e,r){let n=O(t??e?.props?.html,e);y(n)&&n.includes("{{")&&e.call&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state));let{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var rm=_x;v();function wx(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=O(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else yt("HTMLInvalidStyles",t)}var nm=wx;v();function vx(t,e,r){let n=O(e.props.text||t,e);if(y(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Ue.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else Gt({tag:"string",text:n},e,"__text")}}var om=vx;v();function Cx(t,e,r){let n=O(t,e);if(g(n))for(let o in n)At.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var sm=Cx;v();function Ex(t,e,r){if(g(t))for(let n in t){let o=t[n];b(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var im=Ex;var fe={attr:Jh,style:nm,text:om,html:rm,data:em,classlist:tm,state:sm,scope:im,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var Ti=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=O(e[t],e),{onlyUpdate:a}=r,c=fe[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){b(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var el=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(S(t)&&S(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!el(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!el(t[a],e[a]))return!1}return!0}return t===e},am=new Set([".","/","./"]),kx=(t,e)=>{if(!y(t)||!e)return;if(am.has(t))return e.parse?e.parse():e;let r=Ve(t,e);if(r){let o=t.replaceAll("~/","");return ze(o,r)}let n=je(t,e);if(n){let o=t.replaceAll("../","");return ze(o,n)}return ze(t,e)};function Ox(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=O(t,e,s),c=O(n,e,s);n=a||c;let f;if(n){if(fn(n)&&(i=i||"state",n=n.parse()),y(n)||ct(n)){let p=kx(n,s);p!==void 0?(f=am.has(n)?"":n,n=fn(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return Rt(p)?No(p,d):d})}}if(!n||fr(n)("array","object"))return;if(S(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?el(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=j(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=j(n),o.__childrenCache=l),(g(n)||S(n))&&(n=l||j(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(kt(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=R(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Ri=Ox;var cm=process.env.NODE_ENV,lm=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=Yh(t),H("attachNode",t,e)),(cm==="test"||cm==="development"||e.alowRefReference)&&(r.ref=t,b(r.setAttribute)&&r.setAttribute("key",t.key)),Oi(t),Ai(t),ki(t),Gh(t),Kh(t),Vh(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||Vt(a,t)||g(fe[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=Ti(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{Gt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||H("lazyLoad",t,e)}):p()}}}let i=t.children?Ri(t.children,t,e):t.children||t.content;return i&&jn(i,t,e),t};v();var rl={key:":root",node:L?L.body:yt("DocumentNotDefined",L)},nl=rl;v();v();v();v();var fm={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},um=function(t,e=fm){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,fm),r.__element||yt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&St("beforeStateUpdate",t,n,e)===!1?n:(rs(r,t,e),Ax(r,t,e)||(Tx(r,t,e),Rx(r,t,e),e.preventStateUpdateListener||St("stateUpdate",t,n,e)),r)},Ax=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=qe(n),f=He(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=Ve(i,o.state),m=je(i,o.state),x=i.replaceAll("~/","").replaceAll("../",""),_=ts(x,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let C=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&C&&St("stateUpdate",e,n,r),!0},Tx=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},Rx=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var Ix=function(){let t=this;if(g(t)){let e={};for(let r in t)At.has(r)||(e[r]=t[r]);return e}else if(S(t))return t.filter(e=>!At.has(e))},Px=function(t={}){let e=this;for(let r in e)!At.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},Nx=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(y(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(S(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},Dx=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},Fx=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},$x=function(t,e={}){let r=this;if(S(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},Lx=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},Mx=function(t,e={}){let r=this;return S(r)?ao(r,t):g(r)&&xo(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},Bx=function(t,e={}){let r=this,n=j(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},pm=function(t,e,r={}){let n=this,o=j(e);r.preventReplace||wo(n,t,e);let s=So(t,o);return r.preventStateUpdate?s:n.update(s,r)},Ux=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=pm.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&ol.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},ol=function(t,e={}){let r=this;return _o(r,t),e.preventUpdate?t:r.update({},e)},Vx=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)ol(t[n],{preventUpdate:!0});return r.update({},e)},jx=function(t,e={}){return vo(this,t)},zx=function(t={}){let e=this,r=j(e.parse());return e.set(r,{replace:!0,...t})},Hx=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},qx=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.replace(n,e)}},Wx=function(t,e={}){let r=this;if(b(t))return t(r),r.update(r.parse(),{replace:!0,...e})},Gx=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},Kx=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},Yx=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},Xx=function(t,e={}){return Object.keys(this)},Qx=function(t,e={}){return Object.values(this)},dm=t=>{let e=t.state,r=t.__ref,n={clean:Px.bind(e),parse:Ix.bind(e),destroy:Nx.bind(e),update:um.bind(e),rootUpdate:Fx.bind(e),parentUpdate:Dx.bind(e),create:ir.bind(e),add:$x.bind(e),toggle:Lx.bind(e),remove:Mx.bind(e),apply:Hx.bind(e),applyReplace:qx.bind(e),applyFunction:Wx.bind(e),set:Bx.bind(e),quietUpdate:Gx.bind(e),replace:Kx.bind(e),quietReplace:Yx.bind(e),reset:zx.bind(e),parent:t.parent?.state||e,setByPath:pm.bind(e),setPathCollection:Ux.bind(e),removeByPath:ol.bind(e),removePathCollection:Vx.bind(e),getByPath:jx.bind(e),keys:Xx.bind(e),values:Qx.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};S(e)?ur(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var ir=function(t,e,r){return t.state=Jx(t,e,r),t.state},Jx=function(t,e,r){let n=Jo(t);if(n===!1)return e.state||{};if(t.state=n,H("stateInit",t,r)===!1)return t.state;if(qe(t)){let i=Zo(t,e);t.state=K(i)?{}:i}let s=es(t,t.state||e.state||{});return s&&(t.state=s),dm(t),H("stateCreated",t),t.state};v();v();var hm=[];var Ii={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:hm},zn=function(t={},e){let r=g(e)?{...Ii,...e}:{...Ii},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=As(n,r);if(a)return;r.preventListeners||St("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,Ii),(y(t)||ct(t))&&(t={text:t}),t=Ho.call(n,t),eS(n,r)===!1)||tS(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let N=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(b),z=t.props||N||D;z&&Yo(z,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),St("beforeUpdate",t,D,r)===!1)return n}if(it(n,t),Oi(n),Xh(n,{ignore:Ii}),Qh(n),!r.isForced&&!r.preventListeners&&H("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:x,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:C,preventUpdateListener:P,preventUpdateAfter:A,preventUpdateAfterCount:T}=r;if(A){if(ct(T)&&A<=T)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=S(m)?new Set(m):null,$=S(x)?new Set(x):null;for(let N in n){let D=n[N];if(!Object.prototype.hasOwnProperty.call(n,N))continue;let z=k&&k.has(N),Z=$&&$.has(N),tt=b(D)&&N.length>2&&N.charCodeAt(0)===111&&N.charCodeAt(1)===110&&N.charCodeAt(2)>=65&&N.charCodeAt(2)<=90;if(K(D)||z||Z||x===!0||x===N||w&&N==="state"||Vt(N,n)||tt||g(fe[N]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=Ti(N,n,r);if(pt){let{hasDefine:Ct,hasContextDefine:Ut}=pt;if(!(g(D)&&!Ct&&!Ut&&!C))continue;let sa=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(N,n,n.state,n.context);let st=t[N];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(N!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let ia=r.onlyUpdate&&N===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},aa=()=>zn.call(D,st,ia);sa?F.requestAnimationFrame(()=>{aa(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):aa()}}if(!_){let N=o.contentElementKey||"content",D=n[N],z=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(z){let Z=Ri(z,n,e);if(Z&&!o.__noChildrenDifference)jn(Z,n,r);else if(D?.__ref&&b(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>zn.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});tt?F.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):pt()}}else if(D?.__ref&&b(D.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>zn.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});Z?F.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&H("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&jn(Z,n,r)}}!P&&!r.preventListeners&&H("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},Zx=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},tS=(t,e,r)=>{if(!b(t.if)&&!b(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=Zx(t,e);delete t.__ref,delete t.parent;let c=Gt(t,e,t.key,lt.create,a);return r.preventUpdate!==!0&&t.on&&b(t.on.update)&&br(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},eS=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=He(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&St("beforeStateUpdate",i,t,e)===!1)return t;let a=rS(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&St("stateUpdate",a.parse(),t,e)},rS=(t,e,r)=>{let n=t.state.__children,o=ir(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};tc();var sl=(t,e,r={})=>{let n={set:al,reset:mm,update:zn,variables:Cs,remove:us,updateContent:gm,removeContent:il,setProps:ps,lookup:cs,lookdown:ls,lookdownAll:fs,getRef:ds,getDB:ks,getPath:hs,getQuery:Os,getRootState:ms,getRoot:gs,getRootData:ys,getRootContext:bs,getContext:xs,setNodeStyles:xn,spotByPath:as,parse:_n,parseDeep:Sr,keys:Sn,nextElement:ws,previousElement:vs,log:Ss,verbose:wn,warn:_s,error:_r,call:Es};t.context.methods&&(r.strict?Y:oe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var nS=new Set(["class","style"]),oS=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=nc(e,r,n?.cssPropsRegistry),s={};for(let a in o)nS.has(a)||(s[a]=o[a]);let i=!1;for(let a in s){i=!0;break}i&&(t.attr?typeof t.attr=="object"&&(t.attr={...s,...t.attr}):t.attr=s)},Pi=process.env.NODE_ENV,Gt=(t,e,r,n=lt.create||{},o)=>{sS(n);let s=Qo(t,e,r,n,rl);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Xo(s,a),Mo(s,a,n),n.onlyResolveExtends?lS(s,a,i,n):(cn.call(s,s),H("start",s,n),iS(s,a,n),sl(s,a,n),un(s,a),ir(s,a),s.scope==="state"&&(s.scope=s.state),gr(s,a),ln(s,a,n),yr.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=Zc(s)),oS(s),(s.scope==="props"||s.scope===!0)&&(s.scope=s.props),gr(s,a),s.node&&c.__if?tl(s,a,i,o):(H("init",s,n)===!1||(H("beforeClassAssign",s,n),Zh(s),cS(s,a,n,o),bm(s,a),H("complete",s,n)),s))},sS=t=>{t&&!lt.create&&(lt.create=t,lt.create.context=t.context)},iS=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(lt.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},bm=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},aS=1,ym=new WeakMap,cS=(t,e,r,n)=>{ym.has(t)&&(Pi==="test"||Pi==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),ym.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=Co(o.path);o.__uniqId||a||(lm(t,r),o.__uniqId=aS++)};if(Pi==="test"||Pi==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;tl(t,e,s,n),qh(t,r),H("render",t,r),H("renderRouter",t,r),H("done",t,r),H("create",t,r)},lS=(t,e,r,n)=>{let{__ref:o}=t;if(sl(t,e,n),un(t,e),ir(t,e),t.scope==="state"&&(t.scope=t.state),gr(t,e),ln(t,e,n),yr.call(t,t,{cachedKeys:[]}),(t.scope==="props"||t.scope===!0)&&(t.scope=t.props),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),bm(t,e),t.tag!=="string"&&t.tag!=="fragment"){Ai(t),ki(t);for(let s in t){if(K(t[s])||Vt(s,t)||g(fe[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];!o.__skipCreate&&fe[s]&&!c||t[s]&&!i&&!c&&!a&&Gt(O(t[s],t),t,s,n)}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Ni=Gt;var Vr=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function mm(t){let e=this;Gt(e,e.parent,void 0,{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...t})}var xm=(t,e,r)=>{let n=Vr(e,r);e[n]?.node&&il(e,r);let o=Gt(t,e,n||"content",{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},gm=function(t,e){let r=this,n=Vr(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function jn(t,e,r){let n=O(t,e);n&&e&&al.call(e,n,r)}var il=function(t,e={}){let r=t||this,n=Vr(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),b(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),b(o.remove)&&o.remove();delete r[n]}},al=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return fS(t,e,n)}finally{o.__settingContent=!1}},fS=function(t,e,r){let{__ref:n}=r,o=Vr(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&bo(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&St("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&H("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{xm(t,r,e),e.preventUpdateListener||H("lazyLoad",r,e)}):xm(t,r,e)};var _m=/^:(.+)/,wm=/^\*$/,Sm=new Map,cl=t=>{let e=Sm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(_m);a?n.push({index:i,name:a[1]}):wm.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Sm.set(t,s),s},ll=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=cl(f),u=uS(o,l);u>a&&(a=u,i=f,c=pS(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},uS=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(_m.test(r[i]))o+=1;else if(wm.test(r[i]))o+=.5;else return-1;return o},pS=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},fl=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},ul=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},pl=(t=0,e=F.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},Di,Fi=0,dS={level:Fi,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:L&&L.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!1},ue=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||F,i=o.context.document||L,a={...dS,...o.context.routerOptions,...n};Fi=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Vr(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=fl(d),x=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==Di;Di=p;let C,P,A;if(a.useParamsMatching){let k=ll(p,o.routes,a.level);C=k.routePath,P=k.content,A=k.params}else C=pl(a.level,p),P=o.routes[C||"/"]||o.routes["/*"],A={};let T=a.scrollToNode?x:a.scrollNode;if(!P||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:C,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:C,params:A,query:m,hash:h,element:o,state:r},$=ul(a.guards,k);if($===!1)return;if(typeof $=="string")return ue($,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,p+(d||"")+(h||"")),w||!_){let k={route:C,hash:h,debugging:!1};Object.keys(A).length&&(k.params=A),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let $=o.__ref?.origin?.content,N={};if($)for(let D in $){let z=$[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof z=="string"||typeof z=="number"||typeof z=="boolean"||typeof z=="object"&&z!==null&&!z.node&&!z.__ref)&&(N[D]=z)}o.set({...N,tag:a.useFragment&&"fragment",extends:P},{contentElementKey:f})}if(a.scrollToTop&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&P[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k){let $=k.getBoundingClientRect().top+x.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}H("routeChanged",o,a)},hS=ue;var hl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return jt(t,e.href)||jt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},vm={extends:"Link"},ml={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let x=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of x){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ue)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},Cm={extends:[hl,ml]};var Em={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var km={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:t=>t.call("exec",t.props.disabled)},Om={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},Am={extends:"SquareButton",round:"C"},Tm={extends:"Button",childExtends:"IconText"},Rm={tag:"nav",display:"flex",childExtends:"SquareButton"},Im={extends:["SquareButton","ClickableItem"],round:"Z"};var Pm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Nm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Dm={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"}};v();var Fm={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:({parent:t,props:e})=>kt(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},$m={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:({props:e})=>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"}}:{}})},Lm={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var Mm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var Bm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.onChange(t,e,r):r.update({value:parseFloat(e.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:An("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:An("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,r)=>{let n=t.props&&t.call("exec",t.props[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.props.value||t.props.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var Um={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:({props:t})=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Vm={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},jm={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",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},zm={props:{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",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var Hm={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}}}};v();var Hn={};Nt(Hn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>ho,DOMQ_PROPERTIES:()=>De,ENV:()=>xf,ERRORS_REGISTRY:()=>jh,HTML_TAGS:()=>on,METHODS:()=>rn,METHODS_EXL:()=>po,NODE_ENV:()=>Yt,OPTIONS:()=>lt,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>uo,PROPS_METHODS:()=>Fe,STATE_METHODS:()=>At,STATE_PROPERTIES:()=>lf,SVG_TAGS:()=>Ue,TYPES:()=>io,addCaching:()=>ja,addContext:()=>Va,addExtend:()=>Hf,addExtends:()=>Tt,addItemAfterEveryElement:()=>Kl,addProtoToArray:()=>ur,addRef:()=>Ma,applyCSS:()=>yl,applyDependentState:()=>es,applyEvent:()=>br,applyEventUpdate:()=>ns,applyExtends:()=>Mo,applyProps:()=>jo,arrayContainsOtherArray:()=>jl,arraysEqual:()=>Xl,arrayzeValue:()=>Lr,cache:()=>ou,call:()=>Es,captureSnapshot:()=>As,checkForStateTypes:()=>Jo,checkIfInherits:()=>qe,checkIfStringIsInArray:()=>Zl,clone:()=>pf,cloneAndMergeArrayExtend:()=>Ro,cloneFunction:()=>Af,concatAddExtends:()=>No,copyJavaScriptToClipboard:()=>$p,copyStringToClipboard:()=>Fp,createBasedOnType:()=>La,createElement:()=>Qo,createElementExtends:()=>Ca,createExtends:()=>Po,createExtendsFromKeys:()=>sn,createExtendsStack:()=>Aa,createIfConditionFlag:()=>gr,createInheritedState:()=>Zo,createKey:()=>Oo,createNestedObject:()=>So,createNestedObjectByKeyPath:()=>ts,createObjectWithoutPrototype:()=>ma,createParent:()=>Ba,createPath:()=>Ua,createProps:()=>zo,createPropsStack:()=>Da,createRoot:()=>Xo,createScope:()=>un,createSnapshotId:()=>ko,customDecodeURIComponent:()=>cf,customEncodeURIComponent:()=>af,cutArrayAfterValue:()=>Wl,cutArrayBeforeValue:()=>ql,debounce:()=>Cf,debounceOnContext:()=>Ef,decodeNewlines:()=>sf,deepClone:()=>j,deepContains:()=>bo,deepDestringifyFunctions:()=>ne,deepExtend:()=>va,deepMerge:()=>M,deepMergeExtends:()=>se,deepStringifyFunctions:()=>mo,defineSetter:()=>ku,detectInfiniteLoop:()=>Co,document:()=>L,encodeNewlines:()=>of,error:()=>_r,excludeKeysFromObject:()=>bf,exec:()=>O,extendCachedRegistry:()=>Vf,extendStackRegistry:()=>Do,extractArrayExtend:()=>$o,fibonacciNumberByIndex:()=>Cp,filterArrays:()=>Ql,filterArraysFast:()=>Jl,finalizeExtends:()=>Ta,findClosestNumber:()=>_c,findClosestNumberInFactory:()=>wp,findInheritedState:()=>He,findKeyPosition:()=>rf,flattenExtend:()=>an,formatDate:()=>vp,generateHash:()=>Sa,generateKey:()=>Eo,generateMetaTags:()=>Np,get:()=>Cu,getActiveRoute:()=>pl,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>Wf,getCdnProviderFromConfig:()=>Pn,getChildStateInKey:()=>ze,getChildren:()=>Eu,getContext:()=>xs,getCookie:()=>Ff,getDB:()=>ks,getExtendsInElement:()=>qf,getExtendsStack:()=>Io,getExtendsStackRegistry:()=>wa,getFrequencyInArray:()=>zl,getHashedExtend:()=>Fo,getImportMapScript:()=>Pp,getInObjectByPath:()=>vo,getLocalStorage:()=>Lf,getNev:()=>vf,getPageMetadata:()=>Dp,getParentStateInKey:()=>je,getPath:()=>hs,getQuery:()=>Os,getRef:()=>ds,getRoot:()=>gs,getRootContext:()=>bs,getRootData:()=>ys,getRootState:()=>ms,getRootStateInKey:()=>Ve,getSpreadChildren:()=>Gf,global:()=>Ul,hasFunction:()=>yo,hasHandlerPlugin:()=>Me,hasOwnProperty:()=>hf,inheritChildExtends:()=>ka,inheritChildPropsExtends:()=>Ea,inheritParentProps:()=>qo,inheritRecursiveChildExtends:()=>Oa,init:()=>Te,initProps:()=>ln,is:()=>Ot,isArray:()=>S,isBoolean:()=>Jr,isContextComponent:()=>Uo,isCyclic:()=>yf,isDOMNode:()=>Dt,isDate:()=>ua,isDefined:()=>kt,isDevelopment:()=>Xt,isEmpty:()=>da,isEmptyObject:()=>mf,isEqualDeep:()=>ha,isFunction:()=>b,isHtmlElement:()=>so,isLocal:()=>wf,isMethod:()=>Vt,isMobile:()=>Nf,isNode:()=>me,isNot:()=>fr,isNotProduction:()=>mr,isNull:()=>fa,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>R,isPhoto:()=>Ip,isProduction:()=>Le,isStaging:()=>_f,isState:()=>fn,isString:()=>y,isStringFunction:()=>Of,isTest:()=>ga,isTesting:()=>Sf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>Zr,jointStacks:()=>zf,keys:()=>Sn,lastLevel:()=>Fi,lastPathname:()=>Di,loadCssFile:()=>Ap,loadJavascript:()=>Tp,loadJavascriptFile:()=>Ep,loadJavascriptFileEmbedSync:()=>Op,loadJavascriptFileSync:()=>kp,loadRemoteCSS:()=>Rp,loadRemoteScript:()=>In,log:()=>Ss,logGroupIf:()=>If,logIf:()=>Rf,lookdown:()=>ls,lookdownAll:()=>fs,lookup:()=>cs,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>gf,map:()=>uf,mapStringsWithContextComponents:()=>Lo,matchRoute:()=>ll,matchesComponentNaming:()=>Rt,memoize:()=>kf,merge:()=>Y,nextElement:()=>ws,objectToString:()=>go,objectizeStringProperty:()=>Vo,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>hr,overwriteState:()=>rs,parse:()=>_n,parseDeep:()=>Sr,parseQuery:()=>fl,parseRoutePattern:()=>cl,pickupElementFromProps:()=>yr,pickupPropsFromElement:()=>Pa,previousElement:()=>vs,propExists:()=>Jf,propertizeElement:()=>cn,propertizeUpdate:()=>Ho,reinit:()=>gl,remove:()=>us,removeChars:()=>Lp,removeCookie:()=>$f,removeDuplicateProps:()=>Go,removeDuplicatesInArray:()=>tn,removeFromArray:()=>ao,removeFromObject:()=>xo,removeNestedKeyByPath:()=>_o,removeValueFromArray:()=>lo,removeValueFromArrayAll:()=>Gl,reorderArrayByValues:()=>Yl,replaceLiteralsWithObjectFields:()=>ef,replaceOctalEscapeSequences:()=>nf,report:()=>yt,resolveHandler:()=>Be,returnValueAsText:()=>$a,router:()=>ue,runGuards:()=>ul,runPluginHook:()=>nn,scratchSystem:()=>Bn,scratchUtils:()=>er,self:()=>Vl,set:()=>Mr,setCookie:()=>Df,setHashedExtend:()=>_a,setInObjectByPath:()=>wo,setLocalStorage:()=>Mf,setNodeStyles:()=>xn,setProps:()=>ps,setPropsPrototype:()=>Wo,spotByPath:()=>as,stringIncludesAny:()=>fo,stringToObject:()=>df,swapItemsInArray:()=>Hl,syncProps:()=>Ko,toCamelCase:()=>Vs,toDashCase:()=>js,toDescriptionCase:()=>Bp,toTitleCase:()=>Mp,toggleFullscreen:()=>_p,triggerEventOn:()=>H,triggerEventOnUpdate:()=>St,trimStringFromSymbols:()=>tf,unstackArrayOfObjects:()=>co,update:()=>Na,updateProps:()=>Yo,variables:()=>Cs,verbose:()=>wn,warn:()=>_s,window:()=>F});v();v();var mS=E(),qm=(t=mS,e)=>{let r=g(e.localFile)?e.localFile:{},n=j(r.designSystem||{});return M(t,n)},gS={emotion:wt,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Te=(t,e=gS)=>{let r=e.emotion||wt,n=qm(t||{},e),o=Mr({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=Us(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&di(o.svg,{document:e.document}),(p||u)&&mi(o.icons,{document:e.document}),o},$i={emotion:wt},gl=(t,e=$i)=>{let r=e.emotion||wt,n=qm(t||{},e),o=Mr({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},yl=(t,e=$i)=>{(e.emotion||wt).injectGlobal(t)},yS=(t,e=$i)=>{let r=e.emotion||wt;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}},bS=(t,e=$i)=>{};v();var bl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Gm=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},Km=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=bl:e.router=Y(e.router||{},bl);let r=e.router,n=async(s,i)=>{if(!F.location)return;let{pathname:a,search:c,hash:f}=F.location,l=a+c+f,u=s;if(r.customRouterElement){let p=Gm(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ue(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),xS(e,r),r},Wm,Ym=(t,e)=>{if(Wm)return;Wm=!0;let r=e.router||bl;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ue;F.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=F.location,c=s+i+a,f=t;if(r.customRouterElement){let l=Gm(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},xS=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return M(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var xl=F&&F.location?F.location.host.includes("dev."):Xt(),Xm=xl?"http://localhost:8080/get":"https://api.symbols.app/get",SS={endpoint:Xm},Qm=async(t,e=SS)=>{let r=e.endpoint||Xm,n=e.serviceRoute?S(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(b(e.onError))return e.onError(s);console.error(s)}},_S=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await Qm(t,r),o=xl||e.isDevelopment?ne(n):ne(n.releases[0]);r.serviceRoute?S(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},wS=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await Qm(t,n),s=xl||e.isDevelopment?ne(o):ne(o.releases[0]);r(s)}},Jm=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await _S(t,e)}catch(r){console.error(r)}},Zm=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&wS(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var vS={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"}},CS=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Li=(t,e,r)=>{if(!t)return{};let n=b(t)?O(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];b(s)&&(s=O(s,e,r)),y(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var ES=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Mi=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=vS[r];if(!o)continue;let s=CS(o),i=e.querySelector(s)||ES(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var tg={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Li(e,t,t.state);Mi(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Li(e,t,t.state);Mi(n,r)}};Ge();var eg=(t,e,r,n)=>{t&&yn(t,e,r,n)},rg=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Li(t,e,r);Mi(o,n)},ng=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},jr={routes:t=>t,metadata:rg,fetch:eg,$router:ng},og=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=rg),t.fetch!==!1&&(e.fetch=eg),t.router!==!1&&(e.$router=ng),e};var Sl={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Bi={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ui={...Sl,router:Bi},kS={state:{},pages:{},components:{},router:Bi,define:jr},Re=kS;var OS=(t,e,r,n)=>{let o=(Ni.default||Ni)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},Vi={TREE:nl,create:OS};v();v();var Kt=Object.create(null);Kt.open="0";Kt.close="1";Kt.ping="2";Kt.pong="3";Kt.message="4";Kt.upgrade="5";Kt.noop="6";var qn=Object.create(null);Object.keys(Kt).forEach(t=>{qn[Kt[t]]=t});var Wn={type:"error",data:"parser error"};var ag=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",cg=typeof ArrayBuffer=="function",lg=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Gn=({type:t,data:e},r,n)=>ag&&e instanceof Blob?r?n(e):sg(e,n):cg&&(e instanceof ArrayBuffer||lg(e))?r?n(e):sg(new Blob([e]),n):n(Kt[t]+(e||"")),sg=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function ig(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var _l;function fg(t,e){if(ag&&t.data instanceof Blob)return t.data.arrayBuffer().then(ig).then(e);if(cg&&(t.data instanceof ArrayBuffer||lg(t.data)))return e(ig(t.data));Gn(t,!1,r=>{_l||(_l=new TextEncoder),e(_l.encode(r))})}var ug="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<ug.length;t++)Kn[ug.charCodeAt(t)]=t;var pg=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=Kn[t.charCodeAt(n)],i=Kn[t.charCodeAt(n+1)],a=Kn[t.charCodeAt(n+2)],c=Kn[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var AS=typeof ArrayBuffer=="function",Yn=(t,e)=>{if(typeof t!="string")return{type:"message",data:dg(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:TS(t.substring(1),e)}:qn[r]?t.length>1?{type:qn[r],data:t.substring(1)}:{type:qn[r]}:Wn},TS=(t,e)=>{if(AS){let r=pg(t);return dg(r,e)}else return{base64:!0,data:t}},dg=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var hg="",mg=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Gn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(hg))})})},gg=(t,e)=>{let r=t.split(hg),n=[];for(let o=0;o<r.length;o++){let s=Yn(r[o],e);if(n.push(s),s.type==="error")break}return n};function yg(){return new TransformStream({transform(t,e){fg(t,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))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var wl;function ji(t){return t.reduce((e,r)=>e+r.length,0)}function zi(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function bg(t,e){wl||(wl=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ji(r)<1)break;let c=zi(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(ji(r)<2)break;let c=zi(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(ji(r)<8)break;let c=zi(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(Wn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(ji(r)<o)break;let c=zi(r,o);a.enqueue(Yn(s?c:wl.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Wn);break}}}})}var vl=4;function X(t){if(t)return RS(t)}function RS(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};X.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var pe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),xg="arraybuffer";function Hi(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var IS=bt.setTimeout,PS=bt.clearTimeout;function de(t,e){e.useNativeTimers?(t.setTimeoutFn=IS.bind(bt),t.clearTimeoutFn=PS.bind(bt)):(t.setTimeoutFn=bt.setTimeout.bind(bt),t.clearTimeoutFn=bt.clearTimeout.bind(bt))}var NS=1.33;function Sg(t){return typeof t=="string"?DS(t):Math.ceil((t.byteLength||t.size)*NS)}function DS(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function qi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function _g(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function wg(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Wi=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},he=class extends X{constructor(e){super(),this.writable=!1,de(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new Wi(e,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(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Yn(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=_g(e);return r.length?"?"+r:""}};var Xn=class extends he{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};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(e){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)};gg(e,this.socket.binaryType).forEach(r),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,mg(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=qi()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var vg=!1;try{vg=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Cg=vg;function FS(){}var Cl=class extends Xn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Ie=class t extends X{constructor(e,r,n){super(),this.createRequest=e,de(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 e;let r=Hi(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=FS,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ie.requestsCount=0;Ie.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Eg);else if(typeof addEventListener=="function"){let t="onpagehide"in bt?"pagehide":"unload";addEventListener(t,Eg,!1)}}function Eg(){for(let t in Ie.requests)Ie.requests.hasOwnProperty(t)&&Ie.requests[t].abort()}var $S=(function(){let t=kg({xdomain:!1});return t&&t.responseType!==null})(),Pe=class extends Cl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=$S&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ie(kg,this.uri(),e)}};function kg(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Cg))return new XMLHttpRequest}catch{}if(!e)try{return new bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Og=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",kl=class extends he{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Og?{}:Hi(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(e,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=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 r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;Gn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&pe(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=qi()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},El=bt.WebSocket||bt.MozWebSocket,Ne=class extends kl{createSocket(e,r,n){return Og?new El(e,r,n):r?new El(e,r):new El(e)}doWrite(e,r){this.ws.send(r)}};var zr=class extends he{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 r=bg(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=yg();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&pe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Ol={websocket:Ne,webtransport:zr,polling:Pe};var LS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,MS=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Hr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=LS.exec(t||""),s={},i=14;for(;i--;)s[MS[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=BS(s,s.path),s.queryKey=US(s,s.query),s}function BS(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function US(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Al=typeof addEventListener=="function"&&typeof removeEventListener=="function",Gi=[];Al&&addEventListener("offline",()=>{Gi.forEach(t=>t())},!1);var cr=class t extends X{constructor(e,r){if(super(),this.binaryType=xg,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Hr(e);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=Hr(r.host).host);de(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=wg(this.opts.query)),Al&&(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"})},Gi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=vl,r.transport=e,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[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Sg(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,pe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,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:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),Al&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Gi.indexOf(this._offlineEventListener);n!==-1&&Gi.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};cr.protocol=vl;var Ki=class extends cr{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 r=this.createTransport(e),n=!1;cr.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;cr.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},qr=class extends Ki{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Ol[o]).filter(o=>!!o)),super(e,n)}};var lI=qr.protocol;function Ag(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Hr(t)),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+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Dl={};Nt(Dl,{Decoder:()=>Pl,Encoder:()=>Il,PacketType:()=>I,isPacketValid:()=>XS,protocol:()=>Ng});var jS=typeof ArrayBuffer=="function",zS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Tg=Object.prototype.toString,HS=typeof Blob=="function"||typeof Blob<"u"&&Tg.call(Blob)==="[object BlobConstructor]",qS=typeof File=="function"||typeof File<"u"&&Tg.call(File)==="[object FileConstructor]";function Jn(t){return jS&&(t instanceof ArrayBuffer||zS(t))||HS&&t instanceof Blob||qS&&t instanceof File}function Qn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Qn(t[r]))return!0;return!1}if(Jn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Qn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Qn(t[r]))return!0;return!1}function Rg(t){let e=[],r=t.data,n=t;return n.data=Tl(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Tl(t,e){if(!t)return t;if(Jn(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=Tl(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=Tl(t[n],e));return r}return t}function Ig(t,e){return t.data=Rl(t.data,e),delete t.attachments,t}function Rl(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=Rl(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Rl(t[r],e));return t}var Pg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Ng=5,I;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(I||(I={}));var Il=class{constructor(e){this.replacer=e}encode(e){return(e.type===I.EVENT||e.type===I.ACK)&&Qn(e)?this.encodeAsBinary({type:e.type===I.EVENT?I.BINARY_EVENT:I.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===I.BINARY_EVENT||e.type===I.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){let r=Rg(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Pl=class t extends X{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===I.BINARY_EVENT;n||r.type===I.BINARY_ACK?(r.type=n?I.EVENT:I.ACK,this.reconstructor=new Nl(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Jn(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(I[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===I.BINARY_EVENT||n.type===I.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(i)}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case I.CONNECT:return Yi(r);case I.DISCONNECT:return r===void 0;case I.CONNECT_ERROR:return typeof r=="string"||Yi(r);case I.EVENT:case I.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Pg.indexOf(r[0])===-1);case I.ACK:case I.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Nl=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 r=Ig(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function WS(t){return typeof t=="string"}var GS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function KS(t){return t===void 0||GS(t)}function Yi(t){return Object.prototype.toString.call(t)==="[object Object]"}function YS(t,e){switch(t){case I.CONNECT:return e===void 0||Yi(e);case I.DISCONNECT:return e===void 0;case I.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Pg.indexOf(e[0])===-1);case I.ACK:return Array.isArray(e);case I.CONNECT_ERROR:return typeof e=="string"||Yi(e);default:return!1}}function XS(t){return WS(t.nsp)&&KS(t.id)&&YS(t.type,t.data)}function Pt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var QS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Wr=class extends X{constructor(e,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=e,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 e=this.io;this.subs=[Pt(e,"open",this.onopen.bind(this)),Pt(e,"packet",this.onpacket.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(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,...r){var n,o,s;if(QS.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:I.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);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[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...s)=>(this._queue[0],o!==null?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(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:I.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case I.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 I.EVENT:case I.BINARY_EVENT:this.onevent(e);break;case I.ACK:case I.BINARY_ACK:this.onack(e);break;case I.DISCONNECT:this.ondisconnect();break;case I.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.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 r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:I.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:I.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 r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,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 r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function lr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}lr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};lr.prototype.reset=function(){this.attempts=0};lr.prototype.setMin=function(t){this.ms=t};lr.prototype.setMax=function(t){this.max=t};lr.prototype.setJitter=function(t){this.jitter=t};var Gr=class extends X{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,de(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 lr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||Dl;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 qr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Pt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Pt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Pt(e,"ping",this.onping.bind(this)),Pt(e,"data",this.ondata.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this)),Pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){pe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Wr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],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,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Zn={};function to(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Ag(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Zn[o]&&s in Zn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Gr(n,e):(Zn[o]||(Zn[o]=new Gr(n,e)),c=Zn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(to,{Manager:Gr,Socket:Wr,io:to,connect:to});v();var JS={success:"green",error:"red",warning:"yellow"},Dg=(t,e,r)=>{if(t.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,e.notifications.content.connected.setProps({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,e.notifications.content.connected&&e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},eo={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:JS[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Fg=process.env.NODE_ENV==="local",ZS=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},t_=(t,e,r,n=!1)=>{!t||!Array.isArray(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},e_=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":ZS(t,o);break;case"update":case"set":t_(t,o,s,!0);break;default:break}return r},r_=async()=>{try{let t=Fg?"http://localhost:8080":"https://api.symbols.app",e=await F.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},n_=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Te(a):hr(r[i],a):r[i]=a}),s&&(r.schema=s))},o_=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=e_(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Te(r.designSystem)},s_=async(t,e,r)=>{let n=await r_();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=to(Fg?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",n_(t,e,r)),i.on("ops",o_(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Dg(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},Xi={onInitSync:s_};var $g=(t,e)=>R(t.extends)?t.extends:[],Lg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Xt():r.liveSync)&&(S(t.extends)?t.extends.push(Xi):t.extends?t.extends=[t.extends,Xi]:t.extends=[Xi])};var Mg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Xt()||e.verbose:r.verbose)&&(S(t.extends)?t.extends.push(eo):t.extends?t.extends=[t.extends,eo]:t.extends=[eo])};v();v();var i_=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Bg=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=wt);let s=e.registry||uc(n.emotion,e),i=e.designSystem?M(j(_i),e.designSystem):j(_i),a={};for(let f of i_)e[f]!==void 0&&(a[f]=e[f]);return[Te(i,{key:t,emotion:o,document:r,files:e.files,...Ui,...a,...n}),o,s]};var jg=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},Ug=(t="smbls")=>{let e={};for(let r in ar)Object.prototype.hasOwnProperty.call(ar,r)&&(Rt(r)?e[`smbls.${r}`]=ar[r]:e[r]=ar[r]);return e},zg=t=>t.components?{...Ug(),...t.components}:Ug(),Hg=t=>({...Hn,...dl,...er,...t.utils,...t.snippets,...t.functions}),qg=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Vg={},Wg=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ze[s]||Pn(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Xt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(Vg[c])return;Vg[c]=!0,await In(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await In(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Gg=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||Pn(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Xt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let x=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(x,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},Kg=(t,e)=>{let[r,n,o]=Bg(t,e);return[r,n,o]},Yg=(t,e)=>{let r={};return e.state&&M(r,e.state),t&&t.state&&M(r,t.state),r.isRootState=!0,j(r)},Xg=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(t.routes,e.pages);let r=t.routes||e.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},Qg=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];t.type==="template"?(overwriteShallow(t.designSystem,n.designSystem),M(t,n,["designSystem"],1)):M(t,n,[],1)}};v();var Zg="smbls_lang",a_="smbls_t_",c_="smbls_tv_",Kr={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch{}},remove(t){try{window?.localStorage.removeItem(t)}catch{}}},ro={};function no(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Ji(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Qi=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},Jg=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Qi(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function Zi(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=Jg(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=Qi(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=Qi(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=Jg(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=Qi(f,t);if(l!==void 0)return l}}return t}async function ta(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||a_,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):c_);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch)return;if(!n.translations?.[t]){let c=Kr.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch{}}let i=(r.storagePrefix||"smbls")+":"+t;if(ro[i])return ro[i];let a=this;return ro[i]=(async()=>{try{let c=r.fetch,f=parseInt(Kr.get(s+t),10)||0,l,u,p;if(b(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=b(h)?await h.call(a):e.fetch;if(!m)return;let x=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:x,params:_});if(w.error)throw w.error;let C=w.data;if(!C||!C.changed)return;l=C.translations||{},u=C.version||0,p=!0}else return;if(!p||!l)return;Kr.set(o+t,JSON.stringify(l)),u&&Kr.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){r.verbose!==!1&&console.error("[polyglot] Failed to load translations for",t,c)}finally{delete ro[i]}})(),ro[i]}async function ea(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||Zg;Kr.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function ra(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=b(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function Fl(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||Zg,s=Kr.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&await this.call("loadTranslations",s)}function na(t){let e=this.call("getActiveLang"),r=this?.state;if(!r)return"";let n=t.lastIndexOf(".");if(n===-1)return r[t+e]??"";let o=t.substring(0,n).split("."),s=r;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(n+1)+e]??""}var oa={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Fl.call(t))}};var oo={polyglot:Zi,getLocalStateLang:na,getActiveLang:no,getLang:no,setLang:ea,getLanguages:Ji,loadTranslations:ta,upsertTranslation:ra};Ge();var l_=async(t,e={})=>{let r=e.key=e.key||(y(t)?t:"smblsapp");e.define=e.define||jr,e.cssPropsRegistry=Br,e.window=jg(e),e.sharedLibraries&&e.sharedLibraries.length&&Qg(e);let[n,o,s]=Kg(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=Yg(t,e);e.state=i,e.pages=Xg(t,e),e.components=zg(e),e.utils=Hg(e),Ze[e.packageManager]&&(e.dependencies=await Wg(e)),e.methods=qg(e),e.routerOptions=Km(t,e),e.defaultExtends=[Ei],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[];let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(oa);for(let c in oo)c in e.functions||(e.functions[c]=oo[c])}return a("helmet")||e.plugins.push(tg),e.fetch&&!a("fetch")&&e.plugins.push(Ja),e},$l=async(t,e)=>{g(e)||(e={}),me(t)?(t={},e.parent=t):y(t)?(t={},e.key=t):g(t)||(t={}),await l_(t,e),t.extends=$g(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=Wh(e),await Gg({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),Lg(t,e),Mg(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.parent||r.body;return await(Vi.default&&Vi.default.create||Vi.create)(t,n,e.key,{verbose:e.verbose,...e.domqlOptions})};var Ll=(t,e)=>M(t,g(e)?e:{}),Ml=(t,e=Re,r)=>{let n={...Re,...Ll(e,r)},o=$l(t,n).then(s=>{Ym(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},f_=(t,e=Re,r)=>{let n=Ml(t,e,r),o={...Re,...Ll(e,r)},s=o.key;return Zm(n,s,{utils:Hn,...o}),n},u_=async(t,e=Re,r)=>{let n={...Re,...Ll(e,r)},o=e.key;await Jm(o,n);let s=await $l(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},p_=(t={},e=Re,r)=>Ml({deps:{isUndefined:K},...t},M({domqlOptions:{onlyResolveExtends:!0}},e),r);return oy(d_);})();
36
36
  // @preserve-env