var A=["radix","base"],m=["nova","vega","maia","lyra","mira"],p=["neutral","stone","zinc","gray","mauve","olive","mist","taupe"],c=["neutral","stone","zinc","gray","amber","blue","cyan","emerald","fuchsia","green","indigo","lime","orange","pink","purple","red","rose","sky","teal","violet","yellow","mauve","olive","mist","taupe"],b=c,I={neutral:"blue",stone:"lime",zinc:"amber",mauve:"emerald",olive:"violet",mist:"rose",taupe:"cyan"},R=["lucide","hugeicons","tabler","phosphor","remixicon"],E=["inter","noto-sans","nunito-sans","figtree","roboto","raleway","dm-sans","public-sans","outfit","jetbrains-mono","geist","geist-mono","lora","merriweather","playfair-display","noto-serif","roboto-slab","oxanium","manrope","space-grotesk","montserrat","ibm-plex-sans","source-sans-3","instrument-sans"],g=["inherit",...E],_=["default","none","small","medium","large"],y=["subtle","bold"],d=["default","inverted","default-translucent","inverted-translucent"],f=[{key:"menuColor",values:d,bits:3},{key:"menuAccent",values:y,bits:3},{key:"radius",values:_,bits:4},{key:"font",values:E,bits:6},{key:"iconLibrary",values:R,bits:6},{key:"theme",values:c,bits:6},{key:"baseColor",values:p,bits:6},{key:"style",values:m,bits:6}],a=[...f,{key:"chartColor",values:b,bits:6},{key:"fontHeading",values:g,bits:5}],T=Object.fromEntries(a.map(e=>[e.key,e.values[0]])),l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",P="b",S=["a","b"];function C(e){if(e===0)return "0";let t="",n=e;for(;n>0;)t=l[n%62]+t,n=Math.floor(n/62);return t}function x(e){let t=0;for(let n=0;n<e.length;n++){let s=l.indexOf(e[n]);if(s===-1)return  -1;t=t*62+s;}return t}function O(e){let t={...T,...e},n=0,s=0;for(let o of a){let i=o.values.indexOf(t[o.key]);n+=(i===-1?0:i)*2**s,s+=o.bits;}return P+C(n)}function v(e){if(!e||e.length<2)return null;let t=e[0];if(!S.includes(t))return null;let n=t==="a"?f:a,s=x(e.slice(1));if(s<0)return null;let o={},i=0;for(let r of n){let u=Math.floor(s/2**i)%2**r.bits;o[r.key]=u<r.values.length?r.values[u]:r.values[0],i+=r.bits;}return t==="a"&&(o.fontHeading="inherit"),o}function N(e){if(!e||e.length<2||e.length>10||!S.includes(e[0]))return  false;for(let t=1;t<e.length;t++)if(l.indexOf(e[t])===-1)return  false;return  true}function k(e){return v(e)!==null}function h(){let e=t=>t[Math.floor(Math.random()*t.length)];return Object.fromEntries(a.map(t=>[t.key,e(t.values)]))}function L(){return O(h())}export{A as a,m as b,p as c,c as d,b as e,I as f,R as g,E as h,g as i,_ as j,y as k,d as l,T as m,C as n,x as o,O as p,v as q,N as r,k as s,h as t,L as u};