smbls 3.14.656 → 3.14.663

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # smbls
2
2
 
3
+ ## 3.14.663
4
+
5
+ ### Patch Changes
6
+
7
+ - Auto-generated cross-repo patch release.
8
+
3
9
  ## 3.14.656
4
10
 
5
11
  ### Patch Changes
package/dist/smbls.cjs CHANGED
@@ -25,9 +25,9 @@ ${Gg(t,1)}
25
25
  }`,gw=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},mw=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},yw=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&n.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let h in f)f[h]===!0?r.push(`${u}.${h}`):s(f[h],h,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",l=n.length?`
26
26
  `+n.join(`
27
27
  `):"";return`SELECT ${c}
28
- FROM ${a}${l}`},bw=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},xw={graphql:hw,"json-api":gw,odata:mw,sql:yw,paths:bw}});var _w,_u,Yg=M(()=>{"use strict";Fi();_w={snapshotId:fo},_u=(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 wa,Su,Xg=M(()=>{wa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Su=t=>typeof t=="string"&&wa.has(t)});async function wu(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 Jg=M(()=>{"use strict"});function Sw(t){return/^[0-9.]+$/.test(t)&&t!==""}var ee,Ge,Jr,re,ku,Zg=M(()=>{"use strict";ee={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${ee.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${ee.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${ee.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${ee.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!Sw(e)?`${ee.symbols.url}/${t}`:`${ee.symbols.url}/${t}/${e}.js`}},Ge={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Jr=(t={})=>{let{packageManager:e}=t;return Ge[e]||null},re=(t,e="latest",r="esmsh")=>(ee[r]||ee.esmsh).formatUrl(t,e),ku=(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]=re(s,i,e)}return`<script type="importmap">{
28
+ FROM ${a}${l}`},bw=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},xw={graphql:hw,"json-api":gw,odata:mw,sql:yw,paths:bw}});var _w,_u,Yg=M(()=>{"use strict";Fi();_w={snapshotId:fo},_u=(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 wa,Su,Xg=M(()=>{wa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Su=t=>typeof t=="string"&&wa.has(t)});async function wu(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 Jg=M(()=>{"use strict"});function Sw(t){return/^[0-9.]+$/.test(t)&&t!==""}var ee,Ge,Jr,re,ku,Zg=M(()=>{"use strict";ee={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${ee.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${ee.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${ee.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${ee.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!Sw(e)?`${ee.symbols.url}/${t}`:`${ee.symbols.url}/${t}/${e}.js`}},Ge={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Jr=(t={})=>{let{packageManager:e}=t;return Ge[e]||null},re=(t,e="latest",r="esmsh")=>(ee[r]||ee.esmsh).formatUrl(t,e),ku=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let c of n){let l=r[c]||"latest";o[c]=re(c,l,e)}let s='<script type="importmap">',i="<\/script>",a=`{
29
29
  "imports": ${JSON.stringify(o,null,2)}
30
- }<\/script>`}});var vu,Qg=M(()=>{"use strict";vu=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 Cu,tm=M(()=>{"use strict";Cu=(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 Eu,em=M(()=>{"use strict";Eu=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 Au,rm=M(()=>{"use strict";Au=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Zr(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 Iu(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 Tu,Ou,Ru,Pu,$u,nm=M(()=>{"use strict";Tu=(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)}}),Ou=(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)}),Ru=(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}`)},Pu=(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)}}),$u=(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 Cw(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!vw(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 ka(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 Ew(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,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(d,h,g)=>{let p=h.trim();if(g==="polyglot")return a[p]??ka(a,p)??d;if(g==="getLocalStateLang")return ka(c,p+s)??d;let m=ka(c,p);return m!==void 0?m:a[p]??ka(a,p)??d}));return l}function om(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 Fu(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=om(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=om(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let p=t.name||t.key;p?n?d.title=p:o==="development"?d.title=`${p} / dev:symbo.ls`:o==="staging"?d.title=`${p} / staging:symbo.ls`:d.title=`${p} / symbo.ls`:d.title="Symbols demo"}d=Ew(d,t,r),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let h=r?.actualPathname||e;if(d["og:url"]||d.url){let p=(d["og:url"]||d.url||"").replace(/\/$/,"");if(p&&h&&h!=="/"){let m=h.startsWith("/")?h:"/"+h;d["og:url"]=p+m}}d=Cw(d,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[p,m]of Object.entries(d))if(typeof m=="string"&&m.includes("{{")){let b=m.replace(/\{\{[^}]*\}\}/g,"").trim();b?d[p]=b:p==="title"?d[p]=g:delete d[p]}return d}var gt,ww,Qr,kw,va,Du,vw,sm=M(()=>{"use strict";ht();gt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},ww=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${gt(r)}"`).join(" "),Qr=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},kw=new Set(["jsonLd","styles","scripts"]),va=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r=="string"?r:JSON.stringify(r),o=String(n).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Qr(n)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Qr(n)}">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r=="string",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src="${gt(o)}"`),n||(r.type&&s.push(`type="${gt(r.type)}"`),r.async&&s.push("async"),r.defer&&s.push("defer"),r.integrity&&s.push(`integrity="${gt(r.integrity)}"`),r.crossorigin&&s.push(`crossorigin="${gt(r.crossorigin)}"`),r.referrerpolicy&&s.push(`referrerpolicy="${gt(r.referrerpolicy)}"`),r.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${gt(o||Qr(r.body||""))}"`;if(!n&&r.body){let a=String(r.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Du=(t,e)=>{e||(t={...t,robots:"noindex"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||kw.has(o))return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${gt(f)}">`);else if(typeof f=="object"){let u=ww(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${gt(h)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(d)}">`);else if(typeof d=="object"){let h=Object.entries(d).filter(([g,p])=>p!==void 0).map(([g,p])=>`${g}="${gt(p)}"`).join(" ");n.push(`<meta ${h}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${gt(g)}"`).join(" ");n.push(`<meta ${d}>`)}};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">']);return r.push(...va(t)),r.join(`
30
+ }`;return`${s}${a}${i}`}});var vu,Qg=M(()=>{"use strict";vu=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 Cu,tm=M(()=>{"use strict";Cu=(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 Eu,em=M(()=>{"use strict";Eu=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 Au,rm=M(()=>{"use strict";Au=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Zr(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 Iu(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 Tu,Ou,Ru,Pu,$u,nm=M(()=>{"use strict";Tu=(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)}}),Ou=(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)}),Ru=(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}`)},Pu=(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)}}),$u=(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 Cw(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!vw(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 ka(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 Ew(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,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(d,h,g)=>{let p=h.trim();if(g==="polyglot")return a[p]??ka(a,p)??d;if(g==="getLocalStateLang")return ka(c,p+s)??d;let m=ka(c,p);return m!==void 0?m:a[p]??ka(a,p)??d}));return l}function om(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 Fu(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=om(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=om(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let p=t.name||t.key;p?n?d.title=p:o==="development"?d.title=`${p} / dev:symbo.ls`:o==="staging"?d.title=`${p} / staging:symbo.ls`:d.title=`${p} / symbo.ls`:d.title="Symbols demo"}d=Ew(d,t,r),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let h=r?.actualPathname||e;if(d["og:url"]||d.url){let p=(d["og:url"]||d.url||"").replace(/\/$/,"");if(p&&h&&h!=="/"){let m=h.startsWith("/")?h:"/"+h;d["og:url"]=p+m}}d=Cw(d,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[p,m]of Object.entries(d))if(typeof m=="string"&&m.includes("{{")){let b=m.replace(/\{\{[^}]*\}\}/g,"").trim();b?d[p]=b:p==="title"?d[p]=g:delete d[p]}return d}var gt,ww,Qr,kw,va,Du,vw,sm=M(()=>{"use strict";ht();gt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},ww=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${gt(r)}"`).join(" "),Qr=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},kw=new Set(["jsonLd","styles","scripts"]),va=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r=="string"?r:JSON.stringify(r),o=String(n).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Qr(n)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Qr(n)}">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r=="string",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src="${gt(o)}"`),n||(r.type&&s.push(`type="${gt(r.type)}"`),r.async&&s.push("async"),r.defer&&s.push("defer"),r.integrity&&s.push(`integrity="${gt(r.integrity)}"`),r.crossorigin&&s.push(`crossorigin="${gt(r.crossorigin)}"`),r.referrerpolicy&&s.push(`referrerpolicy="${gt(r.referrerpolicy)}"`),r.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${gt(o||Qr(r.body||""))}"`;if(!n&&r.body){let a=String(r.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Du=(t,e)=>{e||(t={...t,robots:"noindex"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||kw.has(o))return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${gt(f)}">`);else if(typeof f=="object"){let u=ww(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${gt(h)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(d)}">`);else if(typeof d=="object"){let h=Object.entries(d).filter(([g,p])=>p!==void 0).map(([g,p])=>`${g}="${gt(p)}"`).join(" ");n.push(`<meta ${h}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${gt(g)}"`).join(" ");n.push(`<meta ${d}>`)}};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">']);return r.push(...va(t)),r.join(`
31
31
  `)},vw=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var Ca,Lu,im=M(()=>{"use strict";ht();Ca=(t,e)=>(A(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Lu=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),Ca(t,e))});function tn(t){let e=String(t||"").trim();if(!e)return{owner:am,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=am);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Aa(t,e={}){if((e.provider||"kv")==="api")return cm(t,e);let n=await Iw(t,e);return n||cm(t,e)}async function Iw(t,e={}){let r=e.kvBaseUrl||Aw,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 cm(t,e={}){let r=e.apiBaseUrl||Tw,{key:n}=tn(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(h=>{let{key:g}=tn(h?.key);return g.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`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function lm(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=tn(t);if(!r)return null;try{let n=await Aa(r,e);return n||console.warn(`[smbls] Shared library "${r}" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library "${r}":`,n.message),null}}return null}async function Nu(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(es(n)){let o=await lm(Pw(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return lm(n,e)}))).filter(Boolean)}var am,Aw,Tw,ts,Ow,Rw,Ea,Mu,es,Pw,$w,rs,fm=M(()=>{"use strict";ht();am="system",Aw="https://smbls-kv.nika-980.workers.dev",Tw="https://api.symbols.app";ts=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?w(t[o])&&w(e[o])&&ts(t[o],e[o],r,s):t[o]=e[o])}},Ow=new Set,Rw=t=>t.replace(/\.js$/iu,""),Ea=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let r of t){if(!S(r))continue;let n=r.split("/").map(o=>Rw(o.trim())).filter(Boolean).join("/");n&&e.add(n)}return e},Mu=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),es=t=>w(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),Pw=t=>t.library!==void 0?t.library:t.key??t.name,$w=(t,e,r)=>{for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!r.has(n))if(w(e[n])&&w(t[n]))if(n==="designSystem")ts(t[n],e[n],r,n);else for(let o in e[n])r.has(`${n}/${o}`)||o in t[n]||(t[n][o]=e[n][o]);else n in t||(t[n]=e[n])},rs=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=Ow;es(n)&&(o=Ea(n.ignoreList),n=n.library),w(n)&&$w(t,n,o)}}});var ju,Bu,Vu,ns,Uu,os,zu,Er,um=M(()=>{"use strict";ht();ju=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Bu=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)}},Vu=t=>t.replace(/[^a-zA-Z0-9_]/g,""),ns=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,"")),Uu=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),os=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),zu=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Er=t=>{if(A(t))return t;if(S(t))return t.split(" ");if(w(t))return Object.values(t);if(ue(t))return[t]}});var Wu,dm=M(()=>{"use strict";Wu=()=>{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 Pt,en,ss,is,pm=M(()=>{"use strict";Pt=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},en=(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(", ")},ss=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return en(e,{keepOneX:!1})},is=(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:en(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=en(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Ta={};D(Ta,{CDN_PROVIDERS:()=>ee,DOMQL_EVENTS:()=>zl,DOMQ_PROPERTIES:()=>Be,ENV:()=>sf,HTML_TAGS:()=>qr,METHODS:()=>Vr,METHODS_EXL:()=>oo,NODE_ENV:()=>Qt,OPTIONS:()=>To,PACKAGE_MANAGER_TO_CDN:()=>Ge,PARSED_DOMQ_PROPERTIES:()=>no,PROPS_METHODS:()=>Ve,STATE_METHODS:()=>xr,STATE_PROPERTIES:()=>Ul,SVG_TAGS:()=>mg,TYPES:()=>Xn,UNIVERSAL_RESERVED_KEYS:()=>wa,addCaching:()=>oa,addContext:()=>na,addExtend:()=>Pf,addExtends:()=>Rt,addItemAfterEveryElement:()=>Ol,addProtoToArray:()=>Qn,addRef:()=>ta,applyDependentState:()=>Xf,applyEvent:()=>fa,applyEventUpdate:()=>ua,applyExtends:()=>xg,applyProps:()=>wo,arrayContainsOtherArray:()=>wl,arraysEqual:()=>Pl,arrayzeValue:()=>Er,buildImgSrcset:()=>ss,buildSourcesAndImg:()=>is,cache:()=>eu,call:()=>bu,captureSnapshot:()=>_u,checkForStateTypes:()=>qf,checkIfInherits:()=>la,checkIfStringIsInArray:()=>Dl,clone:()=>Hl,cloneAndMergeArrayExtend:()=>ho,cloneFunction:()=>gf,concatAddExtends:()=>Tf,copyJavaScriptToClipboard:()=>Bu,copyStringToClipboard:()=>ju,createBasedOnType:()=>Qi,createElement:()=>Hf,createElementExtends:()=>Vi,createExtends:()=>mo,createExtendsFromKeys:()=>Gr,createExtendsStack:()=>Hi,createIfConditionFlag:()=>mf,createInheritedState:()=>Gf,createKey:()=>uo,createNestedObject:()=>Zl,createNestedObjectByKeyPath:()=>Yf,createObjectWithoutPrototype:()=>Di,createParent:()=>ea,createPath:()=>ra,createProps:()=>ko,createPropsStack:()=>Ji,createRoot:()=>Wf,createScope:()=>Zf,createSnapshotId:()=>fo,customDecodeURIComponent:()=>Vl,customEncodeURIComponent:()=>Bl,cutArrayAfterValue:()=>Al,cutArrayBeforeValue:()=>El,debounce:()=>po,debounceOnContext:()=>df,decodeNewlines:()=>jl,deepClone:()=>ot,deepContains:()=>Xl,deepDefaults:()=>ts,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Bi,deepMerge:()=>X,deepMergeExtends:()=>pe,deepStringifyFunctions:()=>so,defineSetter:()=>mu,destringifyGlobalScope:()=>ao,detectHeightOnInit:()=>Cu,detectInfiniteLoop:()=>rf,document:()=>K,encodeNewlines:()=>Nl,error:()=>Cr,excludeKeysFromObject:()=>of,exec:()=>tt,extendCachedRegistry:()=>Of,extendStackRegistry:()=>yo,extractArrayExtend:()=>xo,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>Eu,filterArrays:()=>$l,filterArraysFast:()=>Il,finalizeExtends:()=>qi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>Lu,findInheritedState:()=>ca,findKeyPosition:()=>Ll,flattenExtend:()=>Kr,formatDate:()=>vu,generateHash:()=>Mi,generateHeadArrayTags:()=>va,generateKey:()=>lo,generateMetaTags:()=>Du,get:()=>pu,getCDNUrl:()=>re,getCapitalCaseKeys:()=>Df,getCdnProviderFromConfig:()=>Jr,getChildStateInKey:()=>aa,getChildren:()=>Bo,getContext:()=>Go,getCookie:()=>Sf,getDB:()=>Zo,getEmotionStylesheet:()=>Wu,getExtendsInElement:()=>$f,getExtendsStack:()=>go,getExtendsStackRegistry:()=>ji,getFrequencyInArray:()=>kl,getHashedExtend:()=>bo,getImportMapScript:()=>ku,getInObjectByPath:()=>ef,getLocalStorage:()=>kf,getNev:()=>ff,getPageMetadata:()=>Fu,getParentStateInKey:()=>ia,getPath:()=>Vo,getQuery:()=>Qo,getRef:()=>gu,getRoot:()=>Wo,getRootContext:()=>qo,getRootData:()=>Ho,getRootState:()=>zo,getRootStateInKey:()=>sa,getSpreadChildren:()=>Ff,global:()=>xl,hasFunction:()=>de,hasHandlerPlugin:()=>zr,hasOwnProperty:()=>Gl,hashContent:()=>Qr,inheritChildExtends:()=>zi,inheritChildPropsExtends:()=>Ui,inheritParentProps:()=>vo,inheritRecursiveChildExtends:()=>Wi,initProps:()=>Vf,is:()=>Tt,isArray:()=>A,isBoolean:()=>Oi,isContextComponent:()=>Lf,isCyclic:()=>nf,isDOMNode:()=>Et,isDate:()=>Pi,isDefined:()=>At,isDevelopment:()=>ze,isEmpty:()=>$i,isEmptyObject:()=>Kl,isEqualDeep:()=>Ii,isFunction:()=>C,isHtmlElement:()=>Kn,isLocal:()=>lf,isMethod:()=>xu,isMobile:()=>xf,isNode:()=>Ce,isNot:()=>Sl,isNotProduction:()=>wr,isNull:()=>Ri,isNumber:()=>ue,isObject:()=>w,isObjectLike:()=>B,isPhoto:()=>Au,isProduction:()=>Ue,isStaging:()=>cf,isState:()=>Kf,isString:()=>S,isStringFunction:()=>hf,isTest:()=>Li,isTesting:()=>af,isUndefined:()=>pt,isUniversallyReservedKey:()=>Su,isValidHtmlTag:()=>Cf,isWrappedLibrary:()=>es,joinArrays:()=>Nr,jointStacks:()=>Rf,keys:()=>_a,loadCssFile:()=>Pu,loadJavascript:()=>$u,loadJavascriptFile:()=>Tu,loadJavascriptFileEmbedSync:()=>Ru,loadJavascriptFileSync:()=>Ou,loadRemoteCSS:()=>Iu,loadRemoteScript:()=>Zr,log:()=>yu,logGroupIf:()=>bf,logIf:()=>yf,lookdown:()=>uu,lookdownAll:()=>du,lookup:()=>fu,lowercaseFirstLetter:()=>br,makeObjectWithoutPrototype:()=>Yl,map:()=>Wl,mapStringsWithContextComponents:()=>_o,matchesComponentNaming:()=>he,memoize:()=>pf,merge:()=>it,mergeSharedLibraries:()=>rs,nextElement:()=>Yo,normalizeIgnoreList:()=>Ea,normalizeLibraryKey:()=>tn,objectToString:()=>io,objectizeStringProperty:()=>So,overwrite:()=>co,overwriteDeep:()=>Ot,overwriteShallow:()=>Sr,overwriteState:()=>Jf,parse:()=>Sa,parseDeep:()=>No,pickupElementFromProps:()=>Yi,pickupPropsFromElement:()=>Ki,previousElement:()=>Xo,propExists:()=>jf,propertizeElement:()=>Xi,propertizeUpdate:()=>Nf,remove:()=>Hg,removeChars:()=>Vu,removeCookie:()=>wf,removeDuplicateProps:()=>Eo,removeDuplicatesInArray:()=>jr,removeFromArray:()=>vl,removeFromObject:()=>Jl,removeNestedKeyByPath:()=>Ql,removeValueFromArray:()=>Zn,removeValueFromArrayAll:()=>Tl,reorderArrayByValues:()=>Rl,replaceLiteralsWithObjectFields:()=>yr,replaceOctalEscapeSequences:()=>Ml,resolveAsset:()=>Pt,resolveHandler:()=>Wr,resolveSharedLibraries:()=>Nu,returnValueAsText:()=>Zi,runPluginHook:()=>bt,self:()=>_l,setActiveRootState:()=>Uo,setCookie:()=>_f,setHashedExtend:()=>Ni,setInObjectByPath:()=>tf,setLocalStorage:()=>vf,setNodeStyles:()=>xa,setProps:()=>hu,setPropsPrototype:()=>Co,sharedLibrary:()=>Mu,spotByPath:()=>jo,srcsetFor:()=>en,stringIncludesAny:()=>eo,stringToObject:()=>ql,swapItemsInArray:()=>Cl,syncProps:()=>Ao,toCamelCase:()=>ns,toDashCase:()=>os,toDescriptionCase:()=>zu,toTitleCase:()=>Uu,toggleFullscreen:()=>wu,triggerEventOn:()=>We,triggerEventOnUpdate:()=>Qf,trimStringFromSymbols:()=>Fl,unstackArrayOfObjects:()=>Jn,update:()=>Bf,updateProps:()=>Uf,variables:()=>Jo,verbose:()=>Xr,warn:()=>Ko,window:()=>k});var O=M(()=>{"use strict";Fi();uf();ht();Ee();Hr();Br();Yn();pg();hg();ro();Gn();gg();Ef();If();zf();Gi();Cg();Eg();Ur();Ag();Kg();ru();Yg();tu();Xg();Jg();Zg();Qg();tm();em();rm();nm();sm();im();fm();um();dm();pm()});var U_=ol((nL,V_)=>{var Nn=1e3,jn=Nn*60,Bn=jn*60,Dr=Bn*24,uC=Dr*7,dC=Dr*365.25;V_.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return pC(t);if(r==="number"&&isFinite(t))return e.long?gC(t):hC(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function pC(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*dC;case"weeks":case"week":case"w":return r*uC;case"days":case"day":case"d":return r*Dr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Bn;case"minutes":case"minute":case"mins":case"min":case"m":return r*jn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Nn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function hC(t){var e=Math.abs(t);return e>=Dr?Math.round(t/Dr)+"d":e>=Bn?Math.round(t/Bn)+"h":e>=jn?Math.round(t/jn)+"m":e>=Nn?Math.round(t/Nn)+"s":t+"ms"}function gC(t){var e=Math.abs(t);return e>=Dr?Zc(t,e,Dr,"day"):e>=Bn?Zc(t,e,Bn,"hour"):e>=jn?Zc(t,e,jn,"minute"):e>=Nn?Zc(t,e,Nn,"second"):t+" ms"}function Zc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var W_=ol((oL,z_)=>{function mC(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=U_(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,d=null,h,g;function p(...m){if(!p.enabled)return;let b=p,x=Number(new Date),y=x-(u||x);b.diff=y,b.prev=u,b.curr=x,u=x,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(T,P)=>{if(T==="%%")return"%";_++;let U=r.formatters[P];if(typeof U=="function"){let R=m[_];T=U.call(b,R),m.splice(_,1),_--}return T}),r.formatArgs.call(b,m),(b.log||r.log).apply(b,m)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=n,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(f)),g),set:m=>{d=m}}),typeof r.init=="function"&&r.init(p),p}function n(f,u){let d=r(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function s(f,u){let d=0,h=0,g=-1,p=0;for(;d<f.length;)if(h<u.length&&(u[h]===f[d]||u[h]==="*"))u[h]==="*"?(g=h,p=d,h++):(d++,h++);else if(g!==-1)h=g+1,p++,d=p;else return!1;for(;h<u.length&&u[h]==="*";)h++;return h===u.length}function i(){let f=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))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}z_.exports=mC});var H_=ol((It,Qc)=>{It.formatArgs=bC;It.save=xC;It.load=_C;It.useColors=yC;It.storage=SC();It.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`."))}})();It.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 yC(){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 bC(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Qc.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)}It.log=console.debug||console.log||(()=>{});function xC(t){try{t?It.storage.setItem("debug",t):It.storage.removeItem("debug")}catch{}}function _C(){let t;try{t=It.storage.getItem("debug")||It.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function SC(){try{return localStorage}catch{}}Qc.exports=W_()(It);var{formatters:wC}=Qc.exports;wC.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var eg={};D(eg,{ANIMATION_PROPS:()=>Wd,ARIA_ROLES:()=>K0,ATTR_TRANSFORMS:()=>lp,BLOCK_PROPS:()=>Hd,CDN_PROVIDERS:()=>ee,CONFIG:()=>ds,CSS_NATIVE_COLOR_REGEX:()=>ne,CSS_PROPS_REGISTRY:()=>mt,CSS_UNITS:()=>Mr,DEFAULT_CONFIG:()=>Js,DEFAULT_CSS_PROPERTIES_LIST:()=>xt,DELEGATED_EVENTS:()=>bn,DESIGN_SYSTEM_OPTIONS:()=>yh,DOMQL_EVENTS:()=>zl,DOMQ_PROPERTIES:()=>Be,DOM_EVENTS:()=>ey,ENV:()=>sf,FACTORY:()=>be,FLEX_PROPS:()=>Xd,FONT_PROPS:()=>qd,GRID_PROPS:()=>Jd,HTML_ATTRIBUTES:()=>lc,HTML_TAGS:()=>qr,LIFECYCLE_EVENTS:()=>rr,METHODS:()=>Vr,METHODS_EXL:()=>oo,MISC_PROPS:()=>Gd,MIXINS:()=>sc,NODE_ENV:()=>Qt,OPTIONS:()=>To,PACKAGE_MANAGER_TO_CDN:()=>Ge,PARSED_DOMQ_PROPERTIES:()=>no,POSITION_PROPS:()=>Kd,PROPS_METHODS:()=>Ve,REGISTRY:()=>kt,RESERVED_STORE_METHODS:()=>hr,ROUTER_OPTIONS:()=>Ec,STATE_PROPERTIES:()=>Ul,STORE_METHOD_NAMES:()=>Wn,SVG_TAGS:()=>mn,THEME_PROPS:()=>Yd,TIMING_PROPS:()=>Gs,TYPES:()=>Xn,UNIVERSAL_RESERVED_KEYS:()=>wa,VALUE_TRANSFORMERS:()=>ec,__resetStateShadowWarnings:()=>ml,activateConfig:()=>ym,addCaching:()=>oa,addContext:()=>na,addDelegatedEvent:()=>Ws,addExtend:()=>Pf,addExtends:()=>Rt,addItemAfterEveryElement:()=>Ol,addMethods:()=>kn,addProtoToArray:()=>Qn,addRef:()=>ta,animation:()=>gd,appendSVGSprite:()=>Fs,appendSvgIconsSprite:()=>Ms,applyAttrTransforms:()=>dp,applyCSS:()=>dh,applyDependentState:()=>Xf,applyDocument:()=>Ds,applyEvent:()=>fa,applyEventUpdate:()=>ua,applyExtends:()=>_n,applyHeadings:()=>Ya,applyInitialState:()=>cc,applyMediaSequenceVars:()=>Xe,applyProps:()=>wo,applyReset:()=>Ns,applySequenceGlobalVars:()=>xs,applySequenceVars:()=>$e,applySpacingSequence:()=>Rs,applyStateMethods:()=>Nt,applyTimingSequence:()=>Is,applyTrueProps:()=>Qd,applyTypographySequence:()=>As,arrayContainsOtherArray:()=>wl,arraysEqual:()=>Pl,arrayzeValue:()=>Er,batch:()=>ve,breakpoints:()=>pd,buildImgSrcset:()=>ss,buildSourcesAndImg:()=>is,cache:()=>eu,cacheNode:()=>er,call:()=>bu,callStateMethod:()=>Ys,captureSnapshot:()=>_u,changeGlobalTheme:()=>rc,changeLightness:()=>Xu,checkAttributeByTagName:()=>sr,checkEventFunctions:()=>up,checkForStateTypes:()=>qf,checkIfBoxSize:()=>Os,checkIfInherits:()=>la,checkIfStringIsInArray:()=>Dl,class:()=>_d,clone:()=>Hl,cloneAndMergeArrayExtend:()=>ho,cloneFunction:()=>gf,color:()=>id,colorStringToRgbaArray:()=>me,components:()=>Tn,concatAddExtends:()=>Tf,convertSvgToSymbol:()=>_s,copyJavaScriptToClipboard:()=>Bu,copyStringToClipboard:()=>ju,create:()=>tg,createAsync:()=>qC,createBasedOnType:()=>Qi,createComputed:()=>fl,createConfig:()=>za,createDefine:()=>Px,createEffect:()=>Q,createElement:()=>Hf,createElementExtends:()=>Vi,createExtends:()=>mo,createExtendsFromKeys:()=>Gr,createExtendsStack:()=>Hi,createHTMLNode:()=>gn,createIfConditionFlag:()=>mf,createInheritedState:()=>Gf,createKey:()=>uo,createNestedObject:()=>Zl,createNestedObjectByKeyPath:()=>Yf,createObjectWithoutPrototype:()=>Di,createParent:()=>ea,createPath:()=>ra,createProps:()=>ko,createPropsStack:()=>Ji,createRoot:()=>Wf,createScope:()=>Zf,createScopeStore:()=>Hn,createSignal:()=>Bt,createSkeleton:()=>KC,createSnapshotId:()=>fo,createState:()=>op,createStore:()=>Dt,createSync:()=>GC,css:()=>ie,cssMediaVars:()=>Va,cssVars:()=>Ba,customDecodeURIComponent:()=>Vl,customEncodeURIComponent:()=>Bl,cutArrayAfterValue:()=>Al,cutArrayBeforeValue:()=>El,debounce:()=>po,debounceOnContext:()=>df,decodeNewlines:()=>jl,deepClone:()=>ot,deepContains:()=>Xl,deepDefaults:()=>ts,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Bi,deepMerge:()=>X,deepMergeExtends:()=>pe,deepStringifyFunctions:()=>so,defaultDefine:()=>Rn,defineSetter:()=>mu,destringifyGlobalScope:()=>ao,destroy:()=>ni,detectHeightOnInit:()=>Cu,detectInfiniteLoop:()=>rf,detectTag:()=>tr,devices:()=>hd,dispose:()=>nr,encodeNewlines:()=>Nl,error:()=>Cr,excludeKeysFromObject:()=>of,exec:()=>tt,executeAttr:()=>X0,exetuteClassPerComponent:()=>M0,extendCachedRegistry:()=>Of,extendStackRegistry:()=>yo,extractArrayExtend:()=>xo,extractConditionalAttrs:()=>Q0,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>Eu,filterArrays:()=>$l,filterArraysFast:()=>Il,filterAttributesByTagName:()=>Y0,finalizeExtends:()=>qi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>Lu,findHeadingLetter:()=>qa,findHeadings:()=>bs,findInheritedState:()=>ca,findKeyPosition:()=>Ll,flattenExtend:()=>Kr,font:()=>td,fontFace:()=>nd,fontFamily:()=>ed,fontFamilyTypes:()=>rd,formatDate:()=>vu,generateHash:()=>Mi,generateHeadArrayTags:()=>va,generateKey:()=>lo,generateMetaTags:()=>Du,generateSequence:()=>$t,generateSequencePosition:()=>vd,generateSprite:()=>an,generateSubSequence:()=>ms,get:()=>pu,getActiveConfig:()=>E,getActiveDocument:()=>oc,getActiveLang:()=>si,getCDNUrl:()=>re,getCacheSize:()=>Nd,getCapitalCaseKeys:()=>Df,getCdnProviderFromConfig:()=>Jr,getChildStateInKey:()=>aa,getChildren:()=>Bo,getColor:()=>rt,getColorShade:()=>Ia,getContext:()=>Go,getCookie:()=>Sf,getDB:()=>Zo,getDefaultOrFirstKey:()=>Ar,getEmotionStylesheet:()=>Wu,getExtendsInElement:()=>$f,getExtendsStack:()=>go,getExtendsStackRegistry:()=>ji,getFnPrefixAndValue:()=>Pe,getFontFace:()=>Zu,getFontFaceEach:()=>Tr,getFontFaceEachString:()=>Ma,getFontFaceString:()=>cs,getFontFamily:()=>Es,getFontFormat:()=>Fa,getFontSizeByKey:()=>Ts,getFrequencyInArray:()=>kl,getHashedExtend:()=>bo,getImportMapScript:()=>ku,getInObjectByPath:()=>ef,getLanguages:()=>Oc,getLocalStateLang:()=>Dc,getLocalStorage:()=>kf,getMediaColor:()=>yt,getMediaTheme:()=>Wt,getNev:()=>ff,getObserver:()=>pr,getPageMetadata:()=>Fu,getParentStateInKey:()=>ia,getPath:()=>Vo,getQuery:()=>Qo,getRef:()=>gu,getRgbTone:()=>Ke,getRoot:()=>Wo,getRootContext:()=>qo,getRootData:()=>Ho,getRootState:()=>zo,getRootStateInKey:()=>sa,getSequenceValue:()=>ys,getSequenceValueBySymbols:()=>Ha,getSequenceValuePropertyPair:()=>_e,getShadow:()=>$s,getSignals:()=>yl,getSpacingBasedOnRatio:()=>oe,getSpacingByKey:()=>dt,getSpreadChildren:()=>Ff,getSubratio:()=>gs,getSubratioDifference:()=>hs,getSystemGlobalTheme:()=>Yt,getTheme:()=>ws,getTimingByKey:()=>Ft,getTimingFunction:()=>Ht,global:()=>xl,gradient:()=>ad,grid:()=>xd,hasFunction:()=>de,hasHandlerPlugin:()=>zr,hasOwnProperty:()=>Gl,hashContent:()=>Qr,hexToRgb:()=>qu,hexToRgbArray:()=>Oa,hexToRgba:()=>Ku,hslToRgb:()=>$a,icons:()=>fd,inheritChildExtends:()=>zi,inheritChildPropsExtends:()=>Ui,inheritParentProps:()=>vo,inheritRecursiveChildExtends:()=>Wi,init:()=>De,initPolyglot:()=>_h,initProps:()=>Vf,injectGlobal:()=>ft,is:()=>Tt,isArray:()=>A,isBoolean:()=>Oi,isCSSVar:()=>at,isContextComponent:()=>Lf,isCyclic:()=>nf,isDOMNode:()=>Et,isDate:()=>Pi,isDefined:()=>At,isDevelopment:()=>ze,isEmpty:()=>$i,isEmptyObject:()=>Kl,isEqualDeep:()=>Ii,isFunction:()=>C,isGoogleFontsUrl:()=>nn,isHtmlElement:()=>Kn,isLocal:()=>lf,isMethod:()=>xu,isMobile:()=>xf,isNode:()=>Ce,isNot:()=>Sl,isNotProduction:()=>wr,isNull:()=>Ri,isNumber:()=>ue,isObject:()=>w,isObjectLike:()=>B,isPhoto:()=>Au,isProduction:()=>Ue,isRawUnitValue:()=>qn,isResolvedColor:()=>ye,isScalingUnit:()=>mr,isStaging:()=>cf,isState:()=>Kf,isStore:()=>st,isString:()=>S,isStringFunction:()=>hf,isSvgTag:()=>yn,isTest:()=>Li,isTesting:()=>af,isTracking:()=>ip,isUndefined:()=>pt,isUniversallyReservedKey:()=>Su,isValidHtmlTag:()=>Cf,isValidTag:()=>hn,isWasmLoaded:()=>mx,isWrappedLibrary:()=>es,joinArrays:()=>Nr,jointStacks:()=>Rf,keyframes:()=>pn,keys:()=>_a,loadCssFile:()=>Pu,loadJavascript:()=>$u,loadJavascriptFile:()=>Tu,loadJavascriptFileEmbedSync:()=>Ru,loadJavascriptFileSync:()=>Ou,loadRemoteCSS:()=>Iu,loadRemoteScript:()=>Zr,loadTranslations:()=>Pc,loadWasm:()=>gx,log:()=>yu,logGroupIf:()=>bf,logIf:()=>yf,lookdown:()=>uu,lookdownAll:()=>du,lookup:()=>fu,lowercaseFirstLetter:()=>br,makeObjectWithoutPrototype:()=>Yl,map:()=>Wl,mapStringsWithContextComponents:()=>_o,matchesComponentNaming:()=>he,media:()=>od,memoize:()=>pf,merge:()=>it,mergeSharedLibraries:()=>rs,mixTwoColors:()=>Hu,mixTwoRgb:()=>Yu,mixTwoRgba:()=>Da,nextElement:()=>Yo,normalizeIgnoreList:()=>Ea,normalizeLibraryKey:()=>tn,numToLetterMap:()=>xe,objectToString:()=>io,objectizeStringProperty:()=>So,opacify:()=>rn,overwrite:()=>co,overwriteDeep:()=>Ot,overwriteShallow:()=>Sr,overwriteState:()=>Jf,parse:()=>Sa,parseColorToken:()=>Te,parseDeep:()=>No,pickupElementFromProps:()=>Yi,pickupPropsFromElement:()=>Ki,polyglotFunctions:()=>ii,polyglotPlugin:()=>Fc,popConfig:()=>J,previousElement:()=>Xo,propExists:()=>jf,propertizeElement:()=>Xi,propertizeUpdate:()=>Nf,pushConfig:()=>et,registerEvent:()=>xn,reinit:()=>uh,remove:()=>wn,removeChars:()=>Vu,removeCookie:()=>wf,removeDelegatedEvent:()=>Hs,removeDuplicateProps:()=>Eo,removeDuplicatesInArray:()=>jr,removeFromArray:()=>vl,removeFromObject:()=>Jl,removeNestedKeyByPath:()=>Ql,removeValueFromArray:()=>Zn,removeValueFromArrayAll:()=>Tl,reorderArrayByValues:()=>Rl,replaceLiteralsWithObjectFields:()=>yr,replaceOctalEscapeSequences:()=>Ml,resolveAsset:()=>Pt,resolveColorsInGradient:()=>Bs,resolveFileSource:()=>cp,resolveFileUrl:()=>zt,resolveHandler:()=>Wr,resolvePropValue:()=>or,resolveSharedLibraries:()=>Nu,returnSubThemeOrDefault:()=>Ju,returnValueAsText:()=>Zi,rgbArrayToHex:()=>Ra,rgbToHSL:()=>Pa,rgbToHex:()=>Gu,runPluginHook:()=>bt,runThroughMedia:()=>Ka,scratchDefaultConfig:()=>sn,scratchSystem:()=>un,scratchUtils:()=>Je,self:()=>_l,semanticIcons:()=>ud,sequence:()=>Re,set:()=>Or,setActiveConfig:()=>Ua,setActiveDocument:()=>Ld,setActiveRootState:()=>Uo,setClass:()=>Nk,setClassname:()=>N0,setColor:()=>Ze,setCookie:()=>_f,setCssEngineHook:()=>wc,setCustomFont:()=>as,setCustomFontMedia:()=>Ye,setEach:()=>$d,setFont:()=>Cs,setFontFamily:()=>ln,setFontImport:()=>on,setGradient:()=>cn,setHashedExtend:()=>Ni,setInCustomFontMedia:()=>La,setInObjectByPath:()=>tf,setLang:()=>$c,setLocalStorage:()=>vf,setMediaTheme:()=>vs,setNodeStyles:()=>xa,setObserver:()=>ll,setProps:()=>hu,setPropsPrototype:()=>Co,setSVG:()=>fn,setScalingVar:()=>ps,setShadow:()=>Qe,setSubScalingVar:()=>Wa,setSvgIcon:()=>Ls,setTheme:()=>ks,setValue:()=>Pd,setVariables:()=>Cd,setWasmEngine:()=>zs,shadow:()=>ld,sharedLibrary:()=>Mu,sizes:()=>wd,spacing:()=>sd,splitSpacedValue:()=>Ps,splitTopLevelCommas:()=>Oe,splitTransition:()=>tc,spotByPath:()=>jo,srcsetFor:()=>en,stringIncludesAny:()=>eo,stringToObject:()=>ql,svg:()=>md,svgData:()=>yd,swapItemsInArray:()=>Cl,syncProps:()=>Ao,templates:()=>bd,theme:()=>cd,timing:()=>dd,toCamel:()=>us,toCamelCase:()=>ns,toDashCase:()=>os,toDescriptionCase:()=>zu,toTitleCase:()=>Uu,toggleFullscreen:()=>wu,transformBackgroundImage:()=>Za,transformBorder:()=>Se,transformBorderRadius:()=>Us,transformBoxShadow:()=>js,transformClassname:()=>Gm,transformDuration:()=>Vs,transformShadow:()=>Ja,transformSize:()=>ct,transformSizeRatio:()=>N,transformTextStroke:()=>Xa,transformTransition:()=>Rd,transformersByPrefix:()=>tp,transfromGap:()=>Qa,translate:()=>Rc,triggerEventOn:()=>We,triggerEventOnUpdate:()=>Qf,trimStringFromSymbols:()=>Fl,typography:()=>ls,unit:()=>Qu,unstackArrayOfObjects:()=>Jn,update:()=>Sn,updateProps:()=>Uf,updateVars:()=>Mk,upsertTranslation:()=>Ic,useCssInProps:()=>Mt,useHostState:()=>sp,usePropsAsCSS:()=>Hm,useSelectorsAsCSS:()=>qm,variables:()=>Jo,vars:()=>Sd,verbose:()=>Xr,warn:()=>Ko,warnStateKeyShadowsMethod:()=>gr,window:()=>k,wrapHoverRule:()=>se});module.exports=SS(eg);var bl={};D(bl,{RESERVED_STORE_METHODS:()=>hr,STORE_METHOD_NAMES:()=>Wn,__resetStateShadowWarnings:()=>ml,batch:()=>ve,createComputed:()=>fl,createEffect:()=>Q,createScopeStore:()=>Hn,createSignal:()=>Bt,createStore:()=>Dt,getObserver:()=>pr,getSignals:()=>yl,isStore:()=>st,setObserver:()=>ll,warnStateKeyShadowsMethod:()=>gr});var Ct=null,Ci=0,Ei=[],pr=()=>Ct,ll=t=>{Ct=t},Ai=0,sl=[];function Bt(t){let e=new Set;function r(){return Ct&&(e.add(Ct),Ct._sources.add(s)),t}function n(i){i!==t&&(t=i,CS(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function fl(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){cl(o);let s=Ct;Ct=o;try{e=t(),r=!1}finally{Ct=s}},_notify(){r=!0,n.size>0&&ag(n)},get(){return Ct&&(n.add(Ct),Ct._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var fe=new Set,il=!1;function Q(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;cl(n);let o=Ct;Ct=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Ct=o}},_notify(){n._disposed||(Ci>0?Ei.push(n):Ai>0?sl.push(n):ul(n))},dispose(){n._disposed=!0,cl(n)}};return n._execute(),n}function ve(t){Ci++;try{t()}finally{Ci--,Ci===0&&vS()}}var al=!1,og=1e3,wS=8;function sg(){return typeof performance<"u"?performance.now():Date.now()}function ul(t){fe.add(t),!al&&(il||(il=!0,queueMicrotask(ig)))}var Lr=[];function kS(){if(fe.size===1){let[t]=fe;fe.clear(),t._disposed||t._execute();return}Lr.length=0;for(let t of fe)Lr.push(t);fe.clear(),Lr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<Lr.length;t++){let e=Lr[t];e._disposed||e._execute()}Lr.length=0}function ig(t=0){if(il=!1,fe.size===0)return;al=!0;let e=sg(),r=!1;try{for(;fe.size>0;){if(++t>og){console.error("[smbls] reactive effect cascade exceeded",og,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on."),fe.clear();break}if(kS(),fe.size>0&&sg()-e>wS){r=!0,setTimeout(()=>ig(t),0);break}}}finally{r||(al=!1)}}function vS(){for(let t=0;t<Ei.length;t++)ul(Ei[t]);Ei.length=0}function ag(t){Ai++;try{for(let e of t)e._notify()}finally{if(Ai--,Ai===0&&sl.length>0){let e=sl.splice(0);for(let r=0;r<e.length;r++)ul(e[r])}}}function CS(t){ag(t)}function cl(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var je=Symbol("store"),Ti=Symbol("signals"),Wn=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],hr=new Set(Wn),hl=new Set,cg=(t,e)=>t?t+"."+e:String(e);function gr(t,e){let r=(e||"")+"::"+t;if(hl.has(r))return;hl.add(r);let n=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${n}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${n}.${t}(\u2026)" no longer reaches the store method on this node. Use "${n}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${Wn.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function ml(){hl.clear()}var dl=t=>!t||typeof t!="object"||Array.isArray(t)||t[je]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName,ES=12,lg=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function gl(t,e,r){if(t===e)return!0;if(r>ES)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!gl(t[n],e[n],r+1))return!1;return!0}if(lg(t)&&lg(e)){let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s of n)if(!Object.prototype.hasOwnProperty.call(e,s)||!gl(t[s],e[s],r+1))return!1;return!0}return!1}function Dt(t,e,r,n){r===void 0&&(r=0),n===void 0&&(n="");let o={},s={},i=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let x in t){if(x==="__proto__"||!Object.prototype.hasOwnProperty.call(t,x))continue;hr.has(x)&&gr(x,n);let y=t[x];r<i&&y&&typeof y=="object"&&!dl(y)?(s[x]=y,o[x]=Bt(Dt(y,e,r+1,cg(n,x)))):(s[x]=y,o[x]=Bt(y))}let a=new Proxy(s,{get(x,y){if(y===je)return!0;if(y===Ti)return o;if(y==="__raw")return x;if(y==="$update")return c;if(y==="$parse")return f;if(y==="$clean")return u;if(y==="$keys")return d;if(y==="$values")return h;if(y==="$replace")return g;if(y==="$add")return p;if(y==="$remove")return m;if(y==="$destroy")return b;if(y==="$quietUpdate")return l;if(hr.has(y)&&!Object.prototype.hasOwnProperty.call(o,y))switch(y){case"update":return c;case"parse":return f;case"clean":return u;case"keys":return d;case"values":return h;case"replace":return g;case"add":return p;case"remove":return m;case"destroy":return b;case"quietUpdate":return l}if(y==="__element")return x.__element;if(y==="parent")return x.parent;if(y==="root")return x.root;if(Object.prototype.hasOwnProperty.call(o,y)){let v=o[y].get();if(v!==void 0||!(y!=="root"&&x.root&&x.root!==a))return v}if(x[y]!==void 0)return x[y];let _=typeof y=="string"&&!y.startsWith("__")&&y!=="then"&&y!=="constructor"&&pr()!=null;if(y!=="root"&&x.root&&x.root!==a){let v=x.root[y];return v===void 0&&_&&!Object.prototype.hasOwnProperty.call(o,y)?(o[y]=Bt(void 0),o[y].get()):v}if(_)return o[y]=Bt(void 0),o[y].get()},set(x,y,_){if(y==="__proto__")return!1;if(y==="__element"||y==="parent"||y==="root")return x[y]=_,!0;hr.has(y)&&gr(y,n);let v=cg(n,y);if(Object.prototype.hasOwnProperty.call(o,y))if(_&&typeof _=="object"&&!dl(_)){if(_===x[y])return!0;let T=o[y].peek(),P=T&&T[je]?T.$parse():T;if(gl(_,P,0))return!0;x[y]=_,o[y].set(Dt(_,e,r+1,v))}else x[y]=_,o[y].set(_);else x[y]=_,_&&typeof _=="object"&&!dl(_)?o[y]=Bt(Dt(_,e,r+1,v)):o[y]=Bt(_);return!0},has(x,y){return typeof y=="string"&&y.charCodeAt(0)===36&&hr.has(y.slice(1))?!0:y in o||y in x},ownKeys(x){return Object.keys(o)},getOwnPropertyDescriptor(x,y){return y in o?{enumerable:!0,configurable:!0,value:o[y].peek()}:Object.getOwnPropertyDescriptor(x,y)},deleteProperty(x,y){return o[y]&&(o[y].set(void 0),delete o[y]),delete x[y],!0}});function c(x,y){ve(()=>{for(let v in x)v!=="__proto__"&&(a[v]=x[v])});let _=s.__element;return _&&_.onUpdate&&!y?.quiet&&_.onUpdate(_,a,_.context),a}function l(x){return c(x,{quiet:!0})}function f(x){if(x||(x=new Set),x.has(a))return"[Circular]";x.add(a);let y={};for(let _ in o){if(_==="parent"||_==="root"||_.startsWith("__"))continue;let v=o[_].peek();v&&v[je]?y[_]=v.$parse(x):y[_]=v}return y}function u(){return ve(()=>{for(let x in o)delete a[x]}),a}function d(){return Object.keys(o)}function h(){return Object.keys(o).map(x=>o[x].peek())}function g(x){return ve(()=>{for(let y in o)y in x||delete a[y];for(let y in x)y!=="__proto__"&&(a[y]=x[y])}),a}function p(x,y){return a[x]=y,a}function m(x){return delete a[x],a}function b(){u(),s.__element=null,s.parent=null}return a}function st(t){return t&&t[je]===!0}function yl(t){return t[Ti]}function Hn(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=Bt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[Ti];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[je]?a[pl]:null}return null};return new Proxy(n,{get(i,a){return a===je?!0:a===Ti?r:a===pl?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]=Bt(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[je]?c[pl]: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 pl=Symbol("scope.parent");var jd={};D(jd,{css:()=>ie,getActiveDocument:()=>oc,getCacheSize:()=>Nd,injectGlobal:()=>ft,keyframes:()=>pn,reset:()=>Dm,setActiveDocument:()=>Ld,setWasmEngine:()=>zs,wrapHoverRule:()=>se});var Id={};D(Id,{CONFIG:()=>ds,CSS_NATIVE_COLOR_REGEX:()=>ne,CSS_UNITS:()=>Mr,FACTORY:()=>be,VALUE_TRANSFORMERS:()=>ec,activateConfig:()=>ym,animation:()=>gd,appendSVGSprite:()=>Fs,appendSvgIconsSprite:()=>Ms,applyDocument:()=>Ds,applyHeadings:()=>Ya,applyMediaSequenceVars:()=>Xe,applyReset:()=>Ns,applySequenceGlobalVars:()=>xs,applySequenceVars:()=>$e,applySpacingSequence:()=>Rs,applyTimingSequence:()=>Is,applyTypographySequence:()=>As,breakpoints:()=>pd,changeGlobalTheme:()=>rc,changeLightness:()=>Xu,checkIfBoxSize:()=>Os,class:()=>_d,color:()=>id,colorStringToRgbaArray:()=>me,convertSvgToSymbol:()=>_s,createConfig:()=>za,cssMediaVars:()=>Va,cssVars:()=>Ba,devices:()=>hd,document:()=>hm,findHeadingLetter:()=>qa,findHeadings:()=>bs,font:()=>td,fontFace:()=>nd,fontFamily:()=>ed,fontFamilyTypes:()=>rd,generateSequence:()=>$t,generateSequencePosition:()=>vd,generateSprite:()=>an,generateSubSequence:()=>ms,getActiveConfig:()=>E,getColor:()=>rt,getColorShade:()=>Ia,getDefaultOrFirstKey:()=>Ar,getFnPrefixAndValue:()=>Pe,getFontFace:()=>Zu,getFontFaceEach:()=>Tr,getFontFaceEachString:()=>Ma,getFontFaceString:()=>cs,getFontFamily:()=>Es,getFontFormat:()=>Fa,getFontSizeByKey:()=>Ts,getMediaColor:()=>yt,getMediaTheme:()=>Wt,getRgbTone:()=>Ke,getSequenceValue:()=>ys,getSequenceValueBySymbols:()=>Ha,getSequenceValuePropertyPair:()=>_e,getShadow:()=>$s,getSpacingBasedOnRatio:()=>oe,getSpacingByKey:()=>dt,getSubratio:()=>gs,getSubratioDifference:()=>hs,getTheme:()=>ws,getTimingByKey:()=>Ft,getTimingFunction:()=>Ht,gradient:()=>ad,grid:()=>xd,hexToRgb:()=>qu,hexToRgbArray:()=>Oa,hexToRgba:()=>Ku,hslToRgb:()=>$a,icons:()=>fd,isCSSVar:()=>at,isGoogleFontsUrl:()=>nn,isRawUnitValue:()=>qn,isResolvedColor:()=>ye,isScalingUnit:()=>mr,media:()=>od,mixTwoColors:()=>Hu,mixTwoRgb:()=>Yu,mixTwoRgba:()=>Da,numToLetterMap:()=>xe,opacify:()=>rn,parseColorToken:()=>Te,popConfig:()=>J,pushConfig:()=>et,reset:()=>gm,resolveColorsInGradient:()=>Bs,resolveFileUrl:()=>zt,returnSubThemeOrDefault:()=>Ju,rgbArrayToHex:()=>Ra,rgbToHSL:()=>Pa,rgbToHex:()=>Gu,runThroughMedia:()=>Ka,scratchDefaultConfig:()=>sn,scratchSystem:()=>un,scratchUtils:()=>Je,semanticIcons:()=>ud,sequence:()=>Re,set:()=>Or,setActiveConfig:()=>Ua,setColor:()=>Ze,setCustomFont:()=>as,setCustomFontMedia:()=>Ye,setEach:()=>$d,setFont:()=>Cs,setFontFamily:()=>ln,setFontImport:()=>on,setGradient:()=>cn,setInCustomFontMedia:()=>La,setMediaTheme:()=>vs,setSVG:()=>fn,setScalingVar:()=>ps,setShadow:()=>Qe,setSubScalingVar:()=>Wa,setSvgIcon:()=>Ls,setTheme:()=>ks,setValue:()=>Pd,setVariables:()=>Cd,shadow:()=>ld,sizes:()=>wd,spacing:()=>sd,splitSpacedValue:()=>Ps,splitTopLevelCommas:()=>Oe,splitTransition:()=>tc,svg:()=>md,svgData:()=>yd,templates:()=>bd,theme:()=>cd,timing:()=>dd,toCamel:()=>us,transformBackgroundImage:()=>Za,transformBorder:()=>Se,transformBorderRadius:()=>Us,transformBoxShadow:()=>js,transformDuration:()=>Vs,transformShadow:()=>Ja,transformSize:()=>ct,transformSizeRatio:()=>N,transformTextStroke:()=>Xa,transformTransition:()=>Rd,transfromGap:()=>Qa,typography:()=>ls,unit:()=>Qu,vars:()=>Sd});var Je={};D(Je,{CSS_NATIVE_COLOR_REGEX:()=>ne,CSS_UNITS:()=>Mr,applyMediaSequenceVars:()=>Xe,applySequenceGlobalVars:()=>xs,applySequenceVars:()=>$e,changeLightness:()=>Xu,colorStringToRgbaArray:()=>me,convertSvgToSymbol:()=>_s,findHeadingLetter:()=>qa,findHeadings:()=>bs,generateSequence:()=>$t,generateSequencePosition:()=>vd,generateSprite:()=>an,generateSubSequence:()=>ms,getColorShade:()=>Ia,getDefaultOrFirstKey:()=>Ar,getFnPrefixAndValue:()=>Pe,getFontFace:()=>Zu,getFontFaceEach:()=>Tr,getFontFaceEachString:()=>Ma,getFontFaceString:()=>cs,getFontFormat:()=>Fa,getRgbTone:()=>Ke,getSequenceValue:()=>ys,getSequenceValueBySymbols:()=>Ha,getSequenceValuePropertyPair:()=>_e,getSubratio:()=>gs,getSubratioDifference:()=>hs,hexToRgb:()=>qu,hexToRgbArray:()=>Oa,hexToRgba:()=>Ku,hslToRgb:()=>$a,isCSSVar:()=>at,isGoogleFontsUrl:()=>nn,isRawUnitValue:()=>qn,isResolvedColor:()=>ye,isScalingUnit:()=>mr,mixTwoColors:()=>Hu,mixTwoRgb:()=>Yu,mixTwoRgba:()=>Da,numToLetterMap:()=>xe,opacify:()=>rn,parseColorToken:()=>Te,resolveFileUrl:()=>zt,returnSubThemeOrDefault:()=>Ju,rgbArrayToHex:()=>Ra,rgbToHSL:()=>Pa,rgbToHex:()=>Gu,setCustomFont:()=>as,setCustomFontMedia:()=>Ye,setFontImport:()=>on,setInCustomFontMedia:()=>La,setScalingVar:()=>ps,setSubScalingVar:()=>Wa,setVariables:()=>Cd,splitTopLevelCommas:()=>Oe});var mr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Mr=["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"],AS=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),TS=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Mr.filter(t=>t!=="auto").map(AS).join("|")})$`),qn=t=>TS.test(String(t).trim());O();var me=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&&K&&k){let e=K.body.appendChild(K.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){K.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return K.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,K.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]},Hu=(t,e,r=.5)=>(t=me(t),e=me(e),Da(t,e,r)),qu=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Oa=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Gu=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Ra=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Ku=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Yu=(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})`},Xu=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Pa=(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]},$a=(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)],Ia=(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)},Da=(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})`},rn=(t,e)=>{let r=me(t);if(!r){wr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},at=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ne=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Dw=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Te=t=>{if(!S(t))return null;if(ne.test(t))return{passthrough:t};if(at(t))return{cssVar:t};let e=t.match(Dw);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}},ye=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Oe=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},Ke=(t,e)=>{S(t)&&t.includes("rgb")&&(t=me(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ue(e)&&(e+="");let r=Ra(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Ia(r,parseFloat(e));return Oa(o).join(", ")}else{let[o,s,i]=t,a=Pa(o,s,i),[c,l,f]=a;return $a(c,l,parseFloat(e)/100*255)}};var Ju=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var zt=(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},Ar=(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},Fa=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},nn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),on=t=>`@import url('${t}');`,La=t=>`@font-face { ${t} }`,as=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Fa(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
32
32
  `);return`
33
33
  font-family: '${t}';
package/dist/smbls.esm.js CHANGED
@@ -25,9 +25,9 @@ ${qg(t,1)}
25
25
  }`,hw=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},gw=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},mw=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&n.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let h in f)f[h]===!0?r.push(`${u}.${h}`):s(f[h],h,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",l=n.length?`
26
26
  `+n.join(`
27
27
  `):"";return`SELECT ${c}
28
- FROM ${a}${l}`},yw=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},bw={graphql:pw,"json-api":hw,odata:gw,sql:mw,paths:yw}});var xw,_u,Kg=M(()=>{"use strict";Di();xw={snapshotId:fo},_u=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=xw.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Sa,Su,Yg=M(()=>{Sa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Su=t=>typeof t=="string"&&Sa.has(t)});async function wu(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 Xg=M(()=>{"use strict"});function _w(t){return/^[0-9.]+$/.test(t)&&t!==""}var ee,Ge,Jr,re,ku,Jg=M(()=>{"use strict";ee={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${ee.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${ee.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${ee.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${ee.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!_w(e)?`${ee.symbols.url}/${t}`:`${ee.symbols.url}/${t}/${e}.js`}},Ge={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Jr=(t={})=>{let{packageManager:e}=t;return Ge[e]||null},re=(t,e="latest",r="esmsh")=>(ee[r]||ee.esmsh).formatUrl(t,e),ku=(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]=re(s,i,e)}return`<script type="importmap">{
28
+ FROM ${a}${l}`},yw=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},bw={graphql:pw,"json-api":hw,odata:gw,sql:mw,paths:yw}});var xw,_u,Kg=M(()=>{"use strict";Di();xw={snapshotId:fo},_u=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=xw.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Sa,Su,Yg=M(()=>{Sa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Su=t=>typeof t=="string"&&Sa.has(t)});async function wu(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 Xg=M(()=>{"use strict"});function _w(t){return/^[0-9.]+$/.test(t)&&t!==""}var ee,Ge,Jr,re,ku,Jg=M(()=>{"use strict";ee={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${ee.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${ee.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${ee.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${ee.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!_w(e)?`${ee.symbols.url}/${t}`:`${ee.symbols.url}/${t}/${e}.js`}},Ge={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Jr=(t={})=>{let{packageManager:e}=t;return Ge[e]||null},re=(t,e="latest",r="esmsh")=>(ee[r]||ee.esmsh).formatUrl(t,e),ku=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let c of n){let l=r[c]||"latest";o[c]=re(c,l,e)}let s='<script type="importmap">',i="<\/script>",a=`{
29
29
  "imports": ${JSON.stringify(o,null,2)}
30
- }<\/script>`}});var vu,Zg=M(()=>{"use strict";vu=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 Cu,Qg=M(()=>{"use strict";Cu=(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 Eu,tm=M(()=>{"use strict";Eu=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 Au,em=M(()=>{"use strict";Au=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Zr(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 Iu(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 Tu,Ou,Ru,Pu,$u,rm=M(()=>{"use strict";Tu=(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)}}),Ou=(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)}),Ru=(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}`)},Pu=(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)}}),$u=(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 vw(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!kw(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 wa(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 Cw(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,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(d,h,g)=>{let p=h.trim();if(g==="polyglot")return a[p]??wa(a,p)??d;if(g==="getLocalStateLang")return wa(c,p+s)??d;let m=wa(c,p);return m!==void 0?m:a[p]??wa(a,p)??d}));return l}function nm(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 Fu(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=nm(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=nm(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let p=t.name||t.key;p?n?d.title=p:o==="development"?d.title=`${p} / dev:symbo.ls`:o==="staging"?d.title=`${p} / staging:symbo.ls`:d.title=`${p} / symbo.ls`:d.title="Symbols demo"}d=Cw(d,t,r),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let h=r?.actualPathname||e;if(d["og:url"]||d.url){let p=(d["og:url"]||d.url||"").replace(/\/$/,"");if(p&&h&&h!=="/"){let m=h.startsWith("/")?h:"/"+h;d["og:url"]=p+m}}d=vw(d,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[p,m]of Object.entries(d))if(typeof m=="string"&&m.includes("{{")){let b=m.replace(/\{\{[^}]*\}\}/g,"").trim();b?d[p]=b:p==="title"?d[p]=g:delete d[p]}return d}var gt,Sw,Qr,ww,ka,Du,kw,om=M(()=>{"use strict";ht();gt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Sw=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${gt(r)}"`).join(" "),Qr=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},ww=new Set(["jsonLd","styles","scripts"]),ka=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r=="string"?r:JSON.stringify(r),o=String(n).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Qr(n)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Qr(n)}">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r=="string",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src="${gt(o)}"`),n||(r.type&&s.push(`type="${gt(r.type)}"`),r.async&&s.push("async"),r.defer&&s.push("defer"),r.integrity&&s.push(`integrity="${gt(r.integrity)}"`),r.crossorigin&&s.push(`crossorigin="${gt(r.crossorigin)}"`),r.referrerpolicy&&s.push(`referrerpolicy="${gt(r.referrerpolicy)}"`),r.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${gt(o||Qr(r.body||""))}"`;if(!n&&r.body){let a=String(r.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Du=(t,e)=>{e||(t={...t,robots:"noindex"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||ww.has(o))return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${gt(f)}">`);else if(typeof f=="object"){let u=Sw(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${gt(h)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(d)}">`);else if(typeof d=="object"){let h=Object.entries(d).filter(([g,p])=>p!==void 0).map(([g,p])=>`${g}="${gt(p)}"`).join(" ");n.push(`<meta ${h}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${gt(g)}"`).join(" ");n.push(`<meta ${d}>`)}};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">']);return r.push(...ka(t)),r.join(`
30
+ }`;return`${s}${a}${i}`}});var vu,Zg=M(()=>{"use strict";vu=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 Cu,Qg=M(()=>{"use strict";Cu=(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 Eu,tm=M(()=>{"use strict";Eu=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 Au,em=M(()=>{"use strict";Au=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Zr(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 Iu(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 Tu,Ou,Ru,Pu,$u,rm=M(()=>{"use strict";Tu=(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)}}),Ou=(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)}),Ru=(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}`)},Pu=(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)}}),$u=(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 vw(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!kw(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 wa(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 Cw(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,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(d,h,g)=>{let p=h.trim();if(g==="polyglot")return a[p]??wa(a,p)??d;if(g==="getLocalStateLang")return wa(c,p+s)??d;let m=wa(c,p);return m!==void 0?m:a[p]??wa(a,p)??d}));return l}function nm(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 Fu(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=nm(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=nm(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let p=t.name||t.key;p?n?d.title=p:o==="development"?d.title=`${p} / dev:symbo.ls`:o==="staging"?d.title=`${p} / staging:symbo.ls`:d.title=`${p} / symbo.ls`:d.title="Symbols demo"}d=Cw(d,t,r),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let h=r?.actualPathname||e;if(d["og:url"]||d.url){let p=(d["og:url"]||d.url||"").replace(/\/$/,"");if(p&&h&&h!=="/"){let m=h.startsWith("/")?h:"/"+h;d["og:url"]=p+m}}d=vw(d,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[p,m]of Object.entries(d))if(typeof m=="string"&&m.includes("{{")){let b=m.replace(/\{\{[^}]*\}\}/g,"").trim();b?d[p]=b:p==="title"?d[p]=g:delete d[p]}return d}var gt,Sw,Qr,ww,ka,Du,kw,om=M(()=>{"use strict";ht();gt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Sw=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${gt(r)}"`).join(" "),Qr=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},ww=new Set(["jsonLd","styles","scripts"]),ka=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r=="string"?r:JSON.stringify(r),o=String(n).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Qr(n)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Qr(n)}">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r=="string",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src="${gt(o)}"`),n||(r.type&&s.push(`type="${gt(r.type)}"`),r.async&&s.push("async"),r.defer&&s.push("defer"),r.integrity&&s.push(`integrity="${gt(r.integrity)}"`),r.crossorigin&&s.push(`crossorigin="${gt(r.crossorigin)}"`),r.referrerpolicy&&s.push(`referrerpolicy="${gt(r.referrerpolicy)}"`),r.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${gt(o||Qr(r.body||""))}"`;if(!n&&r.body){let a=String(r.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},Du=(t,e)=>{e||(t={...t,robots:"noindex"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||ww.has(o))return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${gt(f)}">`);else if(typeof f=="object"){let u=Sw(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${gt(h)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")n.push(`<meta ${u}="${gt(l)}" content="${gt(d)}">`);else if(typeof d=="object"){let h=Object.entries(d).filter(([g,p])=>p!==void 0).map(([g,p])=>`${g}="${gt(p)}"`).join(" ");n.push(`<meta ${h}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${gt(g)}"`).join(" ");n.push(`<meta ${d}>`)}};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">']);return r.push(...ka(t)),r.join(`
31
31
  `)},kw=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var va,Lu,sm=M(()=>{"use strict";ht();va=(t,e)=>(A(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Lu=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),va(t,e))});function tn(t){let e=String(t||"").trim();if(!e)return{owner:im,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=im);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Ea(t,e={}){if((e.provider||"kv")==="api")return am(t,e);let n=await $w(t,e);return n||am(t,e)}async function $w(t,e={}){let r=e.kvBaseUrl||Ew,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 am(t,e={}){let r=e.apiBaseUrl||Aw,{key:n}=tn(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(h=>{let{key:g}=tn(h?.key);return g.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`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function cm(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=tn(t);if(!r)return null;try{let n=await Ea(r,e);return n||console.warn(`[smbls] Shared library "${r}" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library "${r}":`,n.message),null}}return null}async function Nu(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(es(n)){let o=await cm(Rw(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return cm(n,e)}))).filter(Boolean)}var im,Ew,Aw,ts,Tw,Ow,Ca,Mu,es,Rw,Pw,rs,lm=M(()=>{"use strict";ht();im="system",Ew="https://smbls-kv.nika-980.workers.dev",Aw="https://api.symbols.app";ts=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?w(t[o])&&w(e[o])&&ts(t[o],e[o],r,s):t[o]=e[o])}},Tw=new Set,Ow=t=>t.replace(/\.js$/iu,""),Ca=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let r of t){if(!S(r))continue;let n=r.split("/").map(o=>Ow(o.trim())).filter(Boolean).join("/");n&&e.add(n)}return e},Mu=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),es=t=>w(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),Rw=t=>t.library!==void 0?t.library:t.key??t.name,Pw=(t,e,r)=>{for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!r.has(n))if(w(e[n])&&w(t[n]))if(n==="designSystem")ts(t[n],e[n],r,n);else for(let o in e[n])r.has(`${n}/${o}`)||o in t[n]||(t[n][o]=e[n][o]);else n in t||(t[n]=e[n])},rs=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=Tw;es(n)&&(o=Ca(n.ignoreList),n=n.library),w(n)&&Pw(t,n,o)}}});var ju,Bu,Vu,ns,Uu,os,zu,Er,fm=M(()=>{"use strict";ht();ju=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Bu=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)}},Vu=t=>t.replace(/[^a-zA-Z0-9_]/g,""),ns=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,"")),Uu=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),os=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),zu=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Er=t=>{if(A(t))return t;if(S(t))return t.split(" ");if(w(t))return Object.values(t);if(ue(t))return[t]}});var Wu,um=M(()=>{"use strict";Wu=()=>{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 Pt,en,ss,is,dm=M(()=>{"use strict";Pt=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},en=(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(", ")},ss=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return en(e,{keepOneX:!1})},is=(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:en(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=en(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Aa={};D(Aa,{CDN_PROVIDERS:()=>ee,DOMQL_EVENTS:()=>zl,DOMQ_PROPERTIES:()=>Be,ENV:()=>sf,HTML_TAGS:()=>qr,METHODS:()=>Vr,METHODS_EXL:()=>oo,NODE_ENV:()=>Qt,OPTIONS:()=>To,PACKAGE_MANAGER_TO_CDN:()=>Ge,PARSED_DOMQ_PROPERTIES:()=>no,PROPS_METHODS:()=>Ve,STATE_METHODS:()=>xr,STATE_PROPERTIES:()=>Ul,SVG_TAGS:()=>gg,TYPES:()=>Xn,UNIVERSAL_RESERVED_KEYS:()=>Sa,addCaching:()=>na,addContext:()=>ra,addExtend:()=>Pf,addExtends:()=>Rt,addItemAfterEveryElement:()=>Ol,addProtoToArray:()=>Qn,addRef:()=>Qi,applyDependentState:()=>Xf,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>bg,applyProps:()=>wo,arrayContainsOtherArray:()=>wl,arraysEqual:()=>Pl,arrayzeValue:()=>Er,buildImgSrcset:()=>ss,buildSourcesAndImg:()=>is,cache:()=>eu,call:()=>bu,captureSnapshot:()=>_u,checkForStateTypes:()=>qf,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>Dl,clone:()=>Hl,cloneAndMergeArrayExtend:()=>ho,cloneFunction:()=>gf,concatAddExtends:()=>Tf,copyJavaScriptToClipboard:()=>Bu,copyStringToClipboard:()=>ju,createBasedOnType:()=>Zi,createElement:()=>Hf,createElementExtends:()=>Bi,createExtends:()=>mo,createExtendsFromKeys:()=>Gr,createExtendsStack:()=>Wi,createIfConditionFlag:()=>mf,createInheritedState:()=>Gf,createKey:()=>uo,createNestedObject:()=>Zl,createNestedObjectByKeyPath:()=>Yf,createObjectWithoutPrototype:()=>Ii,createParent:()=>ta,createPath:()=>ea,createProps:()=>ko,createPropsStack:()=>Xi,createRoot:()=>Wf,createScope:()=>Zf,createSnapshotId:()=>fo,customDecodeURIComponent:()=>Vl,customEncodeURIComponent:()=>Bl,cutArrayAfterValue:()=>Al,cutArrayBeforeValue:()=>El,debounce:()=>po,debounceOnContext:()=>df,decodeNewlines:()=>jl,deepClone:()=>ot,deepContains:()=>Xl,deepDefaults:()=>ts,deepDestringifyFunctions:()=>Vt,deepExtend:()=>ji,deepMerge:()=>X,deepMergeExtends:()=>pe,deepStringifyFunctions:()=>so,defineSetter:()=>mu,destringifyGlobalScope:()=>ao,detectHeightOnInit:()=>Cu,detectInfiniteLoop:()=>rf,document:()=>K,encodeNewlines:()=>Nl,error:()=>Cr,excludeKeysFromObject:()=>of,exec:()=>tt,extendCachedRegistry:()=>Of,extendStackRegistry:()=>yo,extractArrayExtend:()=>xo,fetchLibraryData:()=>Ea,fibonacciNumberByIndex:()=>Eu,filterArrays:()=>$l,filterArraysFast:()=>Il,finalizeExtends:()=>Hi,findClosestNumber:()=>va,findClosestNumberInFactory:()=>Lu,findInheritedState:()=>aa,findKeyPosition:()=>Ll,flattenExtend:()=>Kr,formatDate:()=>vu,generateHash:()=>Li,generateHeadArrayTags:()=>ka,generateKey:()=>lo,generateMetaTags:()=>Du,get:()=>pu,getCDNUrl:()=>re,getCapitalCaseKeys:()=>Df,getCdnProviderFromConfig:()=>Jr,getChildStateInKey:()=>ia,getChildren:()=>Bo,getContext:()=>Go,getCookie:()=>Sf,getDB:()=>Zo,getEmotionStylesheet:()=>Wu,getExtendsInElement:()=>$f,getExtendsStack:()=>go,getExtendsStackRegistry:()=>Ni,getFrequencyInArray:()=>kl,getHashedExtend:()=>bo,getImportMapScript:()=>ku,getInObjectByPath:()=>ef,getLocalStorage:()=>kf,getNev:()=>ff,getPageMetadata:()=>Fu,getParentStateInKey:()=>sa,getPath:()=>Vo,getQuery:()=>Qo,getRef:()=>gu,getRoot:()=>Wo,getRootContext:()=>qo,getRootData:()=>Ho,getRootState:()=>zo,getRootStateInKey:()=>oa,getSpreadChildren:()=>Ff,global:()=>xl,hasFunction:()=>de,hasHandlerPlugin:()=>zr,hasOwnProperty:()=>Gl,hashContent:()=>Qr,inheritChildExtends:()=>Ui,inheritChildPropsExtends:()=>Vi,inheritParentProps:()=>vo,inheritRecursiveChildExtends:()=>zi,initProps:()=>Vf,is:()=>Tt,isArray:()=>A,isBoolean:()=>Ti,isContextComponent:()=>Lf,isCyclic:()=>nf,isDOMNode:()=>Et,isDate:()=>Ri,isDefined:()=>At,isDevelopment:()=>ze,isEmpty:()=>Pi,isEmptyObject:()=>Kl,isEqualDeep:()=>$i,isFunction:()=>C,isHtmlElement:()=>Kn,isLocal:()=>lf,isMethod:()=>xu,isMobile:()=>xf,isNode:()=>Ce,isNot:()=>Sl,isNotProduction:()=>wr,isNull:()=>Oi,isNumber:()=>ue,isObject:()=>w,isObjectLike:()=>B,isPhoto:()=>Au,isProduction:()=>Ue,isStaging:()=>cf,isState:()=>Kf,isString:()=>S,isStringFunction:()=>hf,isTest:()=>Fi,isTesting:()=>af,isUndefined:()=>pt,isUniversallyReservedKey:()=>Su,isValidHtmlTag:()=>Cf,isWrappedLibrary:()=>es,joinArrays:()=>Nr,jointStacks:()=>Rf,keys:()=>xa,loadCssFile:()=>Pu,loadJavascript:()=>$u,loadJavascriptFile:()=>Tu,loadJavascriptFileEmbedSync:()=>Ru,loadJavascriptFileSync:()=>Ou,loadRemoteCSS:()=>Iu,loadRemoteScript:()=>Zr,log:()=>yu,logGroupIf:()=>bf,logIf:()=>yf,lookdown:()=>uu,lookdownAll:()=>du,lookup:()=>fu,lowercaseFirstLetter:()=>br,makeObjectWithoutPrototype:()=>Yl,map:()=>Wl,mapStringsWithContextComponents:()=>_o,matchesComponentNaming:()=>he,memoize:()=>pf,merge:()=>it,mergeSharedLibraries:()=>rs,nextElement:()=>Yo,normalizeIgnoreList:()=>Ca,normalizeLibraryKey:()=>tn,objectToString:()=>io,objectizeStringProperty:()=>So,overwrite:()=>co,overwriteDeep:()=>Ot,overwriteShallow:()=>Sr,overwriteState:()=>Jf,parse:()=>_a,parseDeep:()=>No,pickupElementFromProps:()=>Ki,pickupPropsFromElement:()=>Gi,previousElement:()=>Xo,propExists:()=>jf,propertizeElement:()=>Yi,propertizeUpdate:()=>Nf,remove:()=>Wg,removeChars:()=>Vu,removeCookie:()=>wf,removeDuplicateProps:()=>Eo,removeDuplicatesInArray:()=>jr,removeFromArray:()=>vl,removeFromObject:()=>Jl,removeNestedKeyByPath:()=>Ql,removeValueFromArray:()=>Zn,removeValueFromArrayAll:()=>Tl,reorderArrayByValues:()=>Rl,replaceLiteralsWithObjectFields:()=>yr,replaceOctalEscapeSequences:()=>Ml,resolveAsset:()=>Pt,resolveHandler:()=>Wr,resolveSharedLibraries:()=>Nu,returnValueAsText:()=>Ji,runPluginHook:()=>bt,self:()=>_l,setActiveRootState:()=>Uo,setCookie:()=>_f,setHashedExtend:()=>Mi,setInObjectByPath:()=>tf,setLocalStorage:()=>vf,setNodeStyles:()=>ba,setProps:()=>hu,setPropsPrototype:()=>Co,sharedLibrary:()=>Mu,spotByPath:()=>jo,srcsetFor:()=>en,stringIncludesAny:()=>eo,stringToObject:()=>ql,swapItemsInArray:()=>Cl,syncProps:()=>Ao,toCamelCase:()=>ns,toDashCase:()=>os,toDescriptionCase:()=>zu,toTitleCase:()=>Uu,toggleFullscreen:()=>wu,triggerEventOn:()=>We,triggerEventOnUpdate:()=>Qf,trimStringFromSymbols:()=>Fl,unstackArrayOfObjects:()=>Jn,update:()=>Bf,updateProps:()=>Uf,variables:()=>Jo,verbose:()=>Xr,warn:()=>Ko,window:()=>k});var O=M(()=>{"use strict";Di();uf();ht();Ee();Hr();Br();Yn();dg();pg();ro();Gn();hg();Ef();If();zf();qi();vg();Cg();Ur();Eg();Gg();ru();Kg();tu();Yg();Xg();Jg();Zg();Qg();tm();em();rm();om();sm();lm();fm();um();dm()});var V_=ol((rL,B_)=>{var Nn=1e3,jn=Nn*60,Bn=jn*60,Dr=Bn*24,fC=Dr*7,uC=Dr*365.25;B_.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return dC(t);if(r==="number"&&isFinite(t))return e.long?hC(t):pC(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function dC(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*uC;case"weeks":case"week":case"w":return r*fC;case"days":case"day":case"d":return r*Dr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Bn;case"minutes":case"minute":case"mins":case"min":case"m":return r*jn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Nn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function pC(t){var e=Math.abs(t);return e>=Dr?Math.round(t/Dr)+"d":e>=Bn?Math.round(t/Bn)+"h":e>=jn?Math.round(t/jn)+"m":e>=Nn?Math.round(t/Nn)+"s":t+"ms"}function hC(t){var e=Math.abs(t);return e>=Dr?Jc(t,e,Dr,"day"):e>=Bn?Jc(t,e,Bn,"hour"):e>=jn?Jc(t,e,jn,"minute"):e>=Nn?Jc(t,e,Nn,"second"):t+" ms"}function Jc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var z_=ol((nL,U_)=>{function gC(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=V_(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,d=null,h,g;function p(...m){if(!p.enabled)return;let b=p,x=Number(new Date),y=x-(u||x);b.diff=y,b.prev=u,b.curr=x,u=x,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(T,P)=>{if(T==="%%")return"%";_++;let U=r.formatters[P];if(typeof U=="function"){let R=m[_];T=U.call(b,R),m.splice(_,1),_--}return T}),r.formatArgs.call(b,m),(b.log||r.log).apply(b,m)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=n,p.destroy=r.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(f)),g),set:m=>{d=m}}),typeof r.init=="function"&&r.init(p),p}function n(f,u){let d=r(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function s(f,u){let d=0,h=0,g=-1,p=0;for(;d<f.length;)if(h<u.length&&(u[h]===f[d]||u[h]==="*"))u[h]==="*"?(g=h,p=d,h++):(d++,h++);else if(g!==-1)h=g+1,p++,d=p;else return!1;for(;h<u.length&&u[h]==="*";)h++;return h===u.length}function i(){let f=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))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}U_.exports=gC});var W_=ol((It,Zc)=>{It.formatArgs=yC;It.save=bC;It.load=xC;It.useColors=mC;It.storage=_C();It.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`."))}})();It.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 mC(){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 yC(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Zc.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)}It.log=console.debug||console.log||(()=>{});function bC(t){try{t?It.storage.setItem("debug",t):It.storage.removeItem("debug")}catch{}}function xC(){let t;try{t=It.storage.getItem("debug")||It.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function _C(){try{return localStorage}catch{}}Zc.exports=z_()(It);var{formatters:SC}=Zc.exports;SC.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var eg={};D(eg,{ANIMATION_PROPS:()=>Wd,ARIA_ROLES:()=>G0,ATTR_TRANSFORMS:()=>lp,BLOCK_PROPS:()=>Hd,CDN_PROVIDERS:()=>ee,CONFIG:()=>ds,CSS_NATIVE_COLOR_REGEX:()=>ne,CSS_PROPS_REGISTRY:()=>mt,CSS_UNITS:()=>Mr,DEFAULT_CONFIG:()=>Js,DEFAULT_CSS_PROPERTIES_LIST:()=>xt,DELEGATED_EVENTS:()=>bn,DESIGN_SYSTEM_OPTIONS:()=>yh,DOMQL_EVENTS:()=>zl,DOMQ_PROPERTIES:()=>Be,DOM_EVENTS:()=>ty,ENV:()=>sf,FACTORY:()=>be,FLEX_PROPS:()=>Xd,FONT_PROPS:()=>qd,GRID_PROPS:()=>Jd,HTML_ATTRIBUTES:()=>cc,HTML_TAGS:()=>qr,LIFECYCLE_EVENTS:()=>rr,METHODS:()=>Vr,METHODS_EXL:()=>oo,MISC_PROPS:()=>Gd,MIXINS:()=>oc,NODE_ENV:()=>Qt,OPTIONS:()=>To,PACKAGE_MANAGER_TO_CDN:()=>Ge,PARSED_DOMQ_PROPERTIES:()=>no,POSITION_PROPS:()=>Kd,PROPS_METHODS:()=>Ve,REGISTRY:()=>kt,RESERVED_STORE_METHODS:()=>hr,ROUTER_OPTIONS:()=>Cc,STATE_PROPERTIES:()=>Ul,STORE_METHOD_NAMES:()=>Wn,SVG_TAGS:()=>mn,THEME_PROPS:()=>Yd,TIMING_PROPS:()=>Gs,TYPES:()=>Xn,UNIVERSAL_RESERVED_KEYS:()=>Sa,VALUE_TRANSFORMERS:()=>tc,__resetStateShadowWarnings:()=>ml,activateConfig:()=>mm,addCaching:()=>na,addContext:()=>ra,addDelegatedEvent:()=>Ws,addExtend:()=>Pf,addExtends:()=>Rt,addItemAfterEveryElement:()=>Ol,addMethods:()=>kn,addProtoToArray:()=>Qn,addRef:()=>Qi,animation:()=>gd,appendSVGSprite:()=>Fs,appendSvgIconsSprite:()=>Ms,applyAttrTransforms:()=>dp,applyCSS:()=>dh,applyDependentState:()=>Xf,applyDocument:()=>Ds,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>_n,applyHeadings:()=>Ka,applyInitialState:()=>ac,applyMediaSequenceVars:()=>Xe,applyProps:()=>wo,applyReset:()=>Ns,applySequenceGlobalVars:()=>xs,applySequenceVars:()=>$e,applySpacingSequence:()=>Rs,applyStateMethods:()=>Nt,applyTimingSequence:()=>Is,applyTrueProps:()=>Qd,applyTypographySequence:()=>As,arrayContainsOtherArray:()=>wl,arraysEqual:()=>Pl,arrayzeValue:()=>Er,batch:()=>ve,breakpoints:()=>pd,buildImgSrcset:()=>ss,buildSourcesAndImg:()=>is,cache:()=>eu,cacheNode:()=>er,call:()=>bu,callStateMethod:()=>Ys,captureSnapshot:()=>_u,changeGlobalTheme:()=>ec,changeLightness:()=>Xu,checkAttributeByTagName:()=>sr,checkEventFunctions:()=>up,checkForStateTypes:()=>qf,checkIfBoxSize:()=>Os,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>Dl,class:()=>_d,clone:()=>Hl,cloneAndMergeArrayExtend:()=>ho,cloneFunction:()=>gf,color:()=>id,colorStringToRgbaArray:()=>me,components:()=>Tn,concatAddExtends:()=>Tf,convertSvgToSymbol:()=>_s,copyJavaScriptToClipboard:()=>Bu,copyStringToClipboard:()=>ju,create:()=>tg,createAsync:()=>HC,createBasedOnType:()=>Zi,createComputed:()=>fl,createConfig:()=>Ua,createDefine:()=>Rx,createEffect:()=>Q,createElement:()=>Hf,createElementExtends:()=>Bi,createExtends:()=>mo,createExtendsFromKeys:()=>Gr,createExtendsStack:()=>Wi,createHTMLNode:()=>gn,createIfConditionFlag:()=>mf,createInheritedState:()=>Gf,createKey:()=>uo,createNestedObject:()=>Zl,createNestedObjectByKeyPath:()=>Yf,createObjectWithoutPrototype:()=>Ii,createParent:()=>ta,createPath:()=>ea,createProps:()=>ko,createPropsStack:()=>Xi,createRoot:()=>Wf,createScope:()=>Zf,createScopeStore:()=>Hn,createSignal:()=>Bt,createSkeleton:()=>GC,createSnapshotId:()=>fo,createState:()=>op,createStore:()=>Dt,createSync:()=>qC,css:()=>ie,cssMediaVars:()=>Ba,cssVars:()=>ja,customDecodeURIComponent:()=>Vl,customEncodeURIComponent:()=>Bl,cutArrayAfterValue:()=>Al,cutArrayBeforeValue:()=>El,debounce:()=>po,debounceOnContext:()=>df,decodeNewlines:()=>jl,deepClone:()=>ot,deepContains:()=>Xl,deepDefaults:()=>ts,deepDestringifyFunctions:()=>Vt,deepExtend:()=>ji,deepMerge:()=>X,deepMergeExtends:()=>pe,deepStringifyFunctions:()=>so,defaultDefine:()=>Rn,defineSetter:()=>mu,destringifyGlobalScope:()=>ao,destroy:()=>ni,detectHeightOnInit:()=>Cu,detectInfiniteLoop:()=>rf,detectTag:()=>tr,devices:()=>hd,dispose:()=>nr,encodeNewlines:()=>Nl,error:()=>Cr,excludeKeysFromObject:()=>of,exec:()=>tt,executeAttr:()=>Y0,exetuteClassPerComponent:()=>L0,extendCachedRegistry:()=>Of,extendStackRegistry:()=>yo,extractArrayExtend:()=>xo,extractConditionalAttrs:()=>Z0,fetchLibraryData:()=>Ea,fibonacciNumberByIndex:()=>Eu,filterArrays:()=>$l,filterArraysFast:()=>Il,filterAttributesByTagName:()=>K0,finalizeExtends:()=>Hi,findClosestNumber:()=>va,findClosestNumberInFactory:()=>Lu,findHeadingLetter:()=>Ha,findHeadings:()=>bs,findInheritedState:()=>aa,findKeyPosition:()=>Ll,flattenExtend:()=>Kr,font:()=>td,fontFace:()=>nd,fontFamily:()=>ed,fontFamilyTypes:()=>rd,formatDate:()=>vu,generateHash:()=>Li,generateHeadArrayTags:()=>ka,generateKey:()=>lo,generateMetaTags:()=>Du,generateSequence:()=>$t,generateSequencePosition:()=>vd,generateSprite:()=>an,generateSubSequence:()=>ms,get:()=>pu,getActiveConfig:()=>E,getActiveDocument:()=>nc,getActiveLang:()=>si,getCDNUrl:()=>re,getCacheSize:()=>Nd,getCapitalCaseKeys:()=>Df,getCdnProviderFromConfig:()=>Jr,getChildStateInKey:()=>ia,getChildren:()=>Bo,getColor:()=>rt,getColorShade:()=>$a,getContext:()=>Go,getCookie:()=>Sf,getDB:()=>Zo,getDefaultOrFirstKey:()=>Ar,getEmotionStylesheet:()=>Wu,getExtendsInElement:()=>$f,getExtendsStack:()=>go,getExtendsStackRegistry:()=>Ni,getFnPrefixAndValue:()=>Pe,getFontFace:()=>Zu,getFontFaceEach:()=>Tr,getFontFaceEachString:()=>La,getFontFaceString:()=>cs,getFontFamily:()=>Es,getFontFormat:()=>Da,getFontSizeByKey:()=>Ts,getFrequencyInArray:()=>kl,getHashedExtend:()=>bo,getImportMapScript:()=>ku,getInObjectByPath:()=>ef,getLanguages:()=>Tc,getLocalStateLang:()=>Ic,getLocalStorage:()=>kf,getMediaColor:()=>yt,getMediaTheme:()=>Wt,getNev:()=>ff,getObserver:()=>pr,getPageMetadata:()=>Fu,getParentStateInKey:()=>sa,getPath:()=>Vo,getQuery:()=>Qo,getRef:()=>gu,getRgbTone:()=>Ke,getRoot:()=>Wo,getRootContext:()=>qo,getRootData:()=>Ho,getRootState:()=>zo,getRootStateInKey:()=>oa,getSequenceValue:()=>ys,getSequenceValueBySymbols:()=>Wa,getSequenceValuePropertyPair:()=>_e,getShadow:()=>$s,getSignals:()=>yl,getSpacingBasedOnRatio:()=>oe,getSpacingByKey:()=>dt,getSpreadChildren:()=>Ff,getSubratio:()=>gs,getSubratioDifference:()=>hs,getSystemGlobalTheme:()=>Yt,getTheme:()=>ws,getTimingByKey:()=>Ft,getTimingFunction:()=>Ht,global:()=>xl,gradient:()=>ad,grid:()=>xd,hasFunction:()=>de,hasHandlerPlugin:()=>zr,hasOwnProperty:()=>Gl,hashContent:()=>Qr,hexToRgb:()=>qu,hexToRgbArray:()=>Ta,hexToRgba:()=>Ku,hslToRgb:()=>Pa,icons:()=>fd,inheritChildExtends:()=>Ui,inheritChildPropsExtends:()=>Vi,inheritParentProps:()=>vo,inheritRecursiveChildExtends:()=>zi,init:()=>De,initPolyglot:()=>_h,initProps:()=>Vf,injectGlobal:()=>ft,is:()=>Tt,isArray:()=>A,isBoolean:()=>Ti,isCSSVar:()=>at,isContextComponent:()=>Lf,isCyclic:()=>nf,isDOMNode:()=>Et,isDate:()=>Ri,isDefined:()=>At,isDevelopment:()=>ze,isEmpty:()=>Pi,isEmptyObject:()=>Kl,isEqualDeep:()=>$i,isFunction:()=>C,isGoogleFontsUrl:()=>nn,isHtmlElement:()=>Kn,isLocal:()=>lf,isMethod:()=>xu,isMobile:()=>xf,isNode:()=>Ce,isNot:()=>Sl,isNotProduction:()=>wr,isNull:()=>Oi,isNumber:()=>ue,isObject:()=>w,isObjectLike:()=>B,isPhoto:()=>Au,isProduction:()=>Ue,isRawUnitValue:()=>qn,isResolvedColor:()=>ye,isScalingUnit:()=>mr,isStaging:()=>cf,isState:()=>Kf,isStore:()=>st,isString:()=>S,isStringFunction:()=>hf,isSvgTag:()=>yn,isTest:()=>Fi,isTesting:()=>af,isTracking:()=>ip,isUndefined:()=>pt,isUniversallyReservedKey:()=>Su,isValidHtmlTag:()=>Cf,isValidTag:()=>hn,isWasmLoaded:()=>gx,isWrappedLibrary:()=>es,joinArrays:()=>Nr,jointStacks:()=>Rf,keyframes:()=>pn,keys:()=>xa,loadCssFile:()=>Pu,loadJavascript:()=>$u,loadJavascriptFile:()=>Tu,loadJavascriptFileEmbedSync:()=>Ru,loadJavascriptFileSync:()=>Ou,loadRemoteCSS:()=>Iu,loadRemoteScript:()=>Zr,loadTranslations:()=>Rc,loadWasm:()=>hx,log:()=>yu,logGroupIf:()=>bf,logIf:()=>yf,lookdown:()=>uu,lookdownAll:()=>du,lookup:()=>fu,lowercaseFirstLetter:()=>br,makeObjectWithoutPrototype:()=>Yl,map:()=>Wl,mapStringsWithContextComponents:()=>_o,matchesComponentNaming:()=>he,media:()=>od,memoize:()=>pf,merge:()=>it,mergeSharedLibraries:()=>rs,mixTwoColors:()=>Hu,mixTwoRgb:()=>Yu,mixTwoRgba:()=>Ia,nextElement:()=>Yo,normalizeIgnoreList:()=>Ca,normalizeLibraryKey:()=>tn,numToLetterMap:()=>xe,objectToString:()=>io,objectizeStringProperty:()=>So,opacify:()=>rn,overwrite:()=>co,overwriteDeep:()=>Ot,overwriteShallow:()=>Sr,overwriteState:()=>Jf,parse:()=>_a,parseColorToken:()=>Te,parseDeep:()=>No,pickupElementFromProps:()=>Ki,pickupPropsFromElement:()=>Gi,polyglotFunctions:()=>ii,polyglotPlugin:()=>Dc,popConfig:()=>J,previousElement:()=>Xo,propExists:()=>jf,propertizeElement:()=>Yi,propertizeUpdate:()=>Nf,pushConfig:()=>et,registerEvent:()=>xn,reinit:()=>uh,remove:()=>wn,removeChars:()=>Vu,removeCookie:()=>wf,removeDelegatedEvent:()=>Hs,removeDuplicateProps:()=>Eo,removeDuplicatesInArray:()=>jr,removeFromArray:()=>vl,removeFromObject:()=>Jl,removeNestedKeyByPath:()=>Ql,removeValueFromArray:()=>Zn,removeValueFromArrayAll:()=>Tl,reorderArrayByValues:()=>Rl,replaceLiteralsWithObjectFields:()=>yr,replaceOctalEscapeSequences:()=>Ml,resolveAsset:()=>Pt,resolveColorsInGradient:()=>Bs,resolveFileSource:()=>cp,resolveFileUrl:()=>zt,resolveHandler:()=>Wr,resolvePropValue:()=>or,resolveSharedLibraries:()=>Nu,returnSubThemeOrDefault:()=>Ju,returnValueAsText:()=>Ji,rgbArrayToHex:()=>Oa,rgbToHSL:()=>Ra,rgbToHex:()=>Gu,runPluginHook:()=>bt,runThroughMedia:()=>Ga,scratchDefaultConfig:()=>sn,scratchSystem:()=>un,scratchUtils:()=>Je,self:()=>_l,semanticIcons:()=>ud,sequence:()=>Re,set:()=>Or,setActiveConfig:()=>Va,setActiveDocument:()=>Ld,setActiveRootState:()=>Uo,setClass:()=>Mk,setClassname:()=>M0,setColor:()=>Ze,setCookie:()=>_f,setCssEngineHook:()=>Sc,setCustomFont:()=>as,setCustomFontMedia:()=>Ye,setEach:()=>$d,setFont:()=>Cs,setFontFamily:()=>ln,setFontImport:()=>on,setGradient:()=>cn,setHashedExtend:()=>Mi,setInCustomFontMedia:()=>Fa,setInObjectByPath:()=>tf,setLang:()=>Pc,setLocalStorage:()=>vf,setMediaTheme:()=>vs,setNodeStyles:()=>ba,setObserver:()=>ll,setProps:()=>hu,setPropsPrototype:()=>Co,setSVG:()=>fn,setScalingVar:()=>ps,setShadow:()=>Qe,setSubScalingVar:()=>za,setSvgIcon:()=>Ls,setTheme:()=>ks,setValue:()=>Pd,setVariables:()=>Cd,setWasmEngine:()=>zs,shadow:()=>ld,sharedLibrary:()=>Mu,sizes:()=>wd,spacing:()=>sd,splitSpacedValue:()=>Ps,splitTopLevelCommas:()=>Oe,splitTransition:()=>Qa,spotByPath:()=>jo,srcsetFor:()=>en,stringIncludesAny:()=>eo,stringToObject:()=>ql,svg:()=>md,svgData:()=>yd,swapItemsInArray:()=>Cl,syncProps:()=>Ao,templates:()=>bd,theme:()=>cd,timing:()=>dd,toCamel:()=>us,toCamelCase:()=>ns,toDashCase:()=>os,toDescriptionCase:()=>zu,toTitleCase:()=>Uu,toggleFullscreen:()=>wu,transformBackgroundImage:()=>Ja,transformBorder:()=>Se,transformBorderRadius:()=>Us,transformBoxShadow:()=>js,transformClassname:()=>qm,transformDuration:()=>Vs,transformShadow:()=>Xa,transformSize:()=>ct,transformSizeRatio:()=>N,transformTextStroke:()=>Ya,transformTransition:()=>Rd,transformersByPrefix:()=>tp,transfromGap:()=>Za,translate:()=>Oc,triggerEventOn:()=>We,triggerEventOnUpdate:()=>Qf,trimStringFromSymbols:()=>Fl,typography:()=>ls,unit:()=>Qu,unstackArrayOfObjects:()=>Jn,update:()=>Sn,updateProps:()=>Uf,updateVars:()=>Lk,upsertTranslation:()=>$c,useCssInProps:()=>Mt,useHostState:()=>sp,usePropsAsCSS:()=>Wm,useSelectorsAsCSS:()=>Hm,variables:()=>Jo,vars:()=>Sd,verbose:()=>Xr,warn:()=>Ko,warnStateKeyShadowsMethod:()=>gr,window:()=>k,wrapHoverRule:()=>se});var bl={};D(bl,{RESERVED_STORE_METHODS:()=>hr,STORE_METHOD_NAMES:()=>Wn,__resetStateShadowWarnings:()=>ml,batch:()=>ve,createComputed:()=>fl,createEffect:()=>Q,createScopeStore:()=>Hn,createSignal:()=>Bt,createStore:()=>Dt,getObserver:()=>pr,getSignals:()=>yl,isStore:()=>st,setObserver:()=>ll,warnStateKeyShadowsMethod:()=>gr});var Ct=null,vi=0,Ci=[],pr=()=>Ct,ll=t=>{Ct=t},Ei=0,sl=[];function Bt(t){let e=new Set;function r(){return Ct&&(e.add(Ct),Ct._sources.add(s)),t}function n(i){i!==t&&(t=i,vS(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function fl(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){cl(o);let s=Ct;Ct=o;try{e=t(),r=!1}finally{Ct=s}},_notify(){r=!0,n.size>0&&ig(n)},get(){return Ct&&(n.add(Ct),Ct._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var fe=new Set,il=!1;function Q(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;cl(n);let o=Ct;Ct=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Ct=o}},_notify(){n._disposed||(vi>0?Ci.push(n):Ei>0?sl.push(n):ul(n))},dispose(){n._disposed=!0,cl(n)}};return n._execute(),n}function ve(t){vi++;try{t()}finally{vi--,vi===0&&kS()}}var al=!1,ng=1e3,SS=8;function og(){return typeof performance<"u"?performance.now():Date.now()}function ul(t){fe.add(t),!al&&(il||(il=!0,queueMicrotask(sg)))}var Lr=[];function wS(){if(fe.size===1){let[t]=fe;fe.clear(),t._disposed||t._execute();return}Lr.length=0;for(let t of fe)Lr.push(t);fe.clear(),Lr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<Lr.length;t++){let e=Lr[t];e._disposed||e._execute()}Lr.length=0}function sg(t=0){if(il=!1,fe.size===0)return;al=!0;let e=og(),r=!1;try{for(;fe.size>0;){if(++t>ng){console.error("[smbls] reactive effect cascade exceeded",ng,"passes in a single flush \u2014 breaking to avoid hanging the thread.","This usually means an effect (or an onUpdate/subscribeTo handler","it calls into) unconditionally writes back a signal it depends on."),fe.clear();break}if(wS(),fe.size>0&&og()-e>SS){r=!0,setTimeout(()=>sg(t),0);break}}}finally{r||(al=!1)}}function kS(){for(let t=0;t<Ci.length;t++)ul(Ci[t]);Ci.length=0}function ig(t){Ei++;try{for(let e of t)e._notify()}finally{if(Ei--,Ei===0&&sl.length>0){let e=sl.splice(0);for(let r=0;r<e.length;r++)ul(e[r])}}}function vS(t){ig(t)}function cl(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var je=Symbol("store"),Ai=Symbol("signals"),Wn=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],hr=new Set(Wn),hl=new Set,ag=(t,e)=>t?t+"."+e:String(e);function gr(t,e){let r=(e||"")+"::"+t;if(hl.has(r))return;hl.add(r);let n=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${n}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${n}.${t}(\u2026)" no longer reaches the store method on this node. Use "${n}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${Wn.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function ml(){hl.clear()}var dl=t=>!t||typeof t!="object"||Array.isArray(t)||t[je]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName,CS=12,cg=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function gl(t,e,r){if(t===e)return!0;if(r>CS)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!gl(t[n],e[n],r+1))return!1;return!0}if(cg(t)&&cg(e)){let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s of n)if(!Object.prototype.hasOwnProperty.call(e,s)||!gl(t[s],e[s],r+1))return!1;return!0}return!1}function Dt(t,e,r,n){r===void 0&&(r=0),n===void 0&&(n="");let o={},s={},i=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let x in t){if(x==="__proto__"||!Object.prototype.hasOwnProperty.call(t,x))continue;hr.has(x)&&gr(x,n);let y=t[x];r<i&&y&&typeof y=="object"&&!dl(y)?(s[x]=y,o[x]=Bt(Dt(y,e,r+1,ag(n,x)))):(s[x]=y,o[x]=Bt(y))}let a=new Proxy(s,{get(x,y){if(y===je)return!0;if(y===Ai)return o;if(y==="__raw")return x;if(y==="$update")return c;if(y==="$parse")return f;if(y==="$clean")return u;if(y==="$keys")return d;if(y==="$values")return h;if(y==="$replace")return g;if(y==="$add")return p;if(y==="$remove")return m;if(y==="$destroy")return b;if(y==="$quietUpdate")return l;if(hr.has(y)&&!Object.prototype.hasOwnProperty.call(o,y))switch(y){case"update":return c;case"parse":return f;case"clean":return u;case"keys":return d;case"values":return h;case"replace":return g;case"add":return p;case"remove":return m;case"destroy":return b;case"quietUpdate":return l}if(y==="__element")return x.__element;if(y==="parent")return x.parent;if(y==="root")return x.root;if(Object.prototype.hasOwnProperty.call(o,y)){let v=o[y].get();if(v!==void 0||!(y!=="root"&&x.root&&x.root!==a))return v}if(x[y]!==void 0)return x[y];let _=typeof y=="string"&&!y.startsWith("__")&&y!=="then"&&y!=="constructor"&&pr()!=null;if(y!=="root"&&x.root&&x.root!==a){let v=x.root[y];return v===void 0&&_&&!Object.prototype.hasOwnProperty.call(o,y)?(o[y]=Bt(void 0),o[y].get()):v}if(_)return o[y]=Bt(void 0),o[y].get()},set(x,y,_){if(y==="__proto__")return!1;if(y==="__element"||y==="parent"||y==="root")return x[y]=_,!0;hr.has(y)&&gr(y,n);let v=ag(n,y);if(Object.prototype.hasOwnProperty.call(o,y))if(_&&typeof _=="object"&&!dl(_)){if(_===x[y])return!0;let T=o[y].peek(),P=T&&T[je]?T.$parse():T;if(gl(_,P,0))return!0;x[y]=_,o[y].set(Dt(_,e,r+1,v))}else x[y]=_,o[y].set(_);else x[y]=_,_&&typeof _=="object"&&!dl(_)?o[y]=Bt(Dt(_,e,r+1,v)):o[y]=Bt(_);return!0},has(x,y){return typeof y=="string"&&y.charCodeAt(0)===36&&hr.has(y.slice(1))?!0:y in o||y in x},ownKeys(x){return Object.keys(o)},getOwnPropertyDescriptor(x,y){return y in o?{enumerable:!0,configurable:!0,value:o[y].peek()}:Object.getOwnPropertyDescriptor(x,y)},deleteProperty(x,y){return o[y]&&(o[y].set(void 0),delete o[y]),delete x[y],!0}});function c(x,y){ve(()=>{for(let v in x)v!=="__proto__"&&(a[v]=x[v])});let _=s.__element;return _&&_.onUpdate&&!y?.quiet&&_.onUpdate(_,a,_.context),a}function l(x){return c(x,{quiet:!0})}function f(x){if(x||(x=new Set),x.has(a))return"[Circular]";x.add(a);let y={};for(let _ in o){if(_==="parent"||_==="root"||_.startsWith("__"))continue;let v=o[_].peek();v&&v[je]?y[_]=v.$parse(x):y[_]=v}return y}function u(){return ve(()=>{for(let x in o)delete a[x]}),a}function d(){return Object.keys(o)}function h(){return Object.keys(o).map(x=>o[x].peek())}function g(x){return ve(()=>{for(let y in o)y in x||delete a[y];for(let y in x)y!=="__proto__"&&(a[y]=x[y])}),a}function p(x,y){return a[x]=y,a}function m(x){return delete a[x],a}function b(){u(),s.__element=null,s.parent=null}return a}function st(t){return t&&t[je]===!0}function yl(t){return t[Ai]}function Hn(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=Bt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[Ai];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[je]?a[pl]:null}return null};return new Proxy(n,{get(i,a){return a===je?!0:a===Ai?r:a===pl?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]=Bt(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[je]?c[pl]: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 pl=Symbol("scope.parent");var jd={};D(jd,{css:()=>ie,getActiveDocument:()=>nc,getCacheSize:()=>Nd,injectGlobal:()=>ft,keyframes:()=>pn,reset:()=>Im,setActiveDocument:()=>Ld,setWasmEngine:()=>zs,wrapHoverRule:()=>se});var Id={};D(Id,{CONFIG:()=>ds,CSS_NATIVE_COLOR_REGEX:()=>ne,CSS_UNITS:()=>Mr,FACTORY:()=>be,VALUE_TRANSFORMERS:()=>tc,activateConfig:()=>mm,animation:()=>gd,appendSVGSprite:()=>Fs,appendSvgIconsSprite:()=>Ms,applyDocument:()=>Ds,applyHeadings:()=>Ka,applyMediaSequenceVars:()=>Xe,applyReset:()=>Ns,applySequenceGlobalVars:()=>xs,applySequenceVars:()=>$e,applySpacingSequence:()=>Rs,applyTimingSequence:()=>Is,applyTypographySequence:()=>As,breakpoints:()=>pd,changeGlobalTheme:()=>ec,changeLightness:()=>Xu,checkIfBoxSize:()=>Os,class:()=>_d,color:()=>id,colorStringToRgbaArray:()=>me,convertSvgToSymbol:()=>_s,createConfig:()=>Ua,cssMediaVars:()=>Ba,cssVars:()=>ja,devices:()=>hd,document:()=>pm,findHeadingLetter:()=>Ha,findHeadings:()=>bs,font:()=>td,fontFace:()=>nd,fontFamily:()=>ed,fontFamilyTypes:()=>rd,generateSequence:()=>$t,generateSequencePosition:()=>vd,generateSprite:()=>an,generateSubSequence:()=>ms,getActiveConfig:()=>E,getColor:()=>rt,getColorShade:()=>$a,getDefaultOrFirstKey:()=>Ar,getFnPrefixAndValue:()=>Pe,getFontFace:()=>Zu,getFontFaceEach:()=>Tr,getFontFaceEachString:()=>La,getFontFaceString:()=>cs,getFontFamily:()=>Es,getFontFormat:()=>Da,getFontSizeByKey:()=>Ts,getMediaColor:()=>yt,getMediaTheme:()=>Wt,getRgbTone:()=>Ke,getSequenceValue:()=>ys,getSequenceValueBySymbols:()=>Wa,getSequenceValuePropertyPair:()=>_e,getShadow:()=>$s,getSpacingBasedOnRatio:()=>oe,getSpacingByKey:()=>dt,getSubratio:()=>gs,getSubratioDifference:()=>hs,getTheme:()=>ws,getTimingByKey:()=>Ft,getTimingFunction:()=>Ht,gradient:()=>ad,grid:()=>xd,hexToRgb:()=>qu,hexToRgbArray:()=>Ta,hexToRgba:()=>Ku,hslToRgb:()=>Pa,icons:()=>fd,isCSSVar:()=>at,isGoogleFontsUrl:()=>nn,isRawUnitValue:()=>qn,isResolvedColor:()=>ye,isScalingUnit:()=>mr,media:()=>od,mixTwoColors:()=>Hu,mixTwoRgb:()=>Yu,mixTwoRgba:()=>Ia,numToLetterMap:()=>xe,opacify:()=>rn,parseColorToken:()=>Te,popConfig:()=>J,pushConfig:()=>et,reset:()=>hm,resolveColorsInGradient:()=>Bs,resolveFileUrl:()=>zt,returnSubThemeOrDefault:()=>Ju,rgbArrayToHex:()=>Oa,rgbToHSL:()=>Ra,rgbToHex:()=>Gu,runThroughMedia:()=>Ga,scratchDefaultConfig:()=>sn,scratchSystem:()=>un,scratchUtils:()=>Je,semanticIcons:()=>ud,sequence:()=>Re,set:()=>Or,setActiveConfig:()=>Va,setColor:()=>Ze,setCustomFont:()=>as,setCustomFontMedia:()=>Ye,setEach:()=>$d,setFont:()=>Cs,setFontFamily:()=>ln,setFontImport:()=>on,setGradient:()=>cn,setInCustomFontMedia:()=>Fa,setMediaTheme:()=>vs,setSVG:()=>fn,setScalingVar:()=>ps,setShadow:()=>Qe,setSubScalingVar:()=>za,setSvgIcon:()=>Ls,setTheme:()=>ks,setValue:()=>Pd,setVariables:()=>Cd,shadow:()=>ld,sizes:()=>wd,spacing:()=>sd,splitSpacedValue:()=>Ps,splitTopLevelCommas:()=>Oe,splitTransition:()=>Qa,svg:()=>md,svgData:()=>yd,templates:()=>bd,theme:()=>cd,timing:()=>dd,toCamel:()=>us,transformBackgroundImage:()=>Ja,transformBorder:()=>Se,transformBorderRadius:()=>Us,transformBoxShadow:()=>js,transformDuration:()=>Vs,transformShadow:()=>Xa,transformSize:()=>ct,transformSizeRatio:()=>N,transformTextStroke:()=>Ya,transformTransition:()=>Rd,transfromGap:()=>Za,typography:()=>ls,unit:()=>Qu,vars:()=>Sd});var Je={};D(Je,{CSS_NATIVE_COLOR_REGEX:()=>ne,CSS_UNITS:()=>Mr,applyMediaSequenceVars:()=>Xe,applySequenceGlobalVars:()=>xs,applySequenceVars:()=>$e,changeLightness:()=>Xu,colorStringToRgbaArray:()=>me,convertSvgToSymbol:()=>_s,findHeadingLetter:()=>Ha,findHeadings:()=>bs,generateSequence:()=>$t,generateSequencePosition:()=>vd,generateSprite:()=>an,generateSubSequence:()=>ms,getColorShade:()=>$a,getDefaultOrFirstKey:()=>Ar,getFnPrefixAndValue:()=>Pe,getFontFace:()=>Zu,getFontFaceEach:()=>Tr,getFontFaceEachString:()=>La,getFontFaceString:()=>cs,getFontFormat:()=>Da,getRgbTone:()=>Ke,getSequenceValue:()=>ys,getSequenceValueBySymbols:()=>Wa,getSequenceValuePropertyPair:()=>_e,getSubratio:()=>gs,getSubratioDifference:()=>hs,hexToRgb:()=>qu,hexToRgbArray:()=>Ta,hexToRgba:()=>Ku,hslToRgb:()=>Pa,isCSSVar:()=>at,isGoogleFontsUrl:()=>nn,isRawUnitValue:()=>qn,isResolvedColor:()=>ye,isScalingUnit:()=>mr,mixTwoColors:()=>Hu,mixTwoRgb:()=>Yu,mixTwoRgba:()=>Ia,numToLetterMap:()=>xe,opacify:()=>rn,parseColorToken:()=>Te,resolveFileUrl:()=>zt,returnSubThemeOrDefault:()=>Ju,rgbArrayToHex:()=>Oa,rgbToHSL:()=>Ra,rgbToHex:()=>Gu,setCustomFont:()=>as,setCustomFontMedia:()=>Ye,setFontImport:()=>on,setInCustomFontMedia:()=>Fa,setScalingVar:()=>ps,setSubScalingVar:()=>za,setVariables:()=>Cd,splitTopLevelCommas:()=>Oe});var mr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Mr=["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"],ES=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),AS=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Mr.filter(t=>t!=="auto").map(ES).join("|")})$`),qn=t=>AS.test(String(t).trim());O();var me=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&&K&&k){let e=K.body.appendChild(K.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){K.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return K.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,K.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]},Hu=(t,e,r=.5)=>(t=me(t),e=me(e),Ia(t,e,r)),qu=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Ta=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Gu=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Oa=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Ku=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Yu=(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})`},Xu=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Ra=(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]},Pa=(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)],$a=(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)},Ia=(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})`},rn=(t,e)=>{let r=me(t);if(!r){wr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},at=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ne=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Iw=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Te=t=>{if(!S(t))return null;if(ne.test(t))return{passthrough:t};if(at(t))return{cssVar:t};let e=t.match(Iw);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}},ye=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Oe=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},Ke=(t,e)=>{S(t)&&t.includes("rgb")&&(t=me(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ue(e)&&(e+="");let r=Oa(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=$a(r,parseFloat(e));return Ta(o).join(", ")}else{let[o,s,i]=t,a=Ra(o,s,i),[c,l,f]=a;return Pa(c,l,parseFloat(e)/100*255)}};var Ju=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var zt=(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},Ar=(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},Da=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},nn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),on=t=>`@import url('${t}');`,Fa=t=>`@font-face { ${t} }`,as=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Da(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
32
32
  `);return`
33
33
  font-family: '${t}';