@master/css 2.0.0-beta.206 → 2.0.0-beta.207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var ne=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var Oe=Object.prototype.hasOwnProperty;var je=(e,t)=>{for(var i in t)ne(e,i,{get:t[i],enumerable:!0})},Me=(e,t,i,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ve(t))!Oe.call(e,o)&&o!==i&&ne(e,o,{get:()=>t[o],enumerable:!(a=ke(t,o))||a.enumerable});return e};var Te=e=>Me(ne({},"__esModule",{value:!0}),e);var _e={};je(_e,{CONFIG_ESM_TEXT:()=>Ne,CONFIG_TEXT:()=>Se,CONFIG_TS_TEXT:()=>De,Layer:()=>se,MasterCSS:()=>Q,Rule:()=>Z,RuntimeCSS:()=>G,animations:()=>fe,config:()=>Y,default:()=>Q,extend:()=>q,fillColorScale:()=>O,functions:()=>he,initRuntime:()=>me,mediaQueries:()=>oe,reorderForReadableClasses:()=>pe,rules:()=>de,selectors:()=>le,semantics:()=>ce,variables:()=>ue});module.exports=Te(_e);var X={"(":")","'":"'",'"':'"',"{":"}"};function te(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,a=-1,o="",r,l=t.charCodeAt(0);if(i==1&&l==45)return"\\"+t;for(;++a<i;){if(r=t.charCodeAt(a),r==0){o+="\uFFFD";continue}if(r>=1&&r<=31||r==127||a==0&&r>=48&&r<=57||a==1&&r>=48&&r<=57&&l==45){o+="\\"+r.toString(16)+" ";continue}if(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){o+=t.charAt(a);continue}o+="\\"+t.charAt(a)}return o}var se=(f=>(f[f.Semantic=-8]="Semantic",f[f.CoreNativeShorthand=-7]="CoreNativeShorthand",f[f.NativeShorthand=-6]="NativeShorthand",f[f.CoreShorthand=-5]="CoreShorthand",f[f.Shorthand=-4]="Shorthand",f[f.CoreNative=-3]="CoreNative",f[f.Native=-2]="Native",f[f.Core=-1]="Core",f[f.Normal=0]="Normal",f))(se||{});var Ee=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,Z=class{constructor(t,i={},a){this.className=t;this.definition=i;this.css=a;let{layer:o,unit:r,colored:l,analyze:h,transformValue:g,declare:f,transformValueComponents:m,create:y,order:p,id:s}=i;this.order=p,this.layer=o,i.unit||(i.unit=""),i.separators||(i.separators=[","]);let{scope:d,important:u,themeDriver:c}=a.config,{selectors:n,mediaQueries:b,stylesBy:R,animations:D}=a,x=R[t];y&&y.call(this,t),this.declarations=i.declarations;let v,N;if(this.colored=l,o===-8)v=t.slice(s.length-1);else{let w;if(h)[w,N]=h.call(this,t);else{let S=t.indexOf(":");this.prefix=t.slice(0,S+1),w=t.slice(S+1)}this.valueComponents=[],v=w.slice(this.parseValue(this.valueComponents,0,w,r))}v[0]==="!"&&(this.important=!0,v=v.slice(1)),this.stateToken=v;let j=(w,S)=>{let E=(C,V,k,M)=>{for(let[W,I]of V)if(W.test(C)){for(let B of I)E(C.replace(W,B),V,k,!0);return}M&&k.push(C)},z=C=>{let V=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((I,B)=>B%3?I:I.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),k=[],M="",W=0;for(let I=0;I<V.length;I++){let B=V[I];if(B==="\\"){M+=B+V[++I];continue}!W&&B===","?(k.push(M),M=""):(M+=B,W&&B===")"?W--:B==="("&&W++)}return M&&k.push(M),k},P=[];""in n?E(w,n[""],P,!0):P.push(w);let $={};for(let[C,V]of Object.entries(n)){if(!C)continue;let k=[];for(let M of P)E(M,V,k,!1);k.length&&($[C]=k)}let _=(C,V)=>{let k=V.reduce((M,W)=>(M.push(...z(W)),M),[]);C in S?S[C].push(...k):S[C]=k},F=Object.keys($);if(F.length)for(let C of F)_(C,$[C]);else _("",P)};N?(this.vendorPrefixSelectors={},j(N,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let T=v.split("@"),A=T[0];if(A){this.vendorSuffixSelectors={},j(A,this.vendorSuffixSelectors);for(let w of Object.values(this.vendorSuffixSelectors))for(let S of w){this.hasWhere!==!1&&(this.hasWhere=S.includes(":where("));let E=[":disabled",":active",":focus",":hover"];for(let z=0;z<E.length;z++)if(S.includes(E[z])){(this.priority===-1||this.priority>z)&&(this.priority=z);break}}}else this.vendorSuffixSelectors={"":[""]};let J={},we=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),ge=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(we)J[""]=ge?[""]:Object.keys(this.vendorSuffixSelectors);else if(ge)for(let w in this.vendorPrefixSelectors)J[w]=[""];else for(let w in this.vendorPrefixSelectors){let S=J[w]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,w))S.push(w);else for(let E in this.vendorSuffixSelectors)S.push(E)}for(let w=1;w<T.length;w++){let S=T[w];if(S)if(S==="rtl"||S==="ltr")this.direction=S;else{let E,z,P=Ee.exec(S);if(P)E=P[1],z=S.slice(E.length);else{this.media={token:S,features:{}};let $=[],_=C=>{if(C==="all"||C==="print"||C==="screen"||C==="speech")this.media.type=C;else if(C==="\u{1F5A8}")this.media.type="print";else if(C==="landscape"||C==="portrait")$.push("(orientation:"+C+")");else if(C==="motion"||C==="reduced-motion")$.push("(prefers-reduced-motion:"+(C==="motion"?"no-preference":"reduce")+")");else{let V=b[C];if(V&&typeof V=="string")$.push(V);else{let k="",M="",W=0;C.startsWith("<=")?(M="<=",k="max-width"):C.startsWith(">=")||V?(M=">=",k="min-width"):C.startsWith(">")?(M=">",k="min-width",W=.02):C.startsWith("<")&&(M="<",k="max-width",W=-.02);let I=M?C.replace(M,""):C,B=b[I];switch(k){case"max-width":case"min-width":let L={};typeof B=="number"?L={type:"number",value:B+W,unit:"px"}:(L=this.parseValueComponent(I,"px"),L.type==="number"&&L.unit==="px"&&(L.value+=W)),this.media.features[k]=L,L.type==="number"?$.push("("+k+":"+(L.value+L.unit)+")"):$.push("("+k+":"+L.value+")");break}}}},F=S.includes("&");if(F){let C=S.split("&");for(let V of C)_(V)}else _(S);if(this.media.type&&(z=this.media.type),$.length&&(z=$.join(" and ")),z)E="media";else if(!F){this.theme=S;continue}}z&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+z.replace(/\|/g," "))}}let ee;if(this.valueComponents)if(m&&(this.valueComponents=m.call(this,this.valueComponents)),ee=this.resolveValue(this.valueComponents,r,[]),g&&(ee=g.call(this,ee,this.css.config)),f){let w,S;this.declarations=f.call(this,S?w:ee,S||"")}else s&&(this.declarations={[s]:ee});let ae=[];for(let w in this.declarations){let S=P=>{if(D&&(P.startsWith("animation")||P.startsWith("animation-name"))){let $=P.split(":")[1].split("!important")[0].split(" ").filter(_=>_ in this.css.animations&&(!this.animationNames||!this.animationNames.includes(_)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...$))}ae.push(P+((this.important||u)&&!P.endsWith("!important")?"!important":""))},E=w+":",z=this.declarations[w];if(typeof z=="object")for(let P of z)S(E+P.toString());else S(E+z.toString())}if(ae.length)for(let w in J)for(let S of J[w]){let E="";this.direction&&(E+="[dir="+this.direction+"] ");let z=this.vendorPrefixSelectors[w],P=this.vendorSuffixSelectors[S],$=z.map(C=>C+E),_=C=>$.map(V=>(this.theme&&c!=="media"?c==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(d?d+" ":"")+V).reduce((V,k)=>(V.push(P.reduce((M,W)=>(M.push(k+"."+te(C)+W),M),[]).join(",")),V),[]).join(","),F=_(t)+(x?x.reduce((C,V)=>C+","+_(V),""):"")+"{"+ae.join(";")+"}";for(let C of Object.keys(this.at).sort((V,k)=>k==="supports"?-1:1))F="@"+C+(C.includes(" ")?"":" ")+this.at[C]+"{"+F+"}";this.theme&&c==="media"&&(F=`@media(prefers-color-scheme:${this.theme}){`+F+"}"),this.natives.push({text:F})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;resolveValue=(t,i,a)=>{let{functions:o}=this.css.config,r="";for(let l of t)switch(l.type){case"function":let h=o&&o[l.name];if(h?.transform){let f=h.transform.call(this,this.resolveValue(l.children,h.unit??i,a),a);r+=typeof f=="string"?f:this.resolveValue(f,h?.unit??i,a)}else r+=l.name+l.symbol+this.resolveValue(l.children,h?.unit??i,a)+X[l.symbol];break;case"variable":let g=this.css.variables[l.name];if(g){let f=(m,y)=>{if(g.themes)if(this.theme){let p=g.themes[this.theme]??g;p?.value&&m(p)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),y();else m(g)};switch(g.type){case"string":f(y=>{let p=[];this.parseValue(p,0,y.value,i,void 0,void 0,[...a,l.name]),r+=this.resolveValue(p,i,[...a,l.name])},()=>{r+=`var(--${l.name})`});break;case"number":f(y=>{let p=this.parseValueComponent(y.value,i);r+=p.value+(p.unit??"")},()=>{r+=i?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let m=l.alpha?"/"+l.alpha:"";f(y=>{r+=`${y.space}(${y.value}${m})`},()=>{r+=`${g.space}(var(--${l.name})${m})`});break}}else r+=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":r+=l.text||l.value;break;case"number":r+=l.value+l.unit;break;default:r+=l.value;break}return r};get text(){return this.natives.map(t=>t.text).join("")}parseValue=(t,i,a,o,r,l=void 0,h=[])=>{let g=l===void 0,f=!g&&(l.endsWith("$")||l.endsWith("var")),y=(u=>u==="'"||u==='"')(r),p=[","];this.definition.separators.length&&p.push(...this.definition.separators);let s="",d=()=>{if(s){let u=!1;if(!f||t.length){let c=(n,b)=>{let R=Object.prototype.hasOwnProperty.call(this.definition.resolvedVariables,n)?this.definition.resolvedVariables[n]:Object.prototype.hasOwnProperty.call(this.css.variables,n)?this.css.variables[n]:void 0;if(R){let D=R.name??n;if(!h.includes(D)){u=!0;let x={type:"variable",name:D,variable:this.css.variables[D]};b&&(x.alpha=b),t.push(x)}}};if(c(s),!u&&this.colored){let[n,b]=s.split("/");c(n,b)}}u||t.push(this.parseValueComponent(s,o)),s=""}};for(;i<a.length;i++){let u=a[i];if(u===r){if(y){let c=0;for(let n=s.length-1;s[n]==="\\";n--)c++;if(c%2){s+=u;continue}else d()}else d();return i}else if(!y&&u in X){let c=s,n={type:"function",name:c,symbol:u,children:[]};t.push(n),s="";let b=u==="("&&this.css.config.functions?.[c];!this.colored&&b?.colored&&(this.colored=!0),i=this.parseValue(n.children,++i,a,b?.unit??o,X[u],c||l||"")}else if((u==="|"||u===" ")&&r!=="}"&&(!y||l==="path"))d(),t.push({type:"separator",value:" "});else{if(!y){if(u===".")if(isNaN(+a[i+1])){if(g)break}else a[i-1]==="-"&&(s+="0");else if(p.includes(u)){d(),t.push({type:"separator",value:u,text:(u===","?"":" ")+u+(u===","?"":" ")});continue}else if(g&&(u==="#"&&(s||t.length&&t[t.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(u)))break}s+=u}}return d(),i};parseValueComponent(t,i=this.definition.unit){let a=i??this.definition.unit,o="",r;if(typeof t=="number")return a&&!o?((a==="rem"||a==="em")&&(r=t/this.css.config.rootSize),o=a||""):r=t,{value:r,unit:o,type:"number"};if(a){if(/^\d+\/\d+/.test(t)){let[h,g]=t.split("/");return{value:+h/+g*100,unit:"%",type:"number"}}let l=t.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(l)return r=+l[1],o=l[3]||"",o||((a==="rem"||a==="em")&&(r=r/this.css.config.rootSize),o=a||""),{value:r,unit:o,type:"number"}}return{value:t,type:"string"}}};var ze={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},oe=ze;var Pe={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},le=Pe;var $e={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},ce=$e;var We={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},fe=We;function H(e){e.startsWith("#")&&(e=e.slice(1));let t,i,a,o;return e.length===3||e.length===4?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),a=parseInt(e[2]+e[2],16),o=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),o=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,a,o]}function ye(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function O(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let a in e)if(a&&+a>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let a=0,o="0"in e?H(e[0]):[0,0,0],r,l,h=[],g=()=>{let f=r-a,m=l.map((y,p)=>(y-o[p])/f);for(let y of h){let p=y-a,s=o.map((d,u)=>Math.round(d+m[u]*p));e[y]="#"+ye.call(this,...s)}};for(let f=1;f<100;f++)f in e?(h.length?(r=f,l=H(e[f]),g(),h.length=0,o=l):o=H(e[f]),a=f):h.push(f);h.length&&(r=100,l="100"in e?H(e[100]):[255,255,255],g())}return t||(e[""]=e[i?"500":"50"]),e}var Ae={"font-family":{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},"box-size":{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"},black:"#000000",white:"#ffffff",current:"currentColor",slate:O({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:O({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:O({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:O({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:O({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:O({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:O({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:O({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:O({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:O({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:O({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:O({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:O({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:O({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:O({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:O({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:O({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:O({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:O({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:O({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},ue=Ae;var U=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],K=function(e){return e.length<2||e.find(i=>i.type==="string"&&U.includes(i.value)||i.type==="variable"&&U.includes(i.variable.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},Be={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=g=>{let f=g.indexOf(":");f!==-1&&(t[g.slice(0,f)]=g.slice(f+1))},a=g=>{let f=m=>{let y=m.slice(te(g.className).length).match(/\{(.*)\}/)[1].split(";");for(let p of y)i(p)};for(let m of g.natives)f(m.text);if(g.animationNames){this.animationNames||(this.animationNames=[]);for(let m of g.animationNames)this.animationNames.includes(m)||this.animationNames.push(m)}if(g.variableNames){this.variableNames||(this.variableNames=[]);for(let m of g.variableNames)this.variableNames.includes(m)||this.variableNames.push(m)}},o=[],r="",l=()=>{r&&(o.push(r.replace(/ /g,"|")),r="")},h=1;(function g(f){for(;h<e.length;h++){let m=e[h];if(!f){if(m===";"){l();continue}if(m==="}")break}if(r+=m,f===m){if(f==="'"||f==='"'){let y=0;for(let p=r.length-2;r[p]==="\\";p--)y++;if(y%2)continue}break}else m in X&&f!=="'"&&f!=='"'&&(h++,g(X[m]))}})(void 0),l();for(let g of o){let f=this.css.create(g);if(f.length)for(let m of f)a(m);else i(g)}return t}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0,variables:["foreground"]},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["box-size"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["box-size"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["box-size"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["box-size"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["box-size"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-size",["slice","clone"]],layer:-3,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0,variables:["foreground"]},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7,variables:["foreground"]},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["box-size"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["box-size"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},"overflow-y":{layer:-3,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-7,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},"user-select":{layer:-3,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,variables:["foreground"],declare(e,t){return{"-webkit-text-fill-color":e+t}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(e,t){return{"-webkit-text-stroke-width":e+t}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,variables:["foreground"],declare(e,t){return{"-webkit-text-stroke-color":e+t}}},"text-stroke":{unit:"rem",layer:-3,declare(e,t){return{"-webkit-text-stroke":e+t}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",U],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",U],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",U],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",U],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",U],layer:-5,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",U],layer:-5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},"border-style":{match:["b(?:order)?(?:-style)?",U],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:K},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:K,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:K,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:K},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(e){return{"background-image":"linear-"+e}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0,variables:["foreground"]},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0,variables:["foreground"]},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-columns":{match:/^grid-cols:/,declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-rows":{match:/^grid-rows:/,declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["box-size"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["box-size"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["box-size"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["box-size"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",U],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:K},"accent-color":{match:/^accent:/,layer:-3,colored:!0,variables:["foreground"]},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["foreground"]},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},de=Be;var Ie={$:{colored:!0,transform(e){let t,i,a=e.indexOf(",");return a!==-1?(t=e.slice(0,a),i=e.slice(a+1)):t=e,[{type:"variable",name:t,fallback:i}]}},calc:{transform(e,t){let i=[],a=this.css.config.functions,o=0,r=(l,h,g)=>{let f=!1,m="",y=(p,s="",d="")=>{m&&(!f&&!g?l.push(this.parseValueComponent(m,a.calc.unit)):l.push({type:"string",value:m}),m=""),p&&(s&&e[o-1]===" "&&(s=""),d&&e[o+1]===" "&&(d=""),h?l.push({type:"separator",value:p,text:p}):l.push({type:"separator",value:p,text:s+p+d})),f=!1};for(;o<e.length;o++){let p=e[o];if(p==="("){let s=/^([+-])/.exec(m);s&&l.push({type:"string",value:s[1]});let d=s?m.slice(1):m,u={type:"function",name:d,symbol:p,children:[]};l.push(u),m="",o++;let c=u.name==="$"||u.name==="var";r(u.children,d!==""&&d!=="calc"&&(c||Object.prototype.hasOwnProperty.call(a,d)),f||c)}else if(p===")"){y("");break}else if(p===",")y(p,""," ");else if(p===" ")y(p);else{let s=e[o-1];switch(p){case"+":!m&&s!==")"?m+=p:y(p," "," ");break;case"-":!m&&s!==")"?m+=p:y(p," "," ");break;case"*":y(p," "," ");break;case"/":y(p," "," "),f=!0;break;default:m+=p;break}}}y("")};return r(i,!1,!1),"calc("+this.resolveValue(i,a.calc.unit??this.definition.unit,t)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},he=Ie;var Y={mediaQueries:oe,selectors:le,semantics:ce,rules:de,functions:he,animations:fe,variables:ue,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};function ie(e,t=""){return Object.entries(e).reduce((i,[a,o])=>{let r=t?`${t}${a?"-"+a:""}`:a;return typeof o=="object"&&!Array.isArray(o)?Object.assign(i,ie(o,r)):i[r]=o,i},{})}function ve(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Ce(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Re(e){let t=[];return e.forEach(function(i,a){typeof i=="object"&&i!==null?Array.isArray(i)?t[a]=Re(i):ve(i)?t[a]=Ce(i):t[a]=q({},i):t[a]=i}),t}function be(e,t){return t==="__proto__"?void 0:e[t]}function q(...e){let t={},i,a;return e.forEach(function(o){typeof o!="object"||o===null||Array.isArray(o)||Object.keys(o).forEach(function(r){if(a=be(t,r),i=be(o,r),i!==t)if(typeof i!="object"||i===null){t[r]=i;return}else if(Array.isArray(i)){t[r]=Re(i);return}else if(ve(i)){t[r]=Ce(i);return}else if(typeof a!="object"||a===null||Array.isArray(a)){t[r]=q({},i);return}else{t[r]=q(a,i);return}})}),t}function re(...e){let t=o=>{let r=q({},o),l=h=>{for(let g in h){let f=h[g];typeof f=="object"&&!Array.isArray(f)?l(f):g&&!g.startsWith("@")&&(h[g]={"":f})}};return r.styles?l(r.styles):r.styles={},r.mediaQueries?l(r.mediaQueries):r.mediaQueries={},r.variables?l(r.variables):r.variables={},r},i=[];for(let o of e)(function r(l){if(l.extends?.length)for(let h of l.extends)r("config"in h?h.config:h);i.push(t(l))})(o);let a=i[0];for(let o=1;o<i.length;o++){let r=i[o];a=q(a,r),Object.prototype.hasOwnProperty.call(r,"animations")&&Object.assign(a.animations,r.animations)}return a}var Q=class e{constructor(t=Y){this.customConfig=t;t?.override?this.config=re(t):this.config=re(Y,t),this.resolve(),this.constructor===e&&globalThis.masterCSSs.push(this)}static config=Y;rules=[];ruleBy={};classesUsage={};config;semanticRuleOptions=[];ruleDefinitions=[];resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleDefinitions.length=0,this.semanticRuleOptions.length=0,this.variablesNativeRules=void 0,this.hasKeyframesRule=!1;let t={current:void 0,currentColor:void 0,transparent:void 0},{styles:i,selectors:a,variables:o,semantics:r,mediaQueries:l,rules:h,animations:g}=this.config;function f(s){return s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(a){let s=ie(a);for(let d in s){let u=s[d],c=new RegExp(f(d)+"(?![a-z-])");for(let n of Array.isArray(u)?u:[u]){let b=n.match(/^::-[a-z]+-/m)?.[0]??"",R=this.selectors[b];R||(R=this.selectors[b]=[]);let D=R.find(([x])=>x===c);D||(D=[c,[]],R.push(D)),D[1].push(n)}}}if(o){let s={},d=(u,c,n=void 0,b)=>{if(!u)return;let R=(x,v,N=void 0,j=void 0)=>{if(v===void 0)return;if(v.type==="color"){if(j){let A=v.value.indexOf("/");v={...v,value:A===-1?v.value+" / "+(j.startsWith("0.")?j.slice(1):j):v.value.slice(0,A+2)+(+v.value.slice(A+2)*+j).toString().slice(1)}}t[x]=void 0}let T=N??n;if(T!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,x)){let A=this.variables[x];T?(A.themes||(A.themes={}),A.themes[T]=v):(A.value=v.value,A.space=v.space)}else T?this.variables[x]={type:v.type,space:v.space,themes:{[T]:v}}:this.variables[x]=v;else this.variables[x]=v},D=typeof u;if(D==="object")if(Array.isArray(u))R(c,{type:"string",value:u.join(",")});else{let x=Object.keys(u);for(let v of x)v===""||v.startsWith("@")?d(u[v],c,v||x.some(N=>N.startsWith("@"))?v.slice(1):void 0,c):d(u[v],c+"-"+v,void 0,c)}else if(D==="number")R(c,{type:"number",value:u}),R("-"+c,{type:"number",value:u*-1});else if(D==="string"){let x=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(u);if(x)Object.prototype.hasOwnProperty.call(s,c)||(s[c]={}),s[c][n]=()=>{delete s[c][n];let[v,N]=x[1].split("@");if(v){if(Object.prototype.hasOwnProperty.call(s,v))for(let T of Object.keys(s[v]))s[v][T]?.();let j=this.variables[v];if(j)if(N===void 0&&j.themes){R(c,{type:j.type,value:j.value,space:j.space},"",x[2]);for(let T in j.themes)R(c,j.themes[T],T,x[2])}else{let T=N!==void 0?j.themes?.[N]:j;T&&R(c,{type:T.type,value:T.value,space:T.space},void 0,x[2])}}};else{let v=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(u);if(v){let[N,j,T,A]=H(v[1]);R(c,{type:"color",value:`${N} ${j} ${T}${A===1?"":" / "+A}`,space:"rgb"})}else{let N=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(u);if(N)R(c,{type:"color",value:N[1]+" "+N[2]+" "+N[3]+(N[4]?" / "+(N[4].startsWith("0.")?N[4].slice(1):N[4]):""),space:"rgb"});else{let j=/^hsl\((.*?)\)$/.exec(u);j?R(c,{type:"color",value:j[1],space:"hsl"}):R(c,{type:"string",value:u})}}}}};for(let u in o)d(o[u],u);for(let u of Object.keys(s))for(let c of Object.keys(s[u]))s[u][c]?.()}if(l&&(this.mediaQueries=ie(l)),g)for(let s in g){let d=this.animations[s]={},u=g[s];for(let c in u){let n=d[c]={},b=u[c];for(let R in b)n[R]=b[R]}}let m=i?ie(i):{},y=Object.keys(m),p=s=>{if(Object.prototype.hasOwnProperty.call(this.styles,s))return;let d=this.styles[s]=[],u=m[s];if(!u)return;let c=u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let n of c){let b=R=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,R)){let D=this.stylesBy[R];D.includes(s)||D.push(s)}else this.stylesBy[R]=[s];d.includes(R)||d.push(R)};if(y.includes(n)){p(n);for(let R of this.styles[n])b(R)}else b(n)}};for(let s of y)p(s);if(r&&Object.entries(r).sort((s,d)=>s[0].localeCompare(d[0])).forEach(([s,d],u)=>{this.semanticRuleOptions.push({id:"."+s,resolvedMatch:new RegExp("^"+f(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:u,declarations:d,layer:-8})}),h){let s=Object.entries(h).sort((c,n)=>c[1].layer!==n[1].layer?(n[1].layer||0)-(c[1].layer||0):n[0].localeCompare(c[0])),d=s.length,u=Object.keys(t);s.forEach(([c,n],b)=>{this.ruleDefinitions.push(n),n.order=this.semanticRuleOptions.length+d-1-b;let R=n.match;n.id=c,n.resolvedVariables={};let D=x=>{for(let v in this.variables)if(v.startsWith(x+"-")||v.startsWith("-"+x+"-")){let N=v.slice(x.length+(x.startsWith("-")?0:1));n.resolvedVariables[N]={...this.variables[v],name:v}}};if(n.variables)for(let x of n.variables)D(x);if(D(c),R)if(Array.isArray(R)){let[x,v=[]]=R,N=[];v.length&&N.push(`(?:${v.join("|")})(?![a-zA-Z0-9-])`),Object.keys(n.resolvedVariables).length&&N.push(`(?:${Object.keys(n.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),n.colored&&N.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${u.join("|")})(?![a-zA-Z0-9-])`),n.numeric&&N.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),N.length&&(n.resolvedMatch=new RegExp(`^${x}:(?:${N.join("|")})[^|]*?(?:@|$)`))}else n.resolvedMatch=R})}}match(t){for(let i of this.ruleDefinitions)if(i.resolvedMatch&&i.resolvedMatch.test(t)||(i.layer===-2||i.layer===-6||i.layer===-3||i.layer===-7)&&t.startsWith(i.id+":"))return i;for(let i of this.semanticRuleOptions)if(i.resolvedMatch.test(t))return i}create(t){let i=a=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,a))return this.ruleBy[a];let o=this.match(a);if(o)return new Z(a,o,this)};return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(a=>i(a)):[i(t)]).filter(a=>a&&a.text)}refresh(t=this.customConfig){t?.override?this.config=re(t):this.config=re(Y,t),this.resolve(),this.rules.length=0,this.ruleBy={};for(let i in this.classesUsage)this.add(i);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules=void 0;for(let t in this.animations){let i=this.animations[t];i.usage=void 0,i.native=void 0}for(let t in this.variables){let i=this.variables[t];i.usage=void 0}return this}destroy(){return this.reset(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1),this}add(t){let i=this.create(t);return i.length?(this.insert(i),!0):!1}delete(t){let i=this.style?.sheet,a=o=>{let r=this.ruleBy[o];if(!(!r||Object.prototype.hasOwnProperty.call(this.stylesBy,o)&&this.stylesBy[o].some(l=>Object.prototype.hasOwnProperty.call(this.classesUsage,l)))){if(i&&r.natives.length){let l=r.natives[0];for(let h=0;h<i.cssRules.length;h++)if(i.cssRules[h]===l.cssRule){for(let f=0;f<r.natives.length;f++)i.deleteRule(h);break}}if(this.rules.splice(this.rules.indexOf(r),1),delete this.ruleBy[o],r.variableNames)for(let l of r.variableNames){let h=this.variables[l];if(!--h.usage){let g=f=>{let m=this.variablesNativeRules[f];if(m.cssRule.style.removeProperty("--"+l),!m.cssRule.style.length){let y=this.rules[0],p=y.natives.indexOf(m);i?.deleteRule(p),y.natives.splice(p,1),delete this.variablesNativeRules[f],y.natives.length||(this.rules.splice(0,1),this.variablesNativeRules=void 0)}};if(h.value&&g(""),h.themes)for(let f in h.themes)g(f)}}if(r.animationNames){let l=this.variablesNativeRules?1:0,h=this.rules[l];for(let g of r.animationNames){let f=this.animations[g];if(!--f.usage){let m=h.natives.indexOf(f.native);this.style.sheet.deleteRule((this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+m),h.natives.splice(m,1),f.native=void 0}}h.natives.length||(this.rules.splice(l,1),this.hasKeyframesRule=!1)}r.definition.delete?.call(r,o)}};if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let o of this.styles[t])Object.prototype.hasOwnProperty.call(this.classesUsage,o)||a(o);delete this.ruleBy[t]}else a(t)}insert(t){for(let i of t){if(this.ruleBy[i.className])continue;let a,o=this.rules.length-1,{media:r,order:l,priority:h,hasWhere:g,className:f}=i,m=(s,d,u)=>{let c=s;for(;c<=o;c++){let n=this.rules[c];if(d?.(n))return u?-1:c-1;if(u?.(n))return c}return u?-1:c-1},y,p;if(r){let s=this.rules.findIndex(d=>d.media);if(s===-1)a=o+1;else{let{"max-width":d,"min-width":u}=r.features;if(d||u){let c=this.rules.findIndex(n=>n.media?.features["max-width"]||n.media?.features["min-width"]);if(c===-1)a=o+1;else if(d&&u){if(h===-1?(y=m(c,n=>n.priority!==-1,n=>n.media.features["max-width"]&&n.media.features["min-width"]),p=m(c,n=>n.priority!==-1)):(y=m(c,void 0,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1),p=o),y!==-1){let n=d.value-u.value,b=p,R=y;for(y=void 0;b>=R;b--){let{"max-width":D,"min-width":x}=this.rules[b].media.features,v=D.value-x.value;if(v<n)p=b-1;else if(v===n)y=b;else break}}if(y!==-1){let n=d.value-u.value;for(let b=p;b>=y;b--){let{"max-width":R,"min-width":D}=this.rules[b].media.features,x=R.value-D.value;if(x<n)p=b-1;else if(x>n){y=b+1;break}}}}else if(u){if(h===-1?(y=m(c,n=>n.media.features["max-width"]&&n.media.features["min-width"]||n.priority!==-1,n=>!n.media.features["max-width"]&&n.media.features["min-width"]),p=m(c,n=>n.media.features["max-width"]&&n.media.features["min-width"]||n.priority!==-1)):(y=m(c,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1,n=>!n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1),p=m(c,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1)),y!==-1)for(let n=p;n>=y;n--){let b=this.rules[n].media.features["min-width"].value;if(b>u.value)p=n-1;else if(b<u.value){y=n+1;break}}}else if(h===-1?(y=m(c,n=>n.media.features["min-width"]||n.priority!==-1,n=>n.media.features["max-width"]),p=m(c,n=>n.media.features["min-width"]||n.priority!==-1)):(y=m(c,n=>n.media.features["min-width"]&&n.priority!==-1,n=>n.media.features["max-width"]&&n.priority!==-1),p=m(c,n=>n.media.features["min-width"]&&n.priority!==-1)),y!==-1)for(let n=p;n>=y;n--){let b=this.rules[n].media.features["max-width"].value;if(b<d.value)p=n-1;else if(b>d.value){y=n+1;break}}}else h===-1?(y=s,p=m(s,c=>c.media?.features["max-width"]||c.media?.features["min-width"]||c.priority!==-1)):(y=m(s,c=>c.media?.features["max-width"]||c.media?.features["min-width"],c=>c.priority!==-1),p=m(s,c=>c.media?.features["max-width"]||c.media?.features["min-width"]))}}else{let s=this.variablesNativeRules?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;h===-1?(y=s,p=m(s,d=>d.media||d.priority!==-1)):(y=m(s,d=>d.media,d=>d.priority!==-1),p=m(s,d=>d.media))}if(a===void 0)if(y===-1)a=p+1;else{if(h===-1)for(let s=y;s<=p;s++){let d=this.rules[s];if(!(!g&&d.hasWhere)&&(g&&!d.hasWhere||d.order>=l)){a=s;break}}else for(let s=y;s<=p;s++){let d=this.rules[s];if(!(!g&&d.hasWhere)){if(g&&!d.hasWhere){a=s;break}if(d.priority<h){a=s;break}else if(d.priority===h){if(d.order>=l){a=s;break}}else a=s+1}}a===void 0&&(a=p+1)}if(this.rules.splice(a,0,i),this.ruleBy[f]=i,this.style){let s=this.style.sheet,d=0,u=c=>{let n=this.rules[c];if(n){if(!n.natives.length)return u(c-1);let b=n.natives[n.natives.length-1],R=b.cssRule.parentRule??b.cssRule;for(let D=0;D<s.cssRules.length;D++)if(s.cssRules[D]===R){d=D+1;break}}};u(a-1);for(let c=0;c<i.natives.length;)try{let n=i.natives[c];s.insertRule(n.text,d),n.cssRule=s.cssRules[d++],c++}catch(n){console.error(n),i.natives.splice(c,1)}}this.handleRuleWithVariableNames(i),this.handleRuleWithAnimationNames(i),i.definition.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}handleRuleWithAnimationNames(t,i=!1){if(t.animationNames){let a=this.style?.sheet;for(let o of t.animationNames){let r=this.animations[o];if(r.usage)r.usage++;else{let l={text:`@keyframes ${o}{`+Object.entries(r).filter(([f])=>f!=="usage"&&f!=="native").map(([f,m])=>`${f}{${Object.entries(m).map(([y,p])=>y+":"+p).join(";")}}`).join("")+"}"},h=this.variablesNativeRules?1:0,g;if(this.hasKeyframesRule?(g=this.rules[h]).natives.push(l):(this.rules.splice(h,0,g={natives:[l],get text(){return this.natives.map(f=>f.text).join("")}}),this.hasKeyframesRule=!0),a){let f;if(i)for(let m=0;m<a.cssRules.length;m++){let y=a.cssRules[m];if(y.constructor.name==="CSSKeyframesRule"&&y.name===o){f=y;break}}if(f)l.cssRule=f;else{let m=(this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+g.natives.length-1;a.insertRule(l.text,m),l.cssRule=a.cssRules[m]}}r.usage=1,r.native=l}}}}handleRuleWithVariableNames(t,i=!1){if(t.variableNames){let a=this.style?.sheet;for(let o of t.variableNames){let r=this.variables[o];if(r.usage)r.usage++;else{let l=(h,g)=>{let f=this.variablesNativeRules?.[h];if(!f){let y,p,s;if(h)switch(this.config.themeDriver){case"media":p=`@media(prefers-color-scheme:${h})`,s=":root";break;case"host":s=`:host(.${h})`;break;default:s=`.${h}`;break}else s=":root";if(a){let d=this.variablesNativeRules?this.rules[0].natives.length:0;a.insertRule((p?p+"{":"")+s+"{}"+(p?p+"}":""),d),y=p?a.cssRules[d].cssRules[0]:a.cssRules[d]}else{let d=new Map,u=Object.defineProperties({},{getPropertyValue:{value:c=>d.get(c)},removeProperty:{value:c=>{d.delete(c);for(let n=0;n<u.length;n++)u[n]===c&&delete u[n]}},setProperty:{value:(c,n)=>{u[u.length]=c,d.set(c,n)}},length:{get(){return Object.keys(u).length}}});y={selectorText:s,style:u,styleMap:d},p&&(y.parentRule={conditionText:p})}f=this.pushVariableNativeRule(h,y)}let m="--"+o;(!i||!f.cssRule.style.getPropertyValue(m))&&f.cssRule.style.setProperty(m,g.value.toString())};if(r.value&&l("",r),r.themes)for(let h in r.themes)l(h,r.themes[h]);r.usage=1}}}}pushVariableNativeRule(t,i){this.variablesNativeRules||(this.variablesNativeRules={},this.rules.splice(0,0,{natives:[],get text(){return this.natives.map(l=>l.text).join("")}}));let a="",o="}";i.parentRule&&(a+=i.parentRule.conditionText.replace(/ /g,"")+"{",o+="}"),a+=i.selectorText+"{";let r={cssRule:i,get text(){let l=[];for(let h=0;h<i.style.length;h++){let g=i.style[h];l.push(g+":"+i.style.getPropertyValue(g))}return a+l.join(";")+o}};return this.rules[0].natives.push(this.variablesNativeRules[t]=r),r}};globalThis.MasterCSS=Q,globalThis.masterCSSs||(globalThis.masterCSSs=[]);var xe=[",",".","#","[","!","*",">","+","~",":","@"];var G=class extends Q{constructor(i=document,a=Y){super(a);this.root=i;this.customConfig=a;i||(this.root=document),this.root===document?(globalThis.runtimeCSS=this,this.container=document.head,this.host=document.documentElement):(this.container=this.root,this.host=this.root.host,this.styleSheets=this.root.styleSheets),this.styleSheets=this.root.styleSheets,globalThis.runtimeCSSs.push(this)}host;observing=!1;container;styleSheets;observer;observe(i={subtree:!0,childList:!0}){if(this.observing)return;if(globalThis.runtimeCSSs.find(o=>o!==this&&o.root===this.root)){console.warn("Cannot observe the same root element repeatedly.");return}for(let o of this.styleSheets){let{ownerNode:r}=o;if(r&&r.id==="master"){this.style=r;break}}if(this.style){let o=0;for(;o<this.style.sheet.cssRules.length;o++){let r=this.style.sheet.cssRules[o];switch(r.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let h=/\(prefers-color-scheme: (.*?)\)/.exec(r.conditionText);if(h){let g=r.cssRules[0];if(g?.constructor.name==="CSSStyleRule"&&g.selectorText===":root"){this.pushVariableNativeRule(h[1],g);continue}}}break;case"CSSStyleRule":let l=r.selectorText;if(r.style.length){let h=!0;for(let g=0;g<r.style.length;g++)if(!r.style[g]?.startsWith("--")){h=!1;break}if(h){if(l===":root"){this.pushVariableNativeRule("",r);continue}else if(this.config.themeDriver==="host"){let g=/:host(.*?)/.exec(l);if(g){this.pushVariableNativeRule(g[1],r);continue}}else if(!l.startsWith(".\\$")){this.pushVariableNativeRule(l.slice(1),r);continue}}}break}break}for(;o<this.style.sheet.cssRules.length;o++){let r=h=>{if(h.selectorText){let f=h.selectorText.split(", ")[0].split(" ");for(let m=0;m<f.length;m++){let y=f[m];if(y[0]==="."){let p=y.slice(1),s="";for(let d=0;d<p.length;d++){let u=p[d],c=p[d+1];if(u==="\\"){if(d++,c!=="\\"){s+=c;continue}}else if(xe.includes(u))break;s+=u}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,s)&&!Object.prototype.hasOwnProperty.call(this.styles,s)){let d=this.create(s)[0];if(d)return d}}}}else if(h.cssRules)for(let g=0;g<h.cssRules.length;g++){let f=r(h.cssRules[g]);if(f)return f}},l=r(this.style.sheet.cssRules[o]);if(l){this.rules.push(l),this.ruleBy[l.className]=l;for(let h=0;h<l.natives.length;h++)l.natives[h].cssRule=this.style.sheet.cssRules[o+h];o+=l.natives.length-1,this.handleRuleWithVariableNames(l,!0),this.handleRuleWithAnimationNames(l,!0),l.definition.insert?.call(l)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let a=o=>{o.forEach(r=>{Object.prototype.hasOwnProperty.call(this.classesUsage,r)?this.classesUsage[r]++:(this.classesUsage[r]=1,this.add(r))})};return a(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(o=>a(o.classList)),this.observer=new MutationObserver(o=>{let r={},l=[],h=[],g=[],f=(s,d)=>{d?s.classList.forEach(y):s.classList.forEach(m);let u=s.children;for(let c=0;c<u.length;c++){let n=u[c];n.classList&&(h.push(n),f(n,d))}},m=s=>{Object.prototype.hasOwnProperty.call(r,s)?r[s]++:r[s]=1},y=s=>{Object.prototype.hasOwnProperty.call(r,s)?r[s]--:Object.prototype.hasOwnProperty.call(this.classesUsage,s)&&(r[s]=-1)},p=(s,d)=>{for(let u=0;u<s.length;u++){let c=s[u];c.classList&&!h.includes(c)&&!g.includes(c)&&(c.isConnected!==d?(h.push(c),f(c,d)):g.push(c))}};for(let s=0;s<o.length;s++){let d=o[s],{addedNodes:u,removedNodes:c,type:n,target:b}=d;if(n==="attributes"){if(l.find(R=>R.target===b))continue;l.push(d)}else p(u,!1),(!b.isConnected||!h.includes(b))&&p(c,!0)}if(!(!l.length&&!Object.keys(r).length)){for(let{oldValue:s,target:d}of l){let u=h.includes(d),c=d.classList,n=s?s.split(" "):[];if(u){if(d.isConnected)continue;for(let b of n)c.contains(b)||y(b)}else if(d.isConnected){c.forEach(b=>{n.includes(b)||m(b)});for(let b of n)c.contains(b)||y(b)}}for(let s in r){let d=r[s],u=(this.classesUsage[s]||0)+d;u===0?(delete this.classesUsage[s],this.delete(s)):(Object.prototype.hasOwnProperty.call(this.classesUsage,s)||this.add(s),this.classesUsage[s]=u)}}}),this.observer.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}refresh(i=this.customConfig){let a=document.createElement("style");return a.id="master",this.style.replaceWith(a),this.style=a,super.refresh(i),this}reset(){super.reset();let i=this.style?.sheet;if(i?.cssRules)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a);return this.style?.remove(),this.style=null,this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),globalThis.runtimeCSSs.splice(globalThis.runtimeCSSs.indexOf(this),1),this}};globalThis.RuntimeCSS=G,globalThis.runtimeCSSs||(globalThis.runtimeCSSs=[]);var Se=`/** @type {import('@master/css').Config} */
1
+ "use strict";var se=Object.defineProperty;var je=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var Me=Object.prototype.hasOwnProperty;var Ee=(e,r)=>{for(var i in r)se(e,i,{get:r[i],enumerable:!0})},ze=(e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Te(r))!Me.call(e,l)&&l!==i&&se(e,l,{get:()=>r[l],enumerable:!(a=je(r,l))||a.enumerable});return e};var Ae=e=>ze(se({},"__esModule",{value:!0}),e);var Fe={};Ee(Fe,{CONFIG_ESM_TEXT:()=>ke,CONFIG_TEXT:()=>we,CONFIG_TS_TEXT:()=>Ve,Layer:()=>oe,MasterCSS:()=>L,Rule:()=>G,RuntimeCSS:()=>X,animations:()=>ue,config:()=>Y,default:()=>L,extend:()=>K,fillColorScale:()=>j,functions:()=>pe,initRuntime:()=>ge,mediaQueries:()=>le,reorderForReadableClasses:()=>ye,rules:()=>he,selectors:()=>ce,semantics:()=>fe,variables:()=>de});module.exports=Ae(Fe);var q={"(":")","'":"'",'"':'"',"{":"}"};function ee(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),i=r.length,a=-1,l="",t,d=r.charCodeAt(0);if(i==1&&d==45)return"\\"+r;for(;++a<i;){if(t=r.charCodeAt(a),t==0){l+="\uFFFD";continue}if(t>=1&&t<=31||t==127||a==0&&t>=48&&t<=57||a==1&&t>=48&&t<=57&&d==45){l+="\\"+t.toString(16)+" ";continue}if(t>=128||t==45||t==95||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){l+=r.charAt(a);continue}l+="\\"+r.charAt(a)}return l}var oe=(u=>(u[u.Semantic=-8]="Semantic",u[u.CoreNativeShorthand=-7]="CoreNativeShorthand",u[u.NativeShorthand=-6]="NativeShorthand",u[u.CoreShorthand=-5]="CoreShorthand",u[u.Shorthand=-4]="Shorthand",u[u.CoreNative=-3]="CoreNative",u[u.Native=-2]="Native",u[u.Core=-1]="Core",u[u.Normal=0]="Normal",u))(oe||{});var $e=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,G=class{constructor(r,i,a){this.className=r;this.css=a;Object.assign(this,i);let{id:l,definition:t}=i,{analyze:d,transformValue:c,declare:m,transformValueComponents:u,create:p,layer:y,unit:g,colored:o}=t;this.layer=y,this.colored=!!o,t.unit||(t.unit=""),t.separators||(t.separators=[","]);let{scope:f,important:h,themeDriver:s}=a.config,{selectors:n,mediaQueries:b,stylesBy:x,animations:v}=a,R=x[r];p&&p.call(this,r),this.declarations=t.declarations;let C,N;if(y===-8)C=r.slice(l.length-1);else{let V;if(d)[V,N]=d.call(this,r);else{let w=r.indexOf(":");this.prefix=r.slice(0,w+1),V=r.slice(w+1)}this.valueComponents=[],C=V.slice(this.parseValue(this.valueComponents,0,V,g,""))}C[0]==="!"&&(this.important=!0,C=C.slice(1)),this.stateToken=C;let D=(V,w)=>{let E=(S,O,k,T)=>{for(let[P,B]of O)if(P.test(S)){for(let W of B)E(S.replace(P,W),O,k,!0);return}T&&k.push(S)},z=S=>{let O=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((B,W)=>W%3?B:B.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),k=[],T="",P=0;for(let B=0;B<O.length;B++){let W=O[B];if(W==="\\"){T+=W+O[++B];continue}!P&&W===","?(k.push(T),T=""):(T+=W,P&&W===")"?P--:W==="("&&P++)}return T&&k.push(T),k},A=[];""in n?E(V,n[""],A,!0):A.push(V);let $={};for(let[S,O]of Object.entries(n)){if(!S)continue;let k=[];for(let T of A)E(T,O,k,!1);k.length&&($[S]=k)}let I=(S,O)=>{let k=O.reduce((T,P)=>(T.push(...z(P)),T),[]);S in w?w[S].push(...k):w[S]=k},_=Object.keys($);if(_.length)for(let S of _)I(S,$[S]);else I("",A)};N?(this.vendorPrefixSelectors={},D(N,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let M=C.split("@"),be=M[0];if(be){this.vendorSuffixSelectors={},D(be,this.vendorSuffixSelectors);for(let V of Object.values(this.vendorSuffixSelectors))for(let w of V){this.hasWhere!==!1&&(this.hasWhere=w.includes(":where("));let E=[":disabled",":active",":focus",":hover"];for(let z=0;z<E.length;z++)if(w.includes(E[z])){(this.priority===-1||this.priority>z)&&(this.priority=z);break}}}else this.vendorSuffixSelectors={"":[""]};let Z={},Oe=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),ve=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Oe)Z[""]=ve?[""]:Object.keys(this.vendorSuffixSelectors);else if(ve)for(let V in this.vendorPrefixSelectors)Z[V]=[""];else for(let V in this.vendorPrefixSelectors){let w=Z[V]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,V))w.push(V);else for(let E in this.vendorSuffixSelectors)w.push(E)}for(let V=1;V<M.length;V++){let w=M[V];if(w)if(w==="rtl"||w==="ltr")this.direction=w;else{let E="",z,A=$e.exec(w);if(A)E=A[1],z=w.slice(E.length);else{this.media={token:w,features:{}};let $=[],I=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")$.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")$.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let O=b[S];if(O&&typeof O=="string")$.push(O);else{let k="",T="",P=0;S.startsWith("<=")?(T="<=",k="max-width"):S.startsWith(">=")||O?(T=">=",k="min-width"):S.startsWith(">")?(T=">",k="min-width",P=.02):S.startsWith("<")&&(T="<",k="max-width",P=-.02);let B=T?S.replace(T,""):S,W=b[B];switch(k){case"max-width":case"min-width":let U={};typeof W=="number"?U={type:"number",value:W+P,unit:"px"}:(U=this.parseValueComponent(B,"px"),U.type==="number"&&U.unit==="px"&&(U.value+=P)),this.media.features[k]=U,U.type==="number"?$.push("("+k+":"+(U.value+U.unit)+")"):$.push("("+k+":"+U.value+")");break}}}},_=w.includes("&");if(_){let S=w.split("&");for(let O of S)I(O)}else I(w);if(this.media.type&&(z=this.media.type),$.length&&(z=$.join(" and ")),z)E="media";else if(!_){this.theme=w;continue}}z&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+z.replace(/\|/g," "))}}let J;this.valueComponents&&(u&&(this.valueComponents=u.call(this,this.valueComponents)),J=this.resolveValue(this.valueComponents,g,[],!1),c&&(J=c.call(this,J)),m?this.declarations=m.call(this,J):l&&(this.declarations={[l]:J}));let ne=[];for(let V in this.declarations){let w=A=>{if(v&&(A.startsWith("animation")||A.startsWith("animation-name"))){let $=A.split(":")[1].split("!important")[0].split(" ").filter(I=>I in this.css.animations&&(!this.animationNames||!this.animationNames.includes(I)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=$)}ne.push(A+((this.important||h)&&!A.endsWith("!important")?"!important":""))},E=V+":",z=this.declarations[V];if(Array.isArray(z))for(let A of z)w(E+A.toString());else w(E+z.toString())}if(ne.length)for(let V in Z)for(let w of Z[V]){let E="";this.direction&&(E+="[dir="+this.direction+"] ");let z=this.vendorPrefixSelectors[V],A=this.vendorSuffixSelectors[w],$=z.map(S=>S+E),I=S=>$.map(O=>(this.theme&&s!=="media"?s==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(f?f+" ":"")+O).reduce((O,k)=>(O.push(A.reduce((T,P)=>(T.push(k+"."+ee(S)+P),T),[]).join(",")),O),[]).join(","),_=I(r)+(R?R.reduce((S,O)=>S+","+I(O),""):"")+"{"+ne.join(";")+"}";for(let S of Object.keys(this.at).sort((O,k)=>k==="supports"?-1:1))_="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+_+"}";this.theme&&s==="media"&&(_=`@media(prefers-color-scheme:${this.theme}){`+_+"}"),this.natives.push({text:_})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;animationNames;variableNames;resolveValue=(r,i,a,l)=>{let{functions:t}=this.css.config,d="";for(let c of r)switch(c.type){case"function":let m=t&&t[c.name];if(m?.transform&&!c.bypassTransform){let p=m.transform.call(this,this.resolveValue(c.children,m.unit??i,a,l||c.name==="calc"),a);d+=typeof p=="string"?p:this.resolveValue(p,m?.unit??i,a,l)}else d+=c.name+c.symbol+this.resolveValue(c.children,m?.unit??i,a,l)+q[c.symbol];break;case"variable":let u=this.css.variables[c.name];if(u){let p=(y,g)=>{if(u.themes)if(this.theme){let o=u.themes[this.theme]??u;o?.value&&y(o)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(c.name)||this.variableNames.push(c.name),g();else y(u)};switch(u.type){case"string":p(g=>{let o=[];this.parseValue(o,0,g.value,i,"",void 0,l,[...a,c.name]),d+=this.resolveValue(o,i,[...a,c.name],l)},()=>{d+=`var(--${c.name})`});break;case"number":p(g=>{if(l)d+=g.value;else{let o=this.parseValueComponent(g.value,i);d+=o.value+(o.unit??"")}},()=>{d+=i?`calc(var(--${c.name}) / 16 * 1rem)`:`var(--${c.name})`});break;case"color":let y=c.alpha?"/"+c.alpha:"";p(g=>{d+=`${g.space}(${g.value}${y})`},()=>{d+=`${u.space}(var(--${c.name})${y})`});break}}else d+=`var(--${c.name}${c.fallback?","+c.fallback:""})`;break;case"separator":d+=c.text||c.value;break;case"number":d+=c.value+(c.unit||"");break;default:d+=c.value;break}return d};get text(){return this.natives.map(r=>r.text).join("")}parseValue=(r,i,a,l,t,d,c=!1,m=[])=>{let u=d===void 0,p=!u&&(d.endsWith("$")||d.endsWith("var")),g=(s=>s==="'"||s==='"')(t),o=[","];this.definition.separators?.length&&o.push(...this.definition.separators);let f="",h=()=>{if(f){let s=!1;if(!p||r.length){let n=(b,x)=>{let v=Object.prototype.hasOwnProperty.call(this.variables,b)?this.variables[b]:Object.prototype.hasOwnProperty.call(this.css.variables,b)?this.css.variables[b]:void 0;if(v){let R=v.name??b;if(!m.includes(R)){s=!0;let C={type:"variable",name:R,variable:this.css.variables[R]};x&&(C.alpha=x),r.push(C)}}};if(n(f),!s&&this.colored){let[b,x]=f.split("/");n(b,x)}}s||(c?r.push({type:"string",value:f}):r.push(this.parseValueComponent(f,l))),f=""}};for(;i<a.length;i++){let s=a[i];if(s===t){if(g){let n=0;for(let b=f.length-1;f[b]==="\\";b--)n++;if(n%2){f+=s;continue}else h()}else h();return i}else if(!g&&s in q){let n=f,b={type:"function",name:n,symbol:s,children:[]};r.push(b),f="";let x=s==="("?this.css.config.functions?.[n]:void 0;!this.colored&&x?.colored&&(this.colored=!0),i=this.parseValue(b.children,++i,a,x?.unit??l,q[s],n||d||"",c||n==="calc")}else if((s==="|"||s===" ")&&t!=="}"&&(!g||d==="path"))h(),r.push({type:"separator",value:" "});else{if(!g){if(s===".")if(isNaN(+a[i+1])){if(u)break}else a[i-1]==="-"&&(f+="0");else if(o.includes(s)){h(),r.push({type:"separator",value:s,text:(s===","?"":" ")+s+(s===","?"":" ")});continue}else if(u&&(s==="#"&&(f||r.length&&r[r.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(s)))break}f+=s}}return h(),i};parseValueComponent(r,i=this.definition.unit){let a=i??this.definition.unit,l="",t;if(typeof r=="number")return a&&!l?((a==="rem"||a==="em")&&(t=r/(this.css.config.rootSize||1)),l=a||""):t=r,{value:t,unit:l,type:"number"};if(a){if(/^\d+\/\d+/.test(r)){let[c,m]=r.split("/");return{value:+c/+m*100,unit:"%",type:"number"}}let d=r.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(d)return t=+d[1],l=d[3]||"",l||((a==="rem"||a==="em")&&(t=t/(this.css.config.rootSize||1)),l=a||""),{value:t,unit:l,type:"number"}}return{value:r,type:"string"}}};var Pe={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},le=Pe;var We={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},ce=We;var Be={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},fe=Be;var Ie={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},ue=Ie;function H(e){e.startsWith("#")&&(e=e.slice(1));let r,i,a,l;return e.length===3||e.length===4?(r=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),a=parseInt(e[2]+e[2],16),l=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(r=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),l=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[r,i,a,l]}function Re(e,r,i){return((1<<24)+(e<<16)+(r<<8)+i).toString(16).slice(1)}function j(e){typeof e=="string"&&(e={"":e});let r=""in e,i=!1;for(let a in e)if(a&&+a>=100){i=!0;break}if(!i&&(!r||Object.keys(e).length>1)){let a=0,l="0"in e?H(e[0]):[0,0,0],t,d,c=[],m=()=>{let u=t-a,p=d.map((y,g)=>(y-l[g])/u);for(let y of c){let g=y-a,o=l.map((f,h)=>Math.round(f+p[h]*g));e[y]="#"+Re(o[0],o[1],o[2])}};for(let u=1;u<100;u++)u in e?(c.length?(t=u,d=H(e[u]),m(),c.length=0,l=d):l=H(e[u]),a=u):c.push(u);c.length&&(t=100,d="100"in e?H(e[100]):[255,255,255],m())}return r||(e[""]=e[i?"500":"50"]),e}var _e={"font-family":{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},"box-size":{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"},black:"#000000",white:"#ffffff",current:"currentColor",slate:j({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:j({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:j({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:j({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:j({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:j({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:j({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:j({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:j({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:j({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:j({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:j({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:j({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:j({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:j({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:j({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:j({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:j({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:j({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:j({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},de=_e;var F=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Q=function(e){return e.length<2||e.find(i=>i.type==="string"&&F.includes(i.value)||i.type==="variable"&&F.includes(i.variable?.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},Ue={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let r=0;for(;r<e.length&&!(e[r]==="{"&&e[r-1]!=="\\");r++);return[e.slice(r),e.slice(0,r)]},declare(e){let r={},i=m=>{let u=m.indexOf(":");if(u!==-1){let p=m.slice(0,u);r[p]=m.slice(u+1)}},a=m=>{let u=p=>{let y=p.slice(ee(m.className).length).match(/\{(.*)\}/)?.[1].split(";");if(y)for(let g of y)i(g)};for(let p of m.natives)u(p.text);if(m.animationNames){this.animationNames||(this.animationNames=[]);for(let p of m.animationNames)this.animationNames.includes(p)||this.animationNames.push(p)}if(m.variableNames){this.variableNames||(this.variableNames=[]);for(let p of m.variableNames)this.variableNames.includes(p)||this.variableNames.push(p)}},l=[],t="",d=()=>{t&&(l.push(t.replace(/ /g,"|")),t="")},c=1;(function m(u){for(;c<e.length;c++){let p=e[c];if(!u){if(p===";"){d();continue}if(p==="}")break}if(t+=p,u===p){if(u==="'"||u==='"'){let y=0;for(let g=t.length-2;t[g]==="\\";g--)y++;if(y%2)continue}break}else p in q&&u!=="'"&&u!=='"'&&(c++,m(q[p]))}})(""),d();for(let m of l){let u=this.css.create(m);if(u.length)for(let p of u)a(p);else i(m)}return r}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0,variables:["foreground"]},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(e){return{"margin-left":e,"margin-right":e}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(e){return{"margin-top":e,"margin-bottom":e}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(e){return{"padding-left":e,"padding-right":e}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(e){return{"padding-top":e,"padding-bottom":e}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["box-size"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["box-size"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["box-size"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["box-size"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["box-size"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[r,i]=e.split(" x ");return{width:r,height:i}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[r,i]=e.split(" x ");return{"min-width":r,"min-height":i}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[r,i]=e.split(" x ");return{"max-width":r,"max-height":i}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-size",["slice","clone"]],layer:-3,declare(e){return{"box-decoration-break":e,"-webkit-box-decoration-break":e}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0,variables:["foreground"]},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7,variables:["foreground"]},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["box-size"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["box-size"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(e){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},"overflow-y":{layer:-3,declare(e){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-7,declare(e){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(e){return{"user-drag":e,"-webkit-user-drag":e}}},"user-select":{layer:-3,declare(e){return{"user-select":e,"-webkit-user-select":e}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e){return{"font-size":e,"line-height":`calc(${e} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-fill-color":e}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke-width":e}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-stroke-color":e}}},"text-stroke":{unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke":e}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let r=e.indexOf(":");return this.prefix=e.slice(0,r+1),[e.slice(r+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let r=e.indexOf(":");return this.prefix=e.slice(0,r+1),[e.slice(r+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-left-color":e,"border-right-color":e}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-top-color":e,"border-bottom-color":e}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-top-right-radius":e}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(e){return{"border-bottom-left-radius":e,"border-bottom-right-radius":e}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-bottom-left-radius":e}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(e){return{"border-top-right-radius":e,"border-bottom-right-radius":e}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",F],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",F],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",F],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",F],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",F],layer:-5,declare(e){return{"border-left-style":e,"border-right-style":e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",F],layer:-5,declare(e){return{"border-top-style":e,"border-bottom-style":e}}},"border-style":{match:["b(?:order)?(?:-style)?",F],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-left-width":e,"border-right-width":e}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-top-width":e,"border-bottom-width":e}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Q,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Q,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:Q},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(e){return{"-webkit-background-clip":e,"background-clip":e}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(e){return{"background-image":"linear-"+e}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(e){return{"backdrop-filter":e,"-webkit-backdrop-filter":e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0,variables:["foreground"]},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0,variables:["foreground"]},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-columns":{match:/^grid-cols:/,declare(e){return{display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-rows":{match:/^grid-rows:/,declare(e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["box-size"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["box-size"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["box-size"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["box-size"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",F],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:Q},"accent-color":{match:/^accent:/,layer:-3,colored:!0,variables:["foreground"]},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["foreground"]},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-left":e,"scroll-margin-right":e}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-top":e,"scroll-margin-bottom":e}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-left":e,"scroll-padding-right":e}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-top":e,"scroll-padding-bottom":e}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(e){return{"mask-image":e,"-webkit-mask-image":e}}}},he=Ue;var me={$:{colored:!0,transform(e){let r,i,a=e.indexOf(",");return a!==-1?(r=e.slice(0,a),i=e.slice(a+1)):r=e,[{type:"variable",name:r,fallback:i}]}},calc:{transform(e,r){let i=[],a=0,l=(t,d,c,m)=>{let u=i!==t,p=[],y=!1,g=!1,o=!1,f=!1,h,s="",n=(v,R="",C="")=>{if(h===!1&&v!==" "&&this.definition.unit&&(h=void 0,f||b()),s){if(!y&&!c){let N=this.parseValueComponent(s);if(!g&&isNaN(+s)&&N.type==="number"&&N.unit!=="%"&&(g=!0),f)isNaN(+s)?N.type==="number"?(t.push(N),N.unit!=="%"&&(o=!0)):t.push(N):t.push({type:"number",value:+s});else if(u){let D={type:"string",value:s};p.push(D),t.push(D)}else t.push(N)}else t.push({type:"string",value:s});s=""}v&&((v==="+"||v==="-")&&x(),R&&e[a-1]===" "&&(R=""),C&&e[a+1]===" "&&(C=""),d?t.push({type:"separator",value:v,text:v}):t.push({type:"separator",value:v,text:R+v+C})),y=!1},b=()=>{(this.definition.unit==="rem"||this.definition.unit==="em")&&t.push({type:"separator",value:"/",text:" / "},{type:"number",value:this.css.config.rootSize}),t.push({type:"separator",value:"*",text:" * "},{type:"number",value:1,unit:this.definition.unit})},x=()=>{f&&!o&&!m&&(!u||g)&&b(),f=!1,o=!1};for(;a<e.length;a++){let v=e[a];if(v==="("){let R=/^([+-])/.exec(s);R&&t.push({type:"string",value:R[1]});let C=R?s.slice(1):s,N={type:"function",name:C,symbol:v,children:[],bypassTransform:C==="calc"};t.push(N),s="",a++;let D=C==="$"||C==="var";h=l(N.children,C!==""&&C!=="calc"&&(D||Object.prototype.hasOwnProperty.call(me,C)),y||D||f&&o,f),!h&&C==="$"&&(h=this.css.variables[N.children[0].value]?.type==="string"),h&&(g=!0,o=!0)}else if(v===")"){if(n(""),g)for(let R of p)Object.assign(R,this.parseValueComponent(R.value));return g}else if(v===",")n(v,""," ");else if(v===" ")n(v);else{let R=e[a-1];switch(v){case"+":!s&&R!==")"?s+=v:n(v," "," ");break;case"-":!s&&R!==")"?s+=v:n(v," "," ");break;case"*":this.definition.unit&&(f=!0),n(v," "," ");break;case"/":this.definition.unit&&(f=!0),n(v," "," "),y=!0;break;default:s+=v;break}}}n(""),x()};return l(i,!1,!1,!1),"calc("+this.resolveValue(i,me.calc.unit??this.definition.unit,r,!0)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},pe=me;var Y={mediaQueries:le,selectors:ce,semantics:fe,rules:he,functions:pe,animations:ue,variables:de,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};function te(e,r=""){return Object.entries(e).reduce((i,[a,l])=>{let t=r?`${r}${a?"-"+a:""}`:a;return typeof l=="object"&&!Array.isArray(l)?Object.assign(i,te(l,t)):i[t]=l,i},{})}function xe(e){let r=typeof Buffer<"u"?Buffer:null;return!!(r&&e instanceof r||e instanceof Date||e instanceof RegExp)}function Se(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let r=Buffer.alloc(e.length);return e.copy(r),r}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Ne(e){let r=[];return e.forEach(function(i,a){typeof i=="object"&&i!==null?Array.isArray(i)?r[a]=Ne(i):xe(i)?r[a]=Se(i):r[a]=K({},i):r[a]=i}),r}function Ce(e,r){return r==="__proto__"?void 0:e[r]}function K(...e){let r={},i,a;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(t){if(a=Ce(r,t),i=Ce(l,t),i!==r)if(typeof i!="object"||i===null){r[t]=i;return}else if(Array.isArray(i)){r[t]=Ne(i);return}else if(xe(i)){r[t]=Se(i);return}else if(typeof a!="object"||a===null||Array.isArray(a)){r[t]=K({},i);return}else{r[t]=K(a,i);return}})}),r}function ie(...e){let r=l=>{let t=K({},l),d=c=>{for(let m in c){let u=c[m];typeof u=="object"&&!Array.isArray(u)?d(u):m&&!m.startsWith("@")&&(c[m]={"":u})}};return t.styles?d(t.styles):t.styles={},t.mediaQueries?d(t.mediaQueries):t.mediaQueries={},t.variables?d(t.variables):t.variables={},t},i=[];for(let l of e)(function t(d){if(d.extends?.length)for(let c of d.extends)t("config"in c?c.config:c);i.push(r(d))})(l);let a=i[0];for(let l=1;l<i.length;l++){let t=i[l];a=K(a,t),Object.prototype.hasOwnProperty.call(t,"animations")&&a.animations&&Object.assign(a.animations,t.animations)}return a}var L=class e{constructor(r=Y){this.customConfig=r;r?.override?this.config=ie(r):this.config=ie(Y,r),this.resolve(),this.constructor===e&&ae.push(this)}static config=Y;rules=[];ruleBy={};classesUsage={};config;RegisteredSemanticRules=[];RegisteredRules=[];resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.RegisteredRules.length=0,this.RegisteredSemanticRules.length=0,this.variablesNativeRules={},this.hasKeyframesRule=!1;let r={current:void 0,currentColor:void 0,transparent:void 0},{styles:i,selectors:a,variables:l,semantics:t,mediaQueries:d,rules:c,animations:m}=this.config;function u(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(a){let o=te(a);for(let f in o){let h=o[f],s=new RegExp(u(f)+"(?![a-z-])");for(let n of Array.isArray(h)?h:[h]){let b=n.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[b];x||(x=this.selectors[b]=[]);let v=x.find(([R])=>R===s);v||(v=[s,[]],x.push(v)),v[1].push(n)}}}if(l){let o={},f=(h,s,n)=>{if(!h)return;let b=(v,R,C,N)=>{if(R===void 0)return;if(R.type==="color"){if(N){let M=R.value.indexOf("/");R={...R,value:M===-1?R.value+" / "+(N.startsWith("0.")?N.slice(1):N):R.value.slice(0,M+2)+(+R.value.slice(M+2)*+N).toString().slice(1)}}r[v]=void 0}let D=C??n;if(D!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,v)){let M=this.variables[v];D?(M.themes||(M.themes={}),M.themes[D]=R):(M.value=R.value,R.type==="color"&&(M.space=R.space))}else if(D){let M={type:R.type,themes:{[D]:R}};R.type==="color"&&(M.space=R.space),this.variables[v]=M}else this.variables[v]=R;else this.variables[v]=R},x=typeof h;if(x==="object")if(Array.isArray(h))b(s,{type:"string",value:h.join(",")});else{let v=Object.keys(h);for(let R of v)R===""||R.startsWith("@")?f(h[R],s,R||v.some(C=>C.startsWith("@"))?R.slice(1):void 0):f(h[R],s+"-"+R,void 0)}else if(x==="number")b(s,{type:"number",value:h}),b("-"+s,{type:"number",value:h*-1});else if(x==="string"){let v=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(h);if(v)Object.prototype.hasOwnProperty.call(o,s)||(o[s]={}),o[s][n]=()=>{delete o[s][n];let[R,C]=v[1].split("@");if(R){if(Object.prototype.hasOwnProperty.call(o,R))for(let D of Object.keys(o[R]))o[R][D]?.();let N=this.variables[R];if(N)if(C===void 0&&N.themes){b(s,{type:N.type,value:N.value,space:N.space},"",v[2]);for(let D in N.themes)b(s,N.themes[D],D,v[2])}else{let D=C!==void 0?N.themes?.[C]:N;if(D){let M={type:D.type,value:D.value};D.type==="color"&&(M.space=D.space),b(s,M,void 0,v[2])}}}};else{let R=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(h);if(R){let[C,N,D,M]=H(R[1]);b(s,{type:"color",value:`${C} ${N} ${D}${M===1?"":" / "+M}`,space:"rgb"})}else{let C=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(h);if(C)b(s,{type:"color",value:C[1]+" "+C[2]+" "+C[3]+(C[4]?" / "+(C[4].startsWith("0.")?C[4].slice(1):C[4]):""),space:"rgb"});else{let N=/^hsl\((.*?)\)$/.exec(h);N?b(s,{type:"color",value:N[1],space:"hsl"}):b(s,{type:"string",value:h})}}}}};for(let h in l)f(l[h],h);for(let h of Object.keys(o))for(let s of Object.keys(o[h]))o[h][s]?.()}if(d&&(this.mediaQueries=te(d)),m)for(let o in m){let f=this.animations[o]={},h=m[o];for(let s in h){let n=f[s]={},b=h[s];for(let x in b)n[x]=b[x]}}let p=i?te(i):{},y=Object.keys(p),g=o=>{if(Object.prototype.hasOwnProperty.call(this.styles,o))return;let f=this.styles[o]=[],h=p[o];if(!h)return;let s=h.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let n of s){let b=x=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,x)){let v=this.stylesBy[x];v.includes(o)||v.push(o)}else this.stylesBy[x]=[o];f.includes(x)||f.push(x)};if(y.includes(n)){g(n);for(let x of this.styles[n])b(x)}else b(n)}};for(let o of y)g(o);if(t&&Object.entries(t).sort((o,f)=>o[0].localeCompare(f[0])).forEach(([o,f],h)=>{this.RegisteredSemanticRules.push({id:"."+o,match:new RegExp("^"+u(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:h,definition:{declarations:f,layer:-8}})}),c){let o=Object.entries(c).sort((s,n)=>s[1].layer!==n[1].layer?(n[1].layer||0)-(s[1].layer||0):n[0].localeCompare(s[0])),f=o.length,h=Object.keys(r);o.forEach(([s,n],b)=>{let x={id:s,variables:{},order:this.RegisteredSemanticRules.length+f-1-b,definition:n};this.RegisteredRules.push(x);let v=n.match,R=C=>{for(let N in this.variables)if(N.startsWith(C+"-")||N.startsWith("-"+C+"-")){let D=N.slice(C.length+(C.startsWith("-")?0:1));x.variables[D]={...this.variables[N],name:N}}};if(n.variables)for(let C of n.variables)R(C);if(R(s),v)if(Array.isArray(v)){let[C,N=[]]=v,D=[];N.length&&D.push(`(?:${N.join("|")})(?![a-zA-Z0-9-])`),Object.keys(x.variables).length&&D.push(`(?:${Object.keys(x.variables).join("|")})(?![a-zA-Z0-9-])`),n.colored&&D.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${h.join("|")})(?![a-zA-Z0-9-])`),n.numeric&&D.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),D.length&&(x.match=new RegExp(`^${C}:(?:${D.join("|")})[^|]*?(?:@|$)`))}else x.match=v})}}match(r){for(let i of this.RegisteredRules)if(i.match?.test(r)||(i.definition.layer===-2||i.definition.layer===-6||i.definition.layer===-3||i.definition.layer===-7)&&r.startsWith(i.id+":"))return i;for(let i of this.RegisteredSemanticRules)if(i.match?.test(r))return i}create(r){let i=a=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,a))return this.ruleBy[a];let l=this.match(a);if(l)return new G(a,l,this)};return(Object.prototype.hasOwnProperty.call(this.styles,r)?this.styles[r].map(a=>i(a)):[i(r)]).filter(a=>a&&a.text)}refresh(r=this.customConfig){r?.override?this.config=ie(r):this.config=ie(Y,r),this.resolve(),this.rules.length=0,this.ruleBy={};for(let i in this.classesUsage)this.add(i);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={};for(let r in this.animations){let i=this.animations[r];i.usage=0,i.native=void 0}for(let r in this.variables){let i=this.variables[r];i.usage=0}return this}destroy(){return this.reset(),ae.splice(ae.indexOf(this),1),this}add(r){let i=this.create(r);return i.length?(this.insert(i),!0):!1}delete(r){let i=this.style?.sheet,a=l=>{let t=this.ruleBy[l];if(!(!t||Object.prototype.hasOwnProperty.call(this.stylesBy,l)&&this.stylesBy[l].some(d=>Object.prototype.hasOwnProperty.call(this.classesUsage,d)))){if(i&&t.natives.length){let d=t.natives[0];for(let c=0;c<i.cssRules.length;c++)if(i.cssRules[c]===d.cssRule){for(let u=0;u<t.natives.length;u++)i.deleteRule(c);break}}if(this.rules.splice(this.rules.indexOf(t),1),delete this.ruleBy[l],t.variableNames)for(let d of t.variableNames){let c=this.variables[d];if(c.usage||(c.usage=0),!--c.usage){let m=u=>{let p=this.variablesNativeRules[u];if(p.cssRule.style.removeProperty("--"+d),!p.cssRule.style.length){let y=this.rules[0],g=y.natives.indexOf(p);i?.deleteRule(g),y.natives.splice(g,1),delete this.variablesNativeRules[u],y.natives.length||(this.rules.splice(0,1),this.variablesNativeRules={})}};if(c.value&&m(""),c.themes)for(let u in c.themes)m(u)}}if(t.animationNames){let d=Object.keys(this.variablesNativeRules).length?1:0,c=this.rules[d];for(let m of t.animationNames){let u=this.animations[m];if(u.usage||(u.usage=0),!--u.usage&&u.native){let p=c.natives.indexOf(u.native);this.style.sheet?.deleteRule(Object.keys(this.variablesNativeRules).length+p),c.natives.splice(p,1),u.native=void 0}}c.natives.length||(this.rules.splice(d,1),this.hasKeyframesRule=!1)}t.definition.delete?.call(t,l)}};if(Object.prototype.hasOwnProperty.call(this.styles,r)){for(let l of this.styles[r])Object.prototype.hasOwnProperty.call(this.classesUsage,l)||a(l);delete this.ruleBy[r]}else a(r)}insert(r){for(let i of r){if(this.ruleBy[i.className])continue;let a,l=this.rules.length-1,{media:t,order:d,priority:c,hasWhere:m,className:u}=i,p=(o,f,h)=>{let s=o;for(;s<=l;s++){let n=this.rules[s];if(f?.(n))return h?-1:s-1;if(h?.(n))return s}return h?-1:s-1},y,g;if(t){let o=this.rules.findIndex(f=>f.media);if(o===-1)a=l+1;else{let{"max-width":f,"min-width":h}=t.features;if(f||h){let s=this.rules.findIndex(n=>n.media?.features["max-width"]||n.media?.features["min-width"]);if(s===-1)a=l+1;else if(f&&h){if(c===-1?(y=p(s,n=>n.priority!==-1,n=>n.media.features["max-width"]&&n.media.features["min-width"]),g=p(s,n=>n.priority!==-1)):(y=p(s,void 0,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1),g=l),y!==-1){let n=f.value-h.value,b=g,x=y;for(y=void 0;b>=x;b--){let{"max-width":v,"min-width":R}=this.rules[b].media.features,C=v.value-R.value;if(C<n)g=b-1;else if(C===n)y=b;else break}}if(y!==-1&&y!==void 0){let n=f.value-h.value;for(let b=g;b>=y;b--){let{"max-width":x,"min-width":v}=this.rules[b].media.features,R=x.value-v.value;if(R<n)g=b-1;else if(R>n){y=b+1;break}}}}else if(h){if(c===-1?(y=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]||n.priority!==-1,n=>!n.media.features["max-width"]&&n.media.features["min-width"]),g=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]||n.priority!==-1)):(y=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1,n=>!n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1),g=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1)),y!==-1)for(let n=g;n>=y;n--){let b=this.rules[n].media.features["min-width"].value;if(b>h.value)g=n-1;else if(b<h.value){y=n+1;break}}}else if(c===-1?(y=p(s,n=>n.media.features["min-width"]||n.priority!==-1,n=>n.media.features["max-width"]),g=p(s,n=>n.media.features["min-width"]||n.priority!==-1)):(y=p(s,n=>n.media.features["min-width"]&&n.priority!==-1,n=>n.media.features["max-width"]&&n.priority!==-1),g=p(s,n=>n.media.features["min-width"]&&n.priority!==-1)),y!==-1)for(let n=g;n>=y;n--){let b=this.rules[n].media.features["max-width"].value;if(b<f.value)g=n-1;else if(b>f.value){y=n+1;break}}}else c===-1?(y=o,g=p(o,s=>s.media?.features["max-width"]||s.media?.features["min-width"]||s.priority!==-1)):(y=p(o,s=>s.media?.features["max-width"]||s.media?.features["min-width"],s=>s.priority!==-1),g=p(o,s=>s.media?.features["max-width"]||s.media?.features["min-width"]))}}else{let o=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;c===-1?(y=o,g=p(o,f=>f.media||f.priority!==-1)):(y=p(o,f=>f.media,f=>f.priority!==-1),g=p(o,f=>f.media))}if(a===void 0&&g!==void 0&&y!==void 0)if(y===-1)a=g+1;else{if(c===-1)for(let o=y;o<=g;o++){let f=this.rules[o];if(!(!m&&f.hasWhere)&&(m&&!f.hasWhere||f.order>=d)){a=o;break}}else for(let o=y;o<=g;o++){let f=this.rules[o];if(!(!m&&f.hasWhere)){if(m&&!f.hasWhere){a=o;break}if(f.priority<c){a=o;break}else if(f.priority===c){if(f.order>=d){a=o;break}}else a=o+1}}a===void 0&&(a=g+1)}if(this.rules.splice(a,0,i),this.ruleBy[u]=i,this.style){let o=this.style.sheet,f=0,h=s=>{let n=this.rules[s];if(n){if(!n.natives.length)return h(s-1);let b=n.natives[n.natives.length-1],x=b.cssRule?.parentRule??b.cssRule;if(o){for(let v=0;v<o.cssRules.length;v++)if(o.cssRules[v]===x){f=v+1;break}}}};h(a-1);for(let s=0;s<i.natives.length;)try{let n=i.natives[s];o?.insertRule(n.text,f),n.cssRule=o?.cssRules[f++],s++}catch(n){console.error(n),i.natives.splice(s,1)}}this.handleRuleWithVariableNames(i),this.handleRuleWithAnimationNames(i),i.definition.insert?.call(i)}}get text(){return this.rules.map(r=>r.text).join("")}handleRuleWithAnimationNames(r,i=!1){if(r.animationNames){let a=this.style?.sheet;for(let l of r.animationNames){let t=this.animations[l];if(t.usage)t.usage++;else{let d={text:`@keyframes ${l}{`+Object.entries(t).filter(([u])=>u!=="usage"&&u!=="native").map(([u,p])=>`${u}{${Object.entries(p).map(([y,g])=>y+":"+g).join(";")}}`).join("")+"}"},c=Object.keys(this.variablesNativeRules).length?1:0,m;if(this.hasKeyframesRule?(m=this.rules[c]).natives.push(d):(this.rules.splice(c,0,m={natives:[d],get text(){return this.natives.map(u=>u.text).join("")}}),this.hasKeyframesRule=!0),a){let u;if(i)for(let p=0;p<a.cssRules.length;p++){let y=a.cssRules[p];if(y.constructor.name==="CSSKeyframesRule"&&y.name===l){u=y;break}}if(u)d.cssRule=u;else{let p=Object.keys(this.variablesNativeRules).length+m.natives.length-1;a.insertRule(d.text,p),d.cssRule=a.cssRules[p]}}t.usage=1,t.native=d}}}}handleRuleWithVariableNames(r,i=!1){if(r.variableNames){let a=this.style?.sheet;for(let l of r.variableNames){let t=this.variables[l];if(t.usage)t.usage++;else{let d=(c,m)=>{let u=this.variablesNativeRules[c];if(!u){let y,g,o;if(c)switch(this.config.themeDriver){case"media":g=`@media(prefers-color-scheme:${c})`,o=":root";break;case"host":o=`:host(.${c})`;break;default:o=`.${c}`;break}else o=":root";if(a){let f=Object.keys(this.variablesNativeRules).length?this.rules[0].natives.length:0;a.insertRule((g?g+"{":"")+o+"{}"+(g?g+"}":""),f),y=g?a.cssRules[f].cssRules[0]:a.cssRules[f]}else{let f=new Map,h=Object.defineProperties({},{getPropertyValue:{value:s=>f.get(s)},removeProperty:{value:s=>{f.delete(s);for(let n=0;n<h.length;n++)h[n]===s&&delete h[n]}},setProperty:{value:(s,n)=>{h[h.length]=s,f.set(s,n)}},length:{get(){return Object.keys(h).length}}});y={selectorText:o,style:h,styleMap:f},g&&(y.parentRule={conditionText:g})}u=this.pushVariableNativeRule(c,y)}let p="--"+l;(!i||!u.cssRule.style.getPropertyValue(p))&&u.cssRule.style.setProperty(p,m.value.toString())};if(t.value&&d("",t),t.themes)for(let c in t.themes)d(c,t.themes[c]);t.usage=1}}}}pushVariableNativeRule(r,i){if(!Object.keys(this.variablesNativeRules).length){this.variablesNativeRules={};let d={natives:[],get text(){return this.natives.map(c=>c.text).join("")}};this.rules.splice(0,0,d)}let a="",l="}";i.parentRule&&(a+=i.parentRule.conditionText.replace(/ /g,"")+"{",l+="}"),a+=i.selectorText+"{";let t={cssRule:i,get text(){let d=[];for(let c=0;c<i.style.length;c++){let m=i.style[c];d.push(m+":"+i.style.getPropertyValue(m))}return a+d.join(";")+l}};return this.rules[0].natives.push(this.variablesNativeRules[r]=t),t}},ae=[];globalThis.MasterCSS=L,globalThis.masterCSSs=ae;var De=[",",".","#","[","!","*",">","+","~",":","@"];var X=class extends L{constructor(i=document,a=Y){super(a);this.root=i;this.customConfig=a;i||(this.root=document),this.root===document?(globalThis.runtimeCSS=this,this.container=document.head,this.host=document.documentElement):(this.container=this.root,this.host=this.root.host),re.push(this)}host;observing=!1;container;observer;observe(i={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(re.find(l=>l!==this&&l.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let l of this.root.styleSheets){let{ownerNode:t}=l;if(t&&t.id==="master"){this.style=t;break}}if(this.style?.sheet){let l=0;for(;l<this.style.sheet.cssRules.length;l++){let t=this.style.sheet.cssRules[l];switch(t.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let c=/\(prefers-color-scheme: (.*?)\)/.exec(t.conditionText);if(c){let m=t.cssRules[0];if(m?.constructor.name==="CSSStyleRule"&&m.selectorText===":root"){this.pushVariableNativeRule(c[1],m);continue}}}break;case"CSSStyleRule":let d=t.selectorText;if(t.style.length){let c=!0;for(let m=0;m<t.style.length;m++)if(!t.style[m]?.startsWith("--")){c=!1;break}if(c){if(d===":root"){this.pushVariableNativeRule("",t);continue}else if(this.config.themeDriver==="host"){let m=/:host(.*?)/.exec(d);if(m){this.pushVariableNativeRule(m[1],t);continue}}else if(!d.startsWith(".\\$")){this.pushVariableNativeRule(d.slice(1),t);continue}}}break}break}for(;l<this.style.sheet.cssRules.length;l++){let t=c=>{if(c.selectorText){let u=c.selectorText.split(", ")[0].split(" ");for(let p=0;p<u.length;p++){let y=u[p];if(y[0]==="."){let g=y.slice(1),o="";for(let f=0;f<g.length;f++){let h=g[f],s=g[f+1];if(h==="\\"){if(f++,s!=="\\"){o+=s;continue}}else if(De.includes(h))break;o+=h}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,o)&&!Object.prototype.hasOwnProperty.call(this.styles,o)){let f=this.create(o)[0];if(f)return f}}}}else if(c.cssRules)for(let m=0;m<c.cssRules.length;m++){let u=t(c.cssRules[m]);if(u)return u}},d=t(this.style.sheet.cssRules[l]);if(d){this.rules.push(d),this.ruleBy[d.className]=d;for(let c=0;c<d.natives.length;c++)d.natives[c].cssRule=this.style.sheet.cssRules[l+c];l+=d.natives.length-1,this.handleRuleWithVariableNames(d,!0),this.handleRuleWithAnimationNames(d,!0),d.definition.insert?.call(d)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let a=l=>{l.forEach(t=>{Object.prototype.hasOwnProperty.call(this.classesUsage,t)?this.classesUsage[t]++:(this.classesUsage[t]=1,this.add(t))})};return a(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(l=>a(l.classList)),this.observer=new MutationObserver(l=>{let t={},d=[],c=[],m=[],u=(o,f)=>{f?o.classList.forEach(y):o.classList.forEach(p);let h=o.children;for(let s=0;s<h.length;s++){let n=h[s];n.classList&&(c.push(n),u(n,f))}},p=o=>{Object.prototype.hasOwnProperty.call(t,o)?t[o]++:t[o]=1},y=o=>{Object.prototype.hasOwnProperty.call(t,o)?t[o]--:Object.prototype.hasOwnProperty.call(this.classesUsage,o)&&(t[o]=-1)},g=(o,f)=>{for(let h=0;h<o.length;h++){let s=o[h];s.classList&&!c.includes(s)&&!m.includes(s)&&(s.isConnected!==f?(c.push(s),u(s,f)):m.push(s))}};for(let o=0;o<l.length;o++){let f=l[o],{addedNodes:h,removedNodes:s,type:n,target:b}=f;if(n==="attributes"){if(d.find(x=>x.target===b))continue;d.push(f)}else g(h,!1),(!b.isConnected||!c.includes(b))&&g(s,!0)}if(!(!d.length&&!Object.keys(t).length)){for(let{oldValue:o,target:f}of d){let h=c.includes(f),s=f.classList,n=o?o.split(" "):[];if(h){if(f.isConnected)continue;for(let b of n)s.contains(b)||y(b)}else if(f.isConnected){s.forEach(b=>{n.includes(b)||p(b)});for(let b of n)s.contains(b)||y(b)}}for(let o in t){let f=t[o],h=(this.classesUsage[o]||0)+f;h===0?(delete this.classesUsage[o],this.delete(o)):(Object.prototype.hasOwnProperty.call(this.classesUsage,o)||this.add(o),this.classesUsage[o]=h)}}}),this.observer.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(i=this.customConfig){let a=document.createElement("style");return a.id="master",this.style.replaceWith(a),this.style=a,super.refresh(i),this}reset(){super.reset();let i=this.style?.sheet;if(i?.cssRules)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a);return this.style?.remove(),this.style=null,this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),re.splice(re.indexOf(this),1),this}},re=[];globalThis.RuntimeCSS=X,globalThis.runtimeCSSs=re;var we=`/** @type {import('@master/css').Config} */
2
2
  module.exports = {
3
3
  styles: {},
4
4
  rules: {},
@@ -9,7 +9,7 @@ module.exports = {
9
9
  selectors: {},
10
10
  functions: {}
11
11
  }
12
- `;var Ne=`/** @type {import('@master/css').Config} */
12
+ `;var ke=`/** @type {import('@master/css').Config} */
13
13
  export default {
14
14
  styles: {},
15
15
  rules: {},
@@ -20,7 +20,7 @@ export default {
20
20
  selectors: {},
21
21
  functions: {}
22
22
  }
23
- `;var De=`import type { Config } from '@master/css'
23
+ `;var Ve=`import type { Config } from '@master/css'
24
24
 
25
25
  export default {
26
26
  styles: {},
@@ -32,4 +32,4 @@ export default {
32
32
  selectors: {},
33
33
  functions: {}
34
34
  } as Config
35
- `;function me(e){return new G(document,e).observe()}function pe(e,t){if(!e.length)return;let i;t?.css?i=t?.css:i=new Q(t?.config);for(let a of e)i.add(a);return i.rules.filter(a=>a.layer).sort((a,o)=>{if(a.definition.layer===-8&&o.definition.layer!==-8)return-1;if(a.definition.layer!==-8&&o.definition.layer===-8)return 1;if(a.definition.id!==o.definition.id)return a.className.localeCompare(o.className);{let r=a.vendorSuffixSelectors?.[""]?.[0],l=o.vendorSuffixSelectors?.[""]?.[0],h=a.media?.token,g=o.media?.token;if(a.priority===-1&&o.priority===-1){if(r&&l)return r.localeCompare(l);if(h&&g&&!Object.keys(a.media.features||{}).length&&!Object.keys(o.media.features||{}).length)return h.localeCompare(g);if(r&&!l)return 1;if(!r&&l)return-1;if(h&&!g)return 1;if(!h&&g)return-1}return a.definition.id===o.definition.id&&a.stateToken===o.stateToken?a.className.localeCompare(o.className):a.order-o.order}}).map(a=>a.className)}
35
+ `;function ge(e){return new X(document,e).observe()}function ye(e,r){let i;r?.css?i=r?.css:i=new L(r?.config);for(let a of e)i.add(a);return i.rules.filter(a=>a.layer).sort((a,l)=>{if(a.layer===-8&&l.layer!==-8)return-1;if(a.layer!==-8&&l.layer===-8)return 1;if(a.id!==l.id)return a.className.localeCompare(l.className);{let t=a.vendorSuffixSelectors?.[""]?.[0],d=l.vendorSuffixSelectors?.[""]?.[0],c=a.media?.token,m=l.media?.token;if(a.priority===-1&&l.priority===-1){if(t&&d)return t.localeCompare(d);if(c&&m&&!Object.keys(a.media.features||{}).length&&!Object.keys(l.media.features||{}).length)return c.localeCompare(m);if(t&&!d)return 1;if(!t&&d)return-1;if(c&&!m)return 1;if(!c&&m)return-1}return a.id===l.id&&a.stateToken===l.stateToken?a.className.localeCompare(l.className):a.order-l.order}}).map(a=>a.className)}