smbls 3.14.310 → 3.14.319

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/smbls.esm.js CHANGED
@@ -24,7 +24,7 @@ ${Zp(t,1)}
24
24
  FROM ${a}${l}`},x_=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},__=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)}},S_={graphql:g_,"json-api":m_,odata:y_,sql:b_,supabase:__,paths:x_}});var w_,td,ed=$(()=>{"use strict";yo();w_={snapshotId:go},td=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=w_.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Pa,rd,nd=$(()=>{Pa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),rd=t=>typeof t=="string"&&Pa.has(t)});async function od(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var sd=$(()=>{"use strict"});function k_(t){return/^[0-9.]+$/.test(t)&&t!==""}var Xt,We,bn,Zt,id,ad=$(()=>{"use strict";Xt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Xt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Xt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Xt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Xt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!k_(e)?`${Xt.symbols.url}/${t}`:`${Xt.symbols.url}/${t}/${e}.js`}},We={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},bn=(t={})=>{let{packageManager:e}=t;return We[e]||null},Zt=(t,e="latest",r="esmsh")=>(Xt[r]||Xt.esmsh).formatUrl(t,e),id=(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]=Zt(s,i,e)}return`<script type="importmap">{
25
25
  "imports": ${JSON.stringify(o,null,2)}
26
26
  }<\/script>`}});var cd,ld=$(()=>{"use strict";cd=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 fd,ud=$(()=>{"use strict";fd=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var pd,dd=$(()=>{"use strict";pd=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 hd,gd=$(()=>{"use strict";hd=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function xn(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 Sd(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 md,yd,bd,xd,_d,wd=$(()=>{"use strict";md=(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)}}),yd=(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)}),bd=(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}`)},xd=(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)}}),_d=(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 A_(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!C_(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 ns(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function E_(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,p]of Object.entries(l))typeof p!="string"||!p.includes("{{")||(l[f]=p.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,h)=>{let g=d.trim();if(h==="polyglot")return a[g]??ns(a,g)??u;if(h==="getLocalStateLang")return ns(c,g+s)??u;let m=ns(c,g);return m!==void 0?m:a[g]??ns(a,g)??u}));return l}function kd(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function Cd(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=_(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=kd(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},p=kd(f),u={};if(t.integrations?.seo?u={...t.integrations.seo,...p,...c}:Object.keys(p).length?u={...p,...c}:u={...c},!u.title){let g=t.name||t.key;g?n?u.title=g:o==="development"?u.title=`${g} / dev:symbo.ls`:o==="staging"?u.title=`${g} / staging:symbo.ls`:u.title=`${g} / symbo.ls`:u.title="Symbols demo"}u=E_(u,t,r),u.title&&(l.has("title")||!u["og:title"])&&(l.has("og:title")||(u["og:title"]=u.title)),u.description&&(l.has("description")||!u["og:description"])&&(l.has("og:description")||(u["og:description"]=u.description)),u.title&&!u["twitter:title"]&&(u["twitter:title"]=u.title),u.description&&!u["twitter:description"]&&(u["twitter:description"]=u.description);let d=r?.actualPathname||e;if(u["og:url"]||u.url){let g=(u["og:url"]||u.url||"").replace(/\/$/,"");if(g&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;u["og:url"]=g+m}}u=A_(u,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[g,m]of Object.entries(u))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?u[g]=y:g==="title"?u[g]=h:delete u[g]}return u}var $t,v_,vd,C_,Ad=$(()=>{"use strict";dt();$t=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},v_=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${$t(r)}"`).join(" "),vd=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${$t(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${$t(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${$t(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${$t(f)}">`);else if(typeof f=="object"){let p=v_(f);/rel=/.test(p)?n.push(`<link ${p}>`):n.push(`<link rel="icon" ${p}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let p=Object.entries(f).filter(([u,d])=>d!==void 0).map(([u,d])=>`${u}="${$t(d)}"`).join(" ");n.push(`<link rel="alternate" ${p}>`)}}),n;let i=(l,f,p="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${p}="${$t(l)}" content="${$t(f)}">`);else if(Array.isArray(f))f.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${p}="${$t(l)}" content="${$t(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${$t(g)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${$t(h)}"`).join(" ");n.push(`<meta ${u}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let l=o.startsWith("apple:")?"apple-":"msapplication-",f=o.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
27
- `)),C_=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var Ia,Ed,Td=$(()=>{"use strict";dt();Ia=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Ed=(t,e)=>(t=parseFloat(t),_(e)&&(e=Object.values(e)),Ia(t,e))});function _n(t){let e=String(t||"").trim();if(!e)return{owner:Od,key:"",full:""};let r=null,n=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=Od);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function $a(t,e={}){if((e.provider||"kv")==="api")return Rd(t,e);let n=await R_(t,e);return n||Rd(t,e)}async function R_(t,e={}){let r=e.kvBaseUrl||T_,n=e.env||"production",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Rd(t,e={}){let r=e.apiBaseUrl||O_,{key:n}=_n(t);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=_n(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,p=await fetch(f,{method:"GET"});if(!p.ok)return null;let u=await p.json();return u?.data||u||null}catch{return null}}async function Pd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(_(n))return n;if(S(n)){let{full:o}=_n(n);if(!o)return null;try{let s=await $a(o,e);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var Od,T_,O_,os,ss,Id=$(()=>{"use strict";dt();Od="system",T_="https://smbls-kv.nika-980.workers.dev",O_="https://api.symbols.app";os=(t,e)=>{for(let r in e)r in t?_(t[r])&&_(e[r])&&os(t[r],e[r]):t[r]=e[r]},ss=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(t[o]))if(o==="designSystem")os(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}}}});var $d,Fd,Dd,is,Ld,as,Md,pr,Nd=$(()=>{"use strict";dt();$d=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Fd=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)}},Dd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),is=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),Ld=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),as=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Md=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},pr=t=>{if(T(t))return t;if(S(t))return t.split(" ");if(_(t))return Object.values(t);if(oe(t))return[t]}});var jd,Bd=$(()=>{"use strict";jd=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var Tt,Sn,cs,ls,Vd=$(()=>{"use strict";Tt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Sn=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(o=>typeof o.width=="number"),n=[];for(let o of t)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},cs=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return Sn(e,{keepOneX:!1})},ls=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:"source",attr:{type:a,srcset:Sn(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Sn(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Ud={};F(Ud,{CDN_PROVIDERS:()=>Xt,DOMQL_EVENTS:()=>Jf,DOMQ_PROPERTIES:()=>De,ENV:()=>yu,HTML_TAGS:()=>on,METHODS:()=>tn,METHODS_EXL:()=>co,NODE_ENV:()=>Kt,OPTIONS:()=>Fo,PACKAGE_MANAGER_TO_CDN:()=>We,PARSED_DOMQ_PROPERTIES:()=>ao,PROPS_METHODS:()=>Me,STATE_METHODS:()=>Le,STATE_PROPERTIES:()=>Zf,SVG_TAGS:()=>Nu,TYPES:()=>ro,UNIVERSAL_RESERVED_KEYS:()=>Pa,addCaching:()=>la,addContext:()=>ca,addExtend:()=>Hu,addExtends:()=>Et,addItemAfterEveryElement:()=>Nf,addProtoToArray:()=>so,addRef:()=>sa,applyDependentState:()=>dp,applyEvent:()=>ga,applyEventUpdate:()=>ma,applyExtends:()=>qu,applyProps:()=>To,arrayContainsOtherArray:()=>Pf,arraysEqual:()=>Bf,arrayzeValue:()=>pr,buildImgSrcset:()=>cs,buildSourcesAndImg:()=>ls,cache:()=>_p,call:()=>Xp,captureSnapshot:()=>td,checkForStateTypes:()=>lp,checkIfInherits:()=>ha,checkIfStringIsInArray:()=>zf,clone:()=>nu,cloneAndMergeArrayExtend:()=>xo,cloneFunction:()=>Cu,concatAddExtends:()=>Vu,copyJavaScriptToClipboard:()=>Fd,copyStringToClipboard:()=>$d,createBasedOnType:()=>oa,createElement:()=>ap,createElementExtends:()=>zi,createExtends:()=>So,createExtendsFromKeys:()=>sn,createExtendsStack:()=>qi,createIfConditionFlag:()=>Au,createInheritedState:()=>fp,createKey:()=>mo,createNestedObject:()=>fu,createNestedObjectByKeyPath:()=>pp,createObjectWithoutPrototype:()=>Fi,createParent:()=>ia,createPath:()=>aa,createProps:()=>Oo,createPropsStack:()=>ea,createRoot:()=>ip,createScope:()=>mp,createSnapshotId:()=>go,customDecodeURIComponent:()=>Xf,customEncodeURIComponent:()=>Yf,cutArrayAfterValue:()=>Lf,cutArrayBeforeValue:()=>Df,debounce:()=>bo,debounceOnContext:()=>wu,decodeNewlines:()=>Kf,deepClone:()=>Q,deepContains:()=>cu,deepDefaults:()=>os,deepDestringifyFunctions:()=>ie,deepExtend:()=>Ui,deepMerge:()=>G,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>lo,defineSetter:()=>Kp,destringifyGlobalScope:()=>uo,detectHeightOnInit:()=>fd,detectInfiniteLoop:()=>hu,document:()=>Y,encodeNewlines:()=>qf,error:()=>ur,excludeKeysFromObject:()=>mu,exec:()=>X,extendCachedRegistry:()=>Uu,extendStackRegistry:()=>wo,extractArrayExtend:()=>vo,fetchLibraryData:()=>$a,fibonacciNumberByIndex:()=>pd,filterArrays:()=>Vf,filterArraysFast:()=>Uf,finalizeExtends:()=>Ki,findClosestNumber:()=>Ia,findClosestNumberInFactory:()=>Ed,findInheritedState:()=>da,findKeyPosition:()=>Hf,flattenExtend:()=>an,formatDate:()=>cd,generateHash:()=>ji,generateKey:()=>ho,generateMetaTags:()=>vd,get:()=>Wp,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Ku,getCdnProviderFromConfig:()=>bn,getChildStateInKey:()=>pa,getChildren:()=>zo,getContext:()=>Xo,getCookie:()=>$u,getDB:()=>es,getEmotionStylesheet:()=>jd,getExtendsInElement:()=>Gu,getExtendsStack:()=>_o,getExtendsStackRegistry:()=>Vi,getFrequencyInArray:()=>If,getHashedExtend:()=>ko,getImportMapScript:()=>id,getInObjectByPath:()=>du,getLocalStorage:()=>Du,getNev:()=>Su,getPageMetadata:()=>Cd,getParentStateInKey:()=>ua,getPath:()=>Wo,getQuery:()=>rs,getRef:()=>Gp,getRoot:()=>qo,getRootContext:()=>Yo,getRootData:()=>Ko,getRootState:()=>Go,getRootStateInKey:()=>fa,getSpreadChildren:()=>Yu,global:()=>Tf,hasFunction:()=>en,hasHandlerPlugin:()=>rn,hasOwnProperty:()=>su,inheritChildExtends:()=>Hi,inheritChildPropsExtends:()=>Wi,inheritParentProps:()=>Ro,inheritRecursiveChildExtends:()=>Gi,initProps:()=>np,is:()=>Ct,isArray:()=>T,isBoolean:()=>Oi,isContextComponent:()=>Xu,isCyclic:()=>gu,isDOMNode:()=>kt,isDate:()=>Pi,isDefined:()=>vt,isDevelopment:()=>Be,isEmpty:()=>Ii,isEmptyObject:()=>iu,isEqualDeep:()=>$i,isFunction:()=>C,isHtmlElement:()=>eo,isLocal:()=>_u,isMethod:()=>Jp,isMobile:()=>Pu,isNode:()=>he,isNot:()=>Rf,isNotProduction:()=>cr,isNull:()=>Ri,isNumber:()=>oe,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>hd,isProduction:()=>je,isStaging:()=>xu,isState:()=>up,isString:()=>S,isStringFunction:()=>vu,isTest:()=>Di,isTesting:()=>bu,isUndefined:()=>gt,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>ju,joinArrays:()=>Xr,jointStacks:()=>Wu,keys:()=>Oa,loadCssFile:()=>xd,loadJavascript:()=>_d,loadJavascriptFile:()=>md,loadJavascriptFileEmbedSync:()=>bd,loadJavascriptFileSync:()=>yd,loadRemoteCSS:()=>Sd,loadRemoteScript:()=>xn,log:()=>Yp,logGroupIf:()=>Ou,logIf:()=>Tu,lookdown:()=>Vp,lookdownAll:()=>Up,lookup:()=>Bp,lowercaseFirstLetter:()=>sr,makeObjectWithoutPrototype:()=>au,map:()=>eu,mapStringsWithContextComponents:()=>Co,matchesComponentNaming:()=>ce,memoize:()=>ku,merge:()=>et,mergeSharedLibraries:()=>ss,nextElement:()=>Jo,normalizeLibraryKey:()=>_n,objectToString:()=>fo,objectizeStringProperty:()=>Eo,overwrite:()=>po,overwriteDeep:()=>At,overwriteShallow:()=>ar,overwriteState:()=>hp,parse:()=>Ra,parseDeep:()=>Vo,pickupElementFromProps:()=>Ji,pickupPropsFromElement:()=>Zi,previousElement:()=>Qo,propExists:()=>rp,propertizeElement:()=>Qi,propertizeUpdate:()=>ep,remove:()=>zp,removeChars:()=>Dd,removeCookie:()=>Fu,removeDuplicateProps:()=>Io,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>$f,removeFromObject:()=>lu,removeNestedKeyByPath:()=>uu,removeValueFromArray:()=>oo,removeValueFromArrayAll:()=>Mf,reorderArrayByValues:()=>jf,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>Gf,resolveAsset:()=>Tt,resolveHandler:()=>nn,resolveSharedLibraries:()=>Pd,returnValueAsText:()=>na,runPluginHook:()=>Bt,self:()=>Of,setActiveRootState:()=>Ho,setCookie:()=>Iu,setHashedExtend:()=>Bi,setInObjectByPath:()=>pu,setLocalStorage:()=>Lu,setNodeStyles:()=>Ta,setProps:()=>Hp,setPropsPrototype:()=>Po,spotByPath:()=>Uo,srcsetFor:()=>Sn,stringIncludesAny:()=>io,stringToObject:()=>ou,swapItemsInArray:()=>Ff,syncProps:()=>$o,toCamelCase:()=>is,toDashCase:()=>as,toDescriptionCase:()=>Md,toTitleCase:()=>Ld,toggleFullscreen:()=>od,triggerEventOn:()=>Ve,triggerEventOnUpdate:()=>xp,trimStringFromSymbols:()=>Wf,unstackArrayOfObjects:()=>no,update:()=>ta,updateProps:()=>op,variables:()=>ts,verbose:()=>yn,warn:()=>Zo,window:()=>k});var P=$(()=>{"use strict";yo();Li();dt();se();lr();nr();Yr();Eu();Ru();Qr();Kr();Mu();Mi();Yi();ra();Ao();cp();gp();ir();yp();Qp();ba();ed();ya();nd();sd();ad();ld();ud();dd();gd();wd();Ad();Td();Id();Nd();Bd();Vd()});var Vb=Si((jF,Bb)=>{var Nr=1e3,jr=Nr*60,Br=jr*60,tr=Br*24,Uk=tr*7,zk=tr*365.25;Bb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Wk(t);if(r==="number"&&isFinite(t))return e.long?Gk(t):Hk(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Wk(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*zk;case"weeks":case"week":case"w":return r*Uk;case"days":case"day":case"d":return r*tr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Br;case"minutes":case"minute":case"mins":case"min":case"m":return r*jr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Nr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Hk(t){var e=Math.abs(t);return e>=tr?Math.round(t/tr)+"d":e>=Br?Math.round(t/Br)+"h":e>=jr?Math.round(t/jr)+"m":e>=Nr?Math.round(t/Nr)+"s":t+"ms"}function Gk(t){var e=Math.abs(t);return e>=tr?di(t,e,tr,"day"):e>=Br?di(t,e,Br,"hour"):e>=jr?di(t,e,jr,"minute"):e>=Nr?di(t,e,Nr,"second"):t+" ms"}function di(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var zb=Si((BF,Ub)=>{function qk(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Vb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let p=0;for(let u=0;u<f.length;u++)p=(p<<5)-p+f.charCodeAt(u),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(f){let p,u=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),w=b-(p||b);y.diff=w,y.prev=p,y.curr=b,p=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(A,R)=>{if(A==="%%")return"%";x++;let W=r.formatters[R];if(typeof W=="function"){let O=m[x];A=W.call(y,O),m.splice(x,1),x--}return A}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{u=m}}),typeof r.init=="function"&&r.init(g),g}function n(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function s(f,p){let u=0,d=0,h=-1,g=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(h=d,g=u,d++):(u++,d++);else if(h!==-1)d=h+1,g++,u=g;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function i(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){for(let p of r.skips)if(s(f,p))return!1;for(let p of r.names)if(s(f,p))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ub.exports=qk});var Wb=Si((wt,hi)=>{wt.formatArgs=Yk;wt.save=Xk;wt.load=Zk;wt.useColors=Kk;wt.storage=Jk();wt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();wt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Kk(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Yk(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+hi.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}wt.log=console.debug||console.log||(()=>{});function Xk(t){try{t?wt.storage.setItem("debug",t):wt.storage.removeItem("debug")}catch{}}function Zk(){let t;try{t=wt.storage.getItem("debug")||wt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Jk(){try{return localStorage}catch{}}hi.exports=zb()(wt);var{formatters:Qk}=hi.exports;Qk.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var St=null,Zn=0,Jn=[],Hr=()=>St,Sx=t=>{St=t},Qn=0,wi=[];function ne(t){let e=new Set;function r(){return St&&(e.add(St),St._sources.add(s)),t}function n(i){i!==t&&(t=i,Cx(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function wx(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){vi(o);let s=St;St=o;try{e=t(),r=!1}finally{St=s}},_notify(){r=!0,n.size>0&&Ef(n)},get(){return St&&(n.add(St),St._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var Ie=new Set,ki=!1;function ct(t,e){let r=e?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;vi(n);let o=St;St=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{St=o}},_notify(){n._disposed||(Zn>0?Jn.push(n):Qn>0?wi.push(n):Ci(n))},dispose(){n._disposed=!0,vi(n)}};return n._execute(),n}function $e(t){Zn++;try{t()}finally{Zn--,Zn===0&&vx()}}function Ci(t){Ie.add(t),ki||(ki=!0,queueMicrotask(kx))}var rr=[];function kx(){if(ki=!1,Ie.size!==0){if(Ie.size===1){let[t]=Ie;Ie.clear(),t._disposed||t._execute();return}rr.length=0;for(let t of Ie)rr.push(t);Ie.clear(),rr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<rr.length;t++){let e=rr[t];e._disposed||e._execute()}rr.length=0}}function vx(){for(let t=0;t<Jn.length;t++)Ci(Jn[t]);Jn.length=0}function Ef(t){Qn++;try{for(let e of t)e._notify()}finally{if(Qn--,Qn===0&&wi.length>0){let e=wi.splice(0);for(let r=0;r<e.length;r++)Ci(e[r])}}}function Cx(t){Ef(t)}function vi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Fe=Symbol("store"),to=Symbol("signals"),Ai=t=>!t||typeof t!="object"||Array.isArray(t)||t[Fe]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function jt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!Ai(b)?(o[y]=b,n[y]=ne(jt(b,e,r+1))):(o[y]=b,n[y]=ne(b))}let i=new Proxy(o,{get(y,b){if(b===Fe)return!0;if(b===to)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Hr()!=null)return n[b]=ne(void 0),n[b].get()},set(y,b,w){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=w,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=w,w&&typeof w=="object"&&!Ai(w)?n[b].set(jt(w,e,r+1)):n[b].set(w)):(y[b]=w,w&&typeof w=="object"&&!Ai(w)?n[b]=ne(jt(w,e,r+1)):n[b]=ne(w)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){$e(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let w=o.__element;return w&&w.onUpdate&&!b?.quiet&&w.onUpdate(w,i,w.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let w in n){if(w==="parent"||w==="root"||w.startsWith("__"))continue;let x=n[w].peek();x&&x[Fe]?b[w]=x.parse(y):b[w]=x}return b}function f(){return $e(()=>{for(let y in n)delete i[y]}),i}function p(){return Object.keys(n)}function u(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return $e(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function lt(t){return t&&t[Fe]===!0}function Ax(t){return t[to]}function Ti(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=ne(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[to];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[Fe]?a[Ei]:null}return null};return new Proxy(n,{get(i,a){return a===Fe?!0:a===to?r:a===Ei?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=ne(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[Fe]?c[Ei]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Ei=Symbol("scope.parent");var yr={};F(yr,{CSS_NATIVE_COLOR_REGEX:()=>le,CSS_UNITS:()=>qr,applyMediaSequenceVars:()=>mr,applySequenceGlobalVars:()=>Ga,applySequenceVars:()=>Ke,changeLightness:()=>L_,colorStringToRgbaArray:()=>be,convertSvgToSymbol:()=>qa,findHeadingLetter:()=>ah,findHeadings:()=>Ha,generateSequence:()=>Ft,generateSequencePosition:()=>_S,generateSprite:()=>ms,generateSubSequence:()=>za,getColorShade:()=>qd,getDefaultOrFirstKey:()=>wn,getFnPrefixAndValue:()=>qe,getFontFace:()=>j_,getFontFaceEach:()=>kn,getFontFaceEachString:()=>Zd,getFontFaceString:()=>Da,getFontFormat:()=>Yd,getRgbTone:()=>hr,getSequenceValue:()=>Wa,getSequenceValueBySymbols:()=>ih,getSequenceValuePropertyPair:()=>we,getSubratio:()=>Ua,getSubratioDifference:()=>Va,hexToRgb:()=>I_,hexToRgbArray:()=>zd,hexToRgba:()=>F_,hslToRgb:()=>Gd,isCSSVar:()=>ot,isGoogleFontsUrl:()=>us,isResolvedColor:()=>xe,isScalingUnit:()=>Gr,mixTwoColors:()=>P_,mixTwoRgb:()=>D_,mixTwoRgba:()=>Kd,numToLetterMap:()=>Se,opacify:()=>fs,parseColorToken:()=>He,resolveFileUrl:()=>Jt,returnSubThemeOrDefault:()=>N_,rgbArrayToHex:()=>Wd,rgbToHSL:()=>Hd,rgbToHex:()=>$_,setCustomFont:()=>Fa,setCustomFontMedia:()=>gr,setFontImport:()=>ps,setInCustomFontMedia:()=>Xd,setScalingVar:()=>Ba,setSubScalingVar:()=>oh,setVariables:()=>SS,splitTopLevelCommas:()=>dr});var Gr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",qr=["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"];P();var be=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&&Y&&k){let e=Y.body.appendChild(Y.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){Y.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return Y.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,Y.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]},P_=(t,e,r=.5)=>(t=be(t),e=be(e),Kd(t,e,r)),I_=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},zd=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},$_=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Wd=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),F_=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},D_=(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})`},L_=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Hd=(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]},Gd=(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)],qd=(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)},Kd=(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})`},fs=(t,e)=>{let r=be(t);if(!r){cr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,le=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,M_=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,He=t=>{if(!S(t))return null;if(le.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(M_);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}},xe=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),dr=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},hr=(t,e)=>{S(t)&&t.includes("rgb")&&(t=be(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),oe(e)&&(e+="");let r=Wd(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=qd(r,parseFloat(e));return zd(o).join(", ")}else{let[o,s,i]=t,a=Hd(o,s,i),[c,l,f]=a;return Gd(c,l,parseFloat(e)/100*255)}};var N_=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Jt=(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},wn=(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},Yd=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},us=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),ps=t=>`@import url('${t}');`,Xd=t=>`@font-face { ${t} }`,Fa=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Yd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
27
+ `)),C_=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var Ia,Ed,Td=$(()=>{"use strict";dt();Ia=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Ed=(t,e)=>(t=parseFloat(t),_(e)&&(e=Object.values(e)),Ia(t,e))});function _n(t){let e=String(t||"").trim();if(!e)return{owner:Od,key:"",full:""};let r=null,n=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=Od);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function $a(t,e={}){if((e.provider||"kv")==="api")return Rd(t,e);let n=await R_(t,e);return n||Rd(t,e)}async function R_(t,e={}){let r=e.kvBaseUrl||T_,n=e.env||"production",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Rd(t,e={}){let r=e.apiBaseUrl||O_,{key:n}=_n(t);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=_n(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,p=await fetch(f,{method:"GET"});if(!p.ok)return null;let u=await p.json();return u?.data||u||null}catch{return null}}async function Pd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(_(n))return n;if(S(n)){let{full:o}=_n(n);if(!o)return null;try{let s=await $a(o,e);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var Od,T_,O_,os,ss,Id=$(()=>{"use strict";dt();Od="system",T_="https://smbls-kv.nika-980.workers.dev",O_="https://api.symbols.app";os=(t,e)=>{for(let r in e)r in t?_(t[r])&&_(e[r])&&os(t[r],e[r]):t[r]=e[r]},ss=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(t[o]))if(o==="designSystem")os(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}}}});var $d,Fd,Dd,is,Ld,as,Md,pr,Nd=$(()=>{"use strict";dt();$d=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Fd=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)}},Dd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),is=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),Ld=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),as=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Md=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},pr=t=>{if(T(t))return t;if(S(t))return t.split(" ");if(_(t))return Object.values(t);if(oe(t))return[t]}});var jd,Bd=$(()=>{"use strict";jd=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var Tt,Sn,cs,ls,Vd=$(()=>{"use strict";Tt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Sn=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(o=>typeof o.width=="number"),n=[];for(let o of t)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},cs=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return Sn(e,{keepOneX:!1})},ls=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:"source",attr:{type:a,srcset:Sn(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Sn(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Ud={};F(Ud,{CDN_PROVIDERS:()=>Xt,DOMQL_EVENTS:()=>Jf,DOMQ_PROPERTIES:()=>De,ENV:()=>yu,HTML_TAGS:()=>on,METHODS:()=>tn,METHODS_EXL:()=>co,NODE_ENV:()=>Kt,OPTIONS:()=>Fo,PACKAGE_MANAGER_TO_CDN:()=>We,PARSED_DOMQ_PROPERTIES:()=>ao,PROPS_METHODS:()=>Me,STATE_METHODS:()=>Le,STATE_PROPERTIES:()=>Zf,SVG_TAGS:()=>Nu,TYPES:()=>ro,UNIVERSAL_RESERVED_KEYS:()=>Pa,addCaching:()=>la,addContext:()=>ca,addExtend:()=>Hu,addExtends:()=>Et,addItemAfterEveryElement:()=>Nf,addProtoToArray:()=>so,addRef:()=>sa,applyDependentState:()=>dp,applyEvent:()=>ga,applyEventUpdate:()=>ma,applyExtends:()=>qu,applyProps:()=>To,arrayContainsOtherArray:()=>Pf,arraysEqual:()=>Bf,arrayzeValue:()=>pr,buildImgSrcset:()=>cs,buildSourcesAndImg:()=>ls,cache:()=>_p,call:()=>Xp,captureSnapshot:()=>td,checkForStateTypes:()=>lp,checkIfInherits:()=>ha,checkIfStringIsInArray:()=>zf,clone:()=>nu,cloneAndMergeArrayExtend:()=>xo,cloneFunction:()=>Cu,concatAddExtends:()=>Vu,copyJavaScriptToClipboard:()=>Fd,copyStringToClipboard:()=>$d,createBasedOnType:()=>oa,createElement:()=>ap,createElementExtends:()=>zi,createExtends:()=>So,createExtendsFromKeys:()=>sn,createExtendsStack:()=>qi,createIfConditionFlag:()=>Au,createInheritedState:()=>fp,createKey:()=>mo,createNestedObject:()=>fu,createNestedObjectByKeyPath:()=>pp,createObjectWithoutPrototype:()=>Fi,createParent:()=>ia,createPath:()=>aa,createProps:()=>Oo,createPropsStack:()=>ea,createRoot:()=>ip,createScope:()=>mp,createSnapshotId:()=>go,customDecodeURIComponent:()=>Xf,customEncodeURIComponent:()=>Yf,cutArrayAfterValue:()=>Lf,cutArrayBeforeValue:()=>Df,debounce:()=>bo,debounceOnContext:()=>wu,decodeNewlines:()=>Kf,deepClone:()=>Q,deepContains:()=>cu,deepDefaults:()=>os,deepDestringifyFunctions:()=>ie,deepExtend:()=>Ui,deepMerge:()=>G,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>lo,defineSetter:()=>Kp,destringifyGlobalScope:()=>uo,detectHeightOnInit:()=>fd,detectInfiniteLoop:()=>hu,document:()=>Y,encodeNewlines:()=>qf,error:()=>ur,excludeKeysFromObject:()=>mu,exec:()=>X,extendCachedRegistry:()=>Uu,extendStackRegistry:()=>wo,extractArrayExtend:()=>vo,fetchLibraryData:()=>$a,fibonacciNumberByIndex:()=>pd,filterArrays:()=>Vf,filterArraysFast:()=>Uf,finalizeExtends:()=>Ki,findClosestNumber:()=>Ia,findClosestNumberInFactory:()=>Ed,findInheritedState:()=>da,findKeyPosition:()=>Hf,flattenExtend:()=>an,formatDate:()=>cd,generateHash:()=>ji,generateKey:()=>ho,generateMetaTags:()=>vd,get:()=>Wp,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Ku,getCdnProviderFromConfig:()=>bn,getChildStateInKey:()=>pa,getChildren:()=>zo,getContext:()=>Xo,getCookie:()=>$u,getDB:()=>es,getEmotionStylesheet:()=>jd,getExtendsInElement:()=>Gu,getExtendsStack:()=>_o,getExtendsStackRegistry:()=>Vi,getFrequencyInArray:()=>If,getHashedExtend:()=>ko,getImportMapScript:()=>id,getInObjectByPath:()=>du,getLocalStorage:()=>Du,getNev:()=>Su,getPageMetadata:()=>Cd,getParentStateInKey:()=>ua,getPath:()=>Wo,getQuery:()=>rs,getRef:()=>Gp,getRoot:()=>qo,getRootContext:()=>Yo,getRootData:()=>Ko,getRootState:()=>Go,getRootStateInKey:()=>fa,getSpreadChildren:()=>Yu,global:()=>Tf,hasFunction:()=>en,hasHandlerPlugin:()=>rn,hasOwnProperty:()=>su,inheritChildExtends:()=>Hi,inheritChildPropsExtends:()=>Wi,inheritParentProps:()=>Ro,inheritRecursiveChildExtends:()=>Gi,initProps:()=>np,is:()=>Ct,isArray:()=>T,isBoolean:()=>Oi,isContextComponent:()=>Xu,isCyclic:()=>gu,isDOMNode:()=>kt,isDate:()=>Pi,isDefined:()=>vt,isDevelopment:()=>Be,isEmpty:()=>Ii,isEmptyObject:()=>iu,isEqualDeep:()=>$i,isFunction:()=>C,isHtmlElement:()=>eo,isLocal:()=>_u,isMethod:()=>Jp,isMobile:()=>Pu,isNode:()=>he,isNot:()=>Rf,isNotProduction:()=>cr,isNull:()=>Ri,isNumber:()=>oe,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>hd,isProduction:()=>je,isStaging:()=>xu,isState:()=>up,isString:()=>S,isStringFunction:()=>vu,isTest:()=>Di,isTesting:()=>bu,isUndefined:()=>gt,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>ju,joinArrays:()=>Xr,jointStacks:()=>Wu,keys:()=>Oa,loadCssFile:()=>xd,loadJavascript:()=>_d,loadJavascriptFile:()=>md,loadJavascriptFileEmbedSync:()=>bd,loadJavascriptFileSync:()=>yd,loadRemoteCSS:()=>Sd,loadRemoteScript:()=>xn,log:()=>Yp,logGroupIf:()=>Ou,logIf:()=>Tu,lookdown:()=>Vp,lookdownAll:()=>Up,lookup:()=>Bp,lowercaseFirstLetter:()=>sr,makeObjectWithoutPrototype:()=>au,map:()=>eu,mapStringsWithContextComponents:()=>Co,matchesComponentNaming:()=>ce,memoize:()=>ku,merge:()=>et,mergeSharedLibraries:()=>ss,nextElement:()=>Jo,normalizeLibraryKey:()=>_n,objectToString:()=>fo,objectizeStringProperty:()=>Eo,overwrite:()=>po,overwriteDeep:()=>At,overwriteShallow:()=>ar,overwriteState:()=>hp,parse:()=>Ra,parseDeep:()=>Vo,pickupElementFromProps:()=>Ji,pickupPropsFromElement:()=>Zi,previousElement:()=>Qo,propExists:()=>rp,propertizeElement:()=>Qi,propertizeUpdate:()=>ep,remove:()=>zp,removeChars:()=>Dd,removeCookie:()=>Fu,removeDuplicateProps:()=>Io,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>$f,removeFromObject:()=>lu,removeNestedKeyByPath:()=>uu,removeValueFromArray:()=>oo,removeValueFromArrayAll:()=>Mf,reorderArrayByValues:()=>jf,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>Gf,resolveAsset:()=>Tt,resolveHandler:()=>nn,resolveSharedLibraries:()=>Pd,returnValueAsText:()=>na,runPluginHook:()=>Bt,self:()=>Of,setActiveRootState:()=>Ho,setCookie:()=>Iu,setHashedExtend:()=>Bi,setInObjectByPath:()=>pu,setLocalStorage:()=>Lu,setNodeStyles:()=>Ta,setProps:()=>Hp,setPropsPrototype:()=>Po,spotByPath:()=>Uo,srcsetFor:()=>Sn,stringIncludesAny:()=>io,stringToObject:()=>ou,swapItemsInArray:()=>Ff,syncProps:()=>$o,toCamelCase:()=>is,toDashCase:()=>as,toDescriptionCase:()=>Md,toTitleCase:()=>Ld,toggleFullscreen:()=>od,triggerEventOn:()=>Ve,triggerEventOnUpdate:()=>xp,trimStringFromSymbols:()=>Wf,unstackArrayOfObjects:()=>no,update:()=>ta,updateProps:()=>op,variables:()=>ts,verbose:()=>yn,warn:()=>Zo,window:()=>k});var P=$(()=>{"use strict";yo();Li();dt();se();lr();nr();Yr();Eu();Ru();Qr();Kr();Mu();Mi();Yi();ra();Ao();cp();gp();ir();yp();Qp();ba();ed();ya();nd();sd();ad();ld();ud();dd();gd();wd();Ad();Td();Id();Nd();Bd();Vd()});var Vb=Si((jF,Bb)=>{var Nr=1e3,jr=Nr*60,Br=jr*60,tr=Br*24,Uk=tr*7,zk=tr*365.25;Bb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Wk(t);if(r==="number"&&isFinite(t))return e.long?Gk(t):Hk(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Wk(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*zk;case"weeks":case"week":case"w":return r*Uk;case"days":case"day":case"d":return r*tr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Br;case"minutes":case"minute":case"mins":case"min":case"m":return r*jr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Nr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Hk(t){var e=Math.abs(t);return e>=tr?Math.round(t/tr)+"d":e>=Br?Math.round(t/Br)+"h":e>=jr?Math.round(t/jr)+"m":e>=Nr?Math.round(t/Nr)+"s":t+"ms"}function Gk(t){var e=Math.abs(t);return e>=tr?di(t,e,tr,"day"):e>=Br?di(t,e,Br,"hour"):e>=jr?di(t,e,jr,"minute"):e>=Nr?di(t,e,Nr,"second"):t+" ms"}function di(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var zb=Si((BF,Ub)=>{function qk(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Vb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let p=0;for(let u=0;u<f.length;u++)p=(p<<5)-p+f.charCodeAt(u),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(f){let p,u=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),w=b-(p||b);y.diff=w,y.prev=p,y.curr=b,p=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(A,R)=>{if(A==="%%")return"%";x++;let W=r.formatters[R];if(typeof W=="function"){let O=m[x];A=W.call(y,O),m.splice(x,1),x--}return A}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{u=m}}),typeof r.init=="function"&&r.init(g),g}function n(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function s(f,p){let u=0,d=0,h=-1,g=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(h=d,g=u,d++):(u++,d++);else if(h!==-1)d=h+1,g++,u=g;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function i(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){for(let p of r.skips)if(s(f,p))return!1;for(let p of r.names)if(s(f,p))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ub.exports=qk});var Wb=Si((wt,hi)=>{wt.formatArgs=Yk;wt.save=Xk;wt.load=Zk;wt.useColors=Kk;wt.storage=Jk();wt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();wt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Kk(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Yk(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+hi.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}wt.log=console.debug||console.log||(()=>{});function Xk(t){try{t?wt.storage.setItem("debug",t):wt.storage.removeItem("debug")}catch{}}function Zk(){let t;try{t=wt.storage.getItem("debug")||wt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Jk(){try{return localStorage}catch{}}hi.exports=zb()(wt);var{formatters:Qk}=hi.exports;Qk.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var St=null,Zn=0,Jn=[],Hr=()=>St,Sx=t=>{St=t},Qn=0,wi=[];function ne(t){let e=new Set;function r(){return St&&(e.add(St),St._sources.add(s)),t}function n(i){i!==t&&(t=i,Cx(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function wx(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){vi(o);let s=St;St=o;try{e=t(),r=!1}finally{St=s}},_notify(){r=!0,n.size>0&&Ef(n)},get(){return St&&(n.add(St),St._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var Ie=new Set,ki=!1;function ct(t,e){let r=e?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;vi(n);let o=St;St=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{St=o}},_notify(){n._disposed||(Zn>0?Jn.push(n):Qn>0?wi.push(n):Ci(n))},dispose(){n._disposed=!0,vi(n)}};return n._execute(),n}function $e(t){Zn++;try{t()}finally{Zn--,Zn===0&&vx()}}function Ci(t){Ie.add(t),ki||(ki=!0,queueMicrotask(kx))}var rr=[];function kx(){if(ki=!1,Ie.size!==0){if(Ie.size===1){let[t]=Ie;Ie.clear(),t._disposed||t._execute();return}rr.length=0;for(let t of Ie)rr.push(t);Ie.clear(),rr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<rr.length;t++){let e=rr[t];e._disposed||e._execute()}rr.length=0}}function vx(){for(let t=0;t<Jn.length;t++)Ci(Jn[t]);Jn.length=0}function Ef(t){Qn++;try{for(let e of t)e._notify()}finally{if(Qn--,Qn===0&&wi.length>0){let e=wi.splice(0);for(let r=0;r<e.length;r++)Ci(e[r])}}}function Cx(t){Ef(t)}function vi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Fe=Symbol("store"),to=Symbol("signals"),Ai=t=>!t||typeof t!="object"||Array.isArray(t)||t[Fe]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function jt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!Ai(b)?(o[y]=b,n[y]=ne(jt(b,e,r+1))):(o[y]=b,n[y]=ne(b))}let i=new Proxy(o,{get(y,b){if(b===Fe)return!0;if(b===to)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Hr()!=null)return n[b]=ne(void 0),n[b].get()},set(y,b,w){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=w,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=w,w&&typeof w=="object"&&!Ai(w)?n[b].set(jt(w,e,r+1)):n[b].set(w)):(y[b]=w,w&&typeof w=="object"&&!Ai(w)?n[b]=ne(jt(w,e,r+1)):n[b]=ne(w)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){$e(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let w=o.__element;return w&&w.onUpdate&&!b?.quiet&&w.onUpdate(w,i,w.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let w in n){if(w==="parent"||w==="root"||w.startsWith("__"))continue;let x=n[w].peek();x&&x[Fe]?b[w]=x.parse(y):b[w]=x}return b}function f(){return $e(()=>{for(let y in n)delete i[y]}),i}function p(){return Object.keys(n)}function u(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return $e(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function lt(t){return t&&t[Fe]===!0}function Ax(t){return t[to]}function Ti(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=ne(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[to];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[Fe]?a[Ei]:null}return null};return new Proxy(n,{get(i,a){return a===Fe?!0:a===to?r:a===Ei?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=ne(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[Fe]?c[Ei]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Ei=Symbol("scope.parent");var yr={};F(yr,{CSS_NATIVE_COLOR_REGEX:()=>le,CSS_UNITS:()=>qr,applyMediaSequenceVars:()=>mr,applySequenceGlobalVars:()=>Ga,applySequenceVars:()=>Ke,changeLightness:()=>L_,colorStringToRgbaArray:()=>be,convertSvgToSymbol:()=>qa,findHeadingLetter:()=>ah,findHeadings:()=>Ha,generateSequence:()=>Ft,generateSequencePosition:()=>_S,generateSprite:()=>ms,generateSubSequence:()=>za,getColorShade:()=>qd,getDefaultOrFirstKey:()=>wn,getFnPrefixAndValue:()=>qe,getFontFace:()=>j_,getFontFaceEach:()=>kn,getFontFaceEachString:()=>Zd,getFontFaceString:()=>Da,getFontFormat:()=>Yd,getRgbTone:()=>hr,getSequenceValue:()=>Wa,getSequenceValueBySymbols:()=>ih,getSequenceValuePropertyPair:()=>we,getSubratio:()=>Ua,getSubratioDifference:()=>Va,hexToRgb:()=>I_,hexToRgbArray:()=>zd,hexToRgba:()=>F_,hslToRgb:()=>Gd,isCSSVar:()=>ot,isGoogleFontsUrl:()=>us,isResolvedColor:()=>xe,isScalingUnit:()=>Gr,mixTwoColors:()=>P_,mixTwoRgb:()=>D_,mixTwoRgba:()=>Kd,numToLetterMap:()=>Se,opacify:()=>fs,parseColorToken:()=>He,resolveFileUrl:()=>Jt,returnSubThemeOrDefault:()=>N_,rgbArrayToHex:()=>Wd,rgbToHSL:()=>Hd,rgbToHex:()=>$_,setCustomFont:()=>Fa,setCustomFontMedia:()=>gr,setFontImport:()=>ps,setInCustomFontMedia:()=>Xd,setScalingVar:()=>Ba,setSubScalingVar:()=>oh,setVariables:()=>SS,splitTopLevelCommas:()=>dr});var Gr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",qr=["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"];P();var be=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&&Y&&k){let e=Y.body.appendChild(Y.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){Y.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return Y.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,Y.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]},P_=(t,e,r=.5)=>(t=be(t),e=be(e),Kd(t,e,r)),I_=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},zd=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},$_=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Wd=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),F_=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},D_=(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})`},L_=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Hd=(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]},Gd=(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)],qd=(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)},Kd=(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})`},fs=(t,e)=>{let r=be(t);if(!r){cr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,le=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,M_=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,He=t=>{if(!S(t))return null;if(le.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(M_);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}},xe=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),dr=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},hr=(t,e)=>{S(t)&&t.includes("rgb")&&(t=be(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),oe(e)&&(e+="");let r=Wd(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=qd(r,parseFloat(e));return zd(o).join(", ")}else{let[o,s,i]=t,a=Hd(o,s,i),[c,l,f]=a;return Gd(c,l,parseFloat(e)/100*255)}};var N_=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Jt=(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},wn=(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},Yd=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},us=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),ps=t=>`@import url('${t}');`,Xd=t=>`@font-face { ${t} }`,Fa=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Yd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
28
28
  `);return`
29
29
  font-family: '${t}';
30
30
  font-style: ${n.fontStyle||"normal"};${r?`
@@ -32,7 +32,7 @@ FROM ${a}${l}`},x_=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
32
32
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
33
33
  font-display: ${n.fontDisplay};`:""}
34
34
  src: ${i};`},gr=(t,e,r,n)=>`@font-face {${Fa(t,e,r,n)}
35
- }`,kn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(p=>Jt(p,r)||p):Jt(s,r)||s;return Fa(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),j_=t=>Object.keys(t).map(r=>kn(r,t[r].value)),Zd=(t,e,r)=>{if(e&&e.isVariable){let s=Jt(e.url,r)||e.url;return us(s)?ps(s):gr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return kn(t,e,r).map(Xd);let o=Array.isArray(e.url)?e.url.map(s=>Jt(s,r)||s):Jt(e.url,r)||e.url;return gr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Da=(t,e)=>Object.keys(t).map(n=>Zd(n,t[n].value,e));P();P();P();var ds={};F(ds,{animation:()=>iS,breakpoints:()=>oS,class:()=>pS,color:()=>Y_,devices:()=>sS,document:()=>nS,font:()=>U_,fontFace:()=>H_,fontFamily:()=>z_,fontFamilyTypes:()=>W_,gradient:()=>X_,grid:()=>uS,icons:()=>Q_,media:()=>G_,reset:()=>dS,semanticIcons:()=>tS,sequence:()=>Ge,shadow:()=>J_,sizes:()=>gS,spacing:()=>K_,svg:()=>aS,svgData:()=>cS,templates:()=>lS,theme:()=>Z_,timing:()=>rS,typography:()=>La,unit:()=>B_,vars:()=>hS});var Ge={"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 B_={default:"em"};var V_={browserDefault:16,base:16,type:"font-size",ratio:Ge["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},La=V_;var U_={};var z_={},W_={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},H_={};var G_={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var q_={base:La.base,type:"spacing",ratio:Ge.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},K_=q_;var Y_={},X_={};var Z_={};var J_={};var Q_={},tS={};var eS={default:150,base:150,type:"timing",ratio:Ge["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},rS=eS;var nS={};var oS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},sS={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 iS={};var aS={},cS={};var lS={};var fS={},uS=fS;var pS={};var dS={},hS={},gS={};var Jd={},Qd={},hs=ds,gs={},Ma=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in hs){let e=t.toLowerCase();gs[e]=hs[t];let r=Ma(e);r!==e&&(gs[r]=hs[t]),e!==t&&(gs[t]=hs[t])}var Na={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Jd,cssMediaVars:Qd,CSS_VARS:Jd,CSS_MEDIA_VARS:Qd,_scratchConfig:!0,...gs},th=Q(Na),_e={active:"0",0:Na},ZE=t=>(vt(t)&&(_e.active=t),_e[t||_e.active]),vn=[],ft=t=>{t&&t._scratchConfig&&vn.push(t)},st=()=>{vn.pop()},E=t=>vn.length?vn[vn.length-1]:_e[t||_e.active]||Na,eh=t=>{if(_(t))return _e.active="1",_e[1]=G(t,Q(th)),t},mS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],yS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],bS=t=>{for(let e of yS){let r;for(let n of e){let o=t[n];_(o)&&(r=r?G(o,r):o)}if(r)for(let n of e)_(t[n])&&(t[n]=r)}},rh=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:E(),o=Q(!r&&n&&n._scratchConfig?n:th);for(let i of mS)delete o[i];let s=G(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,bS(s),t&&(_e[t]=s),s};var Se={"-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"},ja=(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;let c=nh.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},qe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},nh=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ba=(t,e)=>{let{base:r,type:n,unit:o}=e,s=nh.has(o)?"rem":o,i=(Gr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=Se[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Se[t+1],p=Math.abs(t),u=Math.pow(sh,2*p),d=Se[p];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${u.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},oh=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Va=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ua=(t,e)=>Va(t,e).map(r=>r/t),za=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[p,u,d]=Va(o,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,w=oh(g+1,f,i,e),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:w,index:b};ja(x,e)})},sh=1.618,xS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(sh,2*n);return Math.max(o,s)},Ft=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,p=Se[f],u=xS(f,r,n),d=~~(u/r*100)/100,h=c+p,g=Ba(f,t),m={key:p,variable:h,value:u,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};ja(m,t),s&&za(m,t)}return t},_S=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:Se[e],a=S(e)?Object.entries(Se).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Ba(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return ja(g,c),s&&za(g,c),c},Wa=(t="A",e)=>{let r=E(),{unit:n}=r;if(S(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(qr.some(x=>t.includes(x))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${e.varPrefix?e.varPrefix+"-":""}${as(e.type.replace(".","-"))}-`,d=t.toUpperCase(),h=d.slice(0,1)==="-"?"-":"",g=h?d.slice(1):d,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${u}${x}${m})`:x;if(g.includes("+")){let[x,v]=g.split("+"),A=`${y(x)} + ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}else if(g.includes("*")){let[x,v]=g.split("*"),A=`${y(x)} * ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}else if(g.includes("-")){let[x,v]=g.split("-"),A=`${y(x)} - ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}let b=r.sizes;if(b){let x=b[t]||b[t.toLowerCase()];if(x!==void 0)return h?`calc(${x} * -1)`:x}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${u}${g}${m})`;return h?`calc(${x} * -1)`:x}let w=o?o[g]:null;return w?s==="ms"||s==="s"?h+w.val+s:h+w.scaling+s:console.warn("can't find",o,g)},ih=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s*[+\-*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Wa(i,e)}).join("")},we=(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=qe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=ih(t,r):t=Wa(t,r),{[e]:n?`${n}(${t})`:t}},ah=(t,e)=>Se[t-e],Ha=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=ah(e,o);return r[s]})};P();var SS=(t,e)=>{let r=E(),{cssVars:n}=r;N(t.value)||(n[t.var]=t.value)},Ga=(t,e,r)=>{let n=E(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let p=`${f}-ratio`;t[p]=a;let[u,d,h]=Ua(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},ch=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ke=(t,e={})=>{let r=E(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=ch.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Ga(s,t,e);for(let p in l){let u=l[p],d=(t.type===o.type?l[p].val:f[p])+a;if(!c){s[u.variable+"_default"]=d,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=d:(s[u.variable+"_default"]=d,s[u.variable]=`var(${u.variable+"_default"})`)}},mr=(t,e,r={})=>{let n=E(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=ch.has(l)?"rem":l,{mediaRegenerate:p}=t,{sequence:u,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!p){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Ga(g,c,r);let m=t.unit||o.default;if(f!==m&&u)for(let y in u){let b=u[y],w=d[y]+f;g[b.variable+"_default"]=w,g[b.variable]=w}return}for(let g in u){let m=u[g],y=(Gr(f)?d[g]:u[g].val)+f;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};P();var fh=cr(),ms=t=>{let e=E(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},wS=t=>{let e=t&&(t.default||t);if(!S(e))return fh&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},kS=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},lh=new Set,qa=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return fh&&!lh.has(t)&&(lh.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=wS(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=kS(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=AS(l),l},vS="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",CS=new RegExp(`<(${vS})\\b([^>]*?)\\s*/>`,"g"),AS=t=>t.replace(CS,"<$1$2></$1>");var _s={};F(_s,{appendSVGSprite:()=>uc,appendSvgIconsSprite:()=>dc,applyDocument:()=>cc,applyHeadings:()=>gh,applyReset:()=>hc,applySpacingSequence:()=>oc,applyTimingSequence:()=>ac,applyTypographySequence:()=>ec,checkIfBoxSize:()=>nc,getColor:()=>tt,getFontFamily:()=>tc,getFontSizeByKey:()=>rc,getMediaColor:()=>bt,getMediaTheme:()=>Qt,getShadow:()=>ic,getSpacingBasedOnRatio:()=>fe,getSpacingByKey:()=>ht,getTheme:()=>Xa,getTimingByKey:()=>Ut,getTimingFunction:()=>te,runThroughMedia:()=>hh,setColor:()=>br,setFont:()=>Qa,setFontFamily:()=>bs,setGradient:()=>xr,setMediaTheme:()=>Ja,setSVG:()=>xs,setShadow:()=>_r,setSvgIcon:()=>pc,setTheme:()=>Za,splitSpacedValue:()=>sc});P();var tt=(t,e,r)=>{let n=r||E();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let p=He(t);if(!p){let{color:u,gradient:d}=n,h=d[t]||u[t];return h?n.useVariable?`var(${h.var})`:h.value:t}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;o=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=hr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`):n.useVariable?`var(${l.var})`:l.value},bt=(t,e,r)=>{let n=r||E();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o;if(T(t))o=t[0];else{let l=He(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;o=l.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=_(a);if(c&&a.value)return tt(t,`@${e}`,r);if(c){if(n.useVariable&&a.var)return`var(${a.var})`;if(e)return tt(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=n.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=tt(t,f,r)}return l}}else return n.verbose&&console.warn("Can't find color",t),t},br=(t,e,r)=>{let n=E();if(S(t)&&ot(t)){let g=t.slice(2);if(t=tt(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(S(y)||T(y)||_(y))&&(n.color[m[0]]=br(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,w=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=hr(b,x)),t=`rgba(${b}, ${w})`}else{let b=m[2],w=m[1]!==void 0?m[1]:"1";if(b)try{let x=be(m[0]);x&&x.length>=3?t=`rgba(${hr(x.slice(0,3).join(", "),b)}, ${w})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),_(t)){let g={};for(let m in t)g[m]=br(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,w={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let v=x.slice(1),A=g[x],R=A&&(A.value||A);!R||typeof R!="string"||(w[v]=R,(v==="light"||b===void 0)&&(b=R))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in w){let v=`[data-theme="${x}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][y]=w[x],x==="light"||x==="dark"){let A=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[A]||(n.cssMediaVars[A]={}),n.cssMediaVars[A][y]=w[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(S(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(S(i)&&!i.includes("(")&&!i.startsWith("#")){let g=He(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||_(m))&&(n.color[g.name]=br(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=hr(b,g.tone));let w=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${w})`}}}let a=be(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${u})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:u,value:h}},xr=(t,e,r)=>{let n=E();if(S(t)&&ot(t)&&(t=tt(t.slice(2))),T(t))return{"@light":xr(t[0],e,"light"),"@dark":xr(t[0],e,"dark")};if(_(t)){let i={};for(let a in t)i[a]=xr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};P();var ES=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),uh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],TS=t=>{for(let e=0;e<uh.length;e++)if(t.includes(uh[e]))return!0;return!1},ys=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?tt(t[a]):t[a]}),e},Cn=t=>(t.value||(t.value=ys(t)),t.value),Xa=(t,e)=>{let r=E();if(r.useVariable)return Qt(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Cn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Cn(a[s]);if(i&&i[s])return Cn(i[s]);if(c&&c[s])return Cn(c[s])}else if(_(t))return ys(t)},OS=(t,e,r)=>{if(_(e))t.variants.inverse.value=ys(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},RS=(t,e,r,n)=>{let o=Xa(r);n[`&:${e}`]=o,_(r)&&!r.value&&(r.value=o)},PS=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return RS(t,o,s,e),t}),t):void 0},IS=(t,e,r,n)=>{let o=Xa(r);n[`@media (prefers-color-scheme: ${e})`]=o,_(r)&&!r.value&&(r.value=o)},$S=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&IS(t,o,s,e),o==="inverse"&&OS(t,s,e),t}),t):void 0},FS=(t,e)=>{let r=E(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return S(i)?n[s]=r.theme[i]:Cn(n[s]),t}),t):void 0},Za=(t,e)=>{let r=E();if(r.useVariable)return Ja(t,e);let{state:n,media:o,helpers:s}=t,i=ys(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return PS(t,i),$S(t,i),FS(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var Ka=(t,e,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&TS(l))for(let p in t){if(c.has(p))continue;let u=t[p]?.[l];if(u===void 0)continue;let d=tt(u,`@${p}`);d!==void 0&&S(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!ES.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(t).some(u=>N(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Ka(d,`${e}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Ka(d,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=tt(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let w=`[data-theme="${m}"]`;if(o[w]||(o[w]={}),o[w][d]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ja=(t,e,r,n)=>{let o=E(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&N(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=Ka(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=Ja(f,e,c,n||p)}else if(!a){let p=tt(f,n),u=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=p),i[c]=`var(${g})`):i[c]=p,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&&ot(t)){let l=o.theme[t.slice(2)];return Qt(l,n)}return i},Ya=t=>{let e=E(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Ya(t[n]):o==="."&&(r[`&${n}`]=Ya(t[n]))}else r[n]=t[n]}return r},dh=(t,e)=>{let r=e.shift();return t[r]?dh(t[r],e):t},ph=(t,e)=>T(e)?dh(t,e):S(e)&&t[e]?t[e]:t;var Qt=(t,e)=>{let r=E();if(S(t)&&ot(t)&&(t=Qt(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=ph(s,o):s&&e&&(s=ph(s,e)),Ya(s)};P();P();var Qa=(t,e)=>{let r=E(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Jt(t.url,r.files)||t.url;us(s)?o=ps(s):o=gr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=kn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Jt(i,r.files)||i):Jt(t.url,r.files)||t.url;o=gr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},tc=(t,e)=>{let r=E(),{fontFamily:n}=r;return wn(e||n,t)},bs=(t,e)=>{let r=E(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),_(s)&&(s=pr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};P();var hh=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:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g}=t;et(i,{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,w=n[c],x="@media "+(w==="print"?`${w}`:`screen and ${w}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){et(i,{sequence:{},scales:{},vars:{}}),Ft(i),mr(t,o);continue}et(i,{sequence:{},scales:{},templates:{},vars:{}}),Ft(i),mr(t,o)}},gh=t=>{let e=E();if(t.h1Matches){let r=t.unit,n=Ha(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}}}},ec=()=>{let t=E(),{typography:e}=t;Ft(e),gh(e),Ke(e),hh(e)},rc=t=>{let e=E(),{typography:r}=e;return we(t,"fontSize",r)};P();P();var DS=t=>{let r=E().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Ft(o),o},LS=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:l,unit:f}=t;et(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Ft(r),mr(t,e)}},nc=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},oc=()=>{let t=E(),{spacing:e}=t;Ft(e),Ke(e),LS(e)},MS=t=>{let e=E(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Ft(t)},ht=(t,e="padding",r,n)=>{let o=MS(r);if(S(t)&&!n&&t.includes("(")){let i=qe(t);n=i[0],t=i[1]}let s=n?[t]:pr(t);if(T(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>we(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return we(t,e,o,n)}},fe=(t,e,r,n)=>{let o=E(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&i.includes("(")){let a=qe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=DS(t);return ht(i,e,a,n)}return ht(i,e,s,n)},sc=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=qr.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(" ")};P();var _r=(t,e,r,n)=>{let o=E();if(T(t))return{"@light":_r(t[0],e,"light"),"@dark":_r(t[1],e,"dark")};if(_(t)){let a={};for(let c in t)a[c]=_r(t[c],e,c.startsWith("@")?c.slice(1):c);return a}S(t)&&!le.test(t)&&(t=dr(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=tt(c);if(xe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=ht(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},ic=(t,e)=>{let r=E();if(e||(e=r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let[n]=T(t)?t:t.split(" "),s=r.shadow[n],i=_(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 l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};P();var ac=()=>{let t=E(),{timing:e}=t;Ft(e),Ke(e)},te=t=>{let e=E(),{timing:r}=e;return r[t]||r[is(t)]||t},Ut=(t,e="timing")=>{let r=E(),{timing:n}=r;return we(t,e,n)};P();var cc=()=>{let t=E(),{document:e,fontFamily:r,theme:n,typography:o}=t;return et(e,{theme:n.document,fontFamily:wn(r),fontSize:o.base,lineHeight:o.lineHeight})};P();var fc={document:Y},xs=(t,e)=>{let r=E();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?qa(e,t):t},uc=(t,e=fc)=>{let r=E(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];yh(n,e)},pc=(t,e)=>{let r=E();return r.useIconSprite&&!r.semanticIcons?.[e]?xs(t,e):t},dc=(t,e=fc)=>{let r=E(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];yh(n,e)},lc=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let r=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},NS=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},mh=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},yh=(t,e=fc)=>{let r=E(),n=e.document||Y;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),ms(t);let o=n.querySelector("#svgSprite"),s=ms(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=NS(n,s);if(o)if(a)mh(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=lc(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=lc(n);c&&c.nodeType&&(mh(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=lc(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};P();var hc=(t={})=>{let e=E(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?Qt("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Qt("document"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let p=f.unit,u=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=u/d+p}}return G(et(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};P();var jS=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),BS=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),VS=t=>jS.has(t),ke=t=>{let e=t+"";if(le.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(ot(o))return`var(${o})`;if(VS(o)||/^\d/.test(o)||o==="0")return o;let s=tt(o);if(xe(s))return s;let i=ht(o,"border");return i&&i.border?i.border:o}).join(" ")},bh=t=>le.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=tt(e);return xe(r)?r:e}).join(" "),xh=(t,e)=>ic(t,e),gc=(t,e)=>le.test(t)?t:dr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=tt(n);if(xe(o)){let i=bt(n,e);return _(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=ht(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),mc=(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=dr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||BS.has(f)||f==="transparent"||le.test(f))return f;let p=tt(f);return xe(p)?p:f}).join(" ")));return n+a.join(", ")+s},_h=(t,e)=>{let r=E();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?mc(n,e):r.gradient[t]?{backgroundImage:bt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!He(n)?`url(${n})`:n).join(" ")},Sh=t=>S(t)&&t.split(" ").map(e=>ht(e,"gap").gap).join(" "),US=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?Ut(r).timing||r:te(r)?te(r):r).join(" "):t},yc=(t,e,r)=>{if(S(t))return t.split(",").map(n=>Ut(n).timing||n).join(",")},wh=t=>{let e=t.split(",");if(e.length)return e.map(US).join(",")};function it(t,e,r={},n={}){let o=X.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(o.includes("(")){let c=qe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=nc(t);!i&&a&&!n.ratio&&(o=sc(o))}return n.ratio?fe(r,t,o,s):ht(o,t,void 0,s)}var j=(t,e=null,r)=>it(t,e,r,{ratio:!0}),bc=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>fe(e,r,n)[r]).join(" ")}};P();var zS=(t,e)=>{let r=E(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Ot=t=>t,kh={color:br,gradient:xr,font:Qa,fontFamily:bs,fontfamily:bs,theme:Za,icons:pc,semanticIcons:Ot,semanticicons:Ot,svg:xs,svgData:Ot,typography:Ot,shadow:_r,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:zS,sizes:Ot},WS=(t,e,r)=>{let n=E(),o=Ma(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=kh[o]||kh[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},HS=(t,e)=>{let r=E(),n=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=_(e[s])||T(e[s])?1:0,c=_(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return WS(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},vh=(t,e)=>{let r=e||E();r.globalTheme=t;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=p=>{a.setAttribute("data-theme",p.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let p=0;p<f.length;p++)if(f[p].selectorText===a){for(let u in r.cssVars)f[p].style.setProperty(u,r.cssVars[u]);return r}}catch{}}return r},GS={},An=(t,e=GS)=>{let r=e.config||E(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=eh(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),u!==void 0&&(r.useDocumentTheme=u),f!==void 0&&(r.globalTheme=f),p!==void 0&&(r.themeRoot=p),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let w=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=w&&w.defaultView||(typeof window<"u"?window:null),v=w&&(r.themeRoot||w.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let L=J=>{v.setAttribute("data-theme",J.matches?"dark":"light")},V=x.matchMedia("(prefers-color-scheme: dark)");if(L(V),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=L;try{V.addEventListener("change",L)}catch{V.addListener(L)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let A=Object.keys(y),R=new Set(A);if(A.forEach(O=>{let L=O.toLowerCase();L!==O&&R.has(L)&&G(y[L],y[O])}),A.map(O=>{let L=O.toLowerCase();if(!(L!==O&&R.has(L)))return HS(O,y[O])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{ec()}catch(O){r.verbose&&console.warn("Error applying typography sequence",O)}if(y.spacing)try{oc()}catch(O){r.verbose&&console.warn("Error applying spacing sequence",O)}if(y.timing)try{ac()}catch(O){r.verbose&&console.warn("Error applying timing sequence",O)}cc();let W=hc();return W&&(r.reset=W),r};var Sr=new Map,qS=null,_c=null,KS=null;function Sc(t){t.batchAtomicCss&&(_c=t.batchAtomicCss),t.compoundCssClass&&(KS=t.compoundCssClass)}var YS=new Set;function XS(t){try{let e=E();e&&(e.document=t)}catch{}t&&YS.add(t)}function Th(){try{let t=E();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var ZS={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function Ye(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Ss(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function JS(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ss(e)}function Ch(t,e,r){let n=(r?r+"":"")+t+":"+e,o=Sr.get(n),s=o?null:Ye(t);if(!o){let a=ZS[t]||Ss(t),c=JS(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,Sr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ye(t)}:${e}}`;return Dt(i),o}var Ah=new WeakMap;function Dt(t,e){let r=Oh(e);if(!r)return;let n=Ah.get(r);if(n||(n=new Set,Ah.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var Eh=new WeakMap;function Oh(t){let e=t||Th();if(!e||!e.head)return null;let r=Eh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector("style[data-smbls]");n||(n=e.createElement("style"),n.setAttribute("data-smbls",""),e.head.appendChild(n));let o=n.sheet;return Eh.set(e,o),qS=o,o}var QS=8;function Xe(t,e,r){if(!t||typeof t!="object")return"";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):_c?(n||(n=[]),n.push(c,String(l)),o++):s.push(Ch(c,String(l),r)))}if(n&&o>=QS){let c=n.join("\0"),l=_c(c),f=l.indexOf("\0"),p=l.substring(0,f),u=l.substring(f+1);if(u){let d=u.split(`
35
+ }`,kn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(p=>Jt(p,r)||p):Jt(s,r)||s;return Fa(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),j_=t=>Object.keys(t).map(r=>kn(r,t[r].value)),Zd=(t,e,r)=>{if(e&&e.isVariable){let s=Jt(e.url,r)||e.url;return us(s)?ps(s):gr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return kn(t,e,r).map(Xd);let o=Array.isArray(e.url)?e.url.map(s=>Jt(s,r)||s):Jt(e.url,r)||e.url;return gr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Da=(t,e)=>Object.keys(t).map(n=>Zd(n,t[n].value,e));P();P();P();var ds={};F(ds,{animation:()=>iS,breakpoints:()=>oS,class:()=>pS,color:()=>Y_,devices:()=>sS,document:()=>nS,font:()=>U_,fontFace:()=>H_,fontFamily:()=>z_,fontFamilyTypes:()=>W_,gradient:()=>X_,grid:()=>uS,icons:()=>Q_,media:()=>G_,reset:()=>dS,semanticIcons:()=>tS,sequence:()=>Ge,shadow:()=>J_,sizes:()=>gS,spacing:()=>K_,svg:()=>aS,svgData:()=>cS,templates:()=>lS,theme:()=>Z_,timing:()=>rS,typography:()=>La,unit:()=>B_,vars:()=>hS});var Ge={"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 B_={default:"em"};var V_={browserDefault:16,base:16,type:"font-size",ratio:Ge["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},La=V_;var U_={};var z_={},W_={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},H_={};var G_={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var q_={base:La.base,type:"spacing",ratio:Ge.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},K_=q_;var Y_={},X_={};var Z_={};var J_={};var Q_={},tS={};var eS={default:150,base:150,type:"timing",ratio:Ge["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},rS=eS;var nS={};var oS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},sS={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 iS={};var aS={},cS={};var lS={};var fS={},uS=fS;var pS={};var dS={},hS={},gS={};var Jd={},Qd={},hs=ds,gs={},Ma=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in hs){let e=t.toLowerCase();gs[e]=hs[t];let r=Ma(e);r!==e&&(gs[r]=hs[t]),e!==t&&(gs[t]=hs[t])}var Na={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Jd,cssMediaVars:Qd,CSS_VARS:Jd,CSS_MEDIA_VARS:Qd,_scratchConfig:!0,...gs},th=Q(Na),_e={active:"0",0:Na},ZE=t=>(vt(t)&&(_e.active=t),_e[t||_e.active]),vn=[],ft=t=>{t&&t._scratchConfig&&vn.push(t)},st=()=>{vn.pop()},E=t=>vn.length?vn[vn.length-1]:_e[t||_e.active]||Na,eh=t=>{if(_(t))return _e.active="1",_e[1]=G(t,Q(th)),t},mS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],yS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],bS=t=>{for(let e of yS){let r;for(let n of e){let o=t[n];_(o)&&(r=r?G(o,r):o)}if(r)for(let n of e)_(t[n])&&(t[n]=r)}},rh=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:E(),o=Q(!r&&n&&n._scratchConfig?n:th);for(let i of mS)delete o[i];let s=G(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,bS(s),t&&(_e[t]=s),s};var Se={"-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"},ja=(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;let c=nh.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},qe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},nh=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ba=(t,e)=>{let{base:r,type:n,unit:o}=e,s=nh.has(o)?"rem":o,i=(Gr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=Se[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Se[t+1],p=Math.abs(t),u=Math.pow(sh,2*p),d=Se[p];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${u.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},oh=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Va=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ua=(t,e)=>Va(t,e).map(r=>r/t),za=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[p,u,d]=Va(o,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,w=oh(g+1,f,i,e),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:w,index:b};ja(x,e)})},sh=1.618,xS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(sh,2*n);return Math.max(o,s)},Ft=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,p=Se[f],u=xS(f,r,n),d=~~(u/r*100)/100,h=c+p,g=Ba(f,t),m={key:p,variable:h,value:u,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};ja(m,t),s&&za(m,t)}return t},_S=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:Se[e],a=S(e)?Object.entries(Se).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Ba(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return ja(g,c),s&&za(g,c),c},Wa=(t="A",e)=>{let r=E(),{unit:n}=r;if(S(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(qr.some(x=>t.includes(x))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${e.varPrefix?e.varPrefix+"-":""}${as(e.type.replace(".","-"))}-`,d=t.toUpperCase(),h=d.slice(0,1)==="-"?"-":"",g=h?d.slice(1):d,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${u}${x}${m})`:x;if(g.includes("+")){let[x,v]=g.split("+"),A=`${y(x)} + ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}else if(g.includes("*")){let[x,v]=g.split("*"),A=`${y(x)} * ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}else if(g.includes("-")){let[x,v]=g.split("-"),A=`${y(x)} - ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}let b=r.sizes;if(b){let x=b[t]||b[t.toLowerCase()];if(x!==void 0)return h?`calc(${x} * -1)`:x}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${u}${g}${m})`;return h?`calc(${x} * -1)`:x}let w=o?o[g]:null;return w?s==="ms"||s==="s"?h+w.val+s:h+w.scaling+s:console.warn("can't find",o,g)},ih=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s*[+\-*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Wa(i,e)}).join("")},we=(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=qe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=ih(t,r):t=Wa(t,r),{[e]:n?`${n}(${t})`:t}},ah=(t,e)=>Se[t-e],Ha=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=ah(e,o);return r[s]})};P();var SS=(t,e)=>{let r=E(),{cssVars:n}=r;N(t.value)||(n[t.var]=t.value)},Ga=(t,e,r)=>{let n=E(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let p=`${f}-ratio`;t[p]=a;let[u,d,h]=Ua(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},ch=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ke=(t,e={})=>{let r=E(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=ch.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Ga(s,t,e);for(let p in l){let u=l[p],d=(t.type===o.type?l[p].val:f[p])+a;if(!c){s[u.variable+"_default"]=d,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=d:(s[u.variable+"_default"]=d,s[u.variable]=`var(${u.variable+"_default"})`)}},mr=(t,e,r={})=>{let n=E(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=ch.has(l)?"rem":l,{mediaRegenerate:p}=t,{sequence:u,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!p){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Ga(g,c,r);let m=t.unit||o.default;if(f!==m&&u)for(let y in u){let b=u[y],w=d[y]+f;g[b.variable+"_default"]=w,g[b.variable]=w}return}for(let g in u){let m=u[g],y=(Gr(f)?d[g]:u[g].val)+f;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};P();var fh=cr(),ms=t=>{let e=E(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},wS=t=>{let e=t&&(t.default||t);if(!S(e))return fh&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},kS=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},lh=new Set,qa=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return fh&&!lh.has(t)&&(lh.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=wS(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=kS(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=AS(l),l},vS="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",CS=new RegExp(`<(${vS})\\b([^>]*?)\\s*/>`,"g"),AS=t=>t.replace(CS,"<$1$2></$1>");var _s={};F(_s,{appendSVGSprite:()=>uc,appendSvgIconsSprite:()=>dc,applyDocument:()=>cc,applyHeadings:()=>gh,applyReset:()=>hc,applySpacingSequence:()=>oc,applyTimingSequence:()=>ac,applyTypographySequence:()=>ec,checkIfBoxSize:()=>nc,getColor:()=>tt,getFontFamily:()=>tc,getFontSizeByKey:()=>rc,getMediaColor:()=>bt,getMediaTheme:()=>Qt,getShadow:()=>ic,getSpacingBasedOnRatio:()=>fe,getSpacingByKey:()=>ht,getTheme:()=>Xa,getTimingByKey:()=>Ut,getTimingFunction:()=>te,runThroughMedia:()=>hh,setColor:()=>br,setFont:()=>Qa,setFontFamily:()=>bs,setGradient:()=>xr,setMediaTheme:()=>Ja,setSVG:()=>xs,setShadow:()=>_r,setSvgIcon:()=>pc,setTheme:()=>Za,splitSpacedValue:()=>sc});P();var tt=(t,e,r)=>{let n=r||E();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let p=He(t);if(!p){let{color:u,gradient:d}=n,h=d[t]||u[t];return h?(e&&h[e]&&(h=h[e]),n.useVariable?`var(${h.var})`:h.value):t}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;o=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;if(!f){let p=n.useVariable?`var(${l.var})`:l.value;if(s&&p){let u=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${p} ${u}%, transparent)`}return p}return i&&!l[i]&&(f=hr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`},bt=(t,e,r)=>{let n=r||E();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let p=He(t);if(p){if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;o=p.name,s=p.alpha,i=p.tone}else o=t}let{color:a,gradient:c}=n,l=a[o]||c[o],f=_(l);if(f&&l.value)return tt(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?tt(t,null,r):`var(${l.var})`;if(e)return tt(t,`@${e}`,r);{let p={};for(let u in l){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let h="@media "+(d==="print"?`${d}`:`screen and ${d}`);p[h]=tt(t,u,r)}return p}}else return n.verbose&&console.warn("Can't find color",t),t},br=(t,e,r)=>{let n=E();if(S(t)&&ot(t)){let g=t.slice(2);if(t=tt(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(S(y)||T(y)||_(y))&&(n.color[m[0]]=br(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,w=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=hr(b,x)),t=`rgba(${b}, ${w})`}else{let b=m[2],w=m[1]!==void 0?m[1]:"1";if(b)try{let x=be(m[0]);x&&x.length>=3?t=`rgba(${hr(x.slice(0,3).join(", "),b)}, ${w})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),_(t)){let g={};for(let m in t)g[m]=br(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,w={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let v=x.slice(1),A=g[x],R=A&&(A.value||A);!R||typeof R!="string"||(w[v]=R,(v==="light"||b===void 0)&&(b=R))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in w){let v=`[data-theme="${x}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][y]=w[x],x==="light"||x==="dark"){let A=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[A]||(n.cssMediaVars[A]={}),n.cssMediaVars[A][y]=w[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(S(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(S(i)&&!i.includes("(")&&!i.startsWith("#")){let g=He(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||_(m))&&(n.color[g.name]=br(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=hr(b,g.tone));let w=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${w})`}}}let a=be(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${u})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:u,value:h}},xr=(t,e,r)=>{let n=E();if(S(t)&&ot(t)&&(t=tt(t.slice(2))),T(t))return{"@light":xr(t[0],e,"light"),"@dark":xr(t[0],e,"dark")};if(_(t)){let i={};for(let a in t)i[a]=xr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};P();var ES=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),uh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],TS=t=>{for(let e=0;e<uh.length;e++)if(t.includes(uh[e]))return!0;return!1},ys=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?tt(t[a]):t[a]}),e},Cn=t=>(t.value||(t.value=ys(t)),t.value),Xa=(t,e)=>{let r=E();if(r.useVariable)return Qt(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Cn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Cn(a[s]);if(i&&i[s])return Cn(i[s]);if(c&&c[s])return Cn(c[s])}else if(_(t))return ys(t)},OS=(t,e,r)=>{if(_(e))t.variants.inverse.value=ys(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},RS=(t,e,r,n)=>{let o=Xa(r);n[`&:${e}`]=o,_(r)&&!r.value&&(r.value=o)},PS=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return RS(t,o,s,e),t}),t):void 0},IS=(t,e,r,n)=>{let o=Xa(r);n[`@media (prefers-color-scheme: ${e})`]=o,_(r)&&!r.value&&(r.value=o)},$S=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&IS(t,o,s,e),o==="inverse"&&OS(t,s,e),t}),t):void 0},FS=(t,e)=>{let r=E(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return S(i)?n[s]=r.theme[i]:Cn(n[s]),t}),t):void 0},Za=(t,e)=>{let r=E();if(r.useVariable)return Ja(t,e);let{state:n,media:o,helpers:s}=t,i=ys(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return PS(t,i),$S(t,i),FS(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var Ka=(t,e,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&TS(l))for(let p in t){if(c.has(p))continue;let u=t[p]?.[l];if(u===void 0)continue;let d=tt(u,`@${p}`);d!==void 0&&S(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!ES.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(t).some(u=>N(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Ka(d,`${e}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Ka(d,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=tt(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let w=`[data-theme="${m}"]`;if(o[w]||(o[w]={}),o[w][d]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ja=(t,e,r,n)=>{let o=E(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&N(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=Ka(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=Ja(f,e,c,n||p)}else if(!a){let p=tt(f,n),u=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=p),i[c]=`var(${g})`):i[c]=p,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&&ot(t)){let l=o.theme[t.slice(2)];return Qt(l,n)}return i},Ya=t=>{let e=E(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Ya(t[n]):o==="."&&(r[`&${n}`]=Ya(t[n]))}else r[n]=t[n]}return r},dh=(t,e)=>{let r=e.shift();return t[r]?dh(t[r],e):t},ph=(t,e)=>T(e)?dh(t,e):S(e)&&t[e]?t[e]:t;var Qt=(t,e)=>{let r=E();if(S(t)&&ot(t)&&(t=Qt(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=ph(s,o):s&&e&&(s=ph(s,e)),Ya(s)};P();P();var Qa=(t,e)=>{let r=E(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Jt(t.url,r.files)||t.url;us(s)?o=ps(s):o=gr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=kn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Jt(i,r.files)||i):Jt(t.url,r.files)||t.url;o=gr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},tc=(t,e)=>{let r=E(),{fontFamily:n}=r;return wn(e||n,t)},bs=(t,e)=>{let r=E(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),_(s)&&(s=pr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};P();var hh=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:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g}=t;et(i,{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,w=n[c],x="@media "+(w==="print"?`${w}`:`screen and ${w}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){et(i,{sequence:{},scales:{},vars:{}}),Ft(i),mr(t,o);continue}et(i,{sequence:{},scales:{},templates:{},vars:{}}),Ft(i),mr(t,o)}},gh=t=>{let e=E();if(t.h1Matches){let r=t.unit,n=Ha(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}}}},ec=()=>{let t=E(),{typography:e}=t;Ft(e),gh(e),Ke(e),hh(e)},rc=t=>{let e=E(),{typography:r}=e;return we(t,"fontSize",r)};P();P();var DS=t=>{let r=E().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Ft(o),o},LS=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:l,unit:f}=t;et(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Ft(r),mr(t,e)}},nc=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},oc=()=>{let t=E(),{spacing:e}=t;Ft(e),Ke(e),LS(e)},MS=t=>{let e=E(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Ft(t)},ht=(t,e="padding",r,n)=>{let o=MS(r);if(S(t)&&!n&&t.includes("(")){let i=qe(t);n=i[0],t=i[1]}let s=n?[t]:pr(t);if(T(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>we(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return we(t,e,o,n)}},fe=(t,e,r,n)=>{let o=E(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&i.includes("(")){let a=qe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=DS(t);return ht(i,e,a,n)}return ht(i,e,s,n)},sc=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=qr.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(" ")};P();var _r=(t,e,r,n)=>{let o=E();if(T(t))return{"@light":_r(t[0],e,"light"),"@dark":_r(t[1],e,"dark")};if(_(t)){let a={};for(let c in t)a[c]=_r(t[c],e,c.startsWith("@")?c.slice(1):c);return a}S(t)&&!le.test(t)&&(t=dr(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=tt(c);if(xe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=ht(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},ic=(t,e)=>{let r=E();if(e||(e=r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let[n]=T(t)?t:t.split(" "),s=r.shadow[n],i=_(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 l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};P();var ac=()=>{let t=E(),{timing:e}=t;Ft(e),Ke(e)},te=t=>{let e=E(),{timing:r}=e;return r[t]||r[is(t)]||t},Ut=(t,e="timing")=>{let r=E(),{timing:n}=r;return we(t,e,n)};P();var cc=()=>{let t=E(),{document:e,fontFamily:r,theme:n,typography:o}=t;return et(e,{theme:n.document,fontFamily:wn(r),fontSize:o.base,lineHeight:o.lineHeight})};P();var fc={document:Y},xs=(t,e)=>{let r=E();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?qa(e,t):t},uc=(t,e=fc)=>{let r=E(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];yh(n,e)},pc=(t,e)=>{let r=E();return r.useIconSprite&&!r.semanticIcons?.[e]?xs(t,e):t},dc=(t,e=fc)=>{let r=E(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];yh(n,e)},lc=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let r=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},NS=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},mh=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},yh=(t,e=fc)=>{let r=E(),n=e.document||Y;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),ms(t);let o=n.querySelector("#svgSprite"),s=ms(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=NS(n,s);if(o)if(a)mh(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=lc(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=lc(n);c&&c.nodeType&&(mh(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=lc(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};P();var hc=(t={})=>{let e=E(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?Qt("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Qt("document"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let p=f.unit,u=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=u/d+p}}return G(et(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};P();var jS=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),BS=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),VS=t=>jS.has(t),ke=t=>{let e=t+"";if(le.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(ot(o))return`var(${o})`;if(VS(o)||/^\d/.test(o)||o==="0")return o;let s=tt(o);if(xe(s))return s;let i=ht(o,"border");return i&&i.border?i.border:o}).join(" ")},bh=t=>le.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=tt(e);return xe(r)?r:e}).join(" "),xh=(t,e)=>ic(t,e),gc=(t,e)=>le.test(t)?t:dr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=tt(n);if(xe(o)){let i=bt(n,e);return _(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=ht(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),mc=(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=dr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||BS.has(f)||f==="transparent"||le.test(f))return f;let p=tt(f);return xe(p)?p:f}).join(" ")));return n+a.join(", ")+s},_h=(t,e)=>{let r=E();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?mc(n,e):r.gradient[t]?{backgroundImage:bt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!He(n)?`url(${n})`:n).join(" ")},Sh=t=>S(t)&&t.split(" ").map(e=>ht(e,"gap").gap).join(" "),US=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?Ut(r).timing||r:te(r)?te(r):r).join(" "):t},yc=(t,e,r)=>{if(S(t))return t.split(",").map(n=>Ut(n).timing||n).join(",")},wh=t=>{let e=t.split(",");if(e.length)return e.map(US).join(",")};function it(t,e,r={},n={}){let o=X.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(o.includes("(")){let c=qe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=nc(t);!i&&a&&!n.ratio&&(o=sc(o))}return n.ratio?fe(r,t,o,s):ht(o,t,void 0,s)}var j=(t,e=null,r)=>it(t,e,r,{ratio:!0}),bc=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>fe(e,r,n)[r]).join(" ")}};P();var zS=(t,e)=>{let r=E(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Ot=t=>t,kh={color:br,gradient:xr,font:Qa,fontFamily:bs,fontfamily:bs,theme:Za,icons:pc,semanticIcons:Ot,semanticicons:Ot,svg:xs,svgData:Ot,typography:Ot,shadow:_r,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:zS,sizes:Ot},WS=(t,e,r)=>{let n=E(),o=Ma(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=kh[o]||kh[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},HS=(t,e)=>{let r=E(),n=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=_(e[s])||T(e[s])?1:0,c=_(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return WS(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},vh=(t,e)=>{let r=e||E();r.globalTheme=t;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=p=>{a.setAttribute("data-theme",p.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let p=0;p<f.length;p++)if(f[p].selectorText===a){for(let u in r.cssVars)f[p].style.setProperty(u,r.cssVars[u]);return r}}catch{}}return r},GS={},An=(t,e=GS)=>{let r=e.config||E(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=eh(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),u!==void 0&&(r.useDocumentTheme=u),f!==void 0&&(r.globalTheme=f),p!==void 0&&(r.themeRoot=p),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let w=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=w&&w.defaultView||(typeof window<"u"?window:null),v=w&&(r.themeRoot||w.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let L=J=>{v.setAttribute("data-theme",J.matches?"dark":"light")},V=x.matchMedia("(prefers-color-scheme: dark)");if(L(V),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=L;try{V.addEventListener("change",L)}catch{V.addListener(L)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let A=Object.keys(y),R=new Set(A);if(A.forEach(O=>{let L=O.toLowerCase();L!==O&&R.has(L)&&G(y[L],y[O])}),A.map(O=>{let L=O.toLowerCase();if(!(L!==O&&R.has(L)))return HS(O,y[O])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{ec()}catch(O){r.verbose&&console.warn("Error applying typography sequence",O)}if(y.spacing)try{oc()}catch(O){r.verbose&&console.warn("Error applying spacing sequence",O)}if(y.timing)try{ac()}catch(O){r.verbose&&console.warn("Error applying timing sequence",O)}cc();let W=hc();return W&&(r.reset=W),r};var Sr=new Map,qS=null,_c=null,KS=null;function Sc(t){t.batchAtomicCss&&(_c=t.batchAtomicCss),t.compoundCssClass&&(KS=t.compoundCssClass)}var YS=new Set;function XS(t){try{let e=E();e&&(e.document=t)}catch{}t&&YS.add(t)}function Th(){try{let t=E();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var ZS={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function Ye(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Ss(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function JS(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ss(e)}function Ch(t,e,r){let n=(r?r+"":"")+t+":"+e,o=Sr.get(n),s=o?null:Ye(t);if(!o){let a=ZS[t]||Ss(t),c=JS(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,Sr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ye(t)}:${e}}`;return Dt(i),o}var Ah=new WeakMap;function Dt(t,e){let r=Oh(e);if(!r)return;let n=Ah.get(r);if(n||(n=new Set,Ah.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var Eh=new WeakMap;function Oh(t){let e=t||Th();if(!e||!e.head)return null;let r=Eh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector("style[data-smbls]");n||(n=e.createElement("style"),n.setAttribute("data-smbls",""),e.head.appendChild(n));let o=n.sheet;return Eh.set(e,o),qS=o,o}var QS=8;function Xe(t,e,r){if(!t||typeof t!="object")return"";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):_c?(n||(n=[]),n.push(c,String(l)),o++):s.push(Ch(c,String(l),r)))}if(n&&o>=QS){let c=n.join("\0"),l=_c(c),f=l.indexOf("\0"),p=l.substring(0,f),u=l.substring(f+1);if(u){let d=u.split(`
36
36
  `);for(let h=0;h<d.length;h++)d[h]&&Dt(d[h])}s.push(p)}else if(n)for(let c=0;c<n.length;c+=2)s.push(Ch(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(tw(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var xc=new Map;function tw(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=Sr.get(n);if(o){let u=xc.get(o);if(u)for(let d=0;d<u.length;d++)Dt(u[d]);return o}o=r?`_${r}_c${Ss(n)}`:`_c${Ss(n)}`;let s="",i=[],a=u=>typeof u=="string"&&(u.indexOf("{")!==-1||u.indexOf("}")!==-1),c=(u,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...u,g],m);else{if(a(m))continue;h+=`${Ye(g)}:${m};`}}h&&(u.length===0?s+=h:i.push({chain:u,body:h}))};c([],e);let l=u=>{if(!u.length)return`.${o}`;let d=u[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<u.length;h++){let g=u[h].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let u=`${t}{.${o}{${s}}}`;f.push(u),Dt(u)}for(let u of i){let d=l(u.chain),h=`${t}{${d}{${u.body}}}`;f.push(h),Dt(h)}return xc.set(o,f),Sr.set(n,o),o}let p=l([t]);if(s){let u=`${p}{${s}}`;f.push(u),Dt(u)}for(let u of i){let h=`${l([t,...u.chain])}{${u.body}}`;f.push(h),Dt(h)}return xc.set(o,f),Sr.set(n,o),o}function ut(t){if(Oh(),typeof t=="string"){Dt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};e.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of e){let o=t[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Ye(c);a+=`${l}:${i[c]};`}Dt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ye(s);Dt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ye(a);s+=`${l}:${c};`}}if(s&&Dt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let p=u=>{let d=u.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return p(f)-p(l)});for(let l of c)ut({[`${n} ${l}`]:o[l]});for(let l of a)ut({[l]:{[n]:o[l]}})}}}}function ws(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ye(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Dt(`@keyframes ${t}{${r}}`),t}function ew(){return Sr.size}P();var wc="http://www.w3.org/2000/svg",Cs=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),rw=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function ks(t){return rw.has(t)||Cs.has(t)}function As(t){return Cs.has(t)}function wr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&ks(e))return e;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ks(o)&&!n.has(o)?o:"div"}var Rh={};function vs(t,e){let r=e?.context?.document||globalThis.document;if(!r)return null;if(t==="string")return r.createTextNode(e?.text||"");if(t==="fragment")return r.createDocumentFragment();if(As(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===wc)return r.createElementNS(wc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function kr(t){let e=t.tag=wr(t),n=As(e)&&(e==="svg"||t.parent?.node?.namespaceURI===wc)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=Rh[n];if(s||(s=Rh[n]=vs(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?vs(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Rt=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]),Ph={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vr=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),kc=new Set(["load","error","abort","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Ih=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Es=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var vc=new WeakMap,nw={passive:!0},ow={passive:!0,capture:!0},Cc=(t,e)=>Ih.has(t)?e?ow:nw:e||!1;function Fh(t){let e=vc.get(t);return e||(e={handlers:new Map,installed:new Set},vc.set(t,e)),e}function sw(t,e){let r=Fh(e);if(r.installed.has(t))return;r.installed.add(t);let n=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",o=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},Cc(t,n))}function Ac(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Fh(n);sw(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function Ec(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=vc.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function $h(t){return Es.has(t)&&!vr.has(t)}function Ts(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&ft(s);try{let l=r.call(e,c,e,e.state,o);if(l&&typeof l.then=="function"){l.catch(f=>{e.error=f,console.error("[DOMQL] Async event error:",f)}).finally(()=>{s&&st()});return}}catch(l){if(e.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&st()},a=kc.has(t);if(!a&&$h(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ac(t,n,i,c)}else n.addEventListener(t,i,Cc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&$h(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ec(t,n,c)}else n.removeEventListener(t,i,Cc(t,!1))})}function Dh(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function Os(t,e,r){let n=Dh(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Lh(n[i],s);a&&a!==e&&Mh(t,a,r,new Set([e]))}}function Lh(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Mh(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=Dh(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=Lh(o[a],i);c&&Mh(t,c,r,n)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=Nh(t[s],i):t[s]=i}}function Nh(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Nh(o,s):r[n]=s}return r}lr();function Rs(t={},e={}){let r=this,n=r.__ref;if(n){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if($e(()=>{if(t.state&&lt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let o in t.style){let s=t.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let o in t.attr){let s=t.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let o in t.data)r.node.dataset[o]=t.data[o];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let o in t){if(Rt.has(o)||o==="state")continue;let s=t[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&zt(s,r,o,e)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Bt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function Cr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&Cr(o)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function Ps(){Cr(this)}P();P();var iw=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],aw=["none","forwards","backwards","both"],cw=["normal","reverse","alternate","alternate-reverse"],lw=["running","paused"],fw=t=>/^[\d.]+m?s$/.test(t),uw=0,jh=new Map,Tc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(_(t)){let o=JSON.stringify(t),s=jh.get(o);if(s)return s;let i=`smbls-anim-${uw++}`,a=ws(i,t);return jh.set(o,a),a}let n=r&&r[t];return _(n)?ws(t,n):t},pw=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of n)r&&r[p]?o=p:fw(p)?s.push(p):iw.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):cw.includes(p)?c=p:aw.includes(p)?l=p:lw.includes(p)?f=p:o||(o=p);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Bh={animation:(t,e)=>{if(S(t)&&t.includes(" ")){let r=pw(t,e);return{animationName:Tc(r.name||t,e),animationDuration:r.durations[0]||Ut(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Ut(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||te(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:Tc(t,e),animationDuration:Ut(e.animationDuration||"A").timing,animationDelay:Ut(e.animationDelay||"0s").timing,animationTimingFunction:te(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:Tc(t,e)}),animationDuration:t=>({animationDuration:Ut(t).timing}),animationDelay:t=>({animationDelay:Ut(t).timing}),animationTimingFunction:t=>({animationTimingFunction:te(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};P();var Vh={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>gt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("height",e),...it("width",r||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("minWidth",e),...it("maxWidth",r||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("minHeight",e),...it("maxHeight",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...j("inlineSize",e),...j("blockSize",r||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("minInlineSize",e),...it("minBlockSize",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("maxInlineSize",e),...it("maxBlockSize",r||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),padding:(t,e)=>j("padding",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("paddingInlineStart",e),...it("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("paddingBlockStart",e),...it("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("marginInlineStart",e),...it("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...it("marginBlockStart",r),...it("marginBlockEnd",n||r)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),gap:t=>({gap:Sh(t)}),columnGap:(t,e)=>fe(e,"columnGap",t),rowGap:(t,e)=>fe(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!S(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(!S(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>bc(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>bc(t??e.round,e,"borderRadius")};var Uh={fontSize:t=>rc(t)||t,fontFamily:t=>({fontFamily:tc(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var zh={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Wh={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>ht(r,"k").k).join(" ")}},left:t=>ht(t,"left"),top:t=>ht(t,"top"),right:t=>ht(t,"right"),bottom:t=>ht(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>ht(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=>ht(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};P();var Wt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Hh={theme:(t,e)=>{if(t)return e.themeModifier?Qt(t,`@${e.themeModifier}`):Qt(t)},color:(t,e)=>{let r=Wt(e);if(t)return{color:bt(t,r)}},background:(t,e)=>{let r=Wt(e);if(t)return S(t)&&t.includes("gradient")?{background:mc(t,r)}:{background:bt(t,r)}},backgroundColor:(t,e)=>{let r=Wt(e);if(t)return{backgroundColor:bt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Wt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:_h(t,o)}},textStroke:t=>({WebkitTextStroke:bh(t)}),outline:t=>({outline:ke(t)}),outlineOffset:(t,e)=>j("outlineOffset",t,e),border:t=>({border:ke(t)}),borderColor:(t,e)=>{let r=Wt(e);if(t)return{borderColor:bt(t,r)}},borderTopColor:(t,e)=>{let r=Wt(e);if(t)return{borderTopColor:bt(t,r)}},borderBottomColor:(t,e)=>{let r=Wt(e);if(t)return{borderBottomColor:bt(t,r)}},borderLeftColor:(t,e)=>{let r=Wt(e);if(t)return{borderLeftColor:bt(t,r)}},borderRightColor:(t,e)=>{let r=Wt(e);if(t)return{borderRightColor:bt(t,r)}},borderLeft:t=>({borderLeft:ke(t)}),borderTop:t=>({borderTop:ke(t)}),borderRight:t=>({borderRight:ke(t)}),borderBottom:t=>({borderBottom:ke(t)}),shadow:(t,e)=>{let r=Wt(e);if(t)return{boxShadow:xh(t,r)}},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split("!importan"),o=Wt(e),s=n?" !important":"";return{boxShadow:gc(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:gc(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ke(t)})};var Is={transition:t=>({transition:wh(t)}),transitionDuration:t=>({transitionDuration:yc(t)}),transitionDelay:t=>({transitionDelay:yc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:te(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};P();var Gh={flow:(t,e)=>{let r=e.reverse;if(!S(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||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var qh={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 pt={...Bh,...Vh,...Uh,...zh,...Wh,...Hh,...Is,...Gh,...qh};var xt=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"]);P();var dw=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,hw=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Lt(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(dw),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},Kh=(t,e,r)=>({[t]:Lt(e,r)}),En=(t,e,r)=>{let n=`&${t}`,o=Lt(e,r);if(t.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},Oc=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},gw=(t,e,r)=>{let n=t.slice(1),o=Oc(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Lt(e,r)},mw=(t,e,r)=>({[t]:e}),yw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Oc(n,r);s!==void 0&&(o=s)}if(o)return Lt(e,r)},bw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Oc(n,r);s!==void 0&&(o=s)}if(!o)return Lt(e,r)},Yh=(t,e)=>Lt(t,e),Xh={"@":hw,":":En,"[":En,"*":En,"+":En,"~":En,"&":Kh,">":Kh,$:gw,"-":mw,".":yw,"!":bw};var Rc=je(),xw=(t,e,r)=>{let n=e?.context?.designSystem;n&&ft(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,p=l.reduce((u,d)=>et(u,f[d]),{});o.designSystemClass=p}}else if(a==="true"){let l=X(c,e);et(o,Yh(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=C(l)?l(e,e.state,e.context):l;f&&i(a,f),!Rc&&_(o[a])&&(o[a].label=a)}else if(pt[a]){let l=X(c,e);T(l)&&(l=l.reduce((p,u)=>et(p,u),{}));let f=pt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((p,u)=>et(p,u),{})),f&&i(a,f),!Rc&&_(o[a])&&(o[a].label=a)}else if(xt.has(a)){let l=X(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Rc&&_(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&st()}},_w=(t,e)=>{let r={};for(let n in t){let o=Xh[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"?At(r[i],s[i]):r[i]=s[i])}}return r},Lt=(t,e,r={unpack:!0})=>{let[n,o]=xw(t,e,r),s=_w(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return po(n,s);n._selectors=s}return n},eR=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};P();var Sw=t=>{if(_(t))return Lt(t,t)},iR=(t,e)=>{let r=Sw(t);return typeof e=="function"?e(r):Xe(r)};P();function Qh(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e==="warn"&&!n.shouldCapture("warnings")||e==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function ww(...t){return Qh(this,"warn",t),Zo.apply(this,t)}function kw(...t){return Qh(this,"error",t),ur.apply(this,t)}var Zh={update:Rs,remove:Ps,getDB:es,getQuery:rs,getRootData:Ko,getChildren:zo,getPath:Wo,nextElement:Jo,previousElement:Qo,verbose:yn,warn:ww,error:kw,variables:ts,spotByPath:Uo,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t=="function"){if(t(n))return n}else if(typeof t=="string"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:qo,getRootState:Go,getRootContext:Yo,getContext:Xo,parse(t){let e={},r=t?new Set(t):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){e[o]=n[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n=="function")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Jh=new WeakMap;function vw(t){if(!t)return Zh;let e=Jh.get(t);if(e)return e;e=Object.create(Zh);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Jh.set(t,e),e}function $s(t){let e=vw(t.context);Object.setPrototypeOf(t,e)}P();lr();var Cw=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Ht=(t,e)=>{if(lt(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&lt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=lt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,lt(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!="function"&&Cw(e,o,n[o])};var Aw=function(t,e,r){return t.state=tg(t,e,r),t.state},tg=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ht(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",Ew(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=jt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ht(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!lt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=jt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Ht(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return lt(o)?(o.__element=t,o):e?.state||{}};function Pc(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Ew(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let o=t.slice(3),s=r.state?.parent;return o&&s?Pc(s,o):s??r.state??{}}if(t.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?Pc(o,s):o??{}}let n=Pc(r.state,t);if(n&&typeof n=="object"&&!lt(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var Tw=(t,e)=>{if(!t)return rg;let r=Pw(t,e);return!r||!r.state?rg:$w(r.state)},Ow=()=>Hr()!=null,Rw=128;function Pw(t,e){let r=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<Rw&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var Iw={get(t,e){return t[e]}},eg=new WeakMap,$w=t=>{let e=eg.get(t);return e||(e=new Proxy(t,Iw),eg.set(t,e)),e},rg=new Proxy(Object.create(null),{get(){},has(){return!1}});P();var TR=["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"],Ic={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"]},Fw=["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"],$c=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,Je=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||$c(e)||Ic.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Ic,t)?Ic[t].includes(e):!1,ig=t=>{if(!S(t))return!1;let e=t.toLowerCase();return Fw.includes(e)},OR=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])vt(e[o][a])&&(n["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(vt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Je(t,o),i=ig(o);if(vt(e[o])&&(s||i)){let a=$c(o)||o;n[a]=e[o]}}return n},RR=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let o=t.aria[n];typeof o=="function"&&(r["aria-"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(e,e.state,e.context)}}return r},Ze=(t,e)=>{let r=t.call("exec",e,t);if(r)return S(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},ng=(t,e)=>{let r=(t.preSrc||"")+(Ze(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},og={src:t=>ng(t,t.src),href:t=>Ze(t,t.href),action:t=>Ze(t,t.action),poster:t=>ng(t,t.poster),data:t=>Ze(t,t.data)},ag=t=>{let e=t.tag||"div",r={};for(let n in og)if(t[n]!==void 0&&Je(e,n)){let o=og[n](t);o!==void 0&&(r[n]=o)}return r},sg=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Dw=(t,e,r)=>{if(t==="$"){let o=sg(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=sg(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},Lw=new Set(["$",".","!"]),PR=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(Dw(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!Lw.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[l][d],i,c)}continue}let f=Je(e,l),p=ig(l);if(!f&&!p)continue;let u=$c(l)||l;o(u,a[l],i,c)}}return n};var Mw=1;function Er(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function Nw(t){return t.charAt(2).toLowerCase()+t.slice(3)}function jw(t){return t.toLowerCase()}function Mc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Mc(o,s):r[n]=s}return r}function zt(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${Mw++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=zt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}Os(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=Mc(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function l(g){for(let m in g){let y=g[m],b=s[m],w=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";w&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=Mc(b,y):w&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,p=e?.scope,u=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=p||u||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=Ti(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),$s(s),Bw(s,e,t),s.if!=null){let g;if(typeof s.if=="function")try{g=s.if(s,s.state,s.context)}catch(m){if(g=!1,i.__ifError=m,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,m?.message||m)}}else g=s.if;i.__if=!!g}if(i.__if)typeof t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&Nc(s,{if:t.if}),s;s.tag||(s.tag=wr(s)),ve("Init",s,n);let h=s.node=kr(s);if(!h)return s;ve("AttachNode",s,n),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),pg(s,n),Nc(s,t),jc(s),fg(s),Kw(s);try{dg(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
37
37
  `+g.stack.split(`
38
38
  `).slice(0,6).join(`